* configure.bat: New option --enable-checking.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
3b8eff32
CY
12010-07-17 Chong Yidong <cyd@stupidchicken.com>
2
3 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
4
499322ce
J
52010-07-17 Jan Djärv <jan.h.d@swipnet.se>
6
7 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
8 is related to the menu bar (Bug#6499).
ce6e9d7f 9 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0
499322ce 10
f6003da5 112010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
12
13 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
14
15 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
16
17 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
18 i.e. don't put back ButtonRelease (Bug#6608).
19
20 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
21 instead of Window. Call xg_event_is_for_menubar when
22 USE_GTK (Bug#6499).
23
24 * gtkutil.h (xg_event_is_for_menubar): Declare.
25
26 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
27
f6003da5 282010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
29
30 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
31 when it's the same as the old foreground. (Bug#6609)
32
23243f29
J
332010-07-16 Jan Djärv <jan.h.d@swipnet.se>
34
35 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
36 widget is non-null (Bug#6645).
37
2b23d2a6
AS
382010-07-15 Andreas Schwab <schwab@linux-m68k.org>
39
01b564ff
AS
40 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
41 Convert old-style definition.
42
2b23d2a6
AS
43 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
44 timestamp argument.
45
c4affd2c
EZ
462010-07-15 Eli Zaretskii <eliz@gnu.org>
47
48 * fringe.c (update_window_fringes): Restore mistakenly reverted
49 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
50
cf28cebc
J
512010-07-14 Jan Djärv <jan.h.d@swipnet.se>
52
53 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
54 (SET_SAVED_KEY_EVENT): Remove (not used).
55 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
56 remove size parameter.
57 (handle_one_xevent): Check popup_activated () for menu for Xt also.
58 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
59 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
60 ButtonRelease.
6b2c4bd9
J
61 (x_set_window_size_1): scroll_bar_actual_width is always
62 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
63
64 * xdisp.c (pending_menu_activation): Remove extern declaration.
65 (prepare_menu_bars): Remove setting of pending_menu_activation.
66
67 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
68 (x_activate_menubar): Set popup_activated_flag for Xt also.
69 Remove setting of pending_menu_activation.
cf28cebc
J
70 (set_frame_menubar): Remove check of pending_menu_activation.
71 Declare menubar_size before code. Correct spelling in comment.
72
f6c1c771
KH
732010-07-14 Kenichi Handa <handa@m17n.org>
74
75 * font.c (font_open_entity): Cancel previous change.
76 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
77
20477505
EZ
782010-07-13 Eli Zaretskii <eliz@gnu.org>
79
77defa9a
EZ
80 Remove subprocesses #ifdefs.
81 * process.c <inhibit_sentinels>: Move to the common part.
82 (Fwaiting_for_user_input_p): Move to the common part; return nil
83 if async subprocesses aren't supported.
84 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
85 MS-DOS. Remove "#ifdef subprocesses".
86 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
87 (gettimeofday): Remove "#ifdef subprocesses".
88 (wait_without_blocking): Remove function.
89 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
90 Remove "#ifdef subprocesses".
91 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
92 compiled on MS-DOS.
93 * callproc.c (Fcall_process) [!MSDOS]: Don't call
94 wait_for_termination on MS-DOS.
95 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
96 initialization of inhibit_sentinels.
97 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
98 subprocesses" conditional.
99 * callproc.c (Fcall_process) [!subprocesses]: Don't call
100 wait_for_termination, since `buffer' cannot be an integer when
101 async subprocesses are not supported
102 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
103 for ifdefing away the call to Fprocess_status.
104
20477505
EZ
105 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
106 away the entire body of the function.
107
b3ffc17c
DN
1082010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
109
01faa934
DN
110 Remove subprocesses #ifdefs from term.c.
111 * process.c (add_keyboard_wait_descriptor)
112 (delete_keyboard_wait_descriptor): Move to common section, do
113 nothing when subprocesses is not defined.
114 * term.c (Fsuspend_tty, Fresume_tty, init_tty): Remove subprocesses #ifdefs.
115
b3ffc17c
DN
116 Convert maybe_fatal to standard C.
117 * lisp.h (verror): Declare.
118 * eval.c (verror): New function containing the code from ...
119 (error): ... this. Call verror.
120 * term.c (vfatal): New function containing the code from ...
121 (fatal): ... this. Call vfatal.
122 (maybe_fatal): Convert to standard C, use variable number of
123 arguments. Declare as non-return.
124 (init_tty): Fix maybe_fatal call.
125
0521f580
DN
1262010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
127
128 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
129 (_scroll_bar_note_movement): Convert definitions to standard C.
130 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
131 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
132
ebd15611
DN
1332010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
134
135 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
136 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
137 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
138 (xaw_jump_callback, xaw_scroll_callback)
139 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
140 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
141 definitions to standard C.
142 * xmenu.c (menubar_id_to_frame, popup_get_selection)
143 (popup_activate_callback, popup_deactivate_callback)
144 (menu_highlight_callback, menubar_selection_callback)
145 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
146 (free_frame_menubar, popup_selection_callback, as)
147 (create_and_show_popup_menu, dialog_selection_callback)
148 (create_and_show_dialog):
149 * xfns.c (hack_wm_protocols, x_window):
150 * xfaces.c (x_update_menu_appearance):
151 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
152 (char_to_pixel_size, round_size_to_char, get_wm_shell)
153 (set_frame_size, update_wm_hints, setup_frame_gcs)
154 (update_various_frame_slots, update_from_various_frame_slots)
155 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
156 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
157 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
158
de06a2dd
AS
1592010-07-12 Andreas Schwab <schwab@linux-m68k.org>
160
161 * dbusbind.c (xd_initialize): Don't compare boolean with a
162 constant.
163
fc549af9
EZ
1642010-07-12 Eli Zaretskii <eliz@gnu.org>
165
166 * process.c (setup_process_coding_systems): Move to the part
167 shared by non-subprocesses systems, and make its body empty when
168 subprocesses is not defined.
169 (close_process_descs): Move to the part shared by non-subprocesses
170 systems.
1408902e
EZ
171 (wait_reading_process_output) [!subprocesses]: Convert arg list to
172 ANSI C.
fc549af9 173
d5a3eaaf
AS
1742010-07-12 Andreas Schwab <schwab@linux-m68k.org>
175
176 * editfns.c (transpose_markers): Convert old-style definition.
177 * emacs.c (abort, shut_down_emacs, fixup_locale)
178 (synchronize_system_time_locale)
179 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
180 * floatfns.c (extract_float, matherr, init_floatfns)
181 (syms_of_floatfns): Likewise.
182 * fns.c (make_hash_table): Likewise.
183 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
184 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
185 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
186 (ftfont_variation_glyphs): Likewise.
187 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
188 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
189 * lread.c (read_filtered_event): Likewise.
190 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
191 * process.c (wait_reading_process_output): Likewise.
192 * scroll.c (do_line_insertion_deletion_costs): Likewise.
193 * search.c (search_buffer, boyer_moore): Likewise.
194 * syntax.c (scan_sexps_forward): Likewise.
195 * xdisp.c (try_scrolling): Likewise.
196 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
197 (face_at_string_position): Likewise.
198 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
199 * xselect.c (x_get_window_property, receive_incremental_selection)
200 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
201 Likewise.
202 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
203
6f704c76
DN
2042010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
205
ded80a25
DN
206 * callproc.c (child_setup): Remove subprocesses conditional.
207 Remove code dealing with SET_EMACS_PRIORITY, unused.
208
49d937f4 209 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
210 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
211
212 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
213 (__do_global_dtors, __main): Use void in definition.
214 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
215 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
216 the only users from ...
217 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
218 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
219 (HAVE_VOLATILE): Remove, unused.
220
6f704c76
DN
221 Convert more function definitions to standard C.
222 * xdisp.c (window_box_edges, handle_single_display_spec)
223 (display_string): Convert definition to standard C.
224 * scroll.c (do_direct_scrolling, scrolling_1):
225 * dispnew.c (allocate_matrices_for_frame_redisplay)
226 (mirrored_line_dance):
227 * coding.c (code_convert_string):
228 * charset.c (map_charset_chars):
229 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
230 (Fregister_ccl_program, Fregister_code_conversion_map):
231 * keyboard.c (kbd_buffer_nr_stored): Likewise.
232 (head_table): Make static and const.
233
e6cfa7c3
AS
2342010-07-12 Andreas Schwab <schwab@linux-m68k.org>
235
236 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
237 (PROFILING_LDFLAGS): Set from substitution.
238 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
239 CFLAGS last.
240
892dd565
KH
2412010-07-12 Kenichi Handa <handa@m17n.org>
242
6f2cdcd1
KH
243 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
244 (shortlisp): Likewise.
245
892dd565
KH
246 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
247
248 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
249 of FONT_ENTITY_INDEX.
250 (Ffont_get): If KEY is :otf and the font-object doesn't have the
251 property, get the property value dynamically.
252 (Ffont_put): Accept font-entity and font-object too.
253 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
254 return value changed.
255 (syms_of_font): Adjusted for the above change.
256
ae96d47a
AS
2572010-07-11 Andreas Schwab <schwab@linux-m68k.org>
258
c8fc18ee
AS
259 * blockinput.h: Remove obsolete comment.
260
89887d67
AS
261 * lisp.h: Include <stddef.h>.
262 (OFFSETOF): Don't define.
263 (VECSIZE): Use offsetof instead of OFFSETOF.
264 (PSEUDOVECSIZE): Likewise.
265 * process.c (conv_sockaddr_to_lisp): Likewise.
266 * alloc.c: Don't include <stddef.h>.
267 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
268
ae96d47a
AS
269 * process.c: Remove obsolete comment.
270
635c0aa1
CY
2712010-07-11 Chong Yidong <cyd@stupidchicken.com>
272
273 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
274
a64df650
AS
2752010-07-11 Andreas Schwab <schwab@linux-m68k.org>
276
8966b757
AS
277 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
278 index, rindex.
279 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
280 * editfns.c (Fuser_full_name, Fformat): Likewise.
281 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
282 * fileio.c (Ffile_symlink_p): Likewise.
283 * filelock.c (current_lock_owner): Likewise.
284 * font.c (font_parse_name, font_parse_family_registry): Likewise.
285 * fontset.c (fontset_pattern_regexp): Likewise.
286 * lread.c (read1): Likewise.
287 * sysdep.c (init_system_name): Likewise.
288 * xfns.c (select_visual): Likewise.
289 * s/hpux10-20.h (index, rindex): Don't define.
290 * s/ms-w32.h (index): Likewise.
291 * s/usg5-4.h: Likewise.
292
cf237e27
AS
293 * callproc.c (relocate_fd): Use F_DUPFD if defined.
294
a8fe7202
AS
295 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
296 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
297 (egetenv): Likewise.
298 * doprnt.c (doprnt): Likewise.
299 * editfns.c (set_time_zone_rule, format2): Likewise.
300 * emacs.c (decode_env_path): Likewise.
301 * eval.c (signal_error, error): Likewise.
302 * insdel.c (replace_range_2): Likewise.
303 * keyboard.c (cmd_error_internal): Likewise.
304 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
305 * print.c (write_string, write_string_1, print_error_message):
306 Likewise.
307 * vm-limit.c (warn_function, memory_warnings): Likewise.
308 * xdisp.c (message1, message1_nolog, message_with_string)
309 (vmessage, message, message_nolog): Likewise.
310 * emacs.c: Remove duplicate declaration.
311 * keyboard.h: Likewise.
312 * lisp.h: Update prototypes.
313
bb8e180f
AS
314 * eval.c: Fix indentation problem.
315
83380e65
AS
316 * keyboard.c: Include "process.h"
317
a64df650
AS
318 * eval.c: Remove obsolete noinline declaration.
319 * fns.c: Likewise.
320
6a8033e1
KR
3212010-07-11 Ken Raeburn <raeburn@raeburn.org>
322
323 * doprnt.c (doprnt): Take a va_list argument instead of count and
324 pointer.
325 * eval.c (error): Change to a standard-C variadic function.
326 * xdisp.c (vmessage): Renamed from message, made static, and
327 changed to take a va_list argument.
328 (message): New variadic wrapper.
329 (message_nolog): Now a variadic function, calling vmessage.
330 * lisp.h: Include stdarg.h for va_list.
331 (doprnt, error, message, message_nolog): Decls updated.
332
462aa963
EZ
3332010-07-11 Eli Zaretskii <eliz@gnu.org>
334
335 * process.c (syms_of_process) <delete-exited-processes>: Define
336 even if !subprocesses.
337 (delete_exited_processes): Ditto.
338
339 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
340 (delete_exited_processes): Don't define.
341
48104462
CY
3422010-07-10 Chong Yidong <cyd@stupidchicken.com>
343
344 * frame.c (make_frame): Initialize menu_bar_lines and
345 tool_bar_lines members.
346 (make_initial_frame, make_terminal_frame): Initialize
347 menu_bar_lines using value of menu-bar-mode.
348
349 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
350
f388c88a
EZ
3512010-07-10 Eli Zaretskii <eliz@gnu.org>
352
353 * process.c: Reshuffle #include's. Condition some of the global
354 and static variables on `subprocesses'.
355 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
356 Leave only one implementation.
357 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
358 (kill_buffer_processes, Flist_system_processes)
359 (Fprocess_attributes, init_process, syms_of_process): Unify the
360 implementations for with subprocesses and without them.
361
723f5a07
J
3622010-07-09 Jan Djärv <jan.h.d@swipnet.se>
363
364 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
365 correct size for Motif.
366 (free_frame_menubar): Call x_set_window_size to update frame size.
367
368 * xfns.c (x_window): Set borderWidth to 0 for pane and
369 EmacsFrame. Frame size calculation is wrong otherwise.
370
2536a4b7
MA
3712010-07-09 Michael Albinus <michael.albinus@gmx.de>
372
373 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
374 allows to suppress errors when polling in Emacs' main loop.
375 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
376 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
377 (Fdbus_method_error_internal, Fdbus_send_signal)
378 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
379 (Fdbus_register_method): Use it. (Bug#6579)
380
5842a27b
DN
3812010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
382
383 * alloc.c: Convert DEFUNs to standard C.
384 * buffer.c:
385 * bytecode.c:
386 * callint.c:
387 * callproc.c:
388 * casefiddle.c:
389 * casetab.c:
390 * category.c:
391 * character.c:
392 * charset.c:
393 * chartab.c:
394 * cmds.c:
395 * coding.c:
396 * composite.c:
397 * data.c:
398 * dbusbind.c:
399 * dired.c:
400 * dispnew.c:
401 * doc.c:
402 * dosfns.c:
403 * editfns.c:
404 * emacs.c:
405 * eval.c:
406 * fileio.c:
407 * filelock.c:
408 * floatfns.c:
409 * fns.c:
410 * font.c:
411 * fontset.c:
412 * frame.c:
413 * fringe.c:
414 * image.c:
415 * indent.c:
416 * insdel.c:
417 * keyboard.c:
418 * keymap.c:
419 * lread.c:
420 * macros.c:
421 * marker.c:
422 * menu.c:
423 * minibuf.c:
424 * msdos.c:
425 * nsfns.m:
426 * nsmenu.m:
427 * nsselect.m:
428 * print.c:
429 * process.c:
430 * search.c:
431 * sound.c:
432 * syntax.c:
433 * term.c:
434 * terminal.c:
435 * textprop.c:
436 * undo.c:
437 * w16select.c:
438 * w32console.c:
439 * w32fns.c:
440 * w32font.c:
441 * w32menu.c:
442 * w32proc.c:
443 * w32select.c:
444 * window.c:
445 * xdisp.c:
446 * xfaces.c:
447 * xfns.c:
448 * xmenu.c:
449 * xselect.c:
450 * xsettings.c:
451 * xsmfns.c: Likewise.
452
453
d568829b
EZ
4542010-07-08 Eli Zaretskii <eliz@gnu.org>
455
456 * process.c (kbd_is_on_hold, hold_keyboard_input)
457 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
458
52214050
J
4592010-07-08 Jan Djärv <jan.h.d@swipnet.se>
460
461 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
462 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
463 unless USE_LUCID.
464
313d9eb2
DN
4652010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
466
d8825aa3
DN
467 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration.
468
295d0d8f
DN
469 Clean up include guards.
470 * tparam.c: Remove include guards for config.h, string.h and code
471 that assumes #ifndef emacs.
472 * termcap.c:
473 * unexalpha.c:
474 * sysdep.c:
475 * filemode.c:
476 * filelock.c:
477 * bidi.c: Likewise.
478
49d9e6b0
DN
479 Remove prefix-args.c
480 * prefix-args.c: Remove file.
481 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
482 * Makefile.in (temacs${EXEEXT}): Remove references to
483 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
484 (mostlyclean): Remove reference to prefix-args.
485 (prefix-args): Remove.
486
313d9eb2
DN
487 Simplify cstart_of_data, start_of_code and related code.
488 * mem-limits.h: Remove !emacs and _LIBC conditional code.
489 (start_of_data): Merge into start_of_data function.
490 * sysdep.c (start_of_text): Remove. Move simplified versions of
491 it in the only users: unexaix.c and unexec.c.
492 (read_input_waiting): Remove local declaration of quit_char.
493 (start, etext): Remove declarations.
494 (start_of_data): Merge with the version in mem-limits.h and move
495 to vm-limits.c.
496 * vm-limit.c (start_of_data): Merged and simplified version of the
497 code formerly in mem-limits.h and sysdep.c.
498 * unexec.c (start): New declaration, moved from sysdep.c.
499 (start_of_text): Simplified version of the code formerly in sysdep.c.
500 * unexaix.c (start_of_text): Simplified version of the code
501 formerly in sysdep.c.
502 * m/alpha.h (HAVE_TEXT_START): Remove.
503 (TEXT_START): Move ...
504 * unexalpha.c (TEXT_START): ... here.
505 * s/hpux10-20.h (TEXT_START): Remove.
506 * s/darwin.h (TEXT_START):
507 * m/mips.h (TEXT_START):
508 * m/macppc.h (HAVE_TEXT_START):
509 * m/m68k.h (TEXT_START):
510 * m/iris4d.h (TEXT_START):
511 * m/intel386.h (TEXT_START):
512 * m/ibmrs6000.h (TEXT_START):
513 * m/ia64.h (HAVE_TEXT_START):
514 * s/msdos.h (TEXT_START): Likewise.
515
72af86bd
AS
5162010-07-07 Andreas Schwab <schwab@linux-m68k.org>
517
518 * alloc.c (overrun_check_malloc, overrun_check_realloc)
519 (overrun_check_free, xstrdup, allocate_string)
520 (allocate_string_data, compact_small_strings, Fmake_string)
521 (make_unibyte_string, make_multibyte_string)
522 (make_string_from_bytes, make_specified_string, make_float)
523 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
524 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
525 memcpy, memmove, memset, memcmp.
526 * atimer.c (start_atimer, set_alarm): Likewise.
527 * buffer.c (clone_per_buffer_values, report_overlay_modification)
528 (mmap_realloc, init_buffer_once): Likewise.
529 * callint.c (Fcall_interactively): Likewise.
530 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
531 (getenv_internal_1): Likewise.
532 * casefiddle.c (casify_object): Likewise.
533 * ccl.c (ccl_driver): Likewise.
534 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
535 * charset.c (load_charset_map_from_file)
536 (load_charset_map_from_file, load_charset_map_from_vector)
537 (Fdefine_charset_internal): Likewise.
538 * cm.c (Wcm_clear): Likewise.
539 * coding.c (decode_eol, decode_coding_object)
540 (Fset_coding_system_priority, make_subsidiaries): Likewise.
541 * data.c (Faset): Likewise.
542 * dired.c (directory_files_internal, file_name_completion_stat):
543 Likewise.
544 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
545 (clear_glyph_row, copy_row_except_pointers)
546 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
547 (save_current_matrix, restore_current_matrix)
548 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
549 (mirror_line_dance, scrolling_window): Likewise.
550 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
551 Likewise.
552 * doprnt.c (doprnt): Likewise.
553 * editfns.c (Fuser_full_name, make_buffer_string_both)
554 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
555 * emacs.c (sort_args): Likewise.
556 * eval.c (Fapply, Ffuncall): Likewise.
557 * fileio.c (Ffile_name_directory, make_temp_name)
558 (Fexpand_file_name, search_embedded_absfilename)
559 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
560 (auto_save_error): Likewise.
561 * fns.c (Fstring_equal, Fcopy_sequence, concat)
562 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
563 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
564 (Fmake_hash_table): Likewise.
565 * fringe.c (Fdefine_fringe_bitmap): Likewise.
566 * ftfont.c (ftfont_text_extents): Likewise.
567 * getloadavg.c (getloadavg): Likewise.
568 * image.c (define_image_type, make_image, make_image_cache)
569 (x_create_x_image_and_pixmap, xbm_image_p)
570 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
571 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
572 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
573 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
574 (tiff_image_p, tiff_read_from_memory, gif_image_p)
575 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
576 Likewise.
577 * indent.c (scan_for_column, compute_motion): Likewise.
578 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
579 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
580 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
581 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
582 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
583 (store_user_signal_events, menu_bar_items, tool_bar_items)
584 (process_tool_bar_item, append_tool_bar_item)
585 (read_char_minibuf_menu_prompt, read_key_sequence)
586 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
587 Likewise.
588 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
589 Likewise.
590 * lisp.h (STRING_COPYIN): Likewise.
591 * lread.c (Fload, read1, oblookup): Likewise.
592 * msdos.c (Frecent_doskeys): Likewise.
593 * nsfns.m (Fx_create_frame): Likewise.
594 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
595 Likewise.
596 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
597 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
598 Likewise.
599 * nsmenu.m (ns_update_menubar): Likewise.
600 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
601 * print.c (print_unwind, printchar, strout, print_string)
602 (print_error_message): Likewise.
603 * process.c (conv_lisp_to_sockaddr, set_socket_option)
604 (Fmake_network_process, Fnetwork_interface_list)
605 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
606 (init_process): Likewise.
607 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
608 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
609 Likewise.
610 * scroll.c (do_scrolling, do_direct_scrolling)
611 (scrolling_max_lines_saved): Likewise.
612 * search.c (search_buffer, wordify, Freplace_match): Likewise.
613 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
614 * syntax.c (skip_chars, skip_syntaxes): Likewise.
615 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
616 (emacs_set_tty): Likewise.
617 * term.c (encode_terminal_code, calculate_costs)
618 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
619 Likewise.
620 * termcap.c (tgetst1, gobble_line): Likewise.
621 * termhooks.h (EVENT_INIT): Likewise.
622 * tparam.c (tparam1): Likewise.
623 * unexalpha.c (unexec): Likewise.
624 * unexec.c (write_segment): Likewise.
625 * unexmacosx.c (unexec_write_zero): Likewise.
626 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
627 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
628 * w32font.c (w32font_list_family, w32font_text_extents)
629 (w32font_list_internal, w32font_match_internal)
630 (w32font_open_internal, compute_metrics, Fx_select_font):
631 Likewise.
632 * w32menu.c (set_frame_menubar, add_menu_item)
633 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
634 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
635 * w32uniscribe.c (uniscribe_list_family): Likewise.
636 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
637 * window.c (make_window, replace_window, set_window_buffer)
638 (Fsplit_window): Likewise.
639 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
640 (add_to_log, message3, x_consider_frame_title)
641 (append_space_for_newline, extend_face_to_end_of_line)
642 (decode_mode_spec_coding, init_glyph_string): Likewise.
643 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
644 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
645 (face_attr_equal_p, make_realized_face, make_face_cache)
646 (free_realized_faces, lookup_named_face, smaller_face)
647 (face_with_height, lookup_derived_face)
648 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
649 (Finternal_set_font_selection_order, realize_default_face)
650 (compute_char_face, face_at_buffer_position)
651 (face_for_overlay_string, face_at_string_position, merge_faces):
652 Likewise.
653 * xfns.c (xic_create_fontsetname, Fx_create_frame)
654 (Fx_window_property, x_create_tip_frame)
655 (Fx_backspace_delete_keys_p): Likewise.
656 * xfont.c (xfont_list, xfont_match, xfont_list_family)
657 (xfont_text_extents): Likewise.
658 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
659 * xrdb.c (magic_file_p, x_get_resource): Likewise.
660 * xselect.c (x_queue_event, x_get_window_property)
661 (receive_incremental_selection): Likewise.
662 * xsmfns.c (x_session_check_input): Likewise.
663 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
664 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
665 Likewise.
666 * character.h (BCOPY_SHORT): Removed.
667 * config.in: Regenerate.
668 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
669 * emacs.c (main) [PROFILING]: Don't declare
670 dump_opcode_frequencies.
671 * lisp.h (safe_bcopy): Remove declaration.
672 (memset) [!HAVE_MEMSET]: Declare.
673 (memcpy) [!HAVE_MEMCPY]: Likewise.
674 (memmove) [!HAVE_MEMMOVE]: Likewise.
675 (memcmp) [!HAVE_MEMCMP]: Likewise.
676 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
677 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
678 Don't define.
679 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
680 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
681 (BCOPY_DOWNWARD_SAFE): Don't define.
682 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
683 (memcpy) [!HAVE_MEMCPY]: Define.
684 (memmove) [!HAVE_MEMMOVE]: Define.
685 (memcmp) [!HAVE_MEMCMP]: Define.
686
cb768704
J
6872010-07-07 Jan Djärv <jan.h.d@swipnet.se>
688
689 * process.c (kbd_is_on_hold): New variable.
690 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p): New
691 functions.
692 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
693 select on empty input mask.
694 (init_process): Initialize kbd_is_on_hold to 0.
695
696 * process.h (hold_keyboard_input, unhold_keyboard_input)
697 (kbd_on_hold_p): Declare.
698
699 * keyboard.c (input_available_signal): Declare.
700 (kbd_buffer_nr_stored): New function.
701 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
702 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
703 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
704 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
705 (tty_read_avail_input): If input is on hold, return.
706 Don't read more that free slots in kbd_buffer (Bug#6571).
707
3a8ce822
EZ
7082010-07-07 Eli Zaretskii <eliz@gnu.org>
709
710 * msdos.h:
711 * msdos.c:
712 * dosfns.c:
713 * w16select.c: Convert function definitions to ANSI C.
714
715 * msdos.h (ctrl_break_func, install_ctrl_break_check): Remove
716 unused prototypes.
717
cf84bb53
JB
7182010-07-07 Juanma Barranquero <lekktu@gmail.com>
719
720 * coding.c, sysdep.c: Convert some more functions to standard C.
721
1a4990fb
JB
7222010-07-07 Juanma Barranquero <lekktu@gmail.com>
723
724 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
725 (encode_coding_object): Use SPECPDL_INDEX.
726 (syms_of_coding): Use DOS_NT.
727
c0f2f16b
DN
7282010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
729
48fb6855
DN
730 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
731
c0f2f16b
DN
732 Make the function member of Lisp_Subr use standard C prototypes.
733 * lisp.h (struct Lisp_Subr): Use a union for the function member.
734 (DECL_ALIGN): Add a cast for the function.
735 * eval.c (Feval, Ffuncall): Use the proper type for each type
736 function call.
737
67aecef9
CY
7382010-07-06 Chong Yidong <cyd@stupidchicken.com>
739
740 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
741 fringe face id, so face-remapping-alist works (Bug#6091).
742
b56ceb92
JB
7432010-07-06 Juanma Barranquero <lekktu@gmail.com>
744
745 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
746 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
747 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
748
7af07b96
AS
7492010-07-06 Andreas Schwab <schwab@linux-m68k.org>
750
751 * xterm.c (x_get_keysym_name): Change type of parameter to int.
752 * lisp.h: Declare x_get_keysym_name.
753 * keyboard.c (modify_event_symbol): Don't declare
754 x_get_keysym_name here.
755
69e24e34
DN
7562010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
757
758 * ecrt0.c: Revert conversion to standard C.
759
d3da34e0 7602010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
761
762 * vm-limit.c (memory_warnings):
763 * keyboard.c (modify_event_symbol):
764 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
765 (round2, emacs_rint):
766 * process.c (send_process, old_sigpipe): Convert function
767 definitions and declarations to standard C.
768
7692010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
770
771 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
772 * xdisp.c: Convert function definitions to standard C.
773
774 * cm.c (cmputc): Arg C is now int, not char.
775 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
776
00be444c
J
7772010-07-05 James Cloos <cloos@jhcloos.com>
778
779 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
780
781 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
782 _NET_WM_ICON_NAME atoms.
783
784 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
785 and _NET_WM_ICON_NAME properties, too, matching what is
786 done in the Gtk+ case.
787
e4c8d29a
J
7882010-07-05 Jan Djärv <jan.h.d@swipnet.se>
789
ff919460
J
790 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
791
e4c8d29a
J
792 * xsmfns.c (SSDATA): New macro.
793 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
794 passed to strlen/strcpy/strcat.
795 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
796 7:th arg to XChangeProperty to (unsigned char *)
797
798 * xsettings.c (something_changedCB, parse_settings)
799 (apply_xft_settings): Reformat prototype.
800 (something_changedCB, init_gconf): Remove unused variable i.
801 (read_settings): Remove unused variable long_len.
802
803 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
804 (xg_get_image_for_pixmap, create_dialog)
805 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
806 (menuitem_highlight_callback, make_menu_item)
807 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
808 (xg_create_scroll_bar, xg_update_scrollbar_pos)
809 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
810 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
811 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
812 (xg_tool_bar_item_expose_callback): Reformat prototype.
813 (xg_update_menubar): GList *group => GSList *group.
814 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
815 before use.
816 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
817 to GTK_IMAGE (wimage).
818
dd4c5104
DN
8192010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
820
898b4c5c
DN
821 * atimer.c: Use "" instead of <> for local includes for
822 consistency with the rest of the code.
823
dd4c5104
DN
824 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
825 * xrdb.c (get_system_name):
826 * window.c (shrink_windows):
827 * syntax.c (forw_comment):
828 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
829 (ins_del_costs):
830 * mem-limits.h (start_of_data):
831 * lread.c (readevalloop):
832 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
833 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
834 * frame.c (x_get_focus_frame):
835 * floatfns.c (fmod_float):
836 * fileio.c (choose_write_coding_system):
837 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
838 (malloc_initialize_hook, sort_args, synchronize_locale):
839 * doprnt.c (doprnt):
840 * dired.c (compile_pattern):
841 * data.c (fmod_float):
842 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
843 (map_char_table_for_charset):
844 * charset.c (define_charset_internal):
845 * alloc.c (Fgarbage_collect): Convert declarations or definitions
846 to standard C.
847
9a39b306 8482010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 849 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
850
851 * lread.c (read1): Fix up last change to not mess up `c'.
852
e6cb2cbb
JB
8532010-07-04 Juanma Barranquero <lekktu@gmail.com>
854
855 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
856
438105ed
JB
8572010-07-04 Juanma Barranquero <lekktu@gmail.com>
858
859 Fix prototypes.
860
e5447b22 861 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 862 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
863 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
864 arg, as required by internal_condition_case_1.
dcc7404b 865 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
866 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
867 (analyse_first): Fix "const const".
e5447b22 868 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 869 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 870 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 871
971de7fb
DN
8722010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
873
874 * alloc.c: Convert function definitions to standard C.
875 * atimer.c:
876 * bidi.c:
877 * bytecode.c:
878 * callint.c:
879 * callproc.c:
880 * casefiddle.c:
881 * casetab.c:
882 * category.c:
883 * ccl.c:
884 * character.c:
885 * charset.c:
886 * chartab.c:
887 * cmds.c:
888 * coding.c:
889 * composite.c:
890 * data.c:
891 * dbusbind.c:
892 * dired.c:
893 * dispnew.c:
894 * doc.c:
895 * doprnt.c:
896 * ecrt0.c:
897 * editfns.c:
898 * fileio.c:
899 * filelock.c:
900 * filemode.c:
901 * fns.c:
902 * font.c:
903 * fontset.c:
904 * frame.c:
905 * fringe.c:
906 * ftfont.c:
907 * ftxfont.c:
908 * gtkutil.c:
909 * indent.c:
910 * insdel.c:
911 * intervals.c:
912 * keymap.c:
913 * lread.c:
914 * macros.c:
915 * marker.c:
916 * md5.c:
917 * menu.c:
918 * minibuf.c:
919 * prefix-args.c:
920 * print.c:
921 * ralloc.c:
922 * regex.c:
923 * region-cache.c:
924 * scroll.c:
925 * search.c:
926 * sound.c:
927 * strftime.c:
928 * syntax.c:
929 * sysdep.c:
930 * termcap.c:
931 * terminal.c:
932 * terminfo.c:
933 * textprop.c:
934 * tparam.c:
935 * undo.c:
936 * unexelf.c:
937 * window.c:
938 * xfaces.c:
939 * xfns.c:
940 * xfont.c:
941 * xftfont.c:
942 * xgselect.c:
943 * xmenu.c:
944 * xrdb.c:
945 * xselect.c:
946 * xsettings.c:
947 * xsmfns.c:
948 * xterm.c: Likewise.
949
ae492bec
EZ
9502010-07-03 Eli Zaretskii <eliz@gnu.org>
951
76ea4cc9
EZ
952 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
953 frames other than the initial one. Fix reversal of colors when
954 `reverse' is specified in the frame parameters. Call
955 update_face_from_frame_parameter instead of
956 internal-set-lisp-face-attribute. Initialize screen colors from
957 initial_screen_colors[] when f->default_face_done_p is zero,
958 instead of depending on being called with default-frame-alist as
959 the alist argument.
960
961 * xfaces.c (update_face_from_frame_parameter): Move out of
962 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
963 with HAVE_WINDOW_SYSTEM.
964
1e6255ae
EZ
965 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
966 to menu-bar-mode, if not set in the frame parameters or in
967 default-frame-alist.
968
ae492bec
EZ
969 * w32console.c (sys_tputs): Adjust argument list to prototype in
970 term.c.
971
3a35a84c
JB
9722010-07-03 Juanma Barranquero <lekktu@gmail.com>
973
974 * lisp.h (memory_warnings): Fix prototype.
975
976 * cm.h (evalcost): Fix prototype.
977
978 * cm.c (evalcost): Fix arg type.
979
c532d349
DN
9802010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
981
982 * term.c (term_clear_mouse_face, Fidentity):
983 * syssignal.h (signal_handler_t):
984 * lisp.h (memory_warnings):
985 * coding.h (preferred_coding_system):
986 * cm.h (evalcost):
987 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
988
c0b36d46
EZ
9892010-07-02 Eli Zaretskii <eliz@gnu.org>
990
991 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
992 from prototypes.
993
994 * msdos.h (load_pixmap): Don't define away.
995
383e0970
J
9962010-07-02 Jan Djärv <jan.h.d@swipnet.se>
997
f57e2426
J
998 * lisp.h:
999 * atimer.h: Remove define for P_.
1000
1001 * alloc.c: Remove __P and P_ from .c and .m files.
1002 * atimer.c:
1003 * buffer.c:
1004 * callint.c:
1005 * category.c:
1006 * charset.c:
1007 * chartab.c:
1008 * cm.c:
1009 * coding.c:
1010 * composite.c:
1011 * data.c:
1012 * dired.c:
1013 * dispnew.c:
1014 * doc.c:
1015 * editfns.c:
1016 * emacs.c:
1017 * eval.c:
1018 * fileio.c:
1019 * filelock.c:
1020 * fns.c:
1021 * font.c:
1022 * fontset.c:
1023 * frame.c:
1024 * ftfont.c:
1025 * ftxfont.c:
1026 * gmalloc.c:
1027 * gtkutil.c:
1028 * image.c:
1029 * indent.c:
1030 * intervals.c:
1031 * keyboard.c:
1032 * keymap.c:
1033 * lread.c:
1034 * marker.c:
1035 * menu.c:
1036 * minibuf.c:
1037 * print.c:
1038 * process.c:
1039 * scroll.c:
1040 * search.c:
1041 * sound.c:
1042 * strftime.c:
1043 * syntax.c:
1044 * sysdep.c:
1045 * term.c:
1046 * terminal.c:
1047 * textprop.c:
1048 * unexalpha.c:
1049 * w32console.c:
1050 * w32fns.c:
1051 * w32font.c:
1052 * w32menu.c:
1053 * w32term.c:
1054 * w32uniscribe.c:
1055 * window.c:
1056 * xdisp.c:
1057 * xfaces.c:
1058 * xfns.c:
1059 * xfont.c:
1060 * xftfont.c:
1061 * xmenu.c:
1062 * xselect.c:
1063 * xterm.c: Likewise.
1064
383e0970 1065 Remove P_ and __P macros.
f57e2426
J
1066 * atimer.h: Remove P_ and __P macros.
1067 * buffer.h:
383e0970
J
1068 * category.h:
1069 * ccl.h:
1070 * character.h:
1071 * charset.h:
1072 * cm.h:
1073 * coding.h:
1074 * composite.h:
1075 * dispextern.h:
1076 * disptab.h:
9e892c8d 1077 * dosfns.h:
383e0970
J
1078 * font.h:
1079 * fontset.h:
1080 * frame.h:
1081 * gtkutil.h:
1082 * indent.h:
1083 * intervals.h:
1084 * keyboard.h:
1085 * keymap.h:
1086 * lisp.h:
1087 * macros.h:
1088 * md5.h:
1089 * menu.h:
1090 * msdos.h:
1091 * nsterm.h:
1092 * puresize.h:
1093 * region-cache.h:
1094 * syntax.h:
1095 * syssignal.h:
1096 * systime.h:
1097 * termhooks.h:
9e892c8d 1098 * w32font.h:
383e0970
J
1099 * w32term.h:
1100 * widget.h:
1101 * window.h:
1102 * xgselect.h:
1103 * xsettings.h:
1104 * xterm.h: Likewise.
1105
98601119
DN
11062010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1107
d9170db5
DN
1108 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1109
98601119
DN
1110 Cleanup old code.
1111 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1112 * syssignal.h: Remove code for Lynx, not supported anymore.
1113 * vm-limit.c: Remove unused code the depends on emacs not being
1114 defined and NO_LIM_DATA being defined.
1115 * mem-limits.h: Remove dead code.
1116
1f984e12
J
11172010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1118
c49d071a
J
1119 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1120
9d5405ec
J
1121 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1122 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1123
7a18115b
J
1124 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1125 parameters, they are already absolute.
1126
581a8100
J
1127 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
1128 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
1129
1130 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
1131
1132 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
1133 FRAME_TOOLBAR_HEIGHT.
1134
1f984e12
J
1135 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
1136 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1137
c1ef4455
CY
11382010-06-30 Chong Yidong <cyd@stupidchicken.com>
1139
1140 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1141 check default-frame-alist.
1142
ce8f5a9a
AS
11432010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1144
1145 * process.c (create_process): Avoid using invalid file descriptors.
1146
1147 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1148
bf935339
J
11492010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1150
1151 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1152 Improve documentation. Return font regardless of use_system_font.
1153 (syms_of_xsettings): Improve documentation for font-use-system-font.
1154
7c33a057
CY
11552010-07-10 Chong Yidong <cyd@stupidchicken.com>
1156
2ec1b5ee
CY
1157 * xfaces.c (realize_face): Garbage the frame if a face is removed
1158 (Bug#6593).
1159
11602010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1161
1162 * keyboard.c: Remove duplicate <setjmp.h>.
1163 (read_key_sequence): Remove volatile qualifiers.
1164
11652010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1166
1167 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1168 (struct glyph_row): New members left_fringe_offset and
1169 right_fringe_offset.
1170
1171 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1172 specially.
1173 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1174 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1175
1176 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1177 Take account of bitmap offset.
2ec1b5ee
CY
1178 (draw_window_fringes): Take account of window vscroll.
1179 (update_window_fringes): Likewise. Extend top-aligned top indicator
1180 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1181 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1182 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1183
11842010-07-04 Juanma Barranquero <lekktu@gmail.com>
1185
1186 * w32fns.c (Qtooltip): Declare.
1187 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1188
11892010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1190
1191 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1192 grab on just Press (Bug#6499).
1193
11942010-07-02 Chong Yidong <cyd@stupidchicken.com>
1195
1196 * frame.c (Qtooltip): New var.
1197 (delete_frame): Use it. Fix faulty if statement. Don't update
1198 mode line for tooltip frames. Suggested by Martin Rudalics.
1199
1200 * xfns.c (x_create_tip_frame):
1201 * w32fns.c (x_create_tip_frame): Use it.
1202
12032010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1204
1205 * xftfont.c (xftfont_open): Check font width one by one also when
1206 spacing is dual.
1207
1208 * ftfont.c (ftfont_open): Ditto.
1209
6259c2ec
GM
12102010-06-30 Glenn Morris <rgm@gnu.org>
1211
a46007e9
GM
1212 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1213
6259c2ec
GM
1214 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1215
1216 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1217 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1218 * s/darwin.h (SYSTEM_MALLOC):
1219 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1220
5d1d3d04
J
12212010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1222
1223 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1224 (ns_get_screen): Don't assign integer to f.
1225 (Fx_display_color_cells): Declarations before statements.
1226
e547b051
J
12272010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1228
5fc8e5bc
J
1229 * xfns.c (x_default_font_parameter): Remove got_from_system
1230 (Bug#6526).
1231
e547b051
J
1232 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1233 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1234 defines based on what configure finds.
1235
1236 * xterm.c (XTflash): Use gtk_widget_get_window.
1237 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1238 gtk_adjustment_get_page_size.
1239 (handle_one_xevent): Use gtk_widget_get_mapped.
1240 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1241 messages.
1242
1243 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1244
1245 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1246 HAVE_GTK_FILE_SELECTION_NEW.
1247
1248 * gtkutil.c (xg_display_open, xg_display_close): Remove
1249 HAVE_GTK_MULTIDISPLAY, it is always defined.
1250 (xg_display_open): Return type is void.
1251 (gtk_widget_set_has_window)
1252 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1253 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1254 (gtk_adjustment_set_page_increment)
1255 (gtk_adjustment_get_step_increment): #define these if not found
1256 by configure.
1257 (remove_submenu): New define based on Gtk+ version.
1258 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1259 gtk_widget_get_window.
1260 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1261 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1262 (create_dialog): Use gtk_dialog_get_action_area and
1263 gtk_dialog_get_content_area.
1264 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1265 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1266 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1267 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1268 g_object_ref and g_object_unref.
1269 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1270 gtk_widget_get_sensitive.
1271 (xg_update_submenu): Use remove_submenu.
1272 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1273 properties instead to get old x and y position.
1274 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1275 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1276 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1277 (xg_get_tool_bar_widgets): New function.
1278 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1279 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1280 (toolbar_set_orientation): New #define based on if configure
1281 finds gtk_orientable_set_orientation.
1282 (xg_create_tool_bar): Call toolbar_set_orientation.
1283 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1284 instead of gtk_box_pack_start_defaults.
1285
b9229673
CY
12862010-06-28 Chong Yidong <cyd@stupidchicken.com>
1287
1288 * cmds.c (Fdelete_backward_char): Move into Lisp.
1289
bbc803b0
DN
12902010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1291
1292 * s/freebsd.h (BSD4_2): Remove redundant definition.
1293 bsd-common.h defines it already.
1294
6431f2e6
CY
12952010-06-27 Chong Yidong <cyd@stupidchicken.com>
1296
1297 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1298 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1299 tool-bar-mode, which are now set using these X resources at
1300 startup, to determine the defaults (Bug#2249).
1301
1302 * w32fns.c (Fx_create_frame):
1303 * nsfns.m (Fx_create_frame): Likewise.
1304
1305 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1306
8c079ebb
JB
13072010-06-24 Juanma Barranquero <lekktu@gmail.com>
1308
1309 * gtkutil.c (xg_update_scrollbar_pos):
1310 Avoid C99 mid-block variable declaration.
1311
e9b7ab96
JD
13122010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1313
bc869eca
JD
1314 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1315
2b7e356a 1316 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1317
1318 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1319 if height is less than scroll bar min size.
1320 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1321
e9b7ab96
JD
1322 * xfns.c (x_default_font_parameter): Try to open font from system
1323 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1324
32a679fd
JD
13252010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
1326
1327 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1328
70c4cfbb
EZ
13292010-06-20 Eli Zaretskii <eliz@gnu.org>
1330
1331 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1332 most-positive-fixnum, be extra accurate when scrolling window
1333 start, to avoid missing the cursor line.
1334
ad5a12b5
EZ
13352010-06-19 Eli Zaretskii <eliz@gnu.org>
1336
1337 * xdisp.c (try_scrolling): Compute the limit for searching point
1338 in forward scroll from scroll_max, instead of an arbitrary limit
1339 of 10 screen lines. See
1340 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1341 and
1342 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1343 for details.
1344
2a64315a 13452010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1346
1347 * editfns.c (Fbyte_to_string): Pacify compiler.
1348
288cf4e9
SM
13492010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1350
1351 * lread.c (read1): Phase out old-style backquotes a bit more.
1352
6e6e5760
EZ
13532010-06-12 Eli Zaretskii <eliz@gnu.org>
1354
cbc4fd20
EZ
1355 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1356 bidimirror.h.
1357
1358 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1359
317fbf33
EZ
1360 * bidi.c (bidi_initialize): Remove explicit initialization of
1361 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1362 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1363 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1364
1365 * biditype.h: New file.
1366
cbc4fd20
EZ
1367 * bidimirror.h: New file.
1368
6e6e5760
EZ
1369 * window.c (syms_of_window): Doc fix (bug#6409).
1370
4176cba2
RF
13712010-06-12 Romain Francoise <romain@orebokech.com>
1372
1373 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1374 ediff-hook.
1375
cb4bfcb5
GM
13762010-06-10 Glenn Morris <rgm@gnu.org>
1377
64c60c2f
GM
1378 * editfns.c (Fbyte_to_string): Pacify compiler.
1379
cb4bfcb5
GM
1380 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1381
2ec1b5ee
CY
13822010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1383
1384 * alloc.c (Fmake_byte_code): Don't access undefined argument
1385 (Bug#6517).
1386
13872010-06-25 Chong Yidong <cyd@stupidchicken.com>
1388
1389 * xdisp.c (next_element_from_image): Ensure that after-strings are
1390 read the next time we hit handle_stop (Bug#1336).
1391
13922010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1393
1394 * lread.c (read1): Signal error if #s is not followed by paren.
1395
13962010-06-19 Chong Yidong <cyd@stupidchicken.com>
1397
1398 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1399
1400 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1401
14022010-06-15 Glenn Morris <rgm@gnu.org>
1403
1404 * editfns.c (Fbyte_to_string): Pacify compiler.
1405
e454a4a3
SM
14062010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1407
1408 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1409 Check `object's type before accessing its guts.
1410
c1b1acc2
DN
14112010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1412
1413 * s/usg5-4.h: Fix previous change.
1414 Suggested by Lawrence Mitchell <wence@gmx.li>
1415
657d4c0b
AS
14162010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1417
1418 * minibuf.c (Fall_completions): Add more checks.
1419
9b27fd9f
JB
14202010-06-08 Juanma Barranquero <lekktu@gmail.com>
1421
1422 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1423
a99ebb40
DN
14242010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1425
d7c5d87d
DN
1426 * lread.c (X_OK): Remove, unused.
1427
0263a941
DN
1428 * dispnew.c: Remove obsolete comment.
1429
a99ebb40
DN
1430 Remove INCLUDED_FCNTL.
1431 * xterm.c (INCLUDED_FCNTL):
1432 * callproc.c (INCLUDED_FCNTL):
1433 * alloc.c (INCLUDED_FCNTL):
1434 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1435 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1436
13b5221f
MR
14372010-06-07 Martin Rudalics <rudalics@gmx.at>
1438
1439 * window.c (Fselect_window): Move `record_buffer' up to the
1440 beginning of this function, so the buffer gets recorded
1441 even if the selected window does not change.
1442 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1443
5220357f
JB
14442010-06-07 Juanma Barranquero <lekktu@gmail.com>
1445
1446 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1447 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1448
3085237c
DN
14492010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1450
1451 Remove BSTRING related code, all platforms define it.
1452 * s/usg5-4.h (BSTRING): Remove definition.
1453 * s/template.h (BSTRING):
1454 * s/msdos.h (BSTRING):
1455 * s/ms-w32.h (BSTRING):
1456 * s/hpux10-20.h (BSTRING):
1457 * s/gnu-linux.h (BSTRING):
1458 * s/darwin.h (BSTRING):
1459 * s/cygwin.h (BSTRING):
1460 * s/bsd-common.h (BSTRING):
1461 * s/aix4-2.h (BSTRING): Likewise.
1462 * sysdep.c: Remove code depending on BSTRING not being defined.
1463
409f2919
JB
14642010-06-05 Juanma Barranquero <lekktu@gmail.com>
1465
1466 Remove obsolete macro BASE_LEADING_CODE_P.
1467 * character.h (BASE_LEADING_CODE_P): Remove.
1468 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1469 * buffer.c (Fset_buffer_multibyte):
1470 * indent.c (scan_for_column, compute_motion):
1471 * insdel.c (count_combining_before, count_combining_after):
1472 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1473
087fc47a
JB
14742010-06-04 Juanma Barranquero <lekktu@gmail.com>
1475
1476 Turn `directory-sep-char' into a noop.
1477
1478 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1479 (DIRECTORY_SEP): Define unconditionally.
1480
1481 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1482
1483 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1484 call dostounix_filename directly.
1485
1486 * fileio.c (CORRECT_DIR_SEPS): Remove.
1487 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1488 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1489 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1490 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1491
1492 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1493 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1494
0eb7675e
AS
14952010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1496
1497 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 1498 address. (Bug#6346)
0eb7675e 1499
78edd3b7
JB
15002010-06-03 Juanma Barranquero <lekktu@gmail.com>
1501
1502 * ccl.c (Fccl_program_p): Fix typo in docstring.
1503
eb697db5
DN
15042010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
1505
1506 Move UNEXEC definition to autoconf.
1507 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
1508 * s/sol2-10.h (UNEXEC):
1509 * s/irix6-5.h (UNEXEC):
1510 * s/hpux10-20.h (UNEXEC):
1511 * s/gnu-linux.h (UNEXEC):
1512 * s/darwin.h (UNEXEC):
1513 * s/cygwin.h (UNEXEC):
1514 * s/bsd-common.h (UNEXEC):
1515 * s/aix4-2.h (UNEXEC):
1516 * m/alpha.h (UNEXEC): Likewise.
1517 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
1518
aa3830c4
JB
15192010-06-03 Juanma Barranquero <lekktu@gmail.com>
1520
1521 Remove obsolete pre-unicode2 macros.
1522 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
1523 * composite.c (composition_reseat_it):
1524 * data.c (Faset):
1525 * fns.c (Ffillarray):
1526 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
1527 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
1528
d234d13e
JL
15292010-06-03 Juri Linkov <juri@jurta.org>
1530
1531 * buffer.c (Fother_buffer): Add CHECK_FRAME.
1532 (Fswitch_to_buffer): Remove unused variable `err'.
1533
0d4bcf4d
GM
15342010-06-03 Glenn Morris <rgm@gnu.org>
1535
e23dc1e2
GM
1536 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
1537
05b09564
GM
1538 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1539 now that AH_BOTTOM does it.
1540
824e2978
GM
1541 * m/hp800.h (HAVE_ALLOCA):
1542 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1543
0d4bcf4d
GM
1544 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1545 Remove NOT_C_CODE tests, it is always true now.
1546
c55d2abf
DN
15472010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1548
08a494a3
DN
1549 Fix config.h includes.
1550 * xsettings.c:
1551 * xgselect.c:
1552 * nsterm.m:
1553 * nsselect.m:
1554 * nsimage.m:
1555 * nsfont.m:
1556 * nsfns.m:
1557 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1558 other files do.
1559
75934b1d
DN
1560 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1561
9f32a766
DN
1562 * s/sol2-6.h: Remove obsolete comments.
1563
c55d2abf
DN
1564 Remove unnecessary alloca.h includes.
1565 * keymap.c: Do not include alloca.h, config.h does that.
1566 * sysdep.c: Likewise. Do not define fwrite, not used.
1567
06ac62b4
SM
15682010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1569
1570 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1571 the HAVE_TERMIO where it belongs (bug#6149).
1572
1ab8293c
SM
15732010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1574
1575 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1576 of bug#6305).
1577
6dcfd253
EZ
15782010-05-30 Eli Zaretskii <eliz@gnu.org>
1579
1580 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1581 state is always cached (bug#6306).
1582
6d26bbb2
EZ
15832010-05-29 Eli Zaretskii <eliz@gnu.org>
1584
06fa4a23
EZ
1585 Fix cursor motion in bidi-reordered continued lines.
1586 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1587 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
1588 over continuation lines in bidi-reordered buffers. Return
1589 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1590 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1591
f5783df3
MA
15922010-05-28 Michael Albinus <michael.albinus@gmx.de>
1593
1594 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1595
7d56b2dd
KH
15962010-05-28 Kenichi Handa <handa@m17n.org>
1597
1598 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1599 Don't sheck SPEC if it is nil.
1600 (font_list_entities): Call font_delete_unmatched if
b925d231 1601 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 1602
e58d4ff7
GM
16032010-05-28 Glenn Morris <rgm@gnu.org>
1604
1605 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1606
f1a5d776
CY
16072010-05-27 Chong Yidong <cyd@stupidchicken.com>
1608
1609 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1610 whether to trash.
1611 (internal_delete_file, Frename_file): Callers changed.
1612 (delete_by_moving_to_trash): Doc fix.
1613 (Fdelete_directory_internal): Don't move to trash.
1614
1615 * callproc.c (delete_temp_file):
1616 * buffer.c (Fkill_buffer): Callers changed.
1617
1618 * lisp.h: Update prototype.
1619
f44a59e6
CY
16202010-05-27 Chong Yidong <cyd@stupidchicken.com>
1621
1622 * xdisp.c (redisplay_window): After redisplay, check if point is
1623 still valid before setting it (Bug#6177).
1624
81ac4f35
GM
16252010-05-27 Glenn Morris <rgm@gnu.org>
1626
1627 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1628 Convert comments to Makefile format.
1629
1630 * Makefile.in (bootstrap-clean): No more Makefile.c.
1631
ccd89fb3
GM
16322010-05-26 Glenn Morris <rgm@gnu.org>
1633
90278cb6
GM
1634 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1635 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1636
ccd89fb3
GM
1637 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1638 Remove.
1639 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1640
b7050583
KH
16412010-05-26 Kenichi Handa <handa@m17n.org>
1642
1643 * composite.c (composition_compute_stop_pos): Fix condition for
1644 backward scanning.
1645
e5458003
GM
16462010-05-25 Glenn Morris <rgm@gnu.org>
1647
c345fe90
GM
1648 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1649 Move before TEMACS_LDFLAGS.
1650 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1651 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1652
2e0689ab
GM
1653 * Makefile.in (NOT_C_CODE): No longer define.
1654 (config.h): No longer include.
1655
8009a5e8
GM
1656 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
1657 variables it may reference.
1658
e5458003
GM
1659 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
1660 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
1661
10f72a37
KH
16622010-05-25 Kenichi Handa <handa@m17n.org>
1663
1664 * dispextern.h (struct composition_it): New members rule_idx and
1665 charpos.
1666
1667 * xdisp.c (set_iterator_to_next): While scanning backward, assume
1668 that the character positions of IT point the last character of the
1669 current grapheme cluster.
1670 (next_element_from_composition): Don't change character positions
1671 of IT.
1672 (append_composite_glyph): Set glyph->charpos to
1673 it->cmp_it.charpos.
1674
1675 * composite.c (autocmp_chars): Change the first argument to RULE,
1676 and try composition with RULE only.
1677 (composition_compute_stop_pos): Record the index number of the
1678 composition rule in CMP_IT->rule_idx.
1679 (composition_reseat_it): Call autocmp_chars repeatedly until the
1680 correct rule of the composition is found.
1681 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
1682 is at the last character of the current grapheme cluster when
1683 CMP_IT->reversed_p is nonzero.
1684
171eda53 16852010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 1686
171eda53
SM
1687 * editfns.c (Fbyte_to_string): New function.
1688
66a9f7f4
SM
16892010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1690
1691 * process.c (Fmake_network_process): Set :host to nil if it's not used.
1692 Suggested by Masatake YAMATO <yamato@redhat.com>.
1693
d8c315d1
EZ
16942010-05-23 Eli Zaretskii <eliz@gnu.org>
1695
171eda53 1696 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 1697
f5b416d2 16982010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1699
1700 * s/netbsd.h: If terminfo is found, use it in preference to
1701 termcap. (Bug#6190) [Backport from trunk]
1702
0416466c
EZ
17032010-05-19 Eli Zaretskii <eliz@gnu.org>
1704
11117830 1705 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
1706
1707 * dispextern.h (struct glyph_row): New members minpos and maxpos.
1708 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
1709 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
1710 and maxpos members instead of start.pos and end.pos, respectively.
1711
1712 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
1713 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
1714 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
1715 (try_window_reusing_current_matrix, try_window_id):
1716 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
1717 (init_from_display_pos, init_iterator): Use EMACS_INT for
1718 character and byte positions.
66a9f7f4 1719 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
1720 arguments for minimum and maximum buffer positions seen by
1721 display_line for this row. Don't use iterator to find the
1722 position following the maximum one; instead, increment the
11117830
EZ
1723 position found by display_line directly. Fix logic; eol_pos
1724 should be tested before the rest. Handle the case of characters
1725 delivered from display vector (bug#6036). Fix tests related to
1726 it->method. Handle the truncated_on_right_p rows.
1727 (RECORD_MAX_MIN_POS): New macro.
1728 (display_line): Use it to record the minimum and maximum buffer
1729 positions for glyphs in the row being assembled. Record the
1730 position of the newline that terminates the line. If word wrap is
1731 in effect, restore minimum and maximum positions seen up to the
1732 wrap point, when iterator returns to it.
1733 (try_window_reusing_current_matrix): Give up if in bidi-reordered
1734 row and cursor not already at point. Restore original pre-bidi
1735 code for unidirectional buffers.
d36fe237
EZ
1736
1737 * dispnew.c (increment_row_positions, check_matrix_invariants):
1738 Increment and check row->start.pos and row->end.pos, in addition
1739 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
1740
11117830
EZ
1741 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
1742 Display truncated_on_left_p and truncated_on_right_p flags.
1743 Formatting fixes.
1744 (pmtxrows): Display the ordinal number of each row. Don't display
1745 rows beyond the last one.
1746
1747 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
1748 it is not copied by bidi_copy_it.
1749
6e83d800
EZ
17502010-05-22 Eli Zaretskii <eliz@gnu.org>
1751
1752 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
1753 (Bug#6237)
1754
110683ad
CY
17552010-05-22 Chong Yidong <cyd@stupidchicken.com>
1756
1757 * image.c (Fimage_flush): Rename from image-refresh.
1758
98fe5161
CY
17592010-05-21 Chong Yidong <cyd@stupidchicken.com>
1760
1761 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
1762 just one window.
1763
1764 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
1765 (clear_image_cache): If the number of cached images is unusually
1766 large, decrease the cache eviction delay (Bug#6230).
1767
e8752c66
GM
17682010-05-21 Glenn Morris <rgm@gnu.org>
1769
66dbf213
GM
1770 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
1771 Move these rules to ns.mk.
1772 * ns.mk: New file.
1773
04384b2d
GM
1774 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
1775
e8752c66
GM
1776 * Makefile.in (CANNOT_DUMP): New, set by configure.
1777 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
1778
2e2bbddb
JL
17792010-05-20 Juri Linkov <juri@jurta.org>
1780
1781 * fileio.c (Fdelete_file): Change interative spec to use
1782 `read-file-name' like in `find-file-read-args' where the default
1783 value is `default-directory' instead of `buffer-file-name'.
1784 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
1785
31c4aaf6
KR
17862010-05-20 Kevin Ryde <user42@zip.com.au>
1787
1788 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1789 (Voverriding_terminal_local_map, Vsystem_key_alist)
1790 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1791
9d5cf9b6
GM
17922010-05-20 Glenn Morris <rgm@gnu.org>
1793
1794 * Makefile.in (DEPDIR): New constant.
1795 (DEPFLAGS): Set with configure, not cpp.
1796 (MKDEPDIR): New, set by configure.
1797 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
1798 (clean): Use $DEPDIR.
1799 (deps_frag): Include from configure.
1800 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1801 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1802
ead6f8f5
EZ
1803 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1804 reallocation of the cache. (Bug#6210)
1805
7f34aec3
GM
18062010-05-19 Glenn Morris <rgm@gnu.org>
1807
d494e8f2
GM
1808 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1809
c1d0dcfd
GM
1810 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1811 (GNULIB_VAR): Remove.
1812 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1813
1814 * m/ibms390x.h (LINKER):
1815 * m/macppc.h (LINKER) [GNU_LINUX]:
1816 * s/aix4-2.h (ORDINARY_LINK):
1817 * s/cygwin.h (LINKER):
1818 * s/darwin.h (ORDINARY_LINK):
1819 * s/gnu.h (ORDINARY_LINK):
1820 * s/netbsd.h (LINKER):
1821 * s/usg5-4.h (ORDINARY_LINK):
1822 Move to configure.
1823
7f34aec3
GM
1824 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1825
754790b6
CY
18262010-05-18 Chong Yidong <cyd@stupidchicken.com>
1827
1828 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1829 prevent stack overflow if number of arguments is too large
1830 (Bug#6214).
1831
161e44d1
JB
18322010-05-18 Juanma Barranquero <lekktu@gmail.com>
1833
1834 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1835
be4ff9da
GM
18362010-05-18 Glenn Morris <rgm@gnu.org>
1837
9539dc5d
GM
1838 * s/gnu-linux.h: Combine two conditionals.
1839
1840 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
1841 $(POST_ALLOC_OBJ).
1842
40dc6bf4
GM
1843 * Makefile.in (RALLOC_OBJ): New, set by configure.
1844 (rallocobj): Replace with the previous variable.
1845 (otherobj): Use $RALLOC_OBJ.
1846
1847 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1848 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1849
be4ff9da
GM
1850 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1851 (gmallocobj, vmlimitobj): Replace with previous two variables.
1852 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1853
16455a85
GM
18542010-05-17 Glenn Morris <rgm@gnu.org>
1855
1856 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1857 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1858
5fdb7468
GM
18592010-05-16 Glenn Morris <rgm@gnu.org>
1860
7ca1f3f9
GM
1861 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1862
7541dad5
GM
1863 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1864
da53fab9
GM
1865 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1866 trailing "/".
1867
b02a6645
GM
1868 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1869 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1870
8877ca0f
GM
1871 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1872 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1873 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1874 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1875 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1876
5fdb7468
GM
1877 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1878 Remove ${STARTFLAGS}, nothing ever sets it.
1879
95adb4b1
DN
18802010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1881
1882 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1883
676b6304
GM
18842010-05-16 Glenn Morris <rgm@gnu.org>
1885
9beab9ce
GM
1886 * Makefile.in (LIBX_BASE): Always define.
1887
8a95f0e7
GM
1888 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1889
676b6304
GM
1890 * Makefile.in (LIBXT): Always define.
1891
6e546d18
GM
18922010-05-15 Glenn Morris <rgm@gnu.org>
1893
4235ca47 1894 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 1895
6e546d18
GM
1896 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1897 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1898
8c5ff6dd
KR
18992010-05-15 Ken Raeburn <raeburn@raeburn.org>
1900
560bb7ae 1901 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
1902 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1903
8b4eb796
KR
1904 * emacs.c (main): Initialize initial-environment and
1905 process-environment before generating from env, not after.
1906
8c5ff6dd
KR
1907 Handle --version reasonably in CANNOT_DUMP configuration.
1908 * emacs.c (emacs_version, emacs_copyright): New string variables.
1909 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1910 (syms_of_emacs): Defvar them, and initialize them from the C
1911 string variables.
1912 (main): If initialization hasn't been done, print initial version
1913 info from the C strings, instead of starting an interactive session.
1914
dbd3f723
EZ
19152010-05-15 Eli Zaretskii <eliz@gnu.org>
1916
d20e1419
EZ
1917 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1918 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
1919 (bidi_paragraph_init): Remove redundant assertion that we are at
1920 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
1921
1922 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1923 (syms_of_xdisp): Defsubr it.
1924
d36fe237
EZ
1925 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1926
dbd3f723
EZ
1927 * Makefile.in: Fix MSDOS-related comments.
1928
02be533b
GM
19292010-05-15 Glenn Morris <rgm@gnu.org>
1930
1a82cca9
GM
1931 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1932 (really-lwlib, really-oldXMenu): Always define.
1933 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1934
3df7b338
GM
1935 * Makefile.in: Simplify cpp conditional.
1936
2b5f541b
GM
1937 * Makefile.in (${ns_appdir}): Simplify using umask.
1938
02be533b
GM
1939 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1940
4e2db1fe
SM
19412010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1942
1943 * eval.c (specbind): Remove left-over duplicate test.
1944 Disallow let-binding frame-local vars. Add comment.
1945
4b292a22
EZ
19462010-05-14 Eli Zaretskii <eliz@gnu.org>
1947
2fe72643 1948 Make the cache of bidi iterator states dynamically allocated.
1edbd309 1949 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
1950 (bidi_init_it): Call it.
1951 (bidi_cache_iterator_state): Enlarge the cache if needed.
1952
4e2db1fe 1953 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
1954 bidi_get_next_char_visually. All callers changed.
1955
82ebc97b
KH
19562010-05-14 Kenichi Handa <handa@m17n.org>
1957
1958 * dispextern.h (struct composition_it): New member reversed_p.
1959
1960 * composite.c (composition_compute_stop_pos): Search backward if
1961 ENDPOS < CHARPOS.
1962 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1963 Set CMP_IT->reversed_p.
b4b6e17e 1964 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 1965
4e2db1fe
SM
1966 * xdisp.c (set_iterator_to_next):
1967 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
1968 scanning backward. Call composition_compute_stop_pos if scan
1969 direction is changed.
1970 (next_element_from_buffer): Call composition_compute_stop_pos with
1971 negative ENDPOS if we are scanning backward.
1972 (next_element_from_composition): Pay attention to
1973 IT->cmp_it.reversed_p.
1974
0e5d7800
KH
19752010-05-14 Kenichi Handa <handa@m17n.org>
1976
560bb7ae 1977 * font.c (font_range): Return the range for the font found at first.
0e5d7800 1978
cb027b32
GM
19792010-05-14 Glenn Morris <rgm@gnu.org>
1980
177b0288
GM
1981 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1982
fbc00890
GM
1983 * Makefile.in (mktime, X11, register): Move undefs to configure.
1984
f14d1dfd
GM
1985 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1986 (MSDOS_X_OBJ): New variable.
1987 (MSDOS_SUPPORT_REAL): New constant.
1988 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1989 (obj): Use MSDOS_X_OBJ.
1990 (lisp): Use MSDOS_SUPPORT as a variable.
1991
11842bd8
GM
1992 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1993 (GPM_MOUSE_SUPPORT): Now it's a constant.
1994 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1995 not cpp.
1996
489d31a4 1997 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 1998 (ns_appresdir): Remove, unused.
e20f1f07 1999
489d31a4
GM
2000 * Makefile.in (SHELL): Move outside cpp section.
2001
cb027b32
GM
2002 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2003
5a903aa9
GM
20042010-05-13 Glenn Morris <rgm@gnu.org>
2005
3369c79f
GM
2006 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2007 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2008
d5e982a6
GM
2009 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2010 HAVE_WINDOW_SYSTEM must be too.
2011
6192e163
GM
2012 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2013 (lisp): Remove WINNT_SUPPORT.
2014
472c5d6b
GM
2015 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2016 Let configure set these variables (to empty) in this case as well.
2017
0116466b
GM
2018 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2019 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2020
5a903aa9
GM
2021 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2022 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2023 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2024 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2025 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2026 the values output by configure.
5a903aa9
GM
2027 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2028
1a0d7c06
GM
20292010-05-12 Glenn Morris <rgm@gnu.org>
2030
b5457f14
GM
2031 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2032 (LINKER_WAS_SPECIFIED): Remove.
2033
1a0d7c06
GM
2034 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2035 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2036 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2037 * s/cygwin.h (LIB_GCC):
2038 * s/freebsd.h (LIB_GCC):
2039 * s/gnu-linux.h (LIB_GCC):
2040 * s/msdos.h (LIB_GCC):
2041 * s/netbsd.h (LIB_GCC):
2042 Move to configure.
2043
3ffd4615 20442010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2045
2046 * ftfont.c: Fix incorrect parentheses of #if condition for
2047 definining M17N_FLT_USE_NEW_FEATURE.
2048
acddf8ae
GM
20492010-05-11 Glenn Morris <rgm@gnu.org>
2050
2051 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2052 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2053
ae5e04fa
EZ
20542010-05-10 Eli Zaretskii <eliz@gnu.org>
2055
2056 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2057 unibyte buffers. See
2058 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2059
7490175b
GM
20602010-05-10 Glenn Morris <rgm@gnu.org>
2061
97efb629
GM
2062 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2063 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2064 (LIBES): Use LIBS_SYSTEM as a variable.
2065 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2066 * s/aix4-2.h (LIBS_SYSTEM):
2067 * s/freebsd.h (LIBS_SYSTEM):
2068 * s/hpux10-20.h (LIBS_SYSTEM):
2069 * s/sol2-6.h (LIBS_SYSTEM):
2070 * s/unixware.h (LIBS_SYSTEM):
2071 Move to configure.
2072
7490175b
GM
2073 * s/aix4-2.h (MAIL_USE_LOCKF):
2074 * s/bsd-common.h (MAIL_USE_FLOCK):
2075 * s/darwin.h (MAIL_USE_FLOCK):
2076 * s/gnu-linux.h (MAIL_USE_FLOCK):
2077 * s/irix6-5.h (MAIL_USE_FLOCK):
2078 * s/template.h (MAIL_USE_FLOCK):
2079 Move to configure.
2080
0235128c 20812010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2082
2083 * Version 23.2 released.
2084
0235128c 20852010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2086
2087 * composite.c (autocmp_chars): Save point as marker before calling
2088 auto-composition-function (Bug#5984).
2089
2090 * lisp.h (restore_point_unwind): Add prototype.
2091
2092 * fileio.c (restore_point_unwind): Remove static attribute.
2093
0235128c 20942010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2095
2096 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2097 new feature of libotf and m17n-flt.
0235128c
SM
2098 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2099 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2100 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2101 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2102 that OUT is NULL. Use OTF_drive_gsub_with_log and
2103 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2104 OTF_drive_gpos.
2105 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2106 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2107 Setup mflt_enable_new_feature and mflt_try_otf.
2108
4721152c
J
21092010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2110
2111 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2112
2113 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2114 box and toolbar (Bug #6139).
2115 (xg_create_tool_bar): Remove comment (Bug #6139).
2116 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2117 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2118
ee0a16cf
JB
21192010-05-08 Juanma Barranquero <lekktu@gmail.com>
2120
2121 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2122 Update dependencies.
2123
96d79611
EZ
21242010-05-08 Eli Zaretskii <eliz@gnu.org>
2125
2126 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2127 R2L lines.
2128
40c17879
GM
21292010-05-08 Glenn Morris <rgm@gnu.org>
2130
7b42b29f
GM
2131 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2132
40c17879
GM
2133 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2134 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2135 (termcapobj): Replace with TERMCAP_OBJ.
2136 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2137 (LIBES): Use LIBS_TERMCAP as a variable.
2138
2139 * s/freebsd.h (osreldate.h): No longer include, since this file
2140 does not use __FreeBSD_version any more.
2141
2142 * s/aix4-2.h (TERMINFO):
2143 * s/cygwin.h (TERMINFO):
2144 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2145 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2146 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2147 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2148 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2149 * s/irix6-5.h (TERMINFO):
2150 * s/netbsd.h (LIBS_TERMCAP):
2151 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2152 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2153 * s/usg5-4.h (TERMINFO):
2154 Move to configure.
2155
94b612ad
SM
21562010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2157
2158 * eval.c (unbind_to): Don't unbind a local binding into the global
2159 binding when the local binding disappeared. Inversely, don't unbind
2160 a global binding into a newly created local binding.
2161 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2162 can specify the frame to use, when applicable. Adjust callers.
2163
15e12598 21642010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2165 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2166
2167 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2168
f724825e
EZ
21692010-05-07 Eli Zaretskii <eliz@gnu.org>
2170
5cba3209
EZ
2171 * w32fns.c: Include w32.h.
2172 (Fw32_shell_execute): Decode the error message before passing it
2173 to `error'. (Bug#6126)
2174
d16bdfc3
EZ
2175 * msdos.c (dos_set_window_size):
2176 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2177 instead of `XSYMBOL (foo)->value'.
2178
59d93e87
EZ
21792010-05-07 Eli Zaretskii <eliz@gnu.org>
2180
9fdec8bc
EZ
2181 Fix the MS-DOS build, broken by autoconfiscation.
2182
2183 * Makefile.in: Don't use Make-style comments past the "start of
2184 cpp stuff" line.
2185 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2186
2187 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2188 edited directly by msdos/sed1v2.inp).
f724825e 2189
2f86b22b
GM
21902010-05-07 Glenn Morris <rgm@gnu.org>
2191
2192 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2193 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2194 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2195 move out of cpp section.
2196 * s/freebsd.h (LD_SWITCH_SYSTEM):
2197 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2198 * s/netbsd.h (LD_SWITCH_SYSTEM):
2199 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2200
49ebbd65
DN
22012010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2202
2203 Define LIB_STANDARD and START_FILES using autoconf.
2204 * s/usg5-4.h (LIB_STANDARD):
2205 * s/netbsd.h (START_FILES):
2206 * s/irix6-5.h (LIB_STANDARD):
2207 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2208 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2209 * s/freebsd.h (START_FILES):
2210 * s/darwin.h (START_FILES):
2211 * s/cygwin.h (START_FILES):
2212 * s/aix4-2.h (LIB_STANDARD):
2213 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2214 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2215 autoconf, not cpp.
2216
d43c06d6
DN
22172010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2218
28823648
DN
2219 Remove NEED_BSDTTY and NEED_UNISTD_H.
2220 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2221 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2222 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2223 <sys/ptyio.h> and <unistd.h>.
2224
aca00430
DN
2225 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2226
d43c06d6
DN
2227 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2228 * s/gnu.h (START_FILES): Remove empty definition.
2229
3e56b11d
JD
22302010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2231
2232 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2233
e3cf0cde
GM
22342010-05-06 Glenn Morris <rgm@gnu.org>
2235
2236 * Makefile.in (CPP, LN_S): Remove unused variables.
2237
774b9a60
SM
22382010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2239
2240 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2241
4ab92842
LM
22422010-05-05 Lawrence Mitchell <wence@gmx.li>
2243
2244 * m/sparc.h: Fix typo in earlier change.
2245
178f2507
SM
22462010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2247
2248 Misc tweaks.
2249 * eval.c (Fdefvaralias): Remove unintended nested if.
2250 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2251
80f00217 22522010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2253
2254 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2255
ef03a4e6
DN
22562010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2257
58eb6cf0
DN
2258 Remove BSD_PGRPS.
2259 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2260 * s/gnu-linux.h (BSD_PGRPS): Remove.
2261 * term.c (dissociate_if_controlling_tty):
2262 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2263 (init_sys_modes, reset_sys_modes):
2264 * emacs.c (main):
2265 * callproc.c (Fcall_process, child_setup): Remove code depending
2266 on BSD_PGRPS.
2267
ef03a4e6
DN
2268 Remove POSIX_SIGNALS.
2269 * s/usg5-4.h (POSIX_SIGNALS):
2270 * s/netbsd.h (POSIX_SIGNALS):
2271 * s/msdos.h (POSIX_SIGNALS):
2272 * s/ms-w32.h (POSIX_SIGNALS):
2273 * s/hpux11.h (POSIX_SIGNALS):
2274 * s/gnu.h (POSIX_SIGNALS):
2275 * s/gnu-linux.h (POSIX_SIGNALS):
2276 * s/freebsd.h (POSIX_SIGNALS):
2277 * s/darwin.h (POSIX_SIGNALS):
2278 * s/cygwin.h (POSIX_SIGNALS):
2279 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2280 * s/unixware.h:
2281 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2282 * process.c (create_process):
2283 * syssignal.h:
2284 * sysdep.c (wait_for_termination, init_signals):
2285 * process.c (create_process):
2286 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2287 remove all code that assumes the contrary.
2288
49628785
GM
22892010-05-04 Glenn Morris <rgm@gnu.org>
2290
27a2cdfc
GM
2291 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2292 variable.
2293 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2294 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2295 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2296 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2297 LD_SWITCH_SYSTEM_tmp.
2298 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2299 New variables, set by configure.
2300
eb21eab5
GM
2301 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2302 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2303 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2304 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2305 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2306
49628785
GM
2307 * s/aix4-2.h (C_SWITCH_SYSTEM):
2308 * m/alpha.h (C_SWITCH_MACHINE):
2309 Move to configure.in.
2310 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2311 New variables, set by configure.
2312 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2313 $c_switch_machine and $c_switch_system.
2314
7dff330b
DN
23152010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2316
2317 * s/hpux10-20.h (LIB_STANDARD): New definition.
2318 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2319 on it, not used anymore.
2320
53967e09
CY
23212010-05-03 Chong Yidong <cyd@stupidchicken.com>
2322
2323 * eval.c (internal_condition_case_n): Rename from
2324 internal_condition_case_2.
2325 (internal_condition_case_2): New function.
2326
2327 * xdisp.c (safe_call): Use internal_condition_case_n.
2328
2329 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2330 (internal_delete_file, Frename_file): Callers changed.
2331
2332 * buffer.c (Fkill_buffer):
2333 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2334
2335 * lisp.h: Update prototypes.
2336
3dee6fdb
GM
23372010-05-03 Glenn Morris <rgm@gnu.org>
2338
2339 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2340 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2341 (LIBXT): Set with configure, not cpp.
2342 (LIBX): Remove.
2343 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2344
a101e0fb
DN
23452010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2346
2347 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2348 The FreeBSD is not needed, the default works, Solaris version is
2349 not needed, and the remaining case is not supported by configure.
2350
f63d0028
JD
23512010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2352
2353 * xsmfns.c (CHDIR_OPT): New define.
2354 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2355 restarting emacs.
2356
2357 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2358 shut_down_emacs.
2359
2360 * emacs.c (USAGE1): Mention --chdir.
2361 (main): Handle --chdir.
2362 (standard_args): Add --chdir.
2363 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2364 #5552).
2365
e4814a9f
DN
23662010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2367
cd03c74a
DN
2368 Remove LD_SWITCH_MACHINE.
2369 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2370 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2371
c3a398a1
DN
2372 Clean up IRIX code.
2373 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2374 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2375
87e7285c
DN
2376 Clean up AIX code.
2377 * m/ibmrs6000.inp: Remove file, unused.
2378 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2379 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2380 definition ...
2381 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2382
80f00217
JB
2383 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2384 unused.
e4814a9f 2385
59ca28de
EZ
23862010-05-01 Eli Zaretskii <eliz@gnu.org>
2387
197daef4
EZ
2388 Emulate POSIX_SIGNALS on MS-Windows.
2389
2390 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2391 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
2392
2393 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2394 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2395 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2396
80f00217
JB
2397 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2398 New stubs.
197daef4 2399
af7c7572
EZ
2400 Miscellaneous fixes of bidi display.
2401
59ca28de
EZ
2402 * xdisp.c (find_row_end): New function, refactored from display_line.
2403 (display_line): Use it.
017ea819
EZ
2404 (extend_face_to_end_of_line): In almost-filled rows, extend only
2405 if the row is R2L and not continued.
166e930d 2406 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 2407 Preserve overlay and string info in row->end.
166e930d
EZ
2408 (insert_left_trunc_glyphs): Support addition of left truncation
2409 glyphs to R2L rows.
b47e0dcf 2410 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
2411 glyph between adjacent windows. Fix a crash when a display string
2412 is continued to the next line. Don't return zero if cursor was
2413 found by `cursor' property of a display string.
b47e0dcf
EZ
2414 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2415 test for that explicitly.
59ca28de 2416
7acac9f4
GM
24172010-05-01 Glenn Morris <rgm@gnu.org>
2418
2419 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2420 for clarity.
2421 (OTHER_OBJ): Remove.
2422 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2423 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2424
45841e65
KK
24252010-05-01 Karel Klíč <kklic@redhat.com>
2426
2427 * fileio.c (Ffile_selinux_context): Context functions may return null.
2428
afc61943
DN
24292010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2430
80f00217 2431 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 2432
5a1bb006
GM
24332010-04-30 Glenn Morris <rgm@gnu.org>
2434
2435 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2436 (OTHER_OBJ): Define as a separate variable, for clarity.
2437
210af043
J
24382010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2439
2440 * xsettings.c: include limits.h and update file comment.
2441
0a7df391
GM
24422010-04-30 Glenn Morris <rgm@gnu.org>
2443
d5096f16
GM
2444 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2445 Set with configure, not cpp.
2446 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2447
7eb1ac33
GM
2448 * Makefile.in (mallocobj): Remove.
2449 (otherobj): Simplify using @OTHER_OBJ@.
2450
517d086b
GM
2451 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2452 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2453 Don't bother making nsgui.h dependency platform-specific.
2454
0a7df391
GM
2455 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2456
d6d23852
SM
24572010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2458
d2630aef
SM
2459 * process.c (read_process_output, exec_sentinel): Don't burp if the
2460 sentinel/filter kills the current buffer (bug#6060).
2461
f9dddf52 2462 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
2463 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2464 Remove unused var `args'.
2465 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2466 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2467 * doc.c (store_function_docstring): Use XSETCAR.
2468
f1e3642a
GM
24692010-04-28 Glenn Morris <rgm@gnu.org>
2470
faf535f8
GM
2471 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2472 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2473
c40f9449
GM
2474 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2475
658f86ca
GM
2476 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2477 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2478
bc0b5f61
GM
2479 * Makefile.in (FONT_OBJ): New, set by configure.
2480 (FONT_DRIVERS): Use $FONT_OBJ.
2481
294c50a0
GM
2482 * Makefile.in (LIBXMU): Set with configure, not cpp.
2483 * s/aix4-2.h (LIBXMU):
2484 * s/hpux10-20.h (LIBXMU):
2485 Remove definition, now set in configure.
2486
e6ec4e99
GM
2487 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2488
f1e3642a
GM
2489 * m/amdx86-64.h [i386]: Move this test to configure.in.
2490
c6ea2936
GM
24912010-04-27 Glenn Morris <rgm@gnu.org>
2492
8fdac2c3
GM
2493 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2494 * s/unixware.h (NEED_LIBW): Remove definition.
2495
986fb647
GM
2496 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2497 (TOOLKIT_LIBW): New, set by configure.
2498 (@X_TOOLKIT_TYPE@): No longer define it.
2499
c6ea2936
GM
2500 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
2501 (MOTIF_LIBW): Set with configure, not cpp.
2502 * s/aix4-2.h (LIB_MOTIF):
2503 * s/gnu-linux.h (LIB_MOTIF):
2504 * s/unixware.h (LIB_MOTIF): Move to configure.in.
2505
aaa36002
DN
25062010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2507
2508 Reduce CPP usage.
2509 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
2510 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
2511 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
2512 definitions and undefs. Inline definitions in the only user.
2513 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 2514
b678dd8b
GM
25152010-04-27 Glenn Morris <rgm@gnu.org>
2516
76cda504
GM
2517 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
2518 since the defaults (set by the system file) are fine in most cases.
2519 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
2520 * m/ibms390x.h (START_FILES, LIB_STANDARD):
2521 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
2522 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
2523 Remove definitions, since they are set correctly in s/gnu-linux.h.
2524 * s/freebsd.h (START_FILES, LIB_STANDARD):
2525 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2526 * s/hpux10-20.h (START_FILES):
2527 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
2528 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
2529
b678dd8b
GM
2530 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
2531 (MOTIF_LIBW): Use $LIBXP.
2532 (otherobj): Use $WIDGET_OBJ.
2533
9452ded1
DN
25342010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2535
7e10844c
DN
2536 * Makefile.in (LIBS_MACHINE): Remove, unused.
2537
9452ded1
DN
2538 Use autoconf instead of cpp for LIB_MATH.
2539 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2540 * s/cygwin.h (LIB_MATH): Likewise.
2541 * Makefile.in (LIB_MATH): Do not define with cpp.
2542 (LIBES): Use autoconf for LIB_MATH.
2543
fcebfc6a
KH
25442010-04-26 Kenichi Handa <handa@m17n.org>
2545
2546 * composite.c (Ffind_composition_internal): Fix the return value
2547 for an automatic composition.
2548
39e2ad1b
DN
25492010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2550
2551 Remove all NO_ARG_ARRAY uses.
2552 * fns.c (concat2, concat3, nconc2):
2553 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2554 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2555 * m/xtensa.h (NO_ARG_ARRAY):
2556 * m/template.h (NO_ARG_ARRAY):
2557 * m/sparc.h (NO_ARG_ARRAY):
2558 * m/sh3.h (NO_ARG_ARRAY):
2559 * m/mips.h (NO_ARG_ARRAY):
2560 * m/macppc.h (NO_ARG_ARRAY):
2561 * m/iris4d.h (NO_ARG_ARRAY):
2562 * m/intel386.h (NO_ARG_ARRAY):
2563 * m/ibms390x.h (NO_ARG_ARRAY):
2564 * m/ibms390.h (NO_ARG_ARRAY):
2565 * m/ibmrs6000.h (NO_ARG_ARRAY):
2566 * m/ia64.h (NO_ARG_ARRAY):
2567 * m/hp800.h (NO_ARG_ARRAY):
2568 * m/arm.h (NO_ARG_ARRAY):
2569 * m/amdx86-64.h (NO_ARG_ARRAY):
2570 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2571
adf4f59c
EZ
25722010-04-25 Eli Zaretskii <eliz@gnu.org>
2573
6bdf5d65
EZ
2574 * xdisp.c (display_line): Don't assume 2nd call to
2575 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
2576 (iterate_out_of_display_property): New function, body from pop_it.
2577 (pop_it): Use it.
adf4f59c 2578
dfbbda83
GM
25792010-04-24 Glenn Morris <rgm@gnu.org>
2580
2581 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2582 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2583 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2584 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2585
2d4018aa
EZ
25862010-04-24 Eli Zaretskii <eliz@gnu.org>
2587
a49884a6
EZ
2588 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2589 use `get_next_display_element' and `set_iterator_to_next' to
2590 advance to the next character, when looking for the character that
2591 begins the next row.
2592
76db6fcc 2593 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
2594 definition of "struct Lisp_Symbol".
2595
70eab5c1
GM
25962010-04-24 Glenn Morris <rgm@gnu.org>
2597
2598 * Makefile.in (CRT_DIR): New variable, set by configure.
2599 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2600 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2601
1ad4cc3d
DN
26022010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2603
e769f484
DN
2604 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2605
4196ff33
DN
2606 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2607
879b0ee4
DN
2608 Remove redundant flags.
2609 * s/freebsd.h (C_SWITCH_SYSTEM):
2610 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2611 * s/netbsd.h (C_SWITCH_SYSTEM):
2612 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2613 of these.
2614
03cbbcb8
DN
2615 Simplify m/intel386.h.
2616 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2617 user: ecrt0.c.
2618 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2619 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2620 the only user: s/unixware.h.
2621 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2622 from m/intel386.h.
2623 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2624 moved here from m/intel386.h.
2625
1ad4cc3d
DN
2626 * m/mips.h: Remove #if 0 code.
2627
8785b888
EZ
26282010-04-23 Eli Zaretskii <eliz@gnu.org>
2629
728588cc
EZ
2630 Fix display of composed characters from L2R scripts in bidi buffers.
2631 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2632 After advancing IT past the composition, resync the bidi iterator
2633 with IT's position. (Bug#5977)
2634
a63f80b4
DN
26352010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2636
2637 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2638 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2639
ff5dec5c
SM
26402010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2641
2642 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
2643
8785b888
EZ
26442010-04-23 Eli Zaretskii <eliz@gnu.org>
2645
58ccf243 2646 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
2647 * xdisp.c (pop_it): When the stack is popped after displaying
2648 from a string, bidi-iterate to exit from the text portion covered
2649 by the `display' property or overlay. (Bug#5988, bug#5920)
2650
feeb1604
DN
26512010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2652
8e324eb6
DN
2653 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
2654 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
2655
809fcaba
DN
2656 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
2657 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
2658
ed710380
DN
2659 Simplify STARTFILES definition.
2660 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
2661 relying on Makefile.in to define it.
2662 * s/cygwin.h (START_FILES): Likewise.
2663 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
2664
feeb1604
DN
2665 Clean up Solaris code.
2666 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
2667 (LIB_MOTIF): Remove, configure takes care of this.
2668 (NOT_USING_MOTIF): Remove, unused.
2669 * xrdb.c: Remove #if 0-ed #include.
2670 (SYSV): Remove conditional for old SysV.
2671 * sysdep.c (closedir): Remove conditional code for Solaris,
2672 Solaris has closedir.
2673
a0d0b563
JD
26742010-04-22 Jan Djärv <jan.h.d@swipnet.se>
2675
2676 * xsettings.c (read_and_apply_settings): Check if current_font is
2677 NULL before strcmp (Bug#6001).
2678
56bae7c7
DN
26792010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
2680
2681 Clean up HP-UX files.
2682 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
2683 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
2684 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
2685 * s/hpux10-20.h: ... to the only user, here.
2686
372b7a95
EZ
26872010-04-21 Eli Zaretskii <eliz@gnu.org>
2688
2689 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
2690 use buffer-local values of paragraph-start and paragraph-separate.
2691 <paragraph_start_re, paragraph_separate_re>: Rename from
2692 fallback_paragraph_start_re and fallback_paragraph_separate_re.
2693 (Bug#5992)
2694
f904c0f9
JD
26952010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2696
2697 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
2698 current_tool_bar_style are new.
2699 (store_config_changed_event): Rename from store_font_changed_event.
2700 (XSETTINGS_TOOL_BAR_STYLE): New define.
2701 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
2702 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
2703 HAVE_XFT.
2704 (something_changedCB): store_font_changed_event is now
2705 store_config_changed_event
2706 (parse_settings): Rename from parse_xft_settings. Read
2707 non-xft xsettings outside #ifdef HAVE_XFT.
2708 (read_settings): Renamed from read_xft_settings.
2709 (apply_xft_settings): Take current settings as parameter. Do not
2710 call read_(xft)_settings.
2711 (read_and_apply_settings): New function.
2712 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
2713 read_and_apply_settings if there are settings to be read.
2714 (init_xsettings): Renamed from init_xfd_settings.
2715 Call read_and_apply_settings unconditionally.
2716 (xsettings_initialize): Call init_xsettings.
2717 (Ftool_bar_get_system_style): New function.
2718 (syms_of_xsettings): Define Qmonospace_font_name and
2719 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 2720 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 2721 dynamic-setting.
31a01b90 2722 Move misplaced HAVE_GCONF
f904c0f9
JD
2723
2724 * xsettings.h (Ftool_bar_get_system_style): Declare.
2725
2726 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
2727 Qtext, Qboth, Qboth_horiz are new.
2728 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
2729 Vtool_bar_style, tool_bar_max_label_size.
2730
2731 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
2732
2733 * keyboard.c: QClabel is new.
2734 (parse_tool_bar_item): Take out QClabel from tool bar items.
2735 Try to construct a label if ther is no QClabel.
2736 (syms_of_keyboard): Intern :label as QClabel.
2737
2738 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
2739 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
2740 New.
2741
2742 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
2743 dynamic-setting.el.
2744
2745 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
2746 (xg_make_tool_item, xg_show_toolbar_item): New function.
2747 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
2748 Call xg_make_tool_item to make a tool bar item.
2749 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
2750
2751 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
2752 into account for toolbars.
2753
c632dfda
JD
27542010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2755
2756 * data.c (make_blv): Declarations before code (Bug#5993).
2757
10efe302
GM
27582010-04-21 Glenn Morris <rgm@gnu.org>
2759
2760 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
2761 Define using autoconf, not cpp.
2762 (LIBXSM): New variable, set by autoconf.
2763 (LIBXT): Use $LIBXSM.
2764
4285ac5a
DN
27652010-04-21 Dan Nicolaescu <local_user@dannlt>
2766
3ec759e7
DN
2767 Remove NOMULTIPLEJOBS, unused.
2768 * s/template.h (NOMULTIPLEJOBS):
2769 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
2770
4285ac5a
DN
2771 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
2772 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
2773 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
2774 detects -znocombreloc and passes it to the linker
2775 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
2776
2807228d
GM
27772010-04-21 Glenn Morris <rgm@gnu.org>
2778
2779 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
2780
574c05e2
KK
27812010-04-21 Karel Klíč <kklic@redhat.com>
2782
2783 * Makefile.in (LIBSELINUX_LIBS): New.
2784 (LIBES): Add $LIBSELINUX_LIBS.
2785 * eval.c, lisp.h (call7): New function.
2786 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
2787 (Ffile_selinux_context, Fset_file_selinux_context):
2788 New functions.
2789 (Fcopy_file): New parameter preserve-selinux-context.
2790 (Frename_file): Preserve selinux context when renaming by copy-file.
2791
91eac4bb 27922010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 2793 Eli Zaretskii <eliz@gnu.org>
91eac4bb 2794
50426a04
JB
2795 Don't depend on cm.c or termcap.c on Windows, use stubs.
2796 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
2797 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
2798 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
2799 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
2800 (sys_tputs, sys_tgetstr): New stubs.
2801 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2802 (tputs, tgetstr): New; define to sys_*.
91eac4bb 2803
938efb77
JB
28042010-04-20 Juanma Barranquero <lekktu@gmail.com>
2805
2806 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2807
b4bf28b7
SM
28082010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2809
8b1e1112
SM
2810 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2811 Just signal a warning rather than an error when inside a let.
2812 (Fmake_variable_frame_local): Add the same test.
2813
933ac235
SM
2814 * font.c (syms_of_font): Make the style table vars read-only.
2815
b4bf28b7
SM
2816 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2817 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2818
2819 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2820
93d68d0c
EZ
28212010-04-20 Eli Zaretskii <eliz@gnu.org>
2822
2823 Fix R2L paragraph display on TTY.
2824
2825 * xdisp.c (unproduce_glyphs): New function.
2826 (display_line): Use it when produced glyphs are discarded from R2L
2827 glyph rows.
2828 (append_composite_glyph): In R2L rows, prepend the glyph rather
2829 than appending it.
2830
2831 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2832 rather than append it. Set up the resolved_level and bidi_type
2833 attributes of the appended glyph.
283ccc18
EZ
2834 (produce_special_glyphs): Mirror the backslash continuation
2835 character in R2L lines.
93d68d0c 2836
283ccc18 2837 Implement display of R2L paragraphs in GUI sessions.
26cdf528 2838
283ccc18
EZ
2839 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2840 append_stretch_glyph.
2841 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2842 off-by-one error in computing x at end of text in the row.
2843 (append_stretch_glyph): In reversed row, prepend the glyph rather
2844 than append it. Set resolved_level and bidi_type of the glyph.
2845 (extend_face_to_end_of_line): If the row is reversed, prepend a
2846 stretch glyph whose width is such that the rightmost glyph will be
2847 drawn at the right margin of the window. Fix off-by-one error on
2848 TTY frames in testing whether a line needs face extension. Fix
2849 face extension at ZV. If this is the last glyph row, use
2850 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2851 region face.
2852 (set_cursor_from_row, display_line): Use
26cdf528
EZ
2853 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2854 row->continuation_lines_width.
283ccc18
EZ
2855 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2856 are at ZV. Fixes a crash when reseated to ZV by
2857 try_window_reusing_current_matrix.
45903529
EZ
2858 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2859 which happens with R2L glyph rows. Fixes a crash when inserting a
2860 character at end of an R2L line.
283ccc18
EZ
2861 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2862 treat them as having zero-width characters. Improve comments.
2863 Don't reverse pos_before and pos_after for reversed glyph rows.
2864 Set cursor.x to negative value when the cursor might be on the
2865 left fringe.
2866 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2867 left fringe, not the right one.
f951a506
EZ
2868 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2869 (erase_phys_cursor): For reversed cursor_row, support cursor on
2870 the left fringe.
2871
283ccc18
EZ
2872 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2873 of continuation indicators on the fringes.
2874 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2875 left fringe.
2876
f951a506
EZ
2877 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2878 draw cursor on the left fringe.
2879
2880 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2881 cursor on the left fringe.
2882
f951a506
EZ
2883 * dispnew.c (update_text_area): Handle reversed desired rows when
2884 the cursor is on the left fringe.
2885 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2886 below, not by 0, for when the cursor is on the left fringe.
2887
3bb49aaf
JD
28882010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2889
2890 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2891 widget is a scrollbar.
2892
c0be27fd
KH
28932010-04-20 Kenichi Handa <handa@m17n.org>
2894
2895 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2896 only when the arg CHARSET_LIST is nil.
2897
ce5b453a
SM
28982010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2899
2900 Make variable forwarding explicit rather the using special values.
2901 Basically, this makes the structure of buffer-local values and object
2902 forwarding explicit in the type of Lisp_Symbols rather than use
2903 special Lisp_Objects for that. This tends to lead to slightly more
2904 verbose code, but is more C-like, simpler, and makes it easier to make
2905 sure we handled all cases, among other things by letting the compiler
2906 help us check it.
2907 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2908 Removing forwarding objects.
2909 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2910 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2911 explicit rather than hiding them inside Lisp_Object "values".
2912 (XFWDTYPE): New macro.
2913 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2914 (XBUFFER_LOCAL_VALUE): Remove.
2915 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2916 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2917 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2918 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2919 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2920 Remove the Lisp_Misc_* header.
2921 (struct Lisp_Buffer_Local_Value): Redefine.
2922 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2923 (struct Lisp_Misc_Any): Add filler to get the right size.
2924 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2925 Lisp_Intfwd.
2926 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2927 (DEFVAR_KBOARD): Allocate a forwarding object.
2928 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2929 (let_shadows_global_binding_p): New function.
2930 (union Lisp_Val_Fwd): New type.
2931 (make_blv): New function.
2932 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2933 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2934 (swap_in_symval_forwarding, find_symbol_value, Fset)
2935 (let_shadows_buffer_binding_p, set_internal, default_value)
2936 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2937 (Fkill_local_variable, Fmake_variable_frame_local)
2938 (Flocal_variable_p, Flocal_variable_if_set_p)
2939 (Fvariable_binding_locus):
2940 * xdisp.c (select_frame_for_redisplay):
2941 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2942 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2943 * frame.c (store_frame_param):
2944 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2945 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2946 value structure.
2947 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2948 (clone_per_buffer_values): Only adjust markers into the current buffer.
2949 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2950 (Fbuffer_local_value, set_buffer_internal_1)
2951 (swap_out_buffer_local_variables):
2952 Adapt to the new symbol value structure.
2953 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2954 (defvar_per_buffer): Take a new arg for the fwd object.
2955 (buffer_lisp_local_variables): Return a proper alist (different fix
2956 for bug#4138).
2957 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2958 (Fgarbage_collect): Don't handle buffer_defaults specially.
2959 (mark_object): Handle new symbol value structure rather than the old
2960 special Lisp_Misc_* objects.
2961 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2962 * term.c (set_tty_color_mode):
2963 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2964 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2965 a buffer_local_flags.
2966 * print.c (print_object): Get rid of impossible forwarding objects.
2967
fd3998ff
EZ
29682010-04-19 Eli Zaretskii <eliz@gnu.org>
2969
2970 * bidi.c (bidi_get_type, bidi_get_category)
2971 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
2972 (bidi_type_of_next_char, bidi_level_of_next_char):
2973 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 2974
e42cd1a7
JB
29752010-04-19 Juanma Barranquero <lekktu@gmail.com>
2976
2977 * dired.c (Ffile_attributes): Fix typo in docstring.
2978
6e104790 29792010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
2980
2981 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2982 NSInteger (Bug#5811).
2983
6e104790 29842010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
2985
2986 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2987 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2988
6e104790 29892010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
2990
2991 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2992
6e104790
SM
29932010-04-19 Chong Yidong <cyd@stupidchicken.com>
2994
2995 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
2996 terminal frames (Bug#5837).
2997
37dcfea0
EZ
29982010-04-19 Eli Zaretskii <eliz@gnu.org>
2999
d1da276f
EZ
3000 * .gdbinit (xsubchartable): New command.
3001
37dcfea0
EZ
30022010-04-19 Eli Zaretskii <eliz@gnu.org>
3003
3004 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3005 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3006 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3007 and
3008 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3009
e9515805
SM
30102010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3011
3012 * alloc.c (Fpurecopy): Hash-cons if requested.
3013 (syms_of_alloc): Update purify-flag docstring.
3014
22aa44a8
JD
30152010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3016
3017 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3018 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3019
ebb5722e
EZ
30202010-04-17 Eli Zaretskii <eliz@gnu.org>
3021
3022 Fix a crash when an NSM character is inserted at BEGV.
3023
3024 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3025 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3026 NEUTRAL_B or UNKNOWN_BT.
3027
0f4442ef
EZ
30282010-04-16 Eli Zaretskii <eliz@gnu.org>
3029
3030 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3031 other rows with cursor unless they are different from this row and
3032 this row is part of a continued line. (Bug#5943)
3033
7d4e45f8
DN
30342010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3035
3036 * s/freebsd.h: Restore osreldate.h include.
3037 Suggested by Naohiro Aota.
3038
5ba5ec85
J
30392010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3040
3041 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3042
20af301d
CY
30432010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3044
3045 * s/cygwin.h: Avoid linking against static libgcc.
3046
a4b000fb
JL
30472010-04-15 Juri Linkov <juri@jurta.org>
3048
3049 * window.c: Add Qscroll_command.
3050 Remove Vscroll_preserve_screen_position_commands.
3051 (window_scroll_pixel_based, window_scroll_line_based): Check the
3052 `scroll-command' property on the last command instead of searching
3053 the last command in Vscroll_preserve_screen_position_commands.
3054 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3055 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3056 (scroll-preserve-screen-position): Doc fix.
3057 (Vscroll_preserve_screen_position_commands): Remove variable.
3058
bc319ba4
DN
30592010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3060
6bb24457
DN
3061 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3062
19d4c244
DN
30632010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3064
3065 Reduce cpp use in Makefile.in.
3066 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3067 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3068 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3069 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3070 (CRT0_COMPILE): Remove, inline it in the only user.
3071
32129746
JL
30722010-04-14 Juri Linkov <juri@jurta.org>
3073
3074 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3075 `scroll-up-command' and `M-v' from `scroll-down' to
3076 `scroll-down-command'.
3077
9013a7f8
JL
30782010-04-14 Juri Linkov <juri@jurta.org>
3079
3080 * window.c (Vscroll_preserve_screen_position_commands): New variable
3081 with the default value as the list of Qscroll_down and Qscroll_up.
3082 (window_scroll_pixel_based, window_scroll_line_based): Search the
3083 last command in the list Vscroll_preserve_screen_position_commands
3084 instead of comparing with Qscroll_up and Qscroll_down.
3085
4bef8d26
JD
30862010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3087
92848133
JD
3088 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3089 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3090 does that.
3091
4bef8d26
JD
3092 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3093 to zero.
3094
58b963f7
SM
30952010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3096
84164a0d
SM
3097 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3098
2b0a91e7
SM
3099 Try to solve the problem of spurious EOF chars in long lines of text
3100 sent to interactive subprocesses.
3101 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3102 (system_process_attributes): Remove unused var `ttotal'.
3103 * process.c (send_process): Don't bother breaking long line with EOF
3104 chars when talking to ttys any more.
3105 (wait_reading_process_output): Output a warning when called in such
3106 a way that it could block without being interruptible.
3107
58b963f7
SM
3108 Try to detect file modification within the same second.
3109 * buffer.h (struct buffer): New field modtime_size.
3110 * buffer.c (reset_buffer): Initialize it.
3111 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3112 (Fverify_visited_file_modtime): Check it.
3113 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3114 (Fset_visited_file_modtime): Set (or clear) it.
3115
01f5787b
SM
31162010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3117
3118 * process.c (status_notify): Remove unused var `ro'.
3119
83725342
JD
31202010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3121
3122 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3123 more than one visual (Bug#5938).
3124
b9465836
DN
31252010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3126
50426a04
JB
3127 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3128 Undefine.
b9465836 3129
8d9c8ece
DN
31302010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3131
b1f52161
DN
3132 Remove C_SWITCH_SYSTEM_TEMACS.
3133 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3134 (malloc, realloc, free): Use emacs, not temacs for conditional
3135 definition.
3136
3137 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3138 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3139
8d9c8ece
DN
3140 Use autoconf, not cpp for some variables.
3141 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3142 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3143 (ALL_CFLAGS): Use them as make variables.
3144 (really-lwlib, really-oldXMenu): Do not pass them.
3145
1ecb2d3f
JD
31462010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3147
3148 * xmenu.c (apply_systemfont_to_dialog): New.
3149 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3150
3a4fa2f2
SM
31512010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3152
97e53006
SM
3153 * process.c (exec_sentinel): Preserve current-buffer.
3154
3a4fa2f2
SM
3155 * process.c (read_process_output): Move the save-current-buffer to
3156 apply to both the filter and the non-filter branches.
3157
88df7221
DN
31582010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3159
3160 * s/msdos.h (UNEXEC): New definition.
3161
5634ff85
YM
31622010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3163
6eff5c3d
YM
3164 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3165 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3166
3167 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3168 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3169 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3170 TRY_WINDOW_CHECK_MARGINS.
3171
3172 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3173 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3174 width only when it is for padding.
5634ff85 3175
b13aef54
J
31762010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3177
3178 * xfns.c (Fx_show_tip): Call try_window in a loop until
3179 fonts_changed_p is zero (Bug#2423).
3180
21d28484
EZ
31812010-04-08 Eli Zaretskii <eliz@gnu.org>
3182
3183 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3184 the end of TEXT_AREA. (Bug#5856)
3185
0269ef77
JD
31862010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3187
3188 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3189 HAVE_GCONF.
3190
5930fe97
EZ
31912010-04-08 Eli Zaretskii <eliz@gnu.org>
3192
3193 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3194 prev.orig_type, for resolving type of NSM. (Bug#5858)
3195
99852628
JD
31962010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3197
3198 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3199 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3200 in current_font.
3201 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3202 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3203 New functions.
3204 (syms_of_xsettings): Initialize current_font.
3205 defsubr Sfont_get_system_normal_font.
99852628
JD
3206
3207 * xsettings.h (Ffont_get_system_normal_font,
3208 xsettings_get_system_normal_font): Declare.
3209
3210 * xfns.c (extern xlwmenu_default_font): Remove.
3211 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3212 to xlwmenu.c.
3213
3214 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3215 menu items in UTF-8.
3216
3217 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3218 (apply_systemfont_to_menu): New function.
3219 (set_frame_menubar, create_and_show_popup_menu): Call
3220 apply_systemfont_to_menu.
3221
7fc874c4
J
32222010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3223
3224 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3225 FRAME_LINE_TO_PIXEL_Y.
3226
3227 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3228 pixelwidth/height.
3229
863bf481
DN
32302010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3231
5e5a3b92
DN
3232 Simplify code for HP machines.
3233 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3234 for GNU_LINUX, not needed.
3235 (UNEXEC, NEED_BSDTTY): Move definitions...
3236 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3237
863bf481
DN
3238 * m/iris4d.h (UNEXEC): Move definition ...
3239 * s/irix6-5.h (UNEXEC): ... here.
3240
3e6bec3b
JD
32412010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3242
3243 * xfns.c (set_machine_and_pid_properties): New function.
3244 (Fx_create_frame): Call set_machine_and_pid_properties.
3245
2912322b
SM
32462010-04-03 Eli Zaretskii <eliz@gnu.org>
3247
1502b819
EZ
3248 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3249 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3250 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3251
2912322b
SM
3252 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3253 in this function. (Bug#5703)
3254
32552010-04-03 Chong Yidong <cyd@stupidchicken.com>
3256
3257 * nsterm.h: Fix last change.
3258
c435b432
DN
32592010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3260
a568f507
DN
3261 * m/intel386.h (NO_REMAP): Move definition ...
3262 * s/msdos.h (NO_REMAP): ... here.
3263
4cd9f6c2
DN
3264 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3265
c435b432
DN
3266 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3267 used on those platforms.
3268
42a2c622
DN
32692010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3270
3271 Remove extern errno declarations.
3272 * xterm.c:
3273 * xrdb.c:
3274 * w32term.c:
3275 * unexec.c:
3276 * unexaix.c:
3277 * sysdep.c:
3278 * process.c:
3279 * lread.c:
3280 * keyboard.c:
3281 * floatfns.c:
3282 * filelock.c:
3283 * fileio.c:
3284 * emacs.c (main):
3285 * ecrt0.c:
3286 * dispnew.c:
3287 * callproc.c:
3288 * buffer.c: Remove errno extern declarations.
3289 * s/netbsd.h (NEED_ERRNO): Remove.
3290
8224f93d
DN
32912010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3292
3293 Remove all uses of LIBX11_SYSTEM.
3294 * Makefile.in (LIBX11_SYSTEM): Remove.
3295 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3296 instead.
3297
814062c7
EZ
32982010-04-01 Eli Zaretskii <eliz@gnu.org>
3299
ed68db4d
EZ
3300 Remove support for DJGPP v1.x (bug#5813).
3301
3302 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3303 * s/msdos.h:
3304 * unexec.c (make_hdr, copy_text_and_data):
3305 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3306 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3307 (IT_set_terminal_modes, __write, _rename, gethostname)
3308 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3309 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3310 the value of __DJGPP__.
ed68db4d
EZ
3311 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3312 compatibility code.
8224f93d
DN
3313 * lread.c:
3314 * gmalloc.c (memalign):
3315 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3316 * emacs.c (main):
3317 * dosfns.c (init_dosfns):
ed68db4d
EZ
3318 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3319
52f4d8d5
EZ
33202010-04-01 Eli Zaretskii <eliz@gnu.org>
3321
814062c7
EZ
3322 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3323 string with `cursor' property comes from an `after-string'
3324 overlay. (Bug#5816)
3325
0dc2e11d
GM
33262010-04-01 Glenn Morris <rgm@gnu.org>
3327
3328 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3329 Define as Makefile variables.
3330 (LIBX): Use above variables rather than directly using autoconf.
3331
1d29df59
DN
33322010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3333
3334 Clean up BSD_SYSTEM use.
3335 * xterm.c:
3336 * process.c:
3337 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3338 for including <sys/ioctl.h>.
3339 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3340 code is only used for MSDOS.
3341
1546c559
JL
33422010-03-31 Juri Linkov <juri@jurta.org>
3343
3344 * image.c: Add `Qextension_data'.
3345 (syms_of_image): Initialize and staticpro `Qextension_data'.
3346 (Fimage_metadata): Rename from `Fimage_extension_data'.
3347 (gif_load): Put GIF extension data to the property
3348 `Qextension_data'.
3349
6521c534
CY
33502010-03-31 Chong Yidong <cyd@stupidchicken.com>
3351
3352 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3353 * nsterm.h: Fix prototype.
3354
52c30783
EZ
33552010-03-31 Eli Zaretskii <eliz@gnu.org>
3356
3357 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3358 trailing whitespace in right-to-left rows.
3359
855a0da7
SM
33602010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3361
3362 Get rid of the direct_output optimizations.
3363 * keyboard.c (nonundocount): Remove extern declaration.
3364 (command_loop_1): Remove brittle optimisation for cheap and
3365 common operations.
3366 * xdisp.c (redisplay_internal): Don't bother checking
3367 redisplay_performed_directly_p any more.
3368 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3369 any more.
3370 * dispnew.c (redisplay_performed_directly_p)
3371 (direct_output_for_insert, direct_output_forward_char):
3372 * dispextern.h (redisplay_performed_directly_p)
3373 (direct_output_for_insert, direct_output_forward_char): Remove.
3374 * cmds.c (nonundocount): Make it static.
3375
85738751 33762010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3377
3378 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3379
85738751 33802010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3381
3382 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3383 invisible (Bug#5766).
3384
85738751 33852010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3386
855a0da7
SM
3387 * xdisp.c (x_consider_frame_title, update_window_cursor):
3388 Remove HAVE_NS conditionals.
194d44e7 3389 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
3390
3391 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3392 filename for the title.
3393 (ns_set_doc_edited): Do nothing if the selected window is a
3394 minibuffer window.
3395
3396 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3397 ns_set_doc_edited.
3398
3399 * nsterm.m: Remove unneeded prototype.
3400
85738751 34012010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
3402
3403 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3404 in the DOC file. (Bug#5336)
3405
85738751 34062010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
3407
3408 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3409
75d1428c
SM
34102010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3411
3412 * window.c (keys_of_window): Remove redundant/overridden bindings.
3413
82043cfb
EZ
34142010-03-30 Eli Zaretskii <eliz@gnu.org>
3415
3416 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3417 Restore original behavior when the iterator is not bidi_p.
3418
b5dd0ae7
DN
34192010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3420
3421 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3422
bd924a5d
EZ
34232010-03-30 Eli Zaretskii <eliz@gnu.org>
3424
3425 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3426 are outside the range of cached character positions.
3427
3580374b
JB
34282010-03-30 Juanma Barranquero <lekktu@gmail.com>
3429
3430 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3431
a7b02820
EZ
34322010-03-30 Eli Zaretskii <eliz@gnu.org>
3433
3434 Initial support for bidirectional editing.
3435
3436 * Makefile.in (obj): Include bidi.o.
3437 (bidi.o): New target.
3438
3439 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3440 ($(BLD)/bidi.$(O)): New target.
3441
3442 * bidi.c: New file.
3443
3444 * buffer.h (struct buffer): New members bidi_display_reordering
3445 and bidi_paragraph_direction.
3446
3447 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3448 and bidi_paragraph_direction.
3449 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3450 and bidi-paragraph-direction.
3451 (Fbuffer_swap_text): Swap the values of
3452 bidi_display_reordering and bidi_paragraph_direction.
3453
3454 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3455 (bidi_type_t, bidi_dir_t): New types.
3456 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3457 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3458 prev_stop, base_level_stop, and eol_pos.
3459 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3460 (IT_STACK_SIZE): Enlarge to 5.
3461 (struct glyph_row): New member reversed_p.
3462 <string_buffer_position>: Update prototype.
3463 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3464 glyph_row if bidi_it.paragraph_dir == R2L.
3465 (struct glyph): New members resolved_level and bidi_type.
3466
3467 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3468 processing or buffer's direction is right-to-left.
3469 (prepare_desired_row): Preserve the reversed_p flag.
3470 (row_equal_p): Compare the reversed_p attributes as well.
3471
3472 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3473 bidi_init_it and set it->paragraph_embedding from the current
3474 buffer's value of bidi_paragraph_direction.
3475 (reseat_1): Initialize bidi_it.first_elt.
3476 (set_iterator_to_next, next_element_from_buffer): Use the value of
3477 paragraph_embedding to determine the paragraph direction.
3478 (set_iterator_to_next): Under bidi reordering, call
3479 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3480 new_paragraph flag is set in the bidi iterator.
3481 (next_element_from_buffer): If bidi_it.first_elt is set,
3482 initialize paragraph direction and find the first character to
3483 display in the visual order. If reseated to a middle of a line,
3484 prime the bidi iterator starting at the line's beginning. Handle
3485 the situation where we overstepped stop_charpos due to
3486 non-linearity of the bidi iteration. Likewise for when we back up
3487 beyond the previous stop_charpos. When moving across stop_charpos,
3488 record it in prev_stop.
3489 (display_line): Set row->end and it->start for the next row to the
3490 next character in logical order. Always extend reversed_p rows to
3491 the end of line, even if they end at ZV. Copy the reversed_p flag
3492 to the next glyph row. Keep calling set_cursor_from_row for
3493 bidi-reordered rows even if we already have a possible candidate
3494 for cursor position. Set row_end after all the row's glyphs have
3495 been produced, by looping over the glyphs. Record the position
3496 after EOL in it->eol_pos, and use it to set end_pos of the last
3497 row produced for a continued line.
3498 <Qright_to_left, Qleft_to_right>: New variables.
3499 (syms_of_xdisp): Initialize and staticpro them.
3500 (string_buffer_position_lim): New function.
3501 (string_buffer_position): Most of code moved to
3502 string_buffer_position_lim. Last argument and return value are
3503 now EMACS_INT; all callers changed.
3504 (set_cursor_from_row): Rewritten to support bidirectional text and
3505 reversed glyph rows.
3506 (text_outside_line_unchanged_p, try_window_id): Disable
3507 optimizations if we are reordering bidirectional text and the
3508 paragraph direction can be affected by the change.
3509 (append_glyph, append_composite_glyph)
3510 (produce_image_glyph, append_stretch_glyph): Set the
3511 resolved_level and bidi_type members of each glyph.
3512 (append_glyph): If the glyph row is reversed, prepend the glyph
3513 rather than appending it.
3514 (handle_stop_backwards): New function.
3515 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
3516 (reseat): call handle_stop_backwards to recompute prev_stop and
3517 base_level_stop for the new position.
3518 (handle_invisible_prop): Under bidi iteration, skip invisible text
3519 using bidi_get_next_char_visually. If we are `reseat'ed, init the
3520 paragraph direction. Update IT->prev_stop after skipping
3521 invisible text.
3522 (move_it_in_display_line_to): New variables prev_method
3523 and prev_pos. Compare for strict equality in
3524 BUFFER_POS_REACHED_P.
3525 (try_cursor_movement): Examine all the candidate rows that occlude
3526 point, to return the best match. If rows are bidi-reordered
3527 and point moved backwards, back up to the row that is not a
3528 continuation line, and start looking for a suitable row from
3529 there.
3530
3531 * term.c (append_glyph): Reverse glyphs by pre-pending them,
3532 rather than appending, if the glyph_row's reversed_p flag is set.
3533 Set the resolved_level and bidi_type members of each glyph.
3534
3535 * .gdbinit (pbiditype): New command.
3536 (pgx): Use it to display bidi level and type of the glyph.
3537 (pitx): Display some bidi information about the iterator.
3538 (prowlims, pmtxrows): New commands.
3539
32a8894e
DN
35402010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3541
3542 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3543 * s/usg5-4.h (LIBS_DEBUG):
3544 * s/irix6-5.h (C_DEBUG_SWITCH):
3545 * s/gnu-linux.h (LIBS_DEBUG):
3546 * s/darwin.h (LIBS_DEBUG):
3547 * s/bsd-common.h (LIBS_DEBUG):
3548 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3549 * m/iris4d.h (LIBS_DEBUG):
3550 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3551
3552 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3553 (LIBS_DEBUG): Remove definition.
3554
649dbf36
CY
35552010-03-27 Chong Yidong <cyd@stupidchicken.com>
3556
3557 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3558 Windows.
3559
cad4261f
YM
35602010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3561
3562 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3563 `connect' (Bug#5723).
3564
cd591dbc
HE
35652010-03-25 Helmut Eller <eller.helmut@gmail.com>
3566
3567 * process.c (Fmake_network_process): Call `select' for interrupted
3568 `connect' rather than creating new socket (Bug#5173).
3569
e867cb5d 35702010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
3571
3572 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3573
3574 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3575
3576 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3577
e867cb5d 35782010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
3579
3580 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3581 XLoadQueryFont.
3582
e867cb5d 35832010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
3584
3585 * coding.c (decode_coding_ccl): Fix previous change for the
3586 multibyte case.
fb608df3
KH
3587 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3588 case that the output buffer is fullfilled.
3589 (encode_coding): Setup ccl program here.
fbdc1721 3590
5845f0ed
DN
35912010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3592
814fb708
DN
3593 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3594
5845f0ed
DN
3595 Simplify LIBS_MACHINE definitions.
3596 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3597 * m/iris4d.h (LIBS_MACHINE): Likewise.
3598 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3599 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 3600 * s/netbsd.h: Remove commented out code.
5845f0ed 3601
b7064064
DN
36022010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3603
df7734b2
DN
3604 Remove dead code dealing with POSIX_SIGNALS.
3605 * atimer.c (set_alarm): Remove dead code, all USG systems define
3606 POSIX_SIGNALS.
3607 * data.c (arith_error): Likewise.
3608 * keyboard.c (input_available_signal, handle_user_signal)
3609 (interrupt_signal): Likewise.
3610 * process.c (sigchld_handler): Likewise.
3611 (create_process): Remove if 0 code. Remove HPUX conditional when
3612 !defined (POSIX_SIGNALS), it cannot be true.
3613 * syssignal.h: Remove USG5_4 and USG conditionals when
3614 !POSIX_SIGNALS, they cannot be true.
3615
b7064064
DN
3616 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3617 NO_SOCK_SIGIO, not used anymore.
3618
55da5ee3
DN
36192010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3620
0be96e3a
DN
3621 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3622 support vax on BSDs.
3623
55da5ee3
DN
3624 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3625 * s/aix4-2.h (ORDINARY_LINK): ... here.
3626
c0282183
AS
36272010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3628
82c3d67a
AS
3629 * Makefile.in (abs_builddir): Define.
3630 (bootstrap_exe): Use it.
3631 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 3632
3613edce
SM
36332010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3634
3635 * Makefile.in (bootstrap_exe): Use an absolute name.
3636
7f110ddc
DN
36372010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3638
22e87574
DN
3639 Remove support for old GNU/Linux using libc version 5.
3640 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
3641 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
3642
05a670e6
DN
3643 Consolidate redundant definitions in s/bsd-common.h.
3644 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3645 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3646 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
3647 doing it in all files that include this one.
3648 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3649 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3650 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3651 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3652 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3653 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3654 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3655 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3656 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3657
2968f561
DN
3658 Consolidate redundant definitions.
3659 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
3660 it's undefined in all files that include this one.
3661 (POSIX_SIGNALS): Define here instead of doing it in all files that
3662 include this one.
3663 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3664 (POSIX_SIGNALS): Do not define.
3665 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3666 (POSIX_SIGNALS): Do not define.
3667 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3668 (POSIX_SIGNALS): Do not define.
3669
15d25dc0
DN
3670 Remove support for old UNIX System V systems.
3671 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
3672 * s/usg-5-4-2.h: Remove.
3673
07e339e4
DN
3674 Remove support for Solaris on PPC and for old versions.
3675 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
3676 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
3677 that cancel each other.
3678 * s/sol2-3.h:
3679 * s/sol2-4.h:
3680 * s/sol2-5.h: Remove.
3681 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
3682 (NO_REMAP): Remove, unused.
3683 (UNEXEC): Move definition ...
3684 * s/aix4-2.h (UNEXEC): ... here.
3685
7f110ddc
DN
3686 * s/openbsd.h: Remove support for non-ELF and for systems that do
3687 not support shared libraries.
3688 * s/netbsd.h:
3689 * s/freebsd.h: Likewise.
3690
605f35cd
DN
36912010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3692
3693 Remove non-working support for lynxos 3.0.
3694 * s/lynxos.h: Remove file.
3695
3696 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
3697 COFF_BSD_SYMBOLS, nothing defines it anymore.
3698
aed71cf4
DN
36992010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3700
3701 Remove obsolete uses of HAVE_SHM.
3702 * emacs.c (standard_args):
3703 (Fdump_emacs):
3704 (syms_of_emacs): Remove code depending on HAVE_SHM.
3705
3706 * alloc.c: Remove HAVE_SHM dependent definition.
3707
3708 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
3709
aded53ff
GM
37102010-03-18 Glenn Morris <rgm@gnu.org>
3711
17284745
GM
3712 * emacs.c (USAGE4): Hard-code bug address.
3713 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
3714 (bug_reporting_address): Remove.
3715 (main): Don't call bug_reporting_address.
3716
aded53ff
GM
3717 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
3718 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
3719
303500aa
CY
37202010-03-15 Chong Yidong <cyd@stupidchicken.com>
3721
3722 * xfns.c (Fx_create_frame):
3723 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
3724 on left.
3725
cef3058f
CY
37262010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
3727
3728 * editfns.c (Fformat): Account for string precision when computing
3729 field width (Bug#5710).
3730
a647d59d
CY
37312010-03-12 Chong Yidong <cyd@stupidchicken.com>
3732
4fa42018
CY
3733 * xfns.c (Fx_create_frame): Set default to Qright.
3734
a647d59d
CY
3735 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
3736 all window systems.
3737
6da23aaa
EZ
37382010-03-12 Eli Zaretskii <eliz@gnu.org>
3739
a96f6398 3740 These changes remove termcap.c from the build on Posix platforms.
83d02def 3741 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
3742 (MSDOS_OBJ): ...to here.
3743 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
3744 now identical to when LIBS_TERMCAP is defined.
3745
3746 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
3747
3748 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
3749
a96f6398 3750 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 3751
288f9fc0
CY
37522010-03-10 Chong Yidong <cyd@stupidchicken.com>
3753
3754 * Branch for 23.2.
3755
d48cd3f4
SM
37562010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3757
3758 Cleanup setup of gl_state in various parts of the code.
3759 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
3760 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
3761 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
3762 (skip_chars):
3763 * regex.c (regex_compile): Use it.
3764 (re_compile_pattern): Don't set gl_state.current_syntax_table since
3765 it's now set in regex_compile when/if we need it.
3766
618db430
SM
37672010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
3768
c0335e02
SM
3769 Make it possible to C-g in a tight bytecode loop again (bug#5680).
3770 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
3771 (QUIT): Use it to consolidate code and remove redundancy.
3772 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
3773
254c06a8
SM
3774 * regex.c (regex_compile): Setup gl_state as well.
3775
618db430
SM
3776 * syntax.c (skip_chars): Setup gl_state (bug#3823).
3777 (in_classes): Use CONSP before XCAR/XCDR.
3778
233f0c9f
CY
37792010-03-03 Chong Yidong <cyd@stupidchicken.com>
3780
3781 * keymap.c (Fwhere_is_internal): Use Fequal to compare
3782 definitions, so that keyboard macros are correctly handled
3783 (Bug#5481).
3784
75f80e63
EZ
37852010-03-02 Eli Zaretskii <eliz@gnu.org>
3786
3787 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
3788 text that could be relocated inside the call to emacs_mule_char.
3789 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
3790 (CODING_DECODE_CHAR): Add a comment describing its purpose.
3791
dcfb9bc4
KH
37922010-03-02 Kenichi Handa <handa@m17n.org>
3793
fc9a17bc
KH
3794 * character.c (parse_str_as_multibyte): Fix handling of the
3795 multibyte form of raw-bytes.
3796 (str_as_multibyte): Likewise.
3797
dcfb9bc4
KH
3798 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
3799 form of raw-bytes.
3800
412c01b6
CY
38012010-02-28 Chong Yidong <cyd@stupidchicken.com>
3802
3803 * charset.c (load_charset_map_from_file)
3804 (load_charset_map_from_vector): Zero out allocated
3805 charset_map_entries before using them.
3806
df7e1ea0
AS
38072010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3808
3809 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3810
fe69a722
CY
38112010-02-27 Chong Yidong <cyd@stupidchicken.com>
3812
4ed28cf4
CY
3813 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3814 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 3815
7379cfce
KH
38162010-02-26 Kenichi Handa <handa@m17n.org>
3817
f88cc4d6
KH
3818 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3819
7379cfce
KH
3820 * xdisp.c (reseat_to_string): Fix previous change.
3821
cf2fdcfb
CY
38222010-02-26 David Reitter <david.reitter@gmail.com>
3823
3824 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3825 Lisp_Object (Bug#4736).
3826
cc6c7c75
KH
38272010-02-25 Kenichi Handa <handa@m17n.org>
3828
3829 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3830
32e737d7
JD
38312010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3832
3833 * xterm.c (XTflash): Move declarations before statements.
3834
3835 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3836 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3837 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3838 (xg_create_tool_bar): Remove unused variables.
3839 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 3840 (xg_create_frame_widgets): Remove variable grav.
32e737d7 3841
676cae9f
CY
38422010-02-21 Chong Yidong <cyd@stupidchicken.com>
3843
3844 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3845
886cc2b8
SM
38462010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3847
3848 * term.c (fatal): Add a final \n if needed (bug#5596).
3849
ddb2d8e2
CY
38502010-02-18 Chong Yidong <cyd@stupidchicken.com>
3851
3852 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3853
2a4f8d3d
GM
38542010-02-18 Glenn Morris <rgm@gnu.org>
3855
3856 * callint.c (Finteractive): Doc fix.
3857
ebaf11b6
KH
38582010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3859
886cc2b8
SM
3860 * coding.c (record_conversion_result):
3861 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
3862 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3863 memory allocation error.
3864
d0396581
KH
38652010-02-17 Kenichi Handa <handa@m17n.org>
3866
886cc2b8
SM
3867 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3868 Fix for the case that the output buffer is fullfilled.
d0396581
KH
3869 (decode_coding): Setup ccl program here. Keep looping when the
3870 decoder stopped because the output buffer is
3871 fullfilled (bug#5534).
3872
3873 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3874
98599f74
JD
38752010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3876
471e4f04 3877 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 3878 bug #5571.
886cc2b8 3879 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 3880 overdrawn.
98599f74 3881
182659ae
JD
38822010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3883
3884 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3885 doing_interact here.
3886 (ice_connection_closed): New function.
3887 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3888 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3889 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3890 returns I/O error.
3891 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3892 bug #5512.
3893
9be32c4e 38942010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
3895
3896 * nsfont.m (nsfont_open): The system's value for the font descent
3897 is negative, so round it down to avoid clipping.
3898
a2f3eb19
CY
38992010-02-06 Chong Yidong <cyd@stupidchicken.com>
3900
3901 * charset.c (load_charset_map_from_file)
3902 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 3903 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 3904
3088147c
CY
39052010-02-05 Chong Yidong <cyd@stupidchicken.com>
3906
3907 * charset.c (load_charset_map_from_file): Allocate large
3908 charset_map_entries structure on the heap rather than the stack.
3909 (Bug#5526).
3910
b57d9029
KH
39112010-01-31 Kenichi Handa <handa@m17n.org>
3912
3913 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 3914 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 3915
c67d885b
CY
39162010-01-31 Chong Yidong <cyd@stupidchicken.com>
3917
3918 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3919 <deactivated@gmail.com> (Bug#3605).
3920
8fab2362
CY
39212010-01-31 David De La Harpe Golden <david@harpegolden.net>
3922
3923 * fileio.c (Frename_file): Correctly rename symlinks to
3924 directories (Bug#5496).
3925
cb2a62f2
CY
39262010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3927
3928 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3929
944c7a26
AS
39302010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3931
3932 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3933
c024ac08
CY
39342010-01-29 Chong Yidong <cyd@stupidchicken.com>
3935
3936 * frame.c (DEFAULT_ROWS): Change default to 35.
3937
3938 * xfns.c (x_default_font_parameter): Change default XFT font to
3939 monospace-10 (Bug#3643).
3940
af93af83
EZ
39412010-01-29 Eli Zaretskii <eliz@gnu.org>
3942
3943 * w32inevt.c (key_event): Remove unnecessary comparison of
3944 event->uChar.AsciiChar with 128.
3945
ca0eb708
CY
39462010-01-28 Chong Yidong <cyd@stupidchicken.com>
3947
b242dbfc
CY
3948 * fileio.c (Frename_file): Fix last change (Bug#5487).
3949
ca0eb708
CY
3950 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3951
3952 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3953
45d45af5
JD
39542010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3955
3956 * xfns.c (Fx_create_frame): Remove window size matching code from
3957 2010-01-15.
a73f9c9d 3958 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 3959
7e233730
JR
39602010-01-27 Jason Rumney <jasonr@gnu.org>
3961
3962 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 3963 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 3964
86e893e3
KH
39652010-01-27 Kenichi Handa <handa@m17n.org>
3966
3967 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 3968 pattern string (Bug#4209).
86e893e3 3969
8719abec
CY
39702010-01-27 David De La Harpe Golden <david@harpegolden.net>
3971
3972 * fileio.c (Frename_file): Call copy-directory and
3973 delete-directory for directories, in order to handle cross-device
3974 renaming (Bug#3353).
3975
844794c8
JD
39762010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3977
aa3e13b5 3978 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 3979 sizes 24 and 10. Bug #3643.
844794c8 3980
bd4b5750
SM
39812010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3982
8dc1adf6 3983 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
3984 * keymap.c (shadow_lookup): Add `remap' arg.
3985 (describe_map, describe_vector): Update calls to shadow_lookup.
3986 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3987 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
3988 perform remapping during shadow_lookup check of remapped_sequences.
3989
285d07e2
CY
39902010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3991
3992 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3993 png_check_sig, which has been removed in libpng 1.4.
3994
c6d09b8d
CY
39952010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3996
3997 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
3998 lacks this header file).
3999
3d782998
YM
40002010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4001
4002 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4003 as in Emacs 22.
4004
2aff7c53
YM
40052010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4006
4007 * lisp.h (make_pure_string): String pointer arg now points to const.
4008
4009 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4010 args now point to const.
4011
74327f7a
EZ
40122010-01-22 Eli Zaretskii <eliz@gnu.org>
4013
4014 * lread.c (Fload): Don't treat files without .elc extension as
4015 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4016 them. (bug#5303)
4017
4d1e6632
KH
40182010-01-20 Kenichi Handa <handa@m17n.org>
4019
4020 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4021 treat the source as actual byte sequence.
4022
1fdede8f
AM
40232010-01-19 Alan Mackenzie <acm@muc.de>
4024
4025 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4026 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4027 `signal_after_change_p' to `coherent_change_p', and make the
4028 invocation of `modify_region' conditional on it.
4029
67477f30
JD
40302010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4031
4032 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4033 for debug purpose.
4034 (syms_of_xsettings): Declare xft-settings.
4035
244b023e
CY
40362010-01-18 Chong Yidong <cyd@stupidchicken.com>
4037
4038 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4039
617364fe
CY
40402010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4041
4042 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4043
4fe22cdf
CY
40442010-01-16 Chong Yidong <cyd@stupidchicken.com>
4045
4046 * emacs.c (standard_args): Adjust arg priorities to reflect how
4047 they are processed in startup.el.
4048
e118d2be
AS
40492010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4050
4051 * Makefile.in (lisp, shortlisp): Update.
4052
523ae620
SM
40532010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4054
4055 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4056 code, link the new kboard into all_kboard before running Lisp code,
4057 and protect the new terminal with GCPRO (Bug#5365).
4058 (x_term_init): Remove unused var `atom'.
4059 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4060
f0d13888
JD
40612010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4062
4063 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4064 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4065 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4066 this. Bug #3643.
f0d13888 4067
cc320f07
KH
40682010-01-15 Kenichi Handa <handa@m17n.org>
4069
4070 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4071
7ffdf101
CY
40722010-01-15 Chong Yidong <cyd@stupidchicken.com>
4073
4074 * nsterm.m (Qnone): Define.
4075
4076 * nsfns.m (Qnone): Move definition to nsterm.m.
4077
d12bd917
KH
40782010-01-14 Kenichi Handa <handa@m17n.org>
4079
4080 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4081 systems.
4082
d9a7c140
KH
40832010-01-14 Kenichi Handa <handa@m17n.org>
4084
4085 Make auto-composition work on all buffers even if they are
4086 fundamental mode.
4087
4088 * composite.c (Vauto_composition_mode): New variable.
4089 (composition_compute_stop_pos): Check Vauto_composition_mode
4090 instead of Vauto_composition_function.
4091 (composition_adjust_point, Ffind_composition_internal): Likewise.
4092 (syms_of_composite): Declare Lisp variable
4093 "auto-composition-mode" here.
4094
63286bb2
CY
40952010-01-13 Chong Yidong <cyd@stupidchicken.com>
4096
4097 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4098 during call to vendor-specific-keysyms (Bug#5365).
4099
c2623ee7
YM
41002010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4101
4102 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4103 Call SIGNAL_THREAD_CHECK (Bug#5333).
4104
4105 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4106 Call SIGNAL_THREAD_CHECK.
4107
0b5397c2
SM
41082010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4109
4110 Try to fix bug#5314. This is probably not the final word, tho.
4111 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4112 recent-auto-save-p as a side-effect.
4113 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4114 * buffer.c (Fkill_buffer, reset_buffer):
4115 * editfns.c (Fsubst_char_in_region):
4116 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4117 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4118
dc954cb2
KH
41192010-01-13 Kenichi Handa <handa@m17n.org>
4120
4121 Display buffer name, etc. in mode line by composing correctly.
4122
4123 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4124 STRING is not nil.
0b5397c2 4125 (display_mode_element): Adjust for the change of
dc954cb2
KH
4126 decode_mode_spec and display_line.
4127 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4128 (display_string): Handle the case that STRING is non-null and
4129 LISP_STRING is not nil.
4130
0b5397c2
SM
4131 * xterm.c (x_draw_composite_glyph_string_foreground):
4132 Pay attention to s->face->overstrike.
dc954cb2
KH
4133
4134 * composite.c (composition_reseat_it): Don't check PT if STRING is
4135 non nil.
4136
4a00eaca
YM
41372010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4138
4139 * keyboard.c (read_char): Don't apply previous change when current
4140 buffer is unchanged by command execution.
4141
60abb287
JD
41422010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4143
4144 * keyboard.c (read_char): Return after executing from special map.
4145
893db5bc
GM
41462010-01-12 Glenn Morris <rgm@gnu.org>
4147
4148 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4149 bug-gnu-emacs rather than emacs-pretest-bug.
4150
4d03ece0
CY
41512010-01-11 Chong Yidong <cyd@stupidchicken.com>
4152
4153 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4154 initializing the Lisp variables that depend on them.
4155
1df47e38
YM
41562010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4157
4158 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4159 Clear areas that will not be updated after change of menu bar lines.
4160 Clear the menu bar window's current matrix when the window gets empty.
4161
2f1c6384
CY
41622010-01-09 Chong Yidong <cyd@stupidchicken.com>
4163
e398c61c
CY
4164 * intervals.h, textprop.c (extend_property_ranges): Return value
4165 and args changed. Discard properties that begin at or after the
4166 new end (Bug#5306).
4167
4168 * editfns.c (Fformat): Caller changed.
4169
e5a29a10
CY
4170 * nsterm.m (ns_set_default_prefs): Delete function.
4171 (syms_of_nsterm): Initialize ns_command_modifier,
4172 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4173 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4174
2f1c6384
CY
4175 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4176 position (Bug#4040).
4177
d427a9fa
EZ
41782010-01-09 Eli Zaretskii <eliz@gnu.org>
4179
4180 * editfns.c (Ffloat_time): Doc fix.
4181
21b9df2f
JD
41822010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4183
4184 * xfns.c (Fx_create_frame): Don't create frame larger than display
4185 by default bug#3643.
4186
4b00d3b1
YM
41872010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4188
4189 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4190 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4191 windows above internal border.
4192
4193 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4194 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4195 windows above internal border.
4196
4197 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4198 tool bar windows specially.
4199
4200 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4201
4202 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4203 specially.
4204 (XTflash): Take account of menu bar height.
4205
4206 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4207 specially.
4208
5075d853
JD
42092010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4210
ac146f82 4211 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4212 also be true before we can return early (bug #5339).
4213
474217c8
CY
42142010-01-06 David Reitter <david.reitter@gmail.com>
4215
4216 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4217 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4218 (Bug#3233).
4219
c0e6d47d
JD
42202010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4221
d0cf45b7
JD
4222 * font.c (font_open_entity): Enable chache and call cached_font_ok
4223 for the driver if defined.
4224 (QCuser_spec): New symbol.
4225 (font_spec_from_name): Save name as user-spec.
4226 (font_load_for_lface): Keep user-spec instead of name.
4227 (font_open_by_name): Save name as user-spec.
4228 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4229 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4230
4231 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4232 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4233 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4234
4235 * font.h (struct font_driver): Add cached_font_ok.
4236
c0e6d47d
JD
4237 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4238
7c583cd8
JD
42392010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4240
4241 * xterm.c (x_new_font): Move code for setting rows/cols before
4242 resizing ...
ac146f82 4243 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4244
4245 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4246 (xg_frame_resized, xg_frame_set_char_size):
4247 Call xg_clear_under_internal_border.
7c583cd8 4248 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4249
03f77f0a
CY
42502010-01-05 Chong Yidong <cyd@stupidchicken.com>
4251
4252 * keyboard.c (read_key_sequence): Catch keyboard switch after
4253 making a new tty frame (Bug#5095).
4254
2a1ef5be
KH
42552010-01-05 Kenichi Handa <handa@m17n.org>
4256
4257 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4258
e3eb1dae
SM
42592010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4260
4261 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4262 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4263 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4264
777013f2
MA
42652010-01-03 Michael Albinus <michael.albinus@gmx.de>
4266
4267 * dbusbind.c (xd_add_watch): Improve debug message.
4268 (xd_remove_watch): Improve debug message. If DATA is the session
4269 bus, unset D-Bus session environment.
4270 (Fdbus_init_bus): Pass the bus as argument to
4271 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4272
8932b1c2
CY
42732010-01-01 Chong Yidong <cyd@stupidchicken.com>
4274
87231e2c
CY
4275 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4276
4801c5fa
CY
4277 * lread.c (syms_of_lread): Make it clearer that these are the
4278 names of loaded files (Bug#5068).
4279
8932b1c2
CY
4280 * eval.c (run_hook_with_args): Handle the case where the global
4281 value has the obsolete single-function form (Bug#5026).
4282
11e3c684
CY
42832009-12-27 Chong Yidong <cyd@stupidchicken.com>
4284
4285 * minibuf.c (Fall_completions): Minor optimization.
4286
5b28ce35
EZ
42872009-12-26 Eli Zaretskii <eliz@gnu.org>
4288
5ce6e4f4
JB
4289 * .gdbinit (pgx): Fix display of composite glyphs.
4290 Display cmp.from and cmp.to as well.
4291 (pitx): Fix last change.
5b28ce35 4292
bcffff46
KH
42932009-12-25 Kenichi Handa <handa@m17n.org>
4294
4295 * composite.h (composition_adjust_point): Update prototype.
4296
4297 * composite.c (composition_reseat_it): Don't make a composition
4298 spanning over point.
4299 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4300 composable characters.
4301 (composition_adjust_point): New arg NEW_PT. Callers changed.
4302
4303 * keyboard.c (command_loop_1): Force redisplay if the last point
4304 was within a composition.
4305 (adjust_point_for_property): Don't adjust point for automatic
4306 composition when called after buffer modification.
4307
3f670e9a
EZ
43082009-12-19 Eli Zaretskii <eliz@gnu.org>
4309
5ce6e4f4
JB
4310 * .gdbinit (pitx): Don't use enum names, use their values.
4311 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4312 (pgx): Don't use enum names, use their values.
4313 (pitmethod): New helper command.
4314 (pitx): Use it to display iteration method.
4315 (pgrowit): New command.
4316
ad903955
EZ
4317 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4318
3f670e9a
EZ
4319 Update dependencies in Makefile.in.
4320
4321 * Makefile.in (alloc.o): Depend on termhooks.h.
4322 (atimer.o): Depend on blockinput.h.
4323 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4324 and frame.h.
4325 (callint.o): Depend on systime.h, coding.h, and composite.h.
4326 (callproc.o): Depend on buffer.h.
4327 (casefiddle.o): Don't depend on charset.h.
4328 (casetab.o): Depend on character.h.
4329 (ccl.o): Depend on composite.h.
4330 (chartab.o): Depend on ccl.h.
4331 (cm.o): Depend on dispextern.h.
4332 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4333 (coding.o): Don't depend on $(INTERVALS_H).
4334 (composite.o): Don't depend on dispextern.h explicitly (it's in
4335 $(INTERVALS_H)). Depend on ccl.h.
4336 (data.o): Depend on systime.h, coding.h, composite.h,
4337 dispextern.h, font.h, and ccl.h.
4338 (dired.o): Depend on composite.h.
4339 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4340 composite.h (it's in $(INTERVALS_H)).
4341 (doc.o): Depend on systime.h, coding.h, and composite.h.
4342 (editfns.o): Don't depend explicitly on dispextern.h.
4343 (emacs.o): Depend on frame.h and coding.h.
4344 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4345 (fileio.o): Depend on frame.h and commands.h. Don't depend
4346 explicitly on dispextern.h.
4347 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4348 composite.h.
4349 (fns.o): Don't depend on termhooks.h.
4350 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4351 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4352 coding.h, $(INTERVALS_H), window.h, xterm.h.
4353 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4354 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4355 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4356 fontset.h, ccl.h, and ftfont.h.
4357 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4358 (gtkutil.o): Depend on dispextern.h and composite.h.
4359 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4360 termhooks.h, and ccl.h.
4361 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4362 (intervals.o): Depend on systime.h and coding.h.
4363 (keyboard.o): Depend on composite.h and coding.h.
4364 (keymap.o): Depend on coding.h and frame.h.
4365 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4366 (macros.o): Depend on systime.h, coding.h, and composite.h.
4367 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4368 and atimer.h.
4369 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4370 dispextern.h explicitly.
0b5397c2
SM
4371 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4372 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4373 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4374 (regex.o): Don't depend on charset.h.
4375 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4376 (search.o): Don't depend explicitly on composite.h.
4377 (sound.o): Depend on atimer.h and systime.h.
4378 (syntax.o): Don't depend explicitly on composite.h.
4379 (sysdep.o): Depend on coding.h and composite.h.
4380 (term.o): Depend on xterm.h and buffer.h.
4381 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4382 (textprop.o): Don't depend on dispextern.h explicitly.
4383 (undo.o): Depend on dispextern.h.
4384 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4385 dispextern.h and composite.h explicitly.
4386 (xdisp.o): Depend on ccl.h.
4387 (xfaces.o): Depend on coding.h and ccl.h.
4388 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4389 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4390 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4391 ftfont.h.
4392 (xgselect.o): New dependency.
4393 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4394 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4395 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4396 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4397 (xsmfns.o): Depend on frame.h and dispextern.h.
4398 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4399 sysselect.h.
4400
7a6f7fea
AS
44012009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4402
4403 * font.c (Fclear_font_cache): Pass correct cache argument to
4404 font_clear_cache.
4405
f4c21026
AS
44062009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4407
4408 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4409 twice.
4410
f7ab0997
CY
44112009-12-15 Chong Yidong <cyd@stupidchicken.com>
4412
4413 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4414 calling file-remote-p. Reported by Jim Meyering.
4415
fa8e045a
MA
44162009-12-15 Michael Albinus <michael.albinus@gmx.de>
4417
4418 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 4419 avoid compiler warnings. (Bug #5217)
fa8e045a 4420
a63dba42
KH
44212009-12-14 Kenichi Handa <handa@m17n.org>
4422
4423 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4424 in 8-bit encoding.
4425
5ce6e4f4 44262009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
4427
4428 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4429 tooltip windows.
4430
223e5fc6
JD
44312009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4432
36acb2a7
JD
4433 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4434 Xatom_net_window_type.
4435
4436 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4437 Xatom_net_window_type.
4438
b8f00677
JD
4439 * xterm.c (my_log_handler): New function.
4440 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 4441 so we can filter out buggy messages. (Bug #5120).
b8f00677 4442
e5f0bc9a
JD
4443 * xterm.c (xg_scroll_callback): Parameter list changed,
4444 use parameter GtkScrollType to determine scroll/line/page.
4445 Only allow dragging if a button < 4 is grabbed (bug #5177).
4446 (xg_end_scroll_callback): New function.
4447 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4448 xg_create_scroll_bar.
4449
4450 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4451 (scroll_end_callback): Remove.
4452 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4453 button-release-event. Replace value-changed event with change-value,
4454 bug #5177,
4455 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4456 bug #5177.
4457
4458 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4459 (xg_create_scroll_bar): Add GCallback end_callback.
4460
223e5fc6
JD
4461 * xftfont.c (QClcdfilter): New variable.
4462 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4463 (syms_of_xftfont): Initialize QClcdfilter.
4464
3c055b77
JD
44652009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4466
4467 * xsettings.c (struct xsettings): Add member seen.
4468 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 4469 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
4470 (apply_xft_settings): Only update Xft settings with what member seen
4471 indicates as new.
4472
05fe33ff
EZ
44732009-12-12 Eli Zaretskii <eliz@gnu.org>
4474
4475 * dispextern.h (struct text_pos): Use EMACS_INT;
4476 (struct glyph): Use EMACS_INT for charpos.
4477 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4478 region_beg_charpos, region_end_charpos,
4479 redisplay_end_trigger_charpos, and also for
4480 iterator_stack_entry.end_charpos and
4481 iterator_stack_entry.stop_charpos.
4482
e8d7886a
JD
44832009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4484
5ce6e4f4 4485 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
4486 (xg_create_scroll_bar): Call scroll_end_callback on button release
4487 event (bug #5177).
4488 (xg_event_is_for_scrollbar): != replaced with ==.
4489
d0db2ec8
KH
44902009-12-12 Kenichi Handa <handa@m17n.org>
4491
4492 * ftfont.c (struct ftfont_info): New member matrix.
4493 (ftfont_open): Setup xftfont_info->matrix.
4494 (MFLTFontFT): New member matrix.
4495 (FLOOR, CEIL, ROUND): New macros.
4496 (ftfont_get_metrics): Handle matrix transformation.
4497 (ftfont_shape_by_flt): New arg matrix. Callers changed.
4498
4499 * xftfont.c (struct xftfont_info): New member matrix.
4500 (xftfont_open): Setup xftfont_info->matrix.
4501
45022009-12-10 Kenichi Handa <handa@m17n.org>
4503
4504 * xdisp.c (append_space_for_newline): Consider face-remapping.
4505
2cc7b62f
AS
45062009-12-09 Andreas Schwab <schwab@linux-m68k.org>
4507
b87dd913
AS
4508 * xsettings.c: Include "keyboard.h".
4509
eba5eb94
AS
4510 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
4511
2cc7b62f
AS
4512 Fix implicit function declarations.
4513 * cmds.c: Include "frame.h".
4514 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
4515 * frame.h: Move declaration of delete_frame outside of
4516 HAVE_WINDOW_SYSTEM.
4517
a4ef73c8
CY
45182009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
4519
4520 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
4521
4522 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
4523 GTK builds.
4524
944a300c
AS
45252009-12-07 Andreas Schwab <schwab@linux-m68k.org>
4526
4527 * unexelf.c (unexec): Don't search for .data twice.
4528
022eef62
CY
45292009-12-05 Chong Yidong <cyd@stupidchicken.com>
4530
426ac949
CY
4531 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
4532 if push failed.
4533 (handle_line_prefix): Set avoid_cursor_p here. Check return value
4534 of push_display_prop (Bug#5000).
4535
022eef62
CY
4536 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
4537 value of font_list_entities (Bug#5085).
4538
be95bee9
JB
45392009-12-04 Juanma Barranquero <lekktu@gmail.com>
4540
4541 Fix `string-to-number' to deal consistently with integers and floats.
4542 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4543 trailing characters, not just whitespace.
4544 (read1): Pass new arg 0 to keep old behavior.
4545 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4546 trailing chars, as it is already done for integers. Doc fixes.
4547 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4548
24c2d7ce
EZ
45492009-12-04 Eli Zaretskii <eliz@gnu.org>
4550
0b5397c2
SM
4551 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4552 Delete unused enumeration value.
24c2d7ce 4553
7e694795
EZ
45542009-12-03 Eli Zaretskii <eliz@gnu.org>
4555
4556 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4557
84b31826
SM
45582009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4559
4560 * process.c (Fmake_network_process): Fix up the tests for
4561 "connectionless socket", so they DTRT for seqpacket sockets as well.
4562
f00c449b
SM
45632009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4564
4565 * process.c (Qseqpacket): New symbol.
4566 (HAVE_SEQPACKET): New macro.
4567 (Fmake_network_process): Accept new :type `seqpacket'.
4568 (init_process): Add `seqpacket' feature when applicable.
4569 (syms_of_process): Initialize Qseqpacket.
4570
8096a0ff
YM
45712009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4572
4573 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4574 if entity is Qnil.
4575
3e0de07f
SM
45762009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4577
4578 * print.c (print_preprocess): Preprocess the key_and_value table of
4579 hashtables, even tho they're "hidden" (bug#5082).
4580
abeafb2a
JD
45812009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4582
4583 * frame.c (frame_make_pointer_invisible)
4584 (frame_make_pointer_visible): Declare f before statements.
4585
4bf47195
EZ
45862009-11-28 Eli Zaretskii <eliz@gnu.org>
4587
4588 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4589 omitted dependencies on lisp.h.
4590
c525b3f2
JD
45912009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4592
ece2d4ed
JD
4593 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4594 is NULL.
4595
4596 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4597
4598 * frame.c (frame_make_pointer_invisible)
3e0de07f 4599 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
4600 frame.
4601
c525b3f2
JD
4602 * search.c (simple_search): Remove warning by making *p const.
4603
2f00e299
DN
46042009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4605
4606 * xdisp.c (power_letter): Remove duplicate const.
4607
084b049b
JD
46082009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4609
a1fadc6f
JD
4610 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4611
5ce6e4f4 4612 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
4613 defaults (bug #5025).
4614
28259cac
SM
46152009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4616
4617 * insdel.c (adjust_markers_for_delete): Move it in the
4618 right direction! (bug#4803)
4619
e8e14166
YM
46202009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4621
4622 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4623
4624 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4625
86677b58
GM
46262009-11-24 Glenn Morris <rgm@gnu.org>
4627
4628 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4629
581e51e8
JD
46302009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4631
cfc86c7a
JD
4632 * Makefile.in: Must create deps for ecrt0.o in its rule.
4633
581e51e8
JD
4634 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4635 because that is what Gtk+ font dialog understands.
4636
4637 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4638 of Fcopy_sequence.
4639 (font_open_by_name): Put name given into QCname for font-object returned.
4640
4641 * frame.c (x_set_font): Save original font name as frame parameter
4642 font-parameter.
4643
4644 * xsettings.c (set_default_xft_settings): New function.
4645 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
4646 is found.
4647
8b264ecb
AS
46482009-11-22 Andreas Schwab <schwab@linux-m68k.org>
4649
4650 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
4651 searching backwards through multibyte buffer.
4652
872870b2
JD
46532009-11-21 Jan Djärv <jan.h.d@swipnet.se>
4654
4655 * xterm.c: #include xgselect.h.
4656 (x_initialize): Call xgselect_initialize.
4657
4658 * xsettings.c (something_changedCB): C++ comments => C comments.
4659 (init_gconf): Do not deal with any GLib file descriptors, xg_select
4660 does that now.
4661
4662 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
4663 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
4664 (scroll_bar_button_cb): Remove.
5ce6e4f4 4665 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
4666 event.
4667 (xg_create_scroll_bar): Don't bind button-press-event and
4668 button-release-event.
4669
4670 * process.c: Include xgselect.h if defined (USE_GTK) ||
4671 defined (HAVE_GCONF).
4672 (wait_reading_process_output): Call xg_select for the same condition.
4673
4674 * xgselect.c (xg_select): New function to better integrate with
4675 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
4676
4677 * xgselect.h: New file, declare xg_select, xgselect_initialize.
4678
4679 * Makefile.in (XOBJ): Add xgselect.o.
4680
62a6e103
AS
46812009-11-21 Andreas Schwab <schwab@linux-m68k.org>
4682
0b5397c2
SM
4683 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
4684 Remove ignored second argument. All callers changed.
62a6e103
AS
4685 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
4686 (RE_STRING_CHAR_AND_LENGTH): Likewise.
4687 * xdisp.c (string_char_and_length): Likewise.
4688
b0ca0f33
DN
46892009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
4690
4691 * xterm.c (x_new_font):
4692 * print.c (print_object):
4693 * cmds.c (Fself_insert_command): Move declarations before statements.
4694
dd5a6279
CY
46952009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
4696
4697 * s/cygwin.h: Remove unneeded linker flags.
4698
4a8e097d
JD
46992009-11-20 Jan Djärv <jan.h.d@swipnet.se>
4700
0d1d0d26
JD
4701 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
4702
4703 * xsettings.h: Declare xsettings_get_system_font.
4704
4705 * xsettings.c (xsettings_get_system_font): New function.
4706 (init_gconf): No use initiating gconf unless we have Xft also.
4707 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
4708 HAVE_GCONF.
4709
4a8e097d
JD
4710 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
4711 add a blank entry so it doesn't collapse into nothing.
4712
8ab1650e
SM
47132009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4714
4715 * lread.c (Funintern): Comment out last change.
4716
82c602f0
RS
47172009-11-19 Richard Stallman <rms@gnu.org>
4718
4719 * lread.c (Funintern): Error if symbol is t or nil.
4720
87e32266
SM
47212009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4722
4723 * insdel.c (make_gap_larger): Don't make as many assumptions about the
4724 representation of Lisp integers.
4725 Reported by MJ Chan <mjchan.inbox@gmail.com>.
4726
1b9ac145
AS
47272009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4728
4729 * lisp.h: Remove declaration of Ffont_get_system_font.
4730 * xfns.c: Move include of "xsettings.h".
4731 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
4732
dfb3c4c6
JD
47332009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4734
87e32266
SM
4735 * xsettings.c (something_changedCB, Ffont_get_system_font):
4736 Check use_system_font.
dfb3c4c6
JD
4737 (syms_of_xsettings): DEFVAR font-use-system-font.
4738
9370c1d8
AS
47392009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4740
25fe851a
AS
4741 * xfns.c (x_default_font_parameter): Remove dead assignment.
4742
9370c1d8
AS
4743 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
4744
637fa988
JD
47452009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4746
87e32266 4747 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 4748 not have FC_LCD_*. #define them if not there.
a6eb20d8 4749
87e32266 4750 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 4751
637fa988
JD
4752 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
4753
4754 * xterm.c (handle_one_xevent): Call xft_settings_event for
4755 ClientMessage, PropertyNotify and DestroyNotify.
4756 (x_term_init): If we have XFT, get DPI from Xft.dpi.
4757 Call xsettings_initialize.
4758
4759 * xftfont.c (xftfont_fix_match): New function.
4760 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
4761 Call xftfont_fix_match after XftFontMatch.
4762
4763 * xfont.c (xfont_driver): Initialize all members.
4764
87e32266
SM
4765 * xfns.c (x_default_font_parameter):
4766 Try font from Ffont_get_system_font.
637fa988
JD
4767 Do not get font from x_default_parameter if we got one from
4768 Ffont_get_system_font.
87e32266 4769 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
4770
4771 * w32font.c (w32font_driver): Initialize all members.
4772
4773 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
4774
4775 * lisp.h: Declare syms_of_xsettings.
4776
87e32266
SM
4777 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
4778 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
4779
4780 * ftfont.c (ftfont_filter_properties): New function.
4781
4782 * frame.c (x_set_font): Remove unused variable lval.
4783
87e32266 4784 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
4785
4786 * font.c (font_put_extra): Don't return if val is nil, it means
4787 boolean option is off.
4788 (font_parse_fcname): Collect all extra properties in extra_props
4789 and call filter_properties for all drivers with extra_props and
4790 font as parameter.
87e32266
SM
4791 (font_open_entity): Do not use cache, it does not pick up new
4792 fontconfig settings like hinting.
637fa988
JD
4793 (font_load_for_lface): If spec had a name in it, store it in entity.
4794
a73f9c9d 4795 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
4796
4797 * config.in: HAVE_GCONF is new.
4798
4799 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
4800 xsettings.o is new.
4801
5a942932
KH
48022009-11-17 Kenichi Handa <handa@m17n.org>
4803
4804 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4805 back to the default font in case that no suitable font is found.
4806
b7c7a4d1
SM
48072009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4808
4809 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4810 Suggested by Chad Brown <yandros@mit.edu>.
4811 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4812
072f1e39
JD
48132009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4814
4815 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4816
5d1e70a2
AS
48172009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4818
87e32266 4819 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 4820
a53cfbe5
JD
48212009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4822
473a99b7
JD
4823 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4824 has a parent.
4825
a53cfbe5 4826 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 4827 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
4828
4829 * config.in: Generated (AUTO_DEPEND).
4830
f04bb9b2
MA
48312009-11-13 Michael Albinus <michael.albinus@gmx.de>
4832
b7c7a4d1 4833 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
4834 Vdbus_registered_functions_table, because it contains also
4835 properties. Fix docstring.
b7c7a4d1 4836 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 4837
8f11f7ec
SM
48382009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4839
4840 * alloc.c (mark_object): Don't reprocess marked strings.
4841 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4842 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4843
8a605fe8
KH
48442009-11-13 Kenichi Handa <handa@m17n.org>
4845
8f11f7ec 4846 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
4847 semantics of Vword_combining_categories.
4848 (Vword_combining_categories): Describe the slight change of the
4849 semantics.
4850
241c4680
EZ
48512009-11-13 Eli Zaretskii <eliz@gnu.org>
4852
4853 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4854
4855 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4856
5d58e44c
SM
48572009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4858
4859 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4860
5e13f9d3
JB
48612009-11-12 Juanma Barranquero <lekktu@gmail.com>
4862
4863 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4864
cf54c754
DR
48652009-11-11 David Reitter <david.reitter@gmail.com>
4866
4867 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4868 variables to fix 2009-11-09 change.
4869
a4ada374
DN
48702009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4871
91433552
DN
4872 * process.c (ifflag_def): Make flag_sym constant.
4873 (Fnetwork_interface_info): Use a constant pointer.
4874 (ifflag_table):
4875 * xfns.c (cursor_bits):
4876 * xdisp.c (power_letter):
4877 * termcap.c (speeds, esctab):
4878 * sysdep.c (baud_convert):
4879 * keyboard.c (lispy_accent_codes, modifier_names):
4880 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4881 (jpeg_format, tiff_format, gif_format, svg_format)
4882 (interlace_start, interlace_increment, gs_format):
4883 * gtkutil.c (separator_names):
4884 * fringe.c (swap_nibble):
4885 * fns.c (base64_value_to_char, base64_char_to_value):
4886 * fileio.c (make_temp_name_tbl):
4887 * coding.c (suffixes): Make constant.
4888
f4265f6c
DN
4889 * frame.c (make_initial_frame):
4890 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4891 build_string.
4892 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4893
04420943
DN
4894 * s/freebsd.h:
4895 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4896
0a5d24ae
DN
4897 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4898 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4899
a4ada374
DN
4900 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4901 * xterm.c (syms_of_xterm):
4902 * xfaces.c (syms_of_xfaces):
4903 * xdisp.c (syms_of_xdisp):
4904 * lread.c (syms_of_lread):
4905 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4906 build_string.
91433552 4907
a4ada374
DN
4908 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4909
af98fc7f
SM
49102009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4911
8ab1650e 4912 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 4913
e90292a9
JD
49142009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4915
4916 * keyboard.h: Declare timer_check.
4917
4918 * keyboard.c (timer_check_2): New function that does what the old
4919 timer_check did.
4920 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4921 returned, i.e. don't return -1 with timers pending.
4922
4923 * process.c: Remove extern declaration of timer_check.
4924
4925 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4926 even if timer_check returned -1.
4927
af98fc7f
SM
4928 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4929 xg_dialog_data.
e90292a9
JD
4930 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4931 the event loop.
4932 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4933 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4934 Destroy the dialog after xg_dialog_run.
4935
045b83c0
SM
49362009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4937
4938 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4939
1fb99a3a
JD
49402009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4941
4942 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4943
04e452cb
JB
49442009-11-09 Juanma Barranquero <lekktu@gmail.com>
4945
4946 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4947
ef7417fd
SM
49482009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4949
4950 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4951 w32menu.c, and nsmenu.m.
4952 Simplify the obsolete case where position is nil.
4953 (cleanup_popup_menu): New function, moved from nsmenu.m.
4954 (struct skp): Remove slot `notreal'.
4955 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4956 adjust callers.
4957 (single_menu_item): Adjust call to parse_menu_item.
4958 (syms_of_menu): Defsubr x-popup-menu.
4959 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4960 (keymap_panes): Don't export any more.
4961 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4962 (xmenu_show): Declare.
4963 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4964 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4965 * keyboard.h (parse_menu_item): Update declaration.
4966 * xmenu.c (Fx_popup_menu): Remove.
4967 (syms_of_xmenu): Don't defsubr x-popup-menu.
4968 * w32menu.c (Fx_popup_menu): Remove.
4969 (syms_of_w32menu): Don't defsubr x-popup-menu.
4970 * nsmenu.m (cleanup_popup_menu): Remove.
4971 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4972 moved to menu.c's Fx_popup_menu.
4973 (Fx_popup_menu): Remove.
4974 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4975 menu_items (it's done in menu.c already).
4976
424d6179
SM
49772009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4978
4979 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4980 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4981
c0df13a6 49822009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
4983
4984 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 4985 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
4986 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4987 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4988
2de9f71c
SM
49892009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4990
4991 Let integers use up 2 tags to give them one extra bit and thus double
4992 their range.
4993 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4994 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4995 New macros.
4996 (enum Lisp_Type): Use them. Give explicit values.
4997 (Lisp_Type_Limit): Remove.
4998 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
4999 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5000 Pay attention to USE_2_TAGS_FOR_INTS.
5001 (INTEGERP): Use LISP_INT_TAG_P.
5002 * fns.c (internal_equal): Simplify the default case.
5003 (sxhash): Use case_Lisp_Int.
5004 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5005 any more.
5006 (Ftype_of): Use case_Lisp_Int.
5007 (store_symval_forwarding): Take into account the fact that Ints can
5008 now have more than one tag.
5009 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5010 buffer_slot_type_mismatch):
5011 * xfaces.c (face_attr_equal_p):
5012 * print.c (print_object):
5013 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5014 Use case_Lisp_Int.
5015
323637a2
EZ
50162009-11-06 Eli Zaretskii <eliz@gnu.org>
5017
7ac65b38
EZ
5018 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5019
323637a2
EZ
5020 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5021 warning.
5022
e511451f
JD
50232009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5024
5025 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5026
5027 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5028
5029 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5030 ButtonPressRelease and MotionNotify (bug#4870).
5031
5e2327cf
DN
50322009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5033
5adc433e
DN
5034 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5035
d67b4f80
DN
5036 * xterm.c (syms_of_xterm):
5037 * xselect.c (syms_of_xselect):
5038 * xmenu.c (syms_of_xmenu):
5039 * xfns.c (syms_of_xfns):
5040 * xfaces.c (syms_of_xfaces):
5041 * xdisp.c (syms_of_xdisp):
5042 * window.c (syms_of_window):
5043 * w32fns.c (syms_of_w32fns):
5044 * undo.c (syms_of_undo):
5045 * textprop.c (syms_of_textprop):
5046 * terminal.c (syms_of_terminal):
5047 * syntax.c (syms_of_syntax):
5048 * sound.c (syms_of_sound):
5049 * search.c (syms_of_search):
5050 * print.c (syms_of_print):
5051 * minibuf.c (syms_of_minibuf):
5052 * macros.c (syms_of_macros):
5053 * keymap.c (syms_of_keymap, initial_define_key)
5054 (initial_define_lispy_key):
5055 * keyboard.c (syms_of_keyboard):
5056 * insdel.c (syms_of_insdel):
5057 * image.c (syms_of_image):
5058 * fringe.c (syms_of_fringe):
5059 * frame.c (syms_of_frame):
5060 * fontset.c (syms_of_fontset):
5061 * fns.c (syms_of_fns):
5062 * fns.c (syms_of_fns):
5063 * fileio.c (syms_of_fileio):
5064 * fileio.c (syms_of_fileio):
5065 * eval.c (syms_of_eval):
5066 * doc.c (syms_of_doc):
5067 * dispnew.c (syms_of_display):
5068 * dired.c (syms_of_dired):
5069 * dbusbind.c (syms_of_dbusbind):
5070 * data.c (syms_of_data):
5071 * composite.c (syms_of_composite):
5072 * coding.c (syms_of_coding):
5073 * cmds.c (syms_of_cmds):
5074 * charset.c (define_charset_internal, syms_of_character):
5075 * ccl.c (syms_of_ccl):
5076 * category.c (syms_of_category, init_category_once):
5077 * casetab.c (syms_of_casetab):
5078 * casefiddle.c (syms_of_casefiddle):
5079 * callint.c (syms_of_callint):
5080 * bytecode.c (syms_of_bytecode):
5081 * buffer.c (keys_of_buffer, syms_of_buffer):
5082 * alloc.c (syms_of_alloc):
5083 * process.c (syms_of_process, init_process):
5084 * lread.c (syms_of_lread, init_obarray):
5085 * font.c (build_style_table):
5086 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5087 intern_c_string, calls to make_pure_string with
5088 make_pure_c_string. Use pure_cons instead of Fcons.
5089
5e2327cf
DN
5090 * process.c (socket_options): Make it const.
5091 (set_socket_option, init_process): Use a const pointer.
5092
5093 * lread.c (intern_c_string): New function.
5094 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5095 (defvar_int): Uset it. Make the name const char*.
5096
5097 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5098 (defvar_int): Update prototypes.
5099 (DEFUN, EXFUN): Support for prototypes is now required.
5100 (intern_c_string): New prototype.
5101 (struct Lisp_Subr): Make symbol_name constant.
5102
5103 * font.c (struct table_entry): Remove unused member. Make NAMES
5104 constant.
5105 (weight_table, slant_table, width_table): Make constant.
5106
5107 * emacs.c (struct standard_args): Make name and longname constant.
5108
5109 * character.h (DEFSYM): Use intern_c_string.
5110
a56eaaef
DN
51112009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5112
5113 * alloc.c (make_pure_c_string): New function.
5114
5115 * eval.c (Fautoload): Purecopy all arguments.
5116
f6a07420
KH
51172009-11-05 Kenichi Handa <handa@m17n.org>
5118
5119 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5120 the buffer in case of replace.
5121
5d28d4b1
DN
51222009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5123
5124 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5125
b349d111
SM
51262009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5127
d528b1ce
SM
5128 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5129 when applicable (bug#4851).
5130
b349d111
SM
5131 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5132 (P_): Support for prototypes is now required.
5133
c38eb027
CY
51342009-10-31 Chong Yidong <cyd@stupidchicken.com>
5135
5136 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5137 (Bug#4827).
5138
0405f8d9
EZ
51392009-10-30 Eli Zaretskii <eliz@gnu.org>
5140
d528b1ce 5141 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5142
ca0a881a
DN
51432009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5144
5145 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5146
d528b1ce
SM
5147 * lread.c (Fload): Purecopy the file name when building
5148 Vpreloaded_file_list.
ca0a881a 5149
47e0e0e4
JR
51502009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5151
5152 * w32fns.c (syms_of_w32fns): Change default value of
5153 w32-scroll-lock-modifier to nil. (Bug#2827)
5154
057bce6f
JB
51552009-10-26 Juanma Barranquero <lekktu@gmail.com>
5156
782a943e 5157 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5158
242bc74c
AS
51592009-10-26 Andreas Schwab <schwab@redhat.com>
5160
5161 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5162
522d013a
JB
51632009-10-26 Juanma Barranquero <lekktu@gmail.com>
5164
5165 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5166 For delta < 0, skip check that only makes sense when the mini-window
5167 is going to be enlarged. (Bug#4534)
5168
18060980
CY
51692009-10-25 Chong Yidong <cyd@stupidchicken.com>
5170
5171 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5172 string in menu maps (Bug#4471).
5173
fec8f0fe
CY
51742009-10-24 Chong Yidong <cyd@stupidchicken.com>
5175
5176 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5177 FRAME_NS_VIEW on terminal frames (Bug#4765).
5178
10d66ec0
AS
51792009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5180
1cae01f7
AS
5181 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5182 DBUS_TYPE_UINTnn separately to get proper sign extension.
5183
58a12889
AS
5184 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5185 can properly handle unsigned types.
d528b1ce 5186 (make_uid, make_gid): Remove.
58a12889 5187
987c9327
AS
5188 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5189 types again.
5190
522d013a 5191 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5192 (system_process_attributes): Likewise.
5193
905a9ed3
DN
51942009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5195
5196 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5197
5198 * eval.c (Fautoload): Purecopy the filename. Simplify.
5199
5200 * category.c (Fdefine_category): Purecopy docstring.
5201
a599b3e8
AS
52022009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5203
7b792fc9
AS
5204 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5205
a599b3e8
AS
5206 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5207
b35ac83e
CY
52082009-10-23 Chong Yidong <cyd@stupidchicken.com>
5209
5210 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5211 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5212 (Bug#4775).
5213
e8903e00
SM
52142009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5215
5216 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5217 (init_fileio_once):
5218 * lisp.h (init_fileio_once): Remove.
5219 * emacs.c (main): Don't call init_fileio_once.
5220
8f43cbf3
DN
52212009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5222
5223 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5224
26898943
AS
52252009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5226
5227 * doprnt.c (doprnt): Fix overflow check.
5228
5c646d5a
JD
52292009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5230
3132a7ea
JD
5231 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5232
5c646d5a
JD
5233 * xterm.h (x_wait_for_event): Declare it.
5234
5235 * xterm.c (pending_event_wait): New variable.
5236 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5237 see pending_event_wait.eventtype.
5238 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5239 (x_new_font): Call change_frame_size with new rows/columns before we
5240 try to resize the frame.
5c646d5a 5241 (x_wait_for_event): New function.
d528b1ce
SM
5242 (x_set_window_size_1): Don't change gravity unless change_gravity
5243 is set.
5c646d5a
JD
5244 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5245 don't change frame size, instead wait for the ConfigureNotify.
5246 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5247 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5248 (x_initialize): Initialize pending_event_wait.
5249
5250 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5251 size.
5252
5253 * widget.c (EmacsFrameSetValues): Add comment.
5254 (EmacsFrameSetCharSize): Just call x_set_window_size.
5255
5256 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5257 x_wait_for_event.
d528b1ce 5258 (flush_and_sync): Remove again.
5c646d5a
JD
5259 (xg_get_font_name): Suggest monospace if no previous font is known.
5260
e9c1637d
SM
52612009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5262
5263 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5264 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5265
5a72cccb
YM
52662009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5267
5268 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5269 processing pending events when event is filtered for input method.
ab04798f 5270 (Bug#3681)
5a72cccb 5271
2629aa37
JB
52722009-10-20 Juanma Barranquero <lekktu@gmail.com>
5273
5274 * fns.c: Add #endif accidentally removed in previous change.
5275
c3417a74
DN
52762009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5277
5278 * fns.c: Remove code for unsupported system: MAC_OS.
5279 * image.c: Likewise. Include setjmp.h.
5280
9685cef2
JD
52812009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5282
5283 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5284 pixel -1 (bug #4742).
5285
d7306fe6
DN
52862009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5287
019d2c4c
DN
5288 * process.c (create_pty): Remove conditionals for no longer
5289 supported systems: UNIPLUS and RTU.
5290
ee6bacd4
DN
5291 * xterm.c:
5292 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5293
d7306fe6
DN
5294 * alloc.c: Do not define struct catchtag.
5295 * eval.c: Move struct catchtag definition ...
5296 * lisp.h: ... here.
5297
5298 * image.c: Move png.h #include earlier to avoid warnings.
5299
5300 * xterm.c:
5301 * xsmfns.c:
5302 * xselect.c:
5303 * xrdb.c:
5304 * xmenu.c:
5305 * xftfont.c:
5306 * xfont.c:
5307 * xfns.c:
5308 * xfaces.c:
5309 * xdisp.c:
5310 * window.c:
5311 * widget.c:
5312 * w32xfns.c:
5313 * w32uniscribe.c:
5314 * w32term.c:
5315 * w32select.c:
5316 * w32reg.c:
5317 * w32proc.c:
5318 * w32menu.c:
5319 * w32inevt.c:
5320 * w32heap.c:
5321 * w32font.c:
5322 * w32fns.c:
5323 * w32console.c:
5324 * w32.c:
5325 * w16select.c:
5326 * vm-limit.c:
5327 * unexsol.c:
5328 * unexec.c:
5329 * unexcw.c:
5330 * unexaix.c:
5331 * undo.c:
5332 * tparam.c:
5333 * textprop.c:
5334 * terminfo.c:
5335 * terminal.c:
5336 * termcap.c:
5337 * term.c:
5338 * syntax.c:
5339 * sound.c:
5340 * sheap.c:
5341 * search.c:
5342 * scroll.c:
5343 * region-cache.c:
5344 * regex.c:
5345 * ralloc.c:
5346 * process.c:
5347 * print.c:
b024548b
DN
5348 * nsterm.m:
5349 * nsselect.m:
5350 * nsmenu.m:
5351 * nsimage.m:
5352 * nsfont.m:
5353 * nsfns.m:
d7306fe6
DN
5354 * msdos.c:
5355 * minibuf.c:
5356 * menu.c:
5357 * marker.c:
5358 * macros.c:
5359 * keymap.c:
5360 * keyboard.c:
5361 * intervals.c:
5362 * insdel.c:
5363 * indent.c:
5364 * gtkutil.c:
5365 * ftxfont.c:
5366 * ftfont.c:
5367 * fringe.c:
5368 * frame.c:
5369 * fontset.c:
5370 * font.c:
5371 * fns.c:
5372 * floatfns.c:
5373 * filelock.c:
5374 * fileio.c:
5375 * emacs.c:
5376 * editfns.c:
5377 * dosfns.c:
5378 * doprnt.c:
5379 * doc.c:
5380 * dispnew.c:
5381 * dired.c:
5382 * dbusbind.c:
5383 * data.c:
5384 * composite.c:
5385 * coding.c:
5386 * cmds.c:
5387 * cm.c:
5388 * chartab.c:
5389 * charset.c:
5390 * character.c:
5391 * ccl.c:
5392 * category.c:
5393 * casetab.c:
5394 * casefiddle.c:
5395 * callproc.c:
5396 * callint.c:
5397 * bytecode.c:
5398 * buffer.c:
5399 * atimer.c: Include setjmp.h. (Bug#4643)
5400
fd5f21e6
SM
54012009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5402
4c0354d7
SM
5403 Remove leftover table unibyte_to_multibyte_table.
5404 * character.c (unibyte_to_multibyte_table): Remove.
5405 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5406 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5407 * character.h (UNIBYTE_TO_CHAR): New macro.
5408 (MAKE_CHAR_MULTIBYTE): Use it.
5409 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5410 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5411 (message_dolog, set_message_1):
5412 * search.c (Freplace_match):
5413 * editfns.c (Fcompare_buffer_substrings):
5414 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5415 (concat):
5416 * insdel.c (copy_text, count_size_as_multibyte):
5417 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5418 * term.c (produce_glyphs):
5419 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5420 * regex.c (RE_CHAR_TO_MULTIBYTE):
5421 * cmds.c (internal_self_insert):
5422 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5423
fd5f21e6
SM
5424 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5425
4418646e
DN
54262009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5427
5428 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5429
35f5c1d2
JB
54302009-10-16 Juanma Barranquero <lekktu@gmail.com>
5431
5432 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5433
a0cd8f6b
AR
54342009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5435
5436 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5437 still needed under Tiger.
5438
5439 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5440
5441 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5442 __Apple__.
5443
5444 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5445
01a8d3fa
KH
54462009-10-15 Kenichi Handa <handa@m17n.org>
5447
5448 * print.c (print_object): Escape a symbol like "2E10" too.
5449
bf6c75c9 54502009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
5451
5452 Cleanups and changes for 64-bit compile under Snow Leopard.
5453 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
5454
5455 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5456
c5959062 5457 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
5458 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5459 cast argument.
5460 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 5461 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
5462
5463 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5464
5465 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5466 where appropriate.
5467
5468 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5469 where appropriate.
6e4780c5
JB
5470 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5471 Use stringWithUTF8String.
bf6c75c9
AR
5472 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5473
6e4780c5
JB
5474 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5475 Add formal protocol mention to inheritance.
bf6c75c9
AR
5476 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5477
6e4780c5
JB
5478 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5479 Fix printf format.
bf6c75c9
AR
5480 (ns_query_color): Use CGFloat where appropriate.
5481 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 5482 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
5483 argument.
5484
3d87f118
AR
5485 * config.in (NS_HAVE_NSINTEGER): Drop.
5486
a95c8102
AR
5487 * dbusbind.c (dbus-method-return-internal)
5488 (dbus-method-error-internal): Use long format in printf, and cast
5489 argument.
5490
5491 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5492 in printf, and cast argument.
5493
6873acca 5494 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
5495 cast argument.
5496
9ec6f100
GM
54972009-10-11 Glenn Morris <rgm@gnu.org>
5498
5499 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
5500
5be883cd
JD
55012009-10-08 Jan Djärv <jan.h.d@swipnet.se>
5502
5503 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
5504 menu bar with a small width so it doesn't enlarge the frame.
5505
d7a39b51
JB
55062009-10-08 Juanma Barranquero <lekktu@gmail.com>
5507
5508 * fontset.c (Fset_fontset_font): Fix typos in error messages.
5509
0c2b6f8e
GM
55102009-10-06 Glenn Morris <rgm@gnu.org>
5511
5512 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
5513 SOME_MACHINE_LISP (this enters indirectly via DOC).
5514
e02131a2
EZ
55152009-10-05 Eli Zaretskii <eliz@gnu.org>
5516
5517 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
5518
b4744254
EZ
55192009-10-04 Eli Zaretskii <eliz@gnu.org>
5520
5521 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
5522 Doc fix.
5523
dbf64827
JB
55242009-10-03 Martin Rudalics <rudalics@gmx.at>
5525
5526 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
5527
e9a0aef8
MA
55282009-10-02 Michael Albinus <michael.albinus@gmx.de>
5529
d528b1ce 5530 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
5531 used anymore outside fileio.c.
5532
5533 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
5534
64eb2b56
JB
55352009-10-01 Juanma Barranquero <lekktu@gmail.com>
5536
5537 * lisp.h (Qdelete_directory_internal):
5538 Declare, instead of Qdelete_directory.
5539
5540 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5541
9d28c33e
SM
55422009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5543
5544 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5545
9d8f3bd9
MA
55462009-10-01 Michael Albinus <michael.albinus@gmx.de>
5547
9d28c33e 5548 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
5549 Fdelete_directory. It is not a command anymore. It has no file
5550 name handler.
5551
9694740b
SM
55522009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5553
5554 * xdisp.c (get_next_display_element): Use an enum in last change.
5555
748e162f
KH
55562009-09-28 Kenichi Handa <handa@m17n.org>
5557
9694740b 5558 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
5559 unibyte_display_via_language_environment in handling
5560 Vnobreak_char_display.
5561
17efd58d
AR
55622009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5563
5564 * nsterm.h (ns_app_name): New extern variable.
5565
5566 * nsterm.m (ns_app_name): New variable.
5567 (ns_term_init): Set and use it.
5568 (ns_term_shutdown): Use it.
5569
5570 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5571 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5572
5573 * nsfns.m (ns_set_name_iconic, ns_set_name)
5574 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5575 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5576
9694740b
SM
5577 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5578 Remove double-casting in client_data comparison.
31c2d412 5579
3208cb35
YM
55802009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5581
5582 * keyboard.c (make_lispy_event): Remember last wheel direction.
5583 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5584
b7d552d6
GM
55852009-09-26 Glenn Morris <rgm@gnu.org>
5586
5587 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5588 internal.elc. Add term/pc-win.elc.
5589 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5590 term/x-win.elc.
5591 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5592 term/w32-win.elc.
5593 (NS_SUPPORT): New.
5594 (lisp): Add NS_SUPPORT.
5595 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5596
4ff670a8
DR
55972009-09-25 David Reitter <david.reitter@gmail.com>
5598
5599 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5600 on Mac OS X 10.6+ (bug#4513).
5601
feabfb6c
JB
56022009-09-24 Juanma Barranquero <lekktu@gmail.com>
5603
5604 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
5605 some parts of Emacs code (like font selection) don't grok them.
5606 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 5607
de59072a
AS
56082009-09-24 Andreas Schwab <schwab@redhat.com>
5609
5610 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5611
a489517b
JB
56122009-09-24 Juanma Barranquero <lekktu@gmail.com>
5613
5614 * dired.c (Fdirectory_files): Fix typo in docstring.
5615
0592970c
AR
56162009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5617
5618 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5619 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5620 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5621 under GNUstep.
5622 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5623
5624 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5625 glyph advancement.
5626
48e8a88b
AR
56272009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5628
5629 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 5630 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
5631
5632 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5633 deleted (bug #4492).
5634
e14f0a78
AR
5635 * nsfont.m (Vns_reg_to_script): New lisp variable.
5636 (syms_of_nsfont): Declare it.
5637 (ns_registry_to_script): New function.
5638 (ns_get_req_script): Call it.
5639 (ns_findfonts): Don't give up on non-unicode registry.
5640
5641 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
5642
5b650faa
SM
56432009-09-20 Tom Tromey <tromey@redhat.com>
5644
5645 * eval.c (find_handler_clause): Make stack-trace-on-error work in
5646 batch mode (bug#4228).
5647
a489517b 56482009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
5649
5650 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 5651 carefully. (Bug #4339)
0bae4e09 5652
fcfe06f3
CY
56532009-09-18 Chong Yidong <cyd@stupidchicken.com>
5654
d798ba87 5655 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 5656
31642728
AR
56572009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5658
5659 * emacs.c (inhibit_x_resources): Update doc string for NS.
5660 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 5661 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
5662
5663 * nsterm.h (ns_no_defaults): Remove.
5664
5665 * nsterm.m (ns_no_defaults): Remove.
5666 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
5667 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
5668 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
5669 don't update the NSWindow itself.
5670 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 5671 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
5672
5673 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
5674 ns_use_qd_smoothing.
5675
5676 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
5677 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 5678 (x-close-connection): Drop PSFlush() under OS X.
a489517b 5679 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 5680
8686ac71
JB
56812009-09-17 Juanma Barranquero <lekktu@gmail.com>
5682
5683 * emacs.c (inhibit_x_resources): New variable.
5684 (main) [HAVE_NS]: Don't process --quick command line option.
5685 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
5686
5687 * lisp.h (inhibit_x_resources): Declare it extern.
5688
5689 * w32reg.c (x_get_string_resource):
5690 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
5691
e227ba05
EZ
56922009-09-17 Eli Zaretskii <eliz@gnu.org>
5693
362654a6
JB
5694 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
5695 Add lisp/term/internal.elc.
e227ba05 5696
742d40e8
SM
56972009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5698
5699 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
5700 (bug#4461).
5701
005bd5a2
DN
57022009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
5703
5704 * puresize.h (BASE_PURESIZE): Increase to 1290000.
5705
5706 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
5707 (OBJECTS_MACHINE): Remove, unused.
5708
f9af9719
SM
57092009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
5710
5711 * frame.c (x_get_resource_string): Remove unused.
5712
0307c7d2
JD
57132009-09-15 Jan Djärv <jan.h.d@swipnet.se>
5714
5715 * xterm.c (x_new_font): Call change_frame_size before calling
5716 x_set_window_size, in case frame size won't change.
5717
5718 * frame.c (x_set_font): Remove dead code.
5719
428b13d6
SM
57202009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
5721
5722 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
5723
5766c380
SM
57242009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5725
5726 * lread.c (Fload): Don't output a message after loading an obsolete
5727 package any more (done in Lisp now).
5728
2fd0161b
CY
57292009-09-12 Chong Yidong <cyd@stupidchicken.com>
5730
5731 * fns.c (syms_of_fns): Doc fix (Bug#4227).
5732
bc5e75b6
SM
57332009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5734
5735 * keymap.c (Fwhere_is_internal): Use nconc2.
5736
c31c985e
AM
57372009-09-11 Alan Mackenzie <acm@muc.de>
5738
5739 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
5740 batch mode.
5741
78012bd2
AS
57422009-09-11 Andreas Schwab <schwab@linux-m68k.org>
5743
5744 * xdisp.c (display_mode_element): Detect cycles.
5745
9d889332
SM
57462009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5747
5748 * keymap.c (where_is_internal): Don't erroneously return nil right after
5749 filling the cache.
5750 (where_is_internal_1): Fix up typo.
5751
7ab5d780
GM
57522009-09-11 Glenn Morris <rgm@gnu.org>
5753
5754 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
5755 share a common doc-string.
5756
5238a749
SM
57572009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5758
66d77eda
SM
5759 * keymap.c (get_keymap): Return the actual keymap symbol rather than
5760 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
5761
5238a749
SM
5762 * keymap.c (QCadvertised_binding): New constant.
5763 (syms_of_keymap): Initialize it.
5764 (Fwhere_is_internal): Try and use bindings from :advertised-binding
5765 if applicable.
5766
19f48442
SM
57672009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
5768
50d4ba39
SM
5769 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
5770 (parse_menu_item): Streamline since bindings are recomputed all the
5771 time anyway. Don't bother checking Vdefine_key_rebound_commands any
5772 more and don't support lmenu's menu-alias any more either.
5773
a88a5372
SM
5774 * keymap.c (where_is_internal_data): Make noindirect a boolean.
5775 (where_is_internal): Strip it down to only traverse the keymaps.
5776 Move the cache handling from Fwhere_is_internal to here.
5777 (Fwhere_is_internal): Move the handling of remapping and the choice of
5778 the best binding from where_is_internal to here.
5779 Unify the cached/noncached paths, so remapping is also handled
5780 correctly when the cache is used, and so the cache can be used to
5781 speed up remap-handling when applicable.
5782 Give preference to non-remapped bindings.
5783 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
5784 non-remapped bindings.
5785 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
5786 command remapping.
5787
19f48442
SM
5788 * xdisp.c (display_mode_element): Move list length limit from 50 to
5789 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
5790
599498c3 57912009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
5792
5793 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
5794
f9b7b5ac
SM
57952009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
5796
a53af587
JB
5797 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
5798 (Bug#4334)
5799
f9b7b5ac
SM
5800 * keymap.c (where_is_internal): Filter out shadowed remappings.
5801 Assume that where_is_internal returns unshadowed bindings to simplify
5802 the code and get rid of the gotos. Use ASIZE.
5803
04f4b72d
JD
58042009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5805
4da146f2
JD
5806 * xterm.c (x_focus_changed): If we get a focusout and pointer
5807 is invisible, make it visible.
5808
04f4b72d
JD
5809 * xterm.h: Remove condition for declaration of
5810 x_*_window_to_frame.
5811
7cef7ce3
SM
58122009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5813
5814 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5815 initial terminal as well.
5816
a54fa5b7
JD
58172009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5818
5819 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 5820 x_menubar_window_to_frame.
a54fa5b7 5821
50426a04 5822 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
5823 (XTmouse_position): Do not return valid positions
5824 for clicks in the menubar and the toolbar for Gtk+.
5825
5826 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5827 if the widget for the event has the same top level as a frame,
5828 return the frame.
5829 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5830 internal windows, bug #4122.
5831 (x_non_menubar_window_to_frame): Remove.
5832
5a021dd0
GM
58332009-09-02 Glenn Morris <rgm@gnu.org>
5834
5835 * buffer.c (default-major-mode): Move most of the doc from here...
5836 (major-mode): ... to here.
5837
548fe2f3
NR
58382009-08-30 Nick Roberts <nickrob@snap.net.nz>
5839
5840 * process.c (wait_reading_process_output): Keep the descriptor
5841 when pty is used by a non-child process, e.g., in I/O buffer of
5842 GDB this allows inferior to be restarted.
5843
e0840eef
EZ
58442009-08-29 Eli Zaretskii <eliz@gnu.org>
5845
5846 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5847 both branches into one.
5848
82e98df4
SM
58492009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5850
5851 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5852 (main): Use enable-multibyte-characters rather than
5853 default-enable-multibyte-characters. Output a warning message when
5854 running a unibyte session.
5855
890617cb
YM
58562009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5857
5858 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5859 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5860 (copy_data_segment): Also copy __program_vars section.
5861 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5862 (dump_it) [LC_DYLD_INFO]: Use it.
5863
5864 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5865
e7adeadc
EZ
58662009-08-28 Eli Zaretskii <eliz@gnu.org>
5867
5868 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5869 $(SRC)/buildobj.h.
5870 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5871 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5872 $(SRC)/buildobj.h.
5873 (clean): Add buildobj.h.
5874
3ed8bbdc
TZ
58752009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5876
5877 * print.c (print_object): Set escapeflag to 1 when printing
5878 hashtable keys and values.
5879
155a6764
SM
58802009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5881
5882 * lread.c (read_integer): Use doubles (and potentially return a float
5883 number) as we do in string-to-number.
5884 (read1): Use strtol to read integers, signal errors on strtol's
5885 overflow and use floats if strtol's output is too large for
5886 Elisp integers.
5887
877610de
EZ
58882009-08-27 Eli Zaretskii <eliz@gnu.org>
5889
5890 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5891 (make-buildobj-SH): Fix last change.
5892 (SRC): Move to before where it's first used.
5893
ef73e7be
KH
58942009-08-27 Kenichi Handa <handa@m17n.org>
5895
550c8289
KH
5896 * process.c (send_process): Use encode_coding_object instead of
5897 encode_coding_string to perform eol-conversion even if the string
5898 is unibyte.
5899
60afa08d
KH
5900 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5901 character.
5902
ef73e7be 5903 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 5904 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 5905
7b3a82d7
DN
59062009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5907
5654bf63
DN
5908 * callproc.c (Fcall_process): Remove always true #if.
5909
7b3a82d7
DN
5910 * lisp.h: Replace #if 0 code for checking with text pointing to
5911 the --enable-checking configure flag.
5912
5913 * emacs.c (main): Mention the --enable-profiling configure flag
5914 instead of using CFLAGS.
5915
878bde49
KR
59162009-08-26 Ken Raeburn <raeburn@raeburn.org>
5917
5918 * Makefile.in (buildobj.h): New target.
5919 (doc.o): Depend on it.
5920 (temacs${EXEEXT}): Don't generate buildobj.lst.
5921 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5922 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5923 ($(BLD)/doc.$(O)): Depend on it.
5924 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5925 provided by Eli Zaretskii.)
5926 ($(TEMACS)): Don't generate buildobj.lst.
5927 * doc.c: Include buildobj.h.
5928 (buildobj): New static variable.
5929 (Fsnarf_documentation): Use it, instead of opening and reading
5930 buildobj.lst.
5931
1574224c
MA
59322009-08-25 Michael Albinus <michael.albinus@gmx.de>
5933
5934 * dbusbind.c (Fdbus_call_method)
5935 (Fdbus_call_method_asynchronously): Use English numeric format for
5936 timeout values in doc string.
5937
d9da2f45
KH
59382009-08-25 Kenichi Handa <handa@m17n.org>
5939
ef73e7be
KH
5940 * alloc.c (mark_char_table): New function.
5941 (mark_object): Use mark_char_table for a char-table.
5942
d9da2f45
KH
5943 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5944 (CHAR_TABLE_REF): Use it.
5945
c8edcc01
KR
59462009-08-23 Ken Raeburn <raeburn@raeburn.org>
5947
5948 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5949 before invoking the newly build emacs to check for load-path
5950 shadowing.
5951
7763401b
GM
59522009-08-22 Glenn Morris <rgm@gnu.org>
5953
5954 * Makefile.in (bootstrap_exe): New variable.
5955 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5956 Use ${bootstrap_exe}.
5957
729eadda
EZ
59582009-08-22 Eli Zaretskii <eliz@gnu.org>
5959
5960 * coding.h (encode_coding_string): Don't encode unibyte strings.
5961 (Bug#4047)
5962
eb4c6ace
MA
59632009-08-22 Michael Albinus <michael.albinus@gmx.de>
5964
5965 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5966
5967 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5968 intended as hotfix only.
5969 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5970
36e34d1b
AR
59712009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5972
5973 * nsterm.m (ns_get_color): Update documentation properly for last
5974 change, and clean up loose ends in the code left by it. Fix
5975 longstanding bug with 16-bit hex parsing, and add support for
5976 yet another X11 format (rgb:r/g/b) for compatibility.
5977 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5978 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5979
f983eb8a
SM
59802009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5981
5982 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5983
3f56d3c6
MA
59842009-08-20 Michael Albinus <michael.albinus@gmx.de>
5985
5986 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5987 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5988 (xd_initialize, xd_pending_messages): Check, whether
5989 $DBUS_SESSION_BUS_ADDRESS is set.
5990
fb641d68
YM
59912009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5992
5993 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5994
5995 * nsterm.m (ns_get_color): Remove incompatible color formats again.
5996
cf59a374
GM
59972009-08-20 Glenn Morris <rgm@gnu.org>
5998
5999 * emacs.c (system-type): Doc fix.
6000
1373f3be
SM
60012009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6002
6003 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6004 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6005
058ed861
MA
60062009-08-18 Michael Albinus <michael.albinus@gmx.de>
6007
1373f3be
SM
6008 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6009 New functions.
058ed861
MA
6010 (xd_initialize): Revert change from 2009-08-16.
6011
563a866e 60122009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6013
6014 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6015 font-group vector, return nil.
5fc05db0 6016
e42bdf01
CY
60172009-08-17 Chong Yidong <cyd@stupidchicken.com>
6018
6019 * process.c (status_notify): Don't perform redisplay.
6020 (Fdelete_process, list_processes_1, process_send_signal):
6021 Expliticly perform redisplay.
6022 (wait_reading_process_output): Always check process status, but
6023 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6024
4230ab74
KR
60252009-08-17 Ken Raeburn <raeburn@raeburn.org>
6026
1373f3be 6027 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6028 (XFLOAT_INIT): New macro for storing a float value.
6029 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6030 * fns.c (sxhash): Copy out the value of a float in order to
6031 examine its bytes.
6032 * dbusbind.c (xd_append_arg): Likewise.
6033
4230ab74
KR
6034 * emacs.c (main): Don't call syms_of_data twice.
6035
a0645cdd
MA
60362009-08-16 Michael Albinus <michael.albinus@gmx.de>
6037
6038 * dbusbind.c (xd_initialize): Add connection file descriptor to
6039 input_wait_mask, in order to let select() detect, whether a new
6040 message has been arrived.
ca4f31ea 6041 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6042
485db0ba
MA
60432009-08-15 Michael Albinus <michael.albinus@gmx.de>
6044
1373f3be
SM
6045 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6046 New functions.
485db0ba
MA
6047
6048 * lisp.h (xd_pending_messages): Declare.
6049
6050 * keyboard.c (readable_events): Call xd_pending_messages.
6051
b5b98ff4
CY
60522009-08-15 Chong Yidong <cyd@stupidchicken.com>
6053
1373f3be 6054 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6055
f8354c6e
CY
6056 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6057
b5b98ff4
CY
6058 * buffer.c (set_buffer_internal_1)
6059 (swap_out_buffer_local_variables): Check for unbound local
6060 variables (Bug#4138).
6061
8b9fc636
EZ
60622009-08-14 Eli Zaretskii <eliz@gnu.org>
6063
6064 * process.c (create_pty): Fix last change.
6065
ce959360
CY
60662009-08-13 Chong Yidong <cyd@stupidchicken.com>
6067
6068 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6069 (xbm_load_image): Caller changed.
64b807c9 6070 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6071
c7baf7e9
NR
60722009-08-13 Nick Roberts <nickrob@snap.net.nz>
6073
6074 * process.c (create_pty): New function.
6075 (Fstart_process): Use it to allow Emacs to just associate a pty
6076 with the buffer. See associated change in gdb-mi.el.
6077 (list_processes_1): Deal with no program name.
6078 (start_process_unwind): Use pid == -2 to mean no process.
6079
1ac9108a
SM
60802009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6081
6082 * cmds.c (nonundocount): New global variable.
6083 (keys_of_cmds): Initialize it.
6084 (Fself_insert_command): Use it to combine upto 20 sequential chars
6085 into a single undo entry, just like the Qself_insert_command code in
6086 keyboard.c does.
6087 Call frame_make_pointer_invisible, also like the Qself_insert_command
6088 code in keyboard.c does.
6089 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6090 than its own local replacement for it.
6091
e267324c
KR
60922009-08-10 Ken Raeburn <raeburn@raeburn.org>
6093
1ac9108a 6094 * fns.c (concat): Don't re-set string length to its current value.
77437343 6095
1ac9108a
SM
6096 * coding.h (decode_coding_string, encode_coding_string):
6097 Use SBYTES macro.
f0bed503 6098
1ac9108a 6099 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6100 (doprnt): Merge with doprnt1, discarding lispstrings code.
6101 * lisp.h (doprnt_lisp): Don't declare.
6102
416e006d
JL
61032009-08-07 Juri Linkov <juri@jurta.org>
6104
6105 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6106
6f7d5780
DN
61072009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6108
6109 * print.c (syms_of_print): Undo previous change.
6110
f19a0f5b
TZ
61112009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6112
6113 * lread.c (read1, syms_of_lread): Read hashtables back from the
6114 readable format.
6115
6116 * print.c (print_preprocess, print_object): Print hashtables fully
6117 and readably.
6118 (syms_of_print): Provide 'hashtable-print-readable.
6119
b9173dc2
AR
61202009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6121
6122 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6123 no family set.
6124 (nsfont_open): Handle case when entity has no family.
6125
1586503c
AR
61262009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6127
6128 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6129 element, not a list, for match case.
6130
087048cd
KH
61312009-07-28 Kenichi Handa <handa@m17n.org>
6132
6133 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6134 rigidly.
6135
6136 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6137 font_parse_xlfd. Check font properties more rigidly.
6138
780c2506
DN
61392009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6140
31fd7c5c
JB
6141 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6142 bsd-common.h.
780c2506 6143
a8c0cc18
KH
61442009-07-27 Kenichi Handa <handa@m17n.org>
6145
6146 * xfaces.c (face_with_height): Call font_clear_prop.
6147
4fbe2306
CY
61482009-07-26 Chong Yidong <cyd@stupidchicken.com>
6149
111d9af3
CY
6150 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6151
6152 * xterm.c (x_term_init): Use Qx.
6153
4fbe2306
CY
6154 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6155
1ac9108a 6156 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6157 (ns_get_color): Revert 2009-07-16 change.
6158
beb0b7f9
EZ
61592009-07-25 Eli Zaretskii <eliz@gnu.org>
6160
6161 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6162 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6163
2baf5e76
KR
61642009-07-25 Ken Raeburn <raeburn@raeburn.org>
6165
1ac9108a
SM
6166 * coding.h (decode_coding_string, encode_coding_string):
6167 Use SCHARS macro.
8890e5f5 6168
2baf5e76 6169 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6170 (load_depth): Delete.
2baf5e76
KR
6171 (Qload_in_progress): New variable.
6172 (load_unwind): Don't reference load_depth or load_in_progress.
6173 (Fload): Likewise; specbind Qload_in_progress instead.
6174 (init_lread): Don't initialize load_depth.
6175 (syms_of_lread): Initialize and protect Qload_in_progress.
6176
1395c6f5
AR
61772009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6178
6179 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6180
4e2f36cf
AR
61812009-07-23 Yavor Doganov <yavor@gnu.org>
6182
6183 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6184
5dd9a6f7
AR
61852009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6186
6187 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6188 Bugs 3792, 3720, 2402.
6189 (ns_lookup_indexed_color): Check for bad index.
6190 (ns_index_color): Init unused slot to 0.
6191 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6192 Bug 3714, possibly 3082.
5dd9a6f7 6193
c902b920
JR
61942009-07-22 Jason Rumney <jasonr@gnu.org>
6195
1ac9108a
SM
6196 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6197 Position IME window at cursor (Bug#2570).
c902b920
JR
6198 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6199 (globals_of_w32fns): Dynamically load functions required above.
6200
6201 * w32term.c (w32_draw_window_cursor): Send message to reposition
6202 any IME window.
6203
090101cf
CY
62042009-07-21 Chong Yidong <cyd@stupidchicken.com>
6205
6206 * fileio.c: Revert 2009-07-16 changes.
6207 (Vauto_save_include_big_deletions): New variable.
6208 (Fdo_auto_save): Disable auto-save only if
6209 auto-save-include-big-deletions is nil.
6210
e6583e3d
CY
62112009-07-21 Chong Yidong <cyd@stupidchicken.com>
6212
6213 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6214 the overflowed pixels into account (Bug#3879).
6215
ece435a5
KR
62162009-07-21 Ken Raeburn <raeburn@raeburn.org>
6217
6218 * lread.c (load_depth): New variable.
6219 (Fload, load_unwind, init_lread): Set it to the load recursion
6220 depth; set load_in_progress as a simple boolean based on the
6221 current load_depth. (Bug#3892)
6222
40b2d973
AR
62232009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6224
6225 * nsfont.m (ns_has_attribute): Remove.
6226 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6227
10be7e0d
JL
62282009-07-18 Juri Linkov <juri@jurta.org>
6229
6230 * process.c (Fset_process_query_on_exit_flag): Mention killing
6231 a buffer in docstring.
6232
fa055055
KH
62332009-07-17 Kenichi Handa <handa@m17n.org>
6234
6235 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6236
042f7b69
YM
62372009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6238
6239 * nsfns.m (Fns_set_alpha): Remove function.
6240 (syms_of_nsfns): Don't defsubr it.
6241
6242 * nsterm.m (ns_get_color): Remove incompatible color formats.
6243 (ns_color_to_lisp): Generate #rrggbb color format string.
6244
4be941e3
RS
62452009-07-16 Richard Stallman <rms@gnu.org>
6246
6247 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6248 (Fset_buffer_auto_saved): Handle save_length = -2.
6249
4e6b227d
CY
62502009-07-16 Chong Yidong <cyd@stupidchicken.com>
6251
6252 * xterm.c (Qx_gtk_map_stock): New var.
6253
6254 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6255 of calling intern each time.
6256
a1856973
YM
62572009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6258
6259 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6260 does tiling.
6261
6262 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6263
497e54d8
KH
62642009-07-14 Kenichi Handa <handa@m17n.org>
6265
72d36834
KH
6266 * font.c (font_vconcat_entity_vectors): New function.
6267 (struct font_sort_data): New member font_driver_preference.
6268 (font_compare): Check font_driver_preference.
6269 (font_sort_entities): The format of the first argument changed.
6270 (font_delete_unmatched): Likewise.
6271 (font_list_entities): The return type changed.
6272 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6273 (font_find_for_lface): Adjuste for the above changes.
6274 Don't suppress the checking of C even if the repertory supports it.
6275 (Flist_fonts): Adjust for the above changes.
72d36834 6276
1ac9108a
SM
6277 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6278 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6279 Reject a font who has adstyle property that is different from a
6280 langname derived from registry property.
1ac9108a 6281 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6282
b6046155
EZ
62832009-07-13 Eli Zaretskii <eliz@gnu.org>
6284
6285 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6286 local copy of dirfilename.
6287
fb6b6049
KH
62882009-07-13 Kenichi Handa <handa@m17n.org>
6289
e2402a5e
KH
6290 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6291 against max_char.
6292
fb6b6049
KH
6293 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6294 calling XSYMBOL (sym).
6295
65156807
EZ
62962009-07-11 Eli Zaretskii <eliz@gnu.org>
6297
1ac9108a
SM
6298 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6299 New function.
6300 (directory_files_internal) [WINDOWSNT]:
6301 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6302 the filesystem of the directory is fast or slow.
6303
6304 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6305 file name.
6306 (is_slow_fs): New function.
6307 (stat): Use it to determine whether to issue more system calls to
6308 get accurate file attributes, when w32-get-true-file-attributes is
6309 `local'.
6310
e0ab5fcf
JD
63112009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6312
6313 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6314 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6315 parameter font-parameter as default to the font dialog.
6316
784ceded
KH
63172009-07-10 Kenichi Handa <handa@m17n.org>
6318
6319 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6320
fb8edc0b
EZ
63212009-07-09 Eli Zaretskii <eliz@gnu.org>
6322
1ac9108a 6323 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 6324
fb8edc0b
EZ
6325 * w32.c (stat): Treat UNC file names as residing on remote
6326 drives. (Bug#3542)
6327
635c75b1
KH
63282009-07-09 Kenichi Handa <handa@m17n.org>
6329
6330 * fontset.c (fontset_find_font): Fix previous change.
6331
c1d5ce94
MA
63322009-07-08 Michael Albinus <michael.albinus@gmx.de>
6333
6334 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6335 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6336 error flag.
6337
edb61b39
KH
63382009-07-08 Kenichi Handa <handa@m17n.org>
6339
374bf7e4
KH
6340 * fontset.c (fontset_find_font): Fix the logic of handling
6341 charset_matched.
6342 (font_for_char): Delete unused var.
6343 (generate_ascii_font_name): Delete it.
6344
edb61b39
KH
6345 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6346
6347 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6348 (encode_coding_sjis): Fix the code range check.
6349
0f3f018c
CY
63502009-07-07 Chong Yidong <cyd@stupidchicken.com>
6351
6352 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6353 (Fexpand_file_name): Copy string data properly (Bug#3772).
6354
fcaf6f3a
JD
63552009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6356
6357 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6358 first MapNotify.
6359
6809ca75
KH
63602009-07-07 Kenichi Handa <handa@m17n.org>
6361
6362 * character.h (unibyte_has_multibyte_table): Delete extern.
6363 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6364
6365 * charset.c (Fset_charset_priority): Update charset_unibyte.
6366 (syms_of_charset): Initialize charset_unibyte.
6367
6368 * character.c (unibyte_has_multibyte_table): Delete it.
6369 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6370 charset_unibyte.
6371 (multibyte_char_to_unibyte_safe): Likewise.
6372 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6373
1ac9108a 6374 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6375 (x_produce_glyphs): Likewise.
6376
6377 * .gdbinit (xcharset): Fix the treating $arg0.
6378
ad9e2d54
EZ
63792009-07-04 Eli Zaretskii <eliz@gnu.org>
6380
6381 Emulation of `getloadavg' on MS-Windows.
50426a04 6382 * w32.c: Include float.h.
ad9e2d54
EZ
6383 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6384 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6385 (get_native_system_info, get_system_times): New functions.
6386 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6387 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6388 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6389 g_b_init_get_system_times, and num_of_processors.
6390
0a3472c7
JR
63912009-07-03 Jason Rumney <jasonr@gnu.org>
6392
6393 * w32term.c (w32_initialize): Use standard types.
6394
80904120
EZ
63952009-07-03 Eli Zaretskii <eliz@gnu.org>
6396
6397 * dired.c (Ffile_attributes): Decode user and group names by the
6398 locale's encoding. (Bug#3443)
6399
6978862d
DN
64002009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6401
f8d23104
DN
6402 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6403 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6404
6405 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6406
6407 * term.c (init_tty): Remove spurious #ifdef.
6408
6978862d
DN
6409 * m/mips.h: Mention this file is also used for netbsd.
6410 * m/pmax.h: Remove file.
6411
e044e4fc
JD
64122009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6413
6414 * xterm.h (struct x_display_info): Add invisible_cursor.
6415 (struct x_output): Add current_cursor.
6416
6417 * xterm.c (XTtoggle_invisible_pointer): New function.
6418 (x_define_frame_cursor): Don't define cursor if invisible or the
6419 same as before. Set current_cursor.
6420 (x_create_terminal): Set toggle_invisible_pointer_hook.
6421
6422 * xfns.c (make_invisible_cursor): New function.
6423 (x_set_mouse_color): Call make_invisible_cursor.
6424 Set current_cursor.
6425 (x_window): Set current_cursor.
6426
6427 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6428
6429 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6430 inserting a character.
6431 (read_avail_input): Call frame_make_pointer_visible.
6432
6433 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
6434 (frame_make_pointer_invisible, frame_make_pointer_visible):
6435 New functions.
e044e4fc
JD
6436 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6437
6438 * frame.h: Declare frame_make_pointer_invisible and
6439 frame_make_pointer_visible.
6440 (struct frame): Add pointer_invisible.
6441
574c8efa
JD
64422009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6443
7b507248
JD
6444 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6445 frame isn't visible.
6446 (xg_frame_resized): If width/height is -1, get size of window
6447 from X server.
6448
6449 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6450 for MapNotify.
6451
835bdaa7 6452 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 6453 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 6454 (flush_and_sync): Reintroduce.
574c8efa 6455
3f1c6666 64562009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 6457
31fd7c5c 6458 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
6459
6460 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6461 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6462
6463 * frame.h: Declare Qsticky.
6464
cad9ef74
JD
6465 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6466
6467 * nsfns.m (ns_frame_parm_handlers): Ditto.
6468
6469 * frame.c: Declare Qsticky.
6470 (frame_parms): Add sticky.
6471
6472 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6473
6474 * xterm.h: Declare x_set_sticky.
6475
6476 * xterm.c (x_set_sticky): New function.
6477
69b16610
JD
6478 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6479 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6480 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
6481
6482 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6483
6484 * frame.c: Qmaximized is new.
6485 (x_set_frame_parameters): Do not handle fullscreen specially.
6486 Only set width and height if explicitly set.
6487 (x_set_fullscreen): Handle Qmaximized.
6488 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6489 (syms_of_frame): Initialize Qmaximized.
6490
1ac9108a
SM
6491 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6492 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
6493
6494 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
6495 for Expose event. Add call to x_check_fullscreen for MapNotify event.
6496 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
6497 set gravity to NorthWestGravity when USE_GTK.
6498 (set_wm_state): New function.
31fd7c5c 6499 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
6500 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
6501 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 6502 or the case when no window manager is running. That means remove calls
3f1c6666
JD
6503 to x_real_positions and x_fullscreen_adjust.
6504
6505 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
6506 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
6507 flush_and_sync.
6508 (xg_height_changed): New function.
6509 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
6510 and gtk_window_set_policy. Set frame gravity after parsing the
6511 geometry string.
3f1c6666
JD
6512 (xg_update_frame_menubar, free_frame_menubar)
6513 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6514 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
6515 Remove calls to xg_frame_set_char_size.
6516
fd503d99
KH
65172009-07-01 Kenichi Handa <handa@m17n.org>
6518
6519 * keyboard.c (decode_keyboard_code): New function.
6520 (tty_read_avail_input): Decode the input bytes if necessary.
6521
1ac9108a
SM
6522 * coding.c (setup_coding_system):
6523 Initialize coding->carryover_bytes to 0.
fd503d99
KH
6524 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
6525 use Qno_conversion.
6526
24ed93fb
YM
65272009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6528
6529 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
6530
99061dfc
CY
65312009-06-30 Chong Yidong <cyd@stupidchicken.com>
6532
1ac9108a 6533 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 6534
ff90fbde
JR
65352009-06-30 Jason Rumney <jasonr@gnu.org>
6536
6537 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6538 is already loaded.
6539 Set user model ID if supported (bug#1849).
6540
5f445726
JM
65412009-06-29 Jim Meyering <meyering@redhat.com>
6542
6543 Remove useless if-before-xfree test.
6544 * nsfont.m (nsfont_close): Remove useless test.
6545 * term.c (delete_tty): Likewise.
6546 * w32.c (system_process_attributes): Likewise.
6547 * w32font.c (w32font_close): Likewise.
6548 * xfaces.c (x_free_gc): Likewise.
6549 * xselect.c (buffer): Likewise.
6550
b9607587
AS
65512009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6552
6553 * process.c (send_process): Keep decoded string in a local
6554 variable and protect it from GC. (Bug#3521)
6555
89ba96f4
EZ
65562009-06-28 Eli Zaretskii <eliz@gnu.org>
6557
6558 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6559 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6560
098a1589
CY
65612009-06-28 Chong Yidong <cyd@stupidchicken.com>
6562
485422be
CY
6563 * xdisp.c (start_display, handle_face_prop)
6564 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
6565 (redisplay_window, try_window_id, produce_image_glyph):
6566 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 6567
098a1589
CY
6568 * xterm.c (x_update_window_begin, x_new_focus_frame)
6569 (x_scroll_bar_handle_click, handle_one_xevent)
6570 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6571 (x_make_frame_visible, x_make_frame_invisible)
6572 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6573 code chunks that are now obsolete.
6574
78c38319
MA
65752009-06-28 Michael Albinus <michael.albinus@gmx.de>
6576
6577 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6578 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6579 for hours, when optimzation is enabled.
6580 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6581 (xd_read_message): Make them static.
6582
4189ed40
CY
65832009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6584
6585 * term.c (turn_on_face): Allow simultaneously bold and dim
6586 terminal faces (Bug#3530).
6587
cd9b5e16
CY
65882009-06-27 Chong Yidong <cyd@stupidchicken.com>
6589
4e23bedb
CY
6590 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6591
cd9b5e16
CY
6592 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6593 truncation glyphs (Bug#3686).
6594
07cc3c35
GM
65952009-06-27 Glenn Morris <rgm@gnu.org>
6596
6597 * m/pmax.h: Restore file, with only netbsd portions.
6598
31fd7c5c 65992009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 6600
cd9b5e16 6601 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 6602
42d4a64f
KH
66032009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6604
6605 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6606 the arg FORCE_SYMBOL.
6607
930fe55b 66082009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
6609
6610 * fontset.c (fontset_find_font): When a usable rfont_def is found
6611 in a fallback font-group, make it the first element of the group.
6612
57ebc3fd
CY
66132009-06-24 Chong Yidong <cyd@stupidchicken.com>
6614
6615 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6616
f084f942
KH
66172009-06-24 Kenichi Handa <handa@m17n.org>
6618
6619 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6620 set for C.
6621 (fontset_font): Record the availability of a font for C both in
6622 the realized fontsets of the current one and the default one.
6623
2f686c87
DN
66242009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6625
6626 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6627 conditional, it is always defined on AIX.
6628
666e158e
MB
66292009-06-23 Miles Bader <miles@gnu.org>
6630
6631 * window.c (Vrecenter_redisplay): New variable.
6632 (syms_of_window): Initialize it.
6633 (Qtty): New extern declaration.
6634 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6635
c6da7cd2
JM
66362009-06-23 Jim Meyering <meyering@redhat.com>
6637
1ac9108a
SM
6638 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6639 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 6640 pointer dereferences are guaranteed to be valid.
c6da7cd2 6641
678dca3d
KH
66422009-06-23 Kenichi Handa <handa@m17n.org>
6643
74d75424
KH
6644 * emacs.c (main): Call init_font ().
6645
6646 * font.h (Vfont_log): Extern it.
6647 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
6648
6649 * font.c (font_sort_entities, font_list_entities)
6650 (font_matching_entity, font_open_entity)
6651 (font_close_object): Change font_add_log to FONT_ADD_LOG.
6652 (Vfont_log): Delete static.
6653 (font_log_env_checked): Delete this variable.
6654 (font_add_log): Don't check font_log_env_checked.
6655 (font_deferred_log): Check Vfont_log.
6656 (init_font): New function.
6657
678dca3d
KH
6658 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
6659
6660 * w32font.c: Change font_add_log to FONT_ADD_LOG.
6661
6662 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
6663
6664 * xfont.c: Change font_add_log to FONT_ADD_LOG.
6665
6666 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
6667 (face_for_char): Don't call font_deferred_log here.
6668 (font_for_char): Likewise.
6669
8a668709
CY
66702009-06-22 Chong Yidong <cyd@stupidchicken.com>
6671
9a01ee33
CY
6672 * w32term.c (x_draw_glyph_string): Use the glyph string's width
6673 rather than its background_width for drawing the overline and
6674 underline (Bug#489).
6675
6676 * xterm.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).
ec7c9926
CY
6679 (xg_default_icon_file): New variable.
6680 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
6681 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 6682
8a668709
CY
6683 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
6684 (load_overlay_strings): Remove externs.
6685 (fast_find_position): Function deleted.
6686 (mouse_face_from_buffer_pos): New function, based on
6687 fast_find_position. Correctly handle before-strings,
6688 display-strings, and after-strings (Bug#1220).
6689 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
6690
4d4c02d8
CY
66912009-06-21 Chong Yidong <cyd@stupidchicken.com>
6692
1ac9108a 6693 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
6694 (move_it_in_display_line_to, move_it_in_display_line_to)
6695 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
6696
70243478
CY
66972009-06-21 Chong Yidong <cyd@stupidchicken.com>
6698
6699 * Branch for 23.1.
6700
13087e59
JR
67012009-06-21 Jason Rumney <jasonr@gnu.org>
6702
6703 * w32term.c (keyboard_codepage): New static variable.
6704 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
6705 (w32_read_socket) [WM_CHAR]: Use it to decode character
6706 input (bug#3237).
6707 (w32_initialize): Initialize it.
6708 (codepage_for_locale): New function.
6709
4735b74e
KR
67102009-06-20 Ken Raeburn <raeburn@raeburn.org>
6711
6712 * process.c (status_message): Pass Faset index argument as a lisp
6713 object, so as to work with USE_LISP_UNION_TYPE.
6714
0e727afa
YM
67152009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6716
6717 * coding.c (Ffind_coding_systems_region_internal):
6718 Cache checked characters.
6719
cf299835
KH
67202009-06-18 Kenichi Handa <handa@m17n.org>
6721
1ac9108a 6722 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 6723
90f20d94
AS
67242009-06-18 Andreas Schwab <aschwab@redhat.com>
6725
6726 * xdisp.c (redisplay_internal): Check that the frame is still
6727 live after redisplay of its windows.
6728 (redisplay_windows): Check that the window is still live.
6729
7f1faf1c
KH
67302009-06-17 Andreas Schwab <schwab@linux-m68k.org>
6731
6732 * coding.c (detect_coding_utf_16): Fix previous change.
6733
cc13543e
KH
67342009-06-16 Kenichi Handa <handa@m17n.org>
6735
6736 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
6737 UTF-16 by checking the dispersion of Eth and Oth bytes.
6738
977b85f4
AS
67392009-06-15 Andreas Schwab <schwab@linux-m68k.org>
6740
6741 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
6742
66bd43d1
KH
67432009-06-15 Kenichi Handa <handa@m17n.org>
6744
6745 * process.c (status_message): Fix previous change. Be sure to
6746 decode a localized string.
6747
cb5ca9c5
YM
67482009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6749
6750 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
6751 add comment explaining why.
6752
ec7709ba 67532009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 6754
ec7709ba 6755 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 6756
4b7f335c
AR
67572009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
6758
6759 * nsfont.m (ns_attribute_value): Remove.
6760 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
6761 (ns_has_attribute): Shrink the normal range.
6762 (ns_findfonts): Don't worry about requested spec in determining
6763 need for synthItal.
e41820ee 6764 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 6765
73b26103
SZ
67662009-06-14 Seiji Zenitani <zenitani@mac.com>
6767
6768 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
6769
5753e4da
KH
67702009-06-11 Kenichi Handa <handa@m17n.org>
6771
6772 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6773 overhang for the static composition case.
6774
3561b671
KH
67752009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6776
5753e4da
KH
6777 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6778 overhang for the automatic composition case.
6779
3561b671
KH
6780 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
6781 composition case.
6782
852bbd41
CY
67832009-06-10 Chong Yidong <cyd@stupidchicken.com>
6784
6785 * xdisp.c (get_next_display_element): When handling wrap-prefix
6786 and line-prefix, treat \n as a control character (bug#3502).
6787
9903d1e6
KH
67882009-06-10 Kenichi Handa <handa@m17n.org>
6789
6790 * font.c (font_parse_family_registry): Fix for one-char foundry.
6791 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
6792
0bcbaaaa
CY
67932009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
6794
6795 * process.c (status_message): Fix handling of multibyte signal
6796 string (Bug#3499).
6797
40aa3f13
JM
67982009-06-09 Jim Meyering <meyering@redhat.com>
6799
1f80c7e2
CY
6800 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6801 color name is missing.
40aa3f13 6802
72d51285
KH
68032009-06-09 Kenichi Handa <handa@m17n.org>
6804
6805 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6806 FROM-CODE and TO-CODE are codepoints of CHARSET.
6807
c1d04d84
AR
68082009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6809
6810 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6811
68122009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6813
6814 Changes to support :script/:lang/:otf in NS font driver.
6815 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6816 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6817 indicate not part of font driver interface, and change callers.
6818 (ns_get_family): Remove pointless null check.
6819 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6820 ns_spec_to_descriptor, ns_descriptor_to_entity.
6821 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6822 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6823 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6824 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6825 (ns_get_req_script, ns_accumulate_script_ranges)
6826 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6827 New functions.
6828 (nsfont_list, nsfont_match): Use ns_findfonts.
6829 (nsfont_open): Use font descriptor instead of traits.
6830 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6831 (dump_glyphstring): Rename to ns_dump_glyphstring.
6832
c7eb9816
AR
6833 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6834
c1d04d84
AR
6835 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6836
6837 * fontset.c (fontset_from_font): Remove NS-specific code.
6838
ec7709ba 68392009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
6840
6841 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6842 nonactive windows.
6843
31fd7c5c 68442009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 6845
1ac9108a 6846 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 6847
68852c13 68482009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
6849
6850 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6851
6756cd1d
CY
68522009-06-07 Chong Yidong <cyd@stupidchicken.com>
6853
6854 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6855 account for the overflowing of newlines into the last glyph on the
6856 display line (Bug#3482).
6857
28bf482a
DR
68582009-06-05 David Reitter <david.reitter@gmail.com>
6859
ec7709ba
JB
6860 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6861 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
6862 Fns_selection_exists_p, Fns_selection_owner_p.
6863
fdb55376
JR
68642009-06-03 Jason Rumney <jasonr@gnu.org>
6865
6866 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6867 available. (Bug#3379)
6868
05129fbe
KH
68692009-05-29 Kenichi Handa <handa@m17n.org>
6870
1ac9108a
SM
6871 * coding.c (get_translation_table):
6872 Check Venable_character_translation.
05129fbe 6873
ec7709ba 68742009-05-26 David Reitter <david.reitter@gmail.com>
15891144 6875
ec7709ba
JB
6876 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6877 (x_make_frame_visible): Move frame to front rather than calling
15891144 6878 ns_raise_frame().
ec7709ba 6879 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 6880 isn't key window.
ec7709ba 6881 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
6882 drawRect may be called by NSView even if the frame is hidden.
6883
ec7709ba
JB
6884 * nsfns.m (Fx_create_frame): Follow other ports in
6885 determining visibility; default to t. Ensure async_visible is set.
15891144 6886
21f73755
EZ
68872009-05-23 Eli Zaretskii <eliz@gnu.org>
6888
6889 * dired.c (Ffile_attributes): Doc fix.
6890
34001e41
CY
68912009-05-22 Chong Yidong <cyd@stupidchicken.com>
6892
6893 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6894
46306a17
SM
68952009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6896
6897 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6898 and xfont_scratch_props.
6899 (syms_of_xfont): Do it here instead.
6900 (xfont_find_ccl_program): Delete, unused.
6901 (xfont_open): Delete unused var `i'.
6902
ef6e0694
KH
69032009-05-21 Kenichi Handa <handa@m17n.org>
6904
6905 * fontset.c (Qlatin): Don't make it static.
6906
46306a17
SM
6907 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6908 New functions.
ef6e0694
KH
6909 (xfont_scripts_cache, xfont_scratch_props): New variables.
6910 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
6911 (xfont_list_pattern): Argument changed. Callers changed.
6912 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
6913 (xfont_list): Don't reject a font spec with :script property.
6914 (xfont_has_char): Fix setting of encoding.
6915 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6916 xfont_scratch_props.
6917
69182009-05-19 Kenichi Handa <handa@m17n.org>
6919
46306a17 6920 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
6921 Callers changed.
6922
69232009-05-18 Kenichi Handa <handa@m17n.org>
6924
6925 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6926
ac71ced7
SM
69272009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6928
6929 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6930 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6931
1c6d1051
YM
69322009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6933
6934 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6935 (x_delete_terminal): Dissociate resource database from display and
6936 then call XrmDestroyDatabase before closing display.
6937
9b9b779c
AR
69382009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6939
6940 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
6941 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6942 whether selected frame is viable before raising it (based on patch
6943 by David Reitter), and improve commentary.
6944 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 6945
cccd42d5
KH
69462009-05-15 Kenichi Handa <handa@m17n.org>
6947
6948 * font.c (Ffont_spec): Check arguments.
6949
337fbd17
CY
69502009-05-14 Chong Yidong <cyd@stupidchicken.com>
6951
6952 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6953 weight when testing attributes (Bug#3282).
6954
47a6002f
JD
69552009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6956
6957 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6958 what we expect to get in the next ConfigureNotify event.
6959
9cb363db
YM
6960 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6961 before Xft one (Bug#1696).
6962
b9126609
CY
69632009-05-07 David Reitter <david.reitter@gmail.com>
6964
6965 * nsfns.m (Fx_display_planes): Compute bitplanes using
6966 NSBitsPerPixelFromDepth (Bug#3207).
6967
27a69fd9
CY
69682009-05-10 Chong Yidong <cyd@stupidchicken.com>
6969
6970 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6971
00f37552
TTN
69722009-05-10 Ulrich Mueller <ulm@gentoo.org>
6973
6974 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6975
2d82a920
DR
69762009-05-07 David Reitter <david.reitter@gmail.com>
6977
ec7709ba
JB
6978 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6979 Respect mouse face background.
2d82a920 6980
46b0d52d
DR
69812009-05-07 David Reitter <david.reitter@gmail.com>
6982
ec7709ba
JB
6983 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6984 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
6985 in ns_update_begin and ns_update_end.
6986
ce1b23bb
SM
69872009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6988
5996e1b7
SM
6989 * nsfns.m (ns_get_screen): Rewrite.
6990 Don't presume selected-frame is of type `ns'.
6991
ba98e3a0
SM
6992 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6993 all drivers.
6994
ce1b23bb
SM
6995 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
6996
bcda200f
YM
69972009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6998
6999 * keyboard.h (add_user_signal): Fix typo in extern.
7000
7001 * lisp.h (add_user_signal): Remove extern.
7002
7003 * unexelf.c (unexec): Consider a section to precede the .bss section
7004 if its addresses overlap that of .bss.
7005 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7006 instead of dumping process.
7007
864660a2
SM
70082009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7009
7010 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7011
50da4e56
SM
70122009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7013
7014 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7015
51520a1a
DN
70162009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7017
7018 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7019 any statements.
7020
409ea3a1
AS
70212009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7022
59c4c60f
AS
7023 * process.c (read_process_output): Make sure the current buffer is
7024 always restored.
7025
409ea3a1
AS
7026 * coding.c (record_conversion_result): Don't modify
7027 Vlast_code_conversion_error for successful result.
7028 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7029
56f00ed2
KH
70302009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7031
7032 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7033 (load_charset_map): Remove unnecessary code.
56f00ed2 7034
4491c9d2
DR
70352009-04-30 David Reitter <david.reitter@gmail.com>
7036
35f5b128 7037 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7038 through f24.
7039
6970f632
CY
70402009-04-30 Chong Yidong <cyd@stupidchicken.com>
7041
7042 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7043
7044 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7045 face_at_buffer_position.
7046 (face_before_or_after_it_pos, get_next_display_element)
7047 (note_mouse_highlight): Update face_at_buffer_position call.
7048
7049 * term.c (term_mouse_highlight):
7050 * msdos.c (IT_note_mouse_highlight):
7051 * fontset.c (Finternal_char_font):
35f5b128 7052 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7053
7054 * dispextern.h (face_at_buffer_position): Update prototype.
7055
0c616f63
KH
70562009-04-30 Kenichi Handa <handa@m17n.org>
7057
35f5b128 7058 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7059
ad3aaf33
AS
70602009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7061
7062 * callproc.c (Fcall_process): Fix GC protection. Make sure
7063 current buffer is always restored.
7064
c3c963a0
YM
70652009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7066
7067 * atimer.c (init_atimer): Also clear stopped_atimers.
7068
7069 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7070
7e3386cb
YM
7071 * process.c (create_process): Clean up merger residues of
7072 2008-07-17 change.
7073
91f68422
CY
70742009-04-29 Ulrich Mueller <ulm@gentoo.org>
7075
7076 * lread.c (Vread_circle): New variable.
7077 (read1): Disable recursive read if Vread_circle is nil.
7078
24b34550
KH
70792009-04-29 Kenichi Handa <handa@m17n.org>
7080
7081 * fontset.h (set_default_ascii_font): Delete extern.
7082
7083 * fontset.c (set_default_ascii_font): Delete this unused function.
7084
7085 * frame.c (x_set_font): When ARG is a font-object, check if the
7086 font-object matches with the ASCII font-spec of the frame's
9c358bda 7087 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7088
77bf07e1
AS
70892009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7090
7091 * fns.c (Flocale_info): Protect vector from GC during decoding.
7092
7093 * process.c (Fstart_process): Protect argv strings from GC during
7094 encoding.
7095
2c55aacf
AS
70962009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7097
7098 * sysdep.c: Include <ctype.h>.
7099
b892d3c9
DR
71002009-04-27 David Reitter <david.reitter@gmail.com>
7101
35f5b128 7102 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7103 Remove commented-out code.
7104
9d0644c4
JB
71052009-04-26 Johan Bockgård <bojohan@gnu.org>
7106
7107 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7108
b7053016
JR
71092009-04-25 Jason Rumney <jasonr@gnu.org>
7110
7111 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7112
4e8231f3
YM
71132009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7114
7115 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7116 Swap bytes in short integer if fringe bitmap width > 8.
7117
493dcf2c
KH
71182009-04-23 Kenichi Handa <handa@m17n.org>
7119
7120 * xfaces.c (Fx_list_fonts): If a font size is specified in
7121 PATTERN, set it in returned scalable fonts.
7122
401e9e57
CY
71232009-04-22 Chong Yidong <cyd@stupidchicken.com>
7124
708e05dc
CY
7125 * keyboard.c (Fset_input_meta_mode): Doc fix.
7126
7127 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7128
1ac9108a 7129 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7130
7131 * coding.c (Fterminal_coding_system): Doc fix.
7132
7133 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7134 (Fx_display_pixel_height, Fx_display_planes)
7135 (Fx_display_color_cells, Fx_server_max_request_size)
7136 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7137 (Fx_display_mm_height, Fx_display_mm_width)
7138 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7139 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7140 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7141 (check_x_display_info): Handle terminal objects instead of
7142 terminal ids.
7143
401e9e57
CY
7144 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7145 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7146 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7147 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7148
df80c7f0
KH
71492009-04-21 Kenichi Handa <handa@m17n.org>
7150
5a8f12af 7151 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7152 (font_score): Check AVGWIDTH too.
908567ef 7153
df80c7f0
KH
7154 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7155 worst case.
1ac9108a
SM
7156 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7157 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7158
705af33f
JR
71592009-04-19 Jason Rumney <jasonr@gnu.org>
7160
7161 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7162 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7163
7164 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7165 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7166 get_phys_cursor_geometry.
7167
b71ac3dd 7168 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7169 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7170 using get_phys_cursor_geometry.
7171
7172 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7173 correctly calculated.
7174
dc2933eb
JD
71752009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7176
1ac9108a
SM
7177 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7178 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7179 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7180 is deprecated.
7181
973e7849
AS
71822009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7183
7184 * font.c (font_put_frame_data): Use xfree instead of free.
7185
314d66f4
JB
71862009-04-17 Juanma Barranquero <lekktu@gmail.com>
7187
7188 * w32font.c (Qja, Qko): Remove declarations.
7189 (syms_of_w32font): Don't DEFSYM them.
7190
cf702558
CY
71912009-04-17 Chong Yidong <cyd@stupidchicken.com>
7192
7193 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7194
7195 * font.h (Qja, Qko): Extern them.
7196
7197 * ftfont.c (Qja, Qko): Remove declarations.
7198
7199 * xfont.c (Qja, Qko): Remove declarations.
7200
b50504f5
KH
72012009-04-17 Kenichi Handa <handa@m17n.org>
7202
bde25748
KH
7203 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7204 string from a vector to handle Latin-1 characters correctly.
7205
b50504f5
KH
7206 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7207 entity even if the cache hits.
7208
f4646fff
AS
72092009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7210
7211 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7212 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7213
e7deaab0
AS
7214 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7215 * lisp.h: Adjust prototypes.
7216
0a0e7d49
CY
72172009-04-16 Chong Yidong <cyd@stupidchicken.com>
7218
7219 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7220 change (Bug#3003).
7221
3c908a57
KH
72222009-04-16 Kenichi Handa <handa@m17n.org>
7223
1ac9108a 7224 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7225
7226 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7227 adstyle.
7228
7229 * ftfont.c (Qja, Qko): Don't make them static.
7230 (enum ftfont_cache_for): New enum.
7231 (fc_charset_table): Undo the previous change.
7232 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7233 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7234 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7235 non-scarable font, try to get AVERAGE_WIDTH.
7236 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7237 Change ft_face_cache from a list of a hash-table. Don't check
7238 `ja' and `ko' adstyle here.
7239 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7240 FTFONT_CACHE_FOR_CHARET.
7241 (ftfont_get_charset): Undo the previous change.
1ac9108a 7242 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7243 (ftfont_close): Likewise.
7244 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7245
7246 * font.c (font_sort_entites): Change the meaning of the arg
7247 BEST-ONLY. Don't optimize for VEC of lenght 1.
7248 (font_select_entity): Just return the value of font_sort_entites.
7249
7250 * xfaces.c (merge_face_vectors): Reflect font properties in
7251 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7252 font_clear_prop if a face attribute doesn't change.
7253
3c908a57
KH
7254 * charset.h (charset_ksc5601): Extern it.
7255
7256 * charset.c (charset_ksc5601): New variable.
7257 (Fdefine_charset_internal): Set charset_ksc5601.
7258 (init_charset_once): Initialize charset_ksc5601 to -1.
7259
d65859c3
DN
72602009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7261
7262 * fileio.c (history_delete_duplicates): Remove unused declaration.
7263
7264 * callint.c (history_delete_duplicates): New declaration.
7265 (Fcall_interactively): Remove command history duplicates when
7266 history_delete_duplicates is true.
7267
3ba010e5
EZ
72682009-04-14 Eli Zaretskii <eliz@gnu.org>
7269
7270 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7271
06f19b91
KH
72722009-04-14 Kenichi Handa <handa@m17n.org>
7273
7274 * font.c (Ffont_info): Fix docstring. Fix the second element of
7275 the returned value (bug#2949).
7276
2cce8bfc
CY
72772009-04-14 Chong Yidong <cyd@stupidchicken.com>
7278
7279 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7280
d156542d
KH
72812009-04-14 Kenichi Handa <handa@m17n.org>
7282
7283 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7284 encoding charset is ascii_compatible.
7285
7286 * charset.c (Fdefine_charset_internal): Make charset
7287 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7288 code_offset is 0, and covers all ASCII characters.
7289
86fa089e
SM
72902009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7291
7292 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7293 (ns_string_to_pasteboard_internal):
7294 * nsmenu.m (process_dialog):
7295 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7296 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7297 * lisp.h (Fx_load_color_file): Declare.
7298
a8a3728b
KH
72992009-04-13 Kenichi Handa <handa@m17n.org>
7300
1ac9108a 7301 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7302 (font_select_entity): Suppress the code to optimize for the same
7303 kind of fonts.
7304 (font_load_for_lface): Get a font that supports at least ASCII
7305 characters.
7306
7307 * ftfont.c (Qja, Qko): New variables.
7308 (fc_charset_table): Delete uniquifier data for iso8859-1.
7309 (ftfont_get_latin1_charset): New function.
7310 (get_adstyle_property): New function.
7311 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7312 bitmap fonts.
7313 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7314 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7315 `ko' or `ja'.
7316 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7317 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
7318 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7319 property.
7320 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7321 (syms_of_ftfont): DEFSYM Qja and Qko.
7322
483670b5
KH
73232009-04-09 Kenichi Handa <handa@m17n.org>
7324
12b55765
KH
7325 * charset.c (map_charset_chars): For a charset of `superset'
7326 method, fix calculation of code range.
7327
483670b5
KH
7328 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7329 from the list of extra properties.
7330 (font_clear_prop): Be sure to delete `:name' font property.
7331
57d3b93b
KH
73322009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7333
b4b2c2ca
YM
7334 * dispnew.c (redraw_overlapping_rows): Fix detection of
7335 overlapping for topmost and bottommost rows.
7336
1ac9108a 7337 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 7338
472c3609
JR
73392009-04-06 Jason Rumney <jasonr@gnu.org>
7340
7341 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7342
ab193662
KH
73432009-04-06 Kenichi Handa <handa@m17n.org>
7344
7345 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7346
7347 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7348
0c26f026
KH
73492009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7350
7351 * ftfont.c (ftfont_open): Fix checking of the return value of
7352 FT_Load_Char. Fix setting font->underline_thickness.
7353
e173bbce
CY
73542009-04-04 Chong Yidong <cyd@stupidchicken.com>
7355
7356 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7357 (Fterminal_parameters, Fterminal_parameter)
7358 (Fset_terminal_parameter): In doc string, refer to terminal
7359 objects rather than terminal ids.
7360
693a2698
EZ
73612009-04-04 Eli Zaretskii <eliz@gnu.org>
7362
7363 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7364 ret_lim_data. (Bug#2867)
7365
d5221487
CY
73662009-04-03 Chong Yidong <cyd@stupidchicken.com>
7367
7368 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7369 so they don't get wider than the window, matching 2006-01-23
7370 change to the partner function in xdisp.c (Bug#2800).
7371
223509a3
KH
73722009-04-03 Kenichi Handa <handa@m17n.org>
7373
7374 * print.c (print_object): Make each lowest sub_char_table start a
7375 new line (Bug#2866).
7376
74fcd0b1
KH
73772009-04-02 Kenichi Handa <handa@m17n.org>
7378
7379 * fontset.c (fontset_font): Record no-font when a fontset
7380 explicitly tells not to try another font-specs.
7381
c542407d
SM
73822009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7383
7384 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7385
e3869731
KH
73862009-03-30 Kenichi Handa <handa@m17n.org>
7387
d8d2f142
KH
7388 * fontset.c (fontset_from_font): Specify only registry in a
7389 font-spec for all characters supported by that registry.
7390
e3869731
KH
7391 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7392 even if HAVE_M17N_FLT is not defined.
7393
5da5f805
CY
73942009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7395
7396 * ftfont.c: Conditionalize prototyping and use of
7397 ftfont_variation_glyphs.
7398
ab226c50
SM
73992009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7400
9628fed7
SM
7401 * frame.c (delete_frame): Work around compiler bug.
7402
7403 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7404 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7405 Some more EMACS_INT.
7406 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7407
7408 * xdisp.c (dump_glyph): Fix typo.
7409
ae19ba7c
SM
7410 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7411 (adjust_markers_gap_motion, adjust_markers_for_delete)
7412 (adjust_markers_for_insert, adjust_point)
7413 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7414 (make_gap, copy_text, count_size_as_multibyte, insert)
7415 (insert_and_inherit, insert_before_markers)
7416 (insert_before_markers_and_inherit, insert_1)
7417 (count_combining_before, count_combining_after, insert_1_both)
7418 (insert_from_string, insert_from_string_before_markers)
7419 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7420 (insert_from_buffer_1, adjust_after_replace)
7421 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7422 (replace_range_2, del_range, del_range_1, del_range_byte)
7423 (del_range_both, del_range_2, modify_region)
7424 (prepare_to_modify_buffer, signal_before_change)
7425 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7426 for buffer positions and sizes.
7427 * lisp.h: Adjust prototypes accordingly.
7428
7429 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7430 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7431 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7432
ab226c50
SM
7433 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7434
46dfb8fb
JD
74352009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7436
7437 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7438 lines and columns so we keep the same pixel height and width.
7439
7440 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7441 the property _NET_WM_STATE has changed.
46dfb8fb
JD
7442 (x_handle_net_wm_state): New function to update frame parameter
7443 fullscreen.
7444 (x_term_init): Initialize atoms for _NET_WM_STATE.
7445
7446 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7447
d347e494
SM
74482009-03-27 Kevin Ryde <user42@zip.com.au>
7449
7450 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7451 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7452 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7453 (Fgpm_mouse_stop): Pass that new parameter.
7454 * termhooks.h (close_gpm): Adjust prototype.
7455
84db11d6
SM
74562009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7457
c95a5008
SM
7458 * lisp.h (Fx_focus_frame): Declare.
7459
84db11d6
SM
7460 * callint.c (Fcall_interactively): For '^' just delegate the work to
7461 handle-shift-selection.
7462 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7463
0a1958d6
CY
74642009-03-24 Chong Yidong <cyd@stupidchicken.com>
7465
0bfdff23
CY
7466 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7467
0a1958d6
CY
7468 * data.c (Qinteractive_form): New variable.
7469 (Finteractive_form): Use it.
7470
7471 * eval.c (Fcommandp): Use Qinteractive_form.
7472
58aec0d6
JR
74732009-03-24 Jason Rumney <jasonr@gnu.org>
7474
7475 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7476 Calculate total size precisely. Decode environment variables
7477 before substituting. (Bug#38)
7478
553dd618
KH
74792009-03-24 Kenichi Handa <handa@m17n.org>
7480
7481 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 7482 encoding (Bug#2722).
553dd618 7483
c39ea606
JD
74842009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7485
7486 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7487 that gdpy is set.
7488
bc9b2b5e
AM
74892009-03-22 Alan Mackenzie <acm@muc.de>
7490
7491 * callint.c (Finteractive): Clarify the doc string - even
7492 promptless elements need \n separators.
7493
9f995a76
JR
74942009-03-22 Jason Rumney <jasonr@gnu.org>
7495
7496 * w32term.c (syms_of_w32term): Doc fix for
7497 x-use-underline-position-properties.
7498
22749e9a
EZ
74992009-03-21 Eli Zaretskii <eliz@gnu.org>
7500
7501 * w32.c (getpwuid): Change argument type to unsigned.
7502 (struct w32_id): Change type of `rid' member to unsigned.
7503 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
7504 argument ID to unsigned. All callers changed.
7505 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
7506
e00553bf
EZ
75072009-03-20 Eli Zaretskii <eliz@gnu.org>
7508
7509 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
7510 negative, produce a float value.
7511
7512 * dired.c (make_uid, make_gid): New functions.
7513 (Ffile_attributes): Use them to avoid negative UID and GID.
7514
f761d6b6
JB
75152009-03-20 Juanma Barranquero <lekktu@gmail.com>
7516
7517 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
7518 (syms_of_keyboard) <command-hook-internal, input-method-function>:
7519 Fix typos in docstrings.
7520
d507f8d7
KH
75212009-03-19 Kenichi Handa <handa@m17n.org>
7522
7523 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
7524 changed, use font_load_for_lface to get a new font object.
7525 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
7526
7527 * frame.c (x_set_font): Handle the case that ARG is a cons.
7528
c68845e0
GM
75292009-03-19 Glenn Morris <rgm@gnu.org>
7530
7531 * fileio.c (Fsubstitute_in_file_name): Doc fix.
7532
bfa49dd1
CY
75332009-03-19 Chong Yidong <cyd@stupidchicken.com>
7534
7535 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
7536
8458d4c1
KH
75372009-03-19 Kenichi Handa <handa@m17n.org>
7538
7539 * charset.c (load_charset_map_from_file): When a mapfile can't be
7540 loaded, signal an error.
7541
78e7d1fe
EZ
75422009-03-18 Eli Zaretskii <eliz@gnu.org>
7543
7544 * dired.c (Ffile_attributes): Make sure UID and GID are always
7545 positive, even if the value is too large for a positive EMACS_INT.
7546 Doc fix.
7547
7548 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7549
5da9fdfa
YM
75502009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7551
7552 * xmenu.c (xdialog_show): Move Fredisplay call ...
7553 (Fx_popup_dialog): ... here.
7554
7519c40d
SM
75552009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7556
7557 * dired.c (file_name_completion): Disable the first optimization just
7558 installed, since it is not implemented correctly.
7559
2cd298e2
SM
75602009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7561
7562 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 7563 only if the entry can affect bestmatch.
2cd298e2
SM
7564 Stop the search early, as Ftry_completion already does.
7565
48d37adf
CY
75662009-03-17 Chong Yidong <cyd@stupidchicken.com>
7567
e10c9c93 7568 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 7569
9286b16a
CY
75702009-03-15 Chong Yidong <cyd@stupidchicken.com>
7571
7572 * keyboard.c (parse_menu_item): Don't display remappings as menu
7573 equivalent bindings (Bug#788).
7574
f7b146dc
JR
75752009-03-15 Jason Rumney <jasonr@gnu.org>
7576
7577 * w32term.h (WM_EMACS_PAINT): New message.
7578 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7579 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7580 before passing to lisp thread. (Bug#950)
7581
f761d6b6 75822009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 7583
d93f9575
CY
7584 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7585 variable as it was never reset.
7586 (ns_term_init): Remove initialization of Lisp-settable defaults
7587 and ns_expand_space.
7588 (-setPanelFromDefaultValues): Remove ns_expand_space.
7589 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7590 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
7591 i.e. no additional spacing, similar to Carbon port.
7592
d93f9575
CY
7593 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7594 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 7595
305018ec
JD
75962009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7597
7598 * sound.c (alsa_configure): Remove call to deprecated
7599 snd_pcm_sw_params_set_xfer_align.
7600
f761d6b6 76012009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
7602
7603 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7604 after clicking in a detached tool bar.
7605 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7606
46e722a9
SM
76072009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7608
348db3dd
SM
7609 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7610 int/Lisp_Object mixup).
46e722a9 7611
a3d16f39
KH
76122009-03-13 Kenichi Handa <handa@m17n.org>
7613
7614 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 7615 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
7616 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7617 (set_fontset_font): Change ARG to a vector. Handle range_list in
7618 ARG correctly.
7619 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 7620 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
7621 the above change.
7622 (fontset_from_font): Fix previous change.
fe24f56a 7623 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
7624 entry. If FONTSET is the default fontset, don't set the extra
7625 slot of the returning char-table.
7626
b066e6b6
JB
76272009-03-12 Juanma Barranquero <lekktu@gmail.com>
7628
7629 * nsfns.m (Fx_close_connection): Doc fix.
7630 (Fns_do_applescript): Reflow docstring.
7631 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7632 (Fx_display_pixel_width, Fx_display_pixel_height)
7633 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7634 Fix typos in docstrings.
7635 (Fns_set_alpha): Fix typos in error messages.
7636
d472514e 76372009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 7638
d472514e 7639 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
7640 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
7641 were used for such events.
7642
d472514e
JB
7643 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
7644 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 7645
d472514e 7646 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
7647 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
7648
fb930676
KH
76492009-03-11 Kenichi Handa <handa@m17n.org>
7650
ff85581a
KH
7651 * font.h (font_open_by_spec): Extern it.
7652
c50b7e98
KH
7653 * font.c (font_open_by_spec): New function.
7654 (font_open_by_name): Use font_open_by_spec.
7655
fb930676
KH
7656 * frame.c (x_set_font): When ARG is a font-object, don't alter the
7657 fontset of the frame.
7658
7659 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
7660 modify the default font of frames that use this fontset.
7661 (num_auto_fontsets): New variable.
7662 (fontset_from_font): Use num_auto_fontsets to decide a fontset
7663 name. Be sure to set FONTSET_ASCII to the correct font name.
7664 (update_auto_fontset_alist): New function.
7665
df4e8455
JB
76662009-03-11 Juanma Barranquero <lekktu@gmail.com>
7667
7668 * makefile.w32-in: Update dependencies.
7669
0a375797
AR
76702009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7671
7672 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
7673
61313fa3
SM
76742009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7675
7676 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
7677
b55103fb
CY
76782009-03-10 Chong Yidong <cyd@stupidchicken.com>
7679
7680 * lread.c (Feval_buffer): Doc fix.
7681
dde2559c
KH
76822009-03-09 Kenichi Handa <handa@m17n.org>
7683
7684 * charset.c (Qfile_name_handler_alist): Extern it.
7685 (load_charset_map_from_file): Temporarily bind
7686 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
7687
df4e8455 76882009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 7689
47f588bb
GM
7690 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
7691 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 7692
4ddf94bd
AR
76932009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7694
4c9bdfc2
AR
7695 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
7696 (x_set_window_size): Change back to calculated method of setting
7697 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
7698 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
7699 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
7700
fe41ae9e
AR
7701 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
7702
4c9bdfc2
AR
7703 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
7704 accelerator in parens under GNUstep.
7705
825d0875
KH
77062009-03-06 Kenichi Handa <handa@m17n.org>
7707
7708 These changes are to detect incorrect composition sequence without
f3b3be74 7709 looking ahead the source. (Bug#2370)
825d0875
KH
7710
7711 * coding.h: Include "composite.h".
7712 (enum compisition_state): New enum.
7713 (struct compisition_status): New struct.
7714 (struct iso_2022_spec): New member cmp_status.
7715 (struct emacs_mule_spec): New struct.
7716 (struct coding_system): New members ctext_extended_segment_len and
7717 embedded_utf_8. Change the union member
7718 spec.emacs_mule_full_support to spec.emacs_mule.
7719
7720 * coding.c (CODING_ISO_CMP_STATUS): New macro.
7721 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 7722 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
7723 (ADD_COMPOSITION_DATA): New arg nbytes.
7724 (emacs_mule_char): New arg cmp_status.
7725 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
7726 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
7727 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
7728 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
7729 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
7730 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
7731 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
7732 (EMACS_MULE_COMPOSITION_END): New macro.
7733 (emacs_mule_finish_composition): New function.
7734 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
7735 (decode_coding_emacs_mule): Avoid long looking ahead while
7736 handling composition.
7737 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
7738 (ENCODE_COMPOSITION_RULE): New macro.
7739 (finish_composition): New function.
7740 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
7741 (DECODE_COMPOSITION_START): New implementation.
7742 (DECODE_COMPOSITION_END): Likewise.
7743 (STORE_COMPOSITION_RULE): New macro.
7744 (decode_coding_iso_2022): Avoid long looking ahead while handling
7745 composition, CTEXT extended segment, and embedded UTF-8.
7746 (setup_coding_system): For a coding of type iso-2022, reset
7747 CODING_ISO_EXTSEGMENT_LEN (coding) and
7748 CODING_ISO_EMBEDDED_UTF_8 (coding).
7749 (get_translation): Delete arguments last_block, from_nchars,
7750 to_nchars. Callers changed.
7751 (produce_chars): Don't modify charbuf. Adjusted for the change of
7752 get_translation.
98a326f7 7753 (produce_composition): Adjust for the new annotation sequence.
825d0875 7754 (handle_composition_annotation): Likewise.
98a326f7 7755 (consume_chars): Adjust for the change of get_translation.
825d0875 7756
ccbc4452
AR
77572009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
7758
4ddf94bd 7759 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 7760
988a7ddb
KH
77612009-03-05 Kenichi Handa <handa@m17n.org>
7762
7763 * font.c (font_select_entity): New function.
7764 (font_find_for_lface): Use font_select_entity to select a font.
7765
7766 * fontset.c (fontset_find_font): If a font found without
a8a3728b 7767 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
7768 font with C restriction.
7769
98a326f7 77702009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 7771
be1bce46 7772 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 7773
10ea2b82
JR
77742009-03-04 Jason Rumney <jasonr@gnu.org>
7775
2c93b248 7776 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 7777 characters that have already been read. (Bug#2569)
2c93b248 7778
10ea2b82
JR
7779 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
7780 Log an error message if check_image_size failed.
7781 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 7782 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 7783
71a0c011
EZ
77842009-03-02 Eli Zaretskii <eliz@gnu.org>
7785
7786 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
7787 when decoding process output.
7788
2f63bba8
RS
77892009-03-01 Richard M Stallman <rms@gnu.org>
7790
7791 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
7792
7793 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
7794
0a9564cb
EZ
77952009-02-28 Eli Zaretskii <eliz@gnu.org>
7796
7797 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
7798 (decode_coding_emacs_mule, decode_coding_iso_2022)
7799 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7800 (decode_coding_raw_text, decode_coding_charset)
7801 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7802 Honor inhibit-eol-conversion. (Bug #2186)
7803
449148b3
JR
78042009-02-28 Jason Rumney <jasonr@gnu.org>
7805
7806 * coding.c (detect_coding_charset): If not checking latin extra,
7807 fail on characters between 0x80 and 0xA0. (Bug#2354)
7808
a4aee864
EZ
78092009-02-28 Eli Zaretskii <eliz@gnu.org>
7810
7811 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 7812 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 7813
d88bee5a
GM
78142009-02-27 Glenn Morris <rgm@gnu.org>
7815
7816 * callint.c (Finteractive): Doc fix.
7817
a808f22d
KH
78182009-02-27 Kenichi Handa <handa@m17n.org>
7819
7820 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7821
caf8d60c
CY
78222009-02-27 Chong Yidong <cyd@stupidchicken.com>
7823
7824 * font.c (font_style_to_value): Set value for unknown symbols to
7825 100 instead of 255.
b61137ea
CY
7826 (weight_table, slant_table, width_table): Treat "unspecified" as
7827 the default value.
caf8d60c 7828
1a0de25c
JB
78292009-02-26 Juanma Barranquero <lekktu@gmail.com>
7830
7831 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7832
8fc45744
JB
78332009-02-25 Juanma Barranquero <lekktu@gmail.com>
7834
107bd7d1
JB
7835 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7836 error as soon as a recursive load is detected.
8fc45744 7837
f097e223
AR
78382009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7839
7840 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7841 before caching.
7842
8810a12f
KH
78432009-02-24 Kenichi Handa <handa@m17n.org>
7844
7845 * fontset.c (fontset_find_font): Fix the condition for checking
7846 unavailable font.
7847
2c7d1565
GM
78482009-02-24 Glenn Morris <rgm@gnu.org>
7849
7850 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7851 whitespace that confuses documentation.
7852
a20878b6
MB
78532009-02-23 Miles Bader <miles@gnu.org>
7854
7855 * process.c (Flist_system_processes, Fprocess_attributes)
7856 (syms_of_process): Rename `system-process-attributes' to
7857 `process-attributes'.
7858
b3b58c01
AS
78592009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7860
1b3b981b
AS
7861 * coding.h (struct coding_system): Make safe_charsets a pointer to
7862 unsigned char.
7863 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7864 being 255.
7865 (SAFE_CHARSET_P): Likewise.
7866 (setup_iso_safe_charsets): Properly setup safe_charsets.
7867 (Fdefine_coding_system_internal): Likewise.
7868 (setup_coding_system): Likewise. Remove unneeded casts.
7869 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7870 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7871 unneeded casts.
7872
b3b58c01
AS
7873 * insdel.c (del_range_2): Don't modify gap contents when called
7874 from decode_coding_object. (Bug#1809)
7875
0b6f228c
CY
78762009-02-21 Chong Yidong <cyd@stupidchicken.com>
7877
7878 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7879 Qfont_object.
7880 (Ftype_of): Recognize font objects.
7881
7882 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7883
7884 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7885 moved to data.c.
7886
52f8870b
AR
78872009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7888
7889 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7890 async_iconified. Based on a patch by Christian Lynbech
7891 <christian.lynbech@tieto.com>.
7892 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7893
7087d5e9
GM
78942009-02-20 Glenn Morris <rgm@gnu.org>
7895
7896 * syntax.c (Fskip_chars_forward): Fix doc typo.
7897
41d2ceef
CY
78982009-02-20 Chong Yidong <cyd@stupidchicken.com>
7899
7900 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7901
1a3b7ca6
CY
79022009-02-19 Chong Yidong <cyd@stupidchicken.com>
7903
7904 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7905
73cce38d
KH
79062009-02-19 Kenichi Handa <handa@m17n.org>
7907
7908 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 7909 Don't overflow coding->carryover. (Bug#2370)
73cce38d 7910
a51092ee
DN
79112009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7912
7913 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7914
c423ecca
KH
79152009-02-18 Kenichi Handa <handa@m17n.org>
7916
7917 * font.c (font_check_otf_features): Fix handling of `nil' element.
7918 (Ffont_spec): Describe :lang and :otf in the docstring.
7919
4c1958f4
AS
79202009-02-16 Andreas Schwab <schwab@suse.de>
7921
7922 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7923 string.
7924
5704f39a
KH
79252009-02-16 Kenichi Handa <handa@m17n.org>
7926
7927 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 7928 (Bug#1723)
5704f39a 7929
8f0085aa
CY
79302009-02-14 Chong Yidong <cyd@stupidchicken.com>
7931
a057d86a 7932 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
7933
7934 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7935 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7936
aff01dd9
EZ
79372009-02-14 Eli Zaretskii <eliz@gnu.org>
7938
7939 * msdos.c (MAX_SCREEN_BUF): New macro.
7940 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7941 Encode the entire run of glyphs sharing the same face, instead of
7942 doing that one glyph at a time (fixes a bug with displaying
7943 double-size characters).
7944
ba301db3
AR
79452009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7946
7947 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7948
7949 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7950 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 7951 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
7952
7953 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 7954 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 7955
51d861de
SM
79562009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7957
ac146f82 7958 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
7959 invisible areas.
7960
7fed8996
JR
79612009-02-12 Jason Rumney <jasonr@gnu.org>
7962
631ea4fb
JR
7963 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7964 (add_font_entity_to_list): Call check_face_name even when family
7965 is unspecified.
7966
cb4a3e42
JR
7967 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7968 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 7969 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 7970
7fed8996 7971 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 7972 raster fonts. (Bug#2219)
7fed8996 7973
895416e3
KH
79742009-02-12 Kenichi Handa <handa@m17n.org>
7975
7976 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7977 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7978 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 7979 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7980 (find_automatic_composition): While looking forward and backward,
7981 check static composition. Fix where to stop looking forward.
7982 (composition_adjust_point): Fix checking of static composition.
7983 (Fcomposition_get_gstring): Pay attention to
1dacf998 7984 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7985
7986 * lisp.h (fast_looking_at): Extern it.
7987
7988 * search.c (fast_looking_at): New function.
7989
51d861de 7990 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
7991 <struct glyph>.u.cmp.to.
7992 (append_composite_glyph): Likewise.
7993
51d861de 7994 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
7995 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
7996 composition.
51d861de 7997 (append_composite_glyph): Adjust for the change of
895416e3
KH
7998 <strcut glyph>.u.cmp.to.
7999
8510724d
JB
80002009-02-11 Juanma Barranquero <lekktu@gmail.com>
8001
8002 * casetab.c (init_casetab_once):
8003 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8004 * font.c (font_update_lface):
8005 * fontset.c (Fnew_fontset):
8006 * ftfont.c (ftfont_drive_otf):
8007 * xfont.c (xfont_open):
8008 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8009
294fa707
SM
80102009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8011
8012 * fileio.c (Fwrite_region): !NILP -> CONSP.
8013
b5bfebec
AS
80142009-02-10 Andreas Schwab <schwab@suse.de>
8015
8016 * process.c (send_process): Properly relocate pointer into data
adab88bd 8017 when using encoded data. (Bug#2272)
b5bfebec 8018
cb84a2be
KH
80192009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8020
8021 * coding.c (detect_coding_charset): Fix previous change.
8022
89e09428
JR
80232009-02-08 Jason Rumney <jasonr@gnu.org>
8024
8025 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8026 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8027
4470a277
AS
80282009-02-07 Andreas Schwab <schwab@suse.de>
8029
8030 * unexelf.c (unexec): Fix error message.
8031
3175b12a
AR
80322009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8033
8034 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8035 when modal window is active. (Bug #2152)
3175b12a
AR
8036 (applicationShouldTerminate:): Remove now-unneeded while loop
8037 around NSRunAlertPanel.
8038
8039 * nsmenu.m (popupSession): New file-global variable.
8040 (pop_down_menu): End the popupSession before closing dialog.
8041 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8042 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8043 don't query NSApp for events (just sleep instead).
8044
8434d0b8
EZ
80452009-02-07 Eli Zaretskii <eliz@gnu.org>
8046
51d861de
SM
8047 * coding.c (syms_of_coding) <translation-table-for-input>:
8048 Modify doc string to discourage use for character code unification.
8434d0b8 8049
aa82edfd
CY
80502009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8051
8052 * atimer.c (run_timers): Update pending_atimers.
8053
2d283c7c
CY
80542009-02-06 Chong Yidong <cyd@stupidchicken.com>
8055
eb306cab
CY
8056 * image.c (svg_load_image): Fix last change.
8057
2d283c7c
CY
8058 * xfns.c (Fx_create_frame): Signal an error if no font is
8059 found (Bug#2147).
8060
4d8e170e
JB
80612009-02-05 Juanma Barranquero <lekktu@gmail.com>
8062
8063 * character.c (syms_of_character) <script-representative-chars>:
8064 Fix typo in docstring.
8065
c96169a0
AR
80662009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8067
8068 * nsmenu.m (pop_down_menu): New function.
8069 (ns_popup_dialog): Call it on unwind.
8070 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8071 call timer_check() (Bug#2154).
8072 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8073 handling_signal is set.
8074 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8075
31fd7c5c 8076 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8077
8078 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8079
8080 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8081
51d861de
SM
8082 * keyboard.c (poll_for_input_1, handle_async_input):
8083 Set handling_signal under HAVE_NS.
c96169a0 8084
aacd8ba1
GM
80852009-02-04 Glenn Morris <rgm@gnu.org>
8086
8087 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8088
4cb75c4b
KH
80892009-02-04 Kenichi Handa <handa@m17n.org>
8090
8091 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8092
8093 * charset.c (Fchar_charset): New optional arg restriction.
8094
8095 * coding.h (coding_system_charset_list): Extern it.
8096
8097 * coding.c (coding_system_charset_list): New function.
8098
8099 * composite.c: Include coding.h and termhooks.h.
8100 (composition_gstring_p): Fix for the terminal case.
8101 (composition_gstring_width): Likewise.
8102 (fill_gstring_body): Likewise.
8103 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8104 the frame.
8105 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8106 is within a composition.
867d4bb3 8107 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8108
8109 * term.c (encode_terminal_code): Fix handling of composition.
8110 (produce_composite_glyph): For static composition, get pixel_width
8111 from struct composition.
8112
826ba17e
AS
81132009-02-02 Andreas Schwab <schwab@suse.de>
8114
8115 * unexelf.c (unexec): Handle unaligned bss offset.
8116
8ad093db
AR
81172009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8118
8119 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8120 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8121
8ad093db
AR
8122 * keyboard.c (handle_interrupt): Don't call
8123 quit_throw_to_read_char() under NS.
d0a76a6e 8124
8ad093db
AR
8125 * blockinput.h: Remove NS-specific code.
8126
4d18a7a2
DN
81272009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8128
db878925
DN
8129 * dispnew.c (window_change_signal): Don't try to get the size of a
8130 suspended tty frame.
8131 * term.c (Fresume_tty): Resize if the size has changed while the
8132 tty was suspended.
8133
4d18a7a2
DN
8134 * alloc.c (mark_stack): Properly conditionalize previous change.
8135
8984df7c
JB
81362009-01-30 Juanma Barranquero <lekktu@gmail.com>
8137
8138 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8139 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8140 Remove; this code is not used on Windows.
8141
75f4f1ac
EZ
81422009-01-30 Eli Zaretskii <eliz@gnu.org>
8143
8144 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8145 EOLs that also has stray ^M characters.
8146
07a1e794
JB
81472009-01-30 Juanma Barranquero <lekktu@gmail.com>
8148
8149 * atimer.c (run_timers, alarm_signal_handler):
8150 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8151 * w32inevt.c (w32_console_read_socket):
8152 * w32term.c (w32_read_socket):
8153 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8154
a8b11cc9
CY
81552009-01-30 Chong Yidong <cyd@stupidchicken.com>
8156
8157 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8158 Initialize it as a relative filename pattern.
8159 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8160 (Fcall_process_region): Simplify temp file creation using
8161 temporary-file-directory.
8162
c279587b
EZ
81632009-01-29 Eli Zaretskii <eliz@gnu.org>
8164
8165 * msdos.c: Rename pending_signals to msdos_pending_signals.
8166 (sig_suspender, sigprocmask): Adjust.
8167
a8fe3242
CY
81682009-01-29 Chong Yidong <cyd@stupidchicken.com>
8169
8170 * keyboard.c (pending_signals): New var.
8171 (poll_for_input, input_available_signal, init_keyboard): Set it.
8172 (process_pending_signals): New function.
8173
8174 * lisp.h (QUIT): Check pending_signals instead of
8175 interrupt_input_pending. Use process_pending_signals.
8176
51d861de 8177 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8178
51d861de 8179 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8180
8181 * sysdep.c (emacs_write): Use process_pending_signals.
8182
8183 * xterm.c (XTread_socket): Update pending_signals.
8184
8185 * w32term.c (w32_read_socket): Update pending_signals.
8186
8187 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8188
6570a1c4
KH
81892009-01-29 Kenichi Handa <handa@m17n.org>
8190
8191 * xftfont.c (xftfont_has_char): New function.
8192 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8193
d72a4afa
AR
81942009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8195
8196 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8197 under GNUstep.
8198 (ns_query_color): New declaration.
8199
8200 * nsterm.m (ns_confirm_quit): New variable.
8201 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8202 (EmacsApp-applicationShouldTerminate:): Use it.
8203 (EmacsPrefsController): Let user set it.
8204 (ns_query_color): New function.
8205 (ns_defined_color): Use it.
8206 (ns_initialize): Drop.
8207 (ns_term_init): Add two lines from ns_initialize(), and set
8208 input_interrupt_mode to nil.
8209
8210 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8211 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8212
9fe78804
KH
82132009-01-28 Kenichi Handa <handa@m17n.org>
8214
8215 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8216 (fontset_get_font_group): Remember that no font-group is specified
8217 for C.
9fe78804 8218
fa57de36
CY
82192009-01-27 Chong Yidong <cyd@stupidchicken.com>
8220
930600e9
CY
8221 * fns.c (concat): Check for string overflow (bug#1787).
8222
fa57de36
CY
8223 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8224 Quadruple undo limits (bug#1501).
8225
7179ce7b
KH
82262009-01-27 Kenichi Handa <handa@m17n.org>
8227
8228 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8229 directly use GT_Get_Char_index.
8230
8231 * xftfont.c (struct xftfont_info): New member `index'.
8232
8233 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8234 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8235
5be8fcc0
CY
82362009-01-26 Kenichi Handa <handa@m17n.org>
8237
8238 * fontset.c (fontset_find_font): Fix handling of non-cons return
8239 value of fontset_get_font_group.
8240 (fontset_font): Revert last change.
8241
19ae3e61
JR
82422009-01-26 Jason Rumney <jasonr@gnu.org>
8243
8244 * w32font.c (w32font_list_internal): Return quickly if registry is
8245 unknown. Simplify final return.
8246 (add_font_entity_to_list): Break complex logic down into more
8247 manageable chunks. Move unknown registry check to
8248 w32font_list_internal.
8249
8612b71a
AR
82502009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8251
8252 Changes to remove Feval calls from GUI under NS.
8253
d8038940
JB
8254 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8255 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8256 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8257
8258 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8259 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8260 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8261 instead of NON_ASCII_KEYSTROKE_EVENT.
8262 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8263 (EmacsApp-applicationShouldTerminate:): Query user.
8264 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8265 instead of Feval.
8266
8267 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8268
8269 * keyboard.c (kbd_buffer_get_event): Check for it.
8270 (keys_of_keyboard): Define lispy keys for
8271 ns-put/unput-working-text.
8272
8273 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8274 versions.
8275 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8276
6288ae55
CY
82772009-01-25 Chong Yidong <cyd@stupidchicken.com>
8278
8279 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8280 setting current_buffer directly. (Bug#2044)
6288ae55 8281
289e7f8f
CY
82822009-01-24 Chong Yidong <cyd@stupidchicken.com>
8283
5ce87308 8284 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8285 any work. (Bug#1952, bug#1990).
5ce87308 8286
64cc3cf6 8287 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8288
b3243e6f
AR
82892009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8290
8291 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8292 (ns_no_defaults): New declaration.
8293 (main): Use it.
e0d2e69a 8294
d900b2af 8295 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8296
d900b2af 8297 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8298
d900b2af
AR
8299 * nsterm.m (ns_no_defaults): New variable.
8300 (ns_initialize): Don't read defaults when ns_no_defaults.
8301 (EmacsView-readSelectionFromPasteboard:)
8302 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8303 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8304 (ns_dumpglyphs_stretch): New function.
8305 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8306 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8307
e0d2e69a
AR
8308 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8309
3ac71f5d
CY
83102009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8311
8312 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8313 call for Sparc64.
8314
3fe53a83
AR
83152009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8316
8317 * nsfns.m:
8318 * nsgui.h:
8319 * nsmenu.m:
8320 * nsselect.m:
8321 * nsterm.h:
8322 * nsterm.m: Remove '23' comments that indicated code added during
8323 update from emacs-20 -> emacs-23.
8324
10f87c6f 83252009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
8326
8327 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 8328 ns_alternate_modifier. (Bug#1217)
a3b53a85 8329
c7cef62d
AR
8330 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8331 Display all shortcuts, including those w/o super modifier.
8332
575fb8bd
AR
8333 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8334
918b848b
CY
83352009-01-22 Chong Yidong <cyd@stupidchicken.com>
8336
8337 * fileio.c (Vwrite_region_post_annotation_function)
8338 (Vwrite_region_annotation_buffers): New vars.
8339 (build_annotations_unwind): Just reset
8340 Vwrite_region_annotation_buffers.
8341 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8342 Call write-region-post-annotation-function.
8343 (build_annotations): Add to Vwrite_region_annotation_buffers if
8344 buffer changes.
8345
a39e2539
AR
83462009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8347
8348 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8349 Tiger.
51d861de
SM
8350 * nsfns.m (ns_do_applescript):
8351 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8352
35ed44db
AR
83532009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8354
8355 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8356
cbe0b5bf
AR
83572009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8358
8359 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8360
6049d3a0
AR
8361 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8362
8363 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8364 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8365 handle Ctrl-tab. (Bug#1841)
8366 (ns_get_color): Use unsigned long long for scanned hex string value.
8367 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8368 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8369 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8370 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8371 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8372 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8373 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8374
d3810c21 8375 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8376 DPI. (Bug#1316)
d3810c21
AR
8377 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8378 values in onTiger section.
4c7077c3 8379
e301e634
CY
83802009-01-19 Chong Yidong <cyd@stupidchicken.com>
8381
7f82490b
CY
8382 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8383 Check return value of font_spec_from_name.
64cc3cf6 8384 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8385
8386 * font.c (font_spec_from_name): Return Qnil if font name could not
8387 be parsed.
8388 (font_parse_name): Treat a `?' character as part of an XLFD.
8389
e301e634
CY
8390 * fns.c (Fsubstring): Doc fix.
8391
1c0db158
KH
83922009-01-19 Kenichi Handa <handa@m17n.org>
8393
51d861de 8394 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
8395 (ftfont_list): Likewise.
8396
acf20901
JB
83972009-01-18 Juanma Barranquero <lekktu@gmail.com>
8398
fff4e459
JB
8399 * dbusbind.c (Fdbus_register_signal):
8400 * process.c (conv_sockaddr_to_lisp):
8401 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8402
acf20901
JB
8403 * callproc.c (Fgetenv_internal): Doc fix.
8404
e7abcdfb
CY
84052009-01-16 Chong Yidong <cyd@stupidchicken.com>
8406
8407 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8408 it is not even used.
8409
b60861e6
GM
84102009-01-16 Glenn Morris <rgm@gnu.org>
8411
8412 * font.c (Ffont_variation_glyphs): Silence compiler.
8413
8db52afe
JB
84142009-01-15 Juanma Barranquero <lekktu@gmail.com>
8415
8416 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8417 Reported by David Robinow <drobinow@gmail.com>.
8418
4cddb209
KH
84192009-01-15 Kenichi Handa <handa@m17n.org>
8420
51d861de 8421 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 8422
f247f67b
JR
84232009-01-14 Jason Rumney <jasonr@gnu.org>
8424
8425 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 8426 never a fontset. (Bug#1562)
f247f67b 8427
f56a4450
KH
84282009-01-14 Kenichi Handa <handa@m17n.org>
8429
8430 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 8431 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 8432
4e99855e
CY
84332009-01-13 Chong Yidong <cyd@stupidchicken.com>
8434
8435 * font.c (font_clear_prop): If clearing the family, clear the font
8436 width index too.
8437
fff4e459 8438 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 8439
24f01470
JB
84402009-01-12 Juanma Barranquero <lekktu@gmail.com>
8441
8442 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8443 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8444 functions, use sizeof.
8445
a41240a3
MR
84462009-01-12 Martin Rudalics <rudalics@gmx.at>
8447
8448 * keyboard.c (read_char): Fix case where last_nonmenu_event
8449 returned a bad value with submenus. (Bug#447)
8450
944636b8
CY
84512009-01-12 Chong Yidong <cyd@stupidchicken.com>
8452
8453 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8454 family, clear the font width index too.
8455
0dad7c6f
JR
84562009-01-11 Jason Rumney <jasonr@gnu.org>
8457
8458 * keyboard.c (cmd_error_internal): Exit when errors occur before
8459 frame creation and not in daemon mode. (Bug#1836)
8460
7c2363af
CY
84612009-01-10 Chong Yidong <cyd@stupidchicken.com>
8462
8463 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8464 of a display vector, backtrack.
8465 (try_window_reusing_current_matrix): Check glyph type before
8466 referencing charpos member.
8467
97b1b294
EZ
84682009-01-10 Eli Zaretskii <eliz@gnu.org>
8469
8470 Fix Bug #876:
8471
8472 * coding.c (inhibit_null_byte_detection): New variable.
8473 (detect_coding, detect_coding_system): Don't pay attention to null
8474 bytes if inhibit_null_byte_detection is non-zero.
51d861de 8475 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
8476 <inhibit-iso-escape-detection>: Doc fix.
8477
4624b6e3
JR
84782009-01-09 Jason Rumney <jasonr@gnu.org>
8479
8480 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 8481 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
8482 Only report Unicode Plane 2 fonts as unicode-sip.
8483
323b840c
CY
84842009-01-09 Chong Yidong <cyd@stupidchicken.com>
8485
51d861de
SM
8486 * xfaces.c (Fx_font_family_list): Delete function.
8487 Move compatibility version to faces.el.
323b840c 8488
51d861de 8489 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 8490
eba7400d
MR
84912009-01-09 Martin Rudalics <rudalics@gmx.at>
8492
8493 * frame.c (x_set_frame_parameters): Remember requested value for
8494 fullscreen before it's reset by the parameter handler.
8495
4b09796d
GM
84962009-01-09 Glenn Morris <rgm@gnu.org>
8497
8498 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 8499 (last_command_event): ... and update all users.
4b09796d
GM
8500 (last_input_char): For clarity, rename to...
8501 (last_input_event): ... and update all users.
8502 (last-command-char, last-input-char): Move to subr.el as aliases.
8503 * cmds.c, commands.h: Update for last_command_char rename.
8504
14ccea62
CY
85052009-01-08 Chong Yidong <cyd@stupidchicken.com>
8506
51d861de 8507 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 8508
5f004711
JR
85092009-01-08 Jason Rumney <jasonr@gnu.org>
8510
8511 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
8512 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
8513 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
8514 Don't declare.
fff4e459 8515 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
8516 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
8517
b71f6f73
KH
85182009-01-07 Kenichi Handa <handa@m17n.org>
8519
50b06221 8520 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 8521 remember the coding system used for decoding in
50b06221
KH
8522 coding_system (Bug#1039).
8523
b71f6f73 8524 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 8525 breaking the loop. (Bug#870)
b71f6f73
KH
8526 (decode_coding_utf_16, decode_coding_emacs_mule)
8527 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8528 (decode_coding_charset): Likewise.
8529
56f668f7
MR
85302009-01-05 Martin Rudalics <rudalics@gmx.at>
8531
8532 * frame.c (x_set_frame_parameters): Make sure height (width) get
8533 applied when fullwidth (fullheight) is set. (Bug#1522)
8534
5da9424d
JB
85352009-01-04 Juanma Barranquero <lekktu@gmail.com>
8536
8537 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8538 (utc_base): Declare as ULONGLONG, not long double.
8539 (convert_time_raw): Delete.
8540 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8541 (initialize_utc_base): New function.
8542 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8543 (convert_from_time_t): Use initialize_utc_base; compute result with
8544 64-bit arithmetic.
8545 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8546
c4605e09
EZ
85472009-01-03 Eli Zaretskii <eliz@gnu.org>
8548
9acef61c 8549 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
8550 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8551 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8552 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8553 [!subprocesses]: Define.
8554 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8555 (Flist_system_processes, Fsystem_process_attributes)
8556 [!subprocesses]: Call list_system_processes and
8557 system_process_attributes instead of returning Qnil.
8558
9acef61c
JB
8559 * dosfns.c (system_process_attributes, list_system_processes):
8560 New functions.
c4605e09
EZ
8561
8562 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8563
8564 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8565 Don't use the default (no-op) implementation.
8566
8b7d0a16
JR
85672009-01-03 Jason Rumney <jasonr@gnu.org>
8568
a6d46bc1
JR
8569 * keyboard.c (parse_modifiers_uncached): Wheel events are
8570 clicks (bug#687).
8571
8b7d0a16
JR
8572 * w32term.c (x_query_colors, x_query_color): New functions.
8573
8574 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8575 (svg_load_image): Cast returned pointers from dynamically loaded
8576 functions. Eliminate W32 specific code.
8577
bfe11752
DN
85782009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8579
89e2438a
DN
8580 * nsfns.m (x_set_foreground_color, x_set_background_color)
8581 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8582 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8583 x_ prefix instead of ns_. Update references.
8584 (syms_of_nsfns): Add a FIXME comment.
8585
8586 * nsterm.m (x_set_cursor_type): New prototype.
8587 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8588
bfe11752
DN
8589 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8590 for Solaris instead of incorrectly providing Qutime and Qcutime.
8591
031da700
EZ
85922009-01-02 Eli Zaretskii <eliz@gnu.org>
8593
8594 * w32.c (process_times): Compute sum of utime and stime.
8595 (system_process_attributes): Add Qtime to the alist.
8596
8597 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8598 and add them to the alist.
8599
8600 * process.c (top level) <Qtime, Qctime>: New variables.
8601 (syms_of_process): staticpro them.
8602 (Fsystem_process_attributes): Add their documentation to the doc
8603 string.
8604
8605 * process.h: Declare Qtime and Qctime.
8606
df23bf08
JR
86072009-01-02 Jason Rumney <jasonr@gnu.org>
8608
9acef61c 8609 * image.c (Qgobject): New symbol.
df23bf08
JR
8610 (syms_of_image): Initialize it.
8611 (init_svg_functions): Load some functions from gobject library.
8612
5bbdf7aa
DN
86132009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8614
8615 * frame.c (make_terminal_frame): Remove redundant code and useless
8616 block.
8617
63136da6
AS
86182009-01-01 Andreas Schwab <schwab@suse.de>
8619
8620 * process.c (conv_sockaddr_to_lisp): Add workaround for
8621 getsockname bug on BSD.
8622
9ef69046
CY
86232009-01-01 Chong Yidong <cyd@stupidchicken.com>
8624
d6fafbe0
CY
8625 * xfns.c (x_create_tip_frame): Set border width of the X window.
8626
51d861de 8627 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 8628
f9c34147
JR
86292009-01-01 Jason Rumney <jasonr@gnu.org>
8630
9acef61c 8631 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
8632 Don't block input, as per earlier xterm.c changes.
8633
f5497e45
AR
86342008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8635
8636 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8637 (ns_appkit_version_int): New function.
8638 (x-server-version): Use ns_appkit_version_int and follow 21+
8639 convention of returning 3 integers.
8640
c19cab20
KH
86412008-12-30 Kenichi Handa <handa@m17n.org>
8642
8643 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
8644 (CHAR_SURROGATE_PAIR_P): New macro.
8645
8646 * font.h (struct font_driver): New member get_variation_glyphs.
8647
9acef61c 8648 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
8649 (Ffont_variation_glyphs): New function.
8650 (syms_of_font): Defsubr it.
8651
8652 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
8653 ftfont_variation_glyphs.
8654 (setup_otf_gstring): New function.
8655 (ftfont_drive_otf): Use it.
8656 (ftfont_shape_by_flt): Handle variation selector.
8657 (ftfont_variation_glyphs): New function.
8658
28cd591f
MR
86592008-12-30 Martin Rudalics <rudalics@gmx.at>
8660
8661 * frame.c (Vemacs_iconified): Remove.
8662
7f714baf
JR
86632008-12-30 Jason Rumney <jasonr@gnu.org>
8664
8665 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 8666 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 8667
9d2d22ab
CY
86682008-12-30 Chong Yidong <cyd@stupidchicken.com>
8669
8670 * indent.c (Fvertical_motion): Don't advance iterator if we have
8671 reseated to the desired position.
8672
8673 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
8674 checking for pos match.
8675
545312c2
KH
86762008-12-30 Kenichi Handa <handa@m17n.org>
8677
1ede3eb6
KH
8678 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
8679 just get the low 8-bit of the code.
8680
545312c2
KH
8681 * font.c (font_intern_prop): Validate str as multibyte.
8682
bd7bbf29
DN
86832008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8684
31e0750e
DN
8685 * dispextern.h (struct face): Move lface and hash from the middle
8686 of bitfields.
8687
bd7bbf29
DN
8688 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
8689
b5672e7c
DN
86902008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8691
8692 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
8693 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
8694 instead of intervals.h.
8695
d704470f
AS
86962008-12-26 Andreas Schwab <schwab@suse.de>
8697
8698 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
8699 cons.
8700
54b33868
MR
87012008-12-26 Martin Rudalics <rudalics@gmx.at>
8702
8703 * textprop.c (Qminibuffer_prompt): New variable.
8704 (syms_of_textprop): Initialize it.
8705 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
8706 in minibuffer-prompt face. (Bug#1662)
8707
40b615d6
JR
87082008-12-25 Jason Rumney <jasonr@gnu.org>
8709
8710 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
8711
baae5c2d
JR
87122008-12-24 Jason Rumney <jasonr@gnu.org>
8713
8714 * ralloc.c (r_alloc_reset_variable): New function.
8715
8716 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 8717 record of what points where. (Bug#716)
baae5c2d 8718
a9051c88
DN
87192008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
8720
8721 * minibuf.c (read_minibuf): Follow the non-interactive case when
8722 running as a daemon, before detaching.
8723
8b146312
AS
87242008-12-22 Andreas Schwab <schwab@suse.de>
8725
8726 * buffer.c (init_buffer): Use realloc instead of xrealloc.
8727 * gtkutil.c (free_widget_value): Use xfree instead of free.
8728
56f2de10
MR
87292008-12-22 Martin Rudalics <rudalics@gmx.at>
8730
8731 * frame.c (delete_frame): New function derived from
8732 Fdelete_frame to handle Qnoelisp value for FORCE argument.
8733 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
8734 (Fdelete_frame): Call delete_frame. Remove line from doc-string
8735 saying that FORCE non-nil doesn't run `delete-frame-functions'.
8736 * frame.h: Extern delete_frame.
8737 * window.c (window_loop):
8738 * terminal.c (delete_terminal):
8739 * xterm.c (x_connection_closed):
8740 * xfns.c (Fx_hide_tip):
9acef61c 8741 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 8742
1fc200d6
JR
87432008-12-21 Jason Rumney <jasonr@gnu.org>
8744
8745 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
8746 when character maps to .notdef character.
8747
5e252df2
SM
87482008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
8749
8750 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
8751
99b72cc4
JR
87522008-12-20 Jason Rumney <jasonr@gnu.org>
8753
8754 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 8755 a graphical frame on Windows. (Bug#1325)
99b72cc4 8756
acc49a52
JD
87572008-12-20 Jan Djärv <jan.h.d@swipnet.se>
8758
8759 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
8760
6ea15123
CY
87612008-12-20 Chong Yidong <cyd@stupidchicken.com>
8762
8763 * minibuf.c (Fread_buffer): Doc fix.
8764
b2dab6c8
JR
87652008-12-20 Jason Rumney <jasonr@gnu.org>
8766
54ea0c87 8767 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 8768 server name in UNC paths. (Bug#719)
54ea0c87 8769
b2dab6c8 8770 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 8771 charbuf. (Bug#1035)
b2dab6c8 8772
6d1921be
DN
87732008-12-19 Daniel Engeler <engeler@gmail.com>
8774
8775 * sysdep.c (serial_configure): Fix typo.
8776
53934c98
DN
87772008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8778
8779 * sysdep.c: Include alloca.h.
f4f634e8
DN
8780 (system_process_attributes): Add implementation for Solaris.
8781
8782 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 8783
06e111a6
DN
87842008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8785
8786 Reorganize implementation of Flist_system_processes and
8787 Fsystem_process_attributes. No functional changes.
8788 * process.c: Don't #include pwd.h, grp.h and limits.h.
8789 (Flist_system_processes): Just call list_system_processes.
8790 (Fsystem_process_attributes): Just call system_process_attributes.
8791 (procfs_list_system_processes, time_from_jiffies)
8792 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8793 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
8794
8795 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
8796 (list_system_processes): Rename from
8797 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
8798 Provide a do nothing implementation.
8799 (system_process_attributes): Rename from
8800 procfs_list_system_processes.
8801 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 8802 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
8803
8804 * w32.c (list_system_processes): Rename from
8805 w32_list_system_processes.
8806 (system_process_attributes): Rename from
8807 w32_system_process_attributes.
8808
8809 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8810
8811 * process.h (w32_list_system_processes)
8812 (w32_system_process_attributes): Remove.
362654a6
JB
8813 (list_system_processes, system_process_attributes):
8814 New prototypes.
06e111a6 8815
6a705b23
KH
88162008-12-19 Kenichi Handa <handa@m17n.org>
8817
8818 * xfont.c (xfont_decode_coding_xlfd): New function.
8819 (xfont_encode_coding_xlfd): New function.
8820 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8821 (xfont_list): Decode and encode XLFD by iso-8859-1.
8822 (xfont_match): Likewise.
8823 (xfont_list_family): Likewise.
8824 (xfont_open): Likewise.
8825
d66c0241 8826 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
8827 names are utf-8.
8828
d66c0241 8829 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
8830 names are utf-8.
8831
5a130941
JD
88322008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8833
8834 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8835 changed.
bfd20325
JD
8836 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8837 clicked on a detached tool bar button.
5a130941 8838
fd95644b
DN
88392008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8840
8841 * emacs.c (main): Print and error and exit when no data is read
8842 from the pipe.
8843
e6eee6ae
JR
88442008-12-17 Jason Rumney <jasonr@gnu.org>
8845
8846 * w32font.c (w32font_has_char): Always return -1.
8847
a35dd56b
KH
88482008-12-16 Kenichi Handa <handa@m17n.org>
8849
8850 * font.c (font_open_entity): Fix previous change.
8851
0e3635c2
DN
88522008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8853
8854 * process.c: Include <limits.h>.
8855
d4835507 88562008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
8857
8858 * font.c (font_update_drivers): Fix mistake in reconstructing the
8859 driver list.
8860
88612008-12-16 Chong Yidong <cyd@stupidchicken.com>
8862
8863 * font.c (font_clear_cache): Fix format of font cache data.
8864
e2cbc401
CY
88652008-12-15 Chong Yidong <cyd@stupidchicken.com>
8866
8867 * xftfont.c (xftfont_open): Free Xft font pattern if
8868 XftFontOpenPattern fails.
8869
8870 * xterm.c (x_free_frame_resources): Remove extraneous call to
8871 free_frame_faces.
8872
b131d535
CY
88732008-12-13 Chong Yidong <cyd@stupidchicken.com>
8874
8875 * xterm.c (x_delete_display): Move xim_close_dpy call to
8876 x_delete_terminal.
8877 (x_delete_terminal): Call xim_close_dpy.
8878
e6df5336
JR
88792008-12-13 Jason Rumney <jasonr@gnu.org>
8880
8881 * w32font.c (intern_font_name): New function.
8882 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8883 (w32font_open_internal, Fx_select_font): Decode font name.
8884 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8885
8886 * w32font.h (intern_font_name): Declare new function.
8887
8888 * w32uniscribe.c (add_opentype_font_name_to_list):
8889 Use intern_font_name.
8890
20d68145
CY
88912008-12-13 Chong Yidong <cyd@stupidchicken.com>
8892
9f2554de
CY
8893 * frame.c (Fdelete_frame): Call free_font_driver_list.
8894
3d9bec9a
CY
8895 * font.c (free_font_driver_list): Implement missing function.
8896
20d68145
CY
8897 * w32term.c (w32_term_init): Don't initialize the image cache
8898 here; it will be done in init_frame_faces.
8899
8900 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8901 (struct x_display_info): Remove unused member null_pixel. New
8902 member xim_callback_data.
8903
8904 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8905 (xim_initialize): Save pointer to callback function data.
8906 (xim_close_dpy): Free callback function data. Call XCloseIM,
8907 reverting 2008-11-04 change by David Smith.
8908 (x_term_init): Don't initialize the image cache here; it will be
8909 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8910 (x_delete_display): Free x_dnd_atoms member.
8911
96f9306b
KH
89122008-12-13 Kenichi Handa <handa@m17n.org>
8913
6dec9044
JB
8914 * font.c (font_rescale_ratio): Moved from xfaces.c.
8915 Argument type changed. Handle a font-spec too.
96f9306b 8916 (font_score): Check Vface_font_rescale_alist.
6dec9044 8917 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
8918
8919 * xfaces.c (font_rescale_ratio): Moved to font.c.
8920
8d5b4964
CY
89212008-12-13 Chong Yidong <cyd@stupidchicken.com>
8922
8923 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8924
e6df5336
JR
89252008-12-12 Jason Rumney <jasonr@gnu.org>
8926
8927 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8928 Vwindow_system_version to the real w32 major version.
8929
97c6058a
DN
89302008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8931
8932 * term.c (init_tty): Move setting the terminal name before the
8933 potential user: maybe_fatal.
8934
ec4e88d7
CY
89352008-12-11 Chong Yidong <cyd@stupidchicken.com>
8936
d4835507
JB
8937 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8938 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 8939
b4233ec9
JR
89402008-12-11 Jason Rumney <jasonr@gnu.org>
8941
8ec71e23 8942 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 8943 SYMBOL_CHARSET. (Bug#547)
8ec71e23 8944
b4233ec9 8945 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 8946 size for surrogates. (Bug#1096, bug#872)
b4233ec9 8947
011a0143
JB
89482008-12-11 Juanma Barranquero <lekktu@gmail.com>
8949
8950 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8951
3c309f34
JB
89522008-12-11 Juanma Barranquero <lekktu@gmail.com>
8953
8954 * process.c (Fsystem_process_attributes, syms_of_process):
8955 Fix typo in name of Ssystem_process_attributes.
8956 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8957
fedc6ab5
JB
89582008-12-11 Juanma Barranquero <lekktu@gmail.com>
8959
8960 * syntax.c (Fmodify_syntax_entry): Doc fix.
8961
ba3de0e8
JB
89622008-12-10 Juanma Barranquero <lekktu@gmail.com>
8963
8964 * font.c (Ffont_spec): Move usage to end of docstring.
8965
174f1c74
JR
89662008-12-10 Jason Rumney <jasonr@gnu.org>
8967
8968 * w32font.c (Qcham): New symbol.
8969 (font_supported_scripts): Add cham, and comments for other new
8970 scripts in bitfield from OpenType spec.
9d32f818
JR
8971 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8972 contain characters beyond the bmp.
174f1c74 8973
7b649478
KH
89742008-12-10 Kenichi Handa <handa@m17n.org>
8975
8976 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 8977 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
8978 Qunicode_sip.
8979
2133e2d1
JB
89802008-12-10 Juanma Barranquero <lekktu@gmail.com>
8981
8982 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8983 (Fcoding_system_put): Use QCdefault_char.
8984 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8985
9af886ee
CY
89862008-12-09 Chong Yidong <cyd@stupidchicken.com>
8987
74d819eb
CY
8988 * xftfont.c (syms_of_xftfont): Fix typo.
8989
4ccfa1c0 8990 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 8991
7c19d3ae
DN
89922008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8993
8994 * emacs.c (main): Close daemon_pipe on exec.
8995
567826bb
CY
89962008-12-08 Chong Yidong <cyd@stupidchicken.com>
8997
8998 * termchar.h (struct tty): New members termcap_term_buffer and
8999 termcap_strings_buffer.
9000
9001 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9002 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9003 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9004 All callers changed.
9005 (init_tty): Store termcap data and string buffers in new struct
9006 tty members termcap_term_buffer and termcap_strings_buffer.
9007 (delete_tty): Free them.
4ccfa1c0 9008 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9009
aa96c42b
SZ
90102008-12-07 Seiji Zenitani <zenitani@mac.com>
9011
9012 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9013 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9014
b7e1d896
CY
90152008-12-06 Chong Yidong <cyd@stupidchicken.com>
9016
9017 * coding.c (make_conversion_work_buffer): Disable buffer
9018 modification hooks in the work buffer.
9019
b5ec91a5
EZ
90202008-12-05 Eli Zaretskii <eliz@gnu.org>
9021
9022 * process.c (procfs_system_process_attributes): If `nread' has a
9023 negative value, assign zero to it.
9024
a5d2a52b
CY
90252008-12-05 Chong Yidong <cyd@stupidchicken.com>
9026
68c5540b 9027 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9028
7bf1bb21
KH
90292008-12-05 Kenichi Handa <handa@m17n.org>
9030
9031 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9032 second character is a combining character.
9033
2fdc7d00
EZ
90342008-12-05 Eli Zaretskii <eliz@gnu.org>
9035
9036 * process.c (procfs_system_process_attributes): Don't use cmd,
9037 cmdsize, and q without initializing them first.
9038
bf6bfba8
JR
90392008-12-04 Jason Rumney <jasonr@gnu.org>
9040
9041 * w32font.c (w32font_draw): Initialize orig_clip before getting
9042 it, and delete it when finished.
9043
a3b1a468
DN
90442008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9045
9046 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9047 case when running as a daemon before detaching.
9048
8b8be8eb
JB
90492008-12-03 Juanma Barranquero <lekktu@gmail.com>
9050
805f2638 9051 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9052
b1bde622
KH
90532008-12-03 Kenichi Handa <handa@m17n.org>
9054
e500c47d
KH
9055 * font.c (font_at): Set `multibyte' at first.
9056
ca516334
KH
9057 * coding.c (decode_coding_charset): Check type of an element of
9058 vector VALIDS.
7bf1bb21 9059 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9060
4ccfa1c0 9061 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9062 (font_for_char): Likewise.
9063
1e5ecd37
CY
90642008-12-03 Chong Yidong <cyd@stupidchicken.com>
9065
d5b01609 9066 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9067 (font_update_lface): Handle fonts with corrupted size specs,
9068 i.e. non-int and non-float.
d5b01609 9069
11e3a6e4 9070 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9071 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9072 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9073
ab06788b
CY
9074 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9075
1e5ecd37 9076 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9077 underline_minimum_offset for underline position.
1e5ecd37 9078
63c125ab
DN
90792008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9080
9081 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9082
9083 * character.c (c_string_width): Specify the type for LEN.
9084
3a8406e1
KH
90852008-12-03 Kenichi Handa <handa@m17n.org>
9086
4ccfa1c0 9087 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9088 (decode_coding_utf_8): Likewise.
4ccfa1c0 9089 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9090 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9091
651df7d9
CY
90922008-12-02 Chong Yidong <cyd@stupidchicken.com>
9093
9094 * keyboard.c (make_lispy_position): Only use PT if the selected
9095 window is current.
9096
1f625c6c
AS
90972008-12-02 Andreas Schwab <schwab@suse.de>
9098
f7741ce9
AS
9099 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9100
1f625c6c
AS
9101 * doprnt.c (doprnt1): Fix size of charbuf.
9102
92bc2678
CY
91032008-12-02 Chong Yidong <cyd@stupidchicken.com>
9104
9105 * keyboard.c (timer_check): Revert last change.
9106
93b9e8cc
JB
91072008-12-02 Juanma Barranquero <lekktu@gmail.com>
9108
9109 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9110
fd7a37d5
JB
91112008-12-01 Juanma Barranquero <lekktu@gmail.com>
9112
9113 * makefile.w32-in: Update dependencies.
9114 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9115
c115043b
AS
91162008-12-01 Andreas Schwab <schwab@suse.de>
9117
9118 * font.c (register_font_driver): Use xmalloc.
9119 (font_put_frame_data): Likewise.
9120
f5668d2a
CY
91212008-12-01 Chong Yidong <cyd@stupidchicken.com>
9122
860d96be
CY
9123 * xfaces.c (realize_x_face): Make abort condition clearer.
9124
f5668d2a
CY
9125 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9126
379c17e7
CY
91272008-11-30 Chong Yidong <cyd@stupidchicken.com>
9128
9129 * keyboard.c (timer_check): After a timer runs, ensure that the
9130 selected window's buffer is current.
9131
35f36d65
JB
91322008-11-30 Juanma Barranquero <lekktu@gmail.com>
9133
f952c61c
JB
9134 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9135 It was accidentally restored by the Unicode merge.
9136
35f36d65
JB
9137 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9138
b23077df
JB
91392008-11-29 Juanma Barranquero <lekktu@gmail.com>
9140
9141 * w32proc.c: Include "coding.h".
9142 (Fw32_short_file_name): Encode filename passed to Windows API.
9143 (Fw32_long_file_name): Encode filename passed to Windows API and
9144 decode back the result. (Bug#1433)
9145
b8ebe9dd
KH
91462008-11-29 Kenichi Handa <handa@m17n.org>
9147
8cc53f96
KH
9148 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9149 not before accessing it.
9150
b8ebe9dd
KH
9151 * charset.c (Fdefine_charset_internal): After calculating
9152 min_char, max_char, and fastmap, copy the charset structure again.
9153 (encode_char): Fix the previous change.
9154
59bc82c0
SZ
91552008-11-28 Seiji Zenitani <zenitani@mac.com>
9156
9157 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9158
9159 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9160
9161 * nsterm.m (x_set_frame_alpha): New function.
9162
32247e3d
EZ
91632008-11-27 Eli Zaretskii <eliz@gnu.org>
9164
9165 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9166
b003e5ff
JB
91672008-11-27 Juanma Barranquero <lekktu@gmail.com>
9168
9169 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9170 pointer to check_face_name.
9171
708550f5
KH
91722008-11-27 Kenichi Handa <handa@m17n.org>
9173
9174 * category.h (SET_CATEGORY_SET): Call set_category_set.
9175 (set_category_set): Extern it.
9176
9177 * category.c (hash_get_category_set): New function.
9178 (Fmodify_category_entry): Adjusted for the change of
9179 char_table_ref_and_range. Call hash_get_category_set to get a
9180 category set to store in the table.
9181
9182 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9183 Funify_charset.
9184
2ae37cf0 9185 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9186 (DECODE_CHAR): Check if the decoder vector is ready.
9187 (ENCODE_CHAR): Check if the encoder char-table is ready.
9188 (maybe_unify_char): Extern it.
9189
9190 * charset.c (Vchar_unified_charset_table): Delete it.
9191 (inhibit_load_charset_map): New variable.
9192 (temp_charset_work): New variable.
9193 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9194 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9195 New macros.
9196 (load_charset_map): Meaning of control_flag changed. If
9197 inhibit_load_charset_map is nonzero, setup a table in
9198 temp_charset_work.
9199 (load_charset): New argument control_flag.
9200 (map_charset_for_dump): New function.
9201 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9202 map_charset_for_dump.
9203 (Fdefine_charset_internal): If the charset method is MAP, load
9204 mapping tables by calling load_charset.
9205 (Funify_charset): Don't load a mapping table but directly set
9206 Vchar_unify_table.
9207 (maybe_unify_char): New function.
9208 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9209 Handle the case of inhibit_load_charset_map being nonzero.
9210 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9211 Handle the case of inhibit_load_charset_map being nonzero.
9212 (Fclear_charset_maps): Just free temp_charset_work.
9213 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9214 variable.
9215
9216 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9217 change of char_table_ref_and_range.
9218 (char_table_ref_and_range): Change the meaning of argument FROM
9219 and TO. Now the caller must provide initial values for *FROM
9220 and *TO.
9221
9222 * fontset.c (fontset_add): Adjusted for the change of
9223 char_table_ref_and_range.
9224 (fontset_get_font_group): Likewise.
9225 (Ffontset_info): Likewise.
9226
9227 * keymap.c (describe_vector): Adjusted for the change of
9228 char_table_ref_and_range. For char-table, put boundary between
9229 non-ASCII and 8-bit characters.
9230
9231 * print.c (print_object): For bool-vector, delete unnecessary
9232 check of ASCII_BYTE_P.
9233
9196133b
JR
92342008-11-26 Jason Rumney <jasonr@gnu.org>
9235
9236 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9237 leading in font height. (Bug#879)
9196133b 9238
9f688acf
GM
92392008-11-26 Glenn Morris <rgm@gnu.org>
9240
9241 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9242 redefinition with ifdef. (Bug#1383)
9243
90d19aff
AR
92442008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9245
9246 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9247
4ccfa1c0 92482008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9249
9250 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9251 New EmacsView methods.
9252 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9253 Fixes bug #1048,1357,1414.
9254
92552008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9256
9257 Fix bug #1362.
9258 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9259 is not an indexed color.
9260 * nsterm.m (free_indexed_color): Add argument checking.
9261 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9262
e7d5ecb3
CY
92632008-11-24 Chong Yidong <cyd@stupidchicken.com>
9264
9265 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9266 Document confirm-after-completion value for
9267 minibuffer-completion-confirm.
9268
c285743c
JR
92692008-11-24 Jason Rumney <jasonr@gnu.org>
9270
9271 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9272 warning.
9273
b0857706
JR
92742008-11-23 Jason Rumney <jasonr@gnu.org>
9275
9276 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9277 restored before returning.
9278
9279 * w32font.c (check_face_name): New function.
9280 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9281 fonts. (Bug#642)
b0857706 9282
ee50ff07
MR
92832008-11-22 Martin Rudalics <rudalics@gmx.at>
9284
9285 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9286 confirm-nonexistent-file-or-buffer in doc-string.
9287
b8ff72fa
SM
92882008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9289
9290 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9291 Fix copy/paste typo. Add checks.
9292
cee53ed4
KH
92932008-11-21 Kenichi Handa <handa@m17n.org>
9294
9295 * coding.c (detect_coding_iso_2022): Reject invalid composition
9296 sequence.
9297 (DECODE_COMPOSITION_START): If the current source is the last
9298 block, and the current composition doesn't end, regard this
9299 sequence as invalid.
9300 (decode_coding_iso_2022): Handle invalid composition sequence.
9301
f6ef1e65
MR
93022008-11-20 Martin Rudalics <rudalics@gmx.at>
9303
9304 * window.c (coordinates_in_window): Don't return
9305 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9306 line when the window is not the rightmost one. (Bug#1372)
9307
e08b1705
MR
93082008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9309
9310 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9311
ad98e89f
EZ
93122008-11-15 Eli Zaretskii <eliz@gnu.org>
9313
9314 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9315 and bright_bg if noninteractive is non-zero.
9316
fb098a4b
CY
93172008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9318
9319 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9320 x_draw_glyph_string_background.
9321
9322 * w32term.c (x_draw_glyph_string): Likewise.
9323
ce952b6e
CY
93242008-11-15 Chong Yidong <cyd@stupidchicken.com>
9325
9326 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9327 the next glyph string once past the overhang width.
9328
9329 * nsterm.m (ns_draw_glyph_string): Likewise.
9330
9331 * w32term.c (x_draw_glyph_string): Likewise.
9332
26ea7079
CY
93332008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9334
9335 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9336 double file close.
9337
1c33c906
MR
93382008-11-14 Martin Rudalics <rudalics@gmx.at>
9339
9340 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9341 dedicated status of window before attempting to display another
9342 buffer in it.
9343
8fc29035
JB
93442008-11-14 Juanma Barranquero <lekktu@gmail.com>
9345
9346 * msdos.c (Fmsdos_long_file_names):
9347 (syms_of_msdos) <dos-unsupported-char-glyph>:
9348 * dosfns.c (Fint86): Fix typos in docstrings.
9349
55fb4286
EZ
93502008-11-14 Eli Zaretskii <eliz@gnu.org>
9351
9352 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9353
3fda0315
KY
93542008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9355
9356 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9357
7e849c17
CY
93582008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9359
9360 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9361
9362 * frame.h: Negative alpha means "don't touch".
9363
9364 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9365
9366 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9367
b9fd67bd
DN
93682008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9369
9370 * hftctl.c:
9371 * chpdef.h:
9372 * acldef.h: Remove files used only for systems no longer supported.
9373
9374 * Makefile.in: Fix .o alphabetical ordering.
9375 (hftctl.o): Remove dependency, file removed.
9376 (keymap.o, print.o): Depend on charset.h.
9377
d5998e03
KH
93782008-11-10 Kenichi Handa <handa@m17n.org>
9379
2ae37cf0 9380 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9381
be70e183
CY
93822008-11-08 Chong Yidong <cyd@stupidchicken.com>
9383
9384 * dired.c (file_name_completion): If completion_ignore_case is
9385 enabled, ignore case when checking completion-regexp-list.
9386
7cf94eac
EZ
93872008-11-08 Eli Zaretskii <eliz@gnu.org>
9388
9389 * vm-limit.c (get_lim_data): Fix last change.
9390
ee107a89
KH
93912008-11-08 Kenichi Handa <handa@m17n.org>
9392
9393 * character.c (Fget_byte): New function.
9394 (syms_of_character): Defsubr Fget_byte.
9395
5fd15622
CY
93962008-11-07 Chong Yidong <cyd@stupidchicken.com>
9397
9398 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9399 cursor position is valid after scrolling.
9400
13d62fad
JB
94012008-11-06 Juanma Barranquero <lekktu@gmail.com>
9402
9403 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9404
a1dd2936
GM
94052008-11-06 Glenn Morris <rgm@gnu.org>
9406
9407 * xterm.c (handle_one_xevent): Don't let popup menus cause
9408 mouse-autoselect-window related window switching. (Bug#1261)
9409
860cd236
CY
94102008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9411
9412 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9413
653a3150
AS
94142008-11-04 Andreas Schwab <schwab@suse.de>
9415
9416 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9417
870f5cac
CY
94182008-11-03 Chong Yidong <cyd@stupidchicken.com>
9419
9420 * xfns.c (Fx_wm_set_size_hint): New function.
9421
1e02f3cb
MR
94222008-11-03 Martin Rudalics <rudalics@gmx.at>
9423
9424 * textprop.c (Fprevious_single_char_property_change): Return 0
9425 when there's no change in a string. (Bug#1301)
9426
e630dfc6
MR
94272008-11-02 Martin Rudalics <rudalics@gmx.at>
9428
9429 * frame.c (do_switch_frame): New argument NORECORD passed to
9430 Fselect_window.
9431 (Fselect_frame): New argument NORECORD passed to
9432 do_switch_frame.
9433 (Fset_frame_selected_window): New argument NORECORD passed to
9434 Fselect_frame.
9435 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9436 in call of do_switch_frame.
9437 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9438 Handle NORECORD argument in call of Fselect_frame.
9439 * lisp.h (do_switch_frame, Fselect_frame)
9440 (Fset_frame_selected_window): Adjust declarations.
9441 * window.c (select_frame_norecord): New function.
9442 (run_window_configuration_change_hook): Use it and call
9443 Fselect_frame with NORECORD set.
9444 (Fselect_window): Pass NORECORD to Fselect_frame.
9445 (Fset_window_configuration): Handle NORECORD argument in call of
9446 do_switch_frame.
9447 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9448 Fset_frame_selected_window.
9449 * keyboard.c (command_loop_1): Handle NORECORD in call of
9450 Fselect_frame (currently ifdefd).
9451
9020b223
GM
94522008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9453
9454 * emacs.c (USAGE2): Untabify.
9455
793ffee8
SM
94562008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9457
9458 * composite.c (fill_gstring_header): Fix copy/paste typo.
9459
ab6d1131
MR
94602008-10-31 Martin Rudalics <rudalics@gmx.at>
9461
9462 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9463 (Fother_window): Rename argument and rewrite doc-string.
9464 (select_window_norecord): Fix return value. (Bug#1276)
9465
601a9cf1
JB
94662008-10-30 Juanma Barranquero <lekktu@gmail.com>
9467
9468 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9469 new frames overriding foreground for tooltips. Based on similar patch
9470 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9471
813b0652
CY
94722008-10-29 Chong Yidong <cyd@stupidchicken.com>
9473
9474 * emacs.c (Fdaemon_initialized): Initialize nfd.
9475
4414f58f
MR
94762008-10-29 Martin Rudalics <rudalics@gmx.at>
9477
9478 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9479 (Fwindow_text_height): Clarify doc-strings.
9480 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9481 doc-string of window-scroll-functions.
9482
ecdcaa09
RS
94832008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9484
9485 * category.c (syms_of_category): Fix typo in docstring.
9486
23fe745a
JB
94872008-10-28 Juanma Barranquero <lekktu@gmail.com>
9488
9489 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9490 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9491 Fix typos in docstrings.
9492
ff808935
DN
94932008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9494
9495 * emacs.c (daemon_pipe): Make non-static.
9496 (IS_DAEMON): Move definition ...
9497 * lisp.h (IS_DAEMON): ... here.
9498 (daemon_pipe): Declare.
9499 (is_daemon): Remove.
9500 * dispnew.c (init_display): Use IS_DAEMON.
9501
fc012771
SM
95022008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9503
9504 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
9505 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
9506
9507 * emacs.c (is_daemon): Remove.
9508 (main): Don't set is_daemon.
9509 (IS_DAEMON): New macro.
9510 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 9511 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
9512 parent exits.
9513 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
9514
d8bdbe6f
CY
95152008-10-27 Chong Yidong <cyd@stupidchicken.com>
9516
d1a072bf
CY
9517 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
9518 over-sized glyph, draw it with the default glyph width.
9519
e2e325aa
CY
9520 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9521 glyph, draw it with the default glyph width.
9522
9523 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9524 glyph, draw it with the default glyph width.
9525
d8bdbe6f
CY
9526 * xdisp.c (try_scrolling): When computing the distance from the
9527 scroll margin to PT, try moving some distance past the window
9528 bottom before giving up.
9529
7bfac547
MR
95302008-10-27 Martin Rudalics <rudalics@gmx.at>
9531
9532 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
9533 (Fset_window_buffer): Explain in doc-string that a window can be
9534 "strongly" dedicated to its buffer.
9535
4ff029f6
DN
95362008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
9537
9538 * emacs.c (daemon_name): New variable.
9539 (main): Deal with --daemon=SERVER_NAME.
9540 (Fdaemonp): Return a name if one was passed to --daemon.
9541
5790ef40
DN
95422008-10-26 Romain Francoise <romain@orebokech.com>
9543
f9bd0df9 9544 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
9545 (main): Create a pipe before forking, make the parent exit only after
9546 the child has closed its end of the pipe. Move closing the
9547 descriptors ...
9548 (Fdaemon_initialized): ... here. New function.
9549
f5385255
SM
95502008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9551
4d632321
SM
9552 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9553 the previous unoptimized table.
9554
f5385255
SM
9555 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9556 the distinction between non-nil and non-t value of `dedicated'.
9557
6c56a0f3
CY
95582008-10-25 Chong Yidong <cyd@stupidchicken.com>
9559
9560 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 9561 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 9562
fec89261
MR
95632008-10-25 Martin Rudalics <rudalics@gmx.at>
9564
9565 * window.c (Fget_buffer_window, Fdelete_windows_on)
9566 (Freplace_buffer_in_windows): Make buffer argument optional and
9567 rename to buffer_or_name.
9568
34fcddd0
CY
95692008-10-24 Chong Yidong <cyd@stupidchicken.com>
9570
f5385255
SM
9571 * xdisp.c (handle_single_display_spec, handle_display_prop):
9572 Undo 2005-05-16 change.
34fcddd0
CY
9573 (handle_stop): Pop iterator if it's loaded with an empty string.
9574 (get_overlay_strings_1): Don't save iterator if it's loaded with
9575 an empty string (bug#1201).
9576
064766f2
KH
95772008-10-24 Kenichi Handa <handa@m17n.org>
9578
9579 * ftfont.c (ftfont_otf_features): Fix previous change.
9580 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9581 calling ftfont_otf_features.
9582
f9bd0df9 95832008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
9584
9585 * font.c (font_match_p): Fix for the case that a vector of
9586 characters is in script-representative-chars.
9587
1dae9197
MA
95882008-10-24 Michael Albinus <michael.albinus@gmx.de>
9589
9590 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 9591 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
9592 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9593 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 9594 macro. (Bug#1186)
1dae9197 9595
f9bd0df9 95962008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
9597
9598 * s/sol2-10.h: New file.
9599
878a4584
JB
96002008-10-23 Juanma Barranquero <lekktu@gmail.com>
9601
9602 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9603 poor beast has survived 9+ years and the jump from xterm.c!).
9604
cd265ca6
MR
96052008-10-23 Martin Rudalics <rudalics@gmx.at>
9606
9607 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9608 Reword doc-string.
f5385255 9609 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 9610
472a4dc9
JB
96112008-10-23 Juanma Barranquero <lekktu@gmail.com>
9612
9613 * character.c (syms_of_character) <script-representative-chars>:
9614 <unicode-category-table>: Doc fixes.
9615
159bd5a2
NF
96162008-10-23 Noah Friedman <friedman@splode.com>
9617
9618 * coding.c (make_conversion_work_buffer): Check that
9619 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9620 Fget_buffer_create.
9621
49f9c344
KH
96222008-10-23 Kenichi Handa <handa@m17n.org>
9623
9624 * font.c (font_add_log): Check the values of extra properties.
9625
12bb3111
MR
96262008-10-22 Martin Rudalics <rudalics@gmx.at>
9627
9628 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9629 Reword doc-string.
9630 (Fset_window_parameter): Use NILP.
9631 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 9632 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 9633
bbeb4e99
JB
96342008-10-22 Juanma Barranquero <lekktu@gmail.com>
9635
9636 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9637
96382008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
9639
9640 * nsfns.m (ns_appkit_version): New function.
9641 (x-server-version): Use it.
9642 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
9643 (x-server-vendor): Don't check_ns().
9644
9645 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
9646
a9b555d3
JB
96472008-10-22 Juanma Barranquero <lekktu@gmail.com>
9648
9649 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9650 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
9651
4626499f
KH
96522008-10-22 Kenichi Handa <handa@m17n.org>
9653
e3681952
KH
9654 * syntax.c (scan_words): Call word_boundary_p instead of comparing
9655 scripts.
9656
4626499f
KH
9657 * category.c (word_boundary_p): Check scripts instead of charset.
9658 Handle nil value in word-separating-categories and
9659 word-combining-categories.
9660 (syms_of_category): Fix docstrings of word-separating-categories
9661 and word-combining-categories.
9662
1560f91a
EZ
96632008-10-21 Eli Zaretskii <eliz@gnu.org>
9664
9665 * coding.c (Fencode_coding_region, Fdecode_coding_region)
9666 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
9667
f4668441
MR
96682008-10-21 Martin Rudalics <rudalics@gmx.at>
9669
9670 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
9671 Rename arg "buffer" to "buffer_or_name".
9672 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
9673 it optional.
9674 (no_switch_window): Remove since the return value is not used.
a9b555d3 9675 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
9676 Consider window as dedicated when Fwindow_dedicated_p returns a
9677 non-nil value.
9678 * lisp.h: Remove prototype for no_switch_window.
9679
fd75ddb2
JD
96802008-10-21 Jan Djärv <jan.h.d@swipnet.se>
9681
9682 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 9683 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 9684
07295713
KH
96852008-10-21 Kenichi Handa <handa@m17n.org>
9686
9687 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
9688 check Vlatin_extra_code_table.
9689
712adc82
EZ
96902008-10-20 Eli Zaretskii <eliz@gnu.org>
9691
9692 * fileio.c (Fset_file_modes): Doc fix.
9693
f549eb0b
MA
96942008-10-19 Michael Albinus <michael.albinus@gmx.de>
9695
9696 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
9697 in arrays.
9698
aac0c6e3
MR
96992008-10-19 Martin Rudalics <rudalics@gmx.at>
9700
9701 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9702 Mention kill-buffer in doc-string.
9703 (Fset_window_buffer): Reinsert tem check removed in last commit.
9704 (Fenlarge_window, Fshrink_window): Have argument names and
9705 doc-string follow Elisp manual more closely.
9706
97072008-10-18 Eli Zaretskii <eliz@gnu.org>
9708
9709 * fileio.c (Fset_file_modes): Doc fix.
9710
97112008-10-18 Martin Rudalics <rudalics@gmx.at>
9712
9713 * window.c (Fwindow_width, Fset_window_start)
9714 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
9715 (Fdelete_windows_on, Freplace_buffer_in_windows):
9716 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
9717 (Fwindow_dedicated_p): Make window argument optional.
9718 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
9719 (Fset_window_buffer): Respect any non-nil dedicated value for
9720 window. Rename "buffer" argument to "buffer_or_name".
9721
97222008-10-18 Ulrich Mueller <ulm@gentoo.org>
9723
9724 * m/sh3.h: New file, machine description for SuperH.
9725
97262008-10-17 Martin Rudalics <rudalics@gmx.at>
9727
9728 * window.c (Fsplit_window): Rename arg horflag to horizontal.
9729
97302008-10-17 Kenichi Handa <handa@m17n.org>
9731
9732 * ftfont.c (ftfont_otf_features): Fix indexing
9733 gsub_gpos->FeatureList.Feature. Check the validity of indices.
9734
97352008-10-16 Magnus Henoch <mange@freemail.hu>
9736
9737 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
9738 (Fdbus_call_method_asynchronously): Ditto.
9739 This change makes C-h f display the argument list.
9740
97412008-10-16 Chong Yidong <cyd@stupidchicken.com>
9742
9743 * fileio.c (Fexpand_file_name): Doc fix.
9744
9745 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
9746 of :foreground and :background equivalent to unspecified (20.x
9747 compatibility).
9748
97492008-10-15 Eli Zaretskii <eliz@gnu.org>
9750
9751 * buffer.c (syms_of_buffer): Doc fix.
9752
97532008-10-14 Kenichi Handa <handa@m17n.org>
9754
9755 * font.c (font_clear_prop): When clearing font width, clear the
9756 average width field too.
9757
97582008-10-12 Andreas Schwab <schwab@suse.de>
9759
9760 * ftfont.c (ftfont_shape_by_flt): Make static.
9761 * ftfont.h (ftfont_shape_by_flt): Don't declare.
9762
9763 * font.c: Don't include <m17n-flt.h>.
9764
97652008-10-10 Eli Zaretskii <eliz@gnu.org>
9766
9767 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
9768
97692008-10-09 Eli Zaretskii <eliz@gnu.org>
9770
9771 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
9772 away code.
9773
97742008-10-09 Chong Yidong <cyd@stupidchicken.com>
9775
9776 * dispnew.c (update_text_area): Avoid looping due to large glyph
9777 overhangs (bug#1070).
9778
97792008-10-09 Kenichi Handa <handa@m17n.org>
9780
9781 * fontset.c (face_for_char): If face->fontset is negative, just
9782 return ascii_face.
9783
f5385255
SM
9784 * font.c (font_delete_unmatched): Fix previous change.
9785 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
9786
97872008-10-09 Martin Rudalics <rudalics@gmx.at>
9788
9789 * frame.c (Fraise_frame): On text-only terminals select frame in
9790 order to make it visible. (Bug#1061)
9791
97922008-10-08 Chong Yidong <cyd@stupidchicken.com>
9793
9794 * fontset.c (fontset_find_font): Check frame validity.
9795
97962008-10-07 Chong Yidong <cyd@stupidchicken.com>
9797
a9b555d3 9798 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
9799 (xg_display_close): Allow Emacs to close all displays (bug#985).
9800
98012008-10-06 Andreas Schwab <schwab@suse.de>
9802
f5385255 9803 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
9804
98052008-10-06 Chong Yidong <cyd@stupidchicken.com>
9806
f5385255 9807 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 9808
a9b555d3 9809 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
9810
9811 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9812 during initialization.
9813
98142008-10-04 Eli Zaretskii <eliz@gnu.org>
9815
9816 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9817 whole thing on MSDOS frames as well as on a TTY.
9818
9819 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9820 well as for TTY.
9821 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9822 well as on a TTY.
9823
9824 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9825 as well as for TTY.
9826
9827 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9828
9829 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9830 MSDOS frames as well.
9831
98322008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9833
9834 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9835 correct arguments.
b71ac3dd 9836 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
9837
98382008-10-03 Glenn Morris <rgm@gnu.org>
9839
9840 * emacs.c (USAGE1): Add --daemon.
9841
98422008-10-02 Eli Zaretskii <eliz@gnu.org>
9843
9844 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9845 100, so it's in percents as advertised.
9846
98472008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9848
9849 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9850 (ns_output.current_cursor, ns_output.desired_cursor)
9851 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9852 (FRAME_NEW_CURSOR_COLOR): Remove.
9853
9854 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 9855 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
9856 enumeration (HOLLOW_BOX_CURSOR, etc.).
9857
9858 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9859 (draw_window_cursor): Simplify code.
f5385255
SM
9860 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9861 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 9862 updates manually.
a9b555d3
JB
9863 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9864 Use core Emacs cursor types.
aac0c6e3 9865
b8ff72fa 9866 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
9867
98682008-10-02 Martin Rudalics <rudalics@gmx.at>
9869
9870 * process.c (Faccept_process_output): Fix doc-string.
9871
98722008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9873
9874 * gmalloc.c (__sbrk): Also define for uClibc.
9875
9876 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9877 for uClibc.
9878
98792008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9880
9881 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9882 styles.
9883 (nsfont_open): Reenable the cache.
9884
98852008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9886
9887 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9888 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9889
98902008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9891
9892 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9893 a suspended terminal.
9894
98952008-09-30 Michael Albinus <michael.albinus@gmx.de>
9896
9897 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9898
98992008-09-30 Eli Zaretskii <eliz@gnu.org>
9900
9901 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9902
99032008-09-30 Chong Yidong <cyd@stupidchicken.com>
9904
9905 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9906 in a continued line coincides with a line beginning.
9907
99082008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9909
9910 * nsfont.m (nsfont_trait_distance): Fix bug.
9911 (nsfont_list): Return a list rather than a vector (syncs with Handa
9912 changes of 2008-05-14).
9913 (nsfont_open): Improve logging.
9914
99152008-09-29 Andreas Schwab <schwab@suse.de>
9916
9917 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9918
99192008-09-28 Martin Rudalics <rudalics@gmx.at>
9920
9921 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9922 name as char-resolve-modifiers.
9923 Reported by: Markus Triska <markus.triska@gmx.at>
9924
99252008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9926
9927 * dispnew.c (init_display): Return earlier when running as a daemon.
9928
99292008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9930
9931 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9932
99332008-09-27 Eli Zaretskii <eliz@gnu.org>
9934
9935 * composite.c (Fcomposition_get_gstring)
9936 (Fcompose_region_internal, Fcompose_string_internal)
9937 (Ffind_composition_internal): Doc fix.
9938 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9939 (syms_of_composite) <auto-composition-function>: Doc fix.
9940 (syms_of_composite) <composition-function-table>: Doc fix.
9941
99422008-09-25 Chong Yidong <cyd@stupidchicken.com>
9943
9944 * search.c (wordify): New argument for lax word-ends.
9945 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9946
99472008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9948
9949 * lisp.h (is_daemon): Declare.
9950 * dispnew.c (init_display): Do not try to initialize the terminal
9951 when running as a daemon.
9952
99532008-09-22 Chong Yidong <cyd@stupidchicken.com>
9954
9955 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9956 x_display_pixel_height.
9957
99582008-09-22 Martin Rudalics <rudalics@gmx.at>
9959
9960 * undo.c (record_point): Don't call Fundo_boundary for first
9961 change. (Bug#731)
9962
99632008-09-22 Juanma Barranquero <lekktu@gmail.com>
9964
9965 * emacs.c (Fdaemonp): Doc fix.
9966
99672008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9968
9969 * emacs.c (main): Place #ifdef in the proper place.
9970
99712008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9972
9973 * emacs.c (standard_args): Add --daemon.
9974 (main): Disconnect from the terminal when --daemon is passed.
9975 (is_daemon): New variable.
9976 (Fdaemonp): New function.
9977 (syms_of_emacs): Defsubr it.
9978
99792008-09-20 Chong Yidong <cyd@stupidchicken.com>
9980
9981 * xdisp.c (get_next_display_element): Handle string display
9982 correctly when checking for the end of a box run.
9983
99842008-09-20 Glenn Morris <rgm@gnu.org>
9985
9986 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9987 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9988 (Frename_file): Avoid copying to trash if a rename involves
9989 a delete. (Bug#964).
9990
99912008-09-20 Eli Zaretskii <eliz@gnu.org>
9992
9993 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9994 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9995 frames as well as termcap frames.
9996 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
9997 get_named_tty.
9998
99992008-09-19 Eli Zaretskii <eliz@gnu.org>
10000
10001 * process.c (procfs_system_process_attributes): Fix cmdline in
10002 case /proc/PID/cmdline is empty.
10003
10004 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10005 x_display_pixel_height.
10006
100072008-09-19 Juanma Barranquero <lekktu@gmail.com>
10008
10009 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10010
10011 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10012 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10013
100142008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10015
10016 * dispextern.h (struct it): Move line_wrap away from the middle of
10017 bitfields. Move voffset in struct iterator_stack_entry after the
10018 bitfields. Move tab_width near after another short.
10019
100202008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10021
10022 * frame.h (struct frame): Move alpha from the middle of bitfields.
10023
10024 * window.h (struct window): Move frozen_window_start_p after the
10025 rest of the bitfields to reduce padding.
10026
100272008-09-18 Chong Yidong <cyd@stupidchicken.com>
10028
10029 * xterm.h (x_display_info): Remove `height' and `width' members.
10030
10031 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10032
10033 * w32term.h (w32_display_info): Remove `height', `width',
10034 `height_in', and `width_in' members.
10035
b8ff72fa
SM
10036 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10037 New functions.
aac0c6e3
MR
10038 (x_calc_absolute_position): Use them.
10039 (x_term_init): Omit removed `height' and `width' members.
10040
b8ff72fa
SM
10041 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10042 New functions.
aac0c6e3
MR
10043 (w32_read_socket, x_calc_absolute_position): Use them.
10044 (w32_initialize_display_info, w32_term_init): Omit removed members
10045 of w32_display_info.
10046
b8ff72fa
SM
10047 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10048 New functions.
10049 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10050
b8ff72fa
SM
10051 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10052 New functions.
aac0c6e3
MR
10053 (x_calc_absolute_position): Use them.
10054 (x_term_init): Omit removed `height' and `width' members.
10055
10056 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10057 (compute_tip_xy):
10058 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10059 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10060 x_display_pixel_width.
10061
100622008-09-18 Kenichi Handa <handa@m17n.org>
10063
10064 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10065 (composition_compute_stop_pos): Fix handling of static composition.
10066 (Fcomposition_get_gstring): Check FROM and TO at first.
10067
100682008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10069
46e722a9 10070 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10071 mixup (YAILOM).
10072
100732008-09-17 Chong Yidong <cyd@stupidchicken.com>
10074
10075 * indent.c (Fvertical_motion): Use position reported by iterator
10076 instead of PT for determining screen motion (bug#943).
10077
100782008-09-17 Romain Francoise <romain@orebokech.com>
10079
10080 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10081
100822008-09-17 Kenichi Handa <handa@m17n.org>
10083
10084 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10085
10086 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10087 if necessary.
10088
100892008-09-16 Kenichi Handa <handa@m17n.org>
10090
10091 * coding.c (make_conversion_work_buffer): Avoid calling
10092 Fget_buffer_create if it is not necessary.
10093
100942008-09-15 Martin Rudalics <rudalics@gmx.at>
10095
10096 * window.c (Fselect_window): Don't update window_select_count and
10097 use_time when norecord is not nil.
10098
100992008-09-14 Kenichi Handa <handa@m17n.org>
10100
10101 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10102 specpdl_ptr.
10103
101042008-09-12 Kenichi Handa <handa@m17n.org>
10105
10106 * indent.c (scan_for_column): Don't handle automatic composition
10107 if the current buffer is not associated with a window.
10108
10109 * composite.c (composition_reseat_it): If the current buffer is
10110 not associated with a window, ignore the automatic composition.
10111 (find_automatic_composition): Likewise.
10112
101132008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10114
10115 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10116 (Fgpm_mouse_stop): Use it.
10117 * termhooks.h (close_gpm): Declare.
10118 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10119 connection if Gpm_GetEvent fails.
10120
10121 * window.c (set_window_buffer): Always preserve current-buffer.
10122
101232008-09-12 Glenn Morris <rgm@gnu.org>
10124
10125 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10126
101272008-09-11 Glenn Morris <rgm@gnu.org>
10128
10129 * charset.c (charset-map-path): Doc fix.
10130
101312008-09-10 Kenichi Handa <handa@m17n.org>
10132
10133 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10134
10135 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10136 compose a grapheme cluster with the preceding base glyph.
10137
10138 * composite.c (composition_compute_stop_pos): Fix previous change.
10139 Reset cmp_it->id to -1 at first.
10140
101412008-09-10 Glenn Morris <rgm@gnu.org>
10142
10143 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10144
101452008-09-09 Chong Yidong <cyd@stupidchicken.com>
10146
10147 * keyboard.c (read_key_sequence): Reapply translation maps when
10148 switching keyboards.
10149
101502008-09-09 Kenichi Handa <handa@m17n.org>
10151
10152 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10153 characters.
10154
10155 * composite.c (FORWARD_CHAR): Fix calculation
10156 of (POSITION).pos_byte.
10157 (composition_compute_stop_pos): Limit the search of composition to
10158 at most 500 characters ahead. If we reach the limit or find a
10159 newline, set cmp_it->ch to -2 and return 0.
10160 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10161
101622008-09-08 Kenichi Handa <handa@m17n.org>
10163
10164 * indent.c (Fvertical_motion): Be sure to set
10165 it_overshoot_expected if it.cmp_it.id is non-negative.
10166
101672008-09-07 Andreas Schwab <schwab@suse.de>
10168
10169 * callproc.c (Fcall_process): Don't hold references to string data
10170 across garbage collection. Move initialisation of new_argv down
10171 to avoid compiler bug.
10172
101732008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10174
10175 * process.c (Fsystem_process_attributes): Doc fix.
10176
101772008-09-07 Chong Yidong <cyd@stupidchicken.com>
10178
10179 * callproc.c (Fcall_process): Canonicalize current directory name.
10180
10181 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10182 iterator advances to the next line if the current line ends in a
10183 continued tab.
10184
101852008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10186
10187 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10188 member to point to cmp_from.
10189
10190 * xdisp.c: Doc fix for references to gidx data member.
10191
101922008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10193
10194 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10195
101962008-09-07 Kenichi Handa <handa@m17n.org>
10197
10198 * composite.c (FORWARD_CHAR): Check STOP after
10199 incrementing (POSITION).pos.
10200
102012008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10202
10203 * process.c (Fsystem_process_attributes): Doc fix.
10204
102052008-09-06 Chong Yidong <cyd@stupidchicken.com>
10206
10207 * keyboard.c (Ftop_level): Doc fix.
10208
102092008-09-06 Eli Zaretskii <eliz@gnu.org>
10210
10211 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10212 minibuffer, don't let lower part of menu invade the echo area.
10213
10214 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10215 "char *q" to access menu text and advance through it. Revert the
10216 change that displayed ">" instead of ASCII character 0x10.
10217
102182008-09-05 Eli Zaretskii <eliz@gnu.org>
10219
10220 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10221 toggle boxes and radio buttons on MS-DOS as well.
10222
102232008-09-05 Kenichi Handa <handa@m17n.org>
10224
10225 * composite.c (autocmp_chars): Check lookback count.
10226 (composition_compute_stop_pos): Set cmp_it->lookback.
10227 (composition_reseat_it): Check lookback count.
10228 (struct position_record): New struct.
10229 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10230 (find_automatic_composition): New function.
10231 (composition_adjust_point): Use find_automatic_composition.
10232
10233 * dispextern.h (struct composition_it): New member lookback.
10234
102352008-09-02 Chong Yidong <cyd@stupidchicken.com>
10236
10237 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10238 if moving by a single line.
10239
102402008-09-02 Andreas Schwab <schwab@suse.de>
10241
10242 * xterm.c (x_delete_display): Fix merge error.
10243
10244 * fileio.c (Fexpand_file_name): Remove unused variables.
10245
102462008-09-02 Eli Zaretskii <eliz@gnu.org>
10247
10248 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10249 storage on all platforms, not just on DOS_NT.
10250
102512008-09-02 Jason Rumney <jasonr@gnu.org>
10252
b8ff72fa
SM
10253 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10254 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10255
102562008-09-01 Chong Yidong <cyd@stupidchicken.com>
10257
10258 * xfaces.c (Finternal_set_alternative_font_family_alist)
10259 (Finternal_set_alternative_font_registry_alist): Properly copy
10260 entire alist structure.
10261
102622008-09-01 Kenichi Handa <handa@m17n.org>
10263
d66c0241 10264 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10265 representative chars of the script is a vector.
d66c0241
JB
10266 (ftfont_list): Handle the case where the representative chars of
10267 the script is a vector.
aac0c6e3
MR
10268
10269 * character.c (syms_of_character): Docstring of
10270 script-representative-chars fixed.
10271
102722008-08-31 Eli Zaretskii <eliz@gnu.org>
10273
10274 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10275 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10276 the menu. Allocate larger buffer for `text', to account for
10277 possible ^C characters.
10278
102792008-08-31 Martin Rudalics <rudalics@gmx.at>
10280
10281 * xdisp.c (prepare_menu_bars): Don't call
10282 Vwindow_size_change_functions with arg Qt.
10283
102842008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10285
10286 * font.h (font_range):
10287 * fileio.c (report_file_error):
46e722a9
SM
10288 * composite.c (composition_update_it): Yet another int/Lisp_Object
10289 mixup (YAILOM).
aac0c6e3
MR
10290
102912008-08-30 Glenn Morris <rgm@gnu.org>
10292
10293 * data.c (Fmake_variable_frame_local): Doc fix.
10294
10295 * frame.c (Fmodify_frame_parameters): Doc fix.
10296
102972008-08-30 Eli Zaretskii <eliz@gnu.org>
10298
10299 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10300 needed by GetTokenInformation.
10301 (w32_system_process_attributes): Check return values of all system
10302 APIs.
10303
10304 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10305 only when the state changes.
10306 (IT_update_begin, IT_update_end): Add termscript trace.
10307
10308 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10309 clipboard is unavailable. Set dst to NULL if it doesn't point to
10310 malloc'ed data.
10311 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10312 passing random values to xfree.
10313
10314 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10315 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10316
103172008-08-29 Jason Rumney <jasonr@gnu.org>
10318
10319 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10320
103212008-08-29 Eli Zaretskii <eliz@gnu.org>
10322
10323 * composite.c (fill_gstring_body): Avoid compiler warnings.
10324
10325 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10326 LGLYPH_SET_CODE to avoid compiler warnings.
10327
2ae37cf0 10328 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
10329
10330 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10331
10332 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10333 LGLYPH_SET_CODE.
10334
103352008-08-29 Kenichi Handa <handa@m17n.org>
10336
10337 * fileio.c (report_file_error): Don't downcase the first character
10338 of errstring if it is still unibyte.
10339
103402008-08-29 Kenichi Handa <handa@m17n.org>
10341
10342 These changes are to re-implement the automatic composition so
10343 that it doesn't use text properties.
10344
10345 * Makefile.in (ftfont.o): Depend on composite.h.
10346 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10347
10348 * character.h (Vunicode_category_table): Extern it.
10349
10350 * character.c (Vunicode_category_table): New variable.
10351 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10352
10353 * chartab.c (optimize_sub_char_table): Perform more greedy
10354 optimization.
10355
b8ff72fa
SM
10356 * composite.h (enum composition_method):
10357 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10358 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10359 (Vcomposition_function_table): Extern it.
10360 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10361 (composition_gstring_put_cache, composition_gstring_from_id)
10362 (composition_gstring_p, composition_gstring_width)
10363 (composition_compute_stop_pos, composition_reseat_it)
10364 (composition_update_it, composition_adjust_point): Extern them.
10365 (Fcomposition_get_gstring): EXFUN it.
10366
d66c0241 10367 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10368 (Vcomposition_function_table)
10369 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10370 (gstring_hash_table, gstring_work, gstring_work_headers):
10371 New variables.
aac0c6e3
MR
10372 (gstring_lookup_cache, composition_gstring_put_cache)
10373 (composition_gstring_from_id, composition_gstring_p)
10374 (composition_gstring_width, fill_gstring_header)
10375 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10376 (composition_reseat_it, composition_update_it)
b8ff72fa 10377 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10378 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10379 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10380 Defsubr composition_get_gstring.
aac0c6e3
MR
10381
10382 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10383 cmp_id.
10384 (struct glyph_string): Delete the member gidx. New members
10385 cmp_id, cmp_from, and cmp_to.
10386 (enum it_method): Delete GET_FROM_COMPOSITION.
10387 (struct composition_it): New struct.
10388 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10389 Delete c, len, cmp_id, cmp_len in u.comp.
10390
10391 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 10392 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 10393 (enum lglyph_indices): Likewise.
b8ff72fa 10394 (font_range): Adjust extern.
aac0c6e3
MR
10395 (font_fill_lglyph_metrics): Extern it.
10396
10397 * font.c (QCf): New variable.
10398 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10399 (font_prepare_composition): Delete this function.
10400 (font_range): Type and arguments changed.
10401 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10402 (font_fill_lglyph_metrics): New function.
b8ff72fa 10403 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 10404 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
10405 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10406 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
10407
10408 * fontset.h (font_for_char): Extern it.
10409
10410 * fontset.c (font_for_char): New function.
10411
10412 * ftfont.c: Include composite.h.
10413 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 10414 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
10415
10416 * indent.c: Include composite.h and dispextern.h.
10417 (check_composition): Delete this function.
10418 (scan_for_column): Handle composition by
10419 composition_compute_stop_pos, composition_reseat_it, and
10420 composition_update_it.
10421 (compute_motion): Likewise.
10422 (Fvertical_motion): Fix checking of composition.
10423
10424 * keyboard.c (adjust_point_for_property): Check composition by
10425 composition_adjust_point.
10426
b8ff72fa 10427 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
10428 struct glyph_string.
10429
b8ff72fa
SM
10430 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10431 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
10432 struct glyph.
10433 (produce_composite_glyph): Likewise.
10434
b8ff72fa
SM
10435 * w32term.c (x_draw_composite_glyph_string_foreground):
10436 Adjust for the change of struct glyph_string.
aac0c6e3
MR
10437 (x_draw_glyph_string): Likewise.
10438
10439 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10440 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10441
10442 * xdisp.c: Include font.h.
10443 (it_props): Delete the entry for Qauto_composed.
10444 (init_iterator): Initialize it->cmp_it.id to -1.
10445 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 10446 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
10447 (handle_auto_composed_prop): Delete it.
10448 (handle_composition_prop): Handle only static composition.
10449 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10450 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 10451 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
10452 (pop_it): Likewise.
10453 (get_next_element): Delete next_element_from_composition.
10454 (CHAR_COMPOSED_P): New macro.
10455 (get_next_display_element): For automatic composition, get a face
10456 from the font in the glyph-string.
10457 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 10458 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
10459 (next_element_from_string): Check if the character at the current
10460 position is composed by CHAR_COMPOSED_P.
10461 (next_element_from_buffer): Likewise.
d66c0241
JB
10462 (next_element_from_composition): Adjust for the change of struct it.
10463 Update it->cmp_it.
b8ff72fa
SM
10464 (dump_glyph): Adjust for the change of struct glyph.
10465 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
10466 it and struct glyph. Don't handle automatic composition here.
10467 (fill_gstring_glyph_string): New function.
10468 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 10469 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
10470 (BUILD_GSTRING_GLYPH_STRING): New macro.
10471 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10472 automatic composition.
b8ff72fa 10473 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 10474 struct glyph.
b8ff72fa 10475 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 10476
b8ff72fa 10477 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
10478 the change of struct glyph_string.
10479 (x_draw_glyph_string): Likewise.
10480
104812008-08-29 Glenn Morris <rgm@gnu.org>
10482
10483 * buffer.c (word-wrap): Doc fix.
10484 * xdisp.c (truncate-partial-width-windows): Doc fix.
10485 Increase default to 50.
10486
104872008-08-29 Chong Yidong <cyd@stupidchicken.com>
10488
10489 * xdisp.c (update_tool_bar_unwind): New function.
10490 (update_tool_bar): Temporarily set selected frame before building
10491 tool-bar items.
10492
104932008-08-28 Michael Albinus <michael.albinus@gmx.de>
10494
10495 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10496 snprintf, respectively.
10497 (xd_append_arg): Convert strings with Fstring_make_unibyte.
10498
104992008-08-28 Chong Yidong <cyd@stupidchicken.com>
10500
10501 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
10502 LDFLAGS to GNUstep CC invocation.
10503
105042008-08-27 Chong Yidong <cyd@stupidchicken.com>
10505
10506 * indent.c (Fvertical_motion): Revert last change. Handle the
10507 general case where we are moving forward, and PT spans multiple
10508 screen lines.
10509
10510 * eval.c (find_handler_clause): Temporarily increase
10511 max-lisp-eval-depth while printing the backtrace buffer, to
10512 guarantee that help-mode code can run.
10513
105142008-08-27 Eli Zaretskii <eliz@gnu.org>
10515
10516 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
10517 colors under -rv.
10518 (IT_set_frame_parameters): Don't swap foreground and background
10519 colors if `(reverse . t)' is present in the frame properties.
10520 (internal_terminal_init): Call init_frame_faces only for the
10521 initial frame.
10522
105232008-08-27 Andreas Schwab <schwab@suse.de>
10524
10525 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
10526
105272008-08-27 Andreas Schwab <schwab@suse.de>
10528
10529 * search.c (search_buffer): Set char_base to zero only at the end.
10530
105312008-08-27 Kenichi Handa <handa@m17n.org>
10532
b8ff72fa 10533 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
10534
105352008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
10536
10537 * xterm.c (x_term_init): Temporarily hide the partially
10538 initialized terminal while calling vendor-specific-keysyms.
10539
105402008-08-26 Eli Zaretskii <eliz@gnu.org>
10541
10542 * msdos.c (internal_terminal_init): Most initializations done only
10543 once, especially initial_screen_colors[] and termscript open.
10544
105452008-08-26 Chong Yidong <cyd@stupidchicken.com>
10546
10547 * eval.c (Fcondition_case): Doc fix.
10548
10549 * widgetprv.h (EmacsFramePart): Change font member to the new font
10550 struct.
10551
10552 * widget.c: Include character.h and font.h for XSETFONT.
10553 (setup_frame_gcs): Compute X font id from font struct, just once.
10554
105552008-08-26 Eli Zaretskii <eliz@gnu.org>
10556
10557 * term.c (get_named_tty): Fix last change.
10558
105592008-08-26 Chong Yidong <cyd@stupidchicken.com>
10560
10561 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 10562 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
10563
105642008-08-25 Eli Zaretskii <eliz@gnu.org>
10565
10566 * frame.c (do_switch_frame): Mark previously displayed frame as
10567 obscured for FRAME_MSDOS_P frames as well.
10568
105692008-08-24 Eli Zaretskii <eliz@gnu.org>
10570
10571 * frame.c (make_terminal_frame): Initialize f->terminal,
10572 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10573 Set the top frame to newly created frame.
10574 (Fmake_terminal_frame): Reuse the_only_display_info.
10575
10576 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10577 estimating available memory.
10578
b97439ce 105792008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
10580
10581 * nsterm.m (ns_draw_window_cursor): Don't call
10582 NSDisableScreenUpdates and NSEnableScreenUpdates on
10583 non-NS_IMPL_COCOA systems.
10584
105852008-08-23 Andreas Schwab <schwab@suse.de>
10586
10587 * process.c (procfs_system_process_attributes): Fix use of
10588 uninitialized variables.
10589
105902008-08-23 Eli Zaretskii <eliz@gnu.org>
10591
10592 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10593
10594 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10595 calling tty-set-up-initial-frame-faces.
10596
b8ff72fa
SM
10597 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10598 Allow MSDOS frames along with X frames.
aac0c6e3
MR
10599
10600 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10601 addition to output_termcap.
10602
10603 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10604
10605 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10606 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10607 highlight.
10608
10609 * process.c [!subprocesses]: Define QCname.
10610 (syms_of_process): Intern and staticpro it.
10611
10612 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
10613 Adjust for changes in encoding/decoding routines.
10614 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
10615 encode_coding and decode_coding.
10616
b8ff72fa 10617 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
10618
10619 * dosfns.c: Include frame.h before termhooks.h.
10620 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10621 variable termscript.
10622
10623 * s/msdos.h (USER_FULL_NAME): Define.
10624 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10625
10626 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10627 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10628 pw->pw_gecos.
10629
10630 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10631 SELECTED_FRAME as additional (1st) argument.
10632 (tty_read_avail_input): Handle output_msdos_raw in
10633 addition to output_termcap.
10634
10635 * msdos.c: Include frame.h before termhooks.h.
10636 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10637 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10638 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10639 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10640 (IT_set_terminal_modes, IT_reset_terminal_modes)
10641 (IT_set_frame_parameters): Use tty->termscript instead of a global
10642 variable termscript.
10643 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
10644 global variable terminal_coding. Don't refer to
10645 Vnonascii_translation_table.
10646 (internal_terminal_init): Set Vwindow_system in current_kboard.
10647 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
10648 Announce date and time of session start, if termscript is open.
10649 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
10650 term.c:init_tty). Open termscript only of not already open.
10651 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
10652 here instead of dos_ttraw. Don't initialize display if this is an
10653 initial tty. Don't set FRAME_FONT.
10654 (Vwindow_system_version): Bump to 23.
10655 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
10656 is available, set up mouse_position_hook.
10657 (dos_ttraw, IT_set_terminal_modes): If called with initial
10658 terminal, do nothing.
10659 (IT_set_frame_parameters): Handle the Qtty_type frame
10660 parameter by calling internal_terminal_init.
10661 (dos_set_window_size, show_mouse_face)
10662 (clear_mouse_face, IT_note_mode_line_highlight)
10663 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
10664 (dos_rawgetc): Use tty_display_info instead of x_display_info.
10665 (initialize_msdos_display): New function.
10666 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
10667 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
10668 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
10669 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 10670 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
10671 (request_sigio, unrequest_sigio): Don't define, now defined on
10672 sysdep.c.
10673 (IT_write_glyphs): Rewrite to use encode_terminal_code.
10674
10675 * term.c [MSDOS]: Include msdos.h.
10676 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
10677 conditional to DOS_NT. Allow only one call to this function in a
10678 session. Don't allocate a new struct tty_display_info; instead,
10679 reuse the_only_display_info. Call get_tty_size to get screen
10680 dimensions. Call init_baud_rate to set bad_rate.
10681 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
10682 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 10683 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
10684 (get_tty_terminal, get_named_tty, Ftty_type)
10685 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
10686 output_termcap.
b8ff72fa
SM
10687 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
10688 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 10689 only when subprocesses are supported.
aac0c6e3
MR
10690
10691 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
10692 f->output_data.x.
10693 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
10694 terminal devices.
10695
5582fbc7 10696 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
10697 x_output.
10698 (FRAME_FONT): Use output_data.tty.
10699 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
10700 (struct x_display_info): Rename from display_info. Update all users in
10701 msdos.c.
aac0c6e3 10702 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 10703 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
10704 (dos_ttraw): Update prototype.
10705
10706 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
10707 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
10708
107092008-08-23 Jason Rumney <jasonr@gnu.org>
10710
10711 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
10712 (fn_TIFFSetDirectory): New library function used.
10713 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
10714 (tiff_load): Use :index to select among multiple images. Set count
10715 property when multiple images exist.
10716 (gif_format): Use :index, not :image.
10717
107182008-08-23 Chong Yidong <cyd@stupidchicken.com>
10719
10720 * xdisp.c (try_scrolling): Check INT_MAX instead of
10721 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
10722 to obtain INT_MAX.
10723
107242008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
10725
10726 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
10727
107282008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
10729
10730 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
10731 GNUstep library location.
10732
107332008-08-21 Chong Yidong <cyd@stupidchicken.com>
10734
10735 * xfaces.c (x_update_menu_appearance): Check validity of menu font
10736 before using it.
10737
10738 * puresize.h (BASE_PURESIZE): Increase to 1250000.
10739
107402008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10741
10742 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
10743 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
10744 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
10745 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
10746 (EmacsApp-cursor_blink_handler): Remove declaration.
10747 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
10748 match 01 Feb 2008 changes in xterm.c.
10749 (ns_read_socket): Add cast to avoid warning.
10750 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
10751 GNUstep.
10752
107532008-08-20 Chong Yidong <cyd@stupidchicken.com>
10754
10755 * xselect.c (x_get_foreign_selection): Return nil if desired
10756 selection could not be obtained, instead of signalling an error.
10757
107582008-08-20 David Reitter <david.reitter@gmail.com>
10759
10760 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
10761 * nsterm.m: Remove ns-specific code for cursor blinking.
10762 (ns_draw_window_cursor): Clear cursor properly rather than
10763 redrawing the area. Respect width of bar cursors.
10764 These changes enable the use of generic blink-cursor-mode and
10765 generic cursor types in NS and support smooth cursor movements (do
10766 not blink off after command).
10767 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
10768 Nextstep, too.
10769
107702008-08-19 Kenichi Handa <handa@m17n.org>
10771
10772 * font.c (Vfont_log_deferred): New variable.
10773 (font_add_log): Check Vfont_log_deferred.
10774 (font_deferred_log): New function.
10775
10776 * font.h (font_deferred_log): Extern it.
10777
10778 * fontset.c (reorder_font_vector): Use encoding charset of fonts
10779 for sorting.
10780 (face_for_char): Use deferred log.
10781
107822008-08-18 Kenichi Handa <handa@m17n.org>
10783
10784 * fontset.c (face_for_char): Add font log.
10785
10786 * font.c (font_add_log): Add the font properties :script, :lang,
10787 and :otf in the log.
10788
107892008-08-17 Chong Yidong <cyd@stupidchicken.com>
10790
10791 * xdisp.c: Remove dead code.
10792 (handle_invisible_prop, next_overlay_string): Defer call to
10793 setup_for_ellipsis.
10794 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
10795
107962008-08-15 Chong Yidong <cyd@stupidchicken.com>
10797
10798 * xfaces.c (lookup_derived_face): Properly handle possible zero
10799 return value of get_lface_attributes.
10800 (merge_faces): Don't tell lookup_derived_face to signal an error
10801 if face is not found.
10802
10803 * dired.c (Fdirectory_files): Doc fix.
10804
10805 * process.c (make_process): Initialize kill_without_query struct
10806 member.
10807
108082008-08-15 Eli Zaretskii <eliz@gnu.org>
10809
10810 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10811 Alternative calculation of totphys for Visual Studio 6.
10812
10813 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10814
10815 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10816 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10817 All users changed.
10818 (stat): Only root directory passed to GetDriveType. Allow RAM
10819 disk as well as local fixed disk when w32-get-true-file-attributes
10820 is set to `local'.
10821 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10822 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10823 (w32_cached_id, w32_add_to_cache): New functions.
10824 (get_name_and_id): Look account names in the cache before calling
10825 lookup_account_sid.
10826 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10827 New initialization flags.
10828 (globals_of_w32): Initialize them to zero.
10829 (w32_system_process_attributes): Use w32_cached_id and
10830 w32_add_to_cache.
10831
108322008-08-14 Lawrence Mitchell <wence@gmx.li>
10833
10834 * lread.c (Fread_char, Fread_char_exclusive): If no character
10835 event is read before timeout is reached, return nil, rather than
10836 converting to a number.
10837
108382008-08-14 Chong Yidong <cyd@stupidchicken.com>
10839
10840 * fns.c (use_dialog_box): Doc fix.
10841
10842 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10843 on OS X.
10844
108452008-08-13 Chong Yidong <cyd@stupidchicken.com>
10846
10847 * frame.c (Qns_parse_geometry): New var.
10848 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10849
108502008-08-11 Chong Yidong <cyd@stupidchicken.com>
10851
10852 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10853 space character in calculating tabs.
10854
108552008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10856
10857 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10858
108592008-08-10 Glenn Morris <rgm@gnu.org>
10860
10861 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10862 silence gcc "limited range of data type" warnings in some
10863 make_fixnum_or_float calls.
10864
108652008-08-09 Eli Zaretskii <eliz@gnu.org>
10866
10867 * w32.c (w32_system_process_attributes): If the process does not
10868 exist, return nil.
10869
10870 * w32.c: Include thelp32.h, psapi.h and coding.h.
10871 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10872 declarations.
10873 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10874 (Process32Next_Proc): New typedefs.
10875 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10876 (g_b_init_process32_next, g_b_init_open_thread_token)
10877 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10878 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10879 (g_b_init_get_process_working_set_size)
10880 (g_b_init_global_memory_status_ex): New static variables.
10881 (globals_of_w32): Initialize them.
10882 (create_toolhelp32_snapshot, process32_first, process32_next)
10883 (open_thread_token, impersonate_self, revert_to_self)
10884 (get_process_memory_info, get_process_working_set_size)
10885 (global_memory_status, global_memory_status_ex): New wrapper
10886 functions.
10887 (w32_list_system_processes, w32_system_process_attributes)
10888 (enable_privilege, restore_privilege, ltime, process_times):
10889 New functions.
10890 (convert_time_raw): New function.
10891 (convert_time): Remove conversion of FILETIME into time in 100
10892 nsec units, call convert_time_raw instead.
10893
10894 * process.h (w32_list_system_processes, w32_system_process_attributes):
10895 Add prototypes.
10896 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10897 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10898 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10899 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10900
10901 * process.c (Fsystem_process_attributes): Doc fix.
10902
109032008-08-08 Chong Yidong <cyd@stupidchicken.com>
10904
10905 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10906 a continued multi-char glyph; if so, advance to the actual glyph.
10907
109082008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10909
10910 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10911
10912 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10913 (.m.o): Use it.
10914 * config.in: Regenerate.
10915
109162008-08-07 Chong Yidong <cyd@stupidchicken.com>
10917
10918 * xdisp.c (redisplay_window): Revert last change.
10919 (try_window): Check bottom scroll margin too.
10920
109212008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10922
10923 * config.in: Regenerate.
10924
10925 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10926 -list-load-path-shadows'.
10927 (nsgui.h): Reduce number of things depending on it.
10928
109292008-08-06 Chong Yidong <cyd@stupidchicken.com>
10930
10931 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10932 instead of window-end which does the wrong thing at eob.
10933 (try_cursor_movement): Minor optimization.
10934 (redisplay_window): If scroll margin is defined, don't assume
10935 window doesn't need scrolling.
10936
109372008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10938
10939 * config.in: Regenerate.
10940
10941 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10942 (mostlyclean): Don't delete *.d under NS.
10943
10944 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10945
109462008-08-06 Kenichi Handa <handa@m17n.org>
10947
10948 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10949
109502008-08-06 Andreas Schwab <schwab@suse.de>
10951
10952 * config.in: Regenerate.
10953
109542008-08-05 Chong Yidong <cyd@stupidchicken.com>
10955
10956 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10957 forcing a window start.
10958
10959 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10960 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10961
109622008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10963
10964 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10965 argument.
10966
109672008-08-05 Juanma Barranquero <lekktu@gmail.com>
10968
10969 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10970 <scroll-down-aggressively, before-change-functions>:
10971 <after-change-functions>: Reflow docstrings.
10972
109732008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 10974 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
10975
10976 Dock menu customization, based on a patch by Ken Raeburn, plus some
10977 other fixes.
10978 * nsmenu.m (dockMenu): New variable.
10979 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10980
10981 * nsterm.h (dockMenu): Declare.
10982
10983 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10984 (ns_term_init): Initialize dockMenu.
10985 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10986 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10987 left.
10988
10989 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10990
109912008-08-04 Chong Yidong <cyd@stupidchicken.com>
10992
10993 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10994
10995 * config.in: Regenerate.
10996
109972008-08-04 Seiji Zenitani <zenitani@mac.com>
10998
10999 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11000
110012008-08-04 Chong Yidong <cyd@stupidchicken.com>
11002
11003 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11004
110052008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11006
11007 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11008
11009 * keyboard.h: Comment an #endif.
11010
11011 * lisp.h (have_menus_p): Adjust comment.
11012
11013 * menu.c (find_and_return_menu_selection): Fix comparison with
11014 client_data.
11015
11016 * nsmenu.m (popup_activated_flag): New variable.
11017 (popup_activated): New function.
11018 (menu-or-popup-active-p): New exported lisp definition.
11019 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11020 when popup done.
11021 (ns_popup_dialog): Set popup_activated_flag.
11022
11023 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11024 version for GNUstep (handled by conditional typedef in nsterm.m).
11025 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11026 in rgb.txt).
11027
11028 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11029
11030 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11031
11032 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11033
11034 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11035 shortcircuit if popup_activated like GTK and X toolkit.
11036
11037 * m/inter386.h: Change DARWIN to DARWIN_OS.
11038
11039 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11040 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11041 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11042 comment on NO_SOCK_SIGIO.
11043
110442008-08-03 Chong Yidong <cyd@stupidchicken.com>
11045
11046 * nsterm.m (windowDidResize): Remove stopModal call.
11047
110482008-08-03 Andreas Schwab <schwab@suse.de>
11049
11050 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11051 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11052
110532008-08-02 Chong Yidong <cyd@stupidchicken.com>
11054
11055 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11056 Don't use uninitialized pointer variable when using getrlimit.
11057
110582008-08-02 Jason Rumney <jasonr@gnu.org>
11059
11060 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11061
110622008-08-02 Eli Zaretskii <eliz@gnu.org>
11063
11064 * alloc.c (NSTATICS): Bump to 0x640.
11065
11066 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11067
11068 * lisp.h: Add prototype for directory_files_internal.
11069
11070 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11071 New functions.
11072 (syms_of_process): Defsubr them. Add initializations for various
11073 Q* symbols used in procfs_system_process_attributes.
11074 (procfs_list_system_processes, procfs_system_process_attributes)
11075 [HAVE_PROCFS]: New functions.
11076 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11077 (procfs_get_total_memory): New functions.
11078
110792008-08-01 Juanma Barranquero <lekktu@gmail.com>
11080
11081 * xfaces.c (Fx_load_color_file): Fix previous change;
11082 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11083
110842008-08-01 Michael Albinus <michael.albinus@gmx.de>
11085
11086 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11087
110882008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11089
11090 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11091
110922008-08-01 Chong Yidong <cyd@stupidchicken.com>
11093
11094 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11095
11096 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11097 define NSApplicationDelegateReplySuccess.
11098 (EmacsView -converstationIdentifier): Use long instead of
11099 NSInteger for GNUstep, since it doesn't have NSInteger.
11100
11101 * xmenu.c: Revert last change.
11102
11103 * keyboard.h: Fix last change.
11104
111052008-08-01 Juanma Barranquero <lekktu@gmail.com>
11106
11107 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11108 on Windows.
11109
111102008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11111
11112 Warning clearing and clean-up in NS port.
11113 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11114 Add prototypes.
11115 * nsgui.h (FACE_DEFAULT): Remove, unused.
11116 (XGCValues): Change colors to unsigned long.
11117 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11118 nsterm.m.
11119 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11120 (ns_list_fonts): Remove, unused.
11121 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11122 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11123 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11124 (nsfont_draw): Compare face colors to 0, not nil.
11125 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11126 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11127 (-addSubmenuWithTitle:): Use NSMenuItem class.
11128 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11129 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11130 (ns_clip_to_row): Make gc arg a BOOL.
11131 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11132 ns_clip_to_row() call.
11133 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11134 used). Cast FRAME_FONT assignments.
11135 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11136 (ns_string_to_lispmod): Change arg to const char.
11137 (ns_term_init): Use NSMenuItem class.
11138 (EmacsApp -openFile:): Move to different section of file.
11139 (EmacsApp -application:openFiles:): Don't return a value, call
11140 -replyToOpenOrPrint:.
11141 (EmacsView -keyDown:): Fix up cast.
11142 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11143 (EmacsView -menuDown:): Cast tag in call to
11144 find_and_call_menu_selection().
11145 (ns_list_fonts): Remove, unused.
11146 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11147 (ns_fontname_to_xlfd): Make static.
11148 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11149 Remove prototypes (now in keyboard.h).
11150 (next_menubar_widget_id): Remove, unused.
11151 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11152 Remove prototypes (now in keyboard.h).
11153 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11154
111552008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11156
11157 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11158 (floatfns.o): Depend on syssignal.h.
11159 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11160
11161 * systty.h: Fix previous change that removed BSD_TERMIOS.
11162 Add comments to #ifdefs.
11163
111642008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11165
11166 * w32fns.c (w32-load-color-file): Remove.
11167 (x-open-connection): Use renamed Fx_load_color_file.
11168 * xfaces.c (x-load-color-file): Add.
11169 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11170 Emacs.clr.
11171 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11172
111732008-07-31 Michael Albinus <michael.albinus@gmx.de>
11174
11175 * dbusbind.c (Fdbus_call_method_asynchronously)
11176 (Fdbus_method_error_internal): New defuns.
11177 (xd_read_message): Handle also reply messages.
11178 (Vdbus_registered_functions_table): Extend docstring.
11179
111802008-07-31 Juanma Barranquero <lekktu@gmail.com>
11181
11182 * keyboard.c (gobble_input): Fix previous change.
11183
111842008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11185
11186 * bitmaps/README:
11187 * xfns.c:
11188 * termcap.c:
11189 * term.c:
11190 * syswait.h:
11191 * systty.h:
11192 * systime.h:
11193 * syssignal.h:
11194 * sysdep.c:
11195 * process.h:
11196 * process.c:
11197 * print.c:
11198 * ndir.h:
11199 * lread.c:
11200 * keyboard.c:
11201 * getpagesize.h:
11202 * floatfns.c:
11203 * fileio.c:
11204 * emacs.c:
11205 * doc.c:
11206 * dispnew.c:
11207 * dired.c:
11208 * data.c:
11209 * callproc.c:
11210 * buffer.c:
11211 * README:
11212 * Makefile.in:
11213 * s/template.h:
11214 * s/msdos.h:
11215 * m/vax.h: Remove VMS support.
11216 * s/vms.h:
11217 * vlimit.h:
11218 * uaf.h:
11219 * temacs.opt:
11220 * param.h:
11221 * ioctl.h: Remove file.
11222
112232008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11224
11225 * s/ms-w32.h (MULTI_KBOARD): Remove.
11226 * xterm.c:
11227 * xselect.c:
11228 * xfns.c:
11229 * window.c:
11230 * w32term.c:
11231 * w32fns.c:
11232 * terminal.c:
11233 * termhooks.h:
11234 * term.c:
11235 * sysdep.c:
11236 * keyboard.h:
11237 * keyboard.c:
11238 * frame.h:
11239 * frame.c:
11240 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11241 * config.in: Regenerate.
11242
112432008-07-30 Jason Rumney <jasonr@gnu.org>
11244
11245 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11246
11247 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11248 (w32font_open_internal): Get unicode version of textmetrics.
11249 Don't enable or disable glyph indices here.
11250 (w32font_open): Disable use of glyph indices.
11251
11252 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11253
112542008-07-30 Chong Yidong <cyd@stupidchicken.com>
11255
11256 * minibuf.c (Vread_buffer_function): Doc fix.
11257
112582008-07-30 John Paul Wallington <jpw@pobox.com>
11259
11260 * minibuf.c (read_buffer_completion_ignore_case): New var.
11261 (Fread_buffer): Use it.
11262
112632008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11264
11265 * systty.h (sensemode): Remove empty #if. Remove reference to
11266 BSD_TERMIOS, unused.
11267
11268 * sysdep.c: Remove reference to DGUX.
11269 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11270
11271 * config.in: Regenerate.
11272
112732008-07-30 Jason Rumney <jasonr@gnu.org>
11274
11275 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11276
112772008-07-29 Jason Rumney <jasonr@gnu.org>
11278
11279 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11280 is populated.
11281 (uniscribe_encode_char): Always use uniscribe.
11282 Avoid using context if cache is populated.
11283
112842008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11285
11286 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11287 open menu.
11288
11289 * gtkutil.c (menu_nav_ended): Remove.
11290 (create_menus): Remove signal connect for menu_nav_ended.
11291
112922008-07-28 Chong Yidong <cyd@stupidchicken.com>
11293
11294 * xdisp.c (redisplay_window): Check return value of
11295 compute_window_start_on_continuation_line before forcing a window
11296 start.
11297
112982008-07-28 Jason Rumney <jasonr@gnu.org>
11299
11300 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11301
11302 * w32term.c (w32_enable_unicode_output, cleartype_active):
11303 Remove obsolete display options.
11304 (x_draw_glyph_string_background): Don't use old cleartype_active
11305 workaround.
11306 (w32_initialize): Remove cleartype_active initialization.
11307 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11308
113092008-07-28 Andreas Schwab <schwab@suse.de>
11310
11311 * lisp.h (init_weak_hash_tables, syms_of_font)
11312 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11313 (remove_hash_entry): Don't declare.
11314 * eval.c (maybe_call_debugger): Make static and move before use.
11315 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11316 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11317 * xterm.h (x_set_frame_alpha): Declare.
11318
113192008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11320
11321 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11322 (create_menus): Connect selection-done to menu_nav_ended.
11323
113242008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11325
11326 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11327 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11328 parameter with read of 'alpha' one.
11329 (Qns_frame_parameter): Remove.
5582fbc7 11330 * nsselect.m (selection-coding-system)
aac0c6e3
MR
11331 (next-selection-coding-system, Vselection_coding_system)
11332 (Vnext_selection_coding_system): Drop.
11333
113342008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11335
11336 * nsfns.m (do-applescript, do_applescript): Rename to
11337 ns-do-applescript, ns_do_applescript, and move within file.
11338
113392008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11340
11341 Remove support for Mac Carbon.
11342 * mactoolbox.c:
11343 * macterm.h:
11344 * macterm.c:
11345 * macselect.c:
11346 * macmenu.c:
11347 * macgui.h:
11348 * macfns.c:
11349 * mac.c: Remove file.
11350 * s/darwin.h:
11351 * m/intel386.h:
11352 * xfaces.c:
11353 * xdisp.c:
11354 * window.c:
11355 * tparam.c:
11356 * termhooks.h:
11357 * termcap.c:
11358 * term.c:
11359 * syssignal.h:
11360 * sysselect.h:
11361 * sysdep.c:
11362 * process.c:
11363 * lread.c:
11364 * lisp.h:
11365 * keyboard.c:
11366 * image.c:
11367 * fringe.c:
11368 * frame.h:
11369 * frame.c:
11370 * fontset.c:
11371 * font.h:
11372 * font.c:
11373 * fns.c:
11374 * fileio.c:
11375 * emacs.c:
11376 * dispnew.c:
11377 * dispextern.h:
11378 * config.in:
11379 * atimer.c:
2ae37cf0 11380 * Makefile.in: Remove code for Carbon.
aac0c6e3 11381
f0131492 113822008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11383
11384 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11385
113862008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11387
11388 * macterm.h (kCGBitmapByteOrder32Host): New define for
11389 non-universal SDKs.
11390
11391 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11392 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11393
11394 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11395 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11396
113972008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11398
11399 * w32inevt.c: Include dispextern.h.
11400
114012008-07-26 Andreas Schwab <schwab@suse.de>
11402
11403 * print.c (print_object): Fix off-by-one in last change.
11404
114052008-07-25 Juanma Barranquero <lekktu@gmail.com>
11406
11407 * term.c (syms_of_term): Don't initialize default_orig_pair,
11408 default_set_foreground and default_set_background on Windows.
11409
114102008-07-25 Jason Rumney <jasonr@gnu.org>
11411
11412 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11413 ScriptItemize. Clean up return value checking. Remove unused
11414 variables.
11415 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11416 shaping engine.
11417
11418 * w32font.c (w32font_has_char): Handle the case where we can't
11419 determine the script for a character.
11420
114212008-07-25 Chong Yidong <cyd@stupidchicken.com>
11422
11423 * term.c (syms_of_term): Initialize default_orig_pair,
11424 default_set_foreground, and default_set_background.
11425
11426 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11427 clash (bug#86).
11428 (getloadavg): Callers changed.
11429
11430 * image.c (svg_load_image): Fix last change.
11431 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11432 image size is valid. Use g_object_unref instead of deprecated
11433 rsvg_handle_free to free rsvg handle.
11434 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11435
114362008-07-25 Jason Rumney <jasonr@gnu.org>
11437
11438 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11439 surrogates before looking up glyph index.
11440 (w32font_text_extents): Encode as surrogates if falling back to
11441 functions that need UTF-16 wide chars.
11442
11443 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11444 BMP as surrogates before looking up glyph index.
11445
114462008-07-25 Chong Yidong <cyd@stupidchicken.com>
11447
11448 * image.c (svg_load_image): Check for failure in return value of
11449 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11450
114512008-07-25 Jason Rumney <jasonr@gnu.org>
11452
11453 * w32font.c (Fx_select_font): Reverse sense of second arg.
11454
114552008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11456
11457 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11458 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11459
11460 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11461 (PURESIZE): Use it.
11462
114632008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11464
11465 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11466 * m/alpha.h (TEXT_END):
11467 * m/ibmrs6000.h (TEXT_END):
11468 * m/macppc.h (TEXT_END):
11469 * s/darwin.h (TEXT_END):
11470 * s/msdos.h (TEXT_END): Remove, unused.
11471 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11472 * s/cygwin.h: Remove comment.
11473
11474 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11475 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11476 * m/intel386.h (DOT_GLOBAL_START):
11477 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11478 (USG): Remove, file not used on USG platforms.
11479
11480 * Makefile.in (HAVE_X11): Remove empty #else.
11481
114822008-07-24 Andreas Schwab <schwab@suse.de>
11483
11484 * fileio.c (Finsert_file_contents): Properly adjust undo list
11485 after format conversion.
11486
114872008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11488
11489 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11490 (menu_nav_ended): Remove.
11491 (create_menus): Remove signal connect for menu_nav_ended.
11492 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11493 create_menus.
11494 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11495
114962008-07-23 Jason Rumney <jasonr@gnu.org>
11497
11498 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
11499 with opened font.
11500 (w32font_open): Set font type to gdi.
11501
11502 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
11503
115042008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
11505
11506 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
11507 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
11508 defines it.
11509 * unexec.c (ADDR_CORRECT): Define unconditionally.
11510
11511 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
11512
11513 * unexec.c: Remove code depending on !COFF and USG, the file is
11514 not used for such systems.
11515
11516 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
11517 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
11518 (LD_SWITCH_SYSTEM_1): Remove, update users.
11519
11520 * s/darwin.h (DATA_END):
11521 * m/intel386.h (DATA_END):
11522 * m/ibmrs6000.h (DATA_END):
11523 * m/alpha.h (DATA_END): Remove, unused.
11524
11525 * config.in: Regenerate.
11526 * s/ms-w32.h (subprocesses): Define unconditionally.
11527 * s/template.h (subprocesses): Update comment.
11528 * s/vms.h (subprocesses):
11529 * s/usg5-4.h (subprocesses):
11530 * s/hpux10-20.h (subprocesses):
11531 * s/gnu-linux.h (subprocesses):
11532 * s/cygwin.h (subprocesses):
11533 * s/bsd-common.h (subprocesses):
11534 * s/aix4-2.h (subprocesses):
11535 * s/darwin.h (subprocesses): Do not define, defined by default now.
11536
11537 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11538 Remove all references.
11539 (temacs): Add GNUstep specific ld flags.
11540
11541 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11542 similarly to what X does.
11543
115442008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11545
11546 * nsfns.m (x-list-fonts): Remove.
11547 (syms_of_nsfns): Drop the x-list-fonts declaration.
11548 * nsterm.m: Get rid of remaining "//" comments.
11549
115502008-07-22 Chong Yidong <cyd@stupidchicken.com>
11551
11552 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11553
11554 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11555 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11556 (Fns_own_selection_internal, Fx_disown_selection_internal)
11557 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11558
11559 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11560 ... */' style of docstrings. Doc fixes.
11561
115622008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11563
11564 * terminfo.c (UP, BC, PC): Undo previous change.
11565
11566 * nsfns.m: Rename ns prefixed functions/variables to the
11567 corresponding x versions. Update references.
11568
115692008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11570
11571 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11572
115732008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11574
11575 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11576 Remove forwarding functions.
11577 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11578 non-static.
11579 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11580 non-static.
11581 (ns_frame_parm_handlers): Use the new names.
11582 (syms_of_nsfns): Move to the end of file.
11583
11584 * nsterm.m (syms_of_nsterm): Move to the end of file.
11585
11586 * dispnew.c (init_display): Remove code for X10.
11587
115882008-07-22 Jason Rumney <jasonr@gnu.org>
11589
11590 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11591 bare drive.
11592
115932008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11594
11595 * nsterm.m (syms_of_nsterm): Remove debugging println.
11596
115972008-07-22 David Reitter <david.reitter@gmail.com>
11598
11599 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11600 Carbon implementation of the same functionality: execute arbitrary
11601 AppleScript code.
11602
116032008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11604
11605 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11606 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11607 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11608 (Fx_display_mm_height, Fx_display_mm_width)
11609 (Fx_display_backing_store, Fx_display_visual_class)
11610 (Fx_display_save_under, Fx_open_connection)
11611 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11612 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11613 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11614 (Fx_display_pixel_width, Fx_display_pixel_height)
11615 (Fx_display_usable_bounds, Fx_display_planes)
11616 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11617 ... */' style of docstrings.
11618
116192008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11620
11621 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11622 on this platform.
11623 (mips):
11624 * m/iris4d.h (mips): Do not define.
11625 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11626
11627 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11628
11629 * image.c:
11630 * nsfns.m:
11631 * nsselect.m:
11632 * nsterm.h:
11633 * nsterm.m: Rename ns prefixed functions/variables to the
11634 corresponding x versions. Update references.
11635
11636 * m/ibms390x.h (NO_REMAP): Do not undefine.
11637
11638 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11639
116402008-07-21 Chong Yidong <cyd@stupidchicken.com>
11641
11642 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
11643 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
11644 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
11645 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
11646 (Fns_display_mm_height, Fns_display_mm_width)
11647 (Fns_display_backing_store, Fns_display_visual_class)
11648 (Fns_display_save_under, Fns_open_connection)
11649 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
11650 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
11651 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11652 (Fns_display_pixel_width, Fns_display_pixel_height)
11653 (Fns_display_usable_bounds, Fx_display_planes)
11654 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
11655
116562008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
11657
11658 * print.c (print_object): Check print_depth before searching for
11659 circularities.
11660
116612008-07-21 Michael Albinus <michael.albinus@gmx.de>
11662
11663 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
11664 only sprintf.
11665
116662008-07-21 Kenichi Handa <handa@m17n.org>
11667
11668 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
11669
116702008-07-20 Andreas Schwab <schwab@suse.de>
11671
11672 * syntax.c (find_start_pos, find_start_value)
11673 (find_start_value_byte, find_start_begv, find_defun_start)
11674 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
11675
116762008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11677
11678 * s/sol2-3.h: Insert contents of s/sol2.h.
11679 (LD_SWITCH_SYSTEM): Remove redundant definition.
11680 * s/sol2.h: Remove, unused.
11681
116822008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11683
11684 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
11685
116862008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11687
11688 * Makefile.in (ns_appdir): Fix typo in find command.
11689
116902008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11691
11692 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
11693
11694 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
11695 added not supported anymore.
11696
11697 * s/usg5-4-2.h (LIBS_SYSTEM):
11698 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
11699
11700 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11701 * s/lynxos.h (GETPGRP_NO_ARG):
11702 * s/hpux10-20.h (NO_SIOCTL_H):
11703 * s/gnu.h (GETPGRP_NO_ARG):
11704 * s/gnu-linux.h (NO_SIOCTL_H):
11705 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11706 * s/cygwin.h (GETPGRP_NO_ARG):
11707 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
11708 (C_DEBUG_SWITCH): Remove duplicate definition.
11709
11710 * m/ibms390.h: Remove boilerplate comments.
11711
11712 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
11713
11714 * process.c (HAVE_SERIAL): Consolidate ifdefs.
11715 (wait_reading_process_output): Remove code for SunOS, platform not
11716 supported anymore. Use SOLARIS2 instead of sun.
11717
117182008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11719
11720 * font.c (font_open_by_name): Under NS, default lface height to zero.
11721 (font_open_for_lface): Under NS, set size based on frame fontsize.
11722 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
11723 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
11724
117252008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11726
11727 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
11728 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
11729 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
11730 YES/NO.
11731 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
11732 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
11733 * Makefile.in (clean): Clear out build destination dir.
11734
117352008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11736
11737 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
11738 xterm, xselect.
11739 * lisp.h: Remove declaration of hash_remove.
11740 * nsgui.h: Remove redefinitions of hash_remove.
11741 * fns.c (hash_remove): Rename to hash_remove_from_table.
11742
117432008-07-19 Seiji Zenitani <zenitani@mac.com>
11744
11745 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
11746 strdup() the family UTF8String before modifying it.
11747
117482008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11749
11750 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
11751 NS_FACE_BACKGROUND with 0 instead of nil.
11752 * nsfont.m (nsfont_draw): Same.
11753
117542008-07-19 Chong Yidong <cyd@stupidchicken.com>
11755
11756 * nsfns.m (ns_set_background_color): Fix crash.
11757
117582008-07-18 Chong Yidong <cyd@stupidchicken.com>
11759
11760 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
11761
117622008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
11763
11764 * puresize.h (BASE_PURESIZE): Increase to 1240000.
11765
117662008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11767
11768 * gtkutil.c: Include <config.h> instead of "config.h".
11769
11770 * lisp.h (Foverlay_buffer): Add EXFUN.
11771
11772 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
11773 child process to complete child_setup. Undo 2005-09-21 change.
11774
11775 * s/darwin.h: Mention setsid after vfork.
11776
117772008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11778
11779 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
11780 Depend on macgui.h.
11781
11782 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
11783 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
11784
11785 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
11786 and f19.
11787 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
11788
11789 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
11790 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
11791 Remove enumerators.
11792
11793 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
11794 Check if FACE_FROM_ID returns NULL.
11795
117962008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
11797
11798 * w32inevt.c (change_frame_size): Remove extern declaration.
11799 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
11800 change_frame_size.
11801
118022008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11803
11804 * getloadavg.c: Revert last change (2008-07-15).
11805
118062008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11807
11808 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 11809 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
11810 from configure.
11811
118122008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11813
11814 * s/sol2.h:
11815 * s/sol2-4.h: Reorganize conditionals.
11816
11817 * ecrt0.c: Remove code depending on m68000, not used anymore.
11818
11819 * fns.c (hash_remove): Make static.
11820 * lisp.h (hash_remove): Don't prototype.
11821
11822 * m/ibmrs6000.h:
11823 * m/ibms390x.h:
11824 * m/macppc.h: Remove boilerplate comments.
11825
11826 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11827 Solaris, which does not need them.
11828
11829 * m/vax.h: Remove comments about unsupported systems.
11830
11831 * s/darwin.h: Reorganize ifdefs.
11832
118332008-07-17 Andreas Schwab <schwab@suse.de>
11834
11835 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11836
118372008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11838
11839 Use SDATA. Follow coding convention of placing operators at
11840 beginning of next line rather than end of previous line, and placing
11841 spaces around infix operators.
11842
11843 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11844 in case it was defined already.
11845 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11846 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11847 ns_default.
11848 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11849 Lisp_Objects.
11850 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11851 (ns_defined_color, ns_color_to_lisp): Declare.
11852 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11853 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11854 it's accepted even with USE_LISP_UNION_TYPE.
11855 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11856 (update_frame_tool_bar): Remove apparently obsolete tests for
11857 non-integerness of f->tool_bar_lines.
11858 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11859 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11860 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11861 (nsfont_open): Don't confuse NULL for Qnil.
11862 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11863 * menu.h (find_and_call_menu_selection):
11864 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11865 (find_and_return_menu_selection): Always return something.
11866 * frame.h: Include dispextern.h for Display_Info.
11867 (display_x_get_resource): Declare.
11868
118692008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11870
11871 * syntax.c: Remove stdio.h include accidentally introduced in
11872 Emacs.app commit.
11873 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11874 NS_IMPL_COCOA.
11875 * keyboard.c (handle_async_input, input_available_signal): Remove
11876 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11877
118782008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11879
11880 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11881 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11882 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11883 Use SDATA.
11884
11885 * keymap.c: Remove all NS-specific code.
11886 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11887 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11888 where_is_preferred_modifier, return a different value depending on how
11889 preferred is the binding.
11890 (where_is_internal): Adjust accordingly.
11891 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11892 Adjust to new preferred_sequence_p.
11893 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11894 * keyboard.c (parse_solitary_modifier): Not static any more.
11895 * keyboard.h (parse_solitary_modifier): Declare.
11896
118972008-07-16 Andreas Schwab <schwab@suse.de>
11898
11899 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11900 of easymenu.
11901
119022008-07-16 Chong Yidong <cyd@stupidchicken.com>
11903
11904 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11905 that we don't move off the line.
11906
119072008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11908
11909 * keyboard.c (Qsuper): Remove.
11910 (parse_menu_item): Don't call where_is_internal specially for NS.
11911
119122008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11913
11914 * s/gnu-linux.h: Remove boilerplate comments.
11915
11916 * m/alpha.h (__ELF__): Consolidate conditions.
11917
11918 * m/m68k.h (linux): Use GNU_LINUX instead.
11919 Remove boilerplate comments.
11920
11921 * m/intel386.h: Undo refactoring from previous change.
11922 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11923 too, remove dead code.
11924 (linux): Use GNU_LINUX instead.
11925
119262008-07-16 Jason Rumney <jasonr@gnu.org>
11927
11928 * w32gui.h: Repeat 26 June changes lost by last change.
11929
119302008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11931
11932 * systty.h: Remove code for Aix on 386, unsupported platform.
11933
11934 * s/ms-w32.h: Remove boilerplate comments.
11935 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11936
11937 * s/gnu-linux.h (TERM): Remove support.
11938 (HAVE_SYSVIPC): Remove, unused.
11939 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11940 for this system.
11941
11942 * process.c: Remove support for IRIS, unused.
11943 Remove support for TERM, not relevant anymore.
11944
11945 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11946 used with the definition.
11947
11948 * s/aix4-2.h (static): Do not undef.
11949
11950 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11951 only used on Aix.
11952 (HAVE_SYSVIPC): Remove, unused.
11953
11954 * m/hp800.h (CANNOT_DUMP): Do not undef.
11955
11956 * m/alpha.h: Fix comment.
11957
11958 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11959 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11960 used by this configuration.
11961 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11962 * unexec.c: Remove code depending on HPUX and
11963 USG_SHARED_LIBRARIES, not used with this file. Remove code
11964 depending on IRIS, unused. Remove if 0-ed code.
11965
11966 * s/template.h: Remove comments about static.
11967
11968 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11969 Remove if 0-ed code.
11970 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11971 were the same as the default.
11972 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11973 Remove boilerplate comments.
11974 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11975 (HAVE_SYSVIPC): Remove, unused.
11976 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11977
11978 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11979 Remove boilerplate comments.
11980 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11981 Remove boilerplate comments.
11982 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11983 Remove boilerplate comments.
11984 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11985
11986 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11987 USG systems which do not use DATA_SEG_BITS.
11988 Refactor code. Remove boilerplate comments.
11989
11990 * m/ibms390.h:
11991 * m/m68k.h:
11992 * s/bsd-common.h:
11993 * s/cygwin.h:
11994 * s/darwin.h:
11995 * s/freebsd.h:
11996 * s/gnu.h:
11997 * s/msdos.h: Remove boilerplate comments.
11998
11999 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12000 do not use this file.
aac0c6e3
MR
12001 (IRIS_4D): Remove, unused.
12002
12003 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12004 do not use this file.
aac0c6e3
MR
12005 (SIGN_EXTEND_CHAR):
12006 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12007 * unexmips.c: Remove file, unused.
12008
12009 * editfns.c (Fuser_full_name): Replace the only use of
12010 USER_FULL_NAME with its value.
12011 * config.in: Regenerate.
12012
120132008-07-16 David Reitter <david.reitter@gmail.com>
12014
12015 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12016 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12017
120182008-07-16 Glenn Morris <rgm@gnu.org>
12019
12020 * emacs.c (system-type): Doc fix.
12021
120222008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12023
12024 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12025 If the cache doesn't work, let's fix it, rather than work around it.
12026
120272008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12028
12029 * Makefile.in: Correct additions for nsfont.o in last commit.
12030 * nsfont.m: New file (forgot last commit).
12031
120322008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12033
12034 * callproc.c (set_initial_environment): Initialize
12035 Vprocess_environment under CANNOT_DUMP (fixes crash when
12036 batch-compiling for bootstrap).
12037
120382008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12039 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12040
12041 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
12042 fix crash due to different init order.
12043
120442008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12045
12046 Changes and additions for NeXTstep windowing system (Cocoa and
12047 GNUstep) support.
12048
12049 * Makefile.in:
12050 * config.in: Support defines and build commands for NS port.
12051 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12052 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12053 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12054 windowing.
12055 (struct face): Add synth_ital field.
12056 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12057 (init_display): Initialize Vinitial_window_system to "ns" when so
12058 compiled.
12059 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12060 (display_arg): Use under NS.
12061 (main): Under NS, allocate autorelease pool and handle command line
12062 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12063 (standard_args): Add NS-specific args.
12064 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12065 * font.c (DEFAULT_ENCODING): New variable.
12066 (font_find_for_lface): Use it.
12067 (syms_of_font): Load syms_of_nsfont under NS.
12068 * font.h: Declare nsfont_driver when compiled under NS.
12069 * fontset.c: When compiling under NS, include nsterm.h.
12070 (fontset_from_font): Autoconstruct fontset under NS.
12071 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12072 symbol, document and use it.
12073 (do_switch_frame): When for_deletion under Cocoa, add
12074 Fraise_frame(Qnil).
12075 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12076 (x_get_arg): Allow "yes" and "no" as boolean values.
12077 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12078 Qright under Cocoa.
12079 (focus-follows-mouse): Default to 0 under NS.
12080 * frame.h (enum output_method): Add output_ns.
12081 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12082 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12083 (FRAME_WINDOW_P): NS-specific definition.
12084 * fringe.c (max_used_fringe_bitmap): Make public.
12085 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12086 (getloadavg): Use NeXT code under descendant OS's.
12087 * image.c (includes and header section, x_create_bitmap_from_data)
12088 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12089 (image_background_transparent, x_clear_image_1)
12090 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12091 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12092 (x_to_xcolors, x_from_xcolors, x_disable_image)
12093 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12094 other GUIs, including XPM support using code originally written for
12095 Carbon GUI.
12096 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12097 using NS API.
12098 (image_ascent): Use font metrics macros instead of direct struct field
12099 access.
12100 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12101 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12102 Also, handle NS as GTK for menu bar purposes.
12103 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12104 toolkit where they differ.
12105 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12106 use cachelist, still needed under NS.
12107 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12108 (struct widget_value): Define it here for menu.c.
12109 * keymap.c (includes): Include modifier internals.
12110 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12111 NS.
12112 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12113 support for preferring sequences using certain modifiers, specified by
12114 the FIRSTONLY argument.
12115 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12116 under NS GNUstep implementation.
12117 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12118 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12119 * menu.c: Include nsterm.h under NS.
12120 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12121 (free_menubar_widget_tree_value, update_submenu_strings)
12122 (find_and_call_menu_selection): Treat NS as X and NT.
12123 (find_and_return_menu_selection): New function, used for popup menus.
12124 * nsgui.h:
12125 * nsterm.h:
12126 * nsfns.m:
12127 * nsimage.m:
12128 * nsmenu.m:
12129 * nsselect.m:
12130 * nsterm.m: New files.
12131 * process.c (wait_reading_process_output): Under NS, call ns_select()
12132 instead of plain select().
12133 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12134 beginning of buffer.
12135 * sysselect.h (init_process): Rename when compiling under Cocoa to
12136 avoid name conflict.
12137 * termhooks.h (display_info): Add ns_display_info to union.
12138 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12139 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12140 COCOA environment.
12141 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12142 unexec() signature. (Note, this will dump, but the resulting file
12143 crashes; unexosx is used instead; keeping around for reference and
12144 possible aid in getting dump working under GNUstep.)
12145 * w32gui.h (button_type, widget_value): Remove definitions (now in
12146 keyboard.h).
12147 * window.c: Include nsterm.h when compiling under NS.
12148 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12149 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12150 other GUI windowing systems.
12151 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12152 GTK.
12153 (x_consider_frame_title): Under NS, set icon type and frame
12154 modified-state indicator; use ns_set_name_as_filename() when using
12155 formatted title.
12156 (update_window_cursor): Make public when compiling under NS.
12157 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12158 (hourglass_atimer, Vhourglass_delay
12159 * xfaces.c (header section, init_frame_faces, clear_font_table)
12160 (defined_color, unload_color, x_face_list_fonts)
12161 (prepare_face_for_display): Add NS support parallel to other GUIs.
12162 Emulate GCs like other non-X GUIs.
12163 (split_font_name): Don't lowercase font name under NS.
12164 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12165 under NS.
12166 * s/darwin.h: Add support for compilation under NS.
12167
121682008-07-15 Jason Rumney <jasonr@gnu.org>
12169
12170 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12171 (w32_show_hourglass): Rename from show_hourglass.
12172 (w32_hide_hourglass): Rename from hide_hourglass.
12173 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12174 (Vhourglass_delay): Declare extern.
12175 (hourglass_started): Remove.
12176
12177 * xdisp.c (Vhourglass_delay): Remove static.
12178 (hourglass_started, start_hourglass, cancel_hourglass):
12179 Don't include these versions on WINDOWSNT.
12180
121812008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12182
12183 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12184 variables (formerly in xfns.c).
12185 (show_hourglass, hide_hourglass): New prototypes (same).
12186 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12187 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12188 in xfns.c).
12189 (syms_of_xdisp): Declare/initialize display-hourglass,
12190 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12191 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12192 formerly in xfns.c.
12193 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12194 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12195 (start_hourglass, cancel_hourglass): Remove.
12196 (show_hourglass, hide_hourglass): Remove prototypes and static
12197 modifiers.
12198 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12199 hourglass_atimer, hourglass_shown_p declaration/initialization.
12200 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12201 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12202 (start_hourglass, cancel_hourglass): Remove.
12203 (show_hourglass, hide_hourglass): Remove prototypes and static
12204 modifiers.
12205 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12206 hourglass_atimer, hourglass_shown_p declaration/initialization.
12207 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12208 (DEFAULT_HOURGLASS_DELAY): Remove.
12209 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12210 hourglass_shown_p declaration/initialization.
12211
122122008-07-14 Jason Rumney <jasonr@gnu.org>
12213
12214 * w32fns.c (w32_get_arg): Remove wrapper function.
12215 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12216 directly.
12217 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12218
122192008-07-14 Kenichi Handa <handa@m17n.org>
12220
12221 * xfont.c (xfont_open): Add workaround for X's bug.
12222
122232008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12224
12225 * fontset.c: Include <stdio.h> unconditionally.
12226
122272008-07-13 Michael Albinus <michael.albinus@gmx.de>
12228
12229 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12230 for filtering.
12231
122322008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12233
12234 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12235
12236 * m/macppc.h:
12237 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12238
12239 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
12240 (SPECIAL_EMACS_INT):
12241 * m/ia64.h (SPECIAL_EMACS_INT):
12242 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12243 * s/gnu.h (NLIST_STRUCT):
12244 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12245 * s/gnu-linux.h (LINUX):
12246 * s/msdos.h (HAVE_FACES):
12247 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12248
12249 * systty.h:
12250 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12251 anymore.
12252
122532008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12254
12255 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12256 always defined as int.
12257
12258 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12259 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12260 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12261 * s/freebsd.h (HAVE_WAIT_HEADER):
12262 * s/bsd-common.h (HAVE_UNION_WAIT):
12263 * s/aix4-2.h (HAVE_WAIT_HEADER):
12264 * m/mips.h (HAVE_UNION_WAIT):
12265 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12266 (COFF, static): Do not define, they are undefined later in the file.
12267
12268 * process.c (update_status): Don't use a union.
12269 (status_convert):
12270 (sigchld_handler): Use int instead of WAITTYPE.
12271
122722008-07-12 Chong Yidong <cyd@stupidchicken.com>
12273
12274 * indent.c (Fvertical_motion): Restore hscroll before moving to
12275 goal column.
12276
122772008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12278
12279 * lisp.h: Remove left over code.
12280
122812008-07-11 Andreas Schwab <schwab@suse.de>
12282
12283 * lisp.h: Fix logic in last change.
12284
12285 * menu.h: New file.
12286 * menu.c: Include it.
12287 * xmenu.c: Likewise.
12288 * Makefile.in: Update dependencies.
12289
122902008-07-11 Kenichi Handa <handa@m17n.org>
12291
12292 * fontset.c (fontset_from_font): Cancel the previous change.
12293
122942008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12295
12296 * lisp.h:
12297 * w32heap.c:
12298 * emacs.c:
12299 * alloc.c: Replace all references of NO_UNION_TYPE with
12300 USE_LISP_UNION_TYPE.
12301
12302 * m/xtensa.h (NO_UNION_TYPE):
12303 * m/vax.h (NO_UNION_TYPE):
12304 * m/template.h (NO_UNION_TYPE):
12305 * m/sparc.h (NO_UNION_TYPE):
12306 * m/mips.h (NO_UNION_TYPE):
12307 * m/macppc.h (NO_UNION_TYPE):
12308 * m/m68k.h (NO_UNION_TYPE):
12309 * m/iris4d.h (NO_UNION_TYPE):
12310 * m/intel386.h (NO_UNION_TYPE):
12311 * m/ibms390x.h (NO_UNION_TYPE):
12312 * m/ibms390.h (NO_UNION_TYPE):
12313 * m/ibmrs6000.h (NO_UNION_TYPE):
12314 * m/ia64.h (NO_UNION_TYPE):
12315 * m/hp800.h (NO_UNION_TYPE):
12316 * m/arm.h (NO_UNION_TYPE):
12317 * m/amdx86-64.h (NO_UNION_TYPE):
12318 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12319 defining it the same.
12320
123212008-07-10 Chong Yidong <cyd@stupidchicken.com>
12322
12323 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12324
123252008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12326
12327 * fileio.c:
50426a04 12328 * sysdep.c:
aac0c6e3
MR
12329 * systty.h:
12330 * m/ibmrs6000.h:
12331 * m/iris4d.h:
12332 * s/aix4-2.h:
12333 * s/freebsd.h:
12334 * s/gnu-linux.h:
12335 * s/hpux10-20.h:
12336 * s/hpux11.h:
12337 * s/netbsd.h:
12338 * s/sol2-3.h:
12339 * s/sol2-4.h:
12340 * s/sol2.h:
12341 * s/usg5-4.h:
12342 * s/vms.h: Remove references to unused variables.
12343
123442008-07-10 Andreas Schwab <schwab@suse.de>
12345
12346 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12347 pattern before matching the generic family.
12348
123492008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12350
12351 * unexec.c:
12352 * s/vms.h:
12353 * s/usg5-4-2.h:
12354 * s/sol2-5.h:
12355 * s/freebsd.h:
12356 * s/darwin.h: Remove dead code.
12357
12358 * m/template.h:
12359 * m/sparc.h:
12360 * m/mips.h:
12361 * m/m68k.h:
12362 * m/iris4d.h:
12363 * m/intel386.h:
12364 * m/ibms390x.h:
12365 * m/ibms390.h:
12366 * m/ia64.h:
12367 * m/hp800.h:
12368 * m/arm.h:
12369 * m/amdx86-64.h: Remove dead code and references to unused
12370 and compiler defined symbols.
12371
12372 * unexmips.c:
12373 * unexelf.c: Remove references to desupported systems.
12374
12375 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12376
12377 * m/powermac.h: Remove boilerplate comments.
12378 (NO_REMAP): Remove unused definition.
12379
12380 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12381 define them.
12382
123832008-07-10 Kenichi Handa <handa@m17n.org>
12384
12385 * xfont.c (xfont_open): Log the reason of failure.
12386
123872008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12388
12389 * fontset.c (fontset_get_font_group):
12390 * font.c (font_check_otf): Specify argument types.
12391
123922008-07-09 Kenichi Handa <handa@m17n.org>
12393
12394 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12395 non-ASCII char is found.
12396
12397 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12398 (reorder_font_vector): Change the arg preferred_family to font.
12399 Prefer the spec matching with font.
12400 (fontset_get_font_group): New function.
12401 (fontset_find_font): Change the format of an element of a realized
12402 fontset. Use fontset_get_font_group.
12403 (fontset_font): Try the current fontset, the default fontset, the
12404 fallbacks of the current fontset, and the fallbacks of the default
12405 fontset in this order.
12406 (face_for_char): Delete the shortcut to use the current font.
12407 (fontset_from_font): Don't set fonts for Latin in the fontset.
12408
12409 * font.h (font_make_object, font_match_p): Adjust prototypes.
12410
12411 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12412
12413 * font.c (font_make_object): New arg entity and pixelsize.
12414 (font_check_otf_features, font_check_otf): New functions.
12415 (font_match_p): Check :lang, :script, and :otf properties.
12416
12417 * xfont.c (xfont_open): Adjust it for the change of
12418 font_make_object.
12419 (xfont_text_extents): Fix initial setting of metrics.
12420
12421 * ftfont.c (struct ftfont_info): New member index, delete member
12422 fc_charset_idx. Make the member order compatible with struct
12423 xftfont_info.
12424 (fc_charset_table): Change charset names to registry names.
12425 (ftfont_pattern_entity): Delete the args registry and
12426 fc_charset_idx. Change the value of :font-entity property
12427 to (FONTNAME . INDEX). Always set :registry property to
12428 `iso10646-1'.
12429 (struct ftfont_cache_data): New struct.
12430 (ftfont_lookup_cache): New arg for_face.
12431 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12432 (ftfont_driver): Set the member otf_capability.
12433 (ftfont_get_charset): Adjust it for the change of
12434 fc_charset_table.
12435 (OTF_TAG_SYM): New macro.
12436 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12437 for the change of fc_charset_table.
12438 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12439 ftfont_pattern_entity. Add FC_INDEX to objset.
12440 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12441 and ftfont_pattern_entity.
12442 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12443 font_make_object, struct ftfont_info.
12444 (ftfont_has_char): Use ftfont_get_fc_charset.
12445 (ftfont_otf_features, ftfont_otf_capability): New functions.
12446 (ftfont_shape): Use ftfont_get_otf.
12447 (ftfont_text_extents): Fix initial setting of metrics.
12448
12449 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12450 member order compatible with struct ftfont_info.
12451 (xftfont_open): Add FC_CHARSET to the pattern. Set
12452 xftfont_info->ft_size. Don't unlock the face. Check BDF
12453 properties if appropriate.
12454 (xftfont_close): Unlock the face.
12455 (xftfont_anchor_point, xftfont_shape): Deleted.
12456 (syms_of_xftfont): Don't set members anchor_point and shape of
12457 xftfont_driver.
12458
12459 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12460 font_make_object.
12461
12462 * w32font.c (w32font_open): Adjust it for the change of
12463 font_make_object.
12464 (w32font_open_internal): Don't set properties of font_object here.
12465
124662008-07-08 Chong Yidong <cyd@stupidchicken.com>
12467
12468 * macfns.c (x_create_tip_frame):
12469 * w32fns.c (x_create_tip_frame):
12470 * xfns.c (x_create_tip_frame): Pass parameter argument to
12471 face-set-after-frame-default.
12472
12473 * xfaces.c (Finternal_merge_in_global_face): Save merged
12474 attributes for the default face back into the face vector.
12475
124762008-07-08 Andreas Schwab <schwab@suse.de>
12477
12478 * fontset.h: Declare fontset_from_font. Don't declare
12479 new_fontset_from_font and fontset_from_font_name.
12480 * xterm.c: Include "fontset.h".
12481 * Makefile.in (xterm.o): Update dependencies.
12482
124832008-07-08 Glenn Morris <rgm@gnu.org>
12484
12485 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12486 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12487
124882008-07-07 Chong Yidong <cyd@stupidchicken.com>
12489
12490 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12491 (x_set_frame_parameters): Don't bind it.
12492
124932008-07-07 Juanma Barranquero <lekktu@gmail.com>
12494
12495 * w32fns.c (map_w32_filename): Declare extern.
12496
124972008-07-07 Jason Rumney <jasonr@gnu.org>
12498
12499 * w32term.c (WS_EX_LAYERED): Define if not already.
12500
125012008-07-06 Chong Yidong <cyd@stupidchicken.com>
12502
12503 * xfaces.c (set_font_frame_param): Don't try to set the font
12504 parameter if it is still unspecified in the lface.
12505
125062008-07-05 Chong Yidong <cyd@stupidchicken.com>
12507
12508 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
12509 face if it didn't already exist.
12510
12511 * xdisp.c (try_window_id): Give up if word-wrapping is on.
12512
125132008-07-05 Andreas Schwab <schwab@suse.de>
12514
12515 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
12516
125172008-07-05 Chong Yidong <cyd@stupidchicken.com>
12518
12519 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
12520 word-wrapping.
12521 (IT_DISPLAYING_WHITESPACE): New macro.
12522 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
12523 when word-wrapping. Simplify word-wrapping logic. Use correct
12524 pixel positions when saving copies of the iterator.
12525 (display_line): Use proper wrap point if the last character on a
12526 line was preceded by whitespace.
12527
125282008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
12529
12530 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
12531
125322008-07-04 Kenichi Handa <handa@m17n.org>
12533
12534 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
12535
12536 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
12537
125382008-07-02 Jason Rumney <jasonr@gnu.org>
12539
12540 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 12541 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
12542
12543 * xdisp.c (next_element_from_display_vector): Move assignment out
12544 of if statement.
12545
125462008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12547
12548 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12549
12550 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12551 (syms_of_fileio): Initialize and export them.
12552 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12553
12554 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12555 (Fsystem_move_file_to_trash): New function.
12556 (syms_of_w32fns): Export it to lisp.
12557
125582008-07-01 Jason Rumney <jasonr@gnu.org>
12559
12560 * w32font.c (w32font_text_extents): Don't count overhang as part
12561 of width.
12562
125632008-06-30 Miles Bader <miles@gnu.org>
12564
12565 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12566 Add `avoid_cursor_p' field.
12567
12568 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12569 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12570 (append_glyph, append_composite_glyph, produce_image_glyph)
12571 (append_stretch_glyph): Initialize avoid_cursor_p.
12572 (get_it_property): Rename from `get_line_height_property'.
12573 (x_produce_glyphs): Use get_it_property.
12574 (handle_line_prefix, push_display_prop): New functions.
12575 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12576 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12577 New variables.
12578 (syms_of_xdisp): Initialize them.
12579
125802008-06-30 Kenichi Handa <handa@m17n.org>
12581
12582 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12583 XftDefaultSubstitute (they are called in XftFontMatch).
12584 (xftfont_open): Fix args to ftfont_font_format.
12585
12586 * ftfont.c (fc_charset_table): New member lang.
12587 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 12588 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
12589 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12590 (ftfont_open): Fix args to ftfont_font_format.
12591 (ftfont_font_format): New arg filename.
12592
125932008-06-30 Chong Yidong <cyd@stupidchicken.com>
12594
12595 * xfaces.c (Finternal_merge_in_global_face): If default face was
12596 modified, realize it again. Update the font face attribute.
12597
125982008-06-29 Jason Rumney <jasonr@gnu.org>
12599
12600 * w32term.c (x_set_frame_alpha): Fix logic.
12601
126022008-06-29 Kenichi Handa <handa@m17n.org>
12603
12604 * fontset.c (Finternal_char_font): Return font-object instead of
12605 font-name.
12606
12607 * composite.c (get_composition_id): Fix the width calculation for TAB.
12608
126092008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12610
12611 * indent.c (Fvertical_motion): Properly handle float column arg.
12612
126132008-06-28 Jason Rumney <jasonr@gnu.org>
12614
12615 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12616 (pfnSetLayeredWindowAttributes): New function pointer.
12617 (w32_initialize): Initialize it when supported.
12618 (x_set_frame_alpha): New function.
12619
12620 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12621 (w32_frame_parm_handlers): Set alpha handler.
12622
12623 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12624
126252008-06-27 Jason Rumney <jasonr@gnu.org>
12626
12627 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12628 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12629 (w32_to_x_charset, x_to_w32_charset)
12630 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12631 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12632 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12633 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12634 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12635 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12636 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12637 (Qw32_charset_unicode): Remove.
12638 (syms_of_w32fns): Update for above changes.
12639
12640 * w32font.c (w32_to_x_charset, x_to_w32_charset)
12641 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12642 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12643 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12644 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12645 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12646 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12647 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
12648 (syms_of_w32font): Update for above changes.
12649
126502008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
12651
12652 * s/usg5-4.h: Fix previous change: keep the correct branch of a
12653 removed #if.
12654 (USG_SHARED_LIBRARIES): Remove duplicate definition.
12655
126562008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 12657 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
12658
12659 * makefile.w32-in (LOCAL_FLAGS):
12660 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
12661
12662 * sysdep.c (_spawnlp, _getpid):
12663 Declare with explicit _cdecl instead of _CRTAPI1.
12664
12665 * editfns.c (Fget_internal_run_time):
12666 Check for WINDOWSNT with #ifdef, not #if.
12667
126682008-06-26 Jason Rumney <jasonr@gnu.org>
12669
12670 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
12671
12672 * w32term.c (x_draw_glyph_string_foreground)
12673 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
12674 Use FONT_HANDLE macro.
12675 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
12676
12677 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12678 (uniscribe_encode_char): Use FONT_HANDLE macro.
12679
12680 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
12681 (w32font_text_extents): Use precast w32_font.
12682 (w32font_close): Free cached metrics.
12683 (w32font_open_internal): Allocate space for name on stack.
12684
126852008-06-26 Chong Yidong <cyd@stupidchicken.com>
12686
12687 * xdisp.c (extend_face_to_end_of_line): Fix last change.
12688
126892008-06-26 Jason Rumney <jasonr@gnu.org>
12690
12691 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
12692 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
12693
126942008-06-26 Juanma Barranquero <lekktu@gmail.com>
12695
12696 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
12697
126982008-06-26 Jason Rumney <jasonr@gnu.org>
12699
12700 * w32bdf.c, w32bdf.h: Remove obsolete files.
12701
12702 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
12703
12704 * w32gui.h: Don't include w32bdf.h.
12705 (XCharStruct, enum w32_char_font_type, W32FontStruct):
12706 Remove obsolete font support.
12707
12708 * w32font.h (struct w32font_info): Remove compat_w32_font.
12709 Add hfont member.
12710 (FONT_COMPAT): Remove obsolete macro.
12711
12712 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
12713 (w32font_encode_char, w32font_text_extents): Use new hfont member.
12714 (w32font_open_internal): Remove compat code. Set new hfont member.
12715 (Fx_select_font): Use new hfont member.
12716
12717 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12718 (uniscribe_encode_char): Use new hfont member.
12719
12720 * w32term.c (x_draw_glyph_string_foreground)
12721 (x_draw_composite_glyph_string_foreground): Use new hfont member.
12722 (x_draw_glyph_string): Use metrics in w32font_info.
12723
127242008-06-26 Kenichi Handa <handa@m17n.org>
12725
12726 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
12727
127282008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
12729
12730 * unexnext.c:
12731 * m/ews4800.h:
12732 * m/hp9000s300.h:
12733 * m/ibm370aix.h:
12734 * m/mips-siemens.h:
12735 * m/ncr386.h:
12736 * m/next.h:
12737 * m/pmax.h:
12738 * m/powerpcle.h:
12739 * m/tandem-s2.h:
12740 * s/386bsd.h:
12741 * s/bsd386.h:
12742 * s/bsd4-1.h:
12743 * s/bsd4-2.h:
12744 * s/bsdos2-1.h:
12745 * s/bsdos2.h:
12746 * s/bsdos3.h:
12747 * s/bsdos4.h:
12748 * s/nextstep.h:
12749 * s/ultrix4-3.h:
12750 * s/usg5-0.h:
12751 * s/usg5-2-2.h:
12752 * s/usg5-2.h:
12753 * s/usg5-4-3.h:
12754 * s/ux4800.h:
12755 * s/uxpds.h:
12756 * s/uxpv.h: Remove support for obsolete systems.
12757 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 12758 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
12759 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
12760 Remove, insert contents in s/aix4-2.h.
12761 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
12762 * s/bsd4-3.h: Rename to ...
12763 * s/bsd-common.h: ... this.
12764 * data.c:
12765 * doc.c:
12766 * ecrt0.c:
12767 * emacs.c:
12768 * fileio.c:
12769 * floatfns.c:
12770 * keyboard.c:
12771 * mem-limits.h:
12772 * print.c:
12773 * process.c:
12774 * sysdep.c:
12775 * syssignal.h:
12776 * systty.h:
12777 * syswait.h:
12778 * term.c:
12779 * unexec.c:
12780 * unexelf.c:
12781 * unexhp9k800.c:
12782 * m/hp800.h:
12783 * m/ibmrs6000.h:
12784 * m/mips.h:
12785 * m/vax.h:
12786 * s/darwin.h:
12787 * s/freebsd.h:
12788 * s/gnu.h:
12789 * s/ms-w32.h:
12790 * s/msdos.h:
12791 * s/netbsd.h:
12792 * s/template.h: Remove references to obsolete variables.
12793
12794 * Makefile.in: Add dependencies for all unexec files.
12795 (admindir): Remove unused variable.
12796 (UNEXEC_SRC): Remove references.
12797
127982008-06-25 Chong Yidong <cyd@stupidchicken.com>
12799
12800 * xfns.c (x_default_font_parameter): If Xft is available, first
12801 try Monospace-12 for the default font.
12802
128032008-06-25 Jason Rumney <jasonr@gnu.org>
12804
12805 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12806
128072008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12808
12809 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12810
12811 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12812
128132008-06-25 Juanma Barranquero <lekktu@gmail.com>
12814
12815 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12816 <scroll-conservatively>: Fix typo in docstring.
12817
12818 * xselect.c (Fx_send_client_event): Doc fix.
12819
128202008-06-25 Kenichi Handa <handa@m17n.org>
12821
12822 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12823
12824 * font.c (font_parse_fcname): Remove unused variables.
12825 (font_sort_entites): Delete the arg SPEC. Caller changed.
12826 Fix for the case of ! best_only.
12827 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12828
12829 * lisp.h (Fstring_to_unibyte): EXFUN it.
12830
12831 * character.h (str_to_unibyte): Extern it.
12832
12833 * character.c (str_to_unibyte): New function.
12834
12835 * fns.c (Fstring_to_unibyte): New function.
12836 (syms_of_fns): Defsubr it.
12837
128382008-06-24 Kenichi Handa <handa@m17n.org>
12839
12840 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12841 DPI too.
12842 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12843
128442008-06-24 Andreas Schwab <schwab@suse.de>
12845
12846 * Makefile.in (${lispsource}loaddefs.el): Rename from
12847 ../lisp/loaddefs.el.
12848 (bootstrap-clean): Do what distclean does but don't remove
12849 Makefile.
12850 (distclean): Depend on bootstrap-clean and remove Makefile.
12851
128522008-06-24 Chong Yidong <cyd@stupidchicken.com>
12853
12854 * buffer.h (struct buffer): New member word_wrap.
12855
12856 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12857 word-wrap.
12858 (init_buffer_once): Initialize them.
12859
12860 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12861 line_wrap enum possessing three possible values.
12862
12863 * termopts.h: Replace truncate_partial_width_windows with
12864 Vtruncate_partial_width_windows.
12865
12866 * dispnew.c (direct_output_for_insert): Avoid direct output when
12867 inserting a space with word wrap on.
12868
12869 * indent.c (compute_motion): Obey integer values of
12870 truncate-partial-width-windows.
12871
12872 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12873 replacing truncate_partial_width_windows.
12874 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12875 truncate only if the window width is below that integer.
12876 (start_display, resize_mini_window, produce_stretch_glyph)
12877 (display_string, move_it_in_display_line_to): Use line_wrap.
12878 (back_to_previous_visible_line_start, reseat_1): Reset
12879 string_from_display_prop_p.
12880 (display_line): Extend default face to end of line when wrapping.
12881
128822008-06-24 Kim F. Storm <storm@cua.dk>
12883
12884 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12885 to wrap continued lines at word boundaries.
12886
128872008-06-24 Jason Rumney <jasonr@gnu.org>
12888
12889 * font.c (Ffont_face_attributes): Multiply pixel size before point
12890 conversion to avoid multiplying rounding error.
12891
128922008-06-23 Jason Rumney <jasonr@gnu.org>
12893
12894 * w32term.c (x_draw_glyph_string_background)
12895 (x_draw_glyph_string): Remove old bdf font code.
12896
12897 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12898
128992008-06-22 Kenichi Handa <handa@m17n.org>
12900
12901 * font.c (font_find_for_lface): Try the adstyle specified in
12902 the property of LFACE_FONT of LFACE (if any).
12903
129042008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12905 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12906
12907 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12908
129092008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12910
12911 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12912 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12913 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12914 (witness-emacs): Remove.
12915 (lisp, shortlisp): Move loaddefs.el earlier.
12916 (mostlyclean): Forget about witness-emacs.
12917
129182008-06-22 Glenn Morris <rgm@gnu.org>
12919
12920 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12921 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12922
129232008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12924
12925 * Makefile.in (PRECOMP): Remove.
12926 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12927 (witness-emacs): Run `compile-first'.
12928 (.el.elc): Use the new compile-onefile target.
12929
129302008-06-21 Kenichi Handa <handa@m17n.org>
12931
12932 * xftfont.c (xftfont_open): Handle QCembolden only when
12933 FC_EMBOLDEN is defined.
12934
129352008-06-21 Andreas Schwab <schwab@suse.de>
12936
12937 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12938 (.el.elc): Likewise.
12939
129402008-06-21 Miles Bader <miles@gnu.org>
12941
12942 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12943 build dir, not the lisp source dir.
12944
129452008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12946
12947 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12948 (bootstrapclean): Remove.
12949 (.el.elc): New rule.
12950 (PRECOMP): New var.
12951 (../lisp/subdirs.el): Remove.
12952 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12953 (witness-emacs): New target.
12954 (mostlyclean): Remove witness-emacs as well.
12955 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12956 Add witness-emacs dependency.
12957
129582008-06-20 Chong Yidong <cyd@stupidchicken.com>
12959
12960 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12961 defined by the font.
12962
129632008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12964
12965 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12966 (bootstrap-clean): New target that keeps TAGS around.
12967 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12968 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12969
129702008-06-20 Jason Rumney <jasonr@gnu.org>
12971
12972 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12973 Remove obsolete font code.
12974
12975 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12976 to determine language support.
12977
129782008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12979
12980 * sysdep.c (cfsetspeed): New fun extracted from the code.
12981 (cfmakeraw): Move before first use.
12982
129832008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12984
12985 * sysdep.c (cfmakeraw): Provide fallback implementation.
12986 (serial_configure): Provide fallback implementation of cfsetspeed.
12987
129882008-06-20 Kenichi Handa <handa@m17n.org>
12989
12990 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12991 the pattern.
12992
12993 * fontset.c (fontset_from_font): Copy font_spec before changing
12994 the elements.
12995
12996 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
12997
129982008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12999
13000 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13001 for explicit `font' parameters.
13002
13003 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13004
130052008-06-19 Kenichi Handa <handa@m17n.org>
13006
13007 * frame.c: Include <ctype.h>.
13008 (x_set_font_backend): Allow spacing characters in the X resource
13009 for FontBackend.
13010
130112008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13012
13013 * w32fns.c, xfns.c (Qfont_param): New var.
13014 (syms_of_w32fns): Initialize it.
13015 (x_default_font_parameter): Record explicit `font' into
13016 `font-parameter'.
13017
130182008-06-18 Kenichi Handa <handa@m17n.org>
13019
13020 * font.c (font_parse_xlfd): Fix previous change.
13021 (font_parse_fcname): Don't use :fc-unknown-spec.
13022 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13023 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13024 (font_add_log): Prepend the driver name to the resulting fonts.
13025
13026 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13027 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13028 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13029
13030 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13031 (QCembolden): New variables.
13032 (syms_of_xftfont): DEFSYM them.
13033 (xftfont_open): Call XftFontMatch. Don't trust the result of
13034 XftTextExtents8 if the pixel_size is less than 5.
13035
130362008-06-18 Andreas Schwab <schwab@suse.de>
13037
13038 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13039 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13040
130412008-06-18 Jason Rumney <jasonr@gnu.org>
13042
13043 * w32font.c (w32font_list, w32font_match): Add logging.
13044
13045 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13046
130472008-06-17 Chong Yidong <cyd@stupidchicken.com>
13048
13049 * font.c (font_parse_fcname): Store divider characters for
13050 unknown-spec list. For known key symbols, intern using correct
13051 symbol name.
13052
130532008-06-17 Kenichi Handa <handa@m17n.org>
13054
13055 * xfaces.c (realize_default_face): If the frame is not on window
13056 system, set the fontset of face to nil.
13057
130582008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13059
13060 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13061
130622008-06-16 Juanma Barranquero <lekktu@gmail.com>
13063
13064 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13065 (build_font_name_from_vector): Delete externs.
13066
13067 * xfaces.c (struct font_name): Don't declare.
13068
130692008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13070
13071 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13072
130732008-06-16 Chong Yidong <cyd@stupidchicken.com>
13074
13075 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13076
130772008-06-16 Juanma Barranquero <lekktu@gmail.com>
13078
13079 * font.c (Ffont_spec): Fix usage in docstring.
13080 (Ffont_face_attributes): Doc fix.
13081
130822008-06-16 Andreas Schwab <schwab@suse.de>
13083
13084 * font.c (Ffont_face_attributes): Fix definition.
13085
130862008-06-16 Jason Rumney <jasonr@gnu.org>
13087
13088 * font.h (font_style_symbolic_from_value): Remove.
13089
13090 * font.c (font_style_symbolic_from_value): Remove.
13091 (font_style_symbolic): Revert to pre 2008-06-13 version.
13092
13093 * w32font.c (w32_to_fc_weight): New function.
13094 (w32font_full_name, logfont_to_fcname): Use it.
13095
130962008-06-16 Kenichi Handa <handa@m17n.org>
13097
13098 * font.c (font_check_object): Delete it.
13099 (font_clear_cache): Check if a font-object is alive.
13100 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13101 font-object to nil.
13102 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13103 (font_at): Don't call font_check_object.
13104 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13105
131062008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13107
13108 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13109
131102008-06-16 Chong Yidong <cyd@stupidchicken.com>
13111
13112 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13113
131142008-06-15 Chong Yidong <cyd@stupidchicken.com>
13115
13116 * font.c (font_parse_fcname): Only one decimal point.
13117 (font_unparse_fcname): Handle data in family and foundry indices
13118 as symbols, not strings.
13119 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13120
13121 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13122
13123 * font.h (font_unparse_gtkname): Add prototype.
13124
131252008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13126
13127 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13128
131292008-06-15 Andreas Schwab <schwab@suse.de>
13130
13131 * font.c (font_update_drivers): Fix crash when no drivers match.
13132
131332008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13134
13135 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13136 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13137
131382008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13139
13140 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13141
131422008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13143
13144 * process.c (Fserial_process_configure, Fprocess_send_eof):
13145 Use EQ to compare Lisp_Objects.
13146
131472008-06-13 Jason Rumney <jasonr@gnu.org>
13148
13149 * w32fns.c (Fw32_select_font): Remove old font API function.
13150
13151 * w32font.c (logfont_to_fcname): New function.
13152 (Fx_select_font): New font dialog function compatible with
13153 GTK/fontconfig version.
13154
13155 * font.c (font_style_symbolic_from_value): New function.
13156 (font_style_symbolic): Use it.
13157
13158 * font.h (font_style_symbolic_from_value): Declare new function.
13159
131602008-06-13 Juanma Barranquero <lekktu@gmail.com>
13161
13162 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13163 <font-width-table>: Fix typos in docstrings.
13164
131652008-06-13 Daniel Engeler <engeler@gmail.com>
13166
13167 These changes add serial port access.
13168 * process.c: Add HAVE_SERIAL.
13169 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13170 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13171 (list_processes_1, select_wrapper, Fstop_process)
13172 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13173 (status_notify): Modify to handle serial processes.
13174 [HAVE_SERIAL] (Fserial_process_configure)
13175 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13176 New functions.
13177 * process.h (struct Lisp_Process): Add `type'.
13178 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13179 New functions.
13180 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13181 serial ports.
b71ac3dd 13182 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13183 * w32.h: Add FILE_SERIAL.
13184 (struct _child_process): Add ovl_read, ovl_write.
13185
131862008-06-13 Kenichi Handa <handa@m17n.org>
13187
13188 * dispextern.h (enum lface_attribute_index): New member
13189 LFACE_FOUNDRY_INDEX.
13190
13191 * font.c (font_score): Delete arg alternate_families. Check only
13192 weight, slant, width, and size. Ignore the difference of alias
13193 style symbols.
13194 (font_sort_entites): Adjust for the above change. Reflect the
13195 order of font-driver to scores.
13196 (font_list_entities): Don't check alternate_familes here.
13197 (font_clear_prop): Handle foundry.
13198 (font_update_lface): Don't parse "foundry-family" form here.
13199 Handle FONT_FOUNDRY_INDEX.
13200 (font_find_for_lface): Likewise. Handle alternate families here.
13201 If registry is nil, try iso8859-1 and ascii-0.
13202 (font_open_for_lface): Pay attention to size in ENTITY.
13203 (font_open_by_name): Simplify by calling font_load_for_lface.
13204 (free_font_driver_list): Delete it.
13205 (font_update_drivers): Preserve the order of backends.
13206 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13207 of font_score and font_sort_entites.
13208 (font_update_sort_order): Likewise.
13209
13210 * xfaces.c (LFACE_FOUNDRY): New macro.
13211 (check_lface_attrs): Check foundry.
13212 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13213 (merge_face_vectors): Check foundry.
13214 (merge_face_ref): Likewise.
13215 (Finternal_set_lisp_face_attribute): Likewise.
13216 (x_update_menu_appearance): Likewise.
13217 (Finternal_get_lisp_face_attribute): Likewise.
13218 (lface_hash): Likewise.
13219 (lface_same_font_attributes_p): Likewise.
13220 (x_supports_face_attributes_p): Likewise.
13221 (tty_supports_face_attributes_p): Likewise.
13222 (Finternal_set_alternative_font_family_alist): Intern strings.
13223 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13224 (realize_default_face): Set LFACE_FOUNDRY (lface).
13225
13226 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13227 font-driver at first.
13228
13229 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13230
132312008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13232
13233 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13234
132352008-06-12 Jim Meyering <meyering@redhat.com>
13236
13237 Make unexec_free handle NULL the same way free does.
13238 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13239
132402008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13241
13242 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13243 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13244 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13245 (WEAK_ALIAS): Simplify.
13246 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13247 when searching a unibyte buffer.
13248
132492008-06-12 Chong Yidong <cyd@stupidchicken.com>
13250
13251 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13252
132532008-06-12 Juanma Barranquero <lekktu@gmail.com>
13254
13255 * w32font.c: Include ctype.h.
13256
132572008-06-11 Jason Rumney <jasonr@gnu.org>
13258
13259 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13260 misreported as space.
13261 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13262 as aliases for registry iso10646-1.
13263
132642008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13265
13266 * buffer.c (clone_per_buffer_values): Skip `name'.
13267
132682008-06-11 Chong Yidong <cyd@stupidchicken.com>
13269
13270 * font.c (font_parse_fcname): Fix last change; accept decimal
13271 points in font size.
13272
132732008-06-10 Jason Rumney <jasonr@gnu.org>
13274
13275 * w32uniscribe.c (add_opentype_font_name_to_list):
13276 Skip non unicode fonts.
13277
132782008-06-10 Chong Yidong <cyd@stupidchicken.com>
13279
13280 * xfns.c (Fx_font_dialog): New function.
13281
13282 * gtkutil.c (xg_dialog_response_cb): Rename from
13283 xg_file_response_callback.
13284 (pop_down_dialog): Rename from pop_down_file_dialog.
13285 (xg_get_file_name): Callers changed.
13286 (xg_get_font_name): New function.
13287
13288 * gtkutil.h (xg_get_font_name): Insert prototype.
13289
132902008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13291
13292 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13293 x_underline_minimum_display_offset.
13294 (syms_of_xdisp): Declare it here rather than in xterm.c.
13295 * dispextern.h (underline_minimum_offset): Declare it.
13296 * w32term.c (x_draw_glyph_string): Use it.
13297 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13298 (syms_of_xterm): Don't declare it any more.
13299 (x_draw_glyph_string): Adjust to the new name.
13300
8719abec 133012008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13302
13303 * xterm.c (x_underline_minimum_display_offset): New var.
13304 (x_draw_glyph_string): Use it.
13305 (syms_of_xterm): Declare it.
13306
133072008-06-10 Chong Yidong <cyd@stupidchicken.com>
13308
13309 * font.c (font_parse_fcname): Accept GTK-style font names too.
13310
133112008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13312
13313 * dired.c (file_name_completion): Don't return t if the match is exact
13314 but with different capitalization.
13315 * minibuf.c (Ftry_completion): Simplify.
13316
13317 * window.c (Vwindow_point_insertion_type): New var.
13318 (set_window_buffer): Use it.
13319 (syms_of_window): Init and export it to Lisp.
13320
133212008-06-10 Kenichi Handa <handa@m17n.org>
13322
13323 * font.h (font_intern_prop): Prototype adjusted.
13324
13325 * font.c (font_intern_prop): New arg force_symbol.
13326 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13327 Adjust for the change of font_intern_prop.
13328
13329 * ftfont.c (ftfont_pattern_entity):
13330 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13331 (w32_registry):
13332 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13333 the change of font_intern_prop.
13334
133352008-06-09 Juanma Barranquero <lekktu@gmail.com>
13336
13337 * w32menu.c (digest_single_submenu): Declare extern.
13338
133392008-06-09 Jason Rumney <jasonr@gnu.org>
13340
13341 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13342
13343 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13344 (parse_single_submenu): Remove.
13345 (digest_single_submenu): Remove.
13346 (syms_of_w32menu): Don't initialise variables that have moved
13347 to menu.c.
13348 (set_frame_menubar): Sync with version in xmenu.c.
13349 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13350
13351 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13352 Make static again.
13353
133542008-06-09 Jason Rumney <jasonr@gnu.org>
13355
13356 Changes to w32 files related to the move of common menu code
13357 to menu.c on 2008-06-08 by Chong Yidong.
13358
13359 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13360 defs to w32gui.h.
13361 (single_keymap_panes, push_menu_item, push_menu_pane):
13362 Make globally visible.
13363
13364 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13365 (local_free, malloc_widget_value, free_widget_value)
13366 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13367 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13368 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13369 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13370 (menu_items, menu_items_allocated, menu_items_used)
13371 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13372 (init_menu_items, finish_menu_items, discard_menu_items)
13373 (grow_menu_items, push_submenu_start, push_submenu_end)
13374 (push_left_right_boundary, push_menu_pane, push_menu_item)
13375 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13376 (free_menubar_widget_tree_value, parse_single_submenu)
13377 (update_submenu_strings): Remove functions.
13378 (xmalloc_widget_value): Remove and declare extern.
13379
13380 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13381 (OBJ1): Build it.
13382
13383 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13384 (local_heap, local_alloc, local_free, malloc_widget_value)
13385 (free_widget_value): Define here.
13386
133872008-06-09 Kenichi Handa <handa@m17n.org>
13388
13389 * font.h (Qascii_0): Extern it.
13390
13391 * font.c (Qascii_0): New variable.
13392 (syms_of_font): DEFSYM it.
13393 (font_open_by_name): If the registry "iso8859-1" fails, try also
13394 "ascii-0".
13395
13396 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13397
133982008-06-08 Kenichi Handa <handa@m17n.org>
13399
13400 * .gdbinit (xfont): New command.
13401
134022008-06-08 Andreas Schwab <schwab@suse.de>
13403
13404 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13405 * Makefile.in (menu.o): Update dependencies.
13406
13407 * Makefile.in (obj): Always add menu.o.
13408 * emacs.c (main): Always call syms_of_menu.
13409 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13410
134112008-06-08 Chong Yidong <cyd@stupidchicken.com>
13412
13413 * Makefile.in: Compile menu.c.
13414
13415 * lisp.h: Declare syms_of_menu.
13416
13417 * emacs.c (main): Call syms_of_menu.
13418
13419 * keyboard.h: Relocate platform-independent menu definitions from
13420 xmenu.c.
13421
13422 * menu.c: New file. Relocate platform-independent menu
13423 definitions from xmenu.c. Suggested by Adrian Robert.
13424
13425 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 13426 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
13427 (menu_items_used, menu_items_n_panes)
13428 (menu_items_submenu_depth): Move to keyboard.h.
13429 (init_menu_items, finish_menu_items, unuse_menu_items)
13430 (discard_menu_items, restore_menu_items, save_menu_items)
13431 (grow_menu_items, push_submenu_start, push_submenu_end)
13432 (push_left_right_boundary, push_menu_pane, push_menu_item)
13433 (keymap_panes, single_keymap_panes, single_menu_item)
13434 (list_of_panes, list_of_items, find_and_call_menu_selection)
13435 (xmalloc_widget_value, free_menubar_widget_value_tree)
13436 (parse_single_submenu, digest_single_submenu)
13437 (update_submenu_strings): Move to menu.c.
13438
134392008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13440
13441 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13442
134432008-06-06 Miles Bader <miles@gnu.org>
13444
13445 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13446 face, not frame default.
13447
134482008-06-05 Martin Rudalics <rudalics@gmx.at>
13449
13450 * window.c (pop_up_windows, pop_up_frames)
13451 (display_buffer_reuse_frames, Vpop_up_frame_function)
13452 (Vdisplay_buffer_function, Veven_window_heights)
13453 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13454 (Vspecial_display_function, Vsame_window_buffer_names)
13455 (Vsame_window_regexps, split_height_threshold)
13456 (Vsplit_window_preferred_function): Move those vars to window.el.
13457 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13458 (Fdisplay_buffer): Move those functions to window.el.
13459 (syms_of_window): Remove corresponding declarations.
13460 (display_buffer): New function.
13461 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13462 * dispnew.c (Flast_nonminibuf_frame): New function.
13463 * buffer.c (Fpop_to_buffer): Move to window.el.
13464
134652008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13466
13467 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13468
134692008-06-05 Kenichi Handa <handa@m17n.org>
13470
13471 * coding.c (detect_coding): Fix previous change.
13472 (detect_coding_system): Likewise.
13473
134742008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13475
13476 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13477
13478 * keymap.c (Vminibuffer_local_filename_must_match_map):
13479 Rename from Vminibuffer_local_must_match_filename_map.
13480 (syms_of_keymap):
13481 * minibuf.c (Fcompleting_read): Adjust accordingly.
13482 * commands.h: Rename declaration as well.
13483
134842008-06-05 Kenichi Handa <handa@m17n.org>
13485
13486 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13487 family name.
13488 (Ffont_put): Likewise.
13489
13490 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13491 current font-spec.
13492
13493 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13494 is unspecified.
13495
13496 * xfaces.c (realize_x_face): If the font-related face attributes
13497 are the same as those of default face, realize a new fontset from
13498 default->fontset.
13499 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
13500
135012008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13502
13503 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
13504 (move_it_in_display_line): New wrapper.
13505
13506 * window.c (window_scroll_pixel_based_preserve_x)
13507 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
13508 (window_scroll_pixel_based, window_scroll_line_based):
13509 Use them to preserve column positions.
13510 (syms_of_window): Initialize them.
13511
13512 * indent.c (Fvertical_motion): Extend first arg to allow passing an
13513 (HPOS . VPOS) pair.
13514
13515 * dispextern.h (move_it_in_display_line): Declare.
13516
135172008-06-05 Juanma Barranquero <lekktu@gmail.com>
13518
13519 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
13520 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
13521 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
13522
135232008-06-04 Juanma Barranquero <lekktu@gmail.com>
13524
13525 * window.c (Fset_window_parameter): Doc fix.
13526 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
13527
135282008-06-04 Joakim Verona <joakim@verona.se>
13529
13530 * window.h (struct window): Add new member window_parameters.
13531
13532 * window.c (Fwindow_parameters, Fwindow_parameter)
13533 (Fset_window_parameter): New defuns.
13534 (syms_of_window): Defsubr the new defuns.
13535 (make_window): Initialize window_parameters to nil.
13536
135372008-06-04 John Paul Wallington <jpw@pobox.com>
13538
13539 * eval.c (Fdefmacro): Doc fix.
13540
135412008-06-04 Kenichi Handa <handa@m17n.org>
13542
13543 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13544 Be sure to call setup_coding_system when we find a proper coding system.
13545 (detect_coding_system): Fix handling of coding->head_ascii.
13546
135472008-06-03 Andreas Schwab <schwab@suse.de>
13548
13549 * font.c (font_prop_validate_spacing): Fix last change.
13550
135512008-06-03 Kenichi Handa <handa@m17n.org>
13552
13553 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13554 (font_parse_fcname): Fix handling of unknown key.
13555
13556 * xfont.c (xfont_list): Try an alias.
13557
13558 * charset.c (char_charset): Return NULL if the arg charset_list is
13559 specified and C doesn't belong to any of them.
13560
135612008-06-02 Chip Coldwell <coldwell@redhat.com>
13562
13563 * font.c (font_pixel_size): Don't take cdr of an integer.
13564
135652008-06-02 Jim Meyering <meyering@redhat.com>
13566
13567 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13568 * alloc.c (xfree): Return right away for a NULL arg.
13569 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13570 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13571 * mac.c (create_apple_event_from_event_ref): Likewise.
13572 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13573 Likewise.
13574 * doprnt.c (doprnt1): Likewise.
13575 * frame.c (frame): Likewise.
13576 * keyboard.c (wipe_kboard): Likewise.
13577 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13578 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13579 * term.c (tty_default_color_capabilities, maybe_fatal)
13580 (delete_tty): Likewise.
13581 * w16select.c (string): Likewise.
13582 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13583 * w32bdf.c (w32_free_bdf_font): Likewise.
13584 * w32fns.c (w32_unload_font): Likewise.
13585 * w32font.c (w32font_close): Likewise.
13586 * window.c (size_window): Likewise.
13587 * xselect.c (receive_incremental_selection): Likewise.
13588 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13589 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13590 * w32.c (stat): Likewise.
13591
13592 Remove useless if-before-free tests.
13593 * editfns.c (Fset_time_zone_rule): Likewise.
13594 * lread.c (nosuffix): Likewise.
13595 * ralloc.c (get_bloc): Likewise.
13596 * regex.c (reg_free): Likewise.
13597 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13598 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13599 * xsmfns.c (smc_save_yourself_CB): Likewise.
13600
136012008-06-02 Kenichi Handa <handa@m17n.org>
13602
13603 * font.c (font_find_for_lface): Handle float font size.
13604 (font_open_for_lface): Likewise.
13605
13606 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13607 comparing the properties.
13608
136092008-06-01 Jason Rumney <jasonr@gnu.org>
13610
13611 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13612 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13613 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13614 Don't add empty script list.
13615 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13616
136172008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13618
13619 * Makefile.in (dot, dotdot): Remove, update users.
13620 ".." has been used elsewhere in the file for a long time.
13621 (LIBXT_STATIC): Remove conditional based on unused variable.
13622
136232008-06-01 Miles Bader <miles@gnu.org>
13624
13625 * xfaces.c (Vface_remapping_alist): New variable.
13626 (syms_of_xfaces): Initialize it.
13627 (enum named_merge_point_kind): New type.
13628 (struct named_merge_point): Add `named_merge_point_kind' field.
13629 (push_named_merge_point): Make cycle detection respect different
13630 named-merge-point kinds.
13631 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13632 Remove face-name alias resolution.
13633 (lface_from_face_name): New definition using
13634 `lface_from_face_name_no_resolve'.
13635 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13636 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13637 (get_lface_attributes): New definition that layers face-remapping on
13638 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13639 (lookup_basic_face): New function.
13640 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
13641 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
13642 `get_lface_attributes'.
13643 (face_at_buffer_position): Use `lookup_basic_face' to lookup
13644 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
13645 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
13646
13647 * xdisp.c (init_iterator): Pass base_face_id through
13648 `lookup_basic_face' when we actually use it as a face-id.
13649 (handle_single_display_prop): Use `lookup_basic_face' to lookup
13650 DEFAULT_FACE_ID.
13651
13652 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
13653 lookup the initial face-id.
13654
13655 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
13656
136572008-06-01 Juanma Barranquero <lekktu@gmail.com>
13658
13659 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
13660 (Fremove_text_properties): Fix typos in docstrings.
13661
136622008-05-31 Kenichi Handa <handa@m17n.org>
13663
13664 * font.c (font_list_entities): Fix the car part of data to be
13665 stored in the cache.
13666
13667 * ftfont.c (ftfont_font_format): Don't use strcasestr.
13668
136692008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13670
13671 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
13672 Add a `test' argument so another predicate than `equal' can be used.
13673 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
13674 (map_char_table): Remove unused vars `c' and `i'.
13675 * lisp.h (Foptimize_char_table): Adjust declaration.
13676 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
13677
136782008-05-30 Kenichi Handa <handa@m17n.org>
13679
13680 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
13681 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
13682 defined.
13683
136842008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13685
13686 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13687 (Fmake_variable_frame_local): Disallow mixing buffer-local and
13688 frame-local settings for the same variable.
13689
136902008-05-30 Kenichi Handa <handa@m17n.org>
13691
13692 * fontset.c (Ffont_info): Move to font.c.
13693 (syms_of_fontset): Delete defsubr of Sfont_info.
13694
13695 * font.c (font_style_to_value, font_score): Delete casting of the
13696 args to xstcasecmp.
13697 (register_font_driver): Increment num_font_drivers only when
13698 registering the driver globally.
13699 (Ffont_info): Move from fontset.c. Handle a font object too.
13700 (syms_of_font): Defsubr Sfont_info.
13701
137022008-05-29 Kenichi Handa <handa@m17n.org>
13703
13704 * coding.h (enum define_coding_utf8_arg_index): New enum.
13705 (enum coding_attr_index): Change coding_attr_utf_16_bom to
13706 coding_attr_utf_bom.
13707 (enum utf_bom_type): Rename from utf_16_bom_type.
13708 (struct utf_16_spec): Adjust for the above change.
13709 (struct coding_system): Add utf_8_bom in `spec' union.
13710
13711 * coding.c (CODING_UTF_8_BOM): New macro.
13712 (enum coding_category): Delete coding_category_utf_8, add
13713 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
13714 coding_category_utf_8_sig.
13715 (CATEGORY_MASK_UTF_8): Delete it.
13716 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
13717 (CATEGORY_MASK_UTF_8_SIG): New macros.
13718 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
13719 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
13720 CATEGORY_MASK_UTF_8_SIG.
13721 (CATEGORY_MASK_UTF_8): New macro.
13722 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
13723 (detect_coding_utf_8): Check BOM.
13724 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
13725 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
13726 (encode_coding_utf_16): Likewise.
13727 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
13728 (detect_coding, detect_coding_system): Handle utf-8-auto.
13729 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
13730 (syms_of_coding): Fix setting up of Vcoding_category_table.
13731
137322008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
13733
13734 * process.c (Faccept_process_output): If `millisec' is non-nil,
13735 `seconds' default to 0.
13736 (wait_reading_process_output): Also return non-nil if we read output
13737 from a non-running process.
13738
137392008-05-29 Jason Rumney <jasonr@gnu.org>
13740
13741 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
13742 `raster' specified.
13743 (add_font_entity_to_list): Allow non-opentype truetype fonts back
13744 in the uniscribe backend, but disallow any font that has no
13745 unicode subrange support.
13746
137472008-05-29 Juanma Barranquero <lekktu@gmail.com>
13748
13749 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
13750 Fix typos in docstrings.
13751
137522008-05-29 Kenichi Handa <handa@m17n.org>
13753
13754 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
13755 (Fx_family_fonts): Set frame correctly.
13756
137572008-05-28 Jason Rumney <jasonr@gnu.org>
13758
13759 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
13760
137612008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13762
13763 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
13764 calling build_annotations.
13765
137662008-05-28 Juanma Barranquero <lekktu@gmail.com>
13767
13768 * coding.c (Fdecode_coding_region, Fencode_coding_region)
13769 (Fencode_coding_string):
13770 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
13771 <latin-extra-code-table>: Fix typos in docstrings.
13772 (syms_of_coding) <coding-system-alist>: Doc fix.
13773 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
13774
137752008-05-28 Kenichi Handa <handa@m17n.org>
13776
13777 * fontset.c (Ffont_info): Don't call font_close_object.
13778
13779 * font.c (font_parse_family_registry): Use Ffont_put to validate
13780 foundry and family.
13781 (font_delete_unmatched): Don't check spacing.
13782 (font_list_entities): Add spacing to the spec to list fonts.
13783
13784 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
13785 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
13786
13787 * coding.c (encode_coding_raw_text): Fix previous change.
13788 (encode_coding_object): When the dst_object is a buffer and is
13789 different from src_object, move gap to PT.
13790
137912008-05-27 Chong Yidong <cyd@stupidchicken.com>
13792
13793 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
13794
137952008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13796
13797 * coding.c (encode_coding_raw_text): Set coding->produced_char for
13798 all branches. Compute it differently.
13799
13800 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13801
138022008-05-27 Juanma Barranquero <lekktu@gmail.com>
13803
13804 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13805 into "else if () ... else ...".
13806
138072008-05-27 Jason Rumney <jasonr@gnu.org>
13808
13809 * w32font.c (w32font_open_internal): Determine if glyph indices
13810 are likely to work here.
13811
138122008-05-27 Chong Yidong <cyd@stupidchicken.com>
13813
13814 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13815 draw overlap glyphs with appropriate highlighting.
13816
138172008-05-27 Kenichi Handa <handa@m17n.org>
13818
13819 * xfont.c (xfont_open): Fix calculation of font->average_width.
13820
138212008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13822
13823 * casefiddle.c (casify_object): Try to guess better whether the
13824 argument is a byte or a char.
13825
138262008-05-26 Andreas Schwab <schwab@suse.de>
13827
13828 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13829 Always send multiples of format size.
13830
13831 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13832
138332008-05-26 Jason Rumney <jasonr@gnu.org>
13834
13835 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13836 (compute_metrics): Don't set failure if we just cleared the cache.
13837 (w32_weight_table): Remove unused variable.
13838 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13839 backwards compatibility.
13840
138412008-05-25 Kenichi Handa <handa@m17n.org>
13842
13843 * w32term.c (x_draw_glyph_string):
13844 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13845
13846 * xfaces.c: Delete unused function prototypes.
13847 (xstrlwr, font_frame): Delete them.
13848 (clear_face_cache): Delete unused variable.
13849
13850 * xftfont.c (xftfont_open): Delete unused variable.
13851 If underline_thickness is not 1, adjust underline_position.
13852
13853 * ftxfont.c (ftxfont_open): Delete unused variable.
13854
13855 * fontset.c (face_for_char): Optimize for the case of no charset
13856 property.
13857
13858 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13859 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13860 (otf_open, font_otf_capability, generate_otf_features)
13861 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13862 Comment out by surrounding "#if 0" and "#endif" for the moment.
13863 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13864 (syms_of_font): Codes for accessing above commented out.
13865
138662008-05-24 Eli Zaretskii <eliz@gnu.org>
13867
13868 * w32proc.c: Include dispextern.h.
13869
13870 * w32.c: Include dispextern.h.
13871
138722008-05-23 Juanma Barranquero <lekktu@gmail.com>
13873
13874 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13875 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13876 Fix typos in docstrings.
13877
138782008-05-23 Jason Rumney <jasonr@gnu.org>
13879
13880 * xsmfns.c: Remove includes that are already included by config.h.
13881
138822008-05-23 Kenichi Handa <handa@m17n.org>
13883
13884 * charset.c (Qemacs, charset_emacs): New variables.
13885 (char_charset): Fix for non-Unicode characters.
13886 (syms_of_charset): Define charset_emacs.
13887
13888 * w32term.c (x_draw_glyph_string): Be sure to update
13889 s->underline_thickness and s->underline_position. Be sure to draw
13890 underline within the current line area.
13891
13892 * xterm.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 * fontset.c: Delete unused variables and add casting for char *
13897 throughout the file.
13898 (fontset_font): Try the fallback fonts of the current fontset
13899 before consulting the default fontset.
13900
13901 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13902
13903 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13904
139052008-05-22 Jason Rumney <jasonr@gnu.org>
13906
13907 * font.c: Don't include strings.h.
13908
13909 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13910
13911 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13912 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13913 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13914 to call xstrcasecmp.
13915
13916 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13917
13918 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13919
13920 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13921
13922 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13923
139242008-05-22 Kenichi Handa <handa@m17n.org>
13925
13926 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13927
13928 * font.c (font_prop_validate_style): Adjust for the format
13929 change of font_style_table.
13930
13931 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13932 two args.
13933
13934 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13935 two args.
13936
139372008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13938
13939 * minibuf.c (keys_of_minibuf): Delete.
13940 * lisp.h (keys_of_minibuf): Delete.
13941 * emacs.c (main): Don't call keys_of_minibuf.
13942
139432008-05-22 Kenichi Handa <handa@m17n.org>
13944
13945 * ftfont.c (ftfont_resolve_generic_family): Rename from
13946 ftfont_list_generic_family. Return a single family for each
13947 generic family.
13948 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13949 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13950 Call font_add_log.
13951 (ftfont_match): Call font_add_log.
13952
13953 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13954 (FONT_DEBUG): Define it.
13955 (font_add_log): Extern it.
13956 (font_assert): Rename from xassert.
13957
13958 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13959 (xfont_list_family): Call font_add_log.
13960 (xfont_match): Likewise.
13961 (memq_no_quit): Delete.
13962
13963 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13964 call of Ffont_xlfd_name.
13965
13966 * xfaces.c (struct table_entry, slant_table, weight_table)
13967 (swidth_table): Move to font.c.
13968
13969 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13970 xassert are changed to font_assert. Delete many unused variables.
13971 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13972 New variables.
13973 (struct table_entry): Move from xfaces.c and modified.
13974 (weight_table, slant_table, width_table): Move from xfaces.c and
13975 contents adjusted for the change of struct table_entry.
13976 (font_style_to_value, font_style_symbolic): Adjust for the
13977 format change of font_style_table.
13978 (font_parse_family_registry): Don't overwrite existing foundry and
13979 family of font_spec.
13980 (font_score): Fix calculation of diff for sizes.
13981 (font_sort_entites): Call font_add_log.
13982 (font_delete_unmatched): Return a newly created list.
13983 (font_list_entities): Fix previous change. Call font_add_log.
13984 (font_matching_entity, font_open_entity, font_close_entity):
13985 Call font_add_log.
13986 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13987 (Finternal_set_font_style_table): Delete.
13988 (BUILD_STYLE_TABLE): New macro.
13989 (build_style_table): New function.
13990 (Vfont_log, font_log_env_checked): New variables.
13991 (font_add_log): New function.
13992 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13993 Declare Lisp variables "font-weight-table", "font-slant-table",
13994 "font-width-table", and "font-log". Initialize font_style_table.
13995
139962008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
13997
13998 * xterm.c (x_set_frame_alpha): Move declarations before statements.
13999
140002008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14001 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14002
14003 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14004 (Vframe_alpha_lower_limit): New variable.
14005 (x_set_alpha): New function.
14006
14007 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14008
14009 * xfns.c (x-create-frame, Qalpha):
14010 Initialize the frame parameter `alpha'.
14011 * xterm.c (OPAQUE, OPACITY): New.
14012 (x_set_frame_alpha): New function.
14013 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14014
14015 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14016 * w32fns.c (w32_frame_parm_handlers): Likewise.
14017
140182008-05-20 Jason Rumney <jasonr@gnu.org>
14019
14020 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14021 truetype fonts to opentype list.
14022
140232008-05-20 Juanma Barranquero <lekktu@gmail.com>
14024
14025 * fontset.c (Ffontset_info): Doc fix.
14026 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14027 <ignore-relative-composition>: Fix typos in docstrings.
14028
14029 * font.c (syms-of-font) <font-encoding-alist>:
14030 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14031 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14032 (Ffont_otf_alternates): Doc fixes.
14033
140342008-05-20 Kenichi Handa <handa@m17n.org>
14035
14036 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14037 font.h through out the file.
14038 (FONT_DRIVERS): Rename from FONTOBJ.
14039 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14040 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14041
14042 * emacs.c (main): Call syms_of_font unconditionally.
14043
14044 * font.h (find_font_encoding): Extern it.
14045
14046 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14047 fontset.c.
194d44e7 14048 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14049 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14050 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14051 only when HAVE_WINDOW_SYSTEM is defined.
14052 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14053 when HAVE_WINDOW_SYSTEM is defined.
14054
14055 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14056 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14057
14058 * xfaces.c: Include font.h unconditionally.
14059 (merge_face_ref, merge_face_vectors)
14060 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14061
140622008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14063
14064 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14065 indirect_variable.
14066 * eval.c (lisp_indirect_variable): New fun.
14067 (Fuser_variable_p): Use it.
14068
140692008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14070
14071 * lisp.h (indirect_variable):
14072 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14073 Use Lisp_Symbol pointers rather than Lisp_Object.
14074 Adjust callers.
14075 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14076 To this end, change calling-convention.
14077
14078 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14079 if some non-hidden buffers are selected by string&pred.
14080
140812008-05-19 Chong Yidong <cyd@stupidchicken.com>
14082
14083 * process.c (wait_reading_process_output): Always check status
14084 when in batch mode.
14085
140862008-05-19 Kenichi Handa <handa@m17n.org>
14087
14088 * font.c (font_list_entities): Fix handling of cache.
14089 (font_matching_entity): Likewise.
14090
14091 * ftfont.c (cs_iso8859_1): Delete.
14092 (ft_face_cache): New variable.
14093 (struct ftfont_info): New member fc_charset_idx.
14094 (ftfont_build_basic_charsets): Delete.
14095 (fc_charset_table): New variable.
14096 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14097 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14098 Callers changed.
14099 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14100 (ftfont_spec_pattern): New argument fc_charset_idx.
14101 Check registry more rigidly. Change callers.
14102 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14103 change of :font-entity property of the font.
14104
14105 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14106 property of the font.
14107
141082008-05-18 Juanma Barranquero <lekktu@gmail.com>
14109
14110 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14111 (Funencodable_char_position, Fcheck_coding_systems_region)
14112 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14113 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14114 (Ffind_operation_coding_system, Fset_coding_system_priority)
14115 (Fcoding_system_eol_type): Doc fixes.
14116
141172008-05-17 Glenn Morris <rgm@gnu.org>
14118
14119 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14120
141212008-05-16 Eli Zaretskii <eliz@gnu.org>
14122
14123 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14124 and st_gid.
14125
14126 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14127 HAVE_WINDOW_SYSTEM is not defined.
14128
14129 * xfaces.c (merge_face_ref, merge_face_vectors)
14130 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14131 HAVE_WINDOW_SYSTEM is defined.
14132 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14133
141342008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14135
14136 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14137
141382008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14139
14140 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14141
141422008-05-15 Kenichi Handa <handa@m17n.org>
14143
14144 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14145 preference.
14146
141472008-05-15 Glenn Morris <rgm@gnu.org>
14148
14149 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14150
141512008-05-15 Chong Yidong <cyd@stupidchicken.com>
14152
14153 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14154 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14155
14156 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14157
141582008-05-15 Kenichi Handa <handa@m17n.org>
14159
14160 * ftfont.c (ftfont_list): Downcase family name to check generic
14161 families.
14162
14163 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14164 font-spec for QCfont value.
14165
14166 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14167 buffer. Check the return value of it.
14168
141692008-05-14 Jason Rumney <jasonr@gnu.org>
14170
14171 * w32term.c (w32_get_glyph_overhangs): Remove.
14172 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14173
141742008-05-14 Kenichi Handa <handa@m17n.org>
14175
14176 * font.c (font_prop_validate): Make nil a valid value.
14177 (font_clear_cache): Check if the cached vector of entities is nil
14178 or not.
14179
141802008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14181
14182 * emacs.c (main_thread): Conditionalize on
14183 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14184 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14185
14186 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14187 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14188 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14189
141902008-05-14 Kenichi Handa <handa@m17n.org>
14191
14192 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14193 has no corresponding coding system.
14194
141952008-05-14 Jason Rumney <jasonr@gnu.org>
14196
14197 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14198
14199 * w32font.h (w32font_open_internal): Update declaration.
14200
14201 * w32font.c (w32font_open_internal): Change last argument from
14202 w32font_info struct to font object. Fill in font object from
14203 font_entity. Get Outline metrics if possible. Use them to
14204 calculate underline position and thickness. Use xlfd name as name
14205 property. Don't set codepage.
14206 (w32font_open): Pass font_object to w32font_open_internal. Don't
14207 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14208 (w32font_draw): Use s->font.
14209 (clear_cached_metrics): Don't clear non-existent blocks.
14210
14211 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14212 font was not found.
14213 (x_draw_glyph_string): Use underline position and thickness from font.
14214
14215 * w32uniscribe.c (uniscribe_open): Pass font_object to
14216 w32font_open_internal.
14217
142182008-05-14 Kenichi Handa <handa@m17n.org>
14219
14220 These changes are to delete all legacy font-handling codes, and
14221 make Emacs use only font-backends.
14222
14223 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14224 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14225
14226 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14227
14228 * charset.h (Vcharset_non_preferred_head)
14229 (Vcurrent_iso639_language): Extern them.
14230
14231 * charset.c (Vcharset_non_preferred_head): New variable.
14232 (Vcurrent_iso639_language): New variable.
14233 (syms_of_charset): Declare it as a Lisp variable.
14234 (char_charset): Don't check non preferred charsets. As a last
14235 resort, return charset_unicode.
14236 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14237
14238 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14239 conditionals. Don't check enable_font_backend. Delete all codes
14240 used only when USE_FONT_BACKEND is not defined.
14241
14242 * dispextern.h (struct glyph_string): Change type of `font' to
14243 `struct font *'.
14244 (struct glyph_string): New member underline_position and
14245 underline_thickness.
14246 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14247 (struct face): Change type of `font' to `struct font *'. Remove
14248 members `font_name', `font_info_id'.
14249 (per_char_metric, encode_char): Delete externs.
14250 (calc_pixel_width_or_height): Adjust the prototype.
14251
14252 * emacs.c (enable_font_backend): Delete extern.
14253 (main): Don't set enable_font_backend. Don't check the command
14254 line argument "-disable-font-backend".
14255
14256 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14257 (enum font_property_index): New members FONT_DPI_INDEX,
14258 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14259 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14260 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14261 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14262 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14263 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14264 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14265 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14266 (struct font_spec, struct font_entity): New structs.
14267 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14268 (struct font): Many members from old "struct font_info" moved to
14269 here. Members font and entity deleted.
14270 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14271 the new font-related objects.
14272 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14273 (CHECK_FONT_GET_OBJECT): Likewise.
14274 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14275 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14276 (struct font_driver): New members case_sensitive anc check. Type
14277 of the member list and open changed.
14278 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14279 (font_symbolic_width, font_find_object, font_get_spec)
14280 (font_set_lface_from_name): Delete extern.
14281 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14282
14283 * font.c: Include <strings.h>.
14284 (enable_font_backend): Delete it.
14285 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14286 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14287 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14288 (null_string): Delete it.
14289 (null_vector): Make it static.
14290 (font_family_alist): Delete it.
14291 (Qnormal): Extern it.
14292 (QCextra, QClanguage): Delete it.
14293 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14294 (font_make_spec, font_make_entity, font_make_object)
14295 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14296 the string. Callers changed.
14297 (font_pixel_size): Adjusted for the format change of font-related
14298 objects.
14299 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14300 (font_style_to_value, font_style_symbolic): New function.
14301 (build_font_family_alist): Delete it.
14302 (font_registry_charsets): Use Fassoc_string instead of
14303 assq_no_quit.
14304 (font_prop_validate_symbol): Don't return null_string.
14305 (font_prop_validate_style): Adjusted for the change of
14306 style-related values in a font vector.
14307 (font_property_table): Delete entries for QClanguage and
14308 QCantialias, add entries for QCavgwidth.
14309 (get_font_prop_index): Delete the 2nd argument FROM.
14310 (font_prop_validate): Arguments changed.
14311 (font_put_extra): Adjusted for the change of font-related objects.
14312 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14313 (font_parse_fcname, font_unparse_fcname)
14314 (font_prepare_composition): Likewise.
14315 (font_parse_family_registry): Renamed from font_merge_old_spec.
14316 (otf_open): Delete the 1st arg entity.
14317 (font_otf_capability): Adjusted for the above change.
14318 (font_score): New arg alternate_families. Adjusted for the change
14319 of font-related objects.
14320 (font_sort_entites): New arg best_only.
14321 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14322 Delete them.
14323 (font_match_p): Check alternate families.
14324 (font_find_object): Delete it.
14325 (font_check_object): New function.
14326 (font_clear_cache): Adjusted for the change of font-related objects.
14327 (font_delete_unmatched): New arg.
14328 (font_list_entities): Call font_driver->list with a spec that
14329 doesn't specify style-related properties.
14330 (font_matching_entity): Arguments changed. Caller changed.
14331 (font_open_entity): Adjusted for the change of font-related objects.
14332 (font_close_object, font_has_char, font_encode_char)
14333 (font_get_name, font_get_spec): Likewise.
14334 (font_spec_from_name, font_clear_prop, font_update_lface):
14335 New functions.
14336 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14337 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14338 (font_at): Adjusted for the change of font-related objects.
14339 (font_range): New function.
14340 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14341 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14342 (Fcopy_font_spec, Fmerge_font_spec): New function.
14343 (Ffont_family_list): Renamed from list-families.
14344 (Finternal_set_font_style_table): Arguments changed.
14345 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14346 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14347 change of font-related objects.
14348 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14349
14350 * fontset.h (struct font_info): Delete it. Most members go to
14351 struct font.
14352 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14353 (enum FONT_SPEC_INDEX): Delete it.
14354 (font_info, list_fonts_func, load_font_func, query_font_func)
14355 (set_frame_fontset_func, find_ccl_program_func)
14356 (get_font_repertory_func, new_fontset_from_font_name): Delete
14357 externs.
14358 (fontset_from_font_name): Extern it.
14359 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14360 (FONT_INFO_FROM_FACE): Deleted.
14361 (face_for_font): Adjust prototype.
14362
14363 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14364 conditionals. Don't check enable_font_backend. Delete all codes
14365 used only when USE_FONT_BACKEND is not defined.
14366 (get_font_info_func, list_font_func, load_font_func)
14367 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14368 (get_font_repertory_func): Delete them.
14369 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14370 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14371 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14372 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14373 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14374 (fontset_compare_rfontdef): New function.
14375 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14376 rfont-defs by qsort. Adjusted for the change of font-group vector.
14377 (load_font_get_repertory): Deleted.
14378 (fontset_find_font): Use new macros to ref/set elements of
14379 font-def and rfont-def.
14380 (fontset_font): Fix the timing of remembering that no font for C.
14381 (free_face_fontset): Do nothing if the face has no fontset.
14382 (face_suitable_for_char_p): Use new macros to ref/set elements of
14383 rfont-def.
14384 (face_for_char): Likewise. Call face_for_char with font_object.
14385 (fs_load_font): Delete. Delete #pragma surrounding it.
14386 (fs_query_fontset): Use strcasecmp instead of strcmp.
14387 (generate_ascii_font_name): Adjusted for the format change of
14388 font-spec.
14389 (Fset_fontset_font): Likewise. Use new macros to set elements of
14390 font-def.
14391 (Fnew_fontset): Use font_unparse_xlfd to generate
14392 FONTSET_ASCII (fontset).
14393 (new_fontset_from_font_name): Deleted.
14394 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14395 a fontset is already created for the font. FIx updating of
14396 Vfontset_alias_alist.
14397 (fontset_ascii_font): Deleted.
14398 (Ffont_info): Adjusted for the format change of font-spec.
14399 (Finternal_char_font): Likewise.
14400 (Ffontset_info): Likewise.
14401 (syms_of_fontset): Don't check load_font_func.
14402
14403 * fns.c (internal_equal): Handle PREV_FONT.
14404
14405 * frame.h: Delete USE_FONT_BACKEND conditional.
14406
14407 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14408 conditionals. Don't check enable_font_backend. Delete all codes
14409 used only when USE_FONT_BACKEND is not defined.
14410 (x_set_font): Call x_new_font, not x_new_fontset2.
14411 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14412 already set for the frame.
14413
14414 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14415 a font-entity by font_make_entity. Use font_intern_prop instead
14416 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14417 font property. If a font is scalable, set avgwidth property to 0.
14418 Set font-entity property by font_put_extra.
14419 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14420 (ffont_driver): Adjusted for the change of struct font_driver.
14421 (ftfont_spec_pattern): New function.
14422 (ftfont_list): Return a list, not vector.
14423 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14424 (ftfont_list_family): Don't downcase names.
14425 (ftfont_free_entity): Deleted.
14426 (ftfont_open): Return a font-object. Adjusted for the change of
14427 struct font. Get underline_thickness and underline_position from
14428 font property. Don't update dpyinfo->smallest_font_height and
14429 dpyinfo->smallest_char_width.
14430 (ftfont_close): Don't free `struct font'.
14431 (ftfont_has_char): Adjusted for the format change of font-entity.
14432 (ftfont_encode_char, ftfont_text_extents): Likewise.
14433
14434 * ftxfont.c (ftxfont_list): Return a list, not vector.
14435 (ftxfont_open): Return a font-object. Adjusted for the change of
14436 struct font. Get underline_thickness and underline_position from
14437 font property. Don't update dpyinfo->smallest_font_height and
14438 dpyinfo->smallest_char_width.
14439 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14440 (ftxfont_draw): Adjusted for the change of struct font.
14441
14442 * image.c (image_ascent): Don't include "charset.h". Include
14443 "character.h" and "font.h".
14444
14445 * lisp.h (enum pvec_type): New member PREV_FONT.
14446 (Fassoc_string): EXFUN it.
14447
14448 * print.c: Include font.h.
14449 (print_object): Handle font-related objects.
14450
14451 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14452 conditionals. Don't check enable_font_backend. Delete all codes
14453 used only when USE_FONT_BACKEND is not defined.
14454 (handle_auto_composed_prop): Do nothing if it->f is not on a
14455 window system. Check how many following characters can be
14456 displayed by the same font.
14457 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14458 'struct font *'.
14459 (get_char_face_and_encoding): Assign the whole encoding task to
14460 the `encode-char' method of a font driver.
14461 (fill_composite_glyph_string): Adjusted for the change of `struct
14462 face' and `struct glyph_string'.
14463 (fill_glyph_string): Likewise.
14464 (get_per_char_metric): Arguments changed.
14465 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14466 and `struct glyph_string'.
14467 (produce_stretch_glyph, calc_line_height_property)
14468 (x_produce_glyphs): Likewise.
14469
14470 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14471 conditionals. Don't check enable_font_backend. Delete all codes
14472 used only when USE_FONT_BACKEND is not defined. Use
14473 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14474 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14475 (Qp): Extern them.
14476 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14477 Deleted.
14478 (struct font_name): Deleted.
14479 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14480 (compare_fonts_by_sort_order): New function.
14481 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14482 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14483 Deleted.
14484 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14485 compare_fonts_by_sort_order.
14486 (Fx_font_family_list): Call Ffont_family_list.
14487 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14488 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14489 (face_symbolic_slant, face_symbolic_swidth)
14490 (split_font_name_into_vector, build_font_name_from_vector)
14491 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14492 (font_rescale_ratio, split_font_name, build_font_name)
14493 (free_font_names, sort_fonts, x_face_list_fonts)
14494 (face_font_available_p, sorted_font_list, cmp_font_names)
14495 (font_list_1, concat_font_list, font_list, remove_duplicates):
14496 Deleted.
14497 (Fx_list_fonts): Use Ffont_list.
14498 (LFACE_AVGWIDTH): Deleted.
14499 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
14500 by FONTP.
14501 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
14502 (set_lface_from_font_name): Delete it.
14503 (set_lface_from_font): Renamed from
14504 set_lface_from_font_and_fontset. Caller changed. Don't set
14505 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
14506 for face.
14507 (merge_face_vectors): Copy font-spec if necessary.
14508 Clear properties of the font-spec if necessary.
14509 (merge_face_ref): Clear properties of the font-spec if necessary.
14510 (Finternal_set_lisp_face_attribute): Likewise.
14511 (set_font_frame_param): Use font_load_for_lface to load a
14512 font-object, and call Fmodify_frame_parameters with it.
14513 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
14514 font name by Ffont_xlfd_name.
14515 (Finternal_lisp_face_attribute_values): Don't check QCweight,
14516 QCslant, and QCwidth.
14517 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
14518 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
14519 Compare fonts by EQ.
14520 (lookup_non_ascii_face): Deleted.
14521 (face_for_font): The 2nd argument changed.
14522 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
14523 Check atomic font properties by case insensitive.
14524 (realize_non_ascii_face): Set face->overstrike correctly.
14525 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
14526 (dump_realized_face): Get font name from
14527 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
14528
14529 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
14530 conditionals. Don't check enable_font_backend. Delete all codes
14531 used only when USE_FONT_BACKEND is not defined.
14532 (xic_create_xfontset): Original code deleted and renamed from
14533 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
14534 (x_make_gc): Don't set GCFont in GCs.
14535 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
14536 opened by "fixed".
14537 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14538 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14539 get_font_repertory_func.
14540
14541 * xfont.c: Include <stdlib.h> and "ccl.h".
14542 (struct xfont_info): New structure.
14543 (xfont_query_font): Deleted.
14544 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14545 moved from xterm.c.
14546 (xfont_driver): Adjusted for the change of struct font_driver.
14547 (compare_font_names): New function.
14548 (xfont_list_pattern): Sort font names case insensitively. Make
14549 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14550 (xfont_list): Return a list, not vector.
14551 (xfont_match): If the font doesn't have QCname property, generate
14552 a name from the other font properties.
14553 (xfont_open): Return a font-object. Adjusted for the change of
14554 struct font. Get underline_thickness and underline_position from
14555 font property. Don't update dpyinfo->smallest_font_height and
14556 dpyinfo->smallest_char_width.
14557 (xfont_close): Don't free struct font.
14558 (xfont_prepare_face): Adjusted for the change of struct font.
14559 (xfont_done_face): Deleted.
14560 (xfont_has_char): Adjusted for the change of struct font.
14561 (xfont_encode_char, xfont_draw): Likewise.
14562 (xfont_check): New function.
14563
14564 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14565 callback function.
14566 (xftfont_match): Adjusted for the format change of font-entity.
14567 (xftfont_open): Adjusted for the format change of font-entity and
14568 font-object. Adjusted for the change of struct font. Return a
14569 font-object. Don't update dpyinfo->smallest_font_height and
14570 dpyinfo->smallest_char_width.
14571 (xftfont_close): Block input while calling XftFontClose.
14572 (xftfont_prepare_face): Don't block input while calling
14573 xftfont_get_colors. Adjusted for the change of struct font.
14574 (xftfont_shape): Return value of error case fixed.
14575
14576 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14577
14578 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14579 conditionals.
14580 (FONT_WIDTH): Return (f)->max_width.
14581 (struct x_display_info): Delete member `font'.
14582 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14583 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14584 (struct x_output): Change type of `font' to `struct font *'.
14585
14586 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14587 conditionals. Don't check enable_font_backend. Delete all codes
14588 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14589 (x_per_char_metric, x_encode_char): Deleted.
14590 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14591 (x_compute_glyph_string_overhangs): Adjusted for the change of
14592 `struct face'.
14593 (x_draw_glyph_string_foreground)
14594 (x_draw_composite_glyph_string_foreground): Likewise.
14595 (x_draw_glyph_string): Likewise. Use font->underline_position and
14596 font->underline_thickness.
14597 (x_new_font): Renamed from x_new_fontset2.
14598 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14599 (x_check_font): Call `check' method of a font driver.
14600 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14601 (x_query_font, x_get_font_repertory): Deleted.
14602 (x_find_ccl_program): Renamed and moved to xfont.c.
14603 (x_redisplay_interface): Adjusted for the change of `struct
14604 redisplay_interface'.
14605
14606 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14607 conditionals. Don't check enable_font_backend. Delete all codes
14608 used only when USE_FONT_BACKEND is not defined. Surround non-used
14609 code by "#ifdef OLD_FONT" and "endif".
14610 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14611
14612 * w32font.h (struct w32font_info): New member.
14613 (FONT_COMPAT): New macro.
14614 (w32font_open_internal): Prototype adjusted.
14615
14616 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14617 OLD_FONT" and "endif".
14618
14619 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14620 conditionals. Don't check enable_font_backend. Delete all codes
14621 used only when USE_FONT_BACKEND is not defined.
14622 (w32font_open): Return a font-object. Make a font-object by
14623 font_make_object. Adjusted for the change of struct w32font_info.
14624 (w32font_close): Don't free struct font. Adjusted for the change
14625 of struct w32font_info.
14626 (w32font_encode_char, w32font_text_extents, w32font_draw):
14627 Adjusted for the change of struct w32font_info.
14628 (w32font_draw): Likewise.
14629 (w32font_list_internal): Return a list, not vector.
14630 (w32font_open_internal): Change the 4th arg to font-object.
14631 Adjusted for the change of struct w32font_info and font-object format.
14632 (add_font_name_to_list): Don't downcase names.
14633 (w32_enumfont_pattern_entity): Make a font-entity by
14634 font_make_entity. Adjusted for the format change of font-entity.
14635 Use FONT_SET_STYLE to set a style-related font property. If a
14636 font is scalable, set avgwidth property to 0. Set font-entity
14637 property by font_put_extra.
14638 (font_matches_spec): Adjusted for the format change of font-entity.
14639 (w32_weight_table, w32_decode_weight): New variables.
14640 (w32_encode_weight): New function.
14641 (fill_in_logfont): Adjusted for the format change of font-spec.
14642 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
14643 weight value.
14644 (w32font_driver): Adjusted for the change of struct font_driver.
14645
14646 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
14647 conditionals. Don't check enable_font_backend. Surround non-used
14648 code by "#ifdef OLD_FONT" and "endif".
14649 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
14650 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
14651
14652 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
14653 conditionals. Don't check enable_font_backend. Delete all codes
14654 used only when USE_FONT_BACKEND is not defined. Surround non-used
14655 code by "#ifdef OLD_FONT" and "endif".
14656
14657 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
14658 (uniscribe_open): Return value changed to font-object.
14659 Adjusted for the format change of font-object.
14660 (uniscribe_otf_capability): Adjusted for the change of struct font.
14661 (add_opentype_font_name_to_list): Don't downcase names.
14662 (uniscribe_font_driver): Adjusted for the change of struct
14663 font_driver.
14664
146652008-05-13 Chong Yidong <cyd@stupidchicken.com>
14666
14667 * dispnew.c (update_frame_1): Check if tty output is still valid
14668 before flushing it.
14669
146702008-05-13 Jan Djärv <jan.h.d@swipnet.se>
14671
14672 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
14673 to Gtk+ menus.
14674
146752008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14676
14677 * dired.c (file_name_completion): Tweak the code so as to always do it
14678 in a single pass. Tighten the scope of some variables.
14679
14680 * dired.c (Qdefault_directory): New var.
14681 (file_name_completion): Use it instead of Fexpand_file_name.
14682 (syms_of_dired): Initialize it.
14683
146842008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
14685
14686 * fileio.c (double_dollars): Remove dead code.
14687
146882008-05-10 Eli Zaretskii <eliz@gnu.org>
14689
14690 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
14691 Mention w32-get-true-file-attributes in doc string.
14692
14693 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
14694
146952008-05-09 Glenn Morris <rgm@gnu.org>
14696
14697 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
14698 2008-04-23.
14699
147002008-05-09 Eli Zaretskii <eliz@gnu.org>
14701
14702 Support for reporting owner and group of each file on MS-Windows:
14703 * dired.c (stat_uname, stat_gname): New functions, with special
14704 implementation for w32.
14705 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
14706
14707 * w32.c: Rename the_passwd_* to dflt_passwd_*.
14708 (dflt_group_name): New static variable.
14709 (dflt_group): Rename from the_group.
14710 (init_user_info): Init dflt_group fields. Get user's group name
14711 from LookupAccountSid.
14712 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
14713 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
14714 New initialization states.
14715 (globals_of_w32): Initialize them to zero. Initialize the default
14716 group name to "None".
14717 (GetFileSecurity_Name): New global var, the name of the function
14718 to call for GetFileSecurity.
14719 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
14720 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
14721 (get_file_security, get_security_descriptor_owner)
14722 (get_security_descriptor_group, is_valid_sid)
14723 (get_file_security_desc, get_rid, get_name_and_id)
14724 (get_file_owner_and_group): New functions.
14725 (stat): Use get_file_security_desc and get_file_owner_and_group to
14726 report the owner and primary group of each file. Don't ignore the
14727 high 32 bits of file's size, now that st_size is 64-bit wide.
14728 Fix test when to get true file attributes.
14729 (init_user_info): Use get_rid instead of equivalent inline code.
14730 (fstat): Don't ignore the high 32 bits of file's size.
14731
147322008-05-09 Chong Yidong <cyd@stupidchicken.com>
14733
14734 * image.c (png_load): Use correct bit-depth for setting background
14735 color.
14736
147372008-05-08 Eli Zaretskii <eliz@gnu.org>
14738
14739 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
14740 epa-hook.elc.
14741
147422008-05-08 Juanma Barranquero <lekktu@gmail.com>
14743
14744 * font.c (Ffont_match_p): Don't use `iff' in docstring.
14745
147462008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
14747
14748 * macfns.c (Fx_create_frame): Make a copy of frame parameters
14749 because the original parameters are in pure storage now.
14750 (mac_window): Remove unused params. Update callers.
14751
147522008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14753
14754 * lread.c (substitute_object_recurse): Use lower-level primitives.
14755 Don't signal errors when traversing sub-char-tables.
14756 Don't loop over all the possible characters when traversing char-tables.
14757
14758 * print.c (print_preprocess): Add sub-char-tables to the print-table,
14759 just like we do in print.c.
14760
147612008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
14762
14763 * minibuf.c (Ftry_completion): Remove code left over from when we used
14764 scmp instead of Fcompare_strings.
14765
147662008-05-04 Juanma Barranquero <lekktu@gmail.com>
14767
14768 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
14769
147702008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14771
14772 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
14773 Create bitmap context in native byte order.
14774
14775 * macterm.c (XDrawLine)
14776 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
14777 context in native byte order.
14778
147792008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14780
14781 * config.in: Regenerate.
14782
14783 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
14784 New definitions for Image I/O support.
14785 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14786 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
14787 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14788 (mac_data_provider_release_data, image_load_image_io)
14789 [USE_MAC_IMAGE_IO]: New functions.
14790 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
14791 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
14792 (init_image_func_pointer) [MAC_OSX]: Remove function.
14793 (image_load_quartz2d) [MAC_OSX]: Check availability of
14794 CGImageCreateWithPNGDataProvider at compile time.
14795 Use lowercase `false' for boolean constant.
14796 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
14797 Use image_load_image_io.
14798 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
14799 Don't check MyCGImageCreateWithPNGDataProvider.
14800 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14801 Don't call init_image_func_pointer.
14802
14803 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14804
14805 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14806 Make variable non-static.
14807 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14808 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14809
14810 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14811 (RED_FROM_ULONG): Mask off higher bits.
14812 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14813
14814 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14815 Include AvailabilityMacros.h.
14816 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14817 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14818
148192008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14820
14821 * chartab.c (Fset_char_table_range): If range is t, really set all
14822 chars to that value.
14823
148242008-05-03 Eli Zaretskii <eliz@gnu.org>
14825
14826 * dired.c (Ffile_attributes): Don't allow the device number become
14827 negative.
14828
148292008-05-02 Daiki Ueno <ueno@unixuser.org>
14830
14831 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14832
148332008-05-02 Juri Linkov <juri@jurta.org>
14834
14835 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14836 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14837 DEFAULT argument as a list of default values in docstrings.
14838
148392008-05-01 Chong Yidong <cyd@stupidchicken.com>
14840
14841 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14842
148432008-05-01 Martin Rudalics <rudalics@gmx.at>
14844
14845 * dispnew.c (change_frame_size_1): Preserve small windows when
14846 shrinking frames by calling set_window_height|width with third
14847 arg 2.
14848
14849 * window.h (struct window): Replace field too_small_ok by field
14850 resize_proportionally.
14851
14852 * window.c (make_window): Initialize resize_proportionally.
14853 (enlarge_window): Temporarily set resize_proportionally to make
14854 sure that shrink_windows does scale the window proportionally.
14855 (shrink_windows): When window has resize_proportionally set try
14856 to shrink it proportionally by stealing from other windows.
14857 (struct saved_window, Fset_window_configuration)
14858 (compare_window_configurations): Handle resize_proportionally.
14859 (WINDOW_TOTAL_SIZE): New macro.
14860 (window_min_size, shrink_windows, size_window): Use it.
14861 (check_min_window_sizes): Remove. Invalid values of
14862 window-min-height|width are handled by window_min_size_2 now.
14863 (size_window, Fsplit_window, enlarge_window)
14864 (adjust_window_trailing_edge, grow_mini_window): Don't call
14865 check_min_window_sizes.
14866 (window_min_size_2, window_min_size_1, window_min_size):
14867 New argument safe_p for retrieving "safe" minimum sizes.
14868 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14869 (adjust_window_trailing_edge, grow_mini_window):
14870 Adjust arguments of window_min_size... functions.
14871 (shrink_windows): Argument min_size removed. New argument
14872 safe_p allows shrinking windows to their safe minimum sizes.
14873 Calculate minimum size and decide whether a window shall be
14874 deleted for each window individually.
14875 (size_window): When nodelete_p equals 2, tell shrink_windows to
14876 delete windows only if their new minimum size is no more safe.
14877 (shrink_window_lowest_first): Call window_min_size_1 to make
14878 sure to preserve modeline of bottom-most window when resizing
14879 the minibuffer.
14880 (Fset_window_configuration, Fcurrent_window_configuration)
14881 (compare_window_configurations): Do not handle
14882 window-min-height|width any more.
14883 (syms_of_window): Clarify window-min-height|width doc-strings.
14884
148852008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14886
14887 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14888 some more. Copy some of the code from Ftry_completions.
14889 Remove special case code that dates back to initial revision when the
14890 slash was only added when necessary and that can't trigger nowadays.
14891
148922008-04-27 Kenichi Handa <handa@m17n.org>
14893
14894 * font.c (font_prop_validate): Signal `error' instead of `font'.
14895
148962008-04-29 Jason Rumney <jasonr@gnu.org>
14897
14898 * w32fns.c (Fw32_battery_status): New defun.
14899 (syms_of_w32fns): Defsubr it.
14900
149012008-04-28 Andreas Schwab <schwab@suse.de>
14902
14903 * dired.c (file_name_completion): Fix another mixing of encoded
14904 and decoded names.
14905
149062008-04-28 Juanma Barranquero <lekktu@gmail.com>
14907
14908 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14909
149102008-04-27 Juanma Barranquero <lekktu@gmail.com>
14911
14912 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14913
149142008-04-27 Andreas Schwab <schwab@suse.de>
14915
14916 * dired.c (file_name_completion): Fix inappropriate mixing of
14917 encoded and decoded names.
14918
14919 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14920
14921 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14922
149232008-04-26 Eli Zaretskii <eliz@gnu.org>
14924
14925 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14926 2008-03-31, it's not needed anymore with `struct stat' definition
14927 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14928 for the same reasons.
14929
149302008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14931
14932 * m/sparc.h: Additional redefinitions for GNU/Linux.
14933
149342008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14935
14936 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14937 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14938 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14939 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14940 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14941 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14942 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14943 Likewise.
14944
14945 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14946 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14947 (mac_ax_number_of_characters): Add externs.
14948 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14949 [USE_MAC_TSM]: Likewise.
14950 (mac_handle_text_input_event) [MAC_OSX]:
14951 Handle kEventTextInputOffsetToPos for no active input area case.
14952 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14953 (mac_handle_document_access_event)
14954 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14955 (install_application_handler) [MAC_OSX]: Register handlers for
14956 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14957 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14958 Register mac_handle_document_access_event.
14959
14960 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14961 Make functions non-static.
14962
149632008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14964
14965 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14966 (read_file_name_completion_ignore_case, insert_default_directory)
14967 (Qdefault_directory): Move to minibuffer.el.
14968 (Fread_file_name): Call the new `read-file-name' instead.
14969
149702008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14971
14972 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14973 Make function non-static.
14974 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14975 Remove function.
14976 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14977 Move to mactoolbox.c.
14978 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14979
14980 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14981 (mac_rect_make): New macro.
14982
14983 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14984 instead of float.
14985 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14986 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14987 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14988 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14989 CGRectMake.
14990 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14991 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14992 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14993 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14994 instead of WindowRef in argument type.
14995 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
14996 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
14997 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
14998 instead of DISPLAY. All uses changed.
14999 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15000 (x_calc_absolute_position): Simplify so as not to use
15001 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15002
15003 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15004 instead of WindowRef in argument type.
15005 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15006 [TARGET_API_MAC_CARBON]: Remove externs.
15007 (create_apple_event, mac_event_parameters_to_lisp)
15008 [TARGET_API_MAC_CARBON]: Add externs.
15009
15010 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15011 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15012 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15013 is clicked.
15014 (x_activate_menubar): Remove extern for saved_menu_event_location.
15015 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15016 Move from mac.c.
15017
150182008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15019
15020 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15021 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15022
150232008-04-23 Jason Rumney <jasonr@gnu.org>
15024
15025 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15026 attributes only for local files.
15027
15028 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15029 default to Qlocal.
15030
150312008-04-22 Juri Linkov <juri@jurta.org>
15032
15033 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15034 read-buffer-to-switch instead of using the letter "B".
15035
150362008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15037
15038 * fileio.c (Qdefault_directory): New variable.
15039 (Fread_file_name): Use it to pass `dir' to the completion functions.
15040
150412008-04-20 Chong Yidong <cyd@stupidchicken.com>
15042
15043 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15044
150452008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15046
15047 * keyboard.c (Vpre_help_message): Remove.
15048 (show_help_echo): Remove default C code.
15049
15050 * dired.c (directory_files_internal, file_name_completion):
15051 Only call ENCODE_FILE if the string is indeed decoded.
15052
150532008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15054
15055 * Makefile.in (TOOLKIT_DEFINES): Remove.
15056 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15057
150582008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15059
15060 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15061 (mactoolbox.o): New target.
15062
15063 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15064 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15065
15066 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15067 Use mac_set_frame_window_background instead of XSetWindowBackground.
15068 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15069 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15070 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15071 instead of SetWindowTitleWithCFString.
15072 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15073 Move function to mactoolbox.c.
15074 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15075 Use mac_set_window_modified instead of SetWindowModified.
15076 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15077 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15078 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15079 FrontNonFloatingWindow. Use mac_activate_window instead of
15080 ActivateWindow. Use mac_active_non_floating_window instead of
15081 ActiveNonFloatingWindow.
15082 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15083 Use mac_show_hourglass and mac_hide_hourglass.
15084 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15085 instead of GetGlobalMouse.
15086 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15087 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15088 Use mac_bring_window_to_front instead of BringToFront.
15089 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15090 mactoolbox.c.
15091 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15092 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15093 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15094 mactoolbox.c.
15095
15096 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15097 (XtPointer): Move typedef from macmenu.c.
15098 (enum button_type): Move enum from macmenu.c.
15099 (widget_value): Move typedef from macmenu.c.
15100 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15101 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15102 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15103 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15104 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15105 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15106 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15107 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15108 (Selection): Move typedef from macselect.c.
15109 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15110 macterm.c.
15111 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15112 (mac_is_window_collapsed, mac_bring_window_to_front)
15113 (mac_send_window_behind, mac_hide_window, mac_show_window)
15114 (mac_collapse_window, mac_front_non_floating_window)
15115 (mac_active_non_floating_window, mac_activate_window)
15116 (mac_move_window_structure, mac_move_window, mac_size_window)
15117 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15118
15119 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15120 (enum mac_menu_kind): Move enum to mactoolbox.c.
15121 (min_menu_id): Move variable to mactoolbox.c.
15122 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15123 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15124 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15125 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15126 [TARGET_API_MAC_CARBON]: Likewise.
15127 (XtPointer): Move typedef to macgui.h.
15128 (enum button_type): Move enum to macgui.h.
15129 (widget_value): Move typedef to macgui.h.
15130 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15131 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15132 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15133 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15134 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15135 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15136 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15137 (popup_activated_flag): Make variable non-static.
15138 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15139 (add_menu_item, fill_menu, dispose_menus):
15140 Move functions to mactoolbox.c.
15141 (restore_show_help_function, menu_target_item_handler)
15142 (install_menu_target_item_handler, mac_handle_dialog_event)
15143 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15144 [TARGET_API_MAC_CARBON]: Likewise.
15145 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15146 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15147 (find_and_call_menu_selection, name_is_separator): Make function
15148 non-static.
15149 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15150 to mactoolbox.c.
15151 (set_frame_menubar): Don't call install_menu_quit_handler.
15152 (menu_item_selection): New variable.
15153 (mac_menu_show): Use create_and_show_popup_menu.
15154 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15155 selection but set variable menu_item_selection. All uses changed.
15156 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15157 Call install_menu_quit_handler. Move to mactoolbox.c.
15158
15159 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15160 (Selection): Move typedef to macgui.h.
15161 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15162 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15163 Make variables non-static.
15164 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15165 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15166 Make functions non-static.
15167 (Vmac_service_selection) [MAC_OSX]: Likewise.
15168 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15169 (mac_valid_selection_target_p, mac_clear_selection)
15170 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15171 (mac_put_selection_value, mac_selection_has_target_p)
15172 (mac_get_selection_value, mac_get_selection_target_list)
15173 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15174 Move functions to mactoolbox.c.
15175 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15176 Likewise.
15177 (copy_scrap_flavor_data, mac_handle_service_event)
15178 (install_service_handler) [MAC_OSX]: Likewise.
15179 (syms_of_macselect) <Vmac_dnd_known_types>:
15180 Use mac_dnd_default_known_types.
15181
15182 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15183 Move to mactoolbox.c.
15184 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15185 (Fx_selection_owner_p): Add EXFUN.
15186 (install_window_handler, remove_window_handler, XSetWindowBackground):
15187 Remove externs.
15188 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15189 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15190 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15191 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15192 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15193 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15194 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15195 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15196 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15197 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15198 (mac_valid_selection_target_p, mac_clear_selection)
15199 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15200 (mac_put_selection_value, mac_selection_has_target_p)
15201 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15202 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15203 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15204 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15205 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15206 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15207 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15208 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15209 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15210
15211 * mactoolbox.c: New file.
15212
152132008-04-18 Jason Rumney <jasonr@gnu.org>
15214
15215 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15216
152172008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15218
15219 * character.c (Fmultibyte_char_to_unibyte):
15220 Return latin1 chars unchanged.
15221
15222 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15223 relocated if it points to `name'.
15224
152252008-04-17 Kenichi Handa <handa@m17n.org>
15226
15227 * data.c (Faset): Allow setting a multibyte character in an
15228 ASCII-only unibyte string.
15229
15230 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15231
152322008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15233
15234 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15235 done in config.h.
15236
152372008-04-16 Juanma Barranquero <lekktu@gmail.com>
15238
15239 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15240 (Fchar_direction): Add usage in the docstring.
15241
152422008-04-15 Chong Yidong <cyd@stupidchicken.com>
15243
15244 * keyboard.c (read_key_sequence): Remove always-true checks.
15245
152462008-04-14 Jason Rumney <jasonr@gnu.org>
15247
15248 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15249 compatibility struct, for better underline positioning.
15250
152512008-04-13 David Hansen <david.hansen@gmx.net>
15252
15253 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15254 string.
15255
152562008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15257
15258 * m/hp800.h (XUINT, XSET): Remove.
15259
152602008-04-12 Juanma Barranquero <lekktu@gmail.com>
15261
15262 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15263 previous change.
15264
152652008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15266
15267 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15268 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15269
152702008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15271
15272 * keymap.h (map_keymap_canonical): Declare.
15273 * xmenu.c (single_keymap_panes): Use it.
15274
152752008-04-11 Glenn Morris <rgm@gnu.org>
15276
15277 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15278 set the target's value to that of the alias.
15279
152802008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15281
15282 * term.c (set_tty_color_mode): Left over typo.
15283
152842008-04-10 Michael Albinus <michael.albinus@gmx.de>
15285
15286 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15287 only after check for file name handler functions. Signal, when
15288 native functionality is not supported.
15289 (syms_of_fileio): Declare it unconditionally.
15290
152912008-04-10 Jason Rumney <jasonr@gnu.org>
15292
15293 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15294 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15295
15296 * w32.c (logon_network_drive): Also logon to remote drives that
15297 are mapped to drive letters.
15298
152992008-04-10 Glenn Morris <rgm@gnu.org>
15300
15301 * xdisp.c (truncate-partial-width-windows): Doc fix.
15302
153032008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15304
15305 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15306 Move functions to minibuffer.el.
15307 (syms_of_fileio): Don't declare them.
15308
153092008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15310
15311 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15312 (syms_of_minibuf): Remove its initialization.
15313
15314 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15315
153162008-04-09 Juanma Barranquero <lekktu@gmail.com>
15317
15318 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15319
153202008-04-09 Jason Rumney <jasonr@gnu.org>
15321
15322 * makefile.w32-in (distclean): Delete makefile too.
15323 (maintainer-clean): New target.
15324
15325 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15326
15327 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15328 for new font backend and composite cases.
15329
153302008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15331
15332 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15333 Most of the code moved to run_timers.
15334 (do_pending_atimers): Call run_timers.
15335 (run_timers): New function.
15336
15337 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15338 run atimers.
15339
15340 * process.c (wait_reading_process_output): The same as above.
15341
153422008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15343
15344 * minibuf.c (last_exact_completion): Remove variable.
15345 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15346 (complete_and_exit_1, complete_and_exit_2)
15347 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15348 (Fdisplay_completion_list, display_completion_list_1)
15349 (Fminibuffer_completion_help, Fself_insert_and_exit)
15350 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15351 minibuffer.el.
15352 (syms_of_minibuf): Remove corresponding initializations.
15353
15354 * keyboard.c (Qdeactivate_mark): New var.
15355 (command_loop_1): Use it to call `deactivate-mark'.
15356 (syms_of_keyboard): Initialize it.
15357
15358 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15359 to another frame.
15360 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15361 Don't call set_tty_color_mode.
15362 (store_frame_param): Reset previous_frame rather than call
15363 set_tty_color_mode.
15364 * term.c (set_tty_color_mode): Rewrite.
15365 * dispextern.h (set_tty_color_mode): New type.
15366 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15367
153682008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15369
15370 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15371 for generic chars, which do not exist any more in emacs-unicode.
15372
153732008-04-08 Michael Albinus <michael.albinus@gmx.de>
15374
15375 * coding.c (detect_coding_emacs_mule)
15376 (Ffind_operation_coding_system): Fix typo.
15377
153782008-04-08 Jason Rumney <jasonr@gnu.org>
15379
15380 * w32uniscribe.c (SNAME): Extract only symbol name.
15381
15382 * w32font.h (struct w32_metric_cache): New struct.
15383 (w32font_info): Use it.
15384 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15385 (CACHE_BLOCKSIZE): New constants.
15386
15387 * w32font.c (Qja, Qko, Qzh): New symbols.
15388 (syms_of_w32font): Initialise them.
15389 (font_matches_spec): Use them to filter by language.
15390 (recompute_cached_metrics): Remove function.
15391 (compute_metrics, clear_cached_metrics): New functions.
15392 (w32font_encode_char): Use them to manage metric cache.
15393 (w32font_text_extents): Cache metrics for all glyphs on demand.
15394 Delay converting glyph indices to WORD until needed.
15395 (w32font_open_internal): Initialize metric cache to empty.
15396 (registry_to_w32_charset): Charset should always be a symbol.
15397 (fill_in_logfont, list_all_matching_fonts): Family should
15398 always be a symbol.
15399
154002008-04-06 Jason Rumney <jasonr@gnu.org>
15401
15402 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15403 Give up if glyph indices not supported. Use uniscribe obtained
15404 ABC widths for individual metrics. Map glyph clusters back to
15405 characters using fClusterStart flag. Return number of glyphs
15406 produced, not chars processed.
15407 (uniscribe_shape): Map char at FROM to current glyph.
15408
154092008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15410
15411 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15412 Use SetMenuItemHierarchicalMenu.
15413
154142008-04-05 Jason Rumney <jasonr@gnu.org>
15415
15416 * image.c (pbm_load): Allow color values up to 65535.
15417 Throw an error if max_color_idx is outside the supported range.
15418 Report an error when image size is invalid.
15419 Read two bytes at a time when raw images have max_color_idx above 255.
15420
aac0c6e3
MR
154212008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15422
15423 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15424 append "CCL: Quitted" when the CCL program is quitted.
15425 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15426
15427 * ccl.h (struct ccl_program): New member quit_silently.
15428
154292008-04-05 Chong Yidong <cyd@stupidchicken.com>
15430
15431 * search.c (compile_pattern_1): Treat non-nil and non-string of
15432 search-spaces-regexp as nil.
15433
15434 * minibuf.c (Fassoc_string): Tweak docstring.
15435
154362008-04-05 Eli Zaretskii <eliz@gnu.org>
15437
15438 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15439 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15440 2008-03-14 to force inode be positive.
15441
15442 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15443 _S_* ones, since we now use our own sys/stat.h.
15444 (stat, fstat): Don't mangle the inode number.
15445 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15446
154472008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15448
15449 * frame.h (struct frame): Give one more bit to `visible' since we use
15450 values larger than 1 to indicate obscured frames on ttys.
15451
15452 * keymap.c (Qkeymap_canonicalize): New var.
15453 (Fmap_keymap_internal): New fun.
15454 (describe_map): Use keymap-canonicalize.
15455
15456 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15457 (Fundo_boundary): Set them.
15458 (syms_of_undo): Initialize them.
15459 (record_point): Use them instead of last_point_position*.
15460 (last_undo_buffer): Change type.
15461
154622008-04-04 Jason Rumney <jasonr@gnu.org>
15463
15464 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15465 (recompute_cached_metrics): Don't set ascent and descent per char.
15466
15467 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15468 (uniscribe_check_otf): Add GC protection before consing.
15469 Rearrange loop for counting features.
15470
154712008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15472
15473 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15474 buffer with byte-size of source buffer.
15475
154762008-04-03 Chong Yidong <cyd@stupidchicken.com>
15477
15478 * callint.c (Fcall_interactively): Handle temporary region even
15479 when shift-select-mode is off.
15480
154812008-04-03 Jason Rumney <jasonr@gnu.org>
15482
15483 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15484
154852008-04-03 Kenichi Handa <handa@m17n.org>
15486
15487 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15488 (CATEGORY_MASK_UTF_16): Likewise.
15489 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15490 binary file.
15491 (detect_coding): Add null-byte detection for a binary file.
15492 (detect_coding_system): Likewise.
15493
154942008-04-03 Jason Rumney <jasonr@gnu.org>
15495
15496 * w32uniscribe.c: New file.
15497
15498 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
15499
15500 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
15501
15502 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
15503 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
15504 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
15505 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
15506 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
15507 (Qphonetic): New symbols.
15508 (syms_of_w32font): Initialize them.
15509 (font_supported_scripts): Use them.
15510 (w32font_list_family): List all charsets.
15511 (w32font_text_extents, recompute_cached_metrics): Fix metric
15512 calculations.
15513 (w32_enumfont_pattern_entity): Make full_type a DWORD.
15514 Give opentype fonts their own format.
15515 (font_matches_spec): New arguments backend and logfont.
15516 Handle :otf spec for uniscribe backend.
15517 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
15518 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
15519
15520 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
15521 font backend.
15522 (globals_of_w32fns): Initialize uniscribe font backend.
15523
15524 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
15525 dependencies.
15526 (w32uniscribe.$(O)): New file to build.
15527 (FONT_OBJ): Include w32uniscribe.$(O).
15528 (LIBS): Add uniscribe libraries.
15529
15530 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
15531
155322008-04-02 Chong Yidong <cyd@stupidchicken.com>
15533
15534 * callint.c (Vshift_select_mode): New var.
15535 (Finteractive): Document new ^ spec.
15536 (Fcall_interactively): Call handle-shift-selection if the ^ spec
15537 is present.
15538
15539 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15540 (command_loop_1): Avoid running the direct display versions of
15541 forward-char and backward-char if shift-selection may occur.
15542 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15543 shift-translation takes place.
15544
15545 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15546 avoid clobbering by define-minor-mode.
15547
15548 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15549 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15550
15551 * syntax.c (Fforward_word): Add ^ interactive spec.
15552
15553 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15554 (Fscroll_right): Add ^ interactive spec.
15555
155562008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15557
15558 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15559
15560 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15561
15562 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15563
155642008-03-31 Juri Linkov <juri@jurta.org>
15565
15566 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15567
155682008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15569
15570 * gtkutil.c (xg_set_geometry): Fix indentation.
15571 (xg_resize_outer_widget): Remove.
15572 (x_wm_size_hint_off): Fix indentation.
15573 (xg_frame_set_char_size): Call flush_and_sync after
15574 gtk_window_resize.
15575 (x_wm_set_size_hint): Pass NULL as geometry window to
15576 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15577 Add menu bar and tool bar height to base height.
15578 (xg_update_frame_menubar, free_frame_menubar)
15579 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15580 (update_frame_tool_bar, free_frame_tool_bar):
15581 Change xg_resize_outer_widget to xg_frame_set_char_size.
15582
155832008-03-30 Michael Albinus <michael.albinus@gmx.de>
15584
15585 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15586 (Fdbus_call_method): New parameter TIMEOUT.
15587 (dbus-send-signal): Optimize UNGCPRO call.
15588
155892008-03-29 Juri Linkov <juri@jurta.org>
15590
15591 * window.c (Fdisplay_buffer): Move call to
15592 Vsplit_window_preferred_function out of conditions that check
15593 if window is eligible for vertical splitting.
15594 When Vsplit_window_preferred_function is non-nil, call it and use
15595 its non-nil return value as window. Otherwise, continue doing
15596 vertical splitting using Fsplit_window with arg horflag=nil.
15597 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15598 default value from `split-window' to nil.
15599
156002008-03-29 Juri Linkov <juri@jurta.org>
15601
15602 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15603 for interactive code letters 'b' and 'B'.
15604
156052008-03-29 Eli Zaretskii <eliz@gnu.org>
15606
15607 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15608 multibyte string.
15609
156102008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15611
15612 * keyboard.c (pending_funcalls): New var.
15613 (timer_check): Run it.
15614 (syms_of_keyboard): Initialize it.
15615 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15616 (Vdelete_terminal_functions): New vars.
15617 (syms_of_terminal): Initialize them.
15618 (Fdelete_terminal): Run delete-terminal-functions.
15619 * xdisp.c (safe_eval): Rewrite.
15620 (safe_call2): New fun.
15621 * frame.c (Qdelete_frame_functions): New var.
15622 (syms_of_frame): Initialize it.
15623 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15624 * lisp.h (safe_call2, pending_funcalls): Declare.
15625
156262008-03-28 Andreas Schwab <schwab@suse.de>
15627
15628 * indent.c (Fmove_to_column): Move declaration before statements.
15629
156302008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15631
15632 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15633 (struct frame): Use bit fields for boolean vars.
15634
15635 * process.c (server_accept_connection): Simplify naming.
15636 (emacs_get_tty_pgrp): Use SDATA.
15637
15638 * coding.c (decode_coding_object): Fix last change.
15639
156402008-03-27 Jason Rumney <jasonr@gnu.org>
15641
15642 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
15643
156442008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
15645
15646 * charset.c (Fdefine_charset_internal): Change the way of
15647 registering charsets in Vcharset_order_list.
15648 (syms_of_charset): Make the charset `eight-bit' supplementary.
15649
156502008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
15651
15652 * regex.c (EXTEND_BUFFER): Change order of pointer addition
15653 operations, to avoid having the difference between pointers
15654 overflow.
15655
156562008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
15657
15658 * indent.c (check_display_width): New fun.
15659 (scan_for_column): Use it.
15660
15661 * data.c (syms_of_data): Mark most-positive-fixnum and
15662 most-negative-fixnum as constants.
15663
15664 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
15665
15666 * indent.c (scan_for_column): Extract from current_column_1.
15667 Merge with the same code from Fmove_to_column.
15668 (current_column_1, Fmove_to_column): Use it.
15669
156702008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
15671
15672 * keymap.c (map_keymap_internal): New fun.
15673 (map_keymap): Use it.
15674 (Fmap_keymap_internal): New fun.
15675 (Fmap_keymap): Remove left-out test from before make_save_value.
15676
15677 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
15678
15679 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
15680 Use XCAR/XCDR.
15681
15682 * process.h (struct Lisp_Process): Remove filter_multibyte.
15683 * process.c (QCfilter_multibyte): Remove.
15684 (setup_process_coding_systems): Don't use filter_multibyte.
15685 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
15686 (read_process_output): Don't adjust multibyteness to filter_multibyte.
15687 (Fset_process_filter_multibyte): Change the coding-system to
15688 approximate the previous behavior.
15689 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
15690 coding-system.
15691
15692 * coding.c (decode_coding_object): When not decoding into a buffer,
15693 obey the coding system's preference of (uni|multi)byte.
15694
156952008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
15696
15697 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
15698 every char is changed and has a different byte-length.
15699 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
15700 Fix int -> EMACS_INT.
15701
157022008-03-23 David Hansen <david.hansen@gmx.net>
15703
15704 * dbusbind.c (xd_read_message): Remove extra copying of message
15705 strings. Check for NULL `interface' or `member'.
15706
157072008-03-22 Eli Zaretskii <eliz@gnu.org>
15708
15709 * w32.c (readdir): If FindFirstFile/FindNextFile return in
15710 cFileName a file name that includes `?' characters, use the 8+3
15711 alias in cAlternateFileName instead.
15712
157132008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
15714
15715 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
15716
157172008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15718
15719 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
15720 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
15721 work on current_buffer only instead (that was already the case
15722 for some of the code anyway).
15723 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
15724 (temp_set_point, temp_set_point_both): Use EMACS_INT.
15725 (SET_PT, SET_PT_BOTH): Adjust.
15726 * intervals.h (set_point, temp_set_point, set_point_both)
15727 (temp_set_point_both): Remove redundant declarations.
15728
157292008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15730
15731 * fileio.c (Finsert_file_contents):
15732 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
15733 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
15734 when buffer != current_buffer anyway.
15735
157362008-03-20 Andreas Schwab <schwab@suse.de>
15737
15738 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
15739 as default.
15740
157412008-03-19 Jason Rumney <jasonr@gnu.org>
15742
15743 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
15744 (syms_of_w32fns): Initialize them.
15745 (HOURGLASS_ID): New constant.
15746 (x_window_to_frame): Don't check hourglass_window.
15747 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
15748 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
15749 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
15750 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
15751 Only change the cursor if hourglass is not active.
15752 (Fx_create_frame): Initialize frame's current_cursor.
15753 (hourglass_atimer): Remove.
15754 (hourglass_started): New function.
15755 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
15756 (show_hourglass): Adapt to w32, changing argument to frame.
15757
15758 * w32term.h (struct w32_output): Remove hourglass_window.
15759 Add current_cursor.
15760
15761 * eval.c (call_debugger, Fsignal):
15762 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
15763 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
15764 (Fexecute_extended_command, cancel_hourglass_unwind):
15765 * minibuf.c (read_minibuf):
15766 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
15767
157682008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
15769
15770 * window.c (run_funs): New fun.
15771 (run_window_configuration_change_hook): Use it to run the buffer-local
15772 and the global part of the hook.
15773
15774 * xdisp.c (format_mode_line_unwind_data): Add window argument.
15775 (unwind_format_mode_line): Restore selected window.
15776 (x_consider_frame_title, Fformat_mode_line): Set selected window.
15777
157782008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15779
15780 * editfns.c (Fchar_equal): Check they are valid characters.
15781
15782 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
15783
157842008-03-17 Andreas Schwab <schwab@suse.de>
15785
15786 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
15787 against a charset.
15788
15789 * lisp.h (Fbuffer_list): Declare.
15790
157912008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 15792
aac0c6e3
MR
15793 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
15794 handlebox_widget is != 0.
15795
157962008-03-16 Juri Linkov <juri@jurta.org>
15797
15798 * callint.c (Fcall_interactively): For interactive code letters
15799 'b' and 'B' put the buffer list into the list of default "future"
15800 values of the minibuffer.
15801
158022008-03-16 Andreas Schwab <schwab@suse.de>
15803
15804 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15805 modifiers.
15806
15807 * regex.c (re_match_2_internal): Correct matching of a charset
15808 against latin-1 characters.
15809
158102008-03-16 Kenichi Handa <handa@m17n.org>
15811
15812 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15813 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15814 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15815 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15816 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15817 CHAR_STRING_ADVANCE.
15818 (produce_chars): Fix for the case that the source and the
15819 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15820 instead of CHAR_STRING_ADVANCE.
15821 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15822 STRING_CHAR_ADVANCE.
15823
158242008-03-15 Andreas Schwab <schwab@suse.de>
15825
15826 * regex.c (re_match_2_internal): Correct matching of eight bit
15827 characters in unibyte strings.
15828
158292008-03-15 Martin Rudalics <rudalics@gmx.at>
15830
15831 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15832 at end of range when it coincides with the end of the buffer.
15833
158342008-03-14 Eli Zaretskii <eliz@gnu.org>
15835
15836 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15837
15838 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15839
158402008-03-14 Jason Rumney <jasonr@gnu.org>
15841
15842 * editfns.c (initial_tz): New variable.
15843 (syms_of_editfns): Initialize it.
15844 (Fset_time_zone_rule): Set it when first called.
15845 Use it when TZSTRING is nil.
15846
15847 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15848 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15849 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15850 (globals_of_w32fns): Initialize them.
15851 (compute_tip_xy): Use them to position tooltips.
15852
158532008-03-14 Glenn Morris <rgm@gnu.org>
15854
15855 * emacs.c (main): Revert previous change.
15856 (standard_args): Revert -internal-script back to -scriptload,
15857 and remove the long-option form.
15858
158592008-03-13 Glenn Morris <rgm@gnu.org>
15860
15861 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15862 Remove option -enable-font-backend.
15863
158642008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15865
15866 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15867
158682008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15869
15870 * xterm.c (x_connection_closed): For GTK: If this is the last
15871 terminal just exit without closing the display.
15872
158732008-03-11 Jason Rumney <jasonr@gnu.org>
15874
15875 * w32font.c (w32font_full_name): Use floor to round.
15876
f0131492 158772008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
15878
15879 * sound.c (alsa_configure): Declare vol at beginning of block.
15880
15881 * fontset.c (Ffontset_info): Remove extra semicolon.
15882
158832008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15884
15885 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15886 size of resulting string.
15887
158882008-03-10 Jason Rumney <jasonr@gnu.org>
15889
15890 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15891
158922008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15893
15894 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15895 Don't pretend as if characters with display property haven't been
15896 consumed for string-replacing-string case.
15897
158982008-03-08 Kim F. Storm <storm@cua.dk>
15899
15900 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15901 (get_next_display_element, next_element_from_string)
15902 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15903
159042008-03-08 Andreas Schwab <schwab@suse.de>
15905
15906 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15907
159082008-03-06 Jason Rumney <jasonr@gnu.org>
15909
15910 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15911 when charset not specified. Only translate ANSI to unicode when
15912 font_type is truetype.
15913 (w32font_coverage_ok): New function.
15914 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15915
159162008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15917
15918 * lread.c (Fread_char): Resolve modifiers.
15919 (Fread_char_exclusive): Likewise.
15920
15921 * character.c (char_resolve_modifier_mask): New function.
15922 (char_string): Use char_resolve_modifier_mask.
15923 (Fchar_resolve_modifiers): New function.
15924 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15925 function.
15926
159272008-03-04 Jason Rumney <jasonr@gnu.org>
15928
15929 * makefile.w32-in: Always include w32font.c in the build.
15930 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15931
159322008-03-04 Andreas Schwab <schwab@suse.de>
15933
15934 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15935 (versionclean): Likewise.
15936
159372008-03-04 Juanma Barranquero <lekktu@gmail.com>
15938
15939 * .cvsignore: Add oo.
15940
159412008-03-03 Andreas Schwab <schwab@suse.de>
15942
15943 * coding.c (decode_coding_object): Inhibit gap shrinking while
15944 decoding in place.
15945
159462008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15947
15948 * w32term.c: Remove unused include "gnu.h".
15949 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15950
15951 * gnu.h: Rename to ...
15952 * emacs-icon.h: ... this.
15953 * xterm.c: Use emacs-icon.h instead of gnu.h.
15954 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15955
159562008-03-03 Juanma Barranquero <lekktu@gmail.com>
15957
15958 * w32font.c: Include math.h.
15959
159602008-03-03 Jason Rumney <jasonr@gnu.org>
15961
15962 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15963 Compute options separately.
15964 (w32font_open_internal): Set glyph_idx before caching metrics.
15965
15966 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15967 Define if system headers don't.
15968 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15969 (w32font_encode_char): Don't declare here.
15970
15971 * w32font.c (Quniscribe, QCformat): New symbols.
15972 (syms_of_w32font): Define them.
15973 (w32font_has_char): Indicate uncertainty.
15974 (w32font_encode_char): Encode as glyph point. Make static.
15975 (recompute_cached_metrics): New function.
15976 (w32font_open_internal): Use it. Set font to use glyph points
15977 initially. Set format based on type of font.
15978 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15979 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15980 on it. Set format based on information available here.
15981 (add_font_entity_to_list): Identify backend based on opentype_only.
15982
159832008-03-02 Andreas Schwab <schwab@suse.de>
15984
15985 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15986
15987 * coding.c (decode_coding_big5, produce_chars):
15988 Fix typos in last change.
15989
159902008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15991
15992 * gnu.h: New icon.
15993
159942008-03-02 Kenichi Handa <handa@m17n.org>
15995
15996 * coding.c (decode_coding_utf_8): When eol-type of CODING is
15997 `dos', don't decode '\r' if that is the last in the source.
15998 (decode_coding_utf_16, decode_coding_emacs_mule)
15999 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16000 (decode_coding_raw_text, decode_coding_charset): Likewise.
16001 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16002
160032008-03-01 Jason Rumney <jasonr@gnu.org>
16004
16005 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16006
160072008-03-01 Kim F. Storm <storm@cua.dk>
16008
16009 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16010
160112008-03-01 Jason Rumney <jasonr@gnu.org>
16012
16013 * w32font.c (w32font_full_name): New function.
16014 (w32font_open_internal): Use it.
16015
160162008-03-01 Kim F. Storm <storm@cua.dk>
16017
16018 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16019
160202008-03-01 Jason Rumney <jasonr@gnu.org>
16021
16022 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16023
160242008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16025
16026 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16027 xg_frame_resized when the event is for the edit widget.
16028
16029 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16030
16031 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16032 set_char_size.
16033 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16034 operations on widgets here. Just set frame size if needed.
16035 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16036 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16037 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16038 the whole frame.
16039 (xg_create_tool_bar): Move attachment of the tool bar to
16040 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16041 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16042
160432008-03-01 Jason Rumney <jasonr@gnu.org>
16044
16045 * w32fns.c (w32_msg_pump): Disable debug code.
16046
160472008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16048
16049 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16050
160512008-02-29 Chong Yidong <cyd@stupidchicken.com>
16052
16053 * xdisp.c (next_overlay_string): Don't set
16054 overlay_strings_at_end_processed_p if we're currently reading from
16055 a display string.
16056
160572008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16058
16059 * xdisp.c (get_overlay_strings_1): Fix typo.
16060
160612008-02-29 Chong Yidong <cyd@stupidchicken.com>
16062
16063 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16064
160652008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16066
16067 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16068
16069 * xdisp.c (display_mode_element): Cancel the previous change.
16070 (decode_mode_spec): Likewise.
16071 (handle_auto_composed_prop): Don't make composition if it->string
16072 is a string.
16073
160742008-02-27 Kim F. Storm <storm@cua.dk>
16075
16076 * lisp.h (GLYPH): Change type from int to struct with separate char
16077 and face_id members.
16078 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16079 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16080 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16081 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16082 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16083 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16084 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16085 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16086 handle new Lisp glyph code encoding, either an integer or a cons.
16087
16088 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16089 (GLYPH_ALIAS): Delete.
16090 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16091 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16092 (GLYPH_FROM_CHAR): Replace macro by ...
16093 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16094
16095 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16096 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16097 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16098 (GLYPH_INVALID_P): New macro.
16099 (spec_glyph_lookup_face): Update prototype.
16100
16101 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16102 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16103 new glyph code encoding.
16104 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16105 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16106
16107 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16108 Adapt to new glyph type and new glyph code encoding.
16109
16110 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16111
16112 * indent.c (current_column, current_column_1, Fmove_to_column)
16113 (compute_motion): Adapt to new glyph code encoding.
16114
16115 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16116
161172008-02-27 Chong Yidong <cyd@stupidchicken.com>
16118
16119 * process.c (wait_reading_process_output): Check for window
16120 changes caused by timers.
16121 Suggested by Johan Bockgård.
16122
161232008-02-27 Glenn Morris <rgm@gnu.org>
16124
16125 * emacs.c (USAGE1): Add `--disable-font-backend'.
16126
161272008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16128
16129 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16130 is made to the buffer.
16131
161322008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16133
16134 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16135 (face_at_string_position):
16136 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16137 (face_at_string_position):
16138 * xdisp.c (display_string, next_overlay_change):
16139 * buffer.h (overlays_at):
16140 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16141 Update callers.
16142
161432008-02-26 Chong Yidong <cyd@stupidchicken.com>
16144
16145 * editfns.c (Fformat): Doc fix.
16146
161472008-02-26 Juanma Barranquero <lekktu@gmail.com>
16148
16149 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16150 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16151 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16152
161532008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16154
16155 * buffer.c (Fbuffer_swap_text): New function.
16156 (syms_of_buffer): Defsubr it.
16157
161582008-02-25 Chong Yidong <cyd@stupidchicken.com>
16159
16160 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16161
161622008-02-25 Jason Rumney <jasonr@gnu.org>
16163
16164 * w32font.c (w32font_draw): Draw one character at a time when padding.
16165
161662008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16167
16168 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16169 Handle a nil arg. Use run_window_configuration_change_hook.
16170 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16171 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16172 Use run_window_configuration_change_hook.
16173
161742008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16175
16176 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16177 1-pixel width.
16178
161792008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16180
16181 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16182 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16183 if the glyph in the font is zero pixel with.
16184
16185 * dispextern.h (struct glyph_string): New member padding_p.
16186
16187 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16188
16189 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16190
16191 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16192
16193 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16194
16195 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16196
161972008-02-25 Jason Rumney <jasonr@gnu.org>
16198
16199 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16200
162012008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16202
16203 Allow fine-grained image-cache flushing.
16204 * dispextern.h (struct image): Add `dependencies' field.
16205 (clear_image_caches): Change arg to Lisp_Object.
16206 * image.c (make_image): Initialize `dependencies' field.
16207 (clear_image_cache): Change arg to allow fine-grained flushing.
16208 Perform the flush even if image-cache-eviction-delay is nil.
16209 (clear_image_caches): Change arg to Lisp_Object.
16210 (Fclear_image_cache): Expand meaning of the argument.
16211 (mark_image): Mark `dependencies' field.
16212 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16213 (lface_hash): Use XHASH rather than XFASTINT.
16214 (face_at_buffer_position): Fix int -> EMACS_INT position.
16215 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16216 (select_frame_for_redisplay): Remove code duplication.
16217 (redisplay_internal): Adapt arg to call to clear_image_caches.
16218
162192008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16220
16221 * s/vms4-0.h:
16222 * s/vms4-2.h:
16223 * s/vms4-4.h:
16224 * s/vms5-5.h: Remove, unused.
16225
16226 * s/irix5-2.h:
16227 * s/irix6-0.h:
16228 * s/riscos5.h:
16229 * s/mach-bsd4-3.h:
16230 * m/mips4.h: Remove files for obsolete systems.
16231
16232 * Makefile.in:
16233 * filelock.c:
16234 * unexmips.c:
16235 * m/hp9000s300.h:
16236 * m/iris4d.h:
16237 * s/aix3-1.h:
16238 * s/hpux.h:
16239 * s/msdos.h:
16240 * s/usg5-0.h:
16241 * s/usg5-2-2.h:
16242 * s/usg5-2.h:
16243 * s/usg5-3.h: Remove references to obsolete variables.
16244
16245 * s/irix5-0.h: Remove, move all the contents ...
16246 * s/irix6-5.h: ... here. Simplify.
16247 * config.in: Regenerate.
16248
162492008-02-24 Jason Rumney <jasonr@gnu.org>
16250
16251 * w32term.c (x_draw_glyph_string_background): Clear the background
16252 manually when cleartype is in use.
16253 (x_draw_glyph_string_foreground): Draw text transparently when
16254 cleartype is in use.
16255
16256 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16257 a font into it unless we have to.
16258
162592008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16260
16261 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16262 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16263
aac0c6e3
MR
162642008-02-18 Jason Rumney <jasonr@gnu.org>
16265
16266 * w32fns.c (Fw32_shell_execute): Encode parameters.
16267
162682008-02-09 Eli Zaretskii <eliz@gnu.org>
16269
16270 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16271
162722008-02-05 Juanma Barranquero <lekktu@gmail.com>
16273
16274 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16275
162762008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16277
16278 * xterm.c (x_set_offset): Don't change the gravity if
16279 CHANGE_GRAVITY is -1.
16280
162812008-02-23 Chong Yidong <cyd@stupidchicken.com>
16282
16283 * fileio.c (auto_save_error_occurred): New var.
16284 (auto_save_error): Set it.
16285 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16286 error occurred.
16287
162882008-02-23 Eli Zaretskii <eliz@gnu.org>
16289
16290 * w32.c (globals_of_w32): Add initializations for
16291 g_b_init_get_sid_sub_authority and
16292 g_b_init_get_sid_sub_authority_count.
16293
162942008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16295
16296 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16297 (font_parse_xlfd): Use them for sanity check.
16298 (Finternal_set_font_style_table): Make sure the table is bijective.
16299
16300 Consolidate the image_cache to the terminal struct.
16301 * termhooks.h (P_): Remove redundant def.
16302 (struct terminal): New field `image_cache'.
16303 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16304 of FRAME_X_IMAGE_CACHE.
16305 * xterm.h (struct x_display_info): Remove image_cache field.
16306 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16307 * w32term.h (struct w32_display_info): Remove image_cache field.
16308 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16309 * macterm.h (struct mac_display_info): Remove image_cache field.
16310 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16311 * xterm.c (x_term_init):
16312 * w32term.c (w32_term_init):
16313 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16314 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16315 Remove declarations.
16316 (clear_image_caches, mark_image_cache): New declarations.
16317 * xfaces.c (clear_face_cache):
16318 * xdisp.c (redisplay_internal): Use clear_image_caches.
16319 * image.c (clear_image_cache): Don't check that a frame is on
16320 a window-system before checking if it shares the same cache.
16321 (clear_image_caches): New function.
16322 (Fclear_image_cache): Use it.
16323 (mark_image): Move from allo.c.
16324 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16325 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16326 (mark_object): Don't call mark_image_cache for frames.
16327 (mark_terminals): Call mark_image_cache.
16328
16329 * lisp.h (Fdelete_terminal): Declare.
16330
16331 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16332 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16333 wrong_type_argument.
16334
163352008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16336
16337 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16338 malayalam.el, and tamil.el. Add sinhala.el.
16339
163402008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16341
16342 * xterm.c (x_connection_closed): Consolidate identical tests.
16343 (x_delete_terminal): Don't crash if called via x_connection_closed.
16344
163452008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16346
16347 * xdisp.c (decode_mode_spec): New arg string.
16348 (display_mode_element): Adjust for the above change.
16349
163502008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16351
16352 * callint.c (Fcall_interactively): Use AREF.
16353
163542008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16355
16356 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16357
163582008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16359
16360 * xfns.c (Fx_show_tip): Set string to " " if empty.
16361
163622008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16363
16364 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16365 with Qt.
16366
163672008-02-17 Kenichi Handa <handa@m17n.org>
16368
16369 * ftfont.c (ftfont_shape): Return Lispy number.
16370
16371 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16372 for GCs.
16373 (Finternal_set_font_selection_order): Call font_update_sort_order
16374 only when enable_font_backend is set.
16375 (realize_x_face): Set face->font_info to that of default face only
16376 when enable_font_backend is set.
16377
16378 * xdisp.c (handle_composition_prop): Set it->c to the fist
16379 character of the composed region.
16380 (fill_composite_glyph_string): Set base_face->font_info to
16381 s->font_info. Get a face for ascii from base_face->ascii_face.
16382 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16383 with a face already decided.
16384 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16385 non-negative.
16386 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16387 call font_prepare_composition unconditionally.
16388
16389 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16390
16391 * xterm.h (struct x_display_info): New member font.
16392
16393 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16394 (x_set_mouse_face_gc, x_new_font): Likewise.
16395 (x_term_init): Setup display_info->font.
16396 (x_delete_terminal): Free display_info->font.
16397
16398 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16399
16400 * ftxfont.c (ftxfont_default_fid): Delete it.
16401 (ftxfont_open): Set xfont->fid to 0.
16402 (ftxfont_end_for_frame): Clear data specific to the frame and the
16403 font-driver.
16404
16405 * xftfont.c (xftfont_default_fid): Delete it.
16406 (xftfont_open): Set xfont->fid to 0.
16407
16408 * fontset.c (FONTSET_OBJLIST): New macro.
16409 (fontset_find_font): Update font-object list of the fontset.
16410 (free_realized_fontset): New function.
16411 (free_face_fontset): Call free_realized_fontset.
16412 (Ffont_info): Call font_close_object only when enable_font_backend
16413 is set.
16414
16415 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16416 [HAVE_NTGUI]: Include w32term.h.
16417 [MAC_OS]: Include macterm.ch.
16418 (font_otf_ValueRecord): Use make_number.
16419 (font_finish_cache): Fix handling of reference count.
16420 (font_clear_cache): Update num_fonts.
16421 (font_open_entity): Update smallest_char_width and
16422 smallest_font_height of the frame.
16423 (font_close_object): Update num_fonts.
16424 (Fclear_font_cache): Fix finding the target cache data.
16425
164262008-02-16 Glenn Morris <rgm@gnu.org>
16427
16428 * fontset.c (Finternal_char_font): Fix compilation warning.
16429
164302008-02-16 Eli Zaretskii <eliz@gnu.org>
16431
16432 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16433 instead of char arrays. Enlarge the size of array passed to
16434 get_token_information.
16435
16436 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16437 warnings.
16438
164392008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16440
16441 * .gdbinit: Don't set `args', it breaks gdb --args.
16442
164432008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16444
16445 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16446 within a narrowed buffer.
16447
164482008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16449
16450 * coding.c (decode_coding_object, encode_coding_object):
16451 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16452
164532008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16454
16455 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16456 hardcoding 1.
16457 (detect_coding_system):
16458 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16459 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16460 * insdel.c (insert_from_gap):
16461 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16462 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16463 (string_to_multibyte):
16464 * character.c (chars_in_text, multibyte_chars_in_text):
16465 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16466
16467 * character.h (FETCH_STRING_CHAR_ADVANCE)
16468 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16469 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16470 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16471
16472 * casefiddle.c (casify_region): Only call after-change and composition
16473 functions on the part of the region that was changed.
16474
16475 * keyboard.c (read_avail_input):
16476 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16477
164782008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16479
16480 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16481 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16482
164832008-02-11 Juanma Barranquero <lekktu@gmail.com>
16484
16485 * w32menu.c (push_submenu_start, push_submenu_end)
16486 (push_left_right_boundary, push_menu_pane, push_menu_item):
16487 * keyboard.c (read_key_sequence): Don't pass args with side effects
16488 to AREF, it fails when compiling with -DENABLE_CHECKING.
16489
164902008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16491
16492 * Makefile.in (${lispsource}international/charprop.el):
16493 Delete this target.
16494
16495 * search.c (boyer_moore): Fix incorrect synching of the trunk and
16496 emacs-unicode-2.
16497
164982008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16499
16500 * terminal.c (Fdelete_terminal): Clean up the `force' path.
16501
165022008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16503
16504 * frame.c (Qnoelisp): New symbol.
16505 (syms_of_frame): Initialize it.
16506 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
16507 harmless Elisp code, from a strong `force' from x_connection_closed.
16508 * frame.h (Qnoelisp): Declare.
16509 * xterm.c (x_connection_closed): Pass `noelisp'.
16510
16511 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
16512 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
16513 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
16514 rather than `int' for the type of `type'.
16515
165162008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
16517
16518 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
16519
16520 * Makefile.in (GNUC): Remove support for gcc-1.x.
16521
165222008-02-10 Richard Stallman <rms@gnu.org>
16523
16524 * lisp.h (ASET): Use AREF, not ASLOT.
16525
165262008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16527
16528 * lisp.h (ASET): Check bounds.
16529
165302008-02-10 Glenn Morris <rgm@gnu.org>
16531
16532 * buffer.c (mode-name): Doc fix.
16533
165342008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16535
16536 * Makefile.in:
16537 * emacs.c:
16538 * gmalloc.c:
16539 * keyboard.c:
16540 * lisp.h:
16541 * m/ibm370aix.h:
16542 * process.c:
16543 * regex.c:
16544 * s/hpux.h:
16545 * sysdep.c:
16546 * sysselect.h:
16547 * systty.h:
16548 * unexec.c:
16549 * w32term.c:
16550 * xsmfns.c:
16551 * xterm.c: Remove code that deals with obsolete variables.
16552
16553 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16554
16555 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16556 nothing else needs it anymore.
16557
165582008-02-09 Eli Zaretskii <eliz@gnu.org>
16559
16560 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16561 instead of unibyte_char_to_multibyte.
16562
165632008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16564
16565 * s/gnu-linux.h: Remove commented out code.
16566
16567 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16568
16569 * Makefile.in: Update what RMS says about using autoconf.
16570 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16571 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16572 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16573 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16574
165752008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16576
16577 * keymap.c (Fkey_description): Move side effect outside of macro call.
16578
16579 * xfaces.c (Finternal_make_lisp_face):
16580 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16581
16582 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16583 (syms_of_fontset): Use ASET.
16584
16585 * fns.c (concat): Move side effect outside of macro call.
16586 (hash_clear): Use ASET.
16587
165882008-02-08 Richard Stallman <rms@gnu.org>
16589
16590 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16591 If FORCE, and frame has a surrogate minibuffer for another frame,
16592 delete the other frame first.
16593
165942008-02-07 Timo Savola <timo.savola@iki.fi>
16595
16596 * xterm.c (x_detect_focus_change): Handle embed client message.
16597 (handle_one_xevent): Ditto.
16598 (handle_one_xevent): If embedded and we get a button press/release,
16599 request focus.
16600 (xembed_set_info, xembed_send_message): New functions.
16601 (x_make_frame_visible): Call xembed_set_info if embedded.
16602 (x_make_frame_invisible): Call xembed_set_info if embedded.
16603 (x_term_init): Initialize Xatom_XEMBED.
16604 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16605 (x_iconify_frame): Ditto.
16606
16607 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16608 (enum xembed_info, enum xembed_message, enum xembed_focus)
16609 (enum xembed_modifier, enum xembed_accelerator): New.
16610 (xembed_set_info, xembed_send_message): Declare.
16611 (FRAME_X_EMBEDDED_P): New.
16612
16613 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16614 gtk_plug_new.
16615
16616 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16617 window ID of a frame.
16618 (x_window): Reparent frame if embedded.
16619 (Fx_create_frame): Don't set border width if embedded.
16620
16621 * emacs.c (USAGE3): Add --parent-id.
16622 (standard_args): Ditto.
16623
166242008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16625
16626 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16627
166282008-02-07 Jim Meyering <meyering@redhat.com>
16629
16630 Use "do...while (0)", not "if (1)...else" in macro definitions.
16631 The latter provokes a warning from gcc about the empty else, when
16632 followed by ";". Also, without that trailing semicolon, it would
16633 silently swallow up any following statement.
16634 * syntax.h (SETUP_SYNTAX_TABLE)
16635 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16636 * buffer.h (DECODE_POSITION): Likewise.
16637 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16638 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16639 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16640 (FETCH_CHAR_ADVANCE): Likewise.
16641 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
16642
166432008-02-07 Jim Meyering <meyering@redhat.com>
16644
16645 * lread.c [lint]: Don't include <sys/inode.h>.
16646
166472008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
16648
16649 * xselect.c (x_handle_dnd_message):
16650 * xmenu.c (digest_single_submenu, xmenu_show):
16651 * xdisp.c (with_echo_area_buffer_unwind_data)
16652 (format_mode_line_unwind_data, unwind_format_mode_line)
16653 (display_menu_bar):
16654 * eval.c (Ffetch_bytecode):
16655 * doc.c (store_function_docstring):
16656 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
16657 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
16658 * buffer.c (add_overlay_mod_hooklist): Use ASET.
16659
166602008-02-07 Kenichi Handa <handa@m17n.org>
16661
16662 * ftxfont.c (ftxfont_open): Don't set
16663 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
16664
16665 * ftfont.c (ftfont_open): Fix previous change.
16666
166672008-02-06 Jason Rumney <jasonr@gnu.org>
16668
16669 * w32font.c (w32font_text_extents): Fill in lbearing metric.
16670 Use cached metrics for ASCII characters.
16671 (w32font_open_internal): Don't set font's owning_frame.
16672 Cache metrics for ASCII characters.
16673
16674 * w32font.h (struct w32font_info): Add ascii_metrics.
16675 Remove owning_frame.
16676
166772008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
16678
16679 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
16680 to negative value.
16681
16682 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
16683
16684 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
16685
16686 * charset.c (syms_of_charset): Set QCtest and Qeq.
16687
166882008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
16689
16690 * process.c (Fstart_process):
16691 * callproc.c (Fcall_process): Handle the case where
16692 Funhandled_file_name_directory returns nil.
16693
16694 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
16695 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
16696 * font.c (check_gstring): Use them and AREF to access the vector before
16697 we know it's really a gstring.
16698 (Ffont_shape_text): Fix typo.
46e722a9 16699 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
16700
16701 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
16702 Declare.
16703
16704 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
16705
167062008-02-05 Jason Rumney <jasonr@gnu.org>
16707
16708 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
16709 Set smallest_font_height and smallest_char_width in display info.
16710
167112008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
16712
16713 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
16714
167152008-02-05 Miles Bader <miles@gnu.org>
16716
16717 * xfaces.c (get_lface_attributes, merge_named_face)
16718 (lookup_named_face, lookup_derived_face, realize_named_face):
16719 Revert 2008-02-01 change by cyd@stupidchicken.com.
16720
167212008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
16722
16723 * fontset.c (Ffontset_info): Handle the case of inhibitting the
16724 fallback fonts.
16725 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
16726
167272008-02-04 Jason Rumney <jasonr@gnu.org>
16728
16729 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
16730 set full_name.
16731 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
16732
167332008-02-03 Jason Rumney <jasonr@gnu.org>
16734
16735 * makefile.w32-in (OBJ1): Include font.o here.
16736 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
16737
167382008-02-02 Jason Rumney <jasonr@gnu.org>
16739
16740 * makefile.w32-in (temacs): Bump EMHEAP to 21.
16741
167422008-02-01 Jason Rumney <jasonr@gnu.org>
16743
16744 * s/cygwin.h: Define VIRT_ADDR_VARIES.
16745
16746 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
16747
167482008-02-01 Andreas Schwab <schwab@suse.de>
16749
16750 * Makefile.in (shortlisp, lisp): Update for rename of
16751 ../lisp/language/myanmar.el.
16752
167532008-02-01 Chong Yidong <cyd@stupidchicken.com>
16754
16755 * xfaces.c (get_lface_attributes): Delete function.
16756 (merge_named_face, lookup_named_face, lookup_derived_face)
16757 (realize_named_face): Call lface_from_face_name directly, and use
16758 the fact that merge_face_vectors does not alter its FROM argument.
16759
167602008-02-01 Jason Rumney <jasonr@gnu.org>
16761
16762 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
16763 input in the default locale. Handle non-Unicode multibyte input.
16764
167652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16766
16767 * fontset.c (reorder_font_vector): Exclude nil elements from the
16768 font group. Don't try multiple fonts.
16769 (fontset_font): Adjust for the above change.
16770 (Finternal_char_font): Return nil if the found font doesn't
16771 contain the character ch.
16772
16773 * Makefile.in (lisp, shortlisp): Add cham.el.
16774
167752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16776
16777 * font.h (FONTP): Make it return 1 also for a font-object.
16778
16779 * .gdbinit (xfontset): New function.
16780
16781 * font.c (font_find_for_lface): Check if the character C is
16782 supported or not only for the first font.
16783
16784 * fontset.c (reorder_font_vector): Fix typo.
16785 (fontset_find_font): Don't add a font-spec specifying a script.
16786 Use 0 (not Qt) for the indication of empty font-group. Change the
16787 format of RFONT-DEF. Return Qt if no font in the font-group
16788 support the character.
16789 (fontset_font): Adjust for the above change. If no font was
16790 found the character, remember that.
16791 (face_for_char): Adjust for the change of RFONT-DEF.
16792 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
16793 no font for the target.
16794 (Finternal_char_font): Adjust for the change of RFONT-DEF.
16795
167962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16797
16798 * font.c (font_load_for_face): Handle the case that the font in
16799 face->lface is a string.
16800
168012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16802
16803 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16804
168052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16806
16807 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16808 Fix previous change. If the frame is not on a window system,
16809 signal an error.
16810
168112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16812
16813 * coding.c (decode_coding_object, encode_coding_object): Adjust
16814 marker positions after conversion.
16815
16816 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16817
168182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16819
16820 * font.c (font_find_for_lface): Fix the handling of the return
16821 value of font_has_char.
16822 (Ffont_shape_text): Fix previous change.
16823
16824 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16825 (fontset_ref_and_range): Delete it.
16826 (fontset_find_font): Call char_table_ref_and_range instead of
16827 FONTSET_REF_AND_RANGE.
16828 (make_fontset): Don't setup font groups of Latin here.
16829 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16830 (new_fontset_from_font): Make the specified font the default for
16831 all Latin characters.
16832
168332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16834
16835 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16836 is on a window system before accessing the fontset of the frame.
16837
168382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16839
16840 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16841
16842 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16843 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16844
16845 * font.c (Ffont_shape_text): If the font driver doesn't have a
16846 shaper function, make zero-width glyphs to have at least one-pixel
16847 width. Fix setting of `to' field of glyphs.
16848
168492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16850
16851 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16852 glyphs.
16853
16854 * font.h (struct font_driver): Improve docstring of member `shape'.
16855
168562008-02-01 Kenichi Handa <handa@m17n.org>
16857
16858 * composite.c (syms_of_composite): Fix docstring of
16859 auto-composition-function.
16860
16861 * font.h (LGLYPH_SIZE): New macro.
16862
16863 * font.c (Ffont_fill_gstring): Stop filling when a character not
16864 supported by the font is found.
16865 (Ffont_shape_text): When a shape callback function returns nil,
16866 try at most two more times with larger gstring.
16867 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16868
16869 * xdisp.c (handle_auto_composed_prop): Change the argument to
16870 auto-composition-function.
16871
16872 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16873 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16874 Lispy glyph and store it in the lgstring.
16875
16876 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16877
16878 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16879
168802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16881
16882 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16883
16884 * fontset.c (Vfont_encoding_charset_alist): New variable.
16885 (syms_of_fontset): DEFVAR it.
16886 (reorder_font_vector, fontset_find_font): Optimize for the case of
16887 no need of reordering.
16888 (face_for_char): Map the charset property by
16889 Vfont_encoding_charset_alist.
16890
168912008-02-01 Jason Rumney <jasonr@gnu.org>
16892
16893 * w32font.c (logfonts_match): Don't check adstyle here.
16894 (font_matches_spec): Check here against physical font instead.
16895 (add_font_entity_to_list): Avoid some substitutions.
16896
16897 * font.c (font_parse_fcname): Default weight and slant to normal.
16898 (font_score): Prefer normal fonts if weight or slant unspecified.
16899 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16900 match freetype scores.
16901
169022008-02-01 Jason Rumney <jasonr@gnu.org>
16903
16904 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16905 font, as it may have been deleted.
16906 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16907 most common hyphenless variation.
16908 (logfonts_match): Check generic family.
16909 (font_matches_spec): Don't check generic family here.
16910 (fill_in_logfont): Set generic family based on adstyle.
16911
16912 * w32font.h (w32font_get_cache): Update declaration.
16913
169142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16915
16916 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16917
16918 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16919 If none of the new drivers are available, call font_update_drivers
16920 with the old drivers.
16921
16922 * w32font.c (w32font_get_cache): Adjust the argument type.
16923
16924 * xfont.c (xfont_get_cache): Adjust the argument type.
16925
16926 * font.h (struct font_driver): Change argument type of get_cache.
16927
16928 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16929
16930 * font.c (Ffont_get): Fix arguments to Fassoc.
16931 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16932 (font_clear_cache): New function.
16933 (font_list_entities, font_matching_entity): Use font_get_cache.
16934 (font_update_drivers): Call font_clear_cache when finishing a driver.
16935
16936 * fontset.c (fontset_find_font): Fix previous change.
16937
169382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16939
16940 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16941 dpyinfo->font_table.
16942 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16943 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16944
16945 * font.c (font_at): Handle the case that the arg C is negative.
16946 Handle the unibyte case.
16947 (Ffont_at): Call font_at with the arg C -1.
16948
16949 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16950 the position here, and call font_at with the arg C -1.
16951 Don't check the range of the existing composition at the point.
16952
169532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16954
16955 * fontset.c (fontset_add): New args charset_id and family.
16956 Change caller.
16957 (load_font_get_repertory, fontset_find_font): Assume that
16958 font_spec is always a font-spec object.
16959 (Fset_fontset_font): Always store a font-spec object in a fontset.
16960
16961 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16962 instead of get_property_and_range.
16963
169642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16965
16966 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16967 (xftfont_open): Don't keep locking face.
16968 (xftfont_close): Don't unlock face.
16969 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16970
16971 * fontset.c (fontset_find_font): Don't prefer a font of
16972 supplementary charset.
16973
169742008-02-01 Kenichi Handa <handa@m17n.org>
16975
16976 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16977 script, langsys_tag to langsys, new member script.
16978 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 16979 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
16980 listing to the script specified in that property. Fix arg to
16981 OTF_check_features.
16982
169832008-02-01 Jason Rumney <jasonr@gnu.org>
16984
16985 * w32font.h: New file.
16986
16987 * w32font.c: Include it.
16988 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16989 (w32font_open): Set owning_frame.
16990 (w32font_text_extents): Use owning_frame.
16991 (struct font_callback_data): Add opentype_only field.
16992 (add_font_entity_to_list): Use it to filter fonts.
16993 Don't check against full name.
16994 (w32font_list_internal): New function.
16995 (w32font_list): Use it.
16996 (w32font_match_internal): New function.
16997 (w32font_match): Use it.
16998 (w32font_open_internal): New function.
16999 (w32font_open): Use it.
17000 (w32font_get_cache, w32font_close, w32font_has_char)
17001 (w32font_encode_char, w32font_text_extents, w32font_draw):
17002 Make non-static.
17003
17004 * makefile.w32-in (w32font.o): Depend on w32font.h.
17005
170062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17007
17008 * charset.c (Fdefine_charset_internal): Record a supplementary
17009 charset at the tail of Vcharset_order_list.
17010
17011 * font.c (Ffont_shape_text): Fix the return value.
17012
17013 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17014
17015 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17016
170172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17018
17019 * ftfont.c (struct OpenTypeSpec): New struct.
17020 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17021 (ftfont_get_open_type_spec): New function.
17022 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17023
17024 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17025
170262008-02-01 Jason Rumney <jasonr@gnu.org>
17027
17028 * w32font.c (add_font_entity_to_list): Compare only the beginning
17029 of full name.
17030
170312008-02-01 Kenichi Handa <handa@m17n.org>
17032
17033 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17034 Never return HANDLED_RECOMPUTE_PROPS.
17035
170362008-02-01 Kenichi Handa <handa@m17n.org>
17037
17038 * font.c (font_gstring_produce): Delete it.
17039
17040 * composite.h (COMPOSITION_METHOD):
17041 Handle COMPOSITION_WITH_GLYPH_STRING.
17042
170432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17044
17045 * xfont.c (Qx): Delete.
17046 (syms_of_xfont): Don't initialize Qx.
17047
17048 * composite.h (enum composition_method):
17049 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17050
170512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17052
17053 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17054 (choose_face_font): Accept new form of font-spec.
17055
17056 * frame.h (font_driver_list): Declare it unconditionally.
17057 (struct frame): Define members font_driver_list and font_data_list
17058 unconditionally.
17059
17060 * fontset.c: Include "font.h" unconditionally.
17061 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17062 (Fset_fontset_font): Accept a font-spec object.
17063
17064 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17065 PIXEL_SIZE part a wild card.
17066
17067 * dispextern.h (struct glyph_string): Define members clip and
17068 num_clips unconditionally.
17069 (struct face): Define members font_info and extra unconditionally.
17070
17071 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17072 ftfont_info only when HAVE_LIBOTF is defined.
17073
170742008-02-01 Andreas Schwab <schwab@suse.de>
17075
17076 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17077 and end.
17078
170792008-02-01 Jason Rumney <jasonr@gnu.org>
17080
17081 * w32font.c (w32font_driver): Add new fields.
17082
170832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17084
17085 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17086 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17087 (LIBES): Add @M17N_FLT_CFLAGS@.
17088
17089 * composite.c (compose_text): Don't treat the new style
17090 composition specially.
17091
17092 * emacs.c (main): Call syms_of_font unconditionally.
17093
17094 * font.h (FONT_ENTITY_NOT_LOADABLE)
17095 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17096 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17097 (struct font_driver): New member shape.
17098 (font_registry_charsets): Extern it.
17099 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17100 (font_otf_capability, font_drive_otf): Delete their externs.
17101
17102 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17103 (font_charset_alist, font_registry_charsets): Move from xfont.c
17104 and rename.
17105 (font_prop_validate_otf): New function.
17106 (font_property_table): Register it for QCotf.
17107 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17108 (font_drive_otf): Delete.
17109 (font_prepare_composition): New arg F. Adjust for the change of
17110 lispy gstring.
17111 (font_find_for_lface): New arg C.
17112 (font_load_for_face): Adjust for the change of font_find_for_lface.
17113 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17114 lispy gstring.
17115 (Ffont_shape_text): New function.
17116 (Fopen_font): If the font size is not given, use 12-pixel.
17117 (Ffont_at): New arg STRING.
17118 (syms_of_font): Initalize font_charset_alist.
17119 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17120 conditionally.
17121
17122 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17123 fonts of the same font-spec. Change the format of RFONT-DEF.
17124 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17125 Adjust for the change of RFONT-DEF.
17126 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17127
17128 * ftfont.h: New file.
17129
17130 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17131 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17132 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17133 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17134 font_otf_capability and font_drive_otf, set ftfont_shape.
17135 (ftfont_list): Adjust for the change of :otf property value.
17136 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17137 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17138 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17139 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17140 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17141 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17142
17143 * w32term.c (x_draw_composite_glyph_string_foreground):
17144 Adjust for the change of lispy gstring.
17145
17146 * xdisp.c (handle_composition_prop): Adjust for the change of
17147 lispy gstring. Call a function for auto-composition with the
17148 third arg it->window.
17149 (fill_composite_glyph_string): Adjust for the change of lispy string.
17150 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17151
17152 * xfaces.c (set_font_frame_param): Adjust for the change of
17153 font_find_for_lface.
17154
17155 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17156 (xfont_registry_charsets): Likewise. Change caller.
17157 (syms_of_xfont): Don't handle x_font_charset_alist.
17158
17159 * xftfont.c: Include "ftfont.h".
17160 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17161 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17162 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17163 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17164 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17165 Set xftfont_driver.shape to xftfont_shape.
17166
17167 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17168 the change of lispy gstring.
17169
171702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17171
17172 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17173
171742008-02-01 Jason Rumney <jasonr@gnu.org>
17175
17176 * w32font.c (w32font_draw): Fill background manually.
17177
171782008-02-01 Jason Rumney <jasonr@gnu.org>
17179
17180 * font.c (Qfontp): Remove unused symbol.
17181 (QCantialias): New symbol.
17182 (syms_of_font): Define it.
17183 (font_property_table): Set a validator for QCantialias.
17184
17185 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17186 Define if not already.
17187 (QCfamily): Share with xfaces.c.
17188 (Qstandard, Qsubpixel, Qnatural): New symbols.
17189 (syms_of_w32font): Define them. Don't define QCfamily here.
17190 (w32_antialias_type, lispy_antialias_type): New functions.
17191 (w32_enumfont_pattern_entity): New arg requested_font.
17192 Set antialias parameter if non-default was requested.
17193 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17194
171952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17196
17197 * lread.c (read1): Undo the previous change.
17198
171992008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17200
17201 * frame.c (Fdelete_frame): Call font_update_drivers only when
17202 USE_FONT_BACKEND is defined.
17203
172042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17205
17206 * font.h (struct font_bitmap): New member bits_per_pixel.
17207 (struct font_driver): New members start_for_frame and end_for_frame.
17208 (struct font_data_list): New struct.
17209 (font_put_frame_data, font_get_frame_data): Extern them.
17210
17211 * frame.h (struct frame): New member font_data_list.
17212
17213 * font.c (font_update_drivers): Call driver->start_for_frame and
17214 driver->end_for_frame at proper timings.
17215 (font_put_frame_data, font_get_frame_data): New functions.
17216 (Ffont_spec): Add usage in the docstring.
17217
17218 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17219 (Fdelete_frame): Call font_update_drivers.
17220
17221 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17222 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17223 (xftfont_get_xft_draw): New function.
17224 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17225 (xftfont_end_for_frame): New function.
17226 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17227
17228 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17229 Change argument. Cache GCs in the per-frame data.
17230 (struct ftxfont_frame_data): New struct.
17231 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17232 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17233 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17234 (ftxfont_end_for_frame): New function.
17235 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17236
17237 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17238
172392008-02-01 Kenichi Handa <handa@m17n.org>
17240
17241 * xselect.c (Vselection_coding_system)
17242 (Vnext_selection_coding_system): Delete them.
17243 (syms_of_xselect): Don't declare selection-coding-system and
17244 next-selection-coding-system. They are declared in select.el.
17245
172462008-02-01 Jason Rumney <jasonr@gnu.org>
17247
17248 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17249
17250 * w32fns.c: Include imm.h.
17251 (get_composition_string_fn, get_ime_context_fn): New optional
17252 system functions.
17253 (globals_of_w32fns): Load them from imm32.dll.
17254 (ignore_ime_char): New flag.
17255 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17256 WM_IME_ENDCOMPOSITION messages.
17257
17258 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17259 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17260
172612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17262
17263 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17264 (READCHAR_REPORT_MULTIBYTE): New macro.
17265 (readchar): New 2nd arg MULTIBYTE.
17266 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17267 Make symbol's name multibyte according to the multibyteness of the
17268 source.
17269
172702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17271
17272 * xfaces.c (face_for_overlay_string): Call lookup_face with
17273 correct arguments (fix of synching with the trunk).
17274
172752008-02-01 Kenichi Handa <handa@m17n.org>
17276
17277 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17278 (font_prop_validate_non_neg, font_prop_validate_spacing):
17279 Delete argument prop_index.
17280 (font_property_table): Change arguments to validater. Change Callers.
17281 (font_lispy_object): Delete.
17282 (font_at): Use font_find_object instead fo font_lispy_object.
17283
172842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17285
17286 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17287 and file names.
17288
172892008-02-01 Jason Rumney <jasonr@gnu.org>
17290
17291 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17292 (font_matches_spec): Remove debug output.
17293 (add_font_entity_to_list): Avoid using substituted fonts.
17294
172952008-02-01 Jason Rumney <jasonr@gnu.org>
17296
17297 * doc.c (Fsnarf_documentation):
17298 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17299
173002008-02-01 Miles Bader <miles@gnu.org>
17301
17302 * dispextern.h (struct glyph_row): Only define "clip" field if
17303 HAVE_WINDOW_SYSTEM is defined.
17304
173052008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17306
17307 Fix up multi-tty merge.
17308
17309 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17310 and indentation.
17311
17312 * xfaces.c (free_realized_face, clear_face_gcs):
17313 Include font_done_for_face in the input_blocked section, just in case.
17314
17315 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17316 (get_char_face_and_encoding): Undo last change and remove the *other*
17317 duplicate definition (i.e. keep the one that's better scoped and that
17318 includes code for the font-backend).
17319
17320 * terminal.c (create_terminal): Default keyboard_coding to
17321 `no-conversion' and terminal_coding to `undecided'.
17322
17323 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17324
17325 * fontset.c (free_realized_fontsets): Check that the table entry does
17326 contain a fontset before trying to compare it to `base'.
17327
17328 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17329 syms_of_charset, and syms_of_coding earlier because init_window_once
17330 now needs Vcoding_system_hash_table to be setup.
17331
17332 * coding.h (default_buffer_file_coding): Remove.
17333
17334 * coding.c (default_buffer_file_coding): Remove.
17335 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17336 than ->symbol, and use the terminal-local coding system.
17337 (syms_of_coding): Don't setup the coding-systems that are not
17338 terminal-local.
17339 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17340
17341 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17342 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17343
17344 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17345 in chartab.c and were re-added here by mistake.
17346 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17347
17348 * doc.c (Fsnarf_documentation):
17349 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17350 src to etc.
17351
17352 * ChangeLog.10: Add mistakenly removed entry.
17353
173542008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17355
17356 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17357
173582008-02-01 Miles Bader <miles@gnu.org>
17359
17360 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17361 Add extra args to FACE_FOR_CHAR.
17362
173632008-02-01 Kenichi Handa <handa@m17n.org>
17364
17365 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17366 in sequence.
17367
17368 * chartab.c (map_sub_char_table, map_char_table): If the range
17369 contains just one character, call the function with that character
17370 even if the depth is not 3.
17371
173722008-02-01 Jason Rumney <jasonr@gnu.org>
17373
17374 * w32font.c (w32font_text_extents): Calculate metrics for the
17375 whole string.
17376
173772008-02-01 Jason Rumney <jasonr@gnu.org>
17378
17379 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17380
173812008-02-01 Jason Rumney <jasonr@gnu.org>
17382
17383 * w32term.c (x_set_glyph_string_clipping): Use
17384 get_glyph_string_clip_rects.
17385 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17386 Adjust for the change of struct glyph_string.
17387
17388 * w32font.c (w32font_draw): Do clipping here.
17389
173902008-02-01 Kenichi Handa <handa@m17n.org>
17391
17392 * xftfont.c (xftfont_draw): Adjust for the change of struct
17393 glyph_string.
17394
17395 * xterm.c (x_set_glyph_string_clipping): Use
17396 get_glyph_string_clip_rects.
17397 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17398 Adjust for the change of struct glyph_string.
17399
17400 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17401 the resulting clip(s}.
17402 (expose_overlaps): Add arg r. Change callers. Set it to
17403 row->clip temporarily.
17404 (expose_window): Redraw rows overlapping the exposed area.
17405
17406 * dispextern.h (struct glyph_row): New member clip.
17407 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17408 clip_height, new member clip, and num_clips.
17409
174102008-02-01 Kenichi Handa <handa@m17n.org>
17411
17412 * data.c (Fchar_or_string_p): Fix docstring.
17413
174142008-02-01 Kenichi Handa <handa@m17n.org>
17415
17416 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17417 create a temporary XftDraw object.
17418
174192008-02-01 Kenichi Handa <handa@m17n.org>
17420
17421 * font.c (Ffontp): Fix docstring.
17422
17423 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17424 strong evidence of ISO-2022.
17425
174262008-02-01 Kenichi Handa <handa@m17n.org>
17427
17428 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17429 SYNTAX_ENTRY_FOLLOW_PARENT.
17430
174312008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17432
17433 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17434 its type.
17435 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17436 Update to the new type of weak_hash_tables and next_weak.
17437
17438 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17439 a plain C pointer to Lisp_Hash_Table.
17440
17441 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17442 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17443 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17444 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17445 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17446 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17447 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17448 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17449 (GC_EQ): Remove since they've been identical to their non-GC_
17450 alter-egos ever since the markbit was eradicated.
17451
17452 * alloc.c:
17453 * buffer.c:
17454 * buffer.h:
17455 * data.c:
17456 * fileio.c:
17457 * filelock.c:
17458 * fns.c:
17459 * frame.h:
17460 * lisp.h:
17461 * macterm.c:
17462 * print.c:
17463 * process.c:
17464 * w32fns.c:
17465 * w32menu.c:
17466 * w32term.c:
17467 * xfns.c:
17468 * xmenu.c:
17469 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17470
174712008-02-01 Kenichi Handa <handa@m17n.org>
17472
17473 * chartab.c (map_sub_char_table): Make it work for the top-level
17474 char-table. Fix handling of parent char-table.
17475 (map_char_table): Adjust for the above change.
17476
174772008-02-01 Jason Rumney <jasonr@gnu.org>
17478
17479 * w32font.c (Qgdi): Rename from Qw32.
17480
174812008-02-01 Jason Rumney <jasonr@gnu.org>
17482
17483 * w32bdf.c (get_quoted_string): Make function static.
17484
174852008-02-01 Kenichi Handa <handa@m17n.org>
17486
17487 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17488 bigger ascent and descent than those of the font, use them as
17489 font's ascent and descent.
17490
174912008-02-01 Kenichi Handa <handa@m17n.org>
17492
17493 * Makefile.in (${lispsource}international/charprop.el): Move this
17494 target within "#ifdef HAVE_UNIDATA" and "#endif".
17495
174962008-02-01 Kenichi Handa <handa@m17n.org>
17497
17498 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
17499 (shortlisp): Add ../lisp/language/tai-viet.el.
17500
175012008-02-01 Ulrich Mueller <ulm@gentoo.org>
17502
17503 * Makefile.in (${lispsource}international/charprop.el): Depend on
17504 temacs${EXEEXT}.
17505
175062008-02-01 Jason Rumney <jasonr@gnu.org>
17507
17508 * w32font.c (w32font_close): Delete the GDI font object.
17509
17510 * w32menu.c: Include character.h.
17511
17512 * w32proc.c: Likewise.
17513
17514 * w32select.c: Likewise.
17515
17516 * makefile.w32-in (w32proc.o): Depend on character.h.
17517
175182008-02-01 Jason Rumney <jasonr@gnu.org>
17519
17520 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
17521
17522 * w32menu.c (syms_of_w32menu): Likewise.
17523
17524 * w32proc.c (syms_of_ntproc): Likewise.
17525
17526 * w32select.c (syms_of_w32select): Likewise.
17527
17528 * w32term.c (syms_of_w32term): Likewise.
17529
175302008-02-01 Jason Rumney <jasonr@gnu.org>
17531
17532 * w32font.c (w32font_draw): Delete brush after using it.
17533
175342008-02-01 Jason Rumney <jasonr@gnu.org>
17535
17536 * w32font.c (w32font_open): Don't set font_idx.
17537 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17538 to font settings.
17539 (w32font_draw): Fill background explicitly.
17540
175412008-02-01 Jason Rumney <jasonr@gnu.org>
17542
17543 * w32term.c (w32_initialize): Don't call w32font_initialize.
17544
17545 * w32font.c (w32font_info): Remove subranges.
17546 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17547 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17548 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17549 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17550 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17551 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17552 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17553 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17554 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17555 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17556 New symbols.
17557 (font_callback_data): New struct.
17558 (w32font_list, w32font_match): Use it.
17559 (w32font_open): Don't populate subranges.
17560 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17561 (w32font_encode_char): Always return unicode code-point as-is.
17562 (w32font_text_extents): Supply a transformation matrix to
17563 GetGlyphOutline. Never look up by glyph index. Avoid looping
17564 twice. Use unicode version of GetTexExtentPoint32 instead of
17565 glyph index version.
17566 (set_fonts_frame): Remove.
17567 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17568 set frame parameter. Use backward compatible fake foundries.
17569 Save generic family in extra slot under QCfamily. Make width slot
17570 constant. Save QCspacing value. Save list of scripts instead of
17571 binary subranges.
17572 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17573 (add_font_entity_to_list): Use font_callback_data struct. Filter
17574 unwanted fonts.
17575 (add_one_font_entity_to_list): Use font_callback_data struct.
17576 (w32_registry): Default to iso10646_1.
17577 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17578 string font registries. Don't fill in font name if it is a generic
17579 family name, fill family instead. Use spacing, family and script
17580 extra info to fill pitch, family and charset fields.
17581 (list_all_matching_fonts): Use font_callback_data struct.
17582 (unicode_range_for_char): Remove.
17583 (font_supported_scripts): New function.
17584 (w32font_initialize): Remove.
17585 (syms_of_w32font): Update which symbols are defined.
17586
175872008-02-01 Jason Rumney <jasonr@gnu.org>
17588
17589 * font.c (font_pixel_size): Reverse assq_no_quit args.
17590
17591 * w32term.h (FONT_WIDTH): Report max width, not average.
17592 (FONT_MAX_WIDTH): Remove.
17593 (FONT_AVG_WIDTH): New macro.
17594
17595 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17596 redefinition of FONT_WIDTH.
17597
17598 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17599 (w32_cache_char_metrics): Use FONT_WIDTH.
17600
17601 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17602
176032008-02-01 Jason Rumney <jasonr@gnu.org>
17604
17605 * w32font.c (w32font_open): Make lfHeight negative.
17606
17607 * w32fns.c (x_default_font_parameter): Use new style font name.
17608 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17609
176102008-02-01 Jason Rumney <jasonr@gnu.org>
17611
17612 * w32font.c (QCsubranges): New symbol.
17613 (w32font_open, w32font_has_char): Get subranges from subproperty
17614 of extra.
17615 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17616 (syms_of_w32font): Define :subranges symbol.
17617
17618 * font.c (font_put_extra): Expose externally.
17619
17620 * font.h (font_put_extra): Move declaration from font.c.
17621
17622 * font.c (Ffont_get): Use font driver to determine otf capability.
17623 (adjust_anchor): Check if driver defines anchor_point before using.
17624
17625 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17626 (w32font_draw): Use options.
17627 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17628 Fix detection of truetype fonts.
17629 (registry_to_w32_charset): Handle charsets other than iso8859-1
17630 expressed as lisp symbols.
17631 (w32_registry): Express charset as lisp symbol.
17632 (fill_in_logfont): Reverse pixel and point height logic.
17633 Don't set width here. Set quality to default.
17634
17635 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17636 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17637
17638 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17639 Remove redundant loop and allocation.
17640
17641 * makefile.w32-in (font.o, w32font.o): New objects.
17642 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
17643 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
17644
17645 * xdisp.c (fill_composite_glyph_string): Make the first arg to
17646 STORE_XCHARB a valid l-value.
17647
17648 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
17649 calculations for non-Truetype fonts.
17650 (x_draw_glyph_string): Sync with xterm.c.
17651 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17652 Remove redundant code.
17653 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
17654
17655 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
17656 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
17657
17658 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
17659 (x_to_w32_charset, w32_to_x_charset): Expose externally.
17660
17661 * w32font.c: New file for w32 font backend.
17662
176632008-02-01 Kenichi Handa <handa@m17n.org>
17664
17665 * term.c: Don't include "buffer.h" twice.
17666
176672008-02-01 Kenichi Handa <handa@m17n.org>
17668
17669 * character.c (Funibyte_string): New function.
17670 (syms_of_character): Defsubr it.
17671
176722008-02-01 Jason Rumney <jasonr@gnu.org>
17673
17674 * w32term.c [USE_FONT_BACKEND]:
17675 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
17676 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
17677 (x_draw_glyph_string, x_draw_glyph_string_foreground)
17678 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
17679 (x_free_frame_resources): Sync with xterm.c.
17680
176812008-02-01 Andreas Schwab <schwab@suse.de>
17682
17683 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
17684 char-table size.
17685
176862008-02-01 Kenichi Handa <handa@m17n.org>
17687
17688 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
17689
176902008-02-01 Kenichi Handa <handa@m17n.org>
17691
17692 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
17693 font_otf_gpos, add font_drive_otf.
17694
17695 * fontset.c (fontset_find_font): Pay attention to font size
17696 specified for a font.
17697 (reorder_font_vector): Check contents of font_def.
17698
17699 * font.c (struct otf_list): Delete it.
17700 (otf_list): Make it a lisp variable.
17701 (otf_open): Use lispy otf_list.
17702 (generate_otf_features): Rename from parse_gsub_gpos_spec.
17703 (check_otf_features): New function.
17704 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17705 New functions.
17706 (font_drive_otf): New function merging font_otf_gsub and
17707 font_otf_gpos.
17708 (font_open_for_lface): New arg spec. Change argument order.
17709 (font_load_for_face): Adjust for the change of font_open_for_lface.
17710 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
17711 Ffont_otf_gpos.
17712 (syms_of_font): Staticpro otf_list. Delete defsubr of
17713 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
17714
17715 * xfaces.c (set_font_frame_param): Adjust for the change of
17716 font_open_for_lface.
17717
17718 * font.h (font_open_for_lface): Adjust prototype.
17719 (struct font_driver): Delete members otf_gsub and otf_gpos, add
17720 member otf_drive.
17721 (font_otf_gsub, font_otf_gpos): Delete externs.
17722 (font_drive_otf): Extern it.
17723
177242008-02-01 Kenichi Handa <handa@m17n.org>
17725
17726 * font.c (font_at): If the window W is not on a window system,
17727 return Qnil.
17728
17729 * coding.c (produce_chars, encode_coding): Don't call
17730 insert_from_gap if no characters to produce.
17731
177322008-02-01 Kenichi Handa <handa@m17n.org>
17733
17734 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
17735 Fclear_face_cache.
17736
17737 * xfaces.c (face_for_font): Check also face->font==font->font.font.
17738
177392008-02-01 Miles Bader <miles@gnu.org>
17740
17741 * emacs.c (main): Change default value of `enable_font_backend' to 1.
17742 Parse "--disable-font-backend" option.
17743 (standard_args): Add "--disable-font-backend" option.
17744
177452008-02-01 Kenichi Handa <handa@m17n.org>
17746
17747 * fontset.c (fontset_find_font): New function.
17748 (fontset_font): Use fontset_find_font.
17749 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
17750 Register the specified font for all Latin characters.
17751 (new_fontset_from_font): Register the specified font for all Latin
17752 characters.
17753 (dump_fontset): For a realized fontset, include the base fontset
17754 name in the returned vector.
17755
177562008-02-01 Kenichi Handa <handa@m17n.org>
17757
17758 * character.h (CHAR_STRING): Cast C to unsigned on calling
17759 char_string.
17760
17761 * character.c (char_string): Type of arg C changed to unsigned.
17762 Signal an error if C is an invalid character code.
17763
17764 * editfns.c (general_insert_function, Fchar_to_string):
17765 Use CHARACTERP, not INTEGERP.
17766
177672008-02-01 Kenichi Handa <handa@m17n.org>
17768
17769 * character.h (MIN_MULTIBYTE_LEADING_CODE)
17770 (MAX_MULTIBYTE_LEADING_CODE): New macros.
17771
17772 * regex.c (analyse_first): Fix for multibyte characters in "case
17773 charset:" and "case categoryspec:".
17774
177752008-02-01 Andreas Schwab <schwab@suse.de>
17776
17777 * Makefile.in (LIBES): Move standard libraries to the end.
17778
177792008-02-01 Kenichi Handa <handa@m17n.org>
17780
17781 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
17782 nonzero, don't shrink the buffer nextb.
17783
17784 * buffer.h (struct buffer_text): New member inhibit_shrinking.
17785
17786 * coding.c (coding_alloc_by_making_gap): New arg offset.
17787 (alloc_destination): Call coding_alloc_by_making_gap with the arg
17788 offset.
17789 (decode_coding_iso_2022): Update coding->safe_charsets.
17790 (decode_coding_gap): Temporarily set
17791 current_buffer->text->inhibit_shrinking to 1.
17792
177932008-02-01 Kenichi Handa <handa@m17n.org>
17794
17795 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
17796 indexing into elements of s->cmp and s->char2b.
17797
177982008-02-01 Juanma Barranquero <lekktu@gmail.com>
17799
17800 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17801
178022008-02-01 Kenichi Handa <handa@m17n.org>
17803
17804 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17805 target_multibyte instead of multibyte.
17806 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17807 (bcmp_translate): Change the argument name from multibyte to
17808 target_multibyte.
17809
178102008-02-01 Kenichi Handa <handa@m17n.org>
17811
17812 These changes are to compile a regexp into a pattern that can be
17813 used both for multibyte and unibyte targets.
17814
17815 * Makefile.in (search.o): Depend on charset.h.
17816
17817 * character.c (multibyte_char_to_unibyte_safe): New function.
17818
17819 * search.c: Include "charset.h".
17820 (compile_pattern_1): Delete argument multibyte. Don't set
17821 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17822 (compile_pattern): Don't compare cp->buf.target_multibyte.
17823 Compare cp->buf.charset_unibyte.
17824 (compile_pattern): Set cp->buf.target_multibyte.
17825
17826 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17827
17828 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17829
17830 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17831 multibyte. Change callers.
17832 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17833 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17834 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17835 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17836 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17837 (regex_compile): Make the compiled pattern usable both for
17838 multibyte and unibyte targets.
17839 (analyse_first): Make the fastmap usable both for multibyte and
17840 unibyte targets.
17841 (TRANSLATE_VIA_MULTIBYTE): Delete.
17842 (re_match_2_internal): Pay attention to the case that the
17843 multibyteness of bufp and target may be different.
17844
178452008-02-01 Kenichi Handa <handa@m17n.org>
17846
17847 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17848 empty box occupy at least one column width.
17849
178502008-02-01 Miles Bader <miles@gnu.org>
17851
17852 * Makefile.in: Remove redundant HAVE_XFT clause.
17853
178542008-02-01 Kenichi Handa <handa@m17n.org>
17855
17856 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17857
178582008-02-01 Kenichi Handa <handa@m17n.org>
17859
17860 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17861 being nil.
17862
178632008-02-01 Kenichi Handa <handa@m17n.org>
17864
17865 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17866
178672008-02-01 Kenichi Handa <handa@m17n.org>
17868
17869 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17870
178712008-02-01 Kenichi Handa <handa@m17n.org>
17872
17873 * search.c (simple_search): Fix previous change.
17874
178752008-02-01 Kenichi Handa <handa@m17n.org>
17876
17877 * xftfont.c (ftfont_font_format): Extern declaration.
17878
17879 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17880
17881 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17882 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17883
17884 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17885 (ftfont_font_format): Fix previous change.
17886
17887 * font.h (Ffont_xlfd_name): EXFUN it.
17888
17889 * font.c (font_parse_xlfd): Fix the array size of `f'.
17890 (register_font_driver): Use EQ to compare driver->type.
17891
17892 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17893 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17894 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17895
178962008-02-01 Kenichi Handa <handa@m17n.org>
17897
17898 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17899 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17900
179012008-02-01 Kenichi Handa <handa@m17n.org>
17902
17903 * xfont.c (xfont_open): Set font->format.
17904
17905 * xftfont.c (xftfont_open): Set font->format.
17906
17907 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17908 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17909 (ftfont_open): Set font->format.
17910 (ftfont_font_format): New function.
17911
17912 * font.h (struct font): New member format.
17913
17914 * font.c (Qopentype): New variable.
17915 (syms_of_font): Defsym it.
17916 (Fquery_font): Change the format of the last element of the return
17917 value.
17918
179192008-02-01 Kenichi Handa <handa@m17n.org>
17920
17921 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17922 last resort.
17923
179242008-02-01 Kenichi Handa <handa@m17n.org>
17925
17926 * coding.c (detect_coding_charset): Fix detection of multi-byte
17927 charset.
17928
179292008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17930
17931 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17932
179332008-02-01 Kenichi Handa <handa@m17n.org>
17934
17935 * xdisp.c (get_next_display_element): Set it->face_id for the
17936 first component of a composition.
17937 (x_produce_glyphs): Check if the font is changed or not for composition.
17938
179392008-02-01 Kenichi Handa <handa@m17n.org>
17940
17941 * fontset.c (Qlatin): New variable.
17942 (syms_of_fontset): Define it as a lisp symbol.
17943 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17944
179452008-02-01 Kenichi Handa <handa@m17n.org>
17946
17947 * font.c (font_unparse_fcname): Pay attention to the case that
17948 some of font property is a null string.
17949
179502008-02-01 Kenichi Handa <handa@m17n.org>
17951
17952 * term.c: Include "composite.h".
17953 (encode_terminal_code): Output all components of composition.
17954 Check the size of encode_terminal_src.
17955 (produce_glyphs): For composition, call produce_composite_glyph.
17956 (append_composite_glyph, produce_composite_glyph): New functions.
17957
17958 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17959 is not found, get font_info from the current ascii face.
17960
179612008-02-01 Kenichi Handa <handa@m17n.org>
17962
17963 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17964 buffer-file-name to Qnil before calling insert_from_buffer.
17965
17966 * font.c (font_unparse_fcname): Pay attention to the case that
17967 foundry is a null string.
17968
179692008-02-01 Kenichi Handa <handa@m17n.org>
17970
17971 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17972
17973 * font.c (Qunicode_sip): New variable.
17974 (syms_of_font): Declare it as a Lisp symbol.
17975
17976 * font.h (Qunicode_sip): Extern it.
17977
179782008-02-01 Kenichi Handa <handa@m17n.org>
17979
17980 * composite.c (get_composition_id): Pay attention to TAB component.
17981
17982 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17983 TAB. Adjust for the change of s->char2b which always points to
17984 the first element of allocated memory.
17985
17986 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17987
17988 * xdisp.c (handle_composition_prop): Set it->c to the first
17989 non-TAB component.
17990 (fill_composite_glyph_string): Change argument.
17991 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17992 (x_produce_glyphs): Fix handling of left/right padding.
17993
179942008-02-01 Kenichi Handa <handa@m17n.org>
17995
17996 * coding.c (detect_coding_system): Fix for handling off
17997 inhibit_iso_escape_detection. Fix for the case that no coding
17998 system is defined for a specific coding category.
17999
180002008-02-01 Kenichi Handa <handa@m17n.org>
18001
18002 * font.c (font_matching_entity): Delete unused local var.
18003
18004 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18005 opening a font.
18006
18007 * fileio.c (Finsert_file_contents): On recovering a file, assume
18008 Unix-like eol.
18009 (choose_write_coding_system): On auto-saving a file, force
18010 Unix-like eol.
18011
18012 * coding.c (setup_coding_system): Fix setting of
18013 coding->common_flags based on eol_type.
18014 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18015 inherit from it.
18016
180172008-02-01 Kenichi Handa <handa@m17n.org>
18018
18019 * alloc.c (NSTATICS): Increas to 0x600.
18020
180212008-02-01 Kenichi Handa <handa@m17n.org>
18022
18023 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18024 (ftfont_list): Don't check :name property.
18025 (ftfont_match): New function.
18026 (ftfont_pattern_entity): If the pattern doesn't contain
18027 FC_SPACING, don't assume FC_MONO.
18028
18029 * font.h (struct font_driver): New member `match'.
18030 (font_update_drivers): Adjust prototype.
18031
18032 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18033 property of FONT.
18034 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18035 them unconditionally.
18036 (font_matching_entity): New function.
18037 (font_open_by_name): Try font_matching_entity if exact match is
18038 not found.
18039 (font_update_drivers): Delete the arg FONT. Return a list of
18040 actually used backends. Don't free faces, font caches here.
18041 Don't store data in frame parameters. Don't call x_set_font.
18042 (Ffont_spec): Store :name property as is.
18043 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18044 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18045 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18046 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18047 Call font->driver->otf_gsub instead of font_otf_gsub.
18048
18049 * frame.c (x_set_font_backend): Do more works that were done in
18050 font_update_drivers before.
18051
18052 * xfont.c (xfont_match): New function.
18053 (xfont_driver): Set xfont_driver.match to xfont_match.
18054 (xfont_draw): Set font in GC if necessary.
18055
18056 * ftxfont.c (ftxfont_match): New function.
18057 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18058
18059 * xftfont.c (xftfont_match): New function.
18060 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18061
180622008-02-01 Kenichi Handa <handa@m17n.org>
18063
18064 * font.h (struct font): New member scalable.
18065 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18066 (font_otf_gsub): Adjust prototype.
18067
18068 * font.c (font_otf_capability): Fix handling of the default langsys.
18069 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18070 Check the contents of SPEC.
18071 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18072 (check_gstring): New function.
18073 (REPLACEMENT_CHARACTER): New macro.
18074 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18075 glyph codes of GSTRING.
18076 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18077 (font_prepare_composition): Set cmp->glyph_len.
18078 (font_open_entity): Set font->scalable.
18079 (Ffont_get): Handle :otf property.
18080 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18081 functions.
18082 (Fquery_font): Use font->font.full_name.
18083 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18084 Sfont_otf_alternates.
18085
18086 * ftfont.c (ftfont_open): Set font->font.full_name and
18087 font->font.name properly. Fix calculation of font->font.height
18088 and font->min_width.
18089
18090 * ftxfont.c (ftxfont_create_gcs): New function.
18091 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18092 (ftxfont_draw_backgrond): Fix filling region.
18093 (ftxfont_default_fid): New function.
18094 (ftxfont_open): Set xfont->fid to the return value of
18095 ftxfont_default_fid.
18096 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18097 (ftxfont_done_face): Free only GCs that are created by
18098 ftxfont_create_gcs.
18099 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18100
18101 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18102 Clip to src->width, etc (not src->clip_XXX).
18103
18104 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18105 FontBackend frame parameter.
18106
181072008-02-01 Kenichi Handa <handa@m17n.org>
18108
18109 * font.h (struct font_driver_list): New member `on'.
18110 (Fclear_font_cache): EXFUN it.
18111 (font_update_drivers): Extern it.
18112
18113 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18114 (font_list_entities): Check driver_list->on.
18115 (register_font_driver): Initalize `on' member to 0.
18116 (font_update_drivers): New function.
18117 (Fclear_font_cache): Check driver_list->on.
18118
18119 * frame.h (Qfont_backend): Extern it.
18120 (x_set_font_backend): Extern it.
18121
18122 * frame.c (Qfont_backend): New variable.
18123 (frame_parms): New element for font-backend.
18124 (x_set_font_backend): New function.
18125
18126 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18127 FontBackend frame parameter.
18128 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18129 x_set_font_backend.
18130
18131 * xfont.c (xfont_list): Don't try listing by :name property if the
18132 name is not for XLFD.
18133
181342008-02-01 Kenichi Handa <handa@m17n.org>
18135
18136 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18137 (LGLYPH_SET_TO): New macros.
18138 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18139 element of G is vector or not.
18140 (font_at): Extern it.
18141
18142 * font.c: Include window.h.
18143 (font_lispy_object): New function.
18144 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18145 end of valid glyph.
18146 (font_close_object): Fix getting (struct font *).
18147 (font_at): New function.
18148 (Ffont_get): If FONT is a font-object, get entity from it.
18149 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18150 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18151 range check.
18152 (Ffont_at): New function.
18153 (syms_of_font): Defsubr Sfont_at.
18154
18155 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18156 before the entry for Qcomposition.
18157 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18158 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18159 the font in gstring.
18160 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18161 LGLYPH_FORM (g) to detect the end of valid glyph.
18162 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18163 we are composing with gstring.
18164
18165 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18166 Check if adjustment is vector or not.
18167
18168 * Makefile.in (font.o): Make it depends on window.h.
18169
181702008-02-01 Kenichi Handa <handa@m17n.org>
18171
18172 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18173 adjustment is vector or not.
18174
181752008-02-01 Miles Bader <miles@gnu.org>
18176
18177 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18178
181792008-02-01 Kenichi Handa <handa@m17n.org>
18180
18181 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18182 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18183 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18184
18185 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18186 (DEVICE_DELTA): Fix typo.
18187 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18188 LGLYPH format.
18189
18190 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18191 the change of LGLYPH format.
18192
181932008-02-01 Kenichi Handa <handa@m17n.org>
18194
18195 * ftfont.c (ftfont_list): Fix typo.
18196 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18197
181982008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18199
18200 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18201
18202 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18203 xftface_info is non-NULL.
18204
182052008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18206
18207 * ftfont.c (ftfont_list): Move misplaced #endif.
18208
182092008-02-01 Kenichi Handa <handa@m17n.org>
18210
18211 * ftfont.c (ftfont_list): Pay attention to the case that
18212 FC_CAPABILITY is not defined.
18213
182142008-02-01 Kenichi Handa <handa@m17n.org>
18215
18216 * xftfont.c (xftfont_open): Set charset related members to -1.
18217
18218 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18219 QCname.
18220 (ftfont_open): Set charset related members to -1.
18221
18222 * fontset.c (Votf_script_alist): New variable.
18223 (syms_of_fontset): Initialize it.
18224 (fontset_font): Delete unused variable.
18225
18226 * fontset.h (Votf_script_alist): Extern it.
18227
18228 * font.c (font_find_for_lface): Optimize code.
18229
18230 * font.h (font_close_object, font_merge_old_spec): Extern them.
18231
182322008-02-01 Kenichi Handa <handa@m17n.org>
18233
18234 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18235 (syms_of_font): Initialize them.
18236 (font_pixel_size): Allow float value in dpi.
18237 (font_prop_validate_type): Delete.
18238 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18239 Change caller.
18240 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18241 (font_prop_validate_extra): Delete.
18242 (font_prop_validate_spacing): New function.
18243 (font_property_table): Add elements for all known properties.
18244 (get_font_prop_index): Rename from check_font_prop_name. New
18245 argument FROM. Change caller.
18246 (font_prop_validate): Validate all known properties.
18247 (font_put_extra): Delete argument force. Change caller.
18248 (font_expand_wildcards): Make it static. Fix the way of shrinking
18249 the possible range.
18250 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18251 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18252 Change caller.
18253 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18254 (font_parse_fcname): Delete argument merge. Fix parsing of point
18255 size. Don't validate properties values here. Change caller.
18256 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18257 (font_open_by_name): Delete unused variable.
18258 (Ffont_spec): Likewise. Validate property values.
18259 (Ffont_match_p): New function.
18260
18261 * font.h (QCscalable): Extern it.
18262 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18263
18264 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18265
18266 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18267 (xfont_list_pattern): New function.
18268 (xfont_list): Use xfont_list_pattern.
18269
182702008-02-01 Kenichi Handa <handa@m17n.org>
18271
18272 * font.h (Flist_fonts): EXFUN it.
18273
182742008-02-01 Jason Rumney <jasonr@gnu.org>
18275
18276 * w32term.c (w32_initialize): Add back smoothing_type and
18277 smoothing_enabled definitions.
18278
182792008-02-01 Kenichi Handa <handa@m17n.org>
18280
18281 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18282 s->face->font on determining underline position.
18283
182842008-02-01 Kenichi Handa <handa@m17n.org>
18285
18286 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18287 (font_has_char): Accept font-object too.
18288 (font_find_for_lface): Try at first with a size specified in face.
18289
182902008-02-01 Kenichi Handa <handa@m17n.org>
18291
18292 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18293 font_open_by_name.
18294
182952008-02-01 Kenichi Handa <handa@m17n.org>
18296
18297 * font.h (QCspacing, QCdpi): Extern them.
18298 (enum font_spacing): New enum.
18299 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18300
18301 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18302 (QCspacing, QCdpi): New variables.
18303 (syms_of_font): Initialize them.
18304 (font_pixel_size): New function.
18305 (font_put_extra): New function.
18306 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18307 in FONT_EXTRA.
18308 (font_parse_fcname): Handle enumerated values (e.g. bold).
18309 Fix handling font size. Add QCname property that contains only
18310 unknown properties.
18311 (font_score): Change argument. Change caller. Pay attention to
18312 FONT_PIXEL_SIZE_QUANTUM.
18313 (font_sort_entites, font_list_entities, font_find_for_lface)
18314 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18315 (Ffont_spec): Add QCname property that contains only unknown properties.
18316
18317 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18318 include weight in listing pattern, instead check weight of each
18319 listed font. Don't include scalable in pattern. Pay attention to
18320 FONT_PIXEL_SIZE_QUANTUM.
18321
183222008-02-01 Kenichi Handa <handa@m17n.org>
18323
18324 * font.c (font_parse_fcname): Fix parsing of point-size.
18325 (font_unparse_fcname): Produce symbolic names for style properties.
18326 (font_list_entities): Handle float size correctly.
18327 (font_open_by_name): Prefer `normal' property values if the name
18328 doesn't specify them.
18329
18330 * fontset.c (Finternal_char_font): Use font_get_name, not
18331 Ffont_xlfd_name.
18332
18333 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18334 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18335 pattern. Don't force scalable.
18336
18337 * xftfont.c (xftfont_open): For generating a name, start from
18338 96-byte buffer.
18339
183402008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18341
18342 * frame.h (x_new_fontset2): Fix prototype.
18343
183442008-02-01 Kenichi Handa <handa@m17n.org>
18345
18346 * font.h (struct font_driver): Delete member parse_name.
18347 (font_match_p, font_get_spec, font_parse_fcname)
18348 (font_unparse_fcname): Extern them.
18349 (font_get_name): Adjust prototype.
18350
18351 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18352 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18353 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18354 unnecessary checks for weight, slant, and swidth.
18355 (font_parse_fcname): New function.
18356 (font_unparse_fcname): New function.
18357 (font_parse_name): New function.
18358 (font_match_p): New function.
18359 (font_get_name): Change return value to Lisp string.
18360 (font_get_spec): New function.
18361 (Qunspecified, Qignore_defface): Don't extern them.
18362 (font_find_for_lface): Assume that LFACE is fully specified.
18363 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18364 object, use it for FACE.
18365 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18366 driver->parse_name.
18367 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18368
18369 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18370 prototype.
18371
18372 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18373 argument F. Don't call Fnew_fontset. Instead, directly call
18374 make_fontset.
18375
18376 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18377
18378 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18379 of x_new_fontset2.
18380
18381 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18382 (Qsans__serif): New variables.
18383 (ftfont_generic_family_list): New variable.
18384 (syms_of_ftfont): Initialize the above variables.
18385 (ftfont_pattern_entity): Delete argument NAME.
18386 (ftfont_list_generic_family): New function.
18387 (ftfont_parse_name): Delete this function.
18388 (ftfont_list): Try generic family only when FcFontList found no font.
18389 (ftfont_list_family): Fix args to FcObjectSetBuild.
18390
18391 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18392 object in attrs[LFACE_FONT_INDEX].
18393 (set_lface_from_font_name): Cancel all changes for font-backend.
18394 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18395 function.
18396 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18397 font object in QCfont attribute.
18398 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18399 (realize_default_face) [USE_FONT_BACKEND]: Call
18400 set_lface_from_font_and_fontset.
18401
18402 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18403 "fixed", and signal error here if no suitable font was found.
18404
18405 * xfont.c (xfont_parse_name): Delete this function.
18406
18407 * xftfont.c (xftfont_open): Change coding style of error
18408 handling. Generate fontconfig's fontname pattern.
18409
18410 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18411 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18412
18413 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18414 Both args FONTSET and FONT_OBJECT must be existing ones.
18415
184162008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18417
18418 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18419
184202008-02-01 Kenichi Handa <handa@m17n.org>
18421
18422 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18423
18424 * font.h (struct font): Fix typo.
18425
18426 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18427 XLFD_XXX_INDEX.
18428 (enum xlfd_field_mask): New enum.
18429 (intern_font_field): Changed argument. Change caller. If digits
18430 are followed by non-digits, return a symbol.
18431 (font_expand_wildcards): New function.
18432 (font_parse_xlfd): Fix wildcard handling.
18433 (Ffont_spec): If :name is specified, reflect the info in the other
18434 properties.
18435
18436 * ftfont.c (ftfont_pattern_entity): Fix typo.
18437 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18438 locale.
18439
184402008-02-01 Kenichi Handa <handa@m17n.org>
18441
18442 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18443
18444 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18445 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18446 registry doesn't specify encoding part.
18447 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18448 (font_open_by_name): At first try parsing the name.
18449 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18450 as Lisp symbols.
18451
18452 * fontset.c (reorder_font_vector): Pay attention to the case that
18453 the 3rd element of font_def is nil.
18454 (fontset_font): For the default fontset, append one more fontset
18455 elements for a script-based font specification. Don't add script
18456 attribute on finding a font.
18457 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18458 font name.
18459 (fontset_ascii_font): If a font can't be opened, return nil.
18460
18461 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18462 (ftfont_pattern_entity): New function.
18463 (ftfont_get_cache): Assume that freetype_font_cache is already
18464 initialized.
18465 (ftfont_list): Handle the case that a file is specified in font
18466 name. Use ftfont_pattern_entity to generate entities.
18467 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18468 (syms_of_ftfont): Initialize freetype_font_cache.
18469
18470 * xftfont.c (xftfont_open): Make the font name fontconfig's
18471 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18472 (xftfont_close): Free font->font.name if not NULL.
18473
18474 * xfont.c (xfont_list): If script is specified for a font, return
18475 null_vector.
18476 (xfont_list_family): Declare argument type.
18477
18478 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18479 name, set LFACE_FONT (lface) to nil.
18480
18481 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18482 return Qnil.
18483
184842008-02-01 Kenichi Handa <handa@m17n.org>
18485
18486 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18487 (standard_args): Add "-enable-font-backend".
18488
184892008-02-01 Kenichi Handa <handa@m17n.org>
18490
18491 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18492 (struct xftdraw_list, xftdraw_list): Delete them.
18493 (register_xftdraw, check_xftdraw): Delete them.
18494 (xftfont_prepare_face): Don't call register_xftdraw.
18495 (xftfont_done_face): Don't call check_xftdraw.
18496 (xftfont_draw): Get background color only when with_background is
18497 nonzero.
18498
18499 * xfont.c (xfont_encode_char): Fix calculation of char2b.
18500
185012008-02-01 Kenichi Handa <handa@m17n.org>
18502
18503 These changes are for the new font handling codes.
18504
18505 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
18506 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
18507 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
18508 (FONTSRC, FONTOBJ): New variables.
18509 (obj): Add $(FONTOBJ).
18510 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
18511 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
18512 @LIBOTF_LIBS@.
18513 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
18514 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
18515
18516 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
18517
18518 * character.h (Vscript_representative_chars): Extern it.
18519
18520 * character.c (Vscript_representative_chars): New variable.
18521 (syms_of_character): Declare it as a Lisp variable.
18522
18523 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
18524 enable_font_backend is nonzero, accept the composition method
18525 COMPOSITION_WITH_GLYPH_STRING.
18526
18527 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
18528 enumeration COMPOSITION_WITH_GLYPH_STRING.
18529
18530 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
18531 members clip_x, clip_y, clip_width, and clip_height.
18532 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
18533
18534 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
18535 --enable-font-backend. Call syms_of_font.
18536
18537 * fns.c (assoc_no_quit): New function.
18538
18539 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18540 (face_for_font, new_fontset_from_font)
18541 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18542
18543 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18544 (fontset_font, fontset_ascii, face_for_char)
18545 (make_fontset_for_ascii_face, Ffont_info)
18546 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18547 is nonzero, use font-backend mechanism.
18548 (find_font_encoding): Make it non-static.
18549 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18550 New functions.
18551
18552 * frame.h (struct frame): New members resx and resy.
18553 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18554 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18555
18556 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18557 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18558
18559 * lisp.h (assoc_no_quit): Extern it.
18560
18561 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18562 Through out the file, use FONT_INFO_FROM_FACE instead of
18563 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18564 rif->per_char_metric.
18565 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18566 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18567 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18568 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18569 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18570 nonzero, use font-backend mechanism.
18571 (get_per_char_metric): New function.
18572
18573 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18574 (set_lface_from_font_name)
18575 (set_font_frame_param, free_realized_face)
18576 (prepare_face_for_display, clear_face_gcs)
18577 (Finternal_set_font_selection_order, realize_x_face)
18578 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18579 font-backend mechanism.
18580 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18581 (load_face_font) [USE_FONT_BACKEND]: Abort.
18582 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18583 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18584
18585 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18586 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18587 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18588 nonzero, register all available font drivers. Call
18589 x_default_font_parameter for deciding a font.
18590 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18591
18592 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18593 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18594 (x_set_glyph_string_clipping_exactly)
18595 (x_compute_glyph_string_overhangs)
18596 (x_draw_glyph_string_foreground)
18597 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18598 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18599 enable_font_backend is nonzero, use font-backend mechanism.
18600 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18601
186022008-02-01 Kenichi Handa <handa@m17n.org>
18603
18604 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18605 system_eol_type.
18606 (syms_of_coding): Initialize system_eol_type.
18607
18608 * process.c (Fset_process_coding_system): Inherit system's eol
18609 format if necessary.
18610
186112008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18612
18613 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18614
186152008-02-01 Kenichi Handa <handa@m17n.org>
18616
18617 * coding.c (decode_eol): Pay attention to buffer relocation in
18618 del_range_2.
18619 (decode_coding): Call decode_eol before restoring undo_list.
18620
186212008-02-01 Kenichi Handa <handa@m17n.org>
18622
18623 * charset.c (Fdefine_charset_internal): Fix setting of
18624 emacs_mule_bytes.
18625
186262008-02-01 Kenichi Handa <handa@m17n.org>
18627
18628 * keyboard.c (read_char): Check if C is a character or not before
18629 looking up Vkeyboard_translate_table.
18630
186312008-02-01 Kenichi Handa <handa@m17n.org>
18632
18633 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18634 condition to terminate the loop.
18635
186362008-02-01 Kenichi Handa <handa@m17n.org>
18637
18638 * coding.c (produce_composition): Compare charbuf[i] instead of
18639 args[i] against 0.
18640 (Fterminal_coding_system): Use EQ to compare Lisp objects.
18641
186422008-02-01 Kenichi Handa <handa@m17n.org>
18643
18644 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
18645 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
18646 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
18647 detect_coding.
18648 (emacs_mule_char): Handle old style (Emacs 20) component character
18649 of a composition.
18650 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
18651 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
18652 composition rule.
18653 (decode_coding_emacs_mule): Handle invalid bytes correctly.
18654
186552008-02-01 Kenichi Handa <handa@m17n.org>
18656
18657 * coding.c (encode_coding_ccl): Allocate destination dynamically
18658 when necessary.
18659
186602008-02-01 Kenichi Handa <handa@m17n.org>
18661
18662 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
18663 the loop. When quitted, show a proper error message.
18664
186652008-02-01 Kenichi Handa <handa@m17n.org>
18666
18667 * xterm.c (x_set_glyph_string_clipping_exactly): Set
18668 src->clip_head and src->clip_tail temporarily instead of src->hl.
18669
18670 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
18671 character sequence.
18672 (Fccl_execute_on_string): Use ASET, not XSET.
18673
186742008-02-01 Kenichi Handa <handa@m17n.org>
18675
18676 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
18677
186782008-02-01 Kenichi Handa <handa@m17n.org>
18679
18680 * coding.c (decode_coding): Fix the condition of terminating the
18681 decoding loop.
18682
186832008-02-01 Kenichi Handa <handa@m17n.org>
18684
18685 * data.c (Faset): On setting a character bigger than 255 in a
18686 unibyte string, signal an error instead of make the string multibyte.
18687
186882008-02-01 Kenichi Handa <handa@m17n.org>
18689
18690 * charset.c (map_charset_chars): Fix for ascii-compatible charset
18691 made by a mapping table.
18692
186932008-02-01 Kenichi Handa <handa@m17n.org>
18694
18695 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
18696 not.
18697 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
18698 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
18699
18700 * xterm.c (x_draw_composite_glyph_string_foreground): Check
18701 s->face is NULL or not.
18702
187032008-02-01 Kenichi Handa <handa@m17n.org>
18704
18705 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
18706 (x_draw_glyph_string): Fix drawing of right_overhang and
18707 left_overhang around/on cursor.
18708
18709 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
18710
187112008-02-01 Kenichi Handa <handa@m17n.org>
18712
18713 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
18714
187152008-02-01 Kenichi Handa <handa@m17n.org>
18716
18717 * coding.c (Fdefine_coding_system_internal)
18718 (Fdefine_coding_system_alias): Avoid a duplicated element in
18719 Vcoding_system_alist.
18720
187212008-02-01 Kenichi Handa <handa@m17n.org>
18722
18723 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
18724
18725 * coding.c (Qcoding_system_define_form): New variable.
18726 (syms_of_coding): Intern and staticpro it.
18727 (Fcoding_system_p): Check Qcoding_system_define_form.
18728 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
18729
18730 * coding.h (CODING_SYSTEM_P): If ID is not available, call
18731 Fcoding_system_p.
18732 (CHECK_CODING_SYSTEM): If ID is not available, call
18733 Fcheck_coding_system.
18734 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
18735 Try also Fcheck_coding_system.
18736
187372008-02-01 Kenichi Handa <handa@m17n.org>
18738
18739 * coding.c (code_conversion_restore): GCPRO arg.
18740
187412008-02-01 Kenichi Handa <handa@m17n.org>
18742
18743 * character.c (lisp_string_width): Check multibyteness of STRING.
18744
187452008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18746
18747 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
18748 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
18749 (decode_mac_font_name): Use decode_coding_c_string instead of
18750 decode_coding.
18751 (x_load_font): Initialize fontp->fontset to -1. Set
18752 fontp->encoding_type.
18753
187542008-02-01 Kenichi Handa <handa@m17n.org>
18755
18756 * search.c (search_buffer): Give up BM search on case-fold-search
18757 if one of a target character has a case-equivalence of different
18758 byte length even if that target charcter is an ASCII.
18759 (simple_search): Fix calculation of byte length of matched text.
18760 (boyer_moore): Fix handling of case-equivalent multibyte characters.
18761
187622008-02-01 Kenichi Handa <handa@m17n.org>
18763
18764 * coding.c (decode_coding): Fix handling of invalid bytes.
18765
187662008-02-01 Kenichi Handa <handa@m17n.org>
18767
18768 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
18769 Unicode characters.
18770
187712008-02-01 Kenichi Handa <handa@m17n.org>
18772
18773 * coding.c (encode_coding_object): If a pre-write-conversion
18774 function makes a new buffer, kill it.
18775
187762008-02-01 Kenichi Handa <handa@m17n.org>
18777
18778 * coding.c (QCascii_compatible_p): New variable.
18779 (syms_of_coding): Initialize it.
18780 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
18781 calling string_char.
18782 (record_conversion_result): Add `default:' case.
18783 (coding_charset_list): Delete unused variable `coding_type'.
18784 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
18785 property in the plist of the coding system.
18786 (Fcoding_system_put): Check QCascii_compatible_p.
18787
187882008-02-01 Miles Bader <miles@gnu.org>
18789
18790 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
18791 removed calculation of frame `f', as it's now used.
18792
187932008-02-01 Kenichi Handa <handa@m17n.org>
18794
18795 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
18796 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
18797 (UNIDATA): New variable.
18798 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
18799 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
18800 $(RUN_TEMACS) unconditionally.
18801
188022008-02-01 Kenichi Handa <handa@m17n.org>
18803
18804 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18805 (admindir): New variable.
18806 ($(lispsource)international/charprop.el): New target.
18807
188082008-02-01 Miles Bader <miles@gnu.org>
18809
18810 * character.c (chars-in-region): Remove obsolete function.
18811 (syms_of_character): Remove its initialization.
18812
188132008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18814
18815 * w32select.c (validate_coding_system)
18816 (setup_windows_coding_system): New functions.
18817 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18818 setup_windows_coding_system.
18819 (setup_config, Fw32_get_clipboard_data): Use
18820 validate_coding_system.
18821 (Fx_selection_exists): Move call to setup_config to a place
18822 where signals are allowed.
18823
18824 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18825 (Fcheck_coding_system): Add declarations.
18826
188272008-02-01 Kenichi Handa <handa@m17n.org>
18828
18829 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18830
188312008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18832
18833 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18834 string as the second argument for x_new_fontset.
18835
188362008-02-01 Kenichi Handa <handa@m17n.org>
18837
18838 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18839 (encode_coding_object): Use safe_call instead of call2.
18840
188412008-02-01 Kenichi Handa <handa@m17n.org>
18842
18843 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18844
18845 * Makefile.in (lisp): Include charprop.el.
18846
188472008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18848
18849 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18850 Not sure if it's unnecessary.
18851
188522008-02-01 Steven Tamm <steventamm@mac.com>
18853
18854 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18855 some possibly unnecessary fontset checking code that crashed
18856 when creating a new frame.
18857
188582008-02-01 Kenichi Handa <handa@m17n.org>
18859
18860 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18861 lookup_face.
18862
18863 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18864
18865 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18866
188672008-02-01 Kenichi Handa <handa@m17n.org>
18868
18869 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18870 (coding_charset_list): New function.
18871
18872 * coding.h (coding_charset_list): Extern it.
18873
188742008-02-01 Kenichi Handa <handa@m17n.org>
18875
18876 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18877 concatenation of family and registry.
18878
188792008-02-01 Kenichi Handa <handa@m17n.org>
18880
18881 * character.h (BYTE8_STRING): Fix typo.
18882
18883 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18884 string to multibyte (sync to HEAD).
18885
18886 * casefiddle.c (casify_region): Handle changes in byte-length
18887 using replace_range_2 (sync to HEAD).
18888
188892008-02-01 Andreas Schwab <schwab@suse.de>
18890
18891 * chartab.c (map_char_table): GCPRO table and arg.
18892
188932008-02-01 Kenichi Handa <handa@m17n.org>
18894
18895 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18896 already at limit.
18897
188982008-02-01 Kenichi Handa <handa@m17n.org>
18899
18900 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18901 instead of fast_c_string_match_ignore_case.
18902 (find_font_encoding): Change argument to Lisp_Object. Use
18903 fast_string_match_ignore_case instead of
18904 fast_c_string_match_ignore_case. Change caller.
18905
189062008-02-01 Kenichi Handa <handa@m17n.org>
18907
18908 * xdisp.c (get_next_display_element): In unibyte case, decide to
18909 display in octal form by checking a character by
18910 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18911
18912 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18913
18914 * character.c (unibyte_has_multibyte_table): New variable.
18915
18916 * character.h (unibyte_has_multibyte_table): Extern it.
18917 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18918
189192008-02-01 Kenichi Handa <handa@m17n.org>
18920
18921 * coding.c (encode_coding_iso_2022): Fix handling of charset
18922 annotation.
18923
189242008-02-01 Kenichi Handa <handa@m17n.org>
18925
18926 * coding.c (setup_coding_system): If coding_system is nil, use
18927 Qundecided.
18928 (Fterminal_coding_system): Return nil if terminal coding system is
18929 `undecided'.
18930 (syms_of_coding): Define coding-system `undecided' here. Setup
18931 terminal_coding as `undecided'.
18932
189332008-02-01 Kenichi Handa <handa@m17n.org>
18934
18935 * xdisp.c (message_dolog, set_message_1): Call
18936 unibyte_char_to_multibyte with arg type int.
18937
18938 * lread.c (read1): Fix reading of a char-table.
18939
18940 * print.c (print_object): Include sub char-table in circularities
18941 detection.
18942
189432008-02-01 Kenichi Handa <handa@m17n.org>
18944
18945 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18946 Append the found sequences in car of ARGS instead of prepending.
18947
189482008-02-01 Kenichi Handa <handa@m17n.org>
18949
18950 * fileio.c (report_file_error): Make a unibyte string from
18951 strerror (errorno).
18952 (Fsubstitute_in_file_name): Fix the arg to
18953 unibyte_char_to_multibyte. It is evaluated twice.
18954
189552008-02-01 Kenichi Handa <handa@m17n.org>
18956
18957 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18958
189592008-02-01 Kenichi Handa <handa@m17n.org>
18960
18961 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18962 BOM is not found.
18963 (detect_coding, detect_coding_system): Optimization for ISO-2022
18964 when no 8-bit data is found.
18965
189662008-02-01 Jason Rumney <jasonr@gnu.org>
18967
18968 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18969
189702008-02-01 Kenichi Handa <handa@m17n.org>
18971
18972 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18973 CHARS.
18974
189752008-02-01 Steven Tamm <steventamm@mac.com>
18976
18977 * macterm.c (mac_encode_char): Add charset argument and update
18978 to use encoding_type.
18979 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18980 switch to pure fontset.
18981 (decode_mac_font_name): Temporarily remove decoding.
18982 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18983 (x_load_font): Temporarily remove encoding.
18984
189852008-02-01 Kenichi Handa <handa@m17n.org>
18986
18987 * xfaces.c (Fface_font): If frame is not on a window system,
18988 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18989 refer to face->font.
18990 (split_font_name_into_vector, build_font_name_from_vector)
18991 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18992 when HAVE_WINDOW_SYSTEM is defined.
18993
189942008-02-01 Kenichi Handa <handa@m17n.org>
18995
18996 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
18997 (x_produce_glyphs): Fix setting of members of cmp in case
18998 cmp->glyph_len is zero.
18999
19000 * fontset.c (Fset_fontset_font): Fix docstring.
19001 (Ffontset_info): Make it backward compatible. New arg ALL.
19002
190032008-02-01 Kim F. Storm <storm@cua.dk>
19004
19005 * process.c (read_process_output): Grow decoding_buf when needed;
19006 this could cause a crash in allocate_string and compact_small_strings.
19007
190082008-02-01 Kenichi Handa <handa@m17n.org>
19009
19010 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19011
190122008-02-01 Kenichi Handa <handa@m17n.org>
19013
19014 * coding.c (setup_coding_system): Set coding->common_flags
19015 correctly for raw-text.
19016 (consume_chars): On encoding unibyte text by raw-text, don't check
19017 multibyte form.
19018 (encode_coding): On encoding by raw-text, never use translation tables.
19019
19020 * fileio.c (e_write): Short cut for the case of no encoding.
19021
190222008-02-01 Kenichi Handa <handa@m17n.org>
19023
19024 * coding.c (detect_coding, detect_coding_system): Delete unused
19025 variables.
19026
190272008-02-01 Kenichi Handa <handa@m17n.org>
19028
19029 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19030 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19031
190322008-02-01 Kenichi Handa <handa@m17n.org>
19033
19034 * coding.c (Ffind_coding_systems_region_internal): Include
19035 raw-text and no-conversion in the result.
19036
190372008-02-01 Kenichi Handa <handa@m17n.org>
19038
19039 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19040 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19041 FONT_DEF.
19042 (font_def_arg, add_arg, from_arg, to_arg): New args.
19043 (set_fontset_font): Change argument.
19044 (Fset_fontset_font): Fix for the case that TARGET is a script
19045 name and charset name.
19046 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19047
190482008-02-01 Kenichi Handa <handa@m17n.org>
19049
19050 * fontset.c (fontset_font): Rename from fontset_face. Change return
19051 value.
19052 (face_suitable_for_char_p, face_for_char): Adjust for the change
19053 of fontset_font.
19054 (make_fontset_for_ascii_face): Fix setting of the fontset element
19055 for ASCII.
19056 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19057 to get a font name.
19058 (Ffontset_info): Adjust for the change of fontset_font.
19059
19060 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19061
19062 * character.h (LEADING_CODE_LATIN_1_MIN)
19063 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19064
190652008-02-01 Kenichi Handa <handa@m17n.org>
19066
19067 * editfns.c (check_translation): New function.
19068 (Ftranslate_region_internal): Handle M:N mapping.
19069
190702008-02-01 Kenichi Handa <handa@m17n.org>
19071
19072 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19073
190742008-02-01 Kenichi Handa <handa@m17n.org>
19075
19076 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19077 goto invalid_code.
19078 (decode_coding_iso_2022): Fix handling of invalid designation.
19079
19080 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19081 after calling code_conversion_save.
19082
190832008-02-01 Kenichi Handa <handa@m17n.org>
19084
19085 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19086
19087 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19088
19089 * fontset.c: Include "intervals.h".
19090 (fontset_face): Fix comparing of Lisp_Objects.
19091 (free_face_fontset, new_fontset_from_font_name): Fix
19092 Lisp_Object/int mixup.
19093
19094 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19095
19096 * coding.c: Add many prototypes for static functions.
19097 (get_translation_table): Allow max_lookup to be NULL.
19098 (decode_coding, Ffind_coding_systems_region_internal)
19099 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19100 get_translation_table with max_lookup NULL.
19101
191022008-02-01 Kenichi Handa <handa@m17n.org>
19103
19104 * coding.c (get_translation_table): Declare it as Lisp_Object.
19105 (LOOKUP_TRANSLATION_TABLE): New macro.
19106 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19107 instead of CHAR_TABLE_REF.
19108
191092008-02-01 Kenichi Handa <handa@m17n.org>
19110
19111 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19112 annotation data format.
19113 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19114 Change arguments FROM and TO to single argument NCHARS. Change caller.
19115 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19116 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19117 (decode_coding_ccl, decode_coding_charset): Pay attention to
19118 coding->charbuf_used.
19119 (get_translation): New function.
19120 (produce_chars): New arguments translation_table and last_block.
19121 Translate characters here. Return number of carryover chars.
19122 Change caller.
19123 (produce_composition): New argument pos. Change caller.
19124 Adjust for the change of annotation data format.
19125 (produce_charset, produce_annotation): Likewise.
19126 (decode_coding, encode_coding): Don't call translate_chars.
19127 (consume_chars): New arg translation_table. Change caller.
19128 (translate_chars): Delete.
19129 (syms_of_coding): Make translation-table's number of extra slots 2.
19130
191312008-02-01 Kenichi Handa <handa@m17n.org>
19132
19133 * search.c (simple_search): Fix setting this_pos_byte in backward
19134 search.
19135
19136 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19137 byte sequence.
19138 (detect_coding_ccl): Fix setting of the variable valids.
19139
191402008-02-01 Kenichi Handa <handa@m17n.org>
19141
19142 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19143
19144 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19145
19146 * editfns.c (Ftranslate_region_internal): Rename from
19147 Ftranslate_region. Accept a char-table in TABLE.
19148 (syms_of_editfns): Defsubr Stranslate_region_internal.
19149
19150 * xfaces.c (set_lface_from_font_name): If a font is specified for
19151 a frame, generate a fontset from the font.
19152 (build_scalable_font_name): If the scalable font is requested for
19153 a specific size, don't change that size.
19154 (try_font_list): Try a scalable font also in the case that a
19155 pattern string is specified.
19156
191572008-02-01 Kenichi Handa <handa@m17n.org>
19158
19159 * xfaces.c (Fface_font): New optional arg CHARACTER.
19160
191612008-02-01 Kenichi Handa <handa@m17n.org>
19162
19163 * charset.h (CHARSET_OFFSET): New macro.
19164
191652008-02-01 Kenichi Handa <handa@m17n.org>
19166
19167 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19168
19169 * fontset.c (fontset_face): Handle the case that repertory is a
19170 char-table.
19171 (find_font_encoding): Return nil for unknown encoding.
19172 (Fset_fontset_font): Ignore a font of unknown encoding.
19173
191742008-02-01 Kenichi Handa <handa@m17n.org>
19175
19176 * keymap.c (describe_vector): Handle default value of a char table.
19177
19178 * fontset.c (fontset_face): Handle fallback fonts correctly.
19179 (Ffontset_info): Return infomation about fallback fonts.
19180
191812008-02-01 Kenichi Handa <handa@m17n.org>
19182
19183 * fontset.c (FONTSET_DEFAULT): New macro.
19184 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19185 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19186 the case that it is nil.
19187 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19188 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19189
19190 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19191 subset or superset.
19192
191932008-02-01 Kenichi Handa <handa@m17n.org>
19194
19195 * emacs.c (main): Call init_charset after syms_of_XXX.
19196
19197 * charset.c (Vcharset_map_directory): Delete.
19198 (Vcharset_map_path): New variable.
19199 (load_charset_map_from_file): Use Vcharset_map_path instead.
19200 (init_charset): Initialize Vcharset_map_path.
19201 (syms_of_charset): Delete declaration of "charset-map-directory",
19202 add declaration of "charset-map-path".
19203
192042008-02-01 Kenichi Handa <handa@m17n.org>
19205
19206 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19207 ASCII only string.
19208
19209 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19210
19211 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19212 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19213
192142008-02-01 Kenichi Handa <handa@m17n.org>
19215
19216 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19217
19218 * coding.c (QCmnemonic, QCdefalut_char)
19219 (QCdecode_translation_table, QCencode_translation_table)
19220 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19221 (get_translation_table): Return a list of translation tables if
19222 necessary.
19223 (decode_coding): Call get_translation_table with ENCODEP 0.
19224 (char_encodable_p): If translation_table is non-nil, always call
19225 translate_char.
19226 (Fdefine_coding_system_internal): Accept list of translation
19227 tables as :encode-translation-table and :decode-translation-table.
19228 (Fcoding_system_put): New function.
19229 (syms_of_coding): Declare new symbols. Defsubr
19230 Scoding_system_put.
19231 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19232 typically JISX0212.
19233
19234 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19235 when the charset is superset type.
19236
19237 * character.c (translate_char): Accept list of translation tables.
19238
192392008-02-01 Kenichi Handa <handa@m17n.org>
19240
19241 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19242 (CODING_ATTR_TRANS_TBL): New macro.
19243
19244 * coding.c (get_translation_table): New function.
19245 (translate_chars): Fix the bug of skipping annotation data.
19246 (decode_coding, encode_coding): Utilize get_translation_table.
19247 (char_encodable_p, Funencodable_char_position): Translate char if
19248 necessary.
19249 (Ffind_coding_systems_region_internal)
19250 (Fcheck_coding_systems_region): Setup translation table for encode
19251 in a coding system attribute vector in advance.
19252 (Fdefine_coding_system_internal): Allow a symbol as translation
19253 table. For shift-jis type coding system, allow 4th charset.
19254
192552008-02-01 Kenichi Handa <handa@m17n.org>
19256
19257 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19258
19259 * xdisp.c (get_next_display_element): Pass -1 as POS to
19260 FACE_FOR_CHAR if displaying a C-string.
19261
192622008-02-01 Kenichi Handa <handa@m17n.org>
19263
19264 * composite.c (get_composition_id): Handle xoff and yoff in a
19265 composition rule.
19266
19267 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19268 (struct composition): New member lbearing and rbearing.
19269
19270 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19271 (x_get_glyph_overhangs): Handle a composition glyph.
19272 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19273
19274 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19275 composition glyph.
19276
192772008-02-01 Kenichi Handa <handa@m17n.org>
19278
19279 * print.c: Include charset.h.
19280 (Vprint_charset_text_property): New variable.
19281 (Qdefault): Extern it.
19282 (PRINT_STRING_NON_CHARSET_FOUND)
19283 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19284 (print_check_string_result): New variable.
19285 (print_check_string_charset_prop): New function.
19286 (print_prune_charset_plist): New variable.
19287 (print_prune_string_charset): New function.
19288 (print_object): Call print_prune_string_charset if
19289 Vprint_charset_text_property is not t.
19290 (print_interval): Print nothing if interval->plist is nil.
19291 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19292 variable. Init and staticpro print_prune_charset_plist.
19293
192942008-02-01 Kenichi Handa <handa@m17n.org>
19295
19296 * fontset.c (new_fontset_from_font_name): Use the specified font
19297 for all characters in the new fontset.
19298
19299 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19300 OBJECT args.
19301
19302 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19303 OBJECT args for composition too.
19304
19305 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19306 OBJECT args.
19307
193082008-02-01 Kenichi Handa <handa@m17n.org>
19309
19310 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19311
19312 * fontset.c (reorder_font_vector): Adjust for the change of
19313 FONT_DEF format.
19314 (fontset_face): New arg id. Change caller.
19315 (face_for_char): New args pos and object.
19316 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19317 (fs_query_fontset): Check NAME by Fassoc too.
19318 (Fset_fontset_font): Allow non-XLFD font name.
19319 (Ffontset_info): Adjust for the change of FONT_DEF format.
19320
19321 * fontset.h (face_for_char): Adjust prototype.
19322
19323 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19324 (append_space, extend_face_to_end_of_line)
19325 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19326 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19327
19328 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19329 POS and OBJECT args.
19330
19331 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19332 POS and OBJECT args.
19333
193342008-02-01 Jason Rumney <jasonr@gnu.org>
19335
19336 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19337 of GlobalAlloc'ed memory.
19338
193392008-02-01 Kenichi Handa <handa@m17n.org>
19340
19341 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19342
19343 * charset.h (charset_table_used): Delete extern.
19344
19345 * charset.c (charset_table_used): Make it static.
19346 (map_charset_chars): Fix args to c_function with.
19347
19348 * chartab.c (map_sub_char_table_for_charset): Fix args to
19349 c_function with.
19350
19351 * coding.h (enum coding_result_code): Delete
19352 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19353
19354 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19355 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19356 (Vlast_code_conversion_error): New variables.
19357 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19358 (ONE_MORE_BYTE): Record error if any instead of signaling an
19359 error. If non-ASCII multibyte char is found, return the negative
19360 value of the code. All callers changed to check it.
19361 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19362 (record_conversion_result): New function. Change all codes setting
19363 coding->result to call this function.
19364 (detect_coding_utf_8, decode_coding_utf_8)
19365 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19366 Don't use the local variable incomplete.
19367 (emacs_mule_char): Change the second arg to `const'.
19368 (decode_coding): Fix of flushing out unprocessed data.
19369 (make_conversion_work_buffer): Fix making of a work buffer.
19370 (decode_coding_object): Return coding->dst_object.
19371
19372 * fontset.c (set_fontset_font): Fix args.
19373
19374 * lisp.h (CHARACTERBITS): Define as 22.
19375
19376 * process.c (send_process): Be sure to set coding->src_multibyte.
19377
19378 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19379
193802008-02-01 Kenichi Handa <handa@m17n.org>
19381
19382 * xdisp.c (handle_auto_composed_prop): Give limit to
19383 Fnext_single_char_property_change.
19384
193852008-02-01 Kenichi Handa <handa@m17n.org>
19386
19387 * composite.c (syms_of_composite): Don't make the composition hash
19388 table weak.
19389
19390 * fontset.c (Fset_fontset_font): Fix docstring.
19391
19392 * lisp.h (detect_coding_system): Adjust prototype.
19393
19394 * fileio.c (kill_workbuf_unwind): Delete this function.
19395 (Finsert_file_contents): Adjust the call of detect_coding_system.
19396 Get conversion_buffer by code_conversion_save. Use the macro
19397 CODING_MAY_REQUIRE_DECODING. After decoding, update
19398 coding_system.
19399
19400 * coding.h (make_conversion_work_buffer): Delete extern.
19401 (code_conversion_save): Extern it.
19402
19403 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19404 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19405 (decode_coding_utf_8): Don't do eol converion.
19406 (detect_coding_utf_16): Check coding->src_chars, not
19407 coding->src_bytes. Add heuristics for those that have no signature.
19408 (decode_coding_emacs_mule, decode_coding_iso_2022)
19409 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19410 Don't do eol converion.
19411 (adjust_coding_eol_type): Return a new coding system.
19412 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19413 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19414 each change.
19415 (decode_coding): Pay attention to undo_list. Do eol conversion for
19416 all types of coding-systems (if necessary).
19417 (Vcode_conversion_work_buf_list): Delete it.
19418 (Vcode_conversion_reused_workbuf): Rename from
19419 Vcode_conversion_reused_work_buf.
19420 (Vcode_conversion_workbuf_name): New variable.
19421 (reused_workbuf_in_use): New variable.
19422 (make_conversion_work_buffer): Delete the arg DEPTH.
19423 (code_conversion_restore): Change argument to cons.
19424 (code_conversion_save): Delete the argument BUFFER. Change callers.
19425 (detect_coding_system): New argument src_chars. Change callers.
19426 Fix for utf-16 detection.
19427 (init_coding_once): Don't use ISO_carriage_return.
19428 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19429 reused_workbuf_in_use.
19430
194312008-02-01 Kenichi Handa <handa@m17n.org>
19432
19433 * keymap.c (store_in_keymap): Pay attention to the case that idx
19434 is a cons specifying a character range.
19435
194362008-02-01 Kenichi Handa <handa@m17n.org>
19437
19438 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19439 HANDLED_RECOMPUTE_PROPS.
19440
19441 * coding.c (Fdefine_coding_system_internal): Fix checking of
19442 ascii compatibility.
19443
194442008-02-01 Kenichi Handa <handa@m17n.org>
19445
19446 * charset.c (find_charsets_in_text): Delete unused locale variable.
19447 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19448
19449 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19450 Resync charset_list to Vemacs_mule_charset_list.
19451
19452 * keymap.c (store_in_keymap): Pay attention to the case that idx
19453 is a cons specifying a character range.
19454
194552008-02-01 Kenichi Handa <handa@m17n.org>
19456
19457 * composite.c (update_compositions): Bind inhibit-read-only, etc
19458 to t before calling remove-list-of-text-properties.
19459
19460 * print.c (print_object): Always print ASCII chars as is.
19461
194622008-02-01 Kenichi Handa <handa@m17n.org>
19463
19464 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19465
19466 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19467 is a char table.
19468
194692008-02-01 Kenichi Handa <handa@m17n.org>
19470
19471 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19472
194732008-02-01 Kenichi Handa <handa@m17n.org>
19474
19475 * xfaces.c (set_lface_from_font_name): Fix for the case that
19476 FONTNAME is not fontset name.
19477
194782008-02-01 Kenichi Handa <handa@m17n.org>
19479
19480 * fns.c (base64_encode_1): Fix previous change.
19481
194822008-02-01 Kenichi Handa <handa@m17n.org>
19483
19484 * fontset.c (set_fontset_font): New function.
19485 (Fset_fontset_font): If a font is specified for a charset, use
19486 map_charset_chars to store the font spec in a fontset.
19487
194882008-02-01 Kenichi Handa <handa@m17n.org>
19489
19490 * fontset.c (fontset_face): Create a fallback fontset on demand.
19491 (make_fontset): Don't create a fallback fontset here.
19492 (free_face_fontset): Free a fallback fontset (if any) too.
19493 (n_auto_fontsets): Delete this variable.
19494 (auto_fontset_alist): New variable.
19495 (new_fontset_from_font_name): Check auto_fontset_alist.
19496 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19497 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
19498 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
19499 Defsubr Sfontset_list_all.
19500
195012008-02-01 Kenichi Handa <handa@m17n.org>
19502
19503 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
19504
195052008-02-01 Kenichi Handa <handa@m17n.org>
19506
19507 * fontset.c (Fnew_fontset): Check NAME more rigidly.
19508
195092008-02-01 Kenichi Handa <handa@m17n.org>
19510
19511 * editfns.c (Fgoto_char): Fix docstring.
19512
195132008-02-01 Kenichi Handa <handa@m17n.org>
19514
19515 * insdel.c (insert_from_gap): Adjust intervals correctly.
19516
195172008-02-01 Jason Rumney <jasonr@gnu.org>
19518
19519 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
19520 (pfnGetFontUnicodeRanges): New dynamically loaded function.
19521 (w32_initialize): Try to load it.
19522 (x_get_font_repertory): Use it if available.
19523 (w32_encode_char): Add shortcut for unicode output.
19524
19525 * w32fns.c (w32_load_system_font): Default charset to -1.
19526 (x_to_w32_charset): Match all fonts for unicode.
19527 (w32_to_x_charset): New parameter matching. Don't return partial
19528 or wildcard charsets.
19529 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
19530 (w32_codepage_for_font): Return CP_UNICODE for unicode.
19531 (w32_to_x_font): Match charset to real charset.
19532 (enum_font_cb2): Always list unicode versions.
19533
19534 * makefile.w32-in (temacs): Increase EMHEAP.
19535
195362008-02-01 Jason Rumney <jasonr@gnu.org>
19537
19538 * w32term.c (w32_encode_char): New charset parameter.
19539 font_info.encoding becomes encoding_type.
19540 (x_get_font_repertory): New function. Warning: stub only!
19541 (x_new_font): Return quickly if font already set.
19542 (x_new_fontset): fontsetname parameter is Lisp_Object.
19543 Use new fs_query_fontset. Try new_fontset_from_font_name.
19544 Use fontset_name for return value.
19545
19546 * w32term.h: Declare x_get_font_repertory.
19547
19548 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19549 place of find_charset_in_text. Use encode_coding_object in place
19550 of encode_coding.
19551 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19552 decode_coding.
19553
19554 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19555 of x_new_fontset.
19556 (w32_load_system_font): Initialize charset as unicode.
19557 font_info.encoding becomes encoding_type.
19558 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19559 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19560 (syms_of_w32fns): Set get_font_repertory_func.
19561
19562 * w32console.c: Include character.h. Use terminal_encode_buffer
19563 from term.c.
19564 (write_glyphs): Use new version of encode_terminal_code. Use
19565 encode_coding_object in place of encode_coding.
19566
19567 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19568 encoding becomes encoding_type.
19569
19570 * term.c (terminal_encode_buffer): Make externally visible.
19571
19572 * makefile.w32-in: Add character.h dependancies.
19573 (character.o, chartab.o): New targets.
19574
195752008-02-01 Kenichi Handa <handa@m17n.org>
19576
19577 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19578 CODING_ID_EOL_TYPE.
19579
195802008-02-01 Andreas Schwab <schwab@suse.de>
19581
19582 * coding.c (produce_chars): Revert last change.
19583
195842008-02-01 Kenichi Handa <handa@m17n.org>
19585
19586 * charset.h (charset_unicode): Extern it.
19587
19588 * charset.c (string_xstring_p): Check by (C >= 0x100).
19589 (find_charsets_in_text): Change format of the arc CHARSETS. New
19590 arg MULTIBYTE.
19591 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19592 change of find_charsets_in_text.
19593 (Fsplit_char): Fix doc. Never return unknown.
19594
19595 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19596
19597 * coding.c (Fdefine_coding_system_alias): Update
19598 Vcoding_system_list.
19599
19600 * fontset.c (load_font_get_repertory): Pay attention to the case
19601 that ENCODING of a font is specified by a char-table.
19602
19603 * xterm.c (x_get_font_repertory): Handle the case that the
19604 encoding of font is other than Unicode.
19605
196062008-02-01 Kenichi Handa <handa@m17n.org>
19607
19608 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19609 if a character is encodable by the terminal coding system. If
19610 not, produces proper number of `?'s. Update
19611 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19612 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19613
196142008-02-01 Kenichi Handa <handa@m17n.org>
19615
19616 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19617 variables.
19618 (encode_terminal_code): Change argument. Encode multiple
19619 characters at once. Store the result of encoding in
19620 terminal_encode_buffer.
19621 (write_glyphs, insert_glyphs): Adjust for the change of
19622 encode_terminal_code.
19623 (term_init): Initialize terminal_encode_buffer and
19624 terminal_encode_buf_size.
19625
19626 * coding.c (consume_chars): If coding->src_object is nil, don't
19627 check annotation.
19628
196292008-02-01 Kenichi Handa <handa@m17n.org>
19630
19631 * character.c (char_string): Use ASCII_CHAR_P instead of
19632 SINGLE_BYTE_CHAR_P.
19633
196342008-02-01 Kenichi Handa <handa@m17n.org>
19635
19636 * xdisp.c (handle_auto_composed_prop): Check if the last
19637 characters of auto-composed region is newly composed with the
19638 following characters.
19639 (handle_composition_prop): Fix checking of point being inside
19640 composition.
19641
196422008-02-01 Kenichi Handa <handa@m17n.org>
19643
19644 * fns.c (concat): Don't change multibyteness of the result by
19645 concatenating an 8-bit character.
19646
19647 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
19648 multibyteness of the result when newelt is an 8-bit character.
19649
196502008-02-01 Dave Love <fx@gnu.org>
19651
19652 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
19653 EMACS_INT.
19654
19655 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
19656
19657 * xfaces.c (face_numeric_value): Declare dim size_t.
19658 (Finternal_lisp_face_equal_p): Remove unused f.
19659
19660 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
19661 (MATRIX_ROW): Remove unused vars.
19662 (draw_glyphs, x_insert_glyphs, fast_find_position)
19663 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
19664 byte/char counts.
19665
19666 * regex.c (regex_compile): Remove unused var.
19667
19668 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19669
19670 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19671 (Faccessible_keymaps, where_is_internal): Remove unused vars.
19672
19673 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
19674
19675 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
19676
19677 * fileio.c (Fwrite_region): Remove unused var.
19678
19679 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
19680 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
19681
19682 * composite.c (Fremove_list_of_text_properties): Declare.
19683
19684 * coding.c (inhibit_pre_post_conversion): Remove (unused).
19685 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
19686 (coding_inherit_eol_type): Remove unused attrs.
19687 (detect_coding): Cast arg of detect_eol.
19688
19689 * charset.c (syms_of_charset): Remove unused var p.
19690 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
19691 byte/char counts.
19692
19693 * casetab.c (set_case_table): Remove unused var.
19694
19695 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
19696 unused vars.
19697
196982008-02-01 Dave Love <fx@gnu.org>
19699
19700 * xterm.c (x_bitmap_mask): Declare.
19701
197022008-02-01 Dave Love <fx@gnu.org>
19703
19704 * xterm.c (x_term_init): Fix type error.
19705
19706 * lisp.h: Add Funibyte_char_to_multibyte.
19707
19708 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
19709 (Fset_coding_system_priority): Doc fix.
19710
19711 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
19712
19713 * indent.c (check_composition): Make start and end EMACS_INT.
19714
19715 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
19716
19717 * xdisp.c (handle_composition_prop, check_point_in_composition):
19718 Make buffer positions EMACS_INT.
19719
19720 * composite.c (find_composition, run_composition_function)
19721 (update_compositions, Ffind_composition_internal): Make buffer
19722 positions EMACS_INT.
19723
19724 * composite.h (find_composition, update_compositions): Make
19725 position args EMACS_INT.
19726
19727 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
19728
19729 * intervals.c (get_property_and_range):
19730 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
19731
19732 * unexalpha.c: Don't include varargs.h.
19733
197342008-02-01 Dave Love <fx@gnu.org>
19735
19736 * coding.h (ENCODE_UTF_8): New.
19737
19738 * Makefile.in (gtkutil.o): Depend on coding.h.
19739
19740 * coding.c (Fset_coding_system_priority): Doc fix.
19741
197422008-02-01 Kenichi Handa <handa@m17n.org>
19743
19744 * fileio.c (Finsert_file_contents): Call setup_coding_system in
19745 the case of auto saving.
19746
197472008-02-01 Andreas Schwab <schwab@suse.de>
19748
19749 * chartab.c (map_char_table, map_char_table_for_charset): Protect
19750 `range' from GC.
19751
197522008-02-01 Kenichi Handa <handa@m17n.org>
19753
19754 * coding.c (decode_coding_sjis): Check bytes more rigidly.
19755
197562008-02-01 Kenichi Handa <handa@m17n.org>
19757
19758 * fileio.c (choose_write_coding_system): Return a decided coding system.
19759 (Fwrite_region): Set Vlast_coding_system_used to the return value
19760 of choose_write_coding_system.
19761
197622008-02-01 Kenichi Handa <handa@m17n.org>
19763
19764 * charset.c (Fset_charset_priority): Pay attention to duplicated
19765 arguments.
19766
19767 * coding.c (QCcategory): New variable.
19768 (syms_of_coding): Defsym it. Set all elements of
19769 Vcoding_category_table and their symbol values.
19770 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
19771 coding-category-XXX, and coding-category-list.
19772 (Fdefine_coding_system_internal): Add category in the plist.
19773
197742008-02-01 Kenichi Handa <handa@m17n.org>
19775
19776 * callproc.c (Fcall_process): Handle carryover correctly.
19777
19778 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
19779 (raw_text_coding_system): Check NILP (coding_system).
19780 (coding_inherit_eol_type): Check NILP (coding_system) and
19781 NILP (parent).
19782 (consume_chars): Fix for the case of raw-text.
19783
19784 * process.c (read_process_output): Handle carryover correctly.
19785
197862008-02-01 Dave Love <fx@gnu.org>
19787
19788 * regex.c (re_search_2): Fix last change.
19789
197902008-02-01 Kenichi Handa <handa@m17n.org>
19791
19792 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
19793 target_multibyte. Even in a unibyte case, return a converted
19794 multibyte char.
19795 (GET_CHAR_AFTER): New macro.
19796 (PATFETCH): Translate via multibyte char.
19797 (HANDLE_UNIBYTE_RANGE): Delete this macro.
19798 (SETUP_MULTIBYTE_RANGE): New macro.
19799 (regex_compile): Setup compiled code so that its multibyteness
19800 matches that of a target. Fix the handling of "[X-YZ]" using
19801 SETUP_MULTIBYTE_RANGE.
19802 (analyse_first) <charset>: For filling fastmap for all multibyte
19803 characters, don't check by BASE_LEADING_CODE_P.
19804 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19805 the same as RE_MULTIBYTE_P (bufp) now.
19806 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19807 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19808 (TRANSLATE_VIA_MULTIBYTE): New macro.
19809 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19810 It is the same as RE_MULTIBYTE_P (bufp) now.
19811 <exactn>: Translate via multibyte.
19812 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19813 translate it.
19814 <charset, charset_not>: Fetch a character by
19815 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19816 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19817 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19818 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19819 by GET_CHAR_AFTER.
19820 (bcmp_translate): Likewise.
19821
19822 * search.c (compile_pattern): Check the member target_multibyte,
19823 not the member multibyte of buf.
19824
19825 * lread.c (read1): While reading a string, set force_singlebyte
19826 and force_multibyte correctly.
19827
19828 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19829 up of unibyte_to_multibyte_table.
19830
198312008-02-01 Kenichi Handa <handa@m17n.org>
19832
19833 * coding.c (setup_coding_system): If coding has
19834 post-read-conversion or pre-write-conversion, set
19835 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19836 respectively.
19837 (decode_coding_gap): Run post-read-conversion if any.
19838
19839 * fileio.c (Finsert_file_contents): Even if we read into a
19840 unibyte buffer, check if we must decode the result or not.
19841
198422008-02-01 Kenichi Handa <handa@m17n.org>
19843
19844 * coding.c (make_conversion_work_buffer): Change the work buffer
19845 name to the same one as that of Emacs 21.
19846
198472008-02-01 Kenichi Handa <handa@m17n.org>
19848
19849 * coding.h (make_conversion_work_buffer): Adjust prototype.
19850 (code_conversion_restore): Don't extern it.
19851
19852 * coding.c (detected_mask): Delete unused variable.
19853 (decode_coding_iso_2022): Pay attention to the byte sequence of
19854 CTEXT extended segment, and retain those bytes as is.
19855 (decode_coding_ccl): Delete unused variable `valids'.
19856 (setup_coding_system): Delete unused variable `category'.
19857 (consume_chars): Delete unused variable `category'. Make it work
19858 for non-multibyte case.
19859 (make_conversion_work_buffer): Change argument.
19860 (saved_coding): Delete unused variable.
19861 (code_conversion_restore): Don't check saved_coding->destination.
19862 (code_conversion_save): New function.
19863 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19864 instead of record_unwind_protect.
19865 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19866 (detect_coding_system): Delete unused variable `mask'.
19867 (Fdefine_coding_system_internal): Delete unused variable id.
19868
19869 * fileio.c (kill_workbuf_unwind): New function.
19870 (Finsert_file_contents): On replacing, call
19871 make_conversion_work_buffer with correct args, and call
19872 record_unwind_protect with the first arg kill_workbuf_unwind.
19873
19874 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19875
198762008-02-01 Kenichi Handa <handa@m17n.org>
19877
19878 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19879 (fontset_add): Fix for the case that TO is less than TO1.
19880 (Ffontset_info): Don't use fallback fontset on checking the
19881 default fontset.
19882 (dump_fontset): New function for debugging.
19883
19884 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19885 coding_type is Qcharset.
19886
198872008-02-01 Kenichi Handa <handa@m17n.org>
19888
19889 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19890 (map_char_table): Don't inherit the value from the parent on
19891 initializing VAL. Adjust for the above change.
19892
198932008-02-01 Kenichi Handa <handa@m17n.org>
19894
19895 * coding.c (Qsignature, Qendian): Delete these variables.
19896 (syms_of_coding): Don't initialize them.
19897 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19898 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19899 detect_info->found.
19900 (decode_coding_utf_16): Don't detect BOM here.
19901 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19902 is NOT utf_16_without_bom.
19903 (setup_coding_system): For a coding system of type utf-16, check
19904 if the attribute :endian is Qbig or not (not nil or not), and set
19905 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19906 (detect_coding): If coding type is utf-16 and BOM detection is
19907 required, detect it.
19908 (Fdefine_coding_system_internal): For a coding system of type
19909 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19910
199112008-02-01 Kenichi Handa <handa@m17n.org>
19912
19913 * coding.c (coding_set_source): Fix for the case that the current
19914 buffer is different from coding->src_object.
19915 (decode_coding_object): Don't use the conversion work buffer if
19916 DST_OBJECT is a buffer.
19917
199182008-02-01 Dave Love <fx@gnu.org>
19919
19920 * lread.c (read_emacs_mule_char) [len==2]: Index
19921 emacs_mule_charset correctly.
19922
199232008-02-01 Dave Love <fx@gnu.org>
19924
19925 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19926 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19927 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19928 treated specially.)
19929 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19930 (detected_mask): Remove Big5 bits.
19931
199322008-02-01 Kenichi Handa <handa@m17n.org>
19933
19934 The following changes are to make the font rescaling facility
19935 compatible with Emacs 21.
19936
19937 * xfaces.c (Vface_font_rescale_alist): Rename from
19938 Vface_resizing_fonts.
19939 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19940 (font_rescale_ratio): Rename from font_resizing_ratio.
19941 (split_font_name): Set font->rescale_ratio.
19942 (better_font_p): Pay attention to font->rescale_ratio.
19943 (build_scalable_font_name): Likewise. Change RESX, and RESY
19944 fields.
19945 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19946
199472008-02-01 Kenichi Handa <handa@m17n.org>
19948
19949 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19950 (Qutf_16_le): Remove these variables.
19951 (syms_of_coding): Don't DEFSYM them.
19952 (decode_coding_utf_16): Fix handling of BOM.
19953 (encode_coding_utf_16): Fix handling of BOM.
19954
199552008-02-01 Kenichi Handa <handa@m17n.org>
19956
19957 * fileio.c (Finsert_file_contents): On replacing, before decoding
19958 the file into the work buffer, set point of the work buffer to the end.
19959
199602008-02-01 Dave Love <fx@gnu.org>
19961
19962 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19963
199642008-02-01 Dave Love <fx@gnu.org>
19965
19966 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19967 and fix C types.
19968
199692008-02-01 Kenichi Handa <handa@m17n.org>
19970
19971 * xdisp.c (SKIP_GLYPHS): New macro.
19972 (set_cursor_from_row): Pay attention to string display properties.
19973
19974 * category.c (copy_category_entry): Fix for the case that RANGE
19975 is an integer.
19976
19977 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19978
19979 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19980
199812008-02-01 Kenichi Handa <handa@m17n.org>
19982
19983 * charset.c (Fcharset_id_internal): New function.
19984 (syms_of_charset): Defsubr it.
19985
19986 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19987 with the last arg charset_list acquired from coding.
19988 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19989 the attribute coding_attr_ccl_valids.
19990
19991 * coding.h (enum define_coding_ccl_arg_index): Set the first
19992 member coding_arg_ccl_decoder to coding_arg_max.
19993
19994 * ccl.h (ccl_driver): Adjust prototype.
19995
19996 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
19997 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 19998 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
19999 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20000 last arg Qnil.
20001
200022008-02-01 Kenichi Handa <handa@m17n.org>
20003
20004 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20005 call encode_char.
20006
20007 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20008
200092008-02-01 Dave Love <fx@gnu.org>
20010
20011 * composite.c (syms_of_composite): Make composition_hash_table weak.
20012
200132008-02-01 Kenichi Handa <handa@m17n.org>
20014
20015 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20016 (font_name_registry): Don't extern them.
20017 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20018
20019 * fontset.h (Qfontset): Don't extern it.
20020 (new_fontset_from_font_name): Extern it.
20021
20022 * fontset.c: Give 8 extra slots to fontset objects.
20023 (Qfontset_info): New variable.
20024 (syms_of_fontset): Defsym it.
20025 (FONTSET_FALLBACK): New macro.
20026 (fontset_face): Try also the default fontset.
20027 (make_fontset): Realize a fallback fontset from the default fontset.
20028 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20029 using split_font_name_into_vector and build_font_name_from_vector.
20030 (Fset_fontset_font): Access the elements of font_spec by enum
20031 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20032 name by using split_font_name_into_vector.
20033 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20034 generate a proper font name from the fontset name. Update
20035 Vfontset_alias_alist.
20036 (n_auto_fontsets): New variable.
20037 (new_fontset_from_font_name): New function.
20038 (Ffont_info): Store the information about fonts generated from the
20039 default fontset in the first extra slot of the returned char-table.
20040
20041 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20042 (font_name_registry): Delete function.
20043 (split_font_name_into_vector): New function.
20044 (build_font_name_from_vector): New function.
20045 (font_list): The argument REGISTRY is now a list of registry names.
20046 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20047 specifies an explicit font name, return the name as is. Make a
20048 list of registy names.
20049
20050 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20051 of x_new_fontset.
20052 (Fx_create_frame): Don't call x_new_fontset here. Just use
20053 x_list_fonts to check the existence of fonts.
20054
20055 * xterm.h (x_new_fontset): Adjust prototype.
20056
20057 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20058 string. Use new_fontset_from_font_name to create a fontset from a
20059 font name.
20060
200612008-02-01 Kenichi Handa <handa@m17n.org>
20062
20063 * syntax.c (Vfind_word_boundary_function_table): New name for
20064 Vnext_word_boundary_function_table.
20065 (find-word-boundary-function-table): New name for
20066 next-word-boundary-function-table.
20067
200682008-02-01 Dave Love <fx@gnu.org>
20069
20070 * Makefile.in: Fix some dependencies.
20071
20072 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20073 set it to nil before returning.
20074
20075 * composite.c (update_compositions): Fix type error.
20076
20077 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20078
200792008-02-01 Kenichi Handa <handa@m17n.org>
20080
20081 * xterm.c (x_new_font): Optimize for the case that the font is
20082 already set for the frame.
20083
200842008-02-01 Kenichi Handa <handa@m17n.org>
20085
20086 * chartab.c (char_table_ascii): Check if the char table contents
20087 is sub-char-table or not.
20088 (char_table_set, char_table_set_range): Fix argument to
20089 char_table_ascii.
20090
20091 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20092 (detect_coding_utf_8, detect_coding_utf_16)
20093 (detect_coding_emacs_mule, detect_coding_iso_2022)
20094 (detect_coding_sjis, detect_coding_big5)
20095 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20096 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20097 sequence is valid in this coding system. Change callers.
20098 (MAX_ANNOTATION_LENGTH): New macro.
20099 (ADD_ANNOTATION_DATA): New macro.
20100 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20101 ADD_ANNOTATION_DATA. Change the format of annotation data.
20102 (ADD_CHARSET_DATA): New macro.
20103 (emacs_mule_char): New argument ID. Change callers.
20104 (decode_coding_emacs_mule, decode_coding_iso_2022)
20105 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20106 Produce charset annotation data in coding->charbuf.
20107 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20108 to charset annotation data in coding->charbuf.
20109 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20110 coding->common_flags if the coding system is iso-2022 based and
20111 uses designation.
20112 (produce_composition): Adjust for the new annotation data format.
20113 (produce_charset): New function.
20114 (produce_annotation): Handle charset annotation.
20115 (handle_composition_annotation, handle_charset_annotation): New
20116 functions.
20117 (consume_chars): Handle charset annotation. Utilize the above two
20118 functions.
20119 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20120 buffer, get the deleted text as a string and set
20121 coding->src_object to that string.
20122 (detect_coding, detect_coding_system): Use the new struct
20123 coding_detection_info.
20124
20125 * coding.h (struct coding_detection_info): New structure.
20126 (struct coding_system): Adjust prototype of the member `detector'.
20127 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20128
201292008-02-01 Kenichi Handa <handa@m17n.org>
20130
20131 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20132
201332008-02-01 Dave Love <fx@gnu.org>
20134
20135 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20136 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20137 to new local and nullify apropos_accumulate before returning.
20138 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20139
201402008-02-01 Kenichi Handa <handa@m17n.org>
20141
20142 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20143 correctly.
e3eea1fc 20144
aac0c6e3
MR
201452008-02-01 Dave Love <fx@gnu.org>
20146
20147 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20148
201492008-02-01 Kenichi Handa <handa@m17n.org>
20150
20151 The following changes are to make character composition happen
20152 automatically on displaying.
20153
20154 * Makefile.in (lisp, shortlisp): Add composite.elc.
20155
20156 * composite.h (Qauto_composed, Vauto_composition_function)
20157 (Qauto_composition_function): Extern them.
20158
20159 * composite.c (Vcomposition_function_table)
20160 (Qcomposition_function_table): Delete variables.
20161 (Qauto_composed, Vauto_composition_function)
20162 (Qauto_composition_function): New variables.
20163 (run_composition_function): Don't call
20164 compose-chars-after-function.
20165 (update_compositions): Clear `auto-composed' text property.
20166 (compose_chars_in_text): Delete this function.
20167 (syms_of_composite): Staticpro Qauto_composed and
20168 Qauto_composition_function. Declare Vauto_composition_function as
20169 a Lisp variable.
20170
20171 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20172
20173 * xdisp.c (it_props): Add an entry for Qauto_composed.
20174 (handle_auto_composed_prop): New function.
20175
20176 * xselect.c (selection_data_to_lisp_data): Don't call
20177 compose_chars_in_text.
20178
201792008-02-01 Dave Love <fx@gnu.org>
20180
20181 * keyboard.c (read_char): Modify checking around use of
20182 Vkeyboard_translate_table.
20183
20184 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20185 and fix C types.
20186
201872008-02-01 Kenichi Handa <handa@m17n.org>
20188
20189 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20190 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20191 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20192 the case that the last byte is '\r' correctly.
20193 (decode_coding): Flush out the unprocessed data correctly.
20194 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20195
201962008-02-01 Dave Love <fx@gnu.org>
20197
20198 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20199 Add XK_ISO... case.
20200 (xaw_scroll_callback): Revert last change.
20201
202022008-02-01 Kenichi Handa <handa@m17n.org>
20203
20204 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20205
202062008-02-01 Kenichi Handa <handa@m17n.org>
20207
20208 * xfaces.c (Vface_resizing_fonts): New variable.
20209 (struct font_name): New member `resizing_ratio'.
20210 (font_resizing_ratio): New function.
20211 (split_font_name): Set font->resizing_ratio.
20212 (better_font_p): Pay attention to font->resizing_ratio.
20213 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20214 RESX, and RESY fields.
20215 (try_alternative_families): Try scalable fonts if
20216 Vscalable_fonts_allowed is not Qt.
20217 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20218
202192008-02-01 Dave Love <fx@gnu.org>
20220
20221 * xterm.c (xaw_scroll_callback): Cast correctly.
20222
202232008-02-01 Dave Love <fx@gnu.org>
20224
20225 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20226 (lispy_kana_keys): Comment out.
20227 (make_lispy_event) [XK_kana_A]: Comment out.
20228
20229 * xterm.c (xaw_scroll_callback): Cast call_data.
20230 (XTread_socket): Deal with ASCII keysyms.
20231 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20232
202332008-02-01 Dave Love <fx@gnu.org>
20234
20235 * xterm.c (Vx_keysym_table): New.
20236 (syms_of_xterm): Initialize it.
20237 (XTread_socket): Use it.
20238 From head: Eliminate incorrect optimization that tried to avoid
20239 decoding the output of X*LookupString.
20240 (x_get_font_repertory): Delete charset declaration.
20241
202422008-02-01 Kenichi Handa <handa@m17n.org>
20243
20244 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20245 return 0.
20246 (Fdefine_coding_system_internal): Setup
20247 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20248
202492008-02-01 Dave Love <fx@gnu.org>
20250
20251 * coding.c (Fcheck_coding_system): Doc fix.
20252
20253 * editfns.c (Finsert_byte): Return a proper value.
20254
202552008-02-01 Kenichi Handa <handa@m17n.org>
20256
20257 * coding.c (decode_coding): Fix args to translate_chars. Pay
20258 attention to Vstandard_translation_table_for_decode.
20259 (encode_coding): Fix args to translate_chars. Pay attention to
20260 Vstandard_translation_table_for_encode.
20261
20262 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20263 SINGLE_BYTE_CHAR_P.
20264
20265 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20266 not by SINGLE_BYTE_CHAR_P.
20267
20268 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20269 SINGLE_BYTE_CHAR_P.
20270
20271 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20272 SINGLE_BYTE_CHAR_P.
20273
20274 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20275 by SINGLE_BYTE_CHAR_P.
20276
20277 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20278 SINGLE_BYTE_CHAR_P.
20279
202802008-02-01 Dave Love <fx@gnu.org>
20281
20282 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20283
202842008-02-01 Dave Love <fx@gnu.org>
20285
20286 * fns.c (Flanginfo): Fix typo.
20287
20288 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20289
202902008-02-01 Kenichi Handa <handa@m17n.org>
20291
20292 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20293 (detect_coding_emacs_mule, detect_coding_iso_2022)
20294 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20295 incomplete byte sequence. Don't update *mask when correctly detected.
20296 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20297 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20298 (detect_coding, detect_coding_system): Adjust for the changes above.
20299
203002008-02-01 Kenichi Handa <handa@m17n.org>
20301
20302 * character.c (char_string): Rename from
20303 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20304 (string_char): Rename from string_char.
20305
20306 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20307 if C is greater than MAX_3_BYTE_CHAR.
20308 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20309 string_char instead of string_char_with_unification.
20310
203112008-02-01 Dave Love <fx@gnu.org>
20312
20313 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20314
203152008-02-01 Kenichi Handa <handa@m17n.org>
20316
20317 * keymap.c (push_key_description): Pay attention to force_multibyte.
20318
20319 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20320
203212008-02-01 Dave Love <fx@gnu.org>
20322
20323 * charset.c (define_charset_internal): Rename `supprementary'.
20324
20325 * Makefile.in (lisp, shortlisp): Remove latin-N.
20326
203272008-02-01 Dave Love <fx@gnu.org>
20328
20329 * xfns.c (x_window, x_window): Use use_xim.
20330
20331 * xterm.c (use_xim): Initialize.
20332 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20333 (x_term_init): Maybe set use_xim.
20334
20335 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20336
203372008-02-01 Kenichi Handa <handa@m17n.org>
20338
20339 * search.c (search_buffer): Fix case-fold-search of multibyte
20340 characters.
20341 (boyer_moore): Rename the last argument to char_high_bits.
20342
203432008-02-01 Kenichi Handa <handa@m17n.org>
20344
20345 * xdisp.c (display_string): Fix for the case of zero width glyph.
20346
20347 * xfns.c (x_set_font): Change the error message of the case that
20348 x_new_fontset returns Qt.
20349
20350 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20351 (Finternal_set_lisp_face_attribute): Use signal_error for the
20352 error of invalid fontset.
20353
20354 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20355 fontset, return Qt.
20356
203572008-02-01 Dave Love <fx@gnu.org>
20358
20359 * unexelf.c (unexec): Make .got handling not SGI-specific.
20360
20361 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20362
20363 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20364
20365 * keyboard.c (read_key_sequence): Fix type error.
20366
20367 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20368 type error.
20369
20370 * fontset.c (fontset_add): Return Lisp_Object.
20371
203722008-02-01 Dave Love <fx@gnu.org>
20373
20374 * charset.h (charset_ordered_list_tick): Declare extern.
20375
203762008-02-01 Kenichi Handa <handa@m17n.org>
20377
20378 The following changes (and some of 2008-02-01 changes of mine) are
20379 for handling syntax, category, and case conversion for unibyte
20380 characters by converting them to multibyte on the fly. With these
20381 changes, we don't have to setup syntax and case tables for unibyte
20382 characters in each language environment.
20383
20384 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20385 multibyte if necessary.
20386
20387 * bytecode.c (Fbyte_code): Likewise.
20388
20389 * character.h (LEADING_CODE_LATIN_1_MIN)
20390 (LEADING_CODE_LATIN_1_MAX): New macros.
20391 (unibyte_to_multibyte_table): Extern it.
20392 (unibyte_char_to_multibyte): New macro.
20393 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20394 (CHAR_LEADING_CODE): New macro.
20395 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20396
20397 * character.c (unibyte_to_multibyte_table): New variable.
20398 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20399 (multibyte_char_to_unibyte): If C is an eight-bit character,
20400 convert it to the corresponding byte value.
20401
20402 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20403 not 1, signals an error. Update the elements of
20404 unibyte_to_multibyte_table.
20405 (init_charset_once): Initialize unibyte_to_multibyte_table.
20406 (syms_of_charset): Define the charset `iso-8859-1'.
20407
20408 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20409 as is without converting it to unibyte. In a unibyte buffer,
20410 convert C to multibyte before checking the syntax.
20411
20412 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20413
20414 * minibuf.c (Fminibuffer_complete_word): Use the macro
20415 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20416
20417 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20418
20419 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20420 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20421 that is zero, convert an eight-bit char to multibyte.
20422 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20423 non-emacs case.
20424 (PATFETCH): Convert an eight-bit char to multibyte.
20425 (HANDLE_UNIBYTE_RANGE): New macro.
20426 (regex_compile): Setup the compiled pattern for multibyte chars
20427 even if the given regex string is unibyte. Use PATFETCH_RAW
20428 instead of PATFETCH in many places. To handle `charset'
20429 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20430 only for ASCII chars.
20431 (analyse_first) <exactn>: Simplify because the compiled pattern
20432 is multibyte.
20433 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20434 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20435 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20436 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20437 multibyte always 1.
20438 (re_search_2): In emacs, set the locale variable multibyte to 1,
20439 otherwise to 0. New local variable target_multibyte. Check it
20440 to decide the multibyteness of STR1 and STR2. If
20441 target_multibyte is zero, convert unibyte chars to multibyte
20442 before translating and checking fastmap.
20443 (TARGET_CHAR_AND_LENGTH): New macro.
20444 (re_match_2_internal): In emacs, set the locale variable multibyte
20445 to 1, otherwise to 0. New local variable target_multibyte. Check
20446 it to decide the multibyteness of STR1 and STR2. Use
20447 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20448 <charset, charset_not>: If multibyte is nonzero, check fastmap
20449 only for ASCII chars. Call bcmp_translate with
20450 target_multibyte, not with multibyte.
20451 <begline>: Declare the local variable C as `unsigned'.
20452 (bcmp_translate): Change the last arg name to target_multibyte.
20453
20454 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20455 the regexp pattern and the matching target. Set cp->buf.multibyte
20456 to the multibyteness of the regexp pattern. Set
20457 cp->but.target_multibyte to the multibyteness of the matching target.
20458 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20459 FETCH_STRING_CHAR_ADVANCE.
20460 (Freplace_match): Convert unibyte chars to multibyte.
20461
20462 * syntax.c (char_quoted, back_comment, scan_words)
20463 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20464 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20465 unibyte chars to multibyte.
20466 (skip_chars): Delete the arg syntaxp, and move the code for
20467 handling syntaxes to skip_syntaxes. Change callers.
20468 Fix the case that the multibyteness of STRING and the current
20469 buffer doesn't match.
20470 (skip_syntaxes): New function.
20471 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20472 SINGLE_BYTE_CHAR_P.
20473
204742008-02-01 Kenichi Handa <handa@m17n.org>
20475
20476 * xfaces.c (QCfontset): New variable.
20477 (LFACE_FONTSET): New macro.
20478 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20479 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20480 (Finternal_set_lisp_face_attribute)
20481 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20482 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20483 check also LFACE_FONTSET_INDEX.
20484 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20485 attrs[LFACE_FONT_INDEX].
20486 (syms_of_xfaces): Intern and staticpro QCfontset.
20487
20488 * dispextern.h (enum lface_attribute_index): New member
20489 LFACE_FONTSET_INDEX.
20490
20491 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20492
204932008-02-01 Kenichi Handa <handa@m17n.org>
20494
20495 * coding.c (coding_set_destination): Fix coding->destination for
20496 the case converting a region.
20497 (encode_coding_utf_8): Encode eight-bit chars as single byte.
20498 (encode_coding_object): Fix coding->dst_pos and
20499 coding->dst_pos_byte for the case converting a region.
20500
20501 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
20502
20503 * character.h (BYTE8_STRING): New macro.
20504
20505 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
20506
205072008-02-01 Kenichi Handa <handa@m17n.org>
20508
20509 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
20510 characters by octal form.
20511
20512 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20513
20514 * buffer.h (_fetch_multibyte_char_len): Delete extern.
20515 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
20516 _fetch_multibyte_char_len.
20517 (FETCH_CHAR_AS_MULTIBYTE): New macro.
20518
20519 * casetab.c (set_canon, set_identity, shuffle): Simplify.
20520
20521 * casefiddle.c (casify_object): Simplify. Handle the case that
20522 the case conversion change the byte length.
20523 (casify_region): Likewise.
20524
20525 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
20526
20527 * character.c (_fetch_multibyte_char_len): Delete this variable.
20528 (syms_of_character): Setup Vprintable_chars.
20529
20530 * editfns.c (Fchar_equal): Fix for the unibyte case.
20531 (Finsert_byte): New function.
20532 (syms_of_editfns): Defsubr it.
20533
20534 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
20535 of direct code 0x3ffff.
20536
20537 * search.c (Freplace_match): Fix for the unibyte case.
20538
205392008-02-01 Kenichi Handa <handa@m17n.org>
20540
20541 * lread.c (safe_to_load_p): Fix the logic.
20542
20543 * syntax.c (scan_words): Don't treat characters belonging to
20544 different scripts as constituting a word.
20545
20546 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20547
20548 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20549
20550 * emacs.c (main): In the case of --unibyte, instead of aborting on
20551 finding non-empty buffer, make it unibyte.
20552
205532008-02-01 Kenichi Handa <handa@m17n.org>
20554
20555 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20556 to create a fontset.
20557
205582008-02-01 Dave Love <fx@gnu.org>
20559
20560 * character.c (Funibyte_char_to_multibyte): Doc fix.
20561
20562 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20563
205642008-02-01 Kenichi Handa <handa@m17n.org>
20565
20566 * fontset.c (fontset_add): Make the type `int'.
20567 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20568
20569 * character.c (unibyte_char_to_multibyte)
20570 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20571 charset_unibyte, not charset_primary.
20572
20573 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20574
20575 * charset.c (charset_unibyte): Rename from charset_primary.
20576 (Funibyte_charset): Rename from Fprimary_charset.
20577 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20578 (syms_of_charset): Adjust for the above changes.
20579
20580 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20581 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20582 it->multibyte_p is zero.
20583
20584 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20585 Delete extern.
20586
205872008-02-01 Kenichi Handa <handa@m17n.org>
20588
20589 * coding.c (Fdefine_coding_system_internal): Fix category setting
20590 for a coding system of type iso-2022.
20591
205922008-02-01 Kenichi Handa <handa@m17n.org>
20593
20594 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20595
205962008-02-01 Kenichi Handa <handa@m17n.org>
20597
20598 * syntax.c (Vnext_word_boundary_function_table): New variable.
20599 (next-word-boundary-function-table): Declare it as a Lisp variable
20600 in syms_of_syntax.
20601 (scan_words): Call functions in Vnext_word_boundary_function_table
20602 if any.
20603
20604 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20605
20606 * fontset.c (fs_load_font): If fontp->charset is not negative,
20607 return fontp without setting its members.
20608
206092008-02-01 Dave Love <fx@gnu.org>
20610
20611 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20612
20613 * m/sparc.h (HAVE_ALLOCA): Delete.
20614
20615 * s/irix6-5.h: Don't include strings.h.
20616 (bcopy, bzero, bcmp): Don't undef.
20617
20618 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20619
20620 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20621 (TIOCSIGSEND): Don't test IRIX6.
20622 (bcopy, bzero, bcmp): Define conditionally.
20623
206242008-02-01 Kenichi Handa <handa@m17n.org>
20625
20626 * buffer.c (Qas, Qmake, Qto): New variables.
20627 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20628 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20629
20630 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20631 we are inserting a process output into a multibyte buffer.
20632
20633 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20634 multibyte_char_to_unibyte.
20635
20636 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20637 by the primary charset, make it eight-bit char.
20638 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20639
20640 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
20641 (charset_8_bit__control, charset_8_bit_graphic)
20642 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
20643 (define_charset_internal): New function.
20644 (syms_of_charset): Call define_charset_internal for pre-defined
20645 charsets.
20646
20647 * charset.h (charset_8_bit): Extern it.
20648
20649 * coding.c (make_conversion_work_buffer): Adjust for the change
20650 of Fset_buffer_multibyte.
20651 (encode_coding_raw_text): Increment p0 in the loop.
20652
20653 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
20654
20655 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
20656 for the change of Fset_buffer_multibyte.
20657
20658 * fns.c (Fstring_to_multibyte): New function.
20659 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
20660
206612008-02-01 Dave Love <fx@gnu.org>
20662
20663 * xfns.c (x_put_x_image): Declare args.
20664
20665 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
20666 (try_font_list): Declare an arg.
20667
20668 * xdisp.c (message2_nolog, set_message): Declare an arg.
20669
20670 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
20671
20672 * syntax.c (scan_sexps_forward): Declare an arg.
20673
20674 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20675 Declare an arg.
20676
20677 * lisp.h (Fnew_fontset): Declare.
20678
20679 * keymap.c (push_key_description): Call CHARACTERP correctly.
20680
20681 * fontset.c (fontset_add): Declare args. Call make_number correctly.
20682 (face_for_char): Delete unused vars.
20683 (Fset_fontset_font): Doc fix. Delete unused vars.
20684
20685 * doc.c (Fsubstitute_command_keys): Delete unused vars.
20686
20687 * composite.c (update_compositions): Declare arg.
20688
20689 * cm.c (calccost, cmgoto): Declare args.
20690
20691 * charset.c: Remove `emacs' conditional. Doc fixes.
20692 (map_char_table_for_charset): Declare.
20693
20694 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
20695
20696 * ccl.c: Remove `emacs' conditional.
20697
206982008-02-01 Kenichi Handa <handa@m17n.org>
20699
20700 The following changes are to allow specifying multiple font
20701 patterns for a character range (specified by script or charset).
20702
20703 * Makefile.in (abbrev.o): Depend on syntax.h.
20704 (xfaces.o): Depend on charset.h.
20705
20706 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
20707 SINGLE_BYTE_CHAR_P.
20708
20709 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
20710
20711 * character.h (Vchar_script_table): Extern it.
20712
20713 * character.c (Vscript_alist): Delete.
20714 (Vchar_script_table, Qchar_script_table): New variable.
20715 (syms_of_character): Declare Vchar_script_table as a lisp variable
20716 and initialize it.
20717
20718 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
20719 have property char-table-extra-slots, make no extra slot.
20720
20721 * dispextern.h (struct face): Delete member `charset'.
20722 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
20723 SINGLE_BYTE_CHAR_P.
20724 (choose_face_font, lookup_non_ascii_face, font_name_registry):
20725 Add prototypes.
20726 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
20727 (generate_ascii_font_name): Rename from generate_ascii_font.
20728
20729 * fontset.h (get_font_repertory_func): New prototype.
20730 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
20731 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
20732
20733 * fontset.c (Qprepend, Qappend): New variables.
20734 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
20735 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
20736 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
20737 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
20738 (fontset_ref_and_range, fontset_add, reorder_font_vector)
20739 (load_font_get_repertory): New functions.
20740 (fontset_set): Delete.
20741 (fontset_face): New arg FACE. Return face ID, not face.
20742 Complete re-write to handle new fontset structure. Change caller.
20743 (free_face_fontset): Use ASET istead of AREF (X) = Y.
20744 (face_for_char): Don't call lookup_face.
20745 (make_fontset_for_ascii_face): New arg FACE.
20746 (fs_load_font): New arg CHARSET_ID. Don't check
20747 Vfont_encoding_alist here.
20748 (find_font_encoding): New function.
20749 (list_fontsets): Use STRINGP, not ! NILP.
20750 (accumulate_script_ranges): New function.
20751 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
20752 re-written to handle new fontset structure.
20753 (Ffontset_font): Return a copy of element.
20754 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
20755 docstring of font-encoding-alist.
20756
20757 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
20758 (Fset_fotset_font): Fix arguments to 5.
20759
20760 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
20761
20762 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
20763 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20764 (highlight_trailing_whitespace): Adjust for the change of
20765 lookup_named_face.
20766
20767 * xfaces.c: Include charset.h.
20768 (load_face_font): Delete argument C. Change caller.
20769 (generate_ascii_font_name): Rename from generate_ascii_font.
20770 (font_name_registry): New function.
20771 (cache_face): Store ascii faces before non-ascii faces in buckets.
20772 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
20773 Lookup only ascii faces.
20774 (lookup_non_ascii_face): New function.
20775 (lookup_named_face): Delete argument C. Change caller.
20776 (lookup_derived_face): Delete argument C. Change caller.
20777 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
20778 a string, just call font_list with it.
20779 (choose_face_font): Delete arguments FACE and C. New arg
20780 FONT_SPEC. Change caller.
20781 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
20782 Change caller.
20783 (realize_non_ascii_face): New function.
20784 (realize_x_face): Call load_face_font here.
20785 (realize_tty_face): Delete argument C. Change caller.
20786 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
20787 get a face ID.
20788 (dump_realized_face): Don't print charset of FACE.
20789
20790 * xfns.c (x_set_font): Always call x_new_fontset and
20791 store_frame_parameter.
20792 (Fx_create_frame): Call x_new_fontset, not x_new_font.
20793 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
20794
20795 * xterm.h (x_get_font_repertory): Extern it.
20796
20797 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20798 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20799 it->multibyte_p is zero.
20800 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20801 (x_new_fontset): If FONTSETNAME doesn't match any existing
20802 fontsets, create a new one.
20803 (x_get_font_repertory): New function.
20804
208052008-02-01 Kenichi Handa <handa@m17n.org>
20806
20807 * coding.c (Ffind_coding_systems_region_internal): Detect an
20808 ASCII only string correctly.
20809
20810 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20811 version is 0.
20812
208132008-02-01 Kenichi Handa <handa@m17n.org>
20814
20815 * lread.c: Include "coding.h".
20816 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20817 (load_each_byte, unread_char): New variables.
20818 (readchar_backlog): Delete.
20819 (readchar): Return a character unless load_each_byte is nonzero.
20820 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20821 cons. If unread_char is not -1, simply return it.
20822 (unreadchar): Handle the case that readcharfun is
20823 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20824 (read_multibyte): Delete.
20825 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20826 (read_emacs_mule_char): New functions.
20827 (Fload): Even if the file doesn't have the extension ".elc", if
20828 safe_to_load_p returns a positive version number, assume that the
20829 file contains bytecompiled code. If the version is less than 22,
20830 load the file while decoding multibyte sequences by emacs-mule.
20831 (readevalloop): Don't use readchar_backlog.
20832 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20833 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20834 (read_escape): Delete the arg BYTEREP.
20835 (read1): Set load_each_byte to 1 temporarily while handling
20836 #@NUMBER. Don't call read_multibyte.
20837 (read_vector): Call Fread with a cons. If readcharfun is
20838 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20839 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20840 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20841 and Qload_force_doc_strings.
20842
208432008-02-01 Kenichi Handa <handa@m17n.org>
20844
20845 * xdisp.c (face_before_or_after_it_pos): Call
20846 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20847
208482008-02-01 Kenichi Handa <handa@m17n.org>
20849
20850 * character.h (TRAILING_CODE_P): New macro.
20851 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20852 (string_char_with_unification): Fix prototype.
20853 (Vscript_alist): Extern it.
20854
20855 * character.c (Vscript_alist): New variable.
20856 (string_char_with_unification, str_as_unibyte)
20857 (string_escape_byte8): Add `const' to local variables.
20858 (syms_of_character): Declare script-alist as a Lisp variable.
20859
20860 * charset.h (Vcharset_ordered_list): Extern it.
20861 (charset_ordered_list_tick): Extern it.
20862 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20863 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20864 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20865 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20866 (Funify_charset): Adjust for the change of Funify_charset.
20867
20868 * charset.c (charset_ordered_list_tick): New variable.
20869 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20870 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20871 deunify intead of unify a charset.
20872 (string_xstring_p): Add `const' to local variables.
20873 (find_charsets_in_text): Add `const' to arguments and local variables.
20874 (encode_char): Adjust for the change of Funify_charset. Fix
20875 detecting of invalid code.
20876 (Fset_charset_priority): Increment charset_ordered_list_tick.
20877 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20878 and TO_CODE.
20879
20880 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20881 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20882 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20883 (decode_coding_ccl, consume_chars)
20884 (Ffind_coding_systems_region_internal)
20885 (Fcheck_coding_systems_region): Add `const' to local variables.
20886
20887 * print.c (print_object): Use octal form for printing the
20888 contents of a bool vector.
20889
208902008-02-01 Dave Love <fx@gnu.org>
20891
20892 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20893 <version == 20>: Refuse to load.
20894
208952008-02-01 Dave Love <fx@gnu.org>
20896
20897 * fns.c: Move coding.h.
20898 (Qcodeset, Qdays, Qmonths): New.
20899 (concat): Use CHARACTERP instead of INTEGERP.
20900 (Flocale_codeset): Delete.
20901 (Flanginfo): New function.
20902 (syms_of_fns): Change accordingly.
20903
20904 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20905
209062008-02-01 Dave Love <fx@gnu.org>
20907
20908 * casetab.c (init_casetab_once, init_casetab_once): Fix
20909 CHAR_TABLE_SET call.
20910
20911 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20912
20913 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20914
20915 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20916 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20917 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20918
20919 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20920
20921 * coding.c (ENCODE_DESIGNATION, decode_eol)
20922 (make_conversion_work_buffer, code_conversion_restore)
20923 (Fdefine_coding_system_internal): Convert Lisp types.
20924 (code_conversion_restore): Use EQ, not ==.
20925 (Fencode_coding_string): Fix code_convert_string call.
20926
20927 * coding.h (code_convert_region): Fix prototype.
20928
20929 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20930
20931 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20932 (Ffontset_info): Convert Lisp types.
20933
20934 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20935
20936 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20937
20938 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20939
20940 * chartab.c: Include "...h", not <...h> in some cases.
20941
20942 * callproc.c (Fcall_process): Remove unused variables.
20943
209442008-02-01 Dave Love <fx@gnu.org>
20945
20946 * coding.c (Fset_coding_system_priority): Allow null arg list.
20947
209482008-02-01 Dave Love <fx@gnu.org>
20949
20950 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20951 (Fself_insert_and_exit): Use CHARACTERP.
20952
20953 * callproc.c (Fcall_process): Remove unused vars.
20954
20955 * xterm.c (XTread_socket): Add extra dead keysyms.
20956
20957 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20958
20959 * dispextern.h: Remove prototypes for redraw_frame,
20960 redraw_garbaged_frames.
20961
20962 * cmds.c (Fself_insert_command): Use CHARACTERP.
20963
20964 * chartab.c (make_sub_char_table): Remove unused var.
20965 (Fset_char_table_default, Fmap_char_table): Doc fix.
20966
20967 * keymap.c (access_keymap): Remove generic char code.
20968 (push_key_description): Use CHARACTERP.
20969
209702008-02-01 Dave Love <fx@gnu.org>
20971
20972 * charset.c: Doc fixes.
20973 (Funify_charset): Extra checking.
20974
209752008-02-01 Dave Love <fx@gnu.org>
20976
20977 * lread.c: Remove some unused variables.
20978 (safe_to_load_p): If safe, return the magic number version byte.
20979 (Fload): Maybe use load-with-code-conversion.
20980
209812008-02-01 Kenichi Handa <handa@m17n.org>
20982
20983 * category.c (Fmodify_category_entry): Don't modify the contents
20984 of category_set for characters out of the range. Avoid
20985 unnecessary modification.
20986
20987 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20988 Vchar_unify_table. The default value of the table is now nil.
20989
20990 * character.c (syms_of_character): Setup Vchar_width_table for
20991 eight-bit-control and raw-byte chars.
20992
20993 * charset.h (enum define_charset_arg_index): Delete
20994 charset_arg_parents and add charset_arg_subset and
20995 charset_arg_superset.
20996 (enum charset_attr_index): Delete charset_parents and add
20997 charset_subset and charset_superset.
20998 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
20999 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21000 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21001 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21002 (CHARSET_SUPERSET): New macros.
21003 (charset_work): Extern it.
21004 (ENCODE_CHAR): Use charset_work.
21005 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21006 (map_charset_chars): Extern it.
21007
21008 * charset.c (load_charset_map): Set the default value of encoder
21009 and deunifier char-tables to nil.
21010 (map_charset_chars): Change argument. Change callers. Use
21011 map_char_table_for_charset instead of map_char_table.
21012 (Fmap_charset_chars): New optional args from_code and to_code.
21013 (Fdefine_charset_internal): Adjust for the change of
21014 `define-charset' (:parents -> :subset or :superset).
21015 (charset_work): New variable.
21016 (encode_char, syms_of_charset): Adjust for the change of
21017 Fdefine_charset_internal.
21018 (Ffind_charset_string): Setup the vector `charsets' correctly.
21019
21020 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21021 the previous change.
21022 (char_table_ref_and_range): Adjust for the above change.
21023 (map_sub_char_table_for_charset): New function.
21024 (map_char_table_for_charset): New function.
21025
21026 * keymap.c (describe_vector): Handle a char-table directly here.
21027 (describe_char_table): Delete.
21028
21029 * lisp.h (map_charset_chars): Delete.
21030
210312008-02-01 Dave Love <fx@gnu.org>
21032
21033 * fns.c (count_combining): Comment out (unused).
21034 (Flocale_codeset): New.
21035 (syms_of_fns): Defsubr it.
21036
21037 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21038 (size_t): Remove.
21039
210402008-02-01 Dave Love <fx@gnu.org>
21041
21042 * Makefile.in (chartab.o): Depend on charset.h.
21043
210442008-02-01 Kenichi Handa <handa@m17n.org>
21045
21046 * character.c (syms_of_character): Set the default value of
21047 Vprintable_chars to Qnil.
21048
210492008-02-01 Dave Love <fx@gnu.org>
21050
21051 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21052
210532008-02-01 Kenichi Handa <handa@m17n.org>
21054
21055 * charset.c (load_charset_map): Handle the case that from < to
21056 correctly.
21057
21058 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21059 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21060 Pay attention to raw-8-bit chars.
21061
210622008-02-01 Kenichi Handa <handa@m17n.org>
21063
21064 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21065 It is not bytecompiled now.
21066
21067 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21068 (charset_jisx0208): New variables.
21069 (Fdefine_charset_internal): Setup them if appropriate.
21070 (init_charset_once): Initialize them to -1.
21071
21072 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21073 (charset_jisx0208): Extern them.
21074
21075 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21076 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21077 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21078 (setup_iso_safe_charsets): Fix arguments to Fassq.
21079 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21080 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21081 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21082 (encode_coding_iso_2022): Change the 1st arg to
21083 ENCODE_ISO_CHARACTER to a variable.
21084
210852008-02-01 Kenichi Handa <handa@m17n.org>
21086
21087 * charset.h (enum define_charset_arg_index): New enums
21088 charset_arg_min_code and charset_arg_max_code.
21089 (struct charset): New member char_index_offset.
21090
21091 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21092 Take charset->char_index_offset into account.
21093 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21094 args[charset_arg_max_code]. Setup charset.char_index_offset.
21095 (syms_of_charset): Fix args to Fdefine_charset_internal.
21096
210972008-02-01 Dave Love <fx@gnu.org>
21098
21099 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21100
211012008-02-01 Dave Love <fx@gnu.org>
21102
21103 * coding.c: Doc fixes.
21104 (Fcoding_system_aliases): Fix return value.
21105 (Qmac): Remove (duplicated) definition.
21106
211072008-02-01 Dave Love <fx@gnu.org>
21108
362654a6
JB
21109 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21110 New functions.
aac0c6e3
MR
21111
21112 * character.c (Fstring): Doc fix.
21113
21114 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21115
362654a6 21116 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21117 (font-encoding-alist): Doc fix.
21118
211192008-02-01 Dave Love <fx@gnu.org>
21120
21121 * term.c (costs_set): Declare static, non-initialized for pcc.
21122 (encode_terminal_code): Remove unused var.
21123
21124 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21125 for K&R.
21126
21127 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21128
21129 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21130 (suffixes): Move out of make_subsidiaries for K&R.
21131
21132 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21133
21134 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21135
211362008-02-01 Dave Love <fx@gnu.org>
21137
21138 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21139
21140 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21141
211422008-02-01 Yong Lu <lyongu@asia-infonet.com>
21143
21144 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21145
21146 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21147
211482008-02-01 Kenichi Handa <handa@m17n.org>
21149
21150 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21151 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21152
211532008-02-01 Kenichi Handa <handa@m17n.org>
21154
21155 * coding.c (decode_coding_charset): Adjust for the change of
21156 Fdefine_coding_system_internal.
21157 (Fdefine_coding_system_internal): For a coding system of
21158 `charset' type, store a list of charset IDs in
21159 `charset_attr_charset_valids' element of coding attributes.
21160
211612008-02-01 Kenichi Handa <handa@m17n.org>
21162
21163 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21164 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21165 caller. Handle 2-byte and 3-byte charsets correctly.
21166 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21167 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21168 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21169 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21170 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21171 sequence.
21172 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21173 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21174 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21175 and alt&rule composition.
21176 (decode_coding_iso_2022): Handle composition correctly.
21177 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21178
21179 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21180 re-defining a charset. If the charset has :emacs-mule-id, setup
21181 emacs_mule_bytes.
21182 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21183
211842008-02-01 Kenichi Handa <handa@m17n.org>
21185
21186 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21187 (encode_coding_big5, encode_coding_charset): If coding requires safe
21188 encoding, produce a character specified by
21189 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21190
211912008-02-01 Dave Love <fx@gnu.org>
21192
21193 * xterm.c (XSetIMValues): Declare.
21194
21195 * process.c: Conditionally include sys/wait.h, pty.h.
21196
21197 * print.c (print_object): Fix print format for 64-bit systems.
21198
21199 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21200
21201 * buffer.c (emacs_strerror): Declare.
21202
21203 * fontset.c (Fclear_face_cache): Declare.
21204 (accumulate_font_info): Comment-out (unused).
21205 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21206 variables.
21207
21208 * character.h (string_escape_byte8): Declare.
21209
21210 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21211 unused vars.
21212 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21213 (Fmap_charset_chars): Doc fix.
21214
21215 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21216 (Fset_coding_system_priority, Fset_coding_system_priority)
21217 (Fdefine_coding_system_internal): Doc fix.
21218
212192008-02-01 Dave Love <fx@gnu.org>
21220
21221 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21222
212232008-02-01 Kenichi Handa <handa@m17n.org>
21224
21225 * character.c (string_escape_byte8): Make multibyte string with
21226 correct size.
21227
21228 * charset.c (Fmake_char): Delete unnecessary code.
21229
212302008-02-01 Kenichi Handa <handa@m17n.org>
21231
21232 * xfns.c (x_encode_text): Allocate coding.destination here, and
21233 call encode_coding_object with dst_object Qnil.
21234
21235 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21236 multibyte form correctly.
21237
21238 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21239 against Vfont_encoding_alist.
21240
21241 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21242 handling of charset list.
21243 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21244 (decode_coding_object): Move point to coding->dst_pos before
21245 calling post-read-conversion function.
21246 (encode_coding_object): Give correct arguments to
21247 pre-write-conversion. Ignore the return value of
21248 pre-write-conversion function. Pay attention to the case that
21249 pre-write-conversion changes the current buffer. If dst_object is
21250 Qt, even if coding->src_bytes is zero, allocate at least one byte
21251 to coding->destination.
21252
21253 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21254
21255 * charset.c (Fmake_char): Make it more backward compatible.
21256 (Fmap_charset_chars): Fix docstring.
21257
212582008-02-01 Dave Love <fx@gnu.org>
21259
21260 * coding.c: Doc fixes.
21261 (Fdefine_coding_system_alias): Use names, not symbols, in
21262 coding-system-alist.
21263
212642008-02-01 Kenichi Handa <handa@m17n.org>
21265
21266 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21267 of calling free_realized_face.
21268
212692008-02-01 Yong Lu <lyongu@asia-infonet.com>
21270
21271 * charset.c (read_hex): Don't treat SPC as a comment starter.
21272 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21273 (Fdecode_char): Fix typo.
21274
212752008-02-01 Kenichi Handa <handa@m17n.org>
21276
21277 * charset.h (struct charset): New member `code_space_mask'.
21278
21279 * coding.c (coding_set_source): Delete the local variable beg_byte.
21280 (encode_coding_charset, Fdefine_coding_system_internal):
21281 Delete the local variable charset.
21282 (Fdefine_coding_system_internal): Setup
21283 attrs[coding_attr_charset_valids] correctly.
21284
21285 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21286 member to check if CODE is valid or not.
21287 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21288 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21289 is within the range of charset->min_code and carset->max_code.
21290
212912008-02-01 Dave Love <fx@gnu.org>
21292
21293 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21294
21295 * dispextern.h (generate_ascii_font): Fix return type.
21296
21297 * xfaces.c (generate_ascii_font): Fix arg declaration.
21298
21299 * coding.c (coding_inherit_eol_type)
21300 (Fset_terminal_coding_system_internal)
21301 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21302
213032008-02-01 Kenichi Handa <handa@m17n.org>
21304
21305 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21306 multiple charsets correctly.
21307
213082008-02-01 Kenichi Handa <handa@m17n.org>
21309
21310 * search.c (boyer_moore): Fix handling of multibyte character
21311 translation.
21312
21313 * xdisp.c (display_mode_element): When the variable `elt' is
21314 changed, update `this' and `lisp_string'.
21315
213162008-02-01 Kenichi Handa <handa@m17n.org>
21317
21318 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21319
21320 * callproc.c (Fcall_process): Be sure to give the current buffer
21321 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21322
21323 * charset.c (struct charset_map_entries): New struct.
21324 (load_charset_map): Rename from parse_charset_map. New args
21325 entries and n_entries. Change caller.
21326 (load_charset_map_from_file): Rename from load_charset_map.
21327 Change caller. New arg control_flag. Call load_charset_map at
21328 the tail.
21329 (load_charset_map_from_vector): New function.
21330 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21331 (encode_char): If the charset is compact, change a character index
21332 to a code point.
21333
21334 * coding.c (coding_alloc_by_making_gap): Check the case that the
21335 source and destination are the same correctly.
21336 (decode_coding_raw_text): Set coding->consumed_char and
21337 coding->consumed to 0.
21338 (produce_chars): If coding->chars_at_source is nonzero, update
21339 coding->consumed_char and coding->consumed before calling
21340 alloc_destination.
21341 (Fdefine_coding_system_alias): Register ALIAS in
21342 Vcoding_system_alist.
21343 (syms_of_coding): Define `no-conversion' coding system at the tail.
21344
21345 * fileio.c (Finsert_file_contents): Set coding_system instead of
21346 val. If the current buffer is multibyte, always call
21347 decode_coding_gap.
21348
21349 * xfaces.c (try_font_list): Give higher priority to fontset's
21350 family than face's family.
21351
213522008-02-01 Kenichi Handa <handa@m17n.org>
21353
21354 * callproc.c (Fcall_process): Be sure to give the current buffer
21355 to decode_coding_c_string.
21356
21357 * xfaces.c (try_font_list): Give a family specified in a fontset
21358 higher priority than a family specified in a face.
21359
213602008-02-01 Kenichi Handa <handa@m17n.org>
21361
21362 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21363 Fix arguments to insert_from_buffer.
21364
21365 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21366
213672008-02-01 Kenichi Handa <handa@m17n.org>
21368
21369 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21370 (decode_coding_gap): Set coding->dst_multibyte correctly.
21371
213722008-02-01 Kenichi Handa <handa@m17n.org>
21373
21374 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21375 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21376 (encode_coding_utf_16): Substitute coding->default_char for
21377 non-Unicode characters.
21378 (decode_coding): Don't call record_insert here.
21379 (setup_coding_system): Initialize `surrogate' of
21380 coding->spec.utf_16 to 0.
21381 (EMIT_ONE_BYTE): Fix for multibyte case.
21382
21383 * insdel.c (insert_from_gap): Call record_insert.
21384
213852008-02-01 Kenichi Handa <handa@m17n.org>
21386
21387 * casefiddle.c (casify_region): Fix multibyte case.
21388
21389 * character.c (c_string_width): Add return type `int'.
21390 (char_string_with_unification): Delete arg ADVANCED.
21391
21392 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21393 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21394 (CHAR_STRING_ADVANCE): Make it do-while statement.
21395
21396 * chartab.c (sub_char_table_set_range): Optimize for the case
21397 DEPTH == 3. Add workaround code for a GCC optimization bug.
21398
21399 * charset.c (parse_charset_map): Remove an unused variable.
21400
21401 * coding.c: Delete unused variables.
21402
21403 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21404 earlier. If inserted is zero and the coding system doesn't
21405 require flushing, don't call decode_coding_gap.
21406
21407 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21408
214092008-02-01 Kenichi Handa <handa@m17n.org>
21410
21411 The following changes are for using Unicode as an internal
21412 character model, and use UTF-8 format for buffer/string
21413 representation.
21414
21415 * .gdbinit (xchartable): Adjust for the change of char table structure.
21416 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21417
21418 * Makefile.in (obj): Add character.o and chartab.o.
21419 (lisp, shortlisp): Remove utf-8.elc.
21420 (*.o): For many files, change dependency on charset.h to
21421 character.h, and add dependency on character.h.
21422 (character.o, chartab.o): New targets.
21423
21424 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21425 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21426 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21427 of "charset.h".
21428
21429 * dired.c, filelock.c: Include "character.h".
21430
21431 * alloc.c: Include "character.h" instead of "charset.h".
21432 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21433 (syms_of_alloc): Remove defsubr for Smake_char_table.
21434
21435 * buffer.c: Include "character.h" instead of "charset.h", don't
21436 include "coding.h".
21437 (Fset_buffer_multibyte): Adjust for UTF-8.
21438
21439 * buffer.h: EXFUN Fbuffer_live_p.
21440
21441 * callproc.c: Include "character.h" instead of "charset.h".
21442 (Fcall_process): Big change for the new code-conversion APIs.
21443
21444 * casetab.c: Include "character.h" instead of "charset.h".
21445 (set_canon, set_identity, shuffle): Adjust for the new
21446 map_char_table spec.
21447 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21448 accessing the char table structure.
21449
21450 * chartab.c: New file that implements char table.
21451
21452 * category.c: Include "character.h".
21453 (copy_category_entry): New function.
21454 (copy_category_table): Call map_char_table and copy_category_entry.
21455 (Fmake_category_table): Initialize all top-level slots.
21456 (char_category_set): New function.
21457 (modify_lower_category_set): Delete.
21458 (Fmodify_category_entry): Call char_table_ref_and_range.
21459
21460 * category.h (CATEGORY_SET): Just call char_category_set.
21461
21462 * ccl.c: Include "character.h".
21463 (Qccl, Qcclp): New variables.
21464 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21465 it's less than 256.
21466 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21467 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21468 and DST type.
21469 (ccl_driver): Change types of argument, adjust code accordingly.
21470 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21471 ccl_driver.
21472 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21473
21474 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21475 New members src_multibyte, dst_multibyte, consumed, and produced.
21476 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21477 (CODING_SPEC_CCL_PROGRAM): New macro.
21478 (ccl_driver): Update prototype.
21479 (Qccl, Qcclp, Fccl_program_p): Extern them.
21480 (CHECK_CCL_PROGRAM): New macro.
21481
21482 * character.c, character.h, chartab.c: New files.
21483
21484 * charset.c: Mostly re-written. Move character and multibyte sequence
21485 handling codes to character.c.
21486
21487 * charset.h: Mostly re-written. Move character and multibyte sequence
21488 handling codes to character.h.
21489
21490 * coding.c, coding.h: Mostly re-written.
21491
21492 * composite.c: Include "character.h" instead of "charset.h".
21493 (CHAR_WIDTH): Move to character.h.
21494 (HASH_KEY, HASH_VALUE): Delete.
21495
21496 * composite.h (enum composition_method): Change order of enumeration
21497 symbols.
21498
21499 * data.c: Include "character.h" instead of "charset.h".
21500 (Faref): Call CHAR_TABLE_REF for a char table.
21501 (Faset): Call CHAR_TABLE_SET for a char table.
21502
21503 * dispextern.h (free_realized_face, check_face_attribytes)
21504 (generate_ascii_font): Extern them.
21505 (free_realized_multibyte_face): Delete extern.
21506
21507 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
21508 table structure.
21509
21510 * editfns.c: Include "character.h" instead of "charset.h".
21511 (Fchar_to_string): Always call CHAR_STRING.
21512
21513 * emacs.c (main): Call init_charset_once, init_charset,
21514 syms_of_chartab, and syms_of_character.
21515
21516 * fileio.c: Include "character.h" instead of "charset.h".
21517 (Finsert_file_contents): Big change for the new code-conversion API.
21518 (choose_write_coding_system, Fwrite_region): Likewise.
21519 (build_annotations_2): Delete.
21520 (e_write): Big change for the new code-conversion API.
21521
21522 * fns.c: Include "character.h" instead of "charset.h".
21523 (copy_sub_char_table): Move to chartab.c.
21524 (Fcopy_sequence): Call copy_char_table for a char table.
21525 (concat): Delete codes calling count_multibyte.
21526 (string_char_to_byte, string_byte_to_char): Adjust for the new
21527 multibyte form.
21528 (internal_equal): Adjust for the change of char table structure.
21529 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
21530 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
21531 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
21532 (char_table_translate, optimize_sub_char_table)
21533 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
21534 chartab.c.
21535 (char_table_ref_and_index): Delete.
21536 (HASH_KEY, HASH_VALUE): Move to lisp.h.
21537 (Fmd5): Call preferred_coding_system instead of accessing
21538 Vcoding_category_list. Adjust for the new code-conversion API.
21539 (syms_of_fns): Move defsubr for char table related functions to
21540 chartab.c.
21541
21542 * fontset.c: Mostly re-written.
21543
21544 * fontset.h (struct font_info): Change type of the member encoding_type.
21545 (enum FONT_SPEC_INDEX): New enum.
21546 (fontset_font_pattern, fs_load_font): Update prototype.
21547 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21548
21549 * indent.c: Include "character.h" instead of "charset.h".
21550 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21551
21552 * insdel.c: Include "character.h" instead of "charset.h".
21553 (copy_text): Don't refer to Vnonascii_translation_table.
21554 (insert_from_gap): New function.
21555
21556 * keyboard.c: Include "character.h" instead of "charset.h".
21557 (command_loop_1): Never call direct_output_forward_char before
21558 a non-ASCII character.
21559 (read_char): If Vkeyboard_translate_table is a char table, always
21560 translate a character.
21561
21562 * keymap.c: Include "character.h".
21563 (store_in_keymap): Handle the case that IDX is a cons.
21564 (Fdefine_key): Handle the case that KEY is a cons and the car part
21565 is also a cons (range).
21566 (push_key_description): Adjust for the new character code.
21567 (describe_vector): Call describe_char_table for a char table.
21568 (describe_char_table): New function.
21569
21570 * keymap.h (describe_char_table): Extern it.
21571
21572 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21573 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21574 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21575 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21576 Delete.
21577 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21578 structure.
21579 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21580 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21581 (CHARTAB_SIZE_BITS_3): New macros.
21582 (chartab_size): Extern it.
21583 (struct Lisp_Char_Table): Re-design.
21584 (struct Lisp_Sub_Char_Table): New structure.
21585 (HASH_KEY, HASH_VALUE): Move from fns.c.
21586 (CHARACTERBITS): Define as 22.
21587 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21588 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21589 (GC_SUB_CHAR_TABLE_P): New macro.
21590 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21591 (code_convert_string_norecord): Deleted extern.
21592 (init_character_once, syms_of_character, init_charset)
21593 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21594
21595 * lread.c: Include "character.h".
21596 (read_multibyte): New arg NBYTES.
21597 (read_escape): Change the meaning of returned *BYTEREP.
21598 (to_multibyte): Delete.
21599 (read1): Adjust the handling of char table and string.
21600
21601 * print.c: Include "character.h" instead of "charset.h".
21602 (print_string): Convert 8-bit raw bytes to octal form by
21603 string_escape_byte8.
21604 (print_object): Adjust for the new multibyte form. Print 8-bit
21605 raw bytes always in octal form. Handle sub char table correctly.
21606
21607 * process.c: Include "character.h" instead of "charset.h".
21608 (read_process_output, send_process): Adjust for the new
21609 code-conversion API.
21610
21611 * puresize.h (BASE_PURESIZE): Increase.
21612
21613 * regex.c: Include "character.h" instead of "charset.h".
21614 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21615 (regex_compile): Accept a range whose starting and ending
21616 character have different leading bytes.
21617 (analyse_first): Adjust for the above change.
21618
21619 * search.c: Include "character.h" instead of "charset.h".
21620 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21621 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21622
21623 * syntax.c: Include "character.h" instead of "charset.h".
21624 (syntax_parent_lookup): Delete.
21625 (Fmodify_syntax_entry): Accept a cons as CHAR.
21626 (skip_chars): Adjust for the new multibyte form.
21627 (init_syntax_once): Call char_table_set_range instead of directly
21628 accessing the structure of a char table.
21629
21630 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21631 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21632 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21633 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21634
21635 * term.c: Include "buffer.h" and "character.h".
21636 (encode_terminal_code, write_glyphs): Adjust for the new
21637 code-conversion API.
21638 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21639
21640 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
21641
21642 * xdisp.c: Include "character.h".
21643 (get_next_display_element): Adjust for the new multibyte form.
21644 (disp_char_vector): Adjust for the new char table structure.
21645 (decode_mode_spec_coding): Adjust for the new structure of
21646 coding system.
21647 (decode_mode_spec): Adjust for the new code-conversion API.
21648
21649 * xfaces.c: Include "character.h" instead of "charset.h".
21650 (load_face_font): Adjust for the change of choose_face_font and
21651 FS_LOAD_FONT.
21652 (generate_ascii_font): New function.
21653 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
21654 (set_font_frame_param): Adjust for the change of choose_face_font.
21655 (free_realized_face): Make it public.
21656 (free_realized_faces_for_fontset): Rename from
21657 free_realized_multibyte_face. Free also faces realized for ASCII.
21658 (choose_face_font): Change arguments. Adjust for the change of
21659 fontset_font_pattern and FS_LOAD_FONT.
21660
21661 * xfns.c: Include "character.h".
21662 (x_encode_text): Adjust for the new code-conversion API.
21663
21664 * xselect.c: Don't include "charset.h".
21665 (selection_data_to_lisp_data): Adjust for the new code conversion API.
21666
21667 * xterm.c: Include "character.h".
21668 (x_encode_char): New argument CHARSET. Change caller.
21669 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
21670 Call ENCODE_CHAR instead of SPLIT_CHAR.
21671 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
21672 CHAR_WIDTH instead of CHARSET_WIDTH.
21673 (XTread_socket): Adjust for the new code-conversion API.
21674 (x_new_font): Adjust for the change of FS_LOAD_FONT.
21675 (x_load_font): Adjust for the change of struct font.
21676
216772008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21678
21679 * xfaces.c (face_at_buffer_position): Remove unused vars.
21680
216812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21682
21683 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
21684 Fix overflow checking.
21685
216862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21687
21688 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
21689 Cancel previous change.
21690
216912008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21692
21693 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
21694 ccl->eight_bit_control. Fix check for buffer overflow.
21695 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
21696 (ccl_driver): Initialize extra_bytes to 0.
21697
216982008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21699
21700 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
21701 return it ORed with ctrl_modifier.
21702
217032008-01-29 Miles Bader <miles@gnu.org>
21704
21705 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
21706
217072008-01-28 Jason Rumney <jasonr@gnu.org>
21708
21709 * w32.c (stat): Don't double check for networked drive.
21710
217112008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
21712
21713 * window.c (run_window_configuration_change_hook): New function.
21714 Code extracted from set_window_buffer. Set the selected frame.
21715 (set_window_buffer): Use it.
21716 * window.h (run_window_configuration_change_hook): Declare.
21717 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
21718
21719 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
21720
217212008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
21722
21723 * Makefile.in: Remove references to unused macros.
21724
217252008-01-26 Eli Zaretskii <eliz@gnu.org>
21726
21727 * w32.c (g_b_init_get_sid_sub_authority)
21728 (g_b_init_get_sid_sub_authority_count): New static variables.
21729 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
21730 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
21731 (init_user_info): Use them to retrieve uid and gid.
21732 Use 500/513, the Windows defaults, as Administrator's uid/gid.
21733 (fstat): Use pw_uid and pw_gid from the_passwd structure for
21734 st_uid and st_gid of the file.
21735
217362008-01-26 Jason Rumney <jasonr@gnu.org>
21737
21738 * w32.c (logon_network_drive): New function.
21739 (stat): Use it.
21740
217412008-01-26 Chong Yidong <cyd@stupidchicken.com>
21742
21743 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
21744 invisible text covered with an ellipsis.
21745
217462008-01-25 Richard Stallman <rms@gnu.org>
21747
21748 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
21749 jump back to beginning. Move some other initializations after that.
21750 (Qwindow_text_change_functions, Vwindow_text_change_functions):
21751 New variables.
21752 (syms_of_xdisp): Init them.
21753
21754 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
21755
21756 * buffer.c (reset_buffer_local_variables):
21757 Implement `permanent-local-hook'.
21758 (Qpermanent_local_hook): New variable.
21759 (syms_of_buffer): Init and staticpro it.
21760
217612008-01-25 Michael Albinus <michael.albinus@gmx.de>
21762
21763 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
21764
217652008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
21766
21767 * fns.c (Fclrhash): Return TABLE.
21768
217692008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21770
21771 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
21772 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
21773 is set even without positional changes.
21774 (x_scroll_bar_clear): Set bar->redraw_needed_p.
21775
21776 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
21777
217782008-01-23 Jason Rumney <jasonr@gnu.org>
21779
21780 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
21781
21782 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
21783 the unicode range available in MULE by locale-coding-system.
21784 Improve dbcs lead byte detection. Set event timestamp and modifiers
21785 earlier.
21786
217872008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21788
21789 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
21790 [MAC_OSX] (init_mac_osx_environment): Initialize it.
21791 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
21792 when used on child processes.
21793
217942008-01-21 Michael Albinus <michael.albinus@gmx.de>
21795
21796 * dbusbind.c (Fdbus_method_return_internal): Rename from
21797 Fdbus_method_return.
21798 (Fdbus_unregister_object): Move to dbus.el.
21799 (Fdbus_call_method, Fdbus_method_return_internal)
21800 (Fdbus_send_signal): Improve debug messages.
21801
218022008-01-20 Martin Rudalics <rudalics@gmx.at>
21803
21804 * undo.c (undo_inhibit_record_point): New variable.
21805 (syms_of_undo): Initialize it.
21806 (record_point): Don't record point when undo_inhibit_record_point
21807 is set.
21808
218092008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21810
21811 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21812
21813 * xdisp.c (Qauto_hscroll_mode): New var.
21814 (syms_of_xdisp): Initialize it.
21815 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21816 window's buffer.
21817 (hscroll_windows): Don't check automatic_hscrolling_p here.
21818
21819 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21820 vscroll if we're setting window-buffer to the value it already has.
21821
218222008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21823
21824 * m/intel386.h: Remove references to XENIX.
21825
218262008-01-17 Andreas Schwab <schwab@suse.de>
21827
21828 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21829 instead of HAVE_X86_64_LIB64_DIR.
21830 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21831
218322008-01-17 Glenn Morris <rgm@gnu.org>
21833
21834 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21835 to HAVE_X86_64_LIB64_DIR.
21836
218372008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21838
21839 * s/irix3-3.h:
21840 * s/irix4-0.h:
21841 * s/386-ix.h:
21842 * s/domain.h:
21843 * s/hpux9-x11r4.h:
21844 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21845
21846 * sysdep.c: Remove code containing references to symbols defined
21847 by unsupported systems.
21848
218492008-01-16 Glenn Morris <rgm@gnu.org>
21850
21851 * coding.c (select-safe-coding-system-function): Doc fix.
21852
218532008-01-15 Glenn Morris <rgm@gnu.org>
21854
21855 * config.in: Revert 2008-01-13 change: this is a generated file.
21856
218572008-01-13 Tom Tromey <tromey@redhat.com>
21858
21859 * lisp.h: Fix typo.
21860
218612008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21862
21863 * m/sequent-ptx.h:
21864 * m/sequent.h:
21865 * s/ptx.h:
21866 * s/ptx4-2.h:
21867 * s/ptx4.h: Remove files for systems no longer supported.
21868
21869 * callproc.c (Fcall_process): Fix previous change.
21870
218712008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21872
21873 * unexsunos4.c: Remove file, system not supported anymore.
21874
21875 * m/mips.h:
21876 * m/intel386.h:
21877 * callproc.c:
21878 * config.in:
21879 * ecrt0.c:
21880 * emacs.c:
21881 * fileio.c:
21882 * frame.c:
21883 * getpagesize.h:
21884 * keyboard.c:
21885 * lread.c:
21886 * process.c:
21887 * puresize.h:
21888 * sysdep.c:
21889 * systty.h:
21890 * syswait.h:
21891 * unexec.c:
21892 * xdisp.c:
21893 * alloc.c: Remove code containing references to symbols defined by
21894 unsupported systems.
21895
218962008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21897
21898 * coding.c (detect_coding_mask): Fix previous change.
21899
219002008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21901
21902 * coding.c (detect_coding_iso2022): New arg
21903 latin_extra_code_state. Allow Latin extra codes only
21904 when *latin_extra_code_state is nonzero.
21905 (detect_coding_mask): If there is a NULL byte, detect the encoding
21906 as UTF-16 or binary. If Latin extra codes exist, detect the
21907 encoding as ISO-2022 only when there's no other proper encoding is
21908 found.
21909
219102008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21911
21912 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21913 #ifdef MAC_OS.
21914
219152008-01-08 Richard Stallman <rms@gnu.org>
21916
21917 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21918
219192008-01-06 Nick Roberts <nickrob@snap.net.nz>
21920
21921 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21922 menu bar in parentheses.
21923
219242008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21925
21926 * m/7300.h:
21927 * m/acorn.h:
21928 * m/alliant-2800.h:
21929 * m/alliant.h:
21930 * m/alliant1.h:
21931 * m/alliant4.h:
21932 * m/altos.h:
21933 * m/amdahl.h:
21934 * m/apollo.h:
21935 * m/att3b.h:
21936 * m/aviion-intel.h:
21937 * m/aviion.h:
21938 * m/celerity.h:
21939 * m/clipper.h:
21940 * m/cnvrgnt.h:
21941 * m/convex.h:
21942 * m/cydra5.h:
21943 * m/delta88k.h:
21944 * m/dpx2.h:
21945 * m/dual.h:
21946 * m/elxsi.h:
21947 * m/f301.h:
21948 * m/gould-np1.h:
21949 * m/gould.h:
21950 * m/i860.h:
21951 * m/ibmps2-aix.h:
21952 * m/ibmrt-aix.h:
21953 * m/ibmrt.h:
21954 * m/irist.h:
21955 * m/is386.h:
21956 * m/isi-ov.h:
21957 * m/mega68.h:
21958 * m/mg1.h:
21959 * m/news-r6.h:
21960 * m/news-risc.h:
21961 * m/news.h:
21962 * m/nh3000.h:
21963 * m/nh4000.h:
21964 * m/ns16000.h:
21965 * m/ns32000.h:
21966 * m/nu.h:
21967 * m/orion.h:
21968 * m/orion105.h:
21969 * m/paragon.h:
21970 * m/pfa50.h:
21971 * m/plexus.h:
21972 * m/pyramid.h:
21973 * m/pyrmips.h:
21974 * m/sh3el.h:
21975 * m/sps7.h:
21976 * m/sr2k.h:
21977 * m/stride.h:
21978 * m/sun1.h:
21979 * m/sun2.h:
21980 * m/sun3-68881.h:
21981 * m/sun3-fpa.h:
21982 * m/sun3-soft.h:
21983 * m/sun3.h:
21984 * m/sun386.h:
21985 * m/symmetry.h:
21986 * m/tad68k.h:
21987 * m/tahoe.h:
21988 * m/targon31.h:
21989 * m/tek4300.h:
21990 * m/tekxd88.h:
21991 * m/tower32.h:
21992 * m/tower32v3.h:
21993 * m/ustation.h:
21994 * m/wicat.h:
21995 * m/xps100.h:
21996 * s/cxux.h:
21997 * s/cxux7.h:
21998 * s/dgux.h:
21999 * s/dgux4.h:
22000 * s/dgux5-4-3.h:
22001 * s/dgux5-4r2.h:
22002 * s/esix.h:
22003 * s/esix5r4.h:
22004 * s/hiuxmpp.h:
22005 * s/hiuxwe2.h:
22006 * s/iris3-5.h:
22007 * s/iris3-6.h:
22008 * s/isc2-2.h:
22009 * s/isc3-0.h:
22010 * s/isc4-0.h:
22011 * s/isc4-1.h:
22012 * s/newsos5.h:
22013 * s/newsos6.h:
22014 * s/osf1.h:
22015 * s/osf5-0.h:
22016 * s/riscix1-1.h:
22017 * s/riscix12.h:
22018 * s/sco4.h:
22019 * s/sco5.h:
22020 * s/sunos4-0.h:
22021 * s/sunos4-1.h:
22022 * s/sunos413.h:
22023 * s/sunos4shr.h:
22024 * s/umax.h:
22025 * s/unipl5-2.h:
22026 * s/xenix.h:
22027 * cxux-crt0.s:
22028 * unexapollo.c:
22029 * unexconvex.c:
22030 * unexenix.c:
22031 * unexsni.c: Remove files for systems no longer supported.
22032
22033 * m/intel386.h: Remove references to unsupported systems.
22034
22035 * w32.c (get_emacs_configuration): Remove reference to i860.
22036
22037 * sysdep.c: Remove dead code.
22038
220392008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22040
22041 * s/rtu.h:
22042 * m/masscomp.h: Remove files. Platform is obsolete.
22043
220442008-01-04 Michael Albinus <michael.albinus@gmx.de>
22045
22046 * dbusbind.c (Fdbus_method_return): New function.
22047 (xd_read_message): Add the serial number to the event.
22048 (Fdbus_register_method): Activate the function.
22049
220502008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22051
22052 * keyboard.c (read_key_sequence): Fix typo.
22053
220542008-01-03 Michael Albinus <michael.albinus@gmx.de>
22055
22056 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22057 (xd_signature, xd_append_arg): Handle element type detection for
22058 empty arrays.
22059 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22060 SDATA () calls; this must be solved more general.
22061 (Fdbus_register_signal): Use SBYTES instead of strlen.
22062
220632008-01-03 Magnus Henoch <magnus@zemdatav>
22064
22065 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22066 unsigned int for byte values (necessary for big-endian platform).
22067 (Fdbus_call_method): Handle the case of no returned arguments.
22068
220692007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22070
22071 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22072
220732007-12-31 Magnus Henoch <mange@freemail.hu>
22074
22075 * dbusbind.c (xd_signature): Signature of variant is just "v".
22076
220772007-12-30 Michael Albinus <michael.albinus@gmx.de>
22078
22079 * dbusbind.c: Fix several errors and compiler warnings.
22080 Reported by Tom Tromey <tromey@redhat.com>.
22081 (XD_ERROR, XD_DEBUG_MESSAGE)
22082 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22083 (xd_append_arg): Part for basic D-Bus types rewritten.
22084 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22085 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22086 appropriate.
22087 (xd_read_message): Return Qnil. Don't signal an error; it is not
22088 useful during event reading.
22089 (Fdbus_register_signal): Signal an error if the check for
22090 FUNCTIONP fails.
22091 (Fdbus_register_method): New function. The implementation is not
22092 complete, the call of the function signals an error therefore.
22093 (Fdbus_unregister_object): New function, renamed from
22094 Fdbus_unregister_signal. The initial check signals an error, if
22095 the object is not well formed.
22096
220972007-12-30 Richard Stallman <rms@gnu.org>
22098
22099 * textprop.c (get_char_property_and_overlay):
22100 Signal error if POSITION is out of range in a buffer.
22101
221022007-12-29 Martin Rudalics <rudalics@gmx.at>
22103
22104 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22105 because the original parameters are in pure storage now.
22106
221072007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22108
22109 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22110
221112007-12-22 Eli Zaretskii <eliz@gnu.org>
22112
22113 * callint.c (syms_of_callint) <command-history>: Add reference to
22114 history-length in the doc string.
22115
221162007-12-17 Jason Rumney <jasonr@gnu.org>
22117
22118 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22119 before passing as wParam.
22120
221212007-12-22 Michael Albinus <michael.albinus@gmx.de>
22122
22123 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22124 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22125 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22126 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22127 as number.
22128 (Fdbus_call_method): Fix docstring.
22129
221302007-12-21 Michael Albinus <michael.albinus@gmx.de>
22131
22132 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22133 New macros.
22134 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22135 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22136 Simplify.
22137 (xd_signature): New function.
22138 (xd_append_arg): Compute also signatures. Major rewrite.
22139 (xd_retrieve_arg): Make debug messages friendly.
22140 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22141 Check for signatures of arguments.
22142
221432007-12-19 Michael Albinus <michael.albinus@gmx.de>
22144
22145 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22146 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22147 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22148 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22149 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22150 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22151 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22152 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22153 (xd_retrieve_value): Remove. Functionality included in ...
22154 (xd_append_arg): New function.
22155 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22156
221572007-12-16 Michael Albinus <michael.albinus@gmx.de>
22158
22159 * dbusbind.c (top): Include <stdio.h>.
22160 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22161 dbus_message_new_method_call and dbus_message_new_signal.
22162 (Fdbus_register_signal): Rename unique_name to uname.
22163 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22164 non-existing unique name. Fix typos in matching rule. Return an
22165 object which is useful in Fdbus_unregister_signal.
22166 (Fdbus_unregister_signal): Reimplementation, in order to remove
22167 only the corresponding entry.
22168 (Vdbus_registered_functions_table): Change the order of entries.
22169 Apply these changes in xd_read_message and Fdbus_register_signal.
22170
221712007-12-16 Andreas Schwab <schwab@suse.de>
22172
22173 * fileio.c (Finsert_file_contents): Fix overflow check to not
22174 depend on undefined integer overflow.
22175
221762007-12-14 Jason Rumney <jasonr@gnu.org>
22177
22178 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22179 for characters above 127.
22180
221812007-12-13 Jason Rumney <jasonr@gnu.org>
22182
22183 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22184 before dereferencing array.
22185 (lookup_vk_code): Remove zero comparison.
22186
221872007-12-14 Michael Albinus <michael.albinus@gmx.de>
22188
22189 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22190 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22191 Use `unsigned int' instead of `uint'.
22192 (xd_read_message, Fdbus_register_signal): Split expressions into
22193 multiple lines before operators "&&" and "||", according to the
22194 GNU Coding Standards.
22195
221962007-12-14 Eli Zaretskii <eliz@gnu.org>
22197
22198 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22199
222002007-12-12 Juri Linkov <juri@jurta.org>
22201
22202 * buffer.c (Frename_buffer): In interactive spec replace
22203 `read-buffer' with `read-string' that uses `buffer-name-history'
22204 as history, and the current buffer's name as default.
22205
222062007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22207
22208 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22209 manipulating the backtrace manually.
22210 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22211 (struct backtrace, backtrace_list): Remove.
22212 (command_loop_1): Remove dead var `no_direct'.
22213
22214 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22215 preserve non-built-in buffer-local variables.
22216 (Fkill_all_local_variables): Don't re-create&re-set permanent
22217 buffer-local variables.
22218
222192007-12-09 Juri Linkov <juri@jurta.org>
22220
22221 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22222 Lisp code that uses `read-buffer' with current buffer as default.
22223
222242007-12-08 Michael Albinus <michael.albinus@gmx.de>
22225
22226 * dbusbind.c (xd_read_message): Generate an event for every
22227 registered handler. There might be several handlers registered
22228 for the same signal.
22229 (Fdbus_register_signal): Don't overwrite a registration for the
22230 same signal. Add a new registration if handlers are different.
22231 (Vdbus_registered_functions_table): Rework doc string.
22232
222332007-12-07 Michael Albinus <michael.albinus@gmx.de>
22234
22235 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22236 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22237 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22238 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22239 Unify argument lists.
22240 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22241 arguments and hash table keys. Use unique name for service.
22242 (Fdbus_unregister_signal): Remove checks.
22243 (Vdbus_registered_functions_table): Fix doc string.
22244
222452007-12-05 Magnus Henoch <mange@freemail.hu>
22246
22247 * process.c (make_process): Initialize pty_flag to 0.
22248
222492007-12-05 Jason Rumney <jasonr@gnu.org>
22250
22251 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22252 specified XBMs.
22253
222542007-12-05 Richard Stallman <rms@gnu.org>
22255
22256 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22257
222582007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22259
22260 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22261 New variable.
22262 (mac_try_close_socket) [MAC_OSX]: New function.
22263 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22264 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22265
22266 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22267 Use mac_try_close_socket.
22268
222692007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22270
22271 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22272 reloc_base.
22273 (copy_dysymtab): Compute relocation base here.
22274 (rebase_reloc_address) [__ppc64__]: New function.
22275 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22276 changed.
22277
222782007-12-05 Jason Rumney <jasonr@gnu.org>
22279
22280 * w32proc.c (sys_spawnve): Quote args with wildcards.
22281
222822007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22283
22284 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22285 __objc_* sections.
22286 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22287
222882007-12-05 Michael Albinus <michael.albinus@gmx.de>
22289
22290 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22291 Move check for Vdbus_registered_functions_table to
22292 xd_read_queued_messages.
22293 (xd_read_queued_messages): Protect xd_read_message calls by
22294 internal_condition_case_1.
22295
222962007-12-04 Michael Albinus <michael.albinus@gmx.de>
22297
22298 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22299 Qdbus_system_bus and Qdbus_session_bus, respectively.
22300 (Vdbus_intern_symbols): Remove.
22301 (Vdbus_registered_functions_table): New hash table.
22302 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22303 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22304 Rewrite in order to manage registered functions by hash table
22305 Vdbus_registered_functions_table.
22306
223072007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22308
22309 * xterm.c: Update URL to Window Manager Specification in comment.
22310
223112007-12-02 Michael Albinus <michael.albinus@gmx.de>
22312
22313 * config.in (HAVE_DBUS): Add.
22314
22315 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22316 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22317 (obj): Add $(DBUS_OBJ).
22318 (LIBES): Add $(DBUS_LIBS).
22319 (dbusbind.o): New target.
22320
22321 * dbusbind.c: New file.
22322
22323 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22324
22325 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22326 (Qdbus_event): New Lisp symbol.
22327 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22328 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 22329 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
22330
22331 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22332
223332007-12-01 Richard Stallman <rms@gnu.org>
22334
22335 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22336
223372007-11-30 Jason Rumney <jasonr@gnu.org>
22338
22339 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22340 (w32con_reset_terminal_modes): Clear screen buffer.
22341 (w32_face_attributes): Don't use color indexes that are out of range.
22342 Only reverse the default colors.
22343
22344 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22345 WINDOWSNT.
22346
22347 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22348
223492007-11-29 Jason Rumney <jasonr@gnu.org>
22350
22351 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22352 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22353 if the terminal colors are initialized.
22354 (unspecified_fg, unspecified_bg): Remove unused declarations.
22355
223562007-11-29 Andreas Schwab <schwab@suse.de>
22357
22358 * keyboard.c (apply_modifiers): Fix typo.
22359
223602007-11-29 Richard Stallman <rms@gnu.org>
22361
22362 * keymap.c (Fcurrent_local_map): Doc fix.
22363
223642007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22365
22366 * s/gnu-kfreebsd.h: New file.
22367
223682007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22369
22370 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22371 Don't cast redundantly.
22372
22373 * keyboard.c (KEY_TO_CHAR): New macro.
22374 (parse_modifiers, apply_modifiers): Accept integer arguments.
22375 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22376 for chars and symbol keys.
22377 After doing such remapping, apply function-key-map again.
22378
223792007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22380
22381 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22382 compiled anymore.
22383
223842007-11-26 Andreas Schwab <schwab@suse.de>
22385
22386 * process.c (list_processes_1): Fix indentation level of the
22387 command column.
22388
223892007-11-23 Andreas Schwab <schwab@suse.de>
22390
22391 * editfns.c (Fformat): Handle %c specially since it requires the
22392 argument to be of type int.
22393
223942007-11-23 Markus Triska <markus.triska@gmx.at>
22395
22396 * emacs.c (main): Call init_editfns before init_process, since
22397 init_process sets Vprocess_connection_type depending on OS release.
22398
223992007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22400
22401 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22402 (find_symbol_value): Use do_symval_forwarding.
22403
22404 * data.c (set_internal): Set the value in the `cons-cell' (for
22405 Buffer_Local_values) not only for frame-local variables.
22406
224072007-11-22 Andreas Schwab <schwab@suse.de>
22408
22409 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22410 values to sprintf.
22411 * keymap.c (Fsingle_key_description): Likewise.
22412 * print.c (print_object): Likewise.
22413
224142007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22415
22416 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22417 file for image is nil.
22418
224192007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22420
22421 * term.c: Include stdarg.h.
22422 (fatal): Implement using varargs.
22423 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22424
224252007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22426
22427 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22428 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22429 Update call to buffer_slot_type_mismatch.
22430 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22431 (buffer_slot_type_mismatch): Update.
22432 * buffer.c (buffer_local_types): Remove.
22433 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22434 (defvar_per_buffer): Set the type in the buffer_objfwd.
22435
224362007-11-21 Jason Rumney <jasonr@gnu.org>
22437
22438 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22439 CreateFileMapping returns NULL on failure.
22440
224412007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22442
22443 * search.c (Fset_match_data): Remove the `evaporate' feature.
22444 (unwind_set_match_data): Don't use the `evaporate' feature.
22445
224462007-11-21 Jason Rumney <jasonr@gnu.org>
22447
22448 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22449
22450 * w32console.c (w32con_write_glyphs): Remove unused variables.
22451
224522007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22453
22454 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22455
22456 * s/darwin.h (MULTI_KBOARD): Remove.
22457
22458 * macfns.c (x_create_tip_frame, Fx_create_frame)
22459 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22460
224612007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22462
22463 * buffer.c (Fbuffer_local_value): Remove redundant test.
22464 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22465 than in `current-buffer' to match the comment.
22466 Do the swap using swap_in_global_binding.
22467
22468 * data.c (store_symval_forwarding, set_internal):
22469 * eval.c (specbind): Remove dead code.
22470
22471 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22472 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22473 Since we do not want to see internal Lisp_*fwd objects here.
22474
224752007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22476
22477 * sysdep.c (init_system_name): Use getaddrinfo if available.
22478
22479 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22480 (x_scroll_bar_note_movement): start, end, with, height in struct
22481 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22482
224832007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22484
22485 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22486
224872007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22488
22489 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22490 This undoes Richard's change of 14-Oct-2002.
22491
22492 * alloc.c (allocate_other_vector):
22493 * lisp.h (allocate_other_vector): Remove.
22494
22495 * window.c (struct save_window_data): Move non-lisp data to the end
22496 and make it `int' rather than Lisp_Object.
22497 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
22498 Done wrap/unwrap integer values.
22499 (Fset_window_configuration, compare_window_configurations):
22500 Update use of fields to their new types.
22501
22502 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
22503 Turn integer fields into `int'. Merge x_window_low and x_window_high.
22504 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
22505 (SET_SCROLL_BAR_X_WINDOW): Remove.
22506 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
22507 Access the new x_window field directly.
22508 * xterm.c (x_scroll_bar_create): Use a pseudovector.
22509 Don't wrap/unwrap integers into Lisp_Objects.
22510 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
22511 (x_scroll_bar_report_motion):
22512 Don't wrap/unwrap integers into Lisp_Objects.
22513 (x_term_init): Use SDATA.
22514 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
22515 (x_scroll_bar_set_handle, x_scroll_bar_remove)
22516 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
22517 (x_scroll_bar_report_motion, x_scroll_bar_clear):
22518 * xfns.c (x_set_background_color):
22519 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
22520 Access the new x_window field directly.
22521
22522 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
22523 (allocate_pseudovector): Make non-static.
22524
22525 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
22526 (allocate_pseudovector): Declare.
22527 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
22528
225292007-11-15 Andreas Schwab <schwab@suse.de>
22530
22531 * editfns.c (Fformat): Correctly format EMACS_INT values.
22532 Also take precision into account when formatting an integer.
22533
22534 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
22535
225362007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
22537
22538 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22539 (syms_of_keyboard): Defsubr it.
22540
22541 * data.c (swap_in_global_binding): Fix longstanding bug where
22542 store_symval_forwarding was not called with the right second argument,
22543 thus causing objfwd-ing from being dropped.
22544
225452007-11-14 Juanma Barranquero <lekktu@gmail.com>
22546
22547 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
22548 (Fx_display_pixel_height, Fx_display_planes)
22549 (Fx_display_color_cells, Fx_server_max_request_size)
22550 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22551 (Fx_display_visual_class, Fx_display_save_under):
22552 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
22553 (Fx_display_pixel_height, Fx_display_planes)
22554 (Fx_display_color_cells, Fx_server_max_request_size)
22555 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
22556 (Fx_display_mm_height, Fx_display_mm_width)
22557 (Fx_display_backing_store, Fx_display_visual_class)
22558 (Fw32_select_font, Fx_display_save_under):
22559 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
22560 (Fx_display_pixel_height, Fx_display_planes)
22561 (Fx_display_color_cells, Fx_server_max_request_size)
22562 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22563 (Fx_display_save_under): Fix typos in docstrings.
22564
225652007-11-14 Juanma Barranquero <lekktu@gmail.com>
22566
22567 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22568 corresponding to deleted entries; they are an implementation detail.
22569 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22570 Remove variables.
22571 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22572 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22573 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22574 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22575 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22576 (Fw32_define_rgb_color, Fw32_load_color_file)
22577 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22578 Fix typos in docstrings.
22579 (Fx_server_version): Reflow docstring.
22580 (Fw32_shell_execute): Doc fixes.
22581
225822007-11-13 Juanma Barranquero <lekktu@gmail.com>
22583
22584 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22585 if w32_parse_hot_key returned nil.
22586
225872007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22588
22589 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22590
225912007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 22592
aac0c6e3
MR
22593 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22594
22595 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22596
22597 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22598 Remove W32_SCROLL_BAR_CLICK_EVENT.
22599
22600 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22601 Add MULTIMEDIA_KEY_EVENT.
22602
22603 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22604 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22605 (make_lispy_event) [WINDOWSNT]: Use it to translate
22606 MULTIMEDIA_KEY_EVENT.
22607
22608 * w32term.h (WM_APPCOMMAND): Define if not already.
22609 (GET_APPCOMMAND_LPARAM): Likewise.
22610
22611 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22612 WM_APPCOMMAND.
22613
22614 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22615 (syms_of_w32fns): Export and initialize it.
22616 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22617
226182007-11-09 Chong Yidong <cyd@stupidchicken.com>
22619
22620 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22621 twice.
22622
22623 * xdisp.c (handle_face_prop): Fix last change.
22624
226252007-11-09 Richard Stallman <rms@gnu.org>
22626
22627 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22628 not just for after-strings and before-strings.
22629 Call face_for_overlay_string and pass the overlay to it.
22630 (handle_display_prop): Determine whether property came from an overlay.
22631 Pass OVERLAY arg to handle_single_display_spec.
22632 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22633 (load_overlay_strings): Fill in it->string_overlays.
22634 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22635
22636 * xfaces.c (face_for_overlay_string): Function renamed from
22637 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22638
22639 * dispextern.h (struct it): New elt string_overlays.
22640 New elt from_overlay, also in stack.
22641 Rearrange a few elements.
22642 (face_for_overlay_string): Decl renamed from
22643 face_at_buffer_position_no_overlays, and add argument.
22644
226452007-11-09 Richard Stallman <rms@gnu.org>
22646
22647 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
22648 to get the base face for an overlay string.
22649
22650 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
22651
22652 * xfaces.c (face_at_buffer_position_no_overlays): New function.
22653
22654 * xdisp.c (handle_stop): Move some code out of loop.
22655
226562007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22657
22658 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
22659 Fix conversion from Lisp object to ATSUFontID.
22660
226612007-11-09 Jason Rumney <jasonr@gnu.org>
22662
22663 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
22664
226652007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22666
22667 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
22668 Don't assume regions are aligned to page boundary.
22669 (print_load_command_name): Add LC_UUID if defined.
22670
226712007-11-09 Richard Stallman <rms@gnu.org>
22672
22673 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
22674
226752007-11-07 Jason Rumney <jasonr@gnu.org>
22676
22677 * s/windows95.h: Remove.
22678
226792007-11-06 Jan Djärv <jan.h.d@swipnet.se>
22680
22681 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
22682 abort with a message on unhandled store_type values.
22683
226842007-11-01 Jan Djärv <jan.h.d@swipnet.se>
22685
22686 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
22687 Remove HAVE_X11R5 and HAVE_X11R4.
22688
226892007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22690
22691 * Makefile.in: Remove references to sunfns.c and sunfns.o.
22692
226932007-11-01 Johan Bockgård <bojohan@gnu.org>
22694
22695 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
22696 Don't set s->stippled_p here, since it has already been set by
22697 x_set_glyph_string_gc from x_draw_glyph_string.
22698
226992007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22700
22701 * sunfns.c: Remove file.
22702
22703 * m/sun386.h:
22704 * m/sun2.h:
22705 * m/sparc.h: Remove Sun windows code.
22706
227072007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
22708
22709 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
22710 (init_keyboard): Set current_kboard's window-system to nil.
22711 (tty_read_avail_input): Typo.
22712 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
22713
227142007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
22715
22716 * s/usg5-4.h:
22717 * s/usg5-3.h:
22718 * s/ptx.h:
22719 * m/is386.h:
22720 * m/ibmps2-aix.h:
22721 * Makefile.in: Remove all mentions of X10.
22722
22723 * dispnew.c (syms_of_display): Don't mention version 10.
22724
227252007-10-28 Juanma Barranquero <lekktu@gmail.com>
22726
22727 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
22728 ($(BLD)/abbrev.$(O)): Remove.
22729
227302007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
22731
22732 Rewrite abbrev.c in Elisp.
22733 * image.c (Qcount): Don't declare as extern.
22734 (syms_of_image): Initialize and staticpro `Qcount'.
22735 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
22736 * emacs.c (main): Don't call syms_of_abbrev.
22737 * Makefile.in (obj): Remove abbrev.o.
22738 (abbrev.o): Remove.
22739 * abbrev.c: Remove.
22740
227412007-10-26 Martin Rudalics <rudalics@gmx.at>
22742
22743 * window.c (window_min_size_2): Don't count header-line.
22744
227452007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
22746
22747 * frame.h (struct frame): Move all bit fields after the first bit
22748 field to take advantage of the available space. Group all the
22749 chars together to reduce wasted space due to padding.
22750
227512007-10-26 Juanma Barranquero <lekktu@gmail.com>
22752
22753 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
22754
22755 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
22756 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
22757 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
22758 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
22759 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
22760 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
22761 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
22762 (last_marked, mark_object_loop_halt): Make static.
22763
22764 * frame.c (syms_of_frame) <delete-frame-functions>:
22765 Fix typo in docstring.
22766
227672007-10-25 Juanma Barranquero <lekktu@gmail.com>
22768
22769 * w32.c (init_environment): Fix tiny memory leak.
22770 (w32_get_resource): Remove unused variable `ok'.
22771
227722007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
22773
22774 Make `window-system' into a keyboard-local variable (rather than
22775 frame-local as done originally by multi-tty).
22776
22777 * keyboard.h (struct kboard): Add Vwindow_system.
22778 * keyboard.c (init_kboard): Set a default for Vwindow_system.
22779 (mark_kboards): Mark Vwindow_system.
22780
22781 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
22782 (init_display): Don't set the obsolete `window-system' frame-param.
22783
22784 * xterm.c (x_term_init):
22785 * w32term.c (w32_create_terminal):
22786 * term.c (init_tty): Set Vwindow_system.
22787 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
22788 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
22789
22790 * xfns.c (Fx_create_frame, x_create_tip_frame):
22791 * w32fns.c (Fx_create_frame, x_create_tip_frame):
22792 * macfns.c (Fx_create_frame):
22793 Don't set the obsolete `window-system' frame-param.
22794
22795 * frame.h (Qwindow_system): Remove.
22796 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
22797 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
22798
227992007-10-24 Richard Stallman <rms@gnu.org>
22800
22801 * frame.c (x_figure_window_size): For fullscreen case,
22802 set USPosition | PPosition without clobbering rest of window_prompting.
22803
22804 * keyboard.c (Fcurrent_idle_time): Doc fix.
22805
22806 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22807
228082007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22809
22810 * process.c (unwind_request_sigio): Only define if __ultrix__.
22811
22812 * callproc.c (child_setup): Remove spurious *.
22813
22814 * lisp.h (Fget_text_property): Declare.
22815 (have_menus_p): Declare it here rather than in sys-dep header files.
22816 * macterm.h (have_menus_p):
22817 * msdos.h (have_menus_p):
22818 * xterm.h (have_menus_p): Remove.
22819
22820 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22821 (Fmake_variable_frame_local): Just check the variable's const-ness
22822 rather than checking nil or t.
22823
228242007-10-22 Jason Rumney <jasonr@gnu.org>
22825
22826 * w32fns.c: Include math.h.
22827 (w32_abort): Declaration moved to nt/config.nt.
22828
22829 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22830 (abort): Redefinition moved to nt/config.nt.
22831
22832 * m/windowsnt.h: Remove.
22833
228342007-10-22 Juanma Barranquero <lekktu@gmail.com>
22835
22836 * emacs.c (Fdump_emacs): Fix typo in message.
22837 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22838 <installation-directory>: Reflow docstring.
22839
228402007-10-22 Juri Linkov <juri@jurta.org>
22841
22842 * minibuf.c: Allow minibuffer default to be a list of default values.
22843 With empty input use the first element of this list as returned default.
22844 (string_to_object)
22845 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22846 (read_minibuf): If defalt is cons, set histstring to its car.
22847 (Fread_string): If default_value is cons, set val to its car.
22848 (Fread_buffer): If def is cons, use its car.
22849 (Fcompleting_read): If defalt is cons, set val to its car.
22850
228512007-10-21 Michael Albinus <michael.albinus@gmx.de>
22852
22853 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22854
228552007-10-20 Juanma Barranquero <lekktu@gmail.com>
22856
22857 * doc.c (Fdocumentation): Check for advice in all cases.
22858
228592007-10-19 Chong Yidong <cyd@stupidchicken.com>
22860
22861 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22862
228632007-10-19 Richard Stallman <rms@gnu.org>
22864
22865 * doc.c (Fdocumentation): Check for and handle an advised function.
22866
228672007-10-19 Juanma Barranquero <lekktu@gmail.com>
22868
22869 * process.c (Fset_process_filter): Doc fix.
22870
228712007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22872
22873 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22874 which caused key-translation-map to applied repeatedly (thus breaking
22875 double-mode).
22876
228772007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22878
22879 * xselect.c (x_own_selection, x_handle_selection_clear)
22880 (x_clear_frame_selections):
22881 * w32menu.c (list_of_panes, list_of_items):
22882 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22883 * textprop.c (validate_plist, interval_has_all_properties)
22884 (interval_has_some_properties, interval_has_some_properties_list)
22885 (add_properties, text_property_list):
22886 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22887 * minibuf.c (Fassoc_string):
22888 * macselect.c (x_own_selection, x_clear_frame_selections)
22889 (Fx_disown_selection_internal):
22890 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22891 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22892
228932007-10-17 Chong Yidong <cyd@stupidchicken.com>
22894
22895 * process.c: Link to libs for calling res_init() if available.
22896 (Fmake_network_process): Call res_init() before getaddrinfo or
22897 gethostbyname, if possible.
22898
228992007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22900
22901 * lread.c (read1): Set pvectype for char_tables.
22902
22903 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22904 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22905 Add type checks.
22906 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22907
22908 * alloc.c (free_misc): Use XMISCTYPE.
22909 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22910
229112007-10-17 Glenn Morris <rgm@gnu.org>
22912
22913 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22914 (syms_of_minibuf): Add Qcompletion_ignore_case.
22915 * dired.c (Qcompletion_ignore_case): Change to external.
22916 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22917 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22918 (Fread_file_name): Use it rather than intern'ing.
22919
22920 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22921 (Fread_coding_system): Ignore case of user input.
22922
229232007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22924
22925 * xdisp.c (handle_display_prop): Ignore display specs after
22926 replacing one when string text is being replaced.
22927 (handle_single_display_spec): Pretend as if characters with display
22928 property haven't been consumed only when buffer text is being replaced.
22929
229302007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22931
22932 * xfns.c (Fx_create_frame, Fx_display_list):
22933 * window.c (window_fixed_size_p, enlarge_window)
22934 (shrink_window_lowest_first):
22935 * macterm.c (init_font_name_table):
22936 * macfns.c (Fx_create_frame, Fx_display_list):
22937 * lread.c (close_load_descs):
22938 * keyboard.c (read_char_x_menu_prompt):
22939 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22940 * coding.c (code_convert_region_unwind): Test the type of an object
22941 rather than just !NILP before extracting data from it.
22942
22943 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22944
22945 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22946 (XMISCANY): New macro.
22947 (XMISCTYPE): Use it.
22948 (struct Lisp_Misc_Any): New type.
22949 (union Lisp_Misc): Use it.
22950 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22951 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22952 (find_symbol_value, set_internal, default_value, Fset_default)
22953 (Fmake_variable_buffer_local, Fmake_local_variable)
22954 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22955 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22956 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22957 * alloc.c (allocate_buffer): Set the size and tag.
22958 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22959 Use XMISCANY.
22960 (die): Follow the GNU convention for error messages.
22961 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22962 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22963 tag any more.
22964 (set_buffer_internal_1):
22965 * frame.c (store_frame_param):
22966 * eval.c (specbind):
22967 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22968
22969 * doc.c (Fsnarf_documentation): Simplify.
22970
229712007-10-14 Juanma Barranquero <lekktu@gmail.com>
22972
22973 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22974 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22975
229762007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22977
22978 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22979
229802007-10-14 Juanma Barranquero <lekktu@gmail.com>
22981
22982 * eval.c (do_autoload): Don't save autoloads.
22983
22984 * data.c (Ffset): Save autoload of the function being set.
22985
229862007-10-07 John Paul Wallington <jpw@pobox.com>
22987
22988 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22989 parameter before setting up faces.
22990
229912007-10-13 Eli Zaretskii <eliz@gnu.org>
22992
22993 * ccl.c (Fregister_code_conversion_map):
22994 * keyboard.c (append_tool_bar_item): Reformat last change.
22995
22996 * lisp.h (eabs): Rename from `abs'. All callers changed.
22997
229982007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
22999
23000 * buffer.c (add_overlay_mod_hooklist):
23001 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23002 * fontset.c (make_fontset):
23003 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23004 (append_tool_bar_item):
23005 * macmenu.c (grow_menu_items):
23006 * w32menu.c (grow_menu_items):
23007 * xmenu.c (grow_menu_items): Use larger_vector.
23008
230092007-10-13 Eli Zaretskii <eliz@gnu.org>
23010
23011 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23012 selected frame'' on MSDOS).
23013
230142007-10-12 Martin Rudalics <rudalics@gmx.at>
23015
23016 * frame.c (Qexplicit_name): New variable.
23017 (x_report_frame_params): Report it in parameter alist.
23018 (syms_of_frame): Intern and staticpro it.
23019
230202007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23021
23022 * macfns.c (x_create_tip_frame): Set terminal for frame.
23023
230242007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23025
23026 * frame.c (Qenvironment): Remove.
23027 (syms_of_frame) <Qenvironment>: Don't initialize.
23028 (Fdelete_frame): Don't treat the `environment' param specially.
23029 * frame.h (Qenvironment): Don't declare.
23030 * callproc.c (set_initial_environment): Don't set unused frame param.
23031
23032 * frame.c (Fframe_with_environment): Remove.
23033 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23034
23035 * lisp.h (Fframe_with_environment): Don't declare.
23036
230372007-10-10 Juanma Barranquero <lekktu@gmail.com>
23038
23039 * indent.c (indent_tabs_mode, last_known_column)
23040 (last_known_column_modified): Make static.
23041 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23042
230432007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23044
23045 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23046
230472007-10-09 Jason Rumney <jasonr@gnu.org>
23048
23049 * w32term.c (x_set_window_size): Disable code that attempts to tell
23050 Lisp code about a size change before it actually happens.
23051
230522007-10-09 Richard Stallman <rms@gnu.org>
23053
23054 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23055 return HANDLED_RETURN.
23056
230572007-10-08 Martin Rudalics <rudalics@gmx.at>
23058
23059 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23060 when there's an unread command event.
23061
23062 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23063 window autoselection act appropriately when leaving selected frame.
23064 (syms_of_frame): Initialize focus_follows_mouse.
23065 * frame.h (focus_follows_mouse): Extern it.
23066 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23067 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23068 * msdos.c (dos_rawgetc): Likewise.
23069 * w32term.c (w32_read_socket): Likewise.
23070 * xterm.c (handle_one_xevent): Likewise.
23071 * xdisp.c (syms_of_xdisp): In doc-string of
23072 mouse-autoselect-window mention focus-follows-mouse.
23073
230742007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23075
23076 * macterm.c (mac_load_query_font): Fix missing return value.
23077 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23078 Add BLOCK_INPUT.
23079
230802007-10-08 Richard Stallman <rms@gnu.org>
23081
23082 * xdisp.c (get_window_cursor_type): Implement documented behavior
23083 for cursor-in-non-selected-windows = t.
23084
230852007-10-08 Jason Rumney <jasonr@gnu.org>
23086
23087 * w32.c (w32_get_resource): Always close registry keys.
23088
230892007-10-08 Jason Rumney <jasonr@gnu.org>
23090
23091 * makefile.w32-in (LIBS): Add COMCTL32.
23092
23093 * w32fns.c (globals_of_w32fns): Init common controls.
23094
230952007-10-08 Richard Stallman <rms@gnu.org>
23096
23097 * image.c (our_memory_buffer): Rename from omfib_buffer.
23098
230992007-10-08 Richard Stallman <rms@gnu.org>
23100
23101 * buffer.c (Foverlays_at): Doc fix.
23102
231032007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23104
23105 * fns.c (Fplist_put): Preserve uneven tail data.
23106
231072007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23108
23109 * termhooks.h (enum event_kind): Remove trailing comma.
23110
23111 * frame.h (enum): Remove trailing comma.
23112
231132007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23114
23115 * w32proc.c (delete_child): Don't terminate threads of zombies.
23116
231172007-10-08 Martin Rudalics <rudalics@gmx.at>
23118
23119 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23120
23121 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23122 last-repeatable-command.
23123 (init_kboard): Initialize Vlast_repeatable_command.
23124 (command_loop_1): Set it to real_this_command unless that was
23125 bound to an input event.
23126 (mark_kboards): Mark it.
23127
231282007-10-08 Richard Stallman <rms@gnu.org>
23129
23130 * eval.c (condition-case): Doc fix.
23131
231322007-10-08 Masatake YAMATO <jet@gyve.org>
23133
23134 * xfaces.c (tty_supports_face_attributes_p): Fix code
23135 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23136 was copied and not edited.
23137
231382007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23139
23140 Add new `input-decode-map' keymap and use it for terminal
23141 escape sequences.
23142 * keyboard.h (struct kboard): Add Vinput_decode_map.
23143 Remove Vlocal_key_translation_map.
23144 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23145 (init_kboard): Init input-decode-map.
23146 Replace local-key-translation-map back with key-translation-map.
23147 (syms_of_keyboard): Declare input-decode-map.
23148 Remove local-key-translation-map. Update docstrings.
23149 (mark_kboards): Mark Vinput_decode_map.
23150 Don't mark Vlocal_key_translation_map.
23151 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23152 Replace local-key-translation-map back with key-translation-map.
23153 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23154 Bind in input-decode-map rather than function-key-map.
23155
23156 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23157 This was made redundant by the previous introduction of XSETPVECTYPE.
23158
231592007-10-09 Richard Stallman <rms@gnu.org>
23160
23161 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23162
231632007-09-29 Richard Stallman <rms@gnu.org>
23164
23165 * eval.c (internal_condition_case_2, internal_condition_case_1)
23166 (internal_condition_case): Reenable abort if x_catching_errors ()
23167 to see if that really happens and why.
23168
231692007-10-06 Andreas Schwab <schwab@suse.de>
23170
23171 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23172
231732007-10-04 Juanma Barranquero <lekktu@gmail.com>
23174
23175 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23176
231772007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23178
23179 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23180
231812007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23182
23183 * window.h (struct window):
23184 * window.c (struct save_window_data, struct saved_window):
23185 * termhooks.h (struct terminal):
23186 * process.h (struct Lisp_Process):
23187 * frame.h (struct frame):
23188 * buffer.h (struct buffer):
23189 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23190 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23191 The size field of (pseudo)vectors is now unsigned.
23192 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23193
23194 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23195 Turn `count' into an integer.
23196
23197 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23198 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23199 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23200 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23201 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23202
23203 * alloc.c (allocate_pseudovector): New fun.
23204 (ALLOCATE_PSEUDOVECTOR): New macro.
23205 (allocate_window, allocate_terminal, allocate_frame)
23206 (allocate_process): Use it.
23207 (mark_vectorlike): New function.
23208 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23209 (mark_terminals): Use it.
23210 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23211 (Fmake_byte_code): Use XSETPVECTYPE.
23212
23213 * frame.c (Fframe_parameters): Minor simplification.
23214
23215 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23216
23217 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23218
23219 * buffer.c (Fget_buffer_create, init_buffer_once):
23220 * lread.c (defsubr):
23221 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23222
23223 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23224 defined differently in the m/*.h files.
23225 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23226 (XSETPVECTYPE): New macro.
23227 (XSETPSEUDOVECTOR): Use it.
23228
23229 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23230 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23231
23232 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23233 * lread.c (defvar_per_buffer):
23234 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23235
23236 * window.c (candidate_window_p): Only consider as visible frames that
23237 are on the same terminal.
23238
23239 * m/ibms390x.h (MARKBIT): Remove unused macro.
23240
232412007-10-01 Juanma Barranquero <lekktu@gmail.com>
23242
23243 * lread.c (Fload): Fix typo in docstring.
23244
232452007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23246
23247 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23248 of a non-zero value can't yield zero.
23249
232502007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23251
23252 * term.c (term_clear_mouse_face, term_mouse_highlight)
23253 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23254
23255 * print.c (safe_debug_print): Use XHASH.
23256
23257 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23258 Lisp elements such as tags.
23259 (XHASH): New macro.
23260 (EQ): Use it.
23261 (SREF, SSET, STRING_COPYIN): Use SDATA.
23262 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23263
23264 * alloc.c (mark_terminal): Remove left-over declaration.
23265 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23266 (allocate_vectorlike): Remove type argument. Adjust callers.
23267 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23268 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23269
23270 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23271 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23272 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23273 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23274 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23275 Use them.
23276
23277 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23278 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23279 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23280
232812007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23282
23283 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23284 loaded by default.
23285
232862007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23287
23288 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23289 on this tty.
23290 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23291
23292 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23293 Update all users.
23294 (handle_one_term_event): Use Gpm_DrawPointer.
23295 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23296 Signal errors instead of returning nil. Always return nil.
23297 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23298 Make it a noop if gpm-mouse was not activated.
23299 (syms_of_term): Update names.
23300
233012007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23302
23303 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23304 (init_sys_modes): Check that gpm_tty is the current tty.
23305
23306 * alloc.c (allocate_terminal): Set the vector size to only count the
23307 lisp fields. Initialize those to nil.
23308 (mark_object): Don't treat terminals specially.
23309 (mark_terminal): Remove.
23310 (mark_terminals): Use mark_object instead.
23311
23312 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23313 the GC to the beginning.
23314
23315 * indent.h:
23316 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23317
23318 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23319
233202007-09-25 Jason Rumney <jasonr@gnu.org>
23321
23322 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23323
23324 * w32console.c (create_w32cons_output): Remove.
23325
23326 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23327
23328 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23329 (reset_sys_modes): Use reset_terminal_modes_hook.
23330
233312007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23332
23333 * eval.c (do_autoload): Don't output any message.
23334
233352007-09-24 Juri Linkov <juri@jurta.org>
23336
23337 * emacs.c (standard_args): Change priority of "--no-splash"
23338 from 40 to 3. Add "--no-desktop" with the same priority.
23339
233402007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23341
23342 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23343 and optimize the case where they are all 1.
23344
233452007-09-23 Johannes Weiner <hannes@saeurebad.de>
23346
23347 * lisp.h (abs): Define if not defined.
23348 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23349 Don't define `abs', since it's defined in lisp.h.
23350
233512007-09-22 Eli Zaretskii <eliz@gnu.org>
23352
23353 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23354 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23355 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23356 (init_tty): Use DEV_TTY instead of "/dev/tty".
23357 [WINDOWSNT]: No need to protect from NAME arg being null.
23358
233592007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23360
23361 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23362 up the tty state.
23363
233642007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23365
23366 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23367 (gpm_tty): Change its type.
23368 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23369 (gpm_tty): Change its type and initialize it.
23370 (Fterm_open_connection): Check the frame is indeed a tty.
23371 Use the new gpm_tty.
23372 (Fterm_close_connection): Use the new gpm_tty.
23373 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23374 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23375
233762007-09-21 Juanma Barranquero <lekktu@gmail.com>
23377
23378 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23379 underline_color, to draw strike-through.
23380
233812007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23382
23383 * lisp.h (allocate_terminal): Declare.
23384
23385 * window.c (candidate_window_p): Consider frames that are being placed
23386 by the user as somewhere between visible and iconified.
23387 (window_loop): Prefer windows on the current frame.
23388 (Fselect_window): Move the use of select-frame to the beginning so we
23389 can just delegate all the work (it'll call us back anyway).
23390
23391 * frame.c (Qdisplay_environment_variable):
23392 * frame.h (Qdisplay_environment_variable): Delete.
23393
23394 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23395 of the first arg, since that value may be a union.
23396
23397 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23398 parameter rather than Qdisplay_environment_variable. If all else
23399 fails, look for DISPLAY in initial-environment.
23400
234012007-09-21 Glenn Morris <rgm@gnu.org>
23402
23403 * Makefile.in (emacstool): Remove target.
23404 (lisp, shortlisp): Remove termdev.elc.
23405
234062007-09-21 Markus Triska <markus.triska@gmx.at>
23407
23408 * xterm.c (x_delete_display): Compile session management conditionally.
23409
234102007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23411
23412 * callproc.c (getenv_internal_1): New function.
23413 (getenv_internal): Use it.
23414 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23415
23416 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23417 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23418 (Fset_terminal_parameter): Work with dead terminals as well.
23419 (Fmodify_terminal_parameters): Remove.
23420
23421 * terminal.c (get_terminal): Handle terminals.
23422 Make sure the terminal returned is live.
23423 (create_terminal): Use allocate_terminal.
23424 (mark_terminals): Move to alloc.c.
23425 (delete_terminal): Use terminal->name as liveness status.
23426 NULL out fields after freeing their contents.
23427 Don't deallocate the object.
23428 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23429 rather than an int.
23430 (Fterminal_live_p): Accept non-integer arguments.
23431 (Fterminal_list): Return terminal objects rather than an ints.
23432
23433 * alloc.c (enum mem_type): New member for `terminal' objects.
23434 (allocate_terminal): New function.
23435 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23436 Handle terminals.
23437 (mark_terminal): New fun.
23438 (mark_terminals): Move from terminal.c.
23439
23440 * term.c (get_tty_terminal): Don't treat output_initial specially.
23441 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23442 (delete_tty): Use terminal->name as liveness status.
23443
23444 * termhooks.h (struct terminal): Make it into a pseudovector.
23445 Remove `deleted' replaced by checking `name's nullness.
23446
23447 * print.c (print_object): Handle terminals.
23448
23449 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23450 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23451
23452 * frame.c (make_terminal_frame):
23453 * keyboard.c (tty_read_avail_input):
23454 * w32term.c (x_delete_terminal):
23455 * xfns.c (Fx_create_frame, x_create_tip_frame):
23456 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23457
234582007-09-20 Glenn Morris <rgm@gnu.org>
23459
23460 * process.c (Fmake_network_process): Doc fix.
23461
234622007-09-19 Jason Rumney <jasonr@gnu.org>
23463
23464 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23465
234662007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23467
23468 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23469 Fix a C warning regarding variable constness.
23470
23471 * xterm.c (handle_one_xevent): Fix a C warning.
23472
234732007-09-18 Jason Rumney <jasonr@gnu.org>
23474
23475 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23476
234772007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23478
23479 * gtkutil.c (gdpy_def): New variable.
23480 (xg_initialize): Initialize gdpy_def.
23481 (xg_display_close): If no other display exists, set gdpy_def to a
23482 new connection.
23483
234842007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23485
23486 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23487 when we have no file name for the icon.
23488 (xg_tool_bar_expose_callback): Remove.
23489 (xg_create_tool_bar): Don't connect expose signal to
23490 xg_tool_bar_expose_callback.
23491 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23492
234932007-09-16 Andreas Schwab <schwab@suse.de>
23494
23495 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23496 values instead of zapping them.
23497
234982007-09-14 Glenn Morris <rgm@gnu.org>
23499
23500 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
23501 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
23502 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
23503 scope and rename to omfib_buffer for clarity.
23504 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
23505
235062007-09-14 Kenichi Handa <handa@m17n.org>
23507
23508 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
23509
235102007-09-13 Jason Rumney <jasonr@gnu.org>
23511
23512 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
23513
23514 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
23515
23516 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
23517 (mac_term_init): Call here instead, passing rif.
23518
235192007-09-13 Glenn Morris <rgm@gnu.org>
23520
23521 * s/hpux.h: No longer define `static' as nothing.
23522
235232007-09-13 Johan Bockgård <bojohan@gnu.org>
23524
23525 * callint.c (Fcall_interactively): Remove unused var `fun'.
23526
235272007-09-12 Romain Francoise <romain@orebokech.com>
23528
23529 * window.c (prefer_window_split_horizontally, display_buffer):
23530 Revert 2007-09-08 change.
23531
235322007-09-12 Glenn Morris <rgm@gnu.org>
23533
23534 * alloca.c: Remove file.
23535 * Makefile.in (alloca): Do not undef.
23536 (allocaobj, alloca.o): Remove.
23537 (otherobj): Remove allocaobj.
23538 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23539 * regex.c (C_ALLOCA): Remove all references and code that was only
23540 used when this was defined.
23541 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23542 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23543 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23544
23545 * Makefile.in (SOURCES, unlock, relock): Delete.
23546
23547 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23548 (menu_grab_callback): All uses changed.
23549
23550 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23551 (x_reply_selection_request): All uses changed.
23552
235532007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23554
23555 * lread.c (load_warn_old_style_backquotes): Change message to look
23556 better when it appears in the middle of byte-compiler messages.
23557
235582007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23559
23560 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23561
23562 * xterm.c (x_create_terminal): Add comment.
23563
23564 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23565
235662007-09-10 Richard Stallman <rms@gnu.org>
23567
23568 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23569
235702007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23571
23572 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23573 (DEFUN): Document `intspec', use it instead of `prompt'.
23574
23575 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23576
23577 * data.c (Finteractive_form): If the interactive specification starts
23578 with a `(', use it as a Lisp form.
23579
23580 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23581 name and file modes.
23582
23583 * callint.c (Fcall_interactively): Comment fixes.
23584
235852007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23586
23587 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23588 and compiled functions.
23589
235902007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23591
23592 * window.c (prefer_window_split_horizontally): New variable.
23593 (display_buffer): Consider splitting window horizontally depending
23594 on prefer_window_split_horizontally.
23595
235962007-09-08 Eli Zaretskii <eliz@gnu.org>
23597
23598 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23599
236002007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23601
23602 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23603
23604 * frame.c (x_set_frame_parameters): Check number is positive before
23605 using XFASTINT.
23606
23607 * window.c (freeze_window_start): Don't presume selected_window holds
23608 a window object.
23609 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23610
236112007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23612
23613 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23614
236152007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23616
23617 * window.c (Vsplit_window_preferred_function): New var.
23618 (Fdisplay_buffer): Use it.
23619 (syms_of_window): Export, and initialize it.
23620
236212007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23622
23623 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23624
236252007-09-06 Glenn Morris <rgm@gnu.org>
23626
23627 * gtkutil.c (menu_grab_callback) <cnt>:
23628 * xselect.c (x_reply_selection_request) <cnt>: Move static
23629 variable to file scope.
23630
236312007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23632
23633 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23634 consistent values of selected_frame and selected_window.
23635
236362007-09-04 Jason Rumney <jasonr@gnu.org>
23637
23638 * w32console.c (initialize_w32_display): Zero unused hooks.
23639
236402007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23641
23642 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
23643 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
23644
236452007-09-04 Jason Rumney <jasonr@gnu.org>
23646
23647 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
23648 in w32console.c. Set up input. Remove XXX comments that have been
23649 confirmed as correct.
23650
23651 * s/ms-w32.h (MULTI_KBOARD): Define.
23652
23653 * w32console.c (one_and_only_w32cons): Remove.
23654 (initialize_w32_display): Take terminal argument.
23655
23656 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
23657 initialize_w32_display.
23658 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
23659
23660 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
23661
23662 * keyboard.c (discard_mouse_events): Discard it.
23663 (make_lispy_event): Translate it to a lisp event.
23664 (lispy_wheel_names): Add wheel-left and right events.
23665 (syms_of_keyboard): Enlarge wheel_syms.
23666
23667 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
23668 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
23669
23670 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
23671
23672 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
23673 from WM_MOUSEHWHEEL.
23674 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
23675
23676 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
23677 terminal.
23678
23679 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
23680 keyboard for the terminal.
23681
236822007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23683
23684 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
23685 (Vresume_tty_hook): Rename from Vresume_tty_functions.
23686 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
23687 and resume-tty-function to resume-tty-hook.
23688 (Fsuspend_tty, Fresume_tty): Use new names.
23689
236902007-09-02 Jan Djärv <jan.h.d@swipnet.se>
23691
23692 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
23693 if it starts with "n:".
23694
236952007-08-31 Jan Djärv <jan.h.d@swipnet.se>
23696
23697 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
23698
236992007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
23700
23701 * frame.h:
23702 * frame.c (Qterm_environment_variable): Remove.
23703 (syms_of_frame): Don't init and staticpro it.
23704
23705 * callproc.c (getenv_internal): Remove special case for $TERM.
23706
23707 * callproc.c (Vinitial_environment): New variable.
23708 (set_initial_environment): Initialize it.
23709 (syms_of_callproc): Declare it.
23710 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
23711 TERM under which a process runs is never related to the TERM in which
23712 Emacs is running.
23713
237142007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23715
23716 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
23717 * s/darwin.h: ... do it here.
23718
237192007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
23720
23721 * lisp.h (set_initial_environment): Rename from set_global_environment.
23722
23723 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
23724 removed by mistake on the multi-tty branch.
23725
23726 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
23727 (Fmodify_frame_parameters): Return a value.
23728
23729 * image.c (png_load): Comment-out var only used in commented-out code.
23730
23731 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
23732 before passing it to mark_object.
23733
23734 * xfaces.c (internal_resolve_face_name): Return a value.
23735 (internal_resolve_face_name, resolve_face_name_error): Comment out.
23736
23737 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
23738 (x_icon): Comment-out var only used in commented-out code.
23739
237402007-08-29 Romain Francoise <romain@orebokech.com>
23741
23742 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
23743 QUIT hasn't been provided.
23744
237452007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23746
23747 * callproc.c (child_setup, getenv_internal): Use the
23748 display-environment-variable and term-environment-variable frame params.
23749 (set_initial_environment): Initialise Vprocess_environment.
23750
23751 * config.in: Disable multi-keyboard support on a mac.
23752
23753 * frame.c (Qterm_environment_variable)
23754 (Qdisplay_environment_variable): New variables.
23755 (syms_of_frame): Intern and staticpro them.
23756 (Fmake_terminal_frame): Disable output method test.
23757
23758 * frame.h: Declare them here.
23759
23760 * macfns.c (x_set_mouse_color): Get rif from the frame.
23761 (x_set_tool_bar_lines): Don't use updating_frame.
23762 (mac_window): Add 2 new parameters for consistency with other systems.
23763 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
23764 frame parameters following what is done in X11 and w32. Don't use
23765 FRAME_MAC_DISPLAY_INFO.
23766 (Fx_open_connection, start_hourglass): Remove window-system check.
23767 (x_create_tip_frame): Get the keyboard from the terminal.
23768
23769 * macmenu.c: Reorder includes.
23770 (Fx_popup_menu): Use terminal specific mouse_position_hook.
23771
23772 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
23773 terminal parameter.
23774 (x_clear_frame): Add a frame parameter.
23775 (note_mouse_movement): Get rif from the frame.
23776 (mac_term_init): Initialize the terminal.
23777 (mac_initialize): Make static and move terminal initialization ...
23778 (mac_create_terminal): ... to this new function.
23779
23780 * macterm.h (struct mac_display_info): Add terminal.
23781 (mac_initialize): Delete declaration.
23782
23783 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
23784
23785 * sysdep.c: Comment out text after #endif.
23786
23787 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
23788 is defined. Better initialize ttys in windows. Use terminal
23789 specific mouse_position_hook.
23790
23791 * termhooks.h (union display_info): Add mac_display_info.
23792
23793 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
23794 Set the default minibuffer frame, window_system and the rest of the
23795 frame parameters following what is done in X11.
23796
23797 * w32term.c (w32_initialize): Make static.
23798
23799 * xselect.c (x_handle_selection_clear): Only access
23800 terminal->kboard when MULTI_KBOARD is defined.
23801
23802 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23803 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23804
238052007-08-29 Jason Rumney <jasonr@gnu.org>
23806
23807 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23808 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23809
23810 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23811 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23812
23813 * keyboard.c (restore_kboard_configuration): Only define when
23814 MULTI_KBOARD defined.
23815
23816 * makefile.w32-in: Update dependancies from Makefile.in.
23817 (OBJ1): Add terminal.$(O)
23818
23819 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23820 Don't define function body.
23821 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23822
23823 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23824
23825 * w32.c (request_sigio, unrequest_sigio): Remove.
23826
23827 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23828 (w32con_clear_frame, w32con_clear_end_of_line)
23829 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23830 (w32con_delete_glyphs, w32con_set_terminal_window)
23831 (scroll_line, w32_sys_ring_bell): Add frame arg.
23832 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23833 Add terminal arg.
23834 (PICK_FRAME): Remove.
23835 (w32con_write_glyphs): Use frame specific terminal coding.
23836 (one_and_only_w32cons): New global variable.
23837 (initialize_w32_display): Use it for storing hooks.
23838 (create_w32cons_output): New function.
23839
23840 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23841 arg a frame.
23842
23843 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23844 Set window_system.
23845 (x_set_tool_bar_lines): Don't use updating_frame.
23846 (Fx_create_frame): Set terminal and ref count.
23847 (Fx_open_connection): Remove window-system check.
23848
23849 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23850
23851 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23852 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23853 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23854 Add frame arg.
23855 (x_delete_terminal, w32_create_terminal): New functions.
23856 (w32_term_init): Create a terminal.
23857 (w32_initialize): Move terminal specific initialization to
23858 w32_create_terminal.
23859
23860 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23861 (w32_clear_rect, w32_clear_area): Use background from frame.
23862 (w32_display_info): Add terminal.
23863 (w32_sys_ring_bell, x_delete_display): Declare here.
23864
23865 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23866
23867 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23868
238692007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23870
23871 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23872 Fix get_named_tty calls for the controlling tty.
23873
238742007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23875
194d44e7 23876 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
23877
238782007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23879
23880 * term.c (tty_insert_glyphs): Add missing first parameter.
23881
238822007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23883
23884 * buffer.c (Fbuffer_list, Fbury_buffer):
23885 Take frame->buried_buffer_list into account.
23886
23887 * cm.c (current_tty): New variable, for cmputc().
23888 (cmputc): Use it.
23889 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23890 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23891 (cmgoto): Add tty parameter. Pass it on to calccost().
23892 Use emacs_tputs() instead of tputs().
23893
23894 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23895 tputs().
23896 (current_tty): New variable, for cmputc().
23897 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23898
23899 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23900 (internal_condition_case, internal_condition_case_1)
23901 (internal_condition_case_2): Don't abort when x_catching_errors.
23902
23903 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23904 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23905 prevent crashes caused by bogus longjmps in read_char.
23906
23907 * keymap.h (Fset_keymap_parent): Add EXFUN.
23908
23909 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23910 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23911 Remove redundant definition.
23912
23913 * macfns.c (x_set_mouse_color, x_make_gc):
23914 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23915
23916 * w32term.c (x_free_frame_resources):
23917 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23918 (w32_initialize): Use the accessor macros for terminal characteristics.
23919
23920 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23921 Use the accessor macros for terminal characteristics.
23922 * msdos.c (internal_terminal_init): Use the accessor macros for
23923 terminal characteristics.
23924 (ScreenVisualBell, internal_terminal_init):
23925 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23926
23927 * termopts.h (no_redraw_on_reenter): Declare.
23928
23929 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23930 (mark_terminals, mark_ttys): Declare.
23931 (Fgarbage_collect): Call them.
23932 (mark_object): Mark buried_buffer_list.
23933
23934 * prefix-args.c: Include stdlib.h for exit.
23935
23936 * syssignal.h: Add comment.
23937
23938 * indent.c: Include stdio.h.
23939
23940 * window.h (Vinitial_window_system): Declare.
23941 (Vwindow_system): Delete declaration.
23942
23943 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23944
23945 * image.c (lookup_image): Don't initialize `c' until the xasserts
23946 have been run.
23947
23948 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23949 FRAME_FOREGROUND_PIXEL.
23950
23951 * print.c (print_preprocess): Don't lose print_depth levels while
23952 iterating.
23953
23954 * widget.c (update_from_various_frame_slots):
23955 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23956
23957 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23958 frames.
23959 (window_internal_height): Remove bogus make_number call.
23960 (init_window_once): Call make_terminal_frame with two zero parameters.
23961
23962 * fileio.c (Fread_file_name): Update comment.
23963
23964 * callint.c (Fcall_interactively):
23965 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23966 Make sure it is correctly unwound.
23967
23968 * xsmfns.c (x_session_close): New function.
23969
23970 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23971 Delete declarations.
23972
23973 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23974 (x_output): Remove background_pixel and foreground_pixel fields.
23975 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23976 (x_delete_device, x_session_close): Declare.
23977
23978 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23979 (read_filtered_event): Call `read_char' with a local
23980 `wrong_kboard_jmpbuf'.
23981
23982 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23983 Don't call single_kboard_state. Use FRAME_RIF.
23984
23985 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23986 systems.
23987
23988 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23989 (Fframe_with_environment, Fset_input_meta_mode)
23990 (Fset_quit_char): EXFUN.
23991 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23992 (init_sys_modes, reset_sys_modes): Update prototypes.
23993 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23994
23995 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
23996 Vlocal_key_translation_map, and Vkeyboard_translate_table.
23997 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
23998 Delete declarations.
23999 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24000 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24001 New declarations.
24002
24003 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24004 already does that during init_display(). Call syms_of_keymap
24005 before syms_of_keyboard. Call `syms_of_terminal'.
24006 Call set_initial_environment, not set_process_environment.
24007 (shut_down_emacs): Call reset_all_sys_modes() instead of
24008 reset_sys_modes().
24009
24010 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24011 (internal_resolve_face_name, resolve_face_name_error): New functions.
24012 (resolve_face_name): Protect against loops and errors thrown by Fget.
24013 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24014 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24015
24016 * scroll.c: Replace CURTTY() with local variables throughout the
24017 file (where applicable).
24018 (calculate_scrolling, calculate_direct_scrolling)
24019 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24020 characteristics.
24021
24022 * keymap.c (Vfunction_key_map): Remove.
24023 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24024 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24025 (Vkey_translation_map): Remove.
24026 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24027 (Fdescribe_buffer_bindings)
24028 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24029 Update for terminal-local key-translation-map.
24030
24031 * Makefile.in (callproc.o): Update dependencies.
24032 (lisp, shortlisp): Add termdev.elc.
24033 (obj): Add terminal.o.
24034 (terminal.o): Add dependencies.
24035 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24036 (data.o, fns.o): Add termhooks.h dependency.
24037 (SOME_MACHINE_LISP): Add dnd.elc.
24038 (minibuf.o): Fix typo.
24039 Update dependencies.
24040
24041 * data.c (do_symval_forwarding, store_symval_forwarding)
24042 (find_symbol_value): Use the selected frame's keyboard, not
24043 current_kboard.
24044
24045 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24046 Vwindow_system.
24047
24048 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24049 Fmenu_bar_open.
24050 (syms_of_xmenu): Update defsubr.
24051 (mouse_position_for_popup, Fx_popup_menu)
24052 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24053 (set_frame_menubar, free_frame_menubar)
b97439ce 24054 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24055 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24056 an X frame.
24057
24058 * xselect.c (x_own_selection): Abort if not an X frame.
24059 (some_frame_on_display): Check if it is an X frame.
24060 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24061
24062 * coding.c: Include frame.h and termhooks.h.
24063 (terminal_coding, keyboard_coding): Delete.
24064 (Fset_terminal_coding_system_internal)
24065 (Fset_keyboard_coding_system_internal)
24066 (Fkeyboard_coding_system)
24067 (Fterminal_coding_system): Add a terminal parameter.
24068 Get terminal_coding from the terminal.
24069 (init_coding_once): Don't call setup_coding_system here.
24070
24071 * dispextern.h (set_scroll_region, turn_off_insert)
24072 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24073 (tty_clear_end_of_line, tty_setup_colors)
24074 (delete_tty, updating_frame)
24075 (produce_special_glyphs, produce_glyphs, write_glyphs)
24076 (insert_glyphs): Remove.
24077 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24078 (tty_turn_off_highlight, get_tty_size): Add declaration.
24079 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24080
24081 * frame.h (enum output_method): Add output_initial.
24082 (struct x_output): Delete.
24083 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24084 Access foreground_pixel and background_pixel directly from the frame.
24085 (tty_display): Delete.
24086 (struct frame): Add buried_buffer_list, foreground_pixel,
24087 background_pixel and terminal. Delete kboard.
24088 (union output_data): Add tty.
24089 (FRAME_KBOARD): Get the kboard from the terminal.
24090 (FRAME_INITIAL_P): New macro.
24091 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24092 (Qterm_environment_variable, Qdisplay_environment_variable)
24093 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24094 New declarations.
24095
24096 * termchar.h (tty_output, tty_display_info): New structures.
24097 (tty_list): Declare.
24098 (FRAME_TTY, CURTTY): New macros.
24099 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24100 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24101 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24102 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24103
24104 * callproc.c: Include frame.h and termhooks.h, for terminal
24105 parameters.
24106 (add_env): New function.
24107 (child_setup): Use it.
24108 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24109 (getenv_internal): Fix get_terminal_param call.
24110 (Fgetenv_internal, egetenv): Update doc.
24111 (syms_of_callproc): Initialize Vprocess_environment to nil.
24112 Register and initialize them. Remove obsolete defvars. Update doc
24113 strings.
24114 (child_setup): Handle Vlocal_environment_variables.
24115 (getenv_internal): Add terminal parameter.
24116 Handle Vlocal_environment_variables.
24117 (Fgetenv_internal): Add terminal parameter.
24118 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24119 environment in a frame (not terminal) parameter. Update doc strings.
24120 (set_initial_environment): Rename from set_global_environment.
24121 Store Emacs environment in initial frame parameter.
24122
24123 * xdisp.c (redisplay_internal): Update references to
24124 `previous_terminal_frame'.
24125 (display_mode_line, Fformat_mode_line): Replace calls to
24126 `push_frame_kboard' with `push_kboard'.
24127 (get_glyph_string_clip_rects): Add extra parentheses and
24128 braces to prevent compiler warnings.
24129 (calc_pixel_width_or_height): Add xassert to check that the
24130 frame is alive. Don't call `lookup_image' on a termcap frame.
24131 (message2_nolog, message3_nolog, redisplay_internal)
24132 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24133 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24134 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24135 (Fx_display_pixel_width, Fx_display_pixel_height)
24136 (Fx_display_planes, Fx_display_color_cells)
24137 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24138 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24139 (Fx_display_backing_store, Fx_display_visual_class)
24140 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24141 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24142
24143 * xfns.c (x_set_foreground_color x_set_background_color)
24144 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24145 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24146 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24147 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24148 terminal that is being deleted.
24149 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24150 frame parameter, and make sure it overrides any user-supplied setting.
24151 (Fx_close_connection, Fx_synchronize): Unify argument names with
24152 the rest of the DEFUNs.
24153
24154 * dispnew.c (Fsend_string_to_terminal): Update call to
24155 `get_tty_terminal'.
24156 (Fredraw_frame, Fsend_string_to_terminal)
24157 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24158 FRAME_TERMCAP_P and FRAME_TTY.
24159 (window_change_signal): Don't believe width/height values that are
24160 impossibly small.
24161 (Vinitial_window_system): Rename from Vwindow_system.
24162 (termscript, Wcm, rif): Delete.
24163
24164 * termhooks.h (struct terminal): New struct containing the
24165 previously global text display hooks and new members NAME,
24166 DELETED and PARAM_ALIST.
24167 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24168 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24169 (FRAME_RIF): New macros.
24170 (get_terminal_param, get_device): New declarations.
24171 (termscript): Delete declaration.
24172
24173 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24174 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24175 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24176 FRAME_FOREGROUND_PIXEL.
24177 (x_fully_uncatch_errors): Disable definition.
24178 (x_scroll_bar_expose): Fix reference to foreground pixel.
24179 (XTread_socket): Disable loop on all X displays.
24180 (x_delete_terminal): Don't set terminal->deleted and let
24181 delete_terminal delete the frames on the terminal.
24182 (x_delete_display): Doc update to reflect changes in
24183 delete_terminal.
24184 (x_display_info) <terminal>: Move member earlier in the struct.
24185 (deleting_tty): Remove old variable.
24186 (Fsuspend_tty): Call clear_tty_hooks.
24187 (Fresume_tty, init_tty): Call set_tty_hooks.
24188 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24189 errors on X frames.
24190 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24191 (handle_one_xevent): Initialize `f' to NULL.
24192 (x_delete_terminal, x_create_terminal): New functions.
24193 (XTset_terminal_modes, XTreset_terminal_modes)
24194 (XTread_socket, x_connection_closed, x_term_init)
24195 (x_term_init, x_delete_display): Add terminal parameter.
24196 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24197 X connections.
24198
24199 * frame.c: Include termchar.h.
24200 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24201 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24202 (Qdisplay_environment_variable): New vars.
24203 (Fframep): Deal with output_initial.
24204 (Fframe-live-p): Doc fix.
24205 (Fwindow-system): New function.
24206 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24207 (make_terminal_frame): Don't create frames on a terminal that is
24208 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24209 (store_frame_param): Check for found_for_frame before calling XFRAME.
24210 (Fmake_terminal_frame): Handle NULL tty names correctly.
24211 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24212 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24213 frames to refer to a deleted frame in their 'environment parameter.
24214 (Fframe_with_environment): New function.
24215 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24216 (get_future_frame_param): New function.
24217 (Fmake_terminal_frame): Use it.
24218 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24219
24220 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24221 * sysdep.c (reset_sys_modes): Update for renames.
24222
24223 * keyboard.c (tty_read_avail_input): New function.
24224 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24225 (syms_of_keyboard): Defsubr them.
24226 (Fset_input_meta_mode, Fset_quit_char): New functions.
24227 (Fset_input_mode): Split to above functions.
24228 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24229 parameter. Use it in call to `read_char'.
24230 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24231 Set wrong_kboard_jmpbuf correctly in recursive calls.
24232 Use current_kboard to access Vkeyboard_translate_table.
24233 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24234 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24235 Update longjmp invocations. Remember the original current_kboard,
24236 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24237 changes it. Comment out unnecessary calls to
24238 `record_single_kboard_state' and `any_kboard_state'.
24239 Update recursive calls.
24240 (wrong_kboard_jmpbuf): Remove global variable.
24241 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24242 Handle deleted interrupted_kboards correctly; that is a legal
24243 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24244 and read_char calls. Abort if interrupted_kboard died in read_char.
24245 (any_kboard_state, single_kboard_state)
24246 (push_frame_kboard): Remove function.
24247 (pop_kboard): Switch out of single_kboard mode if the kboard has
24248 been deleted. Remove unused variable. Help debugging by not
24249 changing current_kboard unnecessarily. Set current_kboard to the
24250 kboard of the selected frame when the stored kboard object has
24251 been deleted before pop_kboard.
24252 (temporarily_switch_to_single_kboard): Change first parameter to a
24253 frame pointer. Throw an error when caller wants to change kboards
24254 while in single_kboard mode. Don't push_kboard if we weren't in
24255 single kboard state. Don't pop_kboard if we popped into any
24256 kboard state.
24257 (restore_kboard_configuration): Abort if pop_kboard changed the
24258 kboard in single_kboard mode. Call pop_kboard only after setting
24259 up single_kboard mode.
24260 (Frecursive_edit): Switch to single_kboard mode only in nested
24261 command loops.
24262 (cmd_error, command_loop, command_loop_1, timer_check):
24263 Comment out unnecessary call to `any_kboard_state' and
24264 `record_single_kboard_state'.
24265 (delete_kboard): Exit single_kboard mode if we have just deleted
24266 that kboard. Use FRAME_KBOARD.
24267 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24268 `fatal_error_signal'.
24269 (record_single_kboard_state): Don't push_kboard if we weren't in
24270 single kboard state. Don't pop_kboard if we popped into any
24271 kboard state.
24272 (push_frame_kboard): Rename to push_kboard.
24273 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24274 (read_avail_input): Read input from all terminals.
24275 (mark_kboards): Also mark Vkeyboard_translate_table.
24276 (kbd_buffer_store_event_hold): Simplify condition.
24277 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24278 (Vkeyboard_translate_table): Move to struct kboard.
24279 (init_kboard): Initialize Vkeyboard_translate_table.
24280 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24281 Vkeyboard_translate_table. Update doc strings. Update docs of
24282 local-function-key-map and function-key-map.
24283
24284 * terminal.c: New file.
24285
24286 * term.c: Include errno.h.
24287 (Vring_bell_function, device_list, initial_device)
24288 (next_device_id, ring_bell, update_begin, update_end)
24289 (set_terminal_window, cursor_to, raw_cursor_to)
24290 (clear_to_end, clear_frame, clear_end_of_line)
24291 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24292 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24293 (syms_of_term): Move their initialization to terminal.c.
24294 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24295 (Ftty_display_color_cells)
24296 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24297 (clear_tty_hooks, set_tty_hooks)
24298 (init_tty, maybe_fatal): New functions.
24299 (Ftty_type): Return nil if terminal is not on a tty instead of
24300 throwing an error. Doc update.
24301 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24302 Doc update. Initialize new subrs and variables.
24303 (delete_tty): Use terminal->deleted.
24304 (tty_set_terminal_modes): Rename from set_terminal_modes.
24305 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24306 (set_scroll_region): Rename to `tty_set_scroll_region'.
24307 (turn_on_insert): Rename to `tty_turn_on_insert'.
24308 (turn_off_insert): Rename to `tty_turn_off_insert'.
24309 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24310 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24311 (toggle_highligh): Rename to `tty_toggle_highlight'.
24312 (background_highlight): Rename to `tty_background_highlight'.
24313 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24314 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24315 (tty_set_scroll_region, tty_background_highlight)
24316 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24317 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24318 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24319 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24320 Add static modifier.
24321 (tty_reset_terminal_modes, tty_set_terminal_window)
24322 (tty_set_scroll_region, tty_background_highlight)
24323 (tty_highlight_if_desired, tty_cursor_to)
24324 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24325 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24326 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24327 renames.
24328
243292007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24330
24331 * keyboard.c: Qrtl is new.
24332 (parse_tool_bar_item): Handle :rtl keyword.
24333 (syms_of_keyboard): Intern :rtl keyword.
24334
24335 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24336
24337 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24338 so no Lisp code is executed.
24339 (file_for_image, find_rtl_image): New functions.
24340 (xg_get_image_for_pixmap): Use file_for_image.
24341 (update_frame_tool_bar): If direction is RTL, use RTL image if
24342 defined. Use Gtk stock images if defined.
24343
243442007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24345
24346 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24347 for nonexistent or zero-width glyph in composition glyph.
24348
243492007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24350
24351 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24352
24353 * xdisp.c (Finvisible_p): New function.
24354 (syms_of_xdisp): defsubr it.
24355
243562007-08-24 Juanma Barranquero <lekktu@gmail.com>
24357
24358 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24359 Doc fixes.
24360
243612007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24362
24363 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24364
243652007-08-24 Martin Rudalics <rudalics@gmx.at>
24366
24367 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24368 whether decoding has modified buffer contents.
24369
243702007-08-24 Jason Rumney <jasonr@gnu.org>
24371
24372 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24373 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24374 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24375 (init_svg_functions) [HAVE_NTGUI]: New function.
24376 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24377 (svg_load_image): Use them.
24378 (svg_load_image) [HAVE_NTGUI]: Implement background.
24379
243802007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24381
24382 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24383 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24384 (LIBX): Remove @RSVG_LIBS@.
24385 (LIBES): Add $(RSVG_LIBS).
24386
24387 * image.c (svg_load_image): Blend with specified background if exists.
24388 Use IMAGE_BACKGROUND. Add Mac OS Support.
24389
24390 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24391 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24392 Remove macros.
24393 [MAC_OSX] (socket_callback): Do nothing.
24394 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24395 ReceiveNextEvent.
24396 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24397 socket_callback.
24398 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24399
244002007-08-22 Glenn Morris <rgm@gnu.org>
24401
24402 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24403
244042007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24405
24406 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24407
24408 * image.c: Add support for SVG images. Some additional comments
24409 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24410 (svg_image_p): New function to test for SVG image.
24411 (svg_load): New function to load SVG image.
24412 (svg_load_image): New function, helper for svg_load.
24413 (Qsvg): New Lisp_object.
24414 (svg_keyword_index): New enum.
24415 (svg_format): New static `image_keyword' struct.
24416 (svg_type): New static `image_type' struct.
24417 (librsvg/rsvg.h): Include it.
24418
244192007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24420
24421 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24422
244232007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24424
24425 * lread.c (Qold_style_backquotes): New var.
24426 (syms_of_lread): Init and staticpro it.
24427 (load_warn_old_style_backquotes): New fun.
24428 (Fload): Use them to warn about old style backquotes.
24429 (end_of_file_error, Fload): Remove unused vars.
24430
24431 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24432
24433 * lread.c (Vold_style_backquotes): New var.
24434 (syms_of_lread): Init and export it to Elisp.
24435 (read1): Set it when we find an old-style (back)quote.
24436
244372007-08-22 Jason Rumney <jasonr@gnu.org>
24438
24439 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24440
244412007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24442
24443 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24444
244452007-08-19 Richard Stallman <rms@gnu.org>
24446
24447 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24448
244492007-08-19 Andreas Schwab <schwab@suse.de>
24450
24451 * alloc.c (pure): Round PURESIZE up.
24452
244532007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24454
24455 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24456 active frame.
24457
244582007-08-16 Richard Stallman <rms@gnu.org>
24459
24460 * eval.c (Fcommandp): Add parens to clarify.
24461
24462 * minibuf.c (Fall_completions): Use enum for type of table.
24463
24464 * emacs.c (USAGE2): Improve text.
24465
244662007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24467
24468 * term.c (tty_default_color_capabilities): Declare static
24469 variables in file scope, to avoid HPUX compiler problem.
24470
244712007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24472
24473 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24474 to gtk_toolbar_insert.
24475
244762007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24477
24478 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24479
24480 * insdel.c (reset_var_on_error): New fun.
24481 (signal_before_change, signal_after_change):
24482 Use it to reset (after|before)-change-functions to nil in case of error.
24483 Bind inhibit-modification-hooks to t.
24484 Don't bind (after|before)-change-functions to nil while they run.
24485
244862007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24487
24488 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24489 filling pixmap with stippled background.
24490
244912007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24492
24493 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24494 Don't use invisible frame as parent window for repositioning.
24495
244962007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
24497
24498 * print.c (new_backquote_output): Rename from old_backquote_output.
24499 (print): Inverse its logic (according to its name) so as to match the
24500 behavior of new_backquote_flag in lread.c.
24501
245022007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24503
24504 * gmalloc.c (posix_memalign): New function.
24505
24506 * macterm.c (frame_highlight, frame_unhighlight): Don't call
24507 ActivateControl/DeactivateControl here.
24508 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
24509 frame-notice-user-settings is non-nil.
24510 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
24511 for kEventParamFMFontStyle.
24512 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
24513 mac_pass_command_to_system and mac_pass_control_to_system here.
24514 (XTread_socket): Call ActivateControl/DeactivateControl here.
24515 (XTread_socket) [TARGET_API_MAC_CARBON]:
24516 Check mac_pass_command_to_system and mac_pass_control_to_system here.
24517 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
24518 for window repositioning.
24519
245202007-08-08 Glenn Morris <rgm@gnu.org>
24521
24522 * Replace `iff' in doc-strings and comments.
24523
245242007-08-07 Chong Yidong <cyd@stupidchicken.com>
24525
24526 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
24527
245282007-08-07 Martin Rudalics <rudalics@gmx.at>
24529
24530 * fileio.c (Finsert_file_contents): Run format-decode and
24531 after_insert_file_functions on entire buffer when REPLACE is
24532 non-nil and inhibit modification_hooks and point_motion_hooks.
24533 For consistency, run after_insert_file_functions iff something
24534 got inserted. Move signal_after_change and update_compositions
24535 after code running after_insert_file_functions. Make sure that
24536 undo_list doesn't record intermediate steps of the decoding process.
24537
245382007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24539
24540 * emacs.c (main)
24541 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24542 Call malloc_enable_thread on interactive startup.
24543
24544 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24545 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24546 [USE_PTHREAD]: Conditionalize with it.
24547 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24548 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24549 New functions.
24550
245512007-08-06 Chong Yidong <cyd@stupidchicken.com>
24552
24553 * xdisp.c (redisplay_window): When restoring original buffer
24554 position, make sure it is still valid.
24555
24556 * image.c (png_load): Ignore png-supplied background color.
24557
245582007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24559
24560 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24561 Use kCFAbsoluteTimeIntervalSince1970.
24562
24563 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24564 New variable.
24565 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24566 event loop should be quit.
24567 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24568 Quit dialog event loop if quit_dialog_event_loop is set.
24569
24570 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24571 (Selection): New typedef. Use instead of ScrapRef.
24572 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24573 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24574 (mac_clear_selection): Rename from clear_scrap.
24575 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24576 scrap_has_target_type. All uses changed.
24577 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24578 (mac_selection_has_target_p): New functions.
24579 (mac_put_selection_value): Rename from put_scrap_string.
24580 (mac_get_selection_value): Rename from get_scrap_string.
24581 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24582 (put_scrap_private_timestamp, scrap_has_target_type)
24583 (get_scrap_private_timestamp): Remove functions.
24584 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24585 (x_own_selection, x_get_local_selection):
24586 Use mac_valid_selection_value_p.
24587 (x_own_selection): Don't use put_scrap_private_timestamp.
24588 Record OWNERSHIP-INFO into Vselection_alist instead.
24589 (x_get_local_selection): Don't check type if request is local.
24590 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24591 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24592
245932007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24594
24595 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24596 add comment explaining why.
24597
245982007-08-03 Richard Stallman <rms@gnu.org>
24599
24600 * fileio.c (Fvisited_file_modtime): Use make_time.
24601
246022007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24603
24604 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24605 build.
24606
246072007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24608
24609 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24610
246112007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24612
24613 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24614
246152007-07-30 Richard Stallman <rms@gnu.org>
24616
24617 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24618
246192007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24620
24621 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24622
246232007-07-28 Nick Roberts <nickrob@snap.net.nz>
24624
24625 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24626 remote default-directory.
24627
24628 * buffer.c (mode-line-format): Update doc string.
24629
246302007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24631
24632 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24633 scroll bar gap.
24634 (x_scroll_bar_create): Set bar->fringe_extended_p.
24635 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24636 on frame edge. Check fringe background extension. Don't clear
24637 extended fringe background area.
24638
24639 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24640 (w32_fill_area): Enclose multiple statements with do ... while (0).
24641
24642 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
24643 Extend fringe background to scroll bar gap.
24644 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
24645 Set bar->fringe_extended_p.
24646 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24647 Put leftmost/rightmost scroll bars on frame edge. Check fringe
24648 background extension. Don't clear extended fringe background area.
24649
24650 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24651 New member fringe_extended_p.
24652
246532007-07-25 Glenn Morris <rgm@gnu.org>
24654
24655 * Relicense all FSF files to GPLv3 or later.
24656
24657 * COPYING: Switch to GPLv3.
24658
246592007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
24660
24661 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
24662
24663 * data.c (Finteractive_form): Check for the presence of an
24664 `interactive-form' symbol property more thoroughly.
24665
24666 * data.c (Finteractive_form): Use an `interactive-form' property if
24667 present, analogous to the function-documentation property.
24668
246692007-07-24 Jason Rumney <jasonr@gnu.org>
24670
24671 * w32fns.c (x_real_positions): Get real position from OS instead of
24672 calculating it.
24673
246742007-07-23 Jason Rumney <jasonr@gnu.org>
24675
24676 * filelock.c (current_lock_owner): Allow for @ sign in username.
24677
246782007-07-22 Nick Roberts <nickrob@snap.net.nz>
24679
24680 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
24681 remote default-directory.
24682
24683 * buffer.c (mode-line-format): Describe above case in doc string.
24684
246852007-07-20 Eli Zaretskii <eliz@gnu.org>
24686
24687 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
24688 Define if not defined.
24689
246902007-07-18 Jason Rumney <jasonr@gnu.org>
24691
24692 * w32proc.c (w32_executable_type): Handle 64 bit executables.
24693
246942007-07-18 Richard Stallman <rms@gnu.org>
24695
24696 * data.c (Fsetq_default): Doc fix.
24697
24698 * eval.c (Fsetq): Doc fix.
24699
247002007-07-18 Juanma Barranquero <lekktu@gmail.com>
24701
24702 * coding.c (Ffind_operation_coding_system):
24703 * eval.c (For, Fand): Doc fixes.
24704 Reported by Johan Bockgård.
24705
247062007-07-18 Jan Djärv <jan.h.d@swipnet.se>
24707
24708 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
24709
24710 * xterm.h: Declare x_ewmh_activate_frame.
24711
24712 * xterm.c (x_ewmh_activate_frame): New function.
24713 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
24714
247152007-07-17 Martin Rudalics <rudalics@gmx.at>
24716
24717 * window.c (Fdisplay_buffer): If largest or LRU window is the
24718 only window, split it even if it is not eligible for splitting.
24719 This restores the original behavior broken by the 2007-07-15
24720 change.
24721
247222007-07-17 Glenn Morris <rgm@gnu.org>
24723
24724 * abbrev.c (abbrev_check_chars): New function.
24725 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24726 Call abbrev_check_chars to check abbrev characters are word
24727 constituents. Doc fix.
24728
247292007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
24730
24731 * process.c (Fstart_process, Fmake_network_process)
24732 (read_process_output): Fix up last changes.
24733
247342007-07-16 Eli Zaretskii <eliz@gnu.org>
24735
24736 * makefile.w32-in (clean): Don't delete *~.
24737
247382007-07-16 Andreas Schwab <schwab@suse.de>
24739
24740 * window.c (Fdisplay_buffer): Use NILP.
24741 (Fset_window_scroll_bars): Likewise.
24742
247432007-07-15 Martin Rudalics <rudalics@gmx.at>
24744
24745 * window.c (window_min_size_2): New function.
24746 (window_min_size_1, size_window, Fdisplay_buffer)
24747 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
24748 windows without mode- or header-lines when window-min-height is
24749 too small.
24750 (size_window): Reset nodelete_p after testing it, following an
24751 earlier note by Kim F. Storm.
24752 (display_buffer): Do not set split_height_threshold to twice the
24753 value of window_min_height to avoid changing the value of a
24754 customizable variable. Rather explicitly check whether the
24755 height of the window that shall be splitted is at least as large
24756 as split_height_threshold.
24757 (Fwindow_full_width_p): New defun.
24758 (syms_of_window): Defsubr it.
24759
24760 * window.h: Add EXFUN for Fwindow_full_width_p.
24761
247622007-07-14 Jason Rumney <jasonr@gnu.org>
24763
24764 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
24765
247662007-07-14 Richard Stallman <rms@gnu.org>
24767
24768 * eval.c (maybe_call_debugger): New function.
24769 (find_handler_clause): Use maybe_call_debugger.
24770 Call it when the handler says `debug'.
24771 Eliminate DEBUGGER_VALUE_PTR.
24772 (Fsignal): Eliminate debugger_value.
24773 (Qdebug): New variable.
24774 (syms_of_eval): Initialize it.
24775
247762007-07-14 Juanma Barranquero <lekktu@gmail.com>
24777
24778 * eval.c (Fprogn):
24779 * keyboard.c (Ftrack_mouse):
24780 * print.c (Fwith_output_to_temp_buffer):
24781 * window.c (Fsave_window_excursion): Doc fix.
24782
247832007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
24784
24785 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
24786
247872007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
24788
24789 * process.h (struct Lisp_Process): Turn slots infd, outfd,
24790 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
24791 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
24792 read_output_delay, and read_output_skip from Lisp_Objects to ints.
24793 Remove unused encoding_carryover.
24794 * process.c: Adjust all functions accordingly.
24795
247962007-07-12 Richard Stallman <rms@gnu.org>
24797
24798 * term.c: Include unistd.h only if HAVE_UNISTD_H.
24799
248002007-07-11 Jason Rumney <jasonr@gnu.org>
24801
24802 * makefile.w32-in (LIBS): Include OLE32.
24803
24804 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24805 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24806
248072007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24808
24809 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24810 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24811 from a Lisp_Object into a bare pointer.
24812 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24813 Adjust the code correspondingly.
24814
24815 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24816
24817 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24818 (term_show_mouse_face): Remove unused var `j'.
24819 (handle_one_term_event): Remove unused vars `i' and `j'.
24820 Don't cast return value of ttyname since it's not necessary.
24821
248222007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24823
24824 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24825 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24826
24827 * fns.c (map_char_table): Use an array of int for `indices' rather than
24828 an array of Lisp_Objects (which are only ever integers anyway).
24829 (Fmap_char_table): Update caller.
24830 * lisp.h: Update prototype.
24831 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24832 * fontset.c (Ffontset_info):
24833 * casetab.c (set_case_table): Update callers.
24834
24835 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24836
24837 * keymap.c (struct accessible_keymaps_data)
24838 (struct where_is_internal_data): New structures.
24839 (accessible_keymaps_1, where_is_internal_1): Use them to change
24840 interface to adhere to the one used by map_keymap.
24841 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24842 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24843
24844 * keymap.h (map_keymap_function_t): More informative prototype.
24845
248462007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24847
24848 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24849 (looking_at_1): Don't change search_regs and last_thing_searched
24850 if `inhibit-changing-match-data' is non-nil.
24851 (string_match_1, search_buffer, set_search_regs): Likewise.
24852 (syms_of_search): Add Lisp level definition for
24853 `inhibit-changing-match-data' and set it to nil.
24854 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24855 start and end of the match, instead of using values in search_regs.
24856
248572007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24858
24859 * minibuf.c (Fcompleting_read): New value `confirm-only'
24860 for `require-match'.
24861
248622007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24863
24864 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24865 part of the 2007-06-27 change to syms_of_fileio.
24866
248672007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24868
24869 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24870 Check WINDOWP before using XWINDOW. Consolidate return statements.
24871
248722007-06-27 Richard Stallman <rms@gnu.org>
24873
24874 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24875
248762007-06-27 Juanma Barranquero <lekktu@gmail.com>
24877
24878 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24879
248802007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24881
24882 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24883 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24884 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24885 (_free_internal, memalign): Use them.
24886 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24887 Initialize to PTHREAD_MUTEX_INITIALIZER.
24888 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24889 (morecore_nolock): Rename from morecore. All uses changed.
24890 Use only nolock versions of internal allocation functions.
24891 (_malloc_internal_nolock, _realloc_internal_nolock)
24892 (_free_internal_nolock): New functions created from
24893 _malloc_internal, _realloc_internal, and _free_internal.
24894 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24895 Copy hook value to automatic variable before its use.
24896 (memalign): Copy hook value to automatic variable before its use.
24897
248982007-06-26 Kenichi Handa <handa@m17n.org>
24899
24900 * coding.c (Ffind_operation_coding_system): Docstring improved.
24901 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24902
249032007-06-25 David Kastrup <dak@gnu.org>
24904
24905 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24906 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24907 cater for additional parameter.
24908
24909 * keymap.h: Adjust number of parameters to `current-active-maps'.
24910
24911 * doc.c (Fsubstitute_command_keys): Adjust call of
24912 `current-active-maps'.
24913
249142007-06-25 David Kastrup <dak@gnu.org>
24915
24916 * callint.c (Fcall_interactively): Make the parsing of interactive
24917 specs somewhat more readable.
24918
249192007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24920
24921 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24922 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24923 if extended background has already been filled.
24924
249252007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24926
24927 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24928 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24929
24930 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24931 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24932 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24933 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24934 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24935 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24936 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24937 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24938 Run timers during dialog popup.
24939 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24940
249412007-06-21 Jason Rumney <jasonr@gnu.org>
24942
24943 * image.c (convert_mono_to_color_image): Swap fore and background.
24944
249452007-06-20 Jason Rumney <jasonr@gnu.org>
24946
24947 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24948 (w32_free_bdf_font): Unmap memory not handle.
24949
249502007-06-20 Sam Steingold <sds@gnu.org>
24951
24952 * gmalloc.c (__morecore): Fix the declaration to comply with the
24953 definition.
24954
249552007-06-20 Juanma Barranquero <lekktu@gmail.com>
24956
24957 * w32term.c (w32_delete_display): Remove leftover declaration.
24958 (w32_define_cursor, w32_initialize): Make static.
24959
24960 * w32.c (_wsa_errlist): Fix typo in error message.
24961 (init_environment): Ignore any environment variable from the
24962 registry having a null value.
24963
249642007-06-20 Glenn Morris <rgm@gnu.org>
24965
24966 * Makefile.in (LIBGIF): Default to -lgif.
24967
249682007-06-17 Jason Rumney <jasonr@gnu.org>
24969
24970 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24971 unicode strings.
24972
249732007-06-16 Juanma Barranquero <lekktu@gmail.com>
24974
24975 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24976 Fix typo in docstring.
24977
249782007-06-16 Eli Zaretskii <eliz@gnu.org>
24979
24980 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24981 and their keybindings.
24982
249832007-06-15 Chong Yidong <cyd@stupidchicken.com>
24984
24985 * composite.c (update_compositions): Fix last fix.
24986
249872007-06-14 Jason Rumney <jasonr@gnu.org>
24988
24989 * w32.c (get_process_times_fn): New function pointer.
24990 (globals_of_w32): Intialize it if present in kernel32.dll.
24991 (w32_get_internal_run_time): New function.
24992
24993 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24994
249952007-06-14 Kenichi Handa <handa@etlken.m17n.org>
24996
24997 * composite.c (update_compositions): Check the validness of
24998 compositions.
24999
250002007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25001
25002 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25003 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25004
25005 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25006 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25007
25008 * macgui.h (USE_MAC_TOOLBAR): New define.
25009
25010 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25011 Return immediately unless popup is activated.
25012
25013 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25014 background to scroll bar gap.
25015 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25016 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25017 scroll bars on frame edge. Check fringe background extension.
25018 Don't clear extended fringe background area.
25019 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25020 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25021 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25022 [USE_MAC_TOOLBAR]: New macros.
25023 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25024 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25025 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25026 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25027 [USE_MAC_TOOLBAR]: New functions.
25028 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25029 manually if previous repositioning has failed.
25030 (mac_handle_keyboard_event): Use precomputed event kind.
25031 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25032 as tool bar item click. Handle mouse movement over tool bar items.
25033
25034 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25035 toolbar_win_gravity.
25036 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25037 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25038 Add externs.
25039
25040 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25041 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25042
250432007-06-14 Chong Yidong <cyd@stupidchicken.com>
25044
25045 * image.c (search_image_cache): Remove unused variable.
25046
250472007-06-13 Chong Yidong <cyd@stupidchicken.com>
25048
25049 * xfns.c, xmenu.c: Link to xaw3d if available.
25050
250512007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25052
25053 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25054 frame_foreground and frame_background.
25055
25056 * image.c (lookup_image): Save frame foreground and background colors.
25057 (search_image_cache): Check if saved and current frame colors match.
25058
250592007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25060
25061 * regex.c (regex_compile): Remove the `regnum' counter.
25062 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25063
250642007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25065
25066 * term.c: Include intervals.h to declare Fget_text_property.
25067
250682007-06-10 Jason Rumney <jasonr@gnu.org>
25069
25070 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25071
250722007-06-08 Juanma Barranquero <lekktu@gmail.com>
25073
25074 * callint.c (Fcall_interactively):
25075 * editfns.c (Fdelete_and_extract_region):
25076 * fileio.c (Fread_file_name):
25077 * fns.c (Fmapconcat):
25078 * keyboard.c (cmd_error_internal):
25079 * keymap.c (Fkey_description):
25080 * lread.c (openp):
25081 * minibuf.c (read_minibuf):
25082 * search.c (wordify):
25083 * sunfns.c (sel_read):
25084 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25085 * xfns.c (x_default_scroll_bar_color_parameter):
25086 * xmenu.c (menu_help_callback):
25087 * xselect.c (Fx_get_atom_name):
25088 * xterm.c (x_term_init): Use empty_unibyte_string.
25089
250902007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25091
25092 * alloc.c (init_strings): Initialize canonical empty strings.
25093 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25094 canonical empty string when the requested size is 0.
25095
25096 * emacs.c (empty_unibyte_string): Rename from empty_string.
25097 (empty_multibyte_string): New canonical empty string.
25098 (syms_of_emacs): Don't initialize empty_string.
25099
25100 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25101 string, if appropriate.
25102 (empty_unibyte_string, empty_multibyte_string): New externs.
25103 (empty_string): Remove extern.
25104
25105 * lread.c (syms_of_lread): Use empty_unibyte_string.
25106
251072007-06-07 Jason Rumney <jasonr@gnu.org>
25108
25109 * s/ms-w32.h: Don't define HAVE_TZNAME.
25110
25111 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25112
251132007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25114
25115 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25116
25117 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25118 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25119
25120 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25121 Don't call next handler.
25122 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25123 Remove argument. Install handler to application.
25124 (set_frame_menubar): Don't change deep_p.
25125 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25126 FRAME_OUTER_TO_INNER_DIFF_Y.
25127 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25128 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25129 [HAVE_DIALOGS]: New macros.
25130 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25131 Use them.
25132 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25133
25134 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25135 init_service_handler. All callers changed. Return OSStatus value.
25136
25137 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25138 All callers changed so as not to call SetPortWindowPort.
25139 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25140 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25141 mac_draw_string_common.
25142 (mac_draw_image_string_qd): Likewise.
25143 (mac_draw_string_common): Use them. Add INLINE.
25144 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25145 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25146 GetGlobalMouse.
25147 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25148 and FRAME_OUTER_TO_INNER_DIFF_Y.
25149 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25150 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25151 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25152 repositioning window to mac_handle_window_event.
25153 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25154 saving window location to mac_handle_window_event
25155 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25156 (install_menu_target_item_handler): Remove argument in extern.
25157 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25158 Also accept command events.
25159 (do_keystroke): New function created from XTread_socket.
25160 (init_command_handler): Remove functions.
25161 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25162 and save window location by kEventWindowShowing and kEventWindowHiding
25163 handlers here. Don't call next handler for window state change and
25164 focus events.
25165 (mac_handle_application_event, mac_handle_keyboard_event)
25166 [TARGET_API_MAC_CARBON]: New functions.
25167 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25168 kEventWindowShowing and kEventWindowHiding events. Move installation
25169 of mouse, font, text input and menu target item handlers to
25170 install_application_handler.
25171 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25172 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25173 New function.
25174 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25175 Register it.
25176 (XTread_socket) [TARGET_API_MAC_CARBON]:
25177 Consolidate SendEventToEventTarget calls.
25178 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25179 Move application activation handler to mac_handle_application_event.
25180 Move keyboard handler to mac_handle_keyboard_event.
25181 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25182 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25183 init_command_handler. Call install_application_handler.
25184
25185 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25186 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25187
251882007-06-07 Glenn Morris <rgm@gnu.org>
25189
25190 * emacs.c (main): Use `emacs-copyright' in --version output.
25191
251922007-06-06 Chong Yidong <cyd@stupidchicken.com>
25193
25194 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25195
251962007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25197
25198 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25199
25200 * macgui.h: Replace WindowPtr with WindowRef.
25201
25202 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25203 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25204 Replace ControlHandle with ControlRef.
25205 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25206
25207 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25208 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25209 Replace ControlHandle with ControlRef.
25210 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25211 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25212
25213 * macterm.h (struct scroll_bar): Rename member control_handle_low
25214 and control_handle_high to control_ref_low and control_ref_high.
25215 All uses changed.
25216 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25217 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25218 respectively. All uses changed.
25219 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25220 (install_window_handler, remove_window_handler): Replace WindowPtr
25221 with WindowRef in externs.
25222
252232007-06-05 Juanma Barranquero <lekktu@gmail.com>
25224
25225 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25226
252272007-06-03 Nick Roberts <nickrob@snap.net.nz>
25228
25229 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25230
25231 * frame.c (Fmouse_position, Fmouse_pixel_position):
25232 Condition on HAVE_GPM too.
25233
25234 * term.c (term_mouse_highlight): Remove unused variables.
25235 (Fterm_open_connection): Set gpm_zerobased to 1.
25236 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25237 Use zero based co-ordinates.
25238 (handle_one_term_event): Report a drag as mouse movement too.
25239
25240 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25241
252422007-06-03 Chong Yidong <cyd@stupidchicken.com>
25243
25244 * image.c (search_image_cache): New function. Require background
25245 color match if background color is unspecified in the image spec.
25246 (uncache_image, lookup_image): Use it.
25247
252482007-06-01 Juanma Barranquero <lekktu@gmail.com>
25249
25250 * window.c (Fshrink_window): Reflow docstring.
25251
252522007-06-02 Chong Yidong <cyd@stupidchicken.com>
25253
25254 * Version 22.1 released.
25255
252562007-06-01 Richard Stallman <rms@gnu.org>
25257
25258 * xfns.c (x_encode_text): Add GCPRO.
25259
252602007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25261
25262 * xfns.c (x_set_name_internal): Save encoded name before
25263 x_encode_text in case string data is relocated.
25264
252652007-05-31 Richard Stallman <rms@gnu.org>
25266
25267 * buffer.c (syms_of_buffer): Doc fix.
25268
252692007-05-30 Nick Roberts <nickrob@snap.net.nz>
25270
25271 * sysdep.c (init_sys_modes): Add rather than replace with
25272 O_NONBLOCK.
25273
25274 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25275 term_mouse_moveto.
25276
25277 * termhooks.h (term_mouse_moveto): New extern.
25278
25279 * term.c (mouse_face_window): Rename...
25280 (Qmouse_face_window): ...to this.
25281 (term_show_mouse_face, term_clear_mouse_face)
25282 (term_mouse_highlight): Use Qmouse_face_window.
25283 (term_mouse_moveto): New function.
25284 (term_mouse_position): Make it work.
25285 (syms_of_term): Uncomment assignment to mouse_position_hook.
25286 Staticpro Qmouse_face_window.
25287
252882007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25289
25290 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25291 around current_column call.
25292
252932007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25294
25295 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25296 * xdisp.c (next_element_from_buffer):
25297 * window.c (delete_window):
25298 * term.c (term_mouse_highlight):
25299 * msdos.c (getdefdir):
25300 * macterm.c (mac_create_bitmap_from_bitmap_data)
25301 (init_font_name_table):
25302 * fns.c (Fsxhash):
25303 * data.c (Fmake_local_variable):
25304 * ccl.c (ccl_driver): Likewise.
25305
253062007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25307
25308 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25309 Call mac_wakeup_from_rne on window size change.
25310
253112007-05-25 Chong Yidong <cyd@stupidchicken.com>
25312
25313 * image.c (uncache_image): Fix typo.
25314
253152007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25316
25317 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25318
253192007-05-22 Richard Stallman <rms@gnu.org>
25320
25321 * xterm.c (x_connection_closed): Remove NO_RETURN.
25322
253232007-05-22 Martin Rudalics <rudalics@gmx.at>
25324
25325 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25326
253272007-05-21 Chong Yidong <cyd@stupidchicken.com>
25328
25329 * image.c (uncache_image): New function.
25330 (Fimage_refresh): New function.
25331
253322007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25333
25334 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25335
253362007-05-20 Nick Roberts <nickrob@snap.net.nz>
25337
25338 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25339 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25340
253412007-05-20 Nick Roberts <nickrob@snap.net.nz>
25342
25343 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25344 conditional on [HAVE_GPM_H].
25345
253462007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25347
25348 * syntax.c (skip_chars): Update syntax-table only after we checked that
25349 the new location is valid.
25350
253512007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25352
25353 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25354 mac_get_window_bounds.
25355
253562007-05-20 Nick Roberts <nickrob@snap.net.nz>
25357
25358 * Makefile.in (LIBGPM): Allow it to be set from configure.
25359 If set then link Emacs with it.
25360
25361 * config.in: Regenerate.
25362
25363 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25364 New externs.
25365
25366 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25367 Include gpm.h.
25368 (handle_one_term_event, term_gpm): New externs.
25369
25370 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25371 and allow it to be interrupted by SIGIO.
25372
25373 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25374 (wait_reading_process_output): Wait on gpm_fd too.
25375 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25376 (add_gpm_wait_descriptor_called_flag): New variable.
25377 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25378
25379 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25380 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25381 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25382 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25383 (make_lispy_event): Add case GPM_CLICK_EVENT.
25384 (read_avail_input): Handle mouse input.
25385
25386 * term.c (write_glyphs_with_face): New function.
25387 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25388 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25389 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25390 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25391 (last_mouse_x, last_mouse_y): New variables.
25392 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25393 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25394 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25395 (Fterm_close_connection): New functions.
25396 (term_init): Initialise mouse_face_window.
25397
253982007-05-19 Chong Yidong <cyd@stupidchicken.com>
25399
25400 * xdisp.c (redisplay_window): If first window line is a
25401 continuation line, recompute the new window start instead of
25402 recentering.
25403
254042007-05-18 Glenn Morris <rgm@gnu.org>
25405
25406 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25407 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25408
254092007-05-17 Glenn Morris <rgm@gnu.org>
25410
25411 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25412
254132007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25414
25415 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25416 dead key repeat and up events.
25417
254182007-05-14 Chong Yidong <cyd@stupidchicken.com>
25419
25420 * image.c (pbm_load): Check image size for monochrome pbm.
25421
254222007-05-13 Chong Yidong <cyd@stupidchicken.com>
25423
25424 * xterm.c (XTread_socket): Revert last change.
25425
254262007-05-12 Chong Yidong <cyd@stupidchicken.com>
25427
25428 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25429
25430 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25431
254322007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25433
25434 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25435 mixup (YAILOM).
25436
254372007-05-07 Andreas Schwab <schwab@suse.de>
25438
25439 * keymap.c (Flookup_key): Fix typo in last change.
25440
254412007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25442
25443 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25444 mapping for unibyte strings.
25445
254462007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25447
25448 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25449 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25450
254512007-04-29 Richard Stallman <rms@gnu.org>
25452
25453 * insdel.c (replace_range): For undo, record insertion first.
25454
254552007-04-29 Andreas Schwab <schwab@suse.de>
25456
25457 * lisp.h (VECSIZE): Use OFFSETOF.
25458
254592007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25460
25461 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25462 disabled lines.
25463
254642007-04-28 Richard Stallman <rms@gnu.org>
25465
25466 * lread.c (read_escape): In a string, \s is always space.
25467
254682007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25469
25470 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25471
25472 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25473 submenu for menu bar items.
25474
25475See ChangeLog.10 for earlier changes.
25476
25477;; Local Variables:
25478;; coding: utf-8
25479;; add-log-time-zone-rule: t
aac0c6e3
MR
25480;; End:
25481
e3eb1dae 25482 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
25483
25484 This file is part of GNU Emacs.
25485
25486 GNU Emacs is free software: you can redistribute it and/or modify
25487 it under the terms of the GNU General Public License as published by
25488 the Free Software Foundation, either version 3 of the License, or
25489 (at your option) any later version.
25490
25491 GNU Emacs is distributed in the hope that it will be useful,
25492 but WITHOUT ANY WARRANTY; without even the implied warranty of
25493 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25494 GNU General Public License for more details.
25495
25496 You should have received a copy of the GNU General Public License
25497 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25498
25499;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40