* net/tramp.el (tramp-file-name-handler): Trace 'quit.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
d5273788
SM
12010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * eval.c (Feval, Ffuncall): Use the new names.
4
5 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
6 (DEFUN): Add braces around the union initialisation and use ## to
7 specify the right union alternative and avoid a cast.
8
8d16a259
JB
92010-07-18 Juanma Barranquero <lekktu@gmail.com>
10
11 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
12
3b8eff32
CY
132010-07-17 Chong Yidong <cyd@stupidchicken.com>
14
15 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
16
499322ce
J
172010-07-17 Jan Djärv <jan.h.d@swipnet.se>
18
19 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
20 is related to the menu bar (Bug#6499).
a628ad9d 21 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 22
f6003da5 232010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
24
25 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
26
27 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
28
29 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
30 i.e. don't put back ButtonRelease (Bug#6608).
31
32 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
33 instead of Window. Call xg_event_is_for_menubar when
34 USE_GTK (Bug#6499).
35
36 * gtkutil.h (xg_event_is_for_menubar): Declare.
37
38 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
39
f6003da5 402010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
41
42 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
43 when it's the same as the old foreground. (Bug#6609)
44
23243f29
J
452010-07-16 Jan Djärv <jan.h.d@swipnet.se>
46
47 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
48 widget is non-null (Bug#6645).
49
2b23d2a6
AS
502010-07-15 Andreas Schwab <schwab@linux-m68k.org>
51
01b564ff
AS
52 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
53 Convert old-style definition.
54
2b23d2a6
AS
55 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
56 timestamp argument.
57
c4affd2c
EZ
582010-07-15 Eli Zaretskii <eliz@gnu.org>
59
60 * fringe.c (update_window_fringes): Restore mistakenly reverted
61 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
62
cf28cebc
J
632010-07-14 Jan Djärv <jan.h.d@swipnet.se>
64
65 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
66 (SET_SAVED_KEY_EVENT): Remove (not used).
67 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
68 remove size parameter.
69 (handle_one_xevent): Check popup_activated () for menu for Xt also.
70 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
71 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
72 ButtonRelease.
6b2c4bd9
J
73 (x_set_window_size_1): scroll_bar_actual_width is always
74 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
75
76 * xdisp.c (pending_menu_activation): Remove extern declaration.
77 (prepare_menu_bars): Remove setting of pending_menu_activation.
78
79 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
80 (x_activate_menubar): Set popup_activated_flag for Xt also.
81 Remove setting of pending_menu_activation.
cf28cebc
J
82 (set_frame_menubar): Remove check of pending_menu_activation.
83 Declare menubar_size before code. Correct spelling in comment.
84
f6c1c771
KH
852010-07-14 Kenichi Handa <handa@m17n.org>
86
87 * font.c (font_open_entity): Cancel previous change.
88 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
89
20477505
EZ
902010-07-13 Eli Zaretskii <eliz@gnu.org>
91
77defa9a
EZ
92 Remove subprocesses #ifdefs.
93 * process.c <inhibit_sentinels>: Move to the common part.
94 (Fwaiting_for_user_input_p): Move to the common part; return nil
95 if async subprocesses aren't supported.
96 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
97 MS-DOS. Remove "#ifdef subprocesses".
98 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
99 (gettimeofday): Remove "#ifdef subprocesses".
100 (wait_without_blocking): Remove function.
101 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
102 Remove "#ifdef subprocesses".
103 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
104 compiled on MS-DOS.
105 * callproc.c (Fcall_process) [!MSDOS]: Don't call
106 wait_for_termination on MS-DOS.
107 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
108 initialization of inhibit_sentinels.
109 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
110 subprocesses" conditional.
111 * callproc.c (Fcall_process) [!subprocesses]: Don't call
112 wait_for_termination, since `buffer' cannot be an integer when
113 async subprocesses are not supported
114 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
115 for ifdefing away the call to Fprocess_status.
116
20477505
EZ
117 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
118 away the entire body of the function.
119
b3ffc17c
DN
1202010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
121
01faa934
DN
122 Remove subprocesses #ifdefs from term.c.
123 * process.c (add_keyboard_wait_descriptor)
124 (delete_keyboard_wait_descriptor): Move to common section, do
125 nothing when subprocesses is not defined.
a628ad9d
JB
126 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
127 Remove subprocesses #ifdefs.
01faa934 128
b3ffc17c
DN
129 Convert maybe_fatal to standard C.
130 * lisp.h (verror): Declare.
131 * eval.c (verror): New function containing the code from ...
132 (error): ... this. Call verror.
133 * term.c (vfatal): New function containing the code from ...
134 (fatal): ... this. Call vfatal.
135 (maybe_fatal): Convert to standard C, use variable number of
136 arguments. Declare as non-return.
137 (init_tty): Fix maybe_fatal call.
138
0521f580
DN
1392010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
140
141 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
142 (_scroll_bar_note_movement): Convert definitions to standard C.
143 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
144 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
145
ebd15611
DN
1462010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
147
148 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
149 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
150 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
151 (xaw_jump_callback, xaw_scroll_callback)
152 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
153 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
154 definitions to standard C.
155 * xmenu.c (menubar_id_to_frame, popup_get_selection)
156 (popup_activate_callback, popup_deactivate_callback)
157 (menu_highlight_callback, menubar_selection_callback)
158 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
159 (free_frame_menubar, popup_selection_callback, as)
160 (create_and_show_popup_menu, dialog_selection_callback)
161 (create_and_show_dialog):
162 * xfns.c (hack_wm_protocols, x_window):
163 * xfaces.c (x_update_menu_appearance):
164 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
165 (char_to_pixel_size, round_size_to_char, get_wm_shell)
166 (set_frame_size, update_wm_hints, setup_frame_gcs)
167 (update_various_frame_slots, update_from_various_frame_slots)
168 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
169 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
170 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
171
de06a2dd
AS
1722010-07-12 Andreas Schwab <schwab@linux-m68k.org>
173
a628ad9d 174 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 175
fc549af9
EZ
1762010-07-12 Eli Zaretskii <eliz@gnu.org>
177
178 * process.c (setup_process_coding_systems): Move to the part
179 shared by non-subprocesses systems, and make its body empty when
180 subprocesses is not defined.
181 (close_process_descs): Move to the part shared by non-subprocesses
182 systems.
1408902e
EZ
183 (wait_reading_process_output) [!subprocesses]: Convert arg list to
184 ANSI C.
fc549af9 185
d5a3eaaf
AS
1862010-07-12 Andreas Schwab <schwab@linux-m68k.org>
187
188 * editfns.c (transpose_markers): Convert old-style definition.
189 * emacs.c (abort, shut_down_emacs, fixup_locale)
190 (synchronize_system_time_locale)
191 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
192 * floatfns.c (extract_float, matherr, init_floatfns)
193 (syms_of_floatfns): Likewise.
194 * fns.c (make_hash_table): Likewise.
195 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
196 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
197 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
198 (ftfont_variation_glyphs): Likewise.
199 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
200 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
201 * lread.c (read_filtered_event): Likewise.
202 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
203 * process.c (wait_reading_process_output): Likewise.
204 * scroll.c (do_line_insertion_deletion_costs): Likewise.
205 * search.c (search_buffer, boyer_moore): Likewise.
206 * syntax.c (scan_sexps_forward): Likewise.
207 * xdisp.c (try_scrolling): Likewise.
208 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
209 (face_at_string_position): Likewise.
210 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
211 * xselect.c (x_get_window_property, receive_incremental_selection)
212 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
213 Likewise.
214 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
215
6f704c76
DN
2162010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
217
ded80a25
DN
218 * callproc.c (child_setup): Remove subprocesses conditional.
219 Remove code dealing with SET_EMACS_PRIORITY, unused.
220
49d937f4 221 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
222 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
223
224 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
225 (__do_global_dtors, __main): Use void in definition.
226 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
227 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
228 the only users from ...
229 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
230 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
231 (HAVE_VOLATILE): Remove, unused.
232
6f704c76
DN
233 Convert more function definitions to standard C.
234 * xdisp.c (window_box_edges, handle_single_display_spec)
235 (display_string): Convert definition to standard C.
236 * scroll.c (do_direct_scrolling, scrolling_1):
237 * dispnew.c (allocate_matrices_for_frame_redisplay)
238 (mirrored_line_dance):
239 * coding.c (code_convert_string):
240 * charset.c (map_charset_chars):
241 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
242 (Fregister_ccl_program, Fregister_code_conversion_map):
243 * keyboard.c (kbd_buffer_nr_stored): Likewise.
244 (head_table): Make static and const.
245
e6cfa7c3
AS
2462010-07-12 Andreas Schwab <schwab@linux-m68k.org>
247
248 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
249 (PROFILING_LDFLAGS): Set from substitution.
250 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
251 CFLAGS last.
252
892dd565
KH
2532010-07-12 Kenichi Handa <handa@m17n.org>
254
6f2cdcd1
KH
255 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
256 (shortlisp): Likewise.
257
892dd565
KH
258 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
259
260 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
261 of FONT_ENTITY_INDEX.
262 (Ffont_get): If KEY is :otf and the font-object doesn't have the
263 property, get the property value dynamically.
264 (Ffont_put): Accept font-entity and font-object too.
265 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
266 return value changed.
267 (syms_of_font): Adjusted for the above change.
268
ae96d47a
AS
2692010-07-11 Andreas Schwab <schwab@linux-m68k.org>
270
c8fc18ee
AS
271 * blockinput.h: Remove obsolete comment.
272
89887d67
AS
273 * lisp.h: Include <stddef.h>.
274 (OFFSETOF): Don't define.
275 (VECSIZE): Use offsetof instead of OFFSETOF.
276 (PSEUDOVECSIZE): Likewise.
277 * process.c (conv_sockaddr_to_lisp): Likewise.
278 * alloc.c: Don't include <stddef.h>.
279 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
280
ae96d47a
AS
281 * process.c: Remove obsolete comment.
282
635c0aa1
CY
2832010-07-11 Chong Yidong <cyd@stupidchicken.com>
284
285 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
286
a64df650
AS
2872010-07-11 Andreas Schwab <schwab@linux-m68k.org>
288
8966b757
AS
289 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
290 index, rindex.
291 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
292 * editfns.c (Fuser_full_name, Fformat): Likewise.
293 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
294 * fileio.c (Ffile_symlink_p): Likewise.
295 * filelock.c (current_lock_owner): Likewise.
296 * font.c (font_parse_name, font_parse_family_registry): Likewise.
297 * fontset.c (fontset_pattern_regexp): Likewise.
298 * lread.c (read1): Likewise.
299 * sysdep.c (init_system_name): Likewise.
300 * xfns.c (select_visual): Likewise.
301 * s/hpux10-20.h (index, rindex): Don't define.
302 * s/ms-w32.h (index): Likewise.
303 * s/usg5-4.h: Likewise.
304
cf237e27
AS
305 * callproc.c (relocate_fd): Use F_DUPFD if defined.
306
a8fe7202
AS
307 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
308 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
309 (egetenv): Likewise.
310 * doprnt.c (doprnt): Likewise.
311 * editfns.c (set_time_zone_rule, format2): Likewise.
312 * emacs.c (decode_env_path): Likewise.
313 * eval.c (signal_error, error): Likewise.
314 * insdel.c (replace_range_2): Likewise.
315 * keyboard.c (cmd_error_internal): Likewise.
316 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
317 * print.c (write_string, write_string_1, print_error_message):
318 Likewise.
319 * vm-limit.c (warn_function, memory_warnings): Likewise.
320 * xdisp.c (message1, message1_nolog, message_with_string)
321 (vmessage, message, message_nolog): Likewise.
322 * emacs.c: Remove duplicate declaration.
323 * keyboard.h: Likewise.
324 * lisp.h: Update prototypes.
325
bb8e180f
AS
326 * eval.c: Fix indentation problem.
327
83380e65
AS
328 * keyboard.c: Include "process.h"
329
a64df650
AS
330 * eval.c: Remove obsolete noinline declaration.
331 * fns.c: Likewise.
332
6a8033e1
KR
3332010-07-11 Ken Raeburn <raeburn@raeburn.org>
334
335 * doprnt.c (doprnt): Take a va_list argument instead of count and
336 pointer.
337 * eval.c (error): Change to a standard-C variadic function.
338 * xdisp.c (vmessage): Renamed from message, made static, and
339 changed to take a va_list argument.
340 (message): New variadic wrapper.
341 (message_nolog): Now a variadic function, calling vmessage.
342 * lisp.h: Include stdarg.h for va_list.
343 (doprnt, error, message, message_nolog): Decls updated.
344
462aa963
EZ
3452010-07-11 Eli Zaretskii <eliz@gnu.org>
346
347 * process.c (syms_of_process) <delete-exited-processes>: Define
348 even if !subprocesses.
349 (delete_exited_processes): Ditto.
350
351 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
352 (delete_exited_processes): Don't define.
353
48104462
CY
3542010-07-10 Chong Yidong <cyd@stupidchicken.com>
355
356 * frame.c (make_frame): Initialize menu_bar_lines and
357 tool_bar_lines members.
358 (make_initial_frame, make_terminal_frame): Initialize
359 menu_bar_lines using value of menu-bar-mode.
360
361 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
362
f388c88a
EZ
3632010-07-10 Eli Zaretskii <eliz@gnu.org>
364
365 * process.c: Reshuffle #include's. Condition some of the global
366 and static variables on `subprocesses'.
367 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
368 Leave only one implementation.
369 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
370 (kill_buffer_processes, Flist_system_processes)
371 (Fprocess_attributes, init_process, syms_of_process): Unify the
372 implementations for with subprocesses and without them.
373
723f5a07
J
3742010-07-09 Jan Djärv <jan.h.d@swipnet.se>
375
376 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
377 correct size for Motif.
378 (free_frame_menubar): Call x_set_window_size to update frame size.
379
380 * xfns.c (x_window): Set borderWidth to 0 for pane and
381 EmacsFrame. Frame size calculation is wrong otherwise.
382
2536a4b7
MA
3832010-07-09 Michael Albinus <michael.albinus@gmx.de>
384
385 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
386 allows to suppress errors when polling in Emacs' main loop.
387 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
388 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
389 (Fdbus_method_error_internal, Fdbus_send_signal)
390 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
391 (Fdbus_register_method): Use it. (Bug#6579)
392
5842a27b
DN
3932010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
394
395 * alloc.c: Convert DEFUNs to standard C.
396 * buffer.c:
397 * bytecode.c:
398 * callint.c:
399 * callproc.c:
400 * casefiddle.c:
401 * casetab.c:
402 * category.c:
403 * character.c:
404 * charset.c:
405 * chartab.c:
406 * cmds.c:
407 * coding.c:
408 * composite.c:
409 * data.c:
410 * dbusbind.c:
411 * dired.c:
412 * dispnew.c:
413 * doc.c:
414 * dosfns.c:
415 * editfns.c:
416 * emacs.c:
417 * eval.c:
418 * fileio.c:
419 * filelock.c:
420 * floatfns.c:
421 * fns.c:
422 * font.c:
423 * fontset.c:
424 * frame.c:
425 * fringe.c:
426 * image.c:
427 * indent.c:
428 * insdel.c:
429 * keyboard.c:
430 * keymap.c:
431 * lread.c:
432 * macros.c:
433 * marker.c:
434 * menu.c:
435 * minibuf.c:
436 * msdos.c:
437 * nsfns.m:
438 * nsmenu.m:
439 * nsselect.m:
440 * print.c:
441 * process.c:
442 * search.c:
443 * sound.c:
444 * syntax.c:
445 * term.c:
446 * terminal.c:
447 * textprop.c:
448 * undo.c:
449 * w16select.c:
450 * w32console.c:
451 * w32fns.c:
452 * w32font.c:
453 * w32menu.c:
454 * w32proc.c:
455 * w32select.c:
456 * window.c:
457 * xdisp.c:
458 * xfaces.c:
459 * xfns.c:
460 * xmenu.c:
461 * xselect.c:
462 * xsettings.c:
463 * xsmfns.c: Likewise.
464
d568829b
EZ
4652010-07-08 Eli Zaretskii <eliz@gnu.org>
466
467 * process.c (kbd_is_on_hold, hold_keyboard_input)
468 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
469
52214050
J
4702010-07-08 Jan Djärv <jan.h.d@swipnet.se>
471
472 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
473 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
474 unless USE_LUCID.
475
313d9eb2
DN
4762010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
477
a628ad9d
JB
478 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
479 declaration.
d8825aa3 480
295d0d8f
DN
481 Clean up include guards.
482 * tparam.c: Remove include guards for config.h, string.h and code
483 that assumes #ifndef emacs.
484 * termcap.c:
485 * unexalpha.c:
486 * sysdep.c:
487 * filemode.c:
488 * filelock.c:
489 * bidi.c: Likewise.
490
49d9e6b0
DN
491 Remove prefix-args.c
492 * prefix-args.c: Remove file.
493 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
494 * Makefile.in (temacs${EXEEXT}): Remove references to
495 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
496 (mostlyclean): Remove reference to prefix-args.
497 (prefix-args): Remove.
498
313d9eb2
DN
499 Simplify cstart_of_data, start_of_code and related code.
500 * mem-limits.h: Remove !emacs and _LIBC conditional code.
501 (start_of_data): Merge into start_of_data function.
502 * sysdep.c (start_of_text): Remove. Move simplified versions of
503 it in the only users: unexaix.c and unexec.c.
504 (read_input_waiting): Remove local declaration of quit_char.
505 (start, etext): Remove declarations.
506 (start_of_data): Merge with the version in mem-limits.h and move
507 to vm-limits.c.
508 * vm-limit.c (start_of_data): Merged and simplified version of the
509 code formerly in mem-limits.h and sysdep.c.
510 * unexec.c (start): New declaration, moved from sysdep.c.
511 (start_of_text): Simplified version of the code formerly in sysdep.c.
512 * unexaix.c (start_of_text): Simplified version of the code
513 formerly in sysdep.c.
514 * m/alpha.h (HAVE_TEXT_START): Remove.
515 (TEXT_START): Move ...
516 * unexalpha.c (TEXT_START): ... here.
517 * s/hpux10-20.h (TEXT_START): Remove.
518 * s/darwin.h (TEXT_START):
519 * m/mips.h (TEXT_START):
520 * m/macppc.h (HAVE_TEXT_START):
521 * m/m68k.h (TEXT_START):
522 * m/iris4d.h (TEXT_START):
523 * m/intel386.h (TEXT_START):
524 * m/ibmrs6000.h (TEXT_START):
525 * m/ia64.h (HAVE_TEXT_START):
526 * s/msdos.h (TEXT_START): Likewise.
527
72af86bd
AS
5282010-07-07 Andreas Schwab <schwab@linux-m68k.org>
529
530 * alloc.c (overrun_check_malloc, overrun_check_realloc)
531 (overrun_check_free, xstrdup, allocate_string)
532 (allocate_string_data, compact_small_strings, Fmake_string)
533 (make_unibyte_string, make_multibyte_string)
534 (make_string_from_bytes, make_specified_string, make_float)
535 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
536 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
537 memcpy, memmove, memset, memcmp.
538 * atimer.c (start_atimer, set_alarm): Likewise.
539 * buffer.c (clone_per_buffer_values, report_overlay_modification)
540 (mmap_realloc, init_buffer_once): Likewise.
541 * callint.c (Fcall_interactively): Likewise.
542 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
543 (getenv_internal_1): Likewise.
544 * casefiddle.c (casify_object): Likewise.
545 * ccl.c (ccl_driver): Likewise.
546 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
547 * charset.c (load_charset_map_from_file)
548 (load_charset_map_from_file, load_charset_map_from_vector)
549 (Fdefine_charset_internal): Likewise.
550 * cm.c (Wcm_clear): Likewise.
551 * coding.c (decode_eol, decode_coding_object)
552 (Fset_coding_system_priority, make_subsidiaries): Likewise.
553 * data.c (Faset): Likewise.
554 * dired.c (directory_files_internal, file_name_completion_stat):
555 Likewise.
556 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
557 (clear_glyph_row, copy_row_except_pointers)
558 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
559 (save_current_matrix, restore_current_matrix)
560 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
561 (mirror_line_dance, scrolling_window): Likewise.
562 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
563 Likewise.
564 * doprnt.c (doprnt): Likewise.
565 * editfns.c (Fuser_full_name, make_buffer_string_both)
566 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
567 * emacs.c (sort_args): Likewise.
568 * eval.c (Fapply, Ffuncall): Likewise.
569 * fileio.c (Ffile_name_directory, make_temp_name)
570 (Fexpand_file_name, search_embedded_absfilename)
571 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
572 (auto_save_error): Likewise.
573 * fns.c (Fstring_equal, Fcopy_sequence, concat)
574 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
575 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
576 (Fmake_hash_table): Likewise.
577 * fringe.c (Fdefine_fringe_bitmap): Likewise.
578 * ftfont.c (ftfont_text_extents): Likewise.
579 * getloadavg.c (getloadavg): Likewise.
580 * image.c (define_image_type, make_image, make_image_cache)
581 (x_create_x_image_and_pixmap, xbm_image_p)
582 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
583 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
584 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
585 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
586 (tiff_image_p, tiff_read_from_memory, gif_image_p)
587 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
588 Likewise.
589 * indent.c (scan_for_column, compute_motion): Likewise.
590 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
591 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
592 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
593 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
594 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
595 (store_user_signal_events, menu_bar_items, tool_bar_items)
596 (process_tool_bar_item, append_tool_bar_item)
597 (read_char_minibuf_menu_prompt, read_key_sequence)
598 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
599 Likewise.
600 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
601 Likewise.
602 * lisp.h (STRING_COPYIN): Likewise.
603 * lread.c (Fload, read1, oblookup): Likewise.
604 * msdos.c (Frecent_doskeys): Likewise.
605 * nsfns.m (Fx_create_frame): Likewise.
606 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
607 Likewise.
608 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
609 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
610 Likewise.
611 * nsmenu.m (ns_update_menubar): Likewise.
612 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
613 * print.c (print_unwind, printchar, strout, print_string)
614 (print_error_message): Likewise.
615 * process.c (conv_lisp_to_sockaddr, set_socket_option)
616 (Fmake_network_process, Fnetwork_interface_list)
617 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
618 (init_process): Likewise.
619 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
620 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
621 Likewise.
622 * scroll.c (do_scrolling, do_direct_scrolling)
623 (scrolling_max_lines_saved): Likewise.
624 * search.c (search_buffer, wordify, Freplace_match): Likewise.
625 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
626 * syntax.c (skip_chars, skip_syntaxes): Likewise.
627 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
628 (emacs_set_tty): Likewise.
629 * term.c (encode_terminal_code, calculate_costs)
630 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
631 Likewise.
632 * termcap.c (tgetst1, gobble_line): Likewise.
633 * termhooks.h (EVENT_INIT): Likewise.
634 * tparam.c (tparam1): Likewise.
635 * unexalpha.c (unexec): Likewise.
636 * unexec.c (write_segment): Likewise.
637 * unexmacosx.c (unexec_write_zero): Likewise.
638 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
639 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
640 * w32font.c (w32font_list_family, w32font_text_extents)
641 (w32font_list_internal, w32font_match_internal)
642 (w32font_open_internal, compute_metrics, Fx_select_font):
643 Likewise.
644 * w32menu.c (set_frame_menubar, add_menu_item)
645 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
646 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
647 * w32uniscribe.c (uniscribe_list_family): Likewise.
648 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
649 * window.c (make_window, replace_window, set_window_buffer)
650 (Fsplit_window): Likewise.
651 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
652 (add_to_log, message3, x_consider_frame_title)
653 (append_space_for_newline, extend_face_to_end_of_line)
654 (decode_mode_spec_coding, init_glyph_string): Likewise.
655 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
656 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
657 (face_attr_equal_p, make_realized_face, make_face_cache)
658 (free_realized_faces, lookup_named_face, smaller_face)
659 (face_with_height, lookup_derived_face)
660 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
661 (Finternal_set_font_selection_order, realize_default_face)
662 (compute_char_face, face_at_buffer_position)
663 (face_for_overlay_string, face_at_string_position, merge_faces):
664 Likewise.
665 * xfns.c (xic_create_fontsetname, Fx_create_frame)
666 (Fx_window_property, x_create_tip_frame)
667 (Fx_backspace_delete_keys_p): Likewise.
668 * xfont.c (xfont_list, xfont_match, xfont_list_family)
669 (xfont_text_extents): Likewise.
670 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
671 * xrdb.c (magic_file_p, x_get_resource): Likewise.
672 * xselect.c (x_queue_event, x_get_window_property)
673 (receive_incremental_selection): Likewise.
674 * xsmfns.c (x_session_check_input): Likewise.
675 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
676 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
677 Likewise.
678 * character.h (BCOPY_SHORT): Removed.
679 * config.in: Regenerate.
680 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
681 * emacs.c (main) [PROFILING]: Don't declare
682 dump_opcode_frequencies.
683 * lisp.h (safe_bcopy): Remove declaration.
684 (memset) [!HAVE_MEMSET]: Declare.
685 (memcpy) [!HAVE_MEMCPY]: Likewise.
686 (memmove) [!HAVE_MEMMOVE]: Likewise.
687 (memcmp) [!HAVE_MEMCMP]: Likewise.
688 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
689 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
690 Don't define.
691 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
692 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
693 (BCOPY_DOWNWARD_SAFE): Don't define.
694 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
695 (memcpy) [!HAVE_MEMCPY]: Define.
696 (memmove) [!HAVE_MEMMOVE]: Define.
697 (memcmp) [!HAVE_MEMCMP]: Define.
698
cb768704
J
6992010-07-07 Jan Djärv <jan.h.d@swipnet.se>
700
701 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
702 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
703 New functions.
cb768704
J
704 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
705 select on empty input mask.
706 (init_process): Initialize kbd_is_on_hold to 0.
707
708 * process.h (hold_keyboard_input, unhold_keyboard_input)
709 (kbd_on_hold_p): Declare.
710
711 * keyboard.c (input_available_signal): Declare.
712 (kbd_buffer_nr_stored): New function.
713 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
714 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
715 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
716 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
717 (tty_read_avail_input): If input is on hold, return.
718 Don't read more that free slots in kbd_buffer (Bug#6571).
719
3a8ce822
EZ
7202010-07-07 Eli Zaretskii <eliz@gnu.org>
721
722 * msdos.h:
723 * msdos.c:
724 * dosfns.c:
725 * w16select.c: Convert function definitions to ANSI C.
726
a628ad9d
JB
727 * msdos.h (ctrl_break_func, install_ctrl_break_check):
728 Remove unused prototypes.
3a8ce822 729
cf84bb53
JB
7302010-07-07 Juanma Barranquero <lekktu@gmail.com>
731
732 * coding.c, sysdep.c: Convert some more functions to standard C.
733
1a4990fb
JB
7342010-07-07 Juanma Barranquero <lekktu@gmail.com>
735
736 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
737 (encode_coding_object): Use SPECPDL_INDEX.
738 (syms_of_coding): Use DOS_NT.
739
c0f2f16b
DN
7402010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
741
48fb6855
DN
742 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
743
c0f2f16b
DN
744 Make the function member of Lisp_Subr use standard C prototypes.
745 * lisp.h (struct Lisp_Subr): Use a union for the function member.
746 (DECL_ALIGN): Add a cast for the function.
747 * eval.c (Feval, Ffuncall): Use the proper type for each type
748 function call.
749
67aecef9
CY
7502010-07-06 Chong Yidong <cyd@stupidchicken.com>
751
752 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
753 fringe face id, so face-remapping-alist works (Bug#6091).
754
b56ceb92
JB
7552010-07-06 Juanma Barranquero <lekktu@gmail.com>
756
757 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
758 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
759 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
760
7af07b96
AS
7612010-07-06 Andreas Schwab <schwab@linux-m68k.org>
762
763 * xterm.c (x_get_keysym_name): Change type of parameter to int.
764 * lisp.h: Declare x_get_keysym_name.
765 * keyboard.c (modify_event_symbol): Don't declare
766 x_get_keysym_name here.
767
69e24e34
DN
7682010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
769
770 * ecrt0.c: Revert conversion to standard C.
771
d3da34e0 7722010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
773
774 * vm-limit.c (memory_warnings):
775 * keyboard.c (modify_event_symbol):
776 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
777 (round2, emacs_rint):
778 * process.c (send_process, old_sigpipe): Convert function
779 definitions and declarations to standard C.
780
7812010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
782
783 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
784 * xdisp.c: Convert function definitions to standard C.
785
786 * cm.c (cmputc): Arg C is now int, not char.
787 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
788
00be444c
J
7892010-07-05 James Cloos <cloos@jhcloos.com>
790
791 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
792
793 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
794 _NET_WM_ICON_NAME atoms.
795
796 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
797 and _NET_WM_ICON_NAME properties, too, matching what is
798 done in the Gtk+ case.
799
e4c8d29a
J
8002010-07-05 Jan Djärv <jan.h.d@swipnet.se>
801
ff919460
J
802 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
803
e4c8d29a
J
804 * xsmfns.c (SSDATA): New macro.
805 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
806 passed to strlen/strcpy/strcat.
807 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
808 7:th arg to XChangeProperty to (unsigned char *)
809
810 * xsettings.c (something_changedCB, parse_settings)
811 (apply_xft_settings): Reformat prototype.
812 (something_changedCB, init_gconf): Remove unused variable i.
813 (read_settings): Remove unused variable long_len.
814
815 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
816 (xg_get_image_for_pixmap, create_dialog)
817 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
818 (menuitem_highlight_callback, make_menu_item)
819 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
820 (xg_create_scroll_bar, xg_update_scrollbar_pos)
821 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
822 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
823 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
824 (xg_tool_bar_item_expose_callback): Reformat prototype.
825 (xg_update_menubar): GList *group => GSList *group.
826 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
827 before use.
828 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
829 to GTK_IMAGE (wimage).
830
dd4c5104
DN
8312010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
832
898b4c5c
DN
833 * atimer.c: Use "" instead of <> for local includes for
834 consistency with the rest of the code.
835
dd4c5104
DN
836 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
837 * xrdb.c (get_system_name):
838 * window.c (shrink_windows):
839 * syntax.c (forw_comment):
840 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
841 (ins_del_costs):
842 * mem-limits.h (start_of_data):
843 * lread.c (readevalloop):
844 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
845 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
846 * frame.c (x_get_focus_frame):
847 * floatfns.c (fmod_float):
848 * fileio.c (choose_write_coding_system):
849 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
850 (malloc_initialize_hook, sort_args, synchronize_locale):
851 * doprnt.c (doprnt):
852 * dired.c (compile_pattern):
853 * data.c (fmod_float):
854 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
855 (map_char_table_for_charset):
856 * charset.c (define_charset_internal):
857 * alloc.c (Fgarbage_collect): Convert declarations or definitions
858 to standard C.
859
9a39b306 8602010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 861 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
862
863 * lread.c (read1): Fix up last change to not mess up `c'.
864
e6cb2cbb
JB
8652010-07-04 Juanma Barranquero <lekktu@gmail.com>
866
867 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
868
438105ed
JB
8692010-07-04 Juanma Barranquero <lekktu@gmail.com>
870
871 Fix prototypes.
872
e5447b22 873 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 874 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
875 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
876 arg, as required by internal_condition_case_1.
dcc7404b 877 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
878 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
879 (analyse_first): Fix "const const".
e5447b22 880 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 881 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 882 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 883
971de7fb
DN
8842010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
885
886 * alloc.c: Convert function definitions to standard C.
887 * atimer.c:
888 * bidi.c:
889 * bytecode.c:
890 * callint.c:
891 * callproc.c:
892 * casefiddle.c:
893 * casetab.c:
894 * category.c:
895 * ccl.c:
896 * character.c:
897 * charset.c:
898 * chartab.c:
899 * cmds.c:
900 * coding.c:
901 * composite.c:
902 * data.c:
903 * dbusbind.c:
904 * dired.c:
905 * dispnew.c:
906 * doc.c:
907 * doprnt.c:
908 * ecrt0.c:
909 * editfns.c:
910 * fileio.c:
911 * filelock.c:
912 * filemode.c:
913 * fns.c:
914 * font.c:
915 * fontset.c:
916 * frame.c:
917 * fringe.c:
918 * ftfont.c:
919 * ftxfont.c:
920 * gtkutil.c:
921 * indent.c:
922 * insdel.c:
923 * intervals.c:
924 * keymap.c:
925 * lread.c:
926 * macros.c:
927 * marker.c:
928 * md5.c:
929 * menu.c:
930 * minibuf.c:
931 * prefix-args.c:
932 * print.c:
933 * ralloc.c:
934 * regex.c:
935 * region-cache.c:
936 * scroll.c:
937 * search.c:
938 * sound.c:
939 * strftime.c:
940 * syntax.c:
941 * sysdep.c:
942 * termcap.c:
943 * terminal.c:
944 * terminfo.c:
945 * textprop.c:
946 * tparam.c:
947 * undo.c:
948 * unexelf.c:
949 * window.c:
950 * xfaces.c:
951 * xfns.c:
952 * xfont.c:
953 * xftfont.c:
954 * xgselect.c:
955 * xmenu.c:
956 * xrdb.c:
957 * xselect.c:
958 * xsettings.c:
959 * xsmfns.c:
960 * xterm.c: Likewise.
961
ae492bec
EZ
9622010-07-03 Eli Zaretskii <eliz@gnu.org>
963
76ea4cc9
EZ
964 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
965 frames other than the initial one. Fix reversal of colors when
966 `reverse' is specified in the frame parameters. Call
967 update_face_from_frame_parameter instead of
968 internal-set-lisp-face-attribute. Initialize screen colors from
969 initial_screen_colors[] when f->default_face_done_p is zero,
970 instead of depending on being called with default-frame-alist as
971 the alist argument.
972
973 * xfaces.c (update_face_from_frame_parameter): Move out of
974 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
975 with HAVE_WINDOW_SYSTEM.
976
1e6255ae
EZ
977 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
978 to menu-bar-mode, if not set in the frame parameters or in
979 default-frame-alist.
980
ae492bec
EZ
981 * w32console.c (sys_tputs): Adjust argument list to prototype in
982 term.c.
983
3a35a84c
JB
9842010-07-03 Juanma Barranquero <lekktu@gmail.com>
985
986 * lisp.h (memory_warnings): Fix prototype.
987
988 * cm.h (evalcost): Fix prototype.
989
990 * cm.c (evalcost): Fix arg type.
991
c532d349
DN
9922010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
993
994 * term.c (term_clear_mouse_face, Fidentity):
995 * syssignal.h (signal_handler_t):
996 * lisp.h (memory_warnings):
997 * coding.h (preferred_coding_system):
998 * cm.h (evalcost):
999 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1000
c0b36d46
EZ
10012010-07-02 Eli Zaretskii <eliz@gnu.org>
1002
1003 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1004 from prototypes.
1005
1006 * msdos.h (load_pixmap): Don't define away.
1007
383e0970
J
10082010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1009
f57e2426
J
1010 * lisp.h:
1011 * atimer.h: Remove define for P_.
1012
1013 * alloc.c: Remove __P and P_ from .c and .m files.
1014 * atimer.c:
1015 * buffer.c:
1016 * callint.c:
1017 * category.c:
1018 * charset.c:
1019 * chartab.c:
1020 * cm.c:
1021 * coding.c:
1022 * composite.c:
1023 * data.c:
1024 * dired.c:
1025 * dispnew.c:
1026 * doc.c:
1027 * editfns.c:
1028 * emacs.c:
1029 * eval.c:
1030 * fileio.c:
1031 * filelock.c:
1032 * fns.c:
1033 * font.c:
1034 * fontset.c:
1035 * frame.c:
1036 * ftfont.c:
1037 * ftxfont.c:
1038 * gmalloc.c:
1039 * gtkutil.c:
1040 * image.c:
1041 * indent.c:
1042 * intervals.c:
1043 * keyboard.c:
1044 * keymap.c:
1045 * lread.c:
1046 * marker.c:
1047 * menu.c:
1048 * minibuf.c:
1049 * print.c:
1050 * process.c:
1051 * scroll.c:
1052 * search.c:
1053 * sound.c:
1054 * strftime.c:
1055 * syntax.c:
1056 * sysdep.c:
1057 * term.c:
1058 * terminal.c:
1059 * textprop.c:
1060 * unexalpha.c:
1061 * w32console.c:
1062 * w32fns.c:
1063 * w32font.c:
1064 * w32menu.c:
1065 * w32term.c:
1066 * w32uniscribe.c:
1067 * window.c:
1068 * xdisp.c:
1069 * xfaces.c:
1070 * xfns.c:
1071 * xfont.c:
1072 * xftfont.c:
1073 * xmenu.c:
1074 * xselect.c:
1075 * xterm.c: Likewise.
1076
383e0970 1077 Remove P_ and __P macros.
f57e2426
J
1078 * atimer.h: Remove P_ and __P macros.
1079 * buffer.h:
383e0970
J
1080 * category.h:
1081 * ccl.h:
1082 * character.h:
1083 * charset.h:
1084 * cm.h:
1085 * coding.h:
1086 * composite.h:
1087 * dispextern.h:
1088 * disptab.h:
9e892c8d 1089 * dosfns.h:
383e0970
J
1090 * font.h:
1091 * fontset.h:
1092 * frame.h:
1093 * gtkutil.h:
1094 * indent.h:
1095 * intervals.h:
1096 * keyboard.h:
1097 * keymap.h:
1098 * lisp.h:
1099 * macros.h:
1100 * md5.h:
1101 * menu.h:
1102 * msdos.h:
1103 * nsterm.h:
1104 * puresize.h:
1105 * region-cache.h:
1106 * syntax.h:
1107 * syssignal.h:
1108 * systime.h:
1109 * termhooks.h:
9e892c8d 1110 * w32font.h:
383e0970
J
1111 * w32term.h:
1112 * widget.h:
1113 * window.h:
1114 * xgselect.h:
1115 * xsettings.h:
1116 * xterm.h: Likewise.
1117
98601119
DN
11182010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1119
d9170db5
DN
1120 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1121
98601119
DN
1122 Cleanup old code.
1123 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1124 * syssignal.h: Remove code for Lynx, not supported anymore.
1125 * vm-limit.c: Remove unused code the depends on emacs not being
1126 defined and NO_LIM_DATA being defined.
1127 * mem-limits.h: Remove dead code.
1128
1f984e12
J
11292010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1130
c49d071a
J
1131 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1132
9d5405ec
J
1133 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1134 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1135
7a18115b
J
1136 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1137 parameters, they are already absolute.
1138
a628ad9d
JB
1139 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1140 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1141
a628ad9d 1142 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1143
a628ad9d
JB
1144 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1145 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1146
a628ad9d
JB
1147 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1148 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1149
c1ef4455
CY
11502010-06-30 Chong Yidong <cyd@stupidchicken.com>
1151
1152 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1153 check default-frame-alist.
1154
ce8f5a9a
AS
11552010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1156
1157 * process.c (create_process): Avoid using invalid file descriptors.
1158
1159 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1160
bf935339
J
11612010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1162
1163 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1164 Improve documentation. Return font regardless of use_system_font.
1165 (syms_of_xsettings): Improve documentation for font-use-system-font.
1166
7c33a057
CY
11672010-07-10 Chong Yidong <cyd@stupidchicken.com>
1168
2ec1b5ee
CY
1169 * xfaces.c (realize_face): Garbage the frame if a face is removed
1170 (Bug#6593).
1171
11722010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1173
1174 * keyboard.c: Remove duplicate <setjmp.h>.
1175 (read_key_sequence): Remove volatile qualifiers.
1176
11772010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1178
1179 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1180 (struct glyph_row): New members left_fringe_offset and
1181 right_fringe_offset.
1182
1183 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1184 specially.
1185 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1186 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1187
1188 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1189 Take account of bitmap offset.
2ec1b5ee
CY
1190 (draw_window_fringes): Take account of window vscroll.
1191 (update_window_fringes): Likewise. Extend top-aligned top indicator
1192 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1193 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1194 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1195
11962010-07-04 Juanma Barranquero <lekktu@gmail.com>
1197
1198 * w32fns.c (Qtooltip): Declare.
1199 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1200
12012010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1202
1203 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1204 grab on just Press (Bug#6499).
1205
12062010-07-02 Chong Yidong <cyd@stupidchicken.com>
1207
1208 * frame.c (Qtooltip): New var.
1209 (delete_frame): Use it. Fix faulty if statement. Don't update
1210 mode line for tooltip frames. Suggested by Martin Rudalics.
1211
1212 * xfns.c (x_create_tip_frame):
1213 * w32fns.c (x_create_tip_frame): Use it.
1214
12152010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1216
1217 * xftfont.c (xftfont_open): Check font width one by one also when
1218 spacing is dual.
1219
1220 * ftfont.c (ftfont_open): Ditto.
1221
6259c2ec
GM
12222010-06-30 Glenn Morris <rgm@gnu.org>
1223
a46007e9
GM
1224 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1225
6259c2ec
GM
1226 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1227
1228 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1229 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1230 * s/darwin.h (SYSTEM_MALLOC):
1231 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1232
5d1d3d04
J
12332010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1234
1235 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1236 (ns_get_screen): Don't assign integer to f.
1237 (Fx_display_color_cells): Declarations before statements.
1238
e547b051
J
12392010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1240
5fc8e5bc
J
1241 * xfns.c (x_default_font_parameter): Remove got_from_system
1242 (Bug#6526).
1243
e547b051
J
1244 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1245 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1246 defines based on what configure finds.
1247
1248 * xterm.c (XTflash): Use gtk_widget_get_window.
1249 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1250 gtk_adjustment_get_page_size.
1251 (handle_one_xevent): Use gtk_widget_get_mapped.
1252 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1253 messages.
1254
1255 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1256
1257 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1258 HAVE_GTK_FILE_SELECTION_NEW.
1259
1260 * gtkutil.c (xg_display_open, xg_display_close): Remove
1261 HAVE_GTK_MULTIDISPLAY, it is always defined.
1262 (xg_display_open): Return type is void.
1263 (gtk_widget_set_has_window)
1264 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1265 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1266 (gtk_adjustment_set_page_increment)
1267 (gtk_adjustment_get_step_increment): #define these if not found
1268 by configure.
1269 (remove_submenu): New define based on Gtk+ version.
1270 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1271 gtk_widget_get_window.
1272 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1273 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1274 (create_dialog): Use gtk_dialog_get_action_area and
1275 gtk_dialog_get_content_area.
1276 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1277 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1278 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1279 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1280 g_object_ref and g_object_unref.
1281 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1282 gtk_widget_get_sensitive.
1283 (xg_update_submenu): Use remove_submenu.
1284 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1285 properties instead to get old x and y position.
1286 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1287 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1288 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1289 (xg_get_tool_bar_widgets): New function.
1290 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1291 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1292 (toolbar_set_orientation): New #define based on if configure
1293 finds gtk_orientable_set_orientation.
1294 (xg_create_tool_bar): Call toolbar_set_orientation.
1295 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1296 instead of gtk_box_pack_start_defaults.
1297
b9229673
CY
12982010-06-28 Chong Yidong <cyd@stupidchicken.com>
1299
1300 * cmds.c (Fdelete_backward_char): Move into Lisp.
1301
bbc803b0
DN
13022010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1303
1304 * s/freebsd.h (BSD4_2): Remove redundant definition.
1305 bsd-common.h defines it already.
1306
6431f2e6
CY
13072010-06-27 Chong Yidong <cyd@stupidchicken.com>
1308
1309 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1310 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1311 tool-bar-mode, which are now set using these X resources at
1312 startup, to determine the defaults (Bug#2249).
1313
1314 * w32fns.c (Fx_create_frame):
1315 * nsfns.m (Fx_create_frame): Likewise.
1316
1317 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1318
8c079ebb
JB
13192010-06-24 Juanma Barranquero <lekktu@gmail.com>
1320
1321 * gtkutil.c (xg_update_scrollbar_pos):
1322 Avoid C99 mid-block variable declaration.
1323
e9b7ab96
JD
13242010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1325
bc869eca
JD
1326 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1327
2b7e356a 1328 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1329
1330 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1331 if height is less than scroll bar min size.
1332 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1333
e9b7ab96
JD
1334 * xfns.c (x_default_font_parameter): Try to open font from system
1335 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1336
a628ad9d 13372010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
1338
1339 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1340
70c4cfbb
EZ
13412010-06-20 Eli Zaretskii <eliz@gnu.org>
1342
1343 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1344 most-positive-fixnum, be extra accurate when scrolling window
1345 start, to avoid missing the cursor line.
1346
ad5a12b5
EZ
13472010-06-19 Eli Zaretskii <eliz@gnu.org>
1348
1349 * xdisp.c (try_scrolling): Compute the limit for searching point
1350 in forward scroll from scroll_max, instead of an arbitrary limit
1351 of 10 screen lines. See
1352 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1353 and
1354 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1355 for details.
1356
2a64315a 13572010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1358
1359 * editfns.c (Fbyte_to_string): Pacify compiler.
1360
288cf4e9
SM
13612010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1362
1363 * lread.c (read1): Phase out old-style backquotes a bit more.
1364
6e6e5760
EZ
13652010-06-12 Eli Zaretskii <eliz@gnu.org>
1366
cbc4fd20
EZ
1367 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1368 bidimirror.h.
1369
1370 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1371
317fbf33
EZ
1372 * bidi.c (bidi_initialize): Remove explicit initialization of
1373 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1374 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1375 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1376
1377 * biditype.h: New file.
1378
cbc4fd20
EZ
1379 * bidimirror.h: New file.
1380
6e6e5760
EZ
1381 * window.c (syms_of_window): Doc fix (bug#6409).
1382
4176cba2
RF
13832010-06-12 Romain Francoise <romain@orebokech.com>
1384
1385 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1386 ediff-hook.
1387
cb4bfcb5
GM
13882010-06-10 Glenn Morris <rgm@gnu.org>
1389
64c60c2f
GM
1390 * editfns.c (Fbyte_to_string): Pacify compiler.
1391
cb4bfcb5
GM
1392 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1393
2ec1b5ee
CY
13942010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1395
1396 * alloc.c (Fmake_byte_code): Don't access undefined argument
1397 (Bug#6517).
1398
13992010-06-25 Chong Yidong <cyd@stupidchicken.com>
1400
1401 * xdisp.c (next_element_from_image): Ensure that after-strings are
1402 read the next time we hit handle_stop (Bug#1336).
1403
14042010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1405
1406 * lread.c (read1): Signal error if #s is not followed by paren.
1407
14082010-06-19 Chong Yidong <cyd@stupidchicken.com>
1409
1410 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1411
1412 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1413
14142010-06-15 Glenn Morris <rgm@gnu.org>
1415
1416 * editfns.c (Fbyte_to_string): Pacify compiler.
1417
e454a4a3
SM
14182010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1419
1420 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1421 Check `object's type before accessing its guts.
1422
c1b1acc2
DN
14232010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1424
1425 * s/usg5-4.h: Fix previous change.
1426 Suggested by Lawrence Mitchell <wence@gmx.li>
1427
657d4c0b
AS
14282010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1429
1430 * minibuf.c (Fall_completions): Add more checks.
1431
9b27fd9f
JB
14322010-06-08 Juanma Barranquero <lekktu@gmail.com>
1433
1434 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1435
a99ebb40
DN
14362010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1437
d7c5d87d
DN
1438 * lread.c (X_OK): Remove, unused.
1439
0263a941
DN
1440 * dispnew.c: Remove obsolete comment.
1441
a99ebb40
DN
1442 Remove INCLUDED_FCNTL.
1443 * xterm.c (INCLUDED_FCNTL):
1444 * callproc.c (INCLUDED_FCNTL):
1445 * alloc.c (INCLUDED_FCNTL):
1446 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1447 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1448
13b5221f
MR
14492010-06-07 Martin Rudalics <rudalics@gmx.at>
1450
1451 * window.c (Fselect_window): Move `record_buffer' up to the
1452 beginning of this function, so the buffer gets recorded
1453 even if the selected window does not change.
1454 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1455
5220357f
JB
14562010-06-07 Juanma Barranquero <lekktu@gmail.com>
1457
1458 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1459 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1460
3085237c
DN
14612010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1462
1463 Remove BSTRING related code, all platforms define it.
1464 * s/usg5-4.h (BSTRING): Remove definition.
1465 * s/template.h (BSTRING):
1466 * s/msdos.h (BSTRING):
1467 * s/ms-w32.h (BSTRING):
1468 * s/hpux10-20.h (BSTRING):
1469 * s/gnu-linux.h (BSTRING):
1470 * s/darwin.h (BSTRING):
1471 * s/cygwin.h (BSTRING):
1472 * s/bsd-common.h (BSTRING):
1473 * s/aix4-2.h (BSTRING): Likewise.
1474 * sysdep.c: Remove code depending on BSTRING not being defined.
1475
409f2919
JB
14762010-06-05 Juanma Barranquero <lekktu@gmail.com>
1477
1478 Remove obsolete macro BASE_LEADING_CODE_P.
1479 * character.h (BASE_LEADING_CODE_P): Remove.
1480 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1481 * buffer.c (Fset_buffer_multibyte):
1482 * indent.c (scan_for_column, compute_motion):
1483 * insdel.c (count_combining_before, count_combining_after):
1484 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1485
087fc47a
JB
14862010-06-04 Juanma Barranquero <lekktu@gmail.com>
1487
1488 Turn `directory-sep-char' into a noop.
1489
1490 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1491 (DIRECTORY_SEP): Define unconditionally.
1492
1493 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1494
1495 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1496 call dostounix_filename directly.
1497
1498 * fileio.c (CORRECT_DIR_SEPS): Remove.
1499 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1500 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1501 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1502 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1503
1504 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1505 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1506
0eb7675e
AS
15072010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1508
a628ad9d
JB
1509 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
1510 (Bug#6346)
0eb7675e 1511
78edd3b7
JB
15122010-06-03 Juanma Barranquero <lekktu@gmail.com>
1513
1514 * ccl.c (Fccl_program_p): Fix typo in docstring.
1515
eb697db5
DN
15162010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
1517
1518 Move UNEXEC definition to autoconf.
1519 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
1520 * s/sol2-10.h (UNEXEC):
1521 * s/irix6-5.h (UNEXEC):
1522 * s/hpux10-20.h (UNEXEC):
1523 * s/gnu-linux.h (UNEXEC):
1524 * s/darwin.h (UNEXEC):
1525 * s/cygwin.h (UNEXEC):
1526 * s/bsd-common.h (UNEXEC):
1527 * s/aix4-2.h (UNEXEC):
1528 * m/alpha.h (UNEXEC): Likewise.
1529 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
1530
aa3830c4
JB
15312010-06-03 Juanma Barranquero <lekktu@gmail.com>
1532
1533 Remove obsolete pre-unicode2 macros.
1534 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
1535 * composite.c (composition_reseat_it):
1536 * data.c (Faset):
1537 * fns.c (Ffillarray):
1538 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
1539 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
1540
d234d13e
JL
15412010-06-03 Juri Linkov <juri@jurta.org>
1542
1543 * buffer.c (Fother_buffer): Add CHECK_FRAME.
1544 (Fswitch_to_buffer): Remove unused variable `err'.
1545
0d4bcf4d
GM
15462010-06-03 Glenn Morris <rgm@gnu.org>
1547
e23dc1e2
GM
1548 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
1549
05b09564
GM
1550 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1551 now that AH_BOTTOM does it.
1552
824e2978
GM
1553 * m/hp800.h (HAVE_ALLOCA):
1554 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1555
0d4bcf4d
GM
1556 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1557 Remove NOT_C_CODE tests, it is always true now.
1558
c55d2abf
DN
15592010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1560
08a494a3
DN
1561 Fix config.h includes.
1562 * xsettings.c:
1563 * xgselect.c:
1564 * nsterm.m:
1565 * nsselect.m:
1566 * nsimage.m:
1567 * nsfont.m:
1568 * nsfns.m:
1569 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1570 other files do.
1571
75934b1d
DN
1572 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1573
9f32a766
DN
1574 * s/sol2-6.h: Remove obsolete comments.
1575
c55d2abf
DN
1576 Remove unnecessary alloca.h includes.
1577 * keymap.c: Do not include alloca.h, config.h does that.
1578 * sysdep.c: Likewise. Do not define fwrite, not used.
1579
06ac62b4
SM
15802010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1581
1582 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1583 the HAVE_TERMIO where it belongs (bug#6149).
1584
1ab8293c
SM
15852010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1586
1587 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1588 of bug#6305).
1589
6dcfd253
EZ
15902010-05-30 Eli Zaretskii <eliz@gnu.org>
1591
1592 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1593 state is always cached (bug#6306).
1594
6d26bbb2
EZ
15952010-05-29 Eli Zaretskii <eliz@gnu.org>
1596
06fa4a23
EZ
1597 Fix cursor motion in bidi-reordered continued lines.
1598 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1599 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
1600 over continuation lines in bidi-reordered buffers. Return
1601 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1602 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1603
f5783df3
MA
16042010-05-28 Michael Albinus <michael.albinus@gmx.de>
1605
1606 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1607
7d56b2dd
KH
16082010-05-28 Kenichi Handa <handa@m17n.org>
1609
1610 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1611 Don't sheck SPEC if it is nil.
1612 (font_list_entities): Call font_delete_unmatched if
b925d231 1613 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 1614
e58d4ff7
GM
16152010-05-28 Glenn Morris <rgm@gnu.org>
1616
1617 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1618
f1a5d776
CY
16192010-05-27 Chong Yidong <cyd@stupidchicken.com>
1620
1621 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1622 whether to trash.
1623 (internal_delete_file, Frename_file): Callers changed.
1624 (delete_by_moving_to_trash): Doc fix.
1625 (Fdelete_directory_internal): Don't move to trash.
1626
1627 * callproc.c (delete_temp_file):
1628 * buffer.c (Fkill_buffer): Callers changed.
1629
1630 * lisp.h: Update prototype.
1631
f44a59e6
CY
16322010-05-27 Chong Yidong <cyd@stupidchicken.com>
1633
1634 * xdisp.c (redisplay_window): After redisplay, check if point is
1635 still valid before setting it (Bug#6177).
1636
81ac4f35
GM
16372010-05-27 Glenn Morris <rgm@gnu.org>
1638
1639 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1640 Convert comments to Makefile format.
1641
1642 * Makefile.in (bootstrap-clean): No more Makefile.c.
1643
ccd89fb3
GM
16442010-05-26 Glenn Morris <rgm@gnu.org>
1645
90278cb6
GM
1646 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1647 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1648
ccd89fb3
GM
1649 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1650 Remove.
1651 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1652
b7050583
KH
16532010-05-26 Kenichi Handa <handa@m17n.org>
1654
1655 * composite.c (composition_compute_stop_pos): Fix condition for
1656 backward scanning.
1657
e5458003
GM
16582010-05-25 Glenn Morris <rgm@gnu.org>
1659
c345fe90
GM
1660 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1661 Move before TEMACS_LDFLAGS.
1662 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1663 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1664
2e0689ab
GM
1665 * Makefile.in (NOT_C_CODE): No longer define.
1666 (config.h): No longer include.
1667
8009a5e8
GM
1668 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
1669 variables it may reference.
1670
e5458003
GM
1671 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
1672 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
1673
10f72a37
KH
16742010-05-25 Kenichi Handa <handa@m17n.org>
1675
1676 * dispextern.h (struct composition_it): New members rule_idx and
1677 charpos.
1678
1679 * xdisp.c (set_iterator_to_next): While scanning backward, assume
1680 that the character positions of IT point the last character of the
1681 current grapheme cluster.
1682 (next_element_from_composition): Don't change character positions
1683 of IT.
1684 (append_composite_glyph): Set glyph->charpos to
1685 it->cmp_it.charpos.
1686
1687 * composite.c (autocmp_chars): Change the first argument to RULE,
1688 and try composition with RULE only.
1689 (composition_compute_stop_pos): Record the index number of the
1690 composition rule in CMP_IT->rule_idx.
1691 (composition_reseat_it): Call autocmp_chars repeatedly until the
1692 correct rule of the composition is found.
1693 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
1694 is at the last character of the current grapheme cluster when
1695 CMP_IT->reversed_p is nonzero.
1696
171eda53 16972010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 1698
171eda53
SM
1699 * editfns.c (Fbyte_to_string): New function.
1700
66a9f7f4
SM
17012010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1702
1703 * process.c (Fmake_network_process): Set :host to nil if it's not used.
1704 Suggested by Masatake YAMATO <yamato@redhat.com>.
1705
d8c315d1
EZ
17062010-05-23 Eli Zaretskii <eliz@gnu.org>
1707
171eda53 1708 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 1709
f5b416d2 17102010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1711
1712 * s/netbsd.h: If terminfo is found, use it in preference to
1713 termcap. (Bug#6190) [Backport from trunk]
1714
0416466c
EZ
17152010-05-19 Eli Zaretskii <eliz@gnu.org>
1716
11117830 1717 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
1718
1719 * dispextern.h (struct glyph_row): New members minpos and maxpos.
1720 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
1721 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
1722 and maxpos members instead of start.pos and end.pos, respectively.
1723
1724 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
1725 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
1726 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
1727 (try_window_reusing_current_matrix, try_window_id):
1728 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
1729 (init_from_display_pos, init_iterator): Use EMACS_INT for
1730 character and byte positions.
66a9f7f4 1731 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
1732 arguments for minimum and maximum buffer positions seen by
1733 display_line for this row. Don't use iterator to find the
1734 position following the maximum one; instead, increment the
11117830
EZ
1735 position found by display_line directly. Fix logic; eol_pos
1736 should be tested before the rest. Handle the case of characters
1737 delivered from display vector (bug#6036). Fix tests related to
1738 it->method. Handle the truncated_on_right_p rows.
1739 (RECORD_MAX_MIN_POS): New macro.
1740 (display_line): Use it to record the minimum and maximum buffer
1741 positions for glyphs in the row being assembled. Record the
1742 position of the newline that terminates the line. If word wrap is
1743 in effect, restore minimum and maximum positions seen up to the
1744 wrap point, when iterator returns to it.
1745 (try_window_reusing_current_matrix): Give up if in bidi-reordered
1746 row and cursor not already at point. Restore original pre-bidi
1747 code for unidirectional buffers.
d36fe237
EZ
1748
1749 * dispnew.c (increment_row_positions, check_matrix_invariants):
1750 Increment and check row->start.pos and row->end.pos, in addition
1751 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
1752
11117830
EZ
1753 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
1754 Display truncated_on_left_p and truncated_on_right_p flags.
1755 Formatting fixes.
1756 (pmtxrows): Display the ordinal number of each row. Don't display
1757 rows beyond the last one.
1758
1759 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
1760 it is not copied by bidi_copy_it.
1761
6e83d800
EZ
17622010-05-22 Eli Zaretskii <eliz@gnu.org>
1763
1764 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
1765 (Bug#6237)
1766
110683ad
CY
17672010-05-22 Chong Yidong <cyd@stupidchicken.com>
1768
1769 * image.c (Fimage_flush): Rename from image-refresh.
1770
98fe5161
CY
17712010-05-21 Chong Yidong <cyd@stupidchicken.com>
1772
1773 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
1774 just one window.
1775
1776 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
1777 (clear_image_cache): If the number of cached images is unusually
1778 large, decrease the cache eviction delay (Bug#6230).
1779
e8752c66
GM
17802010-05-21 Glenn Morris <rgm@gnu.org>
1781
66dbf213
GM
1782 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
1783 Move these rules to ns.mk.
1784 * ns.mk: New file.
1785
04384b2d
GM
1786 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
1787
e8752c66
GM
1788 * Makefile.in (CANNOT_DUMP): New, set by configure.
1789 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
1790
2e2bbddb
JL
17912010-05-20 Juri Linkov <juri@jurta.org>
1792
1793 * fileio.c (Fdelete_file): Change interative spec to use
1794 `read-file-name' like in `find-file-read-args' where the default
1795 value is `default-directory' instead of `buffer-file-name'.
1796 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
1797
31c4aaf6
KR
17982010-05-20 Kevin Ryde <user42@zip.com.au>
1799
1800 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1801 (Voverriding_terminal_local_map, Vsystem_key_alist)
1802 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1803
9d5cf9b6
GM
18042010-05-20 Glenn Morris <rgm@gnu.org>
1805
1806 * Makefile.in (DEPDIR): New constant.
1807 (DEPFLAGS): Set with configure, not cpp.
1808 (MKDEPDIR): New, set by configure.
1809 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
1810 (clean): Use $DEPDIR.
1811 (deps_frag): Include from configure.
1812 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1813 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1814
ead6f8f5
EZ
1815 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1816 reallocation of the cache. (Bug#6210)
1817
7f34aec3
GM
18182010-05-19 Glenn Morris <rgm@gnu.org>
1819
d494e8f2
GM
1820 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1821
c1d0dcfd
GM
1822 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1823 (GNULIB_VAR): Remove.
1824 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1825
1826 * m/ibms390x.h (LINKER):
1827 * m/macppc.h (LINKER) [GNU_LINUX]:
1828 * s/aix4-2.h (ORDINARY_LINK):
1829 * s/cygwin.h (LINKER):
1830 * s/darwin.h (ORDINARY_LINK):
1831 * s/gnu.h (ORDINARY_LINK):
1832 * s/netbsd.h (LINKER):
1833 * s/usg5-4.h (ORDINARY_LINK):
1834 Move to configure.
1835
7f34aec3
GM
1836 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1837
754790b6
CY
18382010-05-18 Chong Yidong <cyd@stupidchicken.com>
1839
1840 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1841 prevent stack overflow if number of arguments is too large
1842 (Bug#6214).
1843
161e44d1
JB
18442010-05-18 Juanma Barranquero <lekktu@gmail.com>
1845
1846 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1847
be4ff9da
GM
18482010-05-18 Glenn Morris <rgm@gnu.org>
1849
9539dc5d
GM
1850 * s/gnu-linux.h: Combine two conditionals.
1851
1852 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
1853 $(POST_ALLOC_OBJ).
1854
40dc6bf4
GM
1855 * Makefile.in (RALLOC_OBJ): New, set by configure.
1856 (rallocobj): Replace with the previous variable.
1857 (otherobj): Use $RALLOC_OBJ.
1858
1859 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1860 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1861
be4ff9da
GM
1862 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1863 (gmallocobj, vmlimitobj): Replace with previous two variables.
1864 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1865
16455a85
GM
18662010-05-17 Glenn Morris <rgm@gnu.org>
1867
1868 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1869 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1870
5fdb7468
GM
18712010-05-16 Glenn Morris <rgm@gnu.org>
1872
7ca1f3f9
GM
1873 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1874
7541dad5
GM
1875 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1876
da53fab9
GM
1877 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1878 trailing "/".
1879
b02a6645
GM
1880 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1881 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1882
8877ca0f
GM
1883 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1884 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1885 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1886 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1887 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1888
5fdb7468
GM
1889 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1890 Remove ${STARTFLAGS}, nothing ever sets it.
1891
95adb4b1
DN
18922010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1893
1894 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1895
676b6304
GM
18962010-05-16 Glenn Morris <rgm@gnu.org>
1897
9beab9ce
GM
1898 * Makefile.in (LIBX_BASE): Always define.
1899
8a95f0e7
GM
1900 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1901
676b6304
GM
1902 * Makefile.in (LIBXT): Always define.
1903
6e546d18
GM
19042010-05-15 Glenn Morris <rgm@gnu.org>
1905
4235ca47 1906 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 1907
6e546d18
GM
1908 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1909 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1910
8c5ff6dd
KR
19112010-05-15 Ken Raeburn <raeburn@raeburn.org>
1912
560bb7ae 1913 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
1914 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1915
8b4eb796
KR
1916 * emacs.c (main): Initialize initial-environment and
1917 process-environment before generating from env, not after.
1918
8c5ff6dd
KR
1919 Handle --version reasonably in CANNOT_DUMP configuration.
1920 * emacs.c (emacs_version, emacs_copyright): New string variables.
1921 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1922 (syms_of_emacs): Defvar them, and initialize them from the C
1923 string variables.
1924 (main): If initialization hasn't been done, print initial version
1925 info from the C strings, instead of starting an interactive session.
1926
dbd3f723
EZ
19272010-05-15 Eli Zaretskii <eliz@gnu.org>
1928
d20e1419
EZ
1929 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1930 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
1931 (bidi_paragraph_init): Remove redundant assertion that we are at
1932 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
1933
1934 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1935 (syms_of_xdisp): Defsubr it.
1936
d36fe237
EZ
1937 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1938
dbd3f723
EZ
1939 * Makefile.in: Fix MSDOS-related comments.
1940
02be533b
GM
19412010-05-15 Glenn Morris <rgm@gnu.org>
1942
1a82cca9
GM
1943 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1944 (really-lwlib, really-oldXMenu): Always define.
1945 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1946
3df7b338
GM
1947 * Makefile.in: Simplify cpp conditional.
1948
2b5f541b
GM
1949 * Makefile.in (${ns_appdir}): Simplify using umask.
1950
02be533b
GM
1951 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1952
4e2db1fe
SM
19532010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1954
1955 * eval.c (specbind): Remove left-over duplicate test.
1956 Disallow let-binding frame-local vars. Add comment.
1957
4b292a22
EZ
19582010-05-14 Eli Zaretskii <eliz@gnu.org>
1959
2fe72643 1960 Make the cache of bidi iterator states dynamically allocated.
1edbd309 1961 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
1962 (bidi_init_it): Call it.
1963 (bidi_cache_iterator_state): Enlarge the cache if needed.
1964
4e2db1fe 1965 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
1966 bidi_get_next_char_visually. All callers changed.
1967
82ebc97b
KH
19682010-05-14 Kenichi Handa <handa@m17n.org>
1969
1970 * dispextern.h (struct composition_it): New member reversed_p.
1971
1972 * composite.c (composition_compute_stop_pos): Search backward if
1973 ENDPOS < CHARPOS.
1974 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1975 Set CMP_IT->reversed_p.
b4b6e17e 1976 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 1977
4e2db1fe
SM
1978 * xdisp.c (set_iterator_to_next):
1979 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
1980 scanning backward. Call composition_compute_stop_pos if scan
1981 direction is changed.
1982 (next_element_from_buffer): Call composition_compute_stop_pos with
1983 negative ENDPOS if we are scanning backward.
1984 (next_element_from_composition): Pay attention to
1985 IT->cmp_it.reversed_p.
1986
0e5d7800
KH
19872010-05-14 Kenichi Handa <handa@m17n.org>
1988
560bb7ae 1989 * font.c (font_range): Return the range for the font found at first.
0e5d7800 1990
cb027b32
GM
19912010-05-14 Glenn Morris <rgm@gnu.org>
1992
177b0288
GM
1993 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1994
fbc00890
GM
1995 * Makefile.in (mktime, X11, register): Move undefs to configure.
1996
f14d1dfd
GM
1997 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1998 (MSDOS_X_OBJ): New variable.
1999 (MSDOS_SUPPORT_REAL): New constant.
2000 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2001 (obj): Use MSDOS_X_OBJ.
2002 (lisp): Use MSDOS_SUPPORT as a variable.
2003
11842bd8
GM
2004 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2005 (GPM_MOUSE_SUPPORT): Now it's a constant.
2006 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2007 not cpp.
2008
489d31a4 2009 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2010 (ns_appresdir): Remove, unused.
e20f1f07 2011
489d31a4
GM
2012 * Makefile.in (SHELL): Move outside cpp section.
2013
cb027b32
GM
2014 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2015
5a903aa9
GM
20162010-05-13 Glenn Morris <rgm@gnu.org>
2017
3369c79f
GM
2018 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2019 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2020
d5e982a6
GM
2021 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2022 HAVE_WINDOW_SYSTEM must be too.
2023
6192e163
GM
2024 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2025 (lisp): Remove WINNT_SUPPORT.
2026
472c5d6b
GM
2027 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2028 Let configure set these variables (to empty) in this case as well.
2029
0116466b
GM
2030 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2031 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2032
5a903aa9
GM
2033 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2034 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2035 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2036 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2037 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2038 the values output by configure.
5a903aa9
GM
2039 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2040
1a0d7c06
GM
20412010-05-12 Glenn Morris <rgm@gnu.org>
2042
b5457f14
GM
2043 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2044 (LINKER_WAS_SPECIFIED): Remove.
2045
1a0d7c06
GM
2046 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2047 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2048 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2049 * s/cygwin.h (LIB_GCC):
2050 * s/freebsd.h (LIB_GCC):
2051 * s/gnu-linux.h (LIB_GCC):
2052 * s/msdos.h (LIB_GCC):
2053 * s/netbsd.h (LIB_GCC):
2054 Move to configure.
2055
3ffd4615 20562010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2057
2058 * ftfont.c: Fix incorrect parentheses of #if condition for
2059 definining M17N_FLT_USE_NEW_FEATURE.
2060
acddf8ae
GM
20612010-05-11 Glenn Morris <rgm@gnu.org>
2062
2063 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2064 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2065
ae5e04fa
EZ
20662010-05-10 Eli Zaretskii <eliz@gnu.org>
2067
2068 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2069 unibyte buffers. See
2070 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2071
7490175b
GM
20722010-05-10 Glenn Morris <rgm@gnu.org>
2073
97efb629
GM
2074 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2075 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2076 (LIBES): Use LIBS_SYSTEM as a variable.
2077 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2078 * s/aix4-2.h (LIBS_SYSTEM):
2079 * s/freebsd.h (LIBS_SYSTEM):
2080 * s/hpux10-20.h (LIBS_SYSTEM):
2081 * s/sol2-6.h (LIBS_SYSTEM):
2082 * s/unixware.h (LIBS_SYSTEM):
2083 Move to configure.
2084
7490175b
GM
2085 * s/aix4-2.h (MAIL_USE_LOCKF):
2086 * s/bsd-common.h (MAIL_USE_FLOCK):
2087 * s/darwin.h (MAIL_USE_FLOCK):
2088 * s/gnu-linux.h (MAIL_USE_FLOCK):
2089 * s/irix6-5.h (MAIL_USE_FLOCK):
2090 * s/template.h (MAIL_USE_FLOCK):
2091 Move to configure.
2092
0235128c 20932010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2094
2095 * Version 23.2 released.
2096
0235128c 20972010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2098
2099 * composite.c (autocmp_chars): Save point as marker before calling
2100 auto-composition-function (Bug#5984).
2101
2102 * lisp.h (restore_point_unwind): Add prototype.
2103
2104 * fileio.c (restore_point_unwind): Remove static attribute.
2105
0235128c 21062010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2107
2108 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2109 new feature of libotf and m17n-flt.
0235128c
SM
2110 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2111 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2112 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2113 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2114 that OUT is NULL. Use OTF_drive_gsub_with_log and
2115 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2116 OTF_drive_gpos.
2117 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2118 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2119 Setup mflt_enable_new_feature and mflt_try_otf.
2120
4721152c
J
21212010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2122
2123 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2124
2125 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2126 box and toolbar (Bug #6139).
2127 (xg_create_tool_bar): Remove comment (Bug #6139).
2128 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2129 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2130
ee0a16cf
JB
21312010-05-08 Juanma Barranquero <lekktu@gmail.com>
2132
2133 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2134 Update dependencies.
2135
96d79611
EZ
21362010-05-08 Eli Zaretskii <eliz@gnu.org>
2137
2138 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2139 R2L lines.
2140
40c17879
GM
21412010-05-08 Glenn Morris <rgm@gnu.org>
2142
7b42b29f
GM
2143 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2144
40c17879
GM
2145 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2146 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2147 (termcapobj): Replace with TERMCAP_OBJ.
2148 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2149 (LIBES): Use LIBS_TERMCAP as a variable.
2150
2151 * s/freebsd.h (osreldate.h): No longer include, since this file
2152 does not use __FreeBSD_version any more.
2153
2154 * s/aix4-2.h (TERMINFO):
2155 * s/cygwin.h (TERMINFO):
2156 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2157 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2158 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2159 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2160 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2161 * s/irix6-5.h (TERMINFO):
2162 * s/netbsd.h (LIBS_TERMCAP):
2163 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2164 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2165 * s/usg5-4.h (TERMINFO):
2166 Move to configure.
2167
94b612ad
SM
21682010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2169
2170 * eval.c (unbind_to): Don't unbind a local binding into the global
2171 binding when the local binding disappeared. Inversely, don't unbind
2172 a global binding into a newly created local binding.
2173 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2174 can specify the frame to use, when applicable. Adjust callers.
2175
15e12598 21762010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2177 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2178
2179 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2180
f724825e
EZ
21812010-05-07 Eli Zaretskii <eliz@gnu.org>
2182
5cba3209
EZ
2183 * w32fns.c: Include w32.h.
2184 (Fw32_shell_execute): Decode the error message before passing it
2185 to `error'. (Bug#6126)
2186
d16bdfc3
EZ
2187 * msdos.c (dos_set_window_size):
2188 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2189 instead of `XSYMBOL (foo)->value'.
2190
59d93e87
EZ
21912010-05-07 Eli Zaretskii <eliz@gnu.org>
2192
9fdec8bc
EZ
2193 Fix the MS-DOS build, broken by autoconfiscation.
2194
2195 * Makefile.in: Don't use Make-style comments past the "start of
2196 cpp stuff" line.
2197 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2198
2199 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2200 edited directly by msdos/sed1v2.inp).
f724825e 2201
2f86b22b
GM
22022010-05-07 Glenn Morris <rgm@gnu.org>
2203
2204 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2205 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2206 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2207 move out of cpp section.
2208 * s/freebsd.h (LD_SWITCH_SYSTEM):
2209 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2210 * s/netbsd.h (LD_SWITCH_SYSTEM):
2211 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2212
49ebbd65
DN
22132010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2214
2215 Define LIB_STANDARD and START_FILES using autoconf.
2216 * s/usg5-4.h (LIB_STANDARD):
2217 * s/netbsd.h (START_FILES):
2218 * s/irix6-5.h (LIB_STANDARD):
2219 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2220 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2221 * s/freebsd.h (START_FILES):
2222 * s/darwin.h (START_FILES):
2223 * s/cygwin.h (START_FILES):
2224 * s/aix4-2.h (LIB_STANDARD):
2225 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2226 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2227 autoconf, not cpp.
2228
d43c06d6
DN
22292010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2230
28823648
DN
2231 Remove NEED_BSDTTY and NEED_UNISTD_H.
2232 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2233 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2234 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2235 <sys/ptyio.h> and <unistd.h>.
2236
aca00430
DN
2237 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2238
d43c06d6
DN
2239 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2240 * s/gnu.h (START_FILES): Remove empty definition.
2241
3e56b11d
JD
22422010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2243
2244 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2245
e3cf0cde
GM
22462010-05-06 Glenn Morris <rgm@gnu.org>
2247
2248 * Makefile.in (CPP, LN_S): Remove unused variables.
2249
774b9a60
SM
22502010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2251
2252 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2253
4ab92842
LM
22542010-05-05 Lawrence Mitchell <wence@gmx.li>
2255
2256 * m/sparc.h: Fix typo in earlier change.
2257
178f2507
SM
22582010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2259
2260 Misc tweaks.
2261 * eval.c (Fdefvaralias): Remove unintended nested if.
2262 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2263
80f00217 22642010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2265
2266 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2267
ef03a4e6
DN
22682010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2269
58eb6cf0
DN
2270 Remove BSD_PGRPS.
2271 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2272 * s/gnu-linux.h (BSD_PGRPS): Remove.
2273 * term.c (dissociate_if_controlling_tty):
2274 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2275 (init_sys_modes, reset_sys_modes):
2276 * emacs.c (main):
2277 * callproc.c (Fcall_process, child_setup): Remove code depending
2278 on BSD_PGRPS.
2279
ef03a4e6
DN
2280 Remove POSIX_SIGNALS.
2281 * s/usg5-4.h (POSIX_SIGNALS):
2282 * s/netbsd.h (POSIX_SIGNALS):
2283 * s/msdos.h (POSIX_SIGNALS):
2284 * s/ms-w32.h (POSIX_SIGNALS):
2285 * s/hpux11.h (POSIX_SIGNALS):
2286 * s/gnu.h (POSIX_SIGNALS):
2287 * s/gnu-linux.h (POSIX_SIGNALS):
2288 * s/freebsd.h (POSIX_SIGNALS):
2289 * s/darwin.h (POSIX_SIGNALS):
2290 * s/cygwin.h (POSIX_SIGNALS):
2291 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2292 * s/unixware.h:
2293 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2294 * process.c (create_process):
2295 * syssignal.h:
2296 * sysdep.c (wait_for_termination, init_signals):
2297 * process.c (create_process):
2298 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2299 remove all code that assumes the contrary.
2300
49628785
GM
23012010-05-04 Glenn Morris <rgm@gnu.org>
2302
27a2cdfc
GM
2303 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2304 variable.
2305 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2306 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2307 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2308 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2309 LD_SWITCH_SYSTEM_tmp.
2310 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2311 New variables, set by configure.
2312
eb21eab5
GM
2313 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2314 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2315 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2316 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2317 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2318
49628785
GM
2319 * s/aix4-2.h (C_SWITCH_SYSTEM):
2320 * m/alpha.h (C_SWITCH_MACHINE):
2321 Move to configure.in.
2322 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2323 New variables, set by configure.
2324 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2325 $c_switch_machine and $c_switch_system.
2326
7dff330b
DN
23272010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2328
2329 * s/hpux10-20.h (LIB_STANDARD): New definition.
2330 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2331 on it, not used anymore.
2332
53967e09
CY
23332010-05-03 Chong Yidong <cyd@stupidchicken.com>
2334
2335 * eval.c (internal_condition_case_n): Rename from
2336 internal_condition_case_2.
2337 (internal_condition_case_2): New function.
2338
2339 * xdisp.c (safe_call): Use internal_condition_case_n.
2340
2341 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2342 (internal_delete_file, Frename_file): Callers changed.
2343
2344 * buffer.c (Fkill_buffer):
2345 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2346
2347 * lisp.h: Update prototypes.
2348
3dee6fdb
GM
23492010-05-03 Glenn Morris <rgm@gnu.org>
2350
2351 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2352 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2353 (LIBXT): Set with configure, not cpp.
2354 (LIBX): Remove.
2355 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2356
a101e0fb
DN
23572010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2358
2359 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2360 The FreeBSD is not needed, the default works, Solaris version is
2361 not needed, and the remaining case is not supported by configure.
2362
f63d0028
JD
23632010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2364
2365 * xsmfns.c (CHDIR_OPT): New define.
2366 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2367 restarting emacs.
2368
2369 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2370 shut_down_emacs.
2371
2372 * emacs.c (USAGE1): Mention --chdir.
2373 (main): Handle --chdir.
2374 (standard_args): Add --chdir.
2375 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2376 #5552).
2377
e4814a9f
DN
23782010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2379
cd03c74a
DN
2380 Remove LD_SWITCH_MACHINE.
2381 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2382 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2383
c3a398a1
DN
2384 Clean up IRIX code.
2385 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2386 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2387
87e7285c
DN
2388 Clean up AIX code.
2389 * m/ibmrs6000.inp: Remove file, unused.
2390 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2391 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2392 definition ...
2393 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2394
80f00217
JB
2395 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2396 unused.
e4814a9f 2397
59ca28de
EZ
23982010-05-01 Eli Zaretskii <eliz@gnu.org>
2399
197daef4
EZ
2400 Emulate POSIX_SIGNALS on MS-Windows.
2401
2402 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2403 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
2404
2405 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2406 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2407 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2408
80f00217
JB
2409 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2410 New stubs.
197daef4 2411
af7c7572
EZ
2412 Miscellaneous fixes of bidi display.
2413
59ca28de
EZ
2414 * xdisp.c (find_row_end): New function, refactored from display_line.
2415 (display_line): Use it.
017ea819
EZ
2416 (extend_face_to_end_of_line): In almost-filled rows, extend only
2417 if the row is R2L and not continued.
166e930d 2418 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 2419 Preserve overlay and string info in row->end.
166e930d
EZ
2420 (insert_left_trunc_glyphs): Support addition of left truncation
2421 glyphs to R2L rows.
b47e0dcf 2422 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
2423 glyph between adjacent windows. Fix a crash when a display string
2424 is continued to the next line. Don't return zero if cursor was
2425 found by `cursor' property of a display string.
b47e0dcf
EZ
2426 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2427 test for that explicitly.
59ca28de 2428
7acac9f4
GM
24292010-05-01 Glenn Morris <rgm@gnu.org>
2430
2431 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2432 for clarity.
2433 (OTHER_OBJ): Remove.
2434 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2435 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2436
45841e65
KK
24372010-05-01 Karel Klíč <kklic@redhat.com>
2438
2439 * fileio.c (Ffile_selinux_context): Context functions may return null.
2440
afc61943
DN
24412010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2442
80f00217 2443 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 2444
5a1bb006
GM
24452010-04-30 Glenn Morris <rgm@gnu.org>
2446
2447 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2448 (OTHER_OBJ): Define as a separate variable, for clarity.
2449
210af043
J
24502010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2451
2452 * xsettings.c: include limits.h and update file comment.
2453
0a7df391
GM
24542010-04-30 Glenn Morris <rgm@gnu.org>
2455
d5096f16
GM
2456 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2457 Set with configure, not cpp.
2458 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2459
7eb1ac33
GM
2460 * Makefile.in (mallocobj): Remove.
2461 (otherobj): Simplify using @OTHER_OBJ@.
2462
517d086b
GM
2463 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2464 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2465 Don't bother making nsgui.h dependency platform-specific.
2466
0a7df391
GM
2467 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2468
d6d23852
SM
24692010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2470
d2630aef
SM
2471 * process.c (read_process_output, exec_sentinel): Don't burp if the
2472 sentinel/filter kills the current buffer (bug#6060).
2473
f9dddf52 2474 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
2475 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2476 Remove unused var `args'.
2477 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2478 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2479 * doc.c (store_function_docstring): Use XSETCAR.
2480
f1e3642a
GM
24812010-04-28 Glenn Morris <rgm@gnu.org>
2482
faf535f8
GM
2483 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2484 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2485
c40f9449
GM
2486 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2487
658f86ca
GM
2488 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2489 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2490
bc0b5f61
GM
2491 * Makefile.in (FONT_OBJ): New, set by configure.
2492 (FONT_DRIVERS): Use $FONT_OBJ.
2493
294c50a0
GM
2494 * Makefile.in (LIBXMU): Set with configure, not cpp.
2495 * s/aix4-2.h (LIBXMU):
2496 * s/hpux10-20.h (LIBXMU):
2497 Remove definition, now set in configure.
2498
e6ec4e99
GM
2499 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2500
f1e3642a
GM
2501 * m/amdx86-64.h [i386]: Move this test to configure.in.
2502
c6ea2936
GM
25032010-04-27 Glenn Morris <rgm@gnu.org>
2504
8fdac2c3
GM
2505 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2506 * s/unixware.h (NEED_LIBW): Remove definition.
2507
986fb647
GM
2508 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2509 (TOOLKIT_LIBW): New, set by configure.
2510 (@X_TOOLKIT_TYPE@): No longer define it.
2511
c6ea2936
GM
2512 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
2513 (MOTIF_LIBW): Set with configure, not cpp.
2514 * s/aix4-2.h (LIB_MOTIF):
2515 * s/gnu-linux.h (LIB_MOTIF):
2516 * s/unixware.h (LIB_MOTIF): Move to configure.in.
2517
aaa36002
DN
25182010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2519
2520 Reduce CPP usage.
2521 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
2522 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
2523 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
2524 definitions and undefs. Inline definitions in the only user.
2525 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 2526
b678dd8b
GM
25272010-04-27 Glenn Morris <rgm@gnu.org>
2528
76cda504
GM
2529 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
2530 since the defaults (set by the system file) are fine in most cases.
2531 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
2532 * m/ibms390x.h (START_FILES, LIB_STANDARD):
2533 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
2534 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
2535 Remove definitions, since they are set correctly in s/gnu-linux.h.
2536 * s/freebsd.h (START_FILES, LIB_STANDARD):
2537 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2538 * s/hpux10-20.h (START_FILES):
2539 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
2540 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
2541
b678dd8b
GM
2542 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
2543 (MOTIF_LIBW): Use $LIBXP.
2544 (otherobj): Use $WIDGET_OBJ.
2545
9452ded1
DN
25462010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2547
7e10844c
DN
2548 * Makefile.in (LIBS_MACHINE): Remove, unused.
2549
9452ded1
DN
2550 Use autoconf instead of cpp for LIB_MATH.
2551 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2552 * s/cygwin.h (LIB_MATH): Likewise.
2553 * Makefile.in (LIB_MATH): Do not define with cpp.
2554 (LIBES): Use autoconf for LIB_MATH.
2555
fcebfc6a
KH
25562010-04-26 Kenichi Handa <handa@m17n.org>
2557
2558 * composite.c (Ffind_composition_internal): Fix the return value
2559 for an automatic composition.
2560
39e2ad1b
DN
25612010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2562
2563 Remove all NO_ARG_ARRAY uses.
2564 * fns.c (concat2, concat3, nconc2):
2565 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2566 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2567 * m/xtensa.h (NO_ARG_ARRAY):
2568 * m/template.h (NO_ARG_ARRAY):
2569 * m/sparc.h (NO_ARG_ARRAY):
2570 * m/sh3.h (NO_ARG_ARRAY):
2571 * m/mips.h (NO_ARG_ARRAY):
2572 * m/macppc.h (NO_ARG_ARRAY):
2573 * m/iris4d.h (NO_ARG_ARRAY):
2574 * m/intel386.h (NO_ARG_ARRAY):
2575 * m/ibms390x.h (NO_ARG_ARRAY):
2576 * m/ibms390.h (NO_ARG_ARRAY):
2577 * m/ibmrs6000.h (NO_ARG_ARRAY):
2578 * m/ia64.h (NO_ARG_ARRAY):
2579 * m/hp800.h (NO_ARG_ARRAY):
2580 * m/arm.h (NO_ARG_ARRAY):
2581 * m/amdx86-64.h (NO_ARG_ARRAY):
2582 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2583
adf4f59c
EZ
25842010-04-25 Eli Zaretskii <eliz@gnu.org>
2585
6bdf5d65
EZ
2586 * xdisp.c (display_line): Don't assume 2nd call to
2587 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
2588 (iterate_out_of_display_property): New function, body from pop_it.
2589 (pop_it): Use it.
adf4f59c 2590
dfbbda83
GM
25912010-04-24 Glenn Morris <rgm@gnu.org>
2592
2593 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2594 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2595 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2596 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2597
2d4018aa
EZ
25982010-04-24 Eli Zaretskii <eliz@gnu.org>
2599
a49884a6
EZ
2600 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2601 use `get_next_display_element' and `set_iterator_to_next' to
2602 advance to the next character, when looking for the character that
2603 begins the next row.
2604
76db6fcc 2605 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
2606 definition of "struct Lisp_Symbol".
2607
70eab5c1
GM
26082010-04-24 Glenn Morris <rgm@gnu.org>
2609
2610 * Makefile.in (CRT_DIR): New variable, set by configure.
2611 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2612 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2613
1ad4cc3d
DN
26142010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2615
e769f484
DN
2616 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2617
4196ff33
DN
2618 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2619
879b0ee4
DN
2620 Remove redundant flags.
2621 * s/freebsd.h (C_SWITCH_SYSTEM):
2622 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2623 * s/netbsd.h (C_SWITCH_SYSTEM):
2624 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2625 of these.
2626
03cbbcb8
DN
2627 Simplify m/intel386.h.
2628 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2629 user: ecrt0.c.
2630 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2631 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2632 the only user: s/unixware.h.
2633 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2634 from m/intel386.h.
2635 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2636 moved here from m/intel386.h.
2637
1ad4cc3d
DN
2638 * m/mips.h: Remove #if 0 code.
2639
8785b888
EZ
26402010-04-23 Eli Zaretskii <eliz@gnu.org>
2641
728588cc
EZ
2642 Fix display of composed characters from L2R scripts in bidi buffers.
2643 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2644 After advancing IT past the composition, resync the bidi iterator
2645 with IT's position. (Bug#5977)
2646
a63f80b4
DN
26472010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2648
2649 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2650 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2651
ff5dec5c
SM
26522010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2653
2654 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
2655
8785b888
EZ
26562010-04-23 Eli Zaretskii <eliz@gnu.org>
2657
58ccf243 2658 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
2659 * xdisp.c (pop_it): When the stack is popped after displaying
2660 from a string, bidi-iterate to exit from the text portion covered
2661 by the `display' property or overlay. (Bug#5988, bug#5920)
2662
feeb1604
DN
26632010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2664
8e324eb6
DN
2665 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
2666 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
2667
809fcaba
DN
2668 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
2669 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
2670
ed710380
DN
2671 Simplify STARTFILES definition.
2672 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
2673 relying on Makefile.in to define it.
2674 * s/cygwin.h (START_FILES): Likewise.
2675 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
2676
feeb1604
DN
2677 Clean up Solaris code.
2678 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
2679 (LIB_MOTIF): Remove, configure takes care of this.
2680 (NOT_USING_MOTIF): Remove, unused.
2681 * xrdb.c: Remove #if 0-ed #include.
2682 (SYSV): Remove conditional for old SysV.
2683 * sysdep.c (closedir): Remove conditional code for Solaris,
2684 Solaris has closedir.
2685
a0d0b563
JD
26862010-04-22 Jan Djärv <jan.h.d@swipnet.se>
2687
2688 * xsettings.c (read_and_apply_settings): Check if current_font is
2689 NULL before strcmp (Bug#6001).
2690
56bae7c7
DN
26912010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
2692
2693 Clean up HP-UX files.
2694 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
2695 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
2696 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
2697 * s/hpux10-20.h: ... to the only user, here.
2698
372b7a95
EZ
26992010-04-21 Eli Zaretskii <eliz@gnu.org>
2700
2701 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
2702 use buffer-local values of paragraph-start and paragraph-separate.
2703 <paragraph_start_re, paragraph_separate_re>: Rename from
2704 fallback_paragraph_start_re and fallback_paragraph_separate_re.
2705 (Bug#5992)
2706
f904c0f9
JD
27072010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2708
2709 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
2710 current_tool_bar_style are new.
2711 (store_config_changed_event): Rename from store_font_changed_event.
2712 (XSETTINGS_TOOL_BAR_STYLE): New define.
2713 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
2714 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
2715 HAVE_XFT.
2716 (something_changedCB): store_font_changed_event is now
2717 store_config_changed_event
2718 (parse_settings): Rename from parse_xft_settings. Read
2719 non-xft xsettings outside #ifdef HAVE_XFT.
2720 (read_settings): Renamed from read_xft_settings.
2721 (apply_xft_settings): Take current settings as parameter. Do not
2722 call read_(xft)_settings.
2723 (read_and_apply_settings): New function.
2724 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
2725 read_and_apply_settings if there are settings to be read.
2726 (init_xsettings): Renamed from init_xfd_settings.
2727 Call read_and_apply_settings unconditionally.
2728 (xsettings_initialize): Call init_xsettings.
2729 (Ftool_bar_get_system_style): New function.
2730 (syms_of_xsettings): Define Qmonospace_font_name and
2731 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 2732 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 2733 dynamic-setting.
31a01b90 2734 Move misplaced HAVE_GCONF
f904c0f9
JD
2735
2736 * xsettings.h (Ftool_bar_get_system_style): Declare.
2737
2738 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
2739 Qtext, Qboth, Qboth_horiz are new.
2740 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
2741 Vtool_bar_style, tool_bar_max_label_size.
2742
2743 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
2744
2745 * keyboard.c: QClabel is new.
2746 (parse_tool_bar_item): Take out QClabel from tool bar items.
2747 Try to construct a label if ther is no QClabel.
2748 (syms_of_keyboard): Intern :label as QClabel.
2749
2750 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
2751 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
2752 New.
2753
2754 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
2755 dynamic-setting.el.
2756
2757 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
2758 (xg_make_tool_item, xg_show_toolbar_item): New function.
2759 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
2760 Call xg_make_tool_item to make a tool bar item.
2761 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
2762
2763 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
2764 into account for toolbars.
2765
c632dfda
JD
27662010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2767
2768 * data.c (make_blv): Declarations before code (Bug#5993).
2769
10efe302
GM
27702010-04-21 Glenn Morris <rgm@gnu.org>
2771
2772 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
2773 Define using autoconf, not cpp.
2774 (LIBXSM): New variable, set by autoconf.
2775 (LIBXT): Use $LIBXSM.
2776
4285ac5a
DN
27772010-04-21 Dan Nicolaescu <local_user@dannlt>
2778
3ec759e7
DN
2779 Remove NOMULTIPLEJOBS, unused.
2780 * s/template.h (NOMULTIPLEJOBS):
2781 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
2782
4285ac5a
DN
2783 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
2784 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
2785 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
2786 detects -znocombreloc and passes it to the linker
2787 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
2788
2807228d
GM
27892010-04-21 Glenn Morris <rgm@gnu.org>
2790
2791 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
2792
574c05e2
KK
27932010-04-21 Karel Klíč <kklic@redhat.com>
2794
2795 * Makefile.in (LIBSELINUX_LIBS): New.
2796 (LIBES): Add $LIBSELINUX_LIBS.
2797 * eval.c, lisp.h (call7): New function.
2798 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
2799 (Ffile_selinux_context, Fset_file_selinux_context):
2800 New functions.
2801 (Fcopy_file): New parameter preserve-selinux-context.
2802 (Frename_file): Preserve selinux context when renaming by copy-file.
2803
91eac4bb 28042010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 2805 Eli Zaretskii <eliz@gnu.org>
91eac4bb 2806
50426a04
JB
2807 Don't depend on cm.c or termcap.c on Windows, use stubs.
2808 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
2809 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
2810 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
2811 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
2812 (sys_tputs, sys_tgetstr): New stubs.
2813 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2814 (tputs, tgetstr): New; define to sys_*.
91eac4bb 2815
938efb77
JB
28162010-04-20 Juanma Barranquero <lekktu@gmail.com>
2817
2818 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2819
b4bf28b7
SM
28202010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2821
8b1e1112
SM
2822 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2823 Just signal a warning rather than an error when inside a let.
2824 (Fmake_variable_frame_local): Add the same test.
2825
933ac235
SM
2826 * font.c (syms_of_font): Make the style table vars read-only.
2827
b4bf28b7
SM
2828 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2829 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2830
2831 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2832
93d68d0c
EZ
28332010-04-20 Eli Zaretskii <eliz@gnu.org>
2834
2835 Fix R2L paragraph display on TTY.
2836
2837 * xdisp.c (unproduce_glyphs): New function.
2838 (display_line): Use it when produced glyphs are discarded from R2L
2839 glyph rows.
2840 (append_composite_glyph): In R2L rows, prepend the glyph rather
2841 than appending it.
2842
2843 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2844 rather than append it. Set up the resolved_level and bidi_type
2845 attributes of the appended glyph.
283ccc18
EZ
2846 (produce_special_glyphs): Mirror the backslash continuation
2847 character in R2L lines.
93d68d0c 2848
283ccc18 2849 Implement display of R2L paragraphs in GUI sessions.
26cdf528 2850
283ccc18
EZ
2851 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2852 append_stretch_glyph.
2853 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2854 off-by-one error in computing x at end of text in the row.
2855 (append_stretch_glyph): In reversed row, prepend the glyph rather
2856 than append it. Set resolved_level and bidi_type of the glyph.
2857 (extend_face_to_end_of_line): If the row is reversed, prepend a
2858 stretch glyph whose width is such that the rightmost glyph will be
2859 drawn at the right margin of the window. Fix off-by-one error on
2860 TTY frames in testing whether a line needs face extension. Fix
2861 face extension at ZV. If this is the last glyph row, use
2862 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2863 region face.
2864 (set_cursor_from_row, display_line): Use
26cdf528
EZ
2865 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2866 row->continuation_lines_width.
283ccc18
EZ
2867 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2868 are at ZV. Fixes a crash when reseated to ZV by
2869 try_window_reusing_current_matrix.
45903529
EZ
2870 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2871 which happens with R2L glyph rows. Fixes a crash when inserting a
2872 character at end of an R2L line.
283ccc18
EZ
2873 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2874 treat them as having zero-width characters. Improve comments.
2875 Don't reverse pos_before and pos_after for reversed glyph rows.
2876 Set cursor.x to negative value when the cursor might be on the
2877 left fringe.
2878 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2879 left fringe, not the right one.
f951a506
EZ
2880 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2881 (erase_phys_cursor): For reversed cursor_row, support cursor on
2882 the left fringe.
2883
283ccc18
EZ
2884 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2885 of continuation indicators on the fringes.
2886 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2887 left fringe.
2888
f951a506
EZ
2889 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2890 draw cursor on the left fringe.
2891
2892 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2893 cursor on the left fringe.
2894
f951a506
EZ
2895 * dispnew.c (update_text_area): Handle reversed desired rows when
2896 the cursor is on the left fringe.
2897 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2898 below, not by 0, for when the cursor is on the left fringe.
2899
3bb49aaf
JD
29002010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2901
2902 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2903 widget is a scrollbar.
2904
c0be27fd
KH
29052010-04-20 Kenichi Handa <handa@m17n.org>
2906
2907 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2908 only when the arg CHARSET_LIST is nil.
2909
ce5b453a
SM
29102010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2911
2912 Make variable forwarding explicit rather the using special values.
2913 Basically, this makes the structure of buffer-local values and object
2914 forwarding explicit in the type of Lisp_Symbols rather than use
2915 special Lisp_Objects for that. This tends to lead to slightly more
2916 verbose code, but is more C-like, simpler, and makes it easier to make
2917 sure we handled all cases, among other things by letting the compiler
2918 help us check it.
2919 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2920 Removing forwarding objects.
2921 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2922 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2923 explicit rather than hiding them inside Lisp_Object "values".
2924 (XFWDTYPE): New macro.
2925 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2926 (XBUFFER_LOCAL_VALUE): Remove.
2927 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2928 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2929 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2930 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2931 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2932 Remove the Lisp_Misc_* header.
2933 (struct Lisp_Buffer_Local_Value): Redefine.
2934 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2935 (struct Lisp_Misc_Any): Add filler to get the right size.
2936 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2937 Lisp_Intfwd.
2938 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2939 (DEFVAR_KBOARD): Allocate a forwarding object.
2940 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2941 (let_shadows_global_binding_p): New function.
2942 (union Lisp_Val_Fwd): New type.
2943 (make_blv): New function.
2944 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2945 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2946 (swap_in_symval_forwarding, find_symbol_value, Fset)
2947 (let_shadows_buffer_binding_p, set_internal, default_value)
2948 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2949 (Fkill_local_variable, Fmake_variable_frame_local)
2950 (Flocal_variable_p, Flocal_variable_if_set_p)
2951 (Fvariable_binding_locus):
2952 * xdisp.c (select_frame_for_redisplay):
2953 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2954 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2955 * frame.c (store_frame_param):
2956 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2957 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2958 value structure.
2959 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2960 (clone_per_buffer_values): Only adjust markers into the current buffer.
2961 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2962 (Fbuffer_local_value, set_buffer_internal_1)
2963 (swap_out_buffer_local_variables):
2964 Adapt to the new symbol value structure.
2965 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2966 (defvar_per_buffer): Take a new arg for the fwd object.
2967 (buffer_lisp_local_variables): Return a proper alist (different fix
2968 for bug#4138).
2969 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2970 (Fgarbage_collect): Don't handle buffer_defaults specially.
2971 (mark_object): Handle new symbol value structure rather than the old
2972 special Lisp_Misc_* objects.
2973 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2974 * term.c (set_tty_color_mode):
2975 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2976 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2977 a buffer_local_flags.
2978 * print.c (print_object): Get rid of impossible forwarding objects.
2979
fd3998ff
EZ
29802010-04-19 Eli Zaretskii <eliz@gnu.org>
2981
2982 * bidi.c (bidi_get_type, bidi_get_category)
2983 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
2984 (bidi_type_of_next_char, bidi_level_of_next_char):
2985 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 2986
e42cd1a7
JB
29872010-04-19 Juanma Barranquero <lekktu@gmail.com>
2988
2989 * dired.c (Ffile_attributes): Fix typo in docstring.
2990
6e104790 29912010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
2992
2993 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2994 NSInteger (Bug#5811).
2995
6e104790 29962010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
2997
2998 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2999 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3000
6e104790 30012010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3002
3003 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3004
6e104790
SM
30052010-04-19 Chong Yidong <cyd@stupidchicken.com>
3006
3007 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3008 terminal frames (Bug#5837).
3009
37dcfea0
EZ
30102010-04-19 Eli Zaretskii <eliz@gnu.org>
3011
d1da276f
EZ
3012 * .gdbinit (xsubchartable): New command.
3013
37dcfea0
EZ
30142010-04-19 Eli Zaretskii <eliz@gnu.org>
3015
3016 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3017 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3018 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3019 and
3020 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3021
e9515805
SM
30222010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3023
3024 * alloc.c (Fpurecopy): Hash-cons if requested.
3025 (syms_of_alloc): Update purify-flag docstring.
3026
22aa44a8
JD
30272010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3028
3029 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3030 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3031
ebb5722e
EZ
30322010-04-17 Eli Zaretskii <eliz@gnu.org>
3033
3034 Fix a crash when an NSM character is inserted at BEGV.
3035
3036 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3037 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3038 NEUTRAL_B or UNKNOWN_BT.
3039
0f4442ef
EZ
30402010-04-16 Eli Zaretskii <eliz@gnu.org>
3041
3042 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3043 other rows with cursor unless they are different from this row and
3044 this row is part of a continued line. (Bug#5943)
3045
7d4e45f8
DN
30462010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3047
3048 * s/freebsd.h: Restore osreldate.h include.
3049 Suggested by Naohiro Aota.
3050
5ba5ec85
J
30512010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3052
3053 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3054
20af301d
CY
30552010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3056
3057 * s/cygwin.h: Avoid linking against static libgcc.
3058
a4b000fb
JL
30592010-04-15 Juri Linkov <juri@jurta.org>
3060
3061 * window.c: Add Qscroll_command.
3062 Remove Vscroll_preserve_screen_position_commands.
3063 (window_scroll_pixel_based, window_scroll_line_based): Check the
3064 `scroll-command' property on the last command instead of searching
3065 the last command in Vscroll_preserve_screen_position_commands.
3066 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3067 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3068 (scroll-preserve-screen-position): Doc fix.
3069 (Vscroll_preserve_screen_position_commands): Remove variable.
3070
bc319ba4
DN
30712010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3072
6bb24457
DN
3073 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3074
19d4c244
DN
30752010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3076
3077 Reduce cpp use in Makefile.in.
3078 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3079 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3080 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3081 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3082 (CRT0_COMPILE): Remove, inline it in the only user.
3083
32129746
JL
30842010-04-14 Juri Linkov <juri@jurta.org>
3085
3086 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3087 `scroll-up-command' and `M-v' from `scroll-down' to
3088 `scroll-down-command'.
3089
9013a7f8
JL
30902010-04-14 Juri Linkov <juri@jurta.org>
3091
3092 * window.c (Vscroll_preserve_screen_position_commands): New variable
3093 with the default value as the list of Qscroll_down and Qscroll_up.
3094 (window_scroll_pixel_based, window_scroll_line_based): Search the
3095 last command in the list Vscroll_preserve_screen_position_commands
3096 instead of comparing with Qscroll_up and Qscroll_down.
3097
4bef8d26
JD
30982010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3099
92848133
JD
3100 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3101 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3102 does that.
3103
4bef8d26
JD
3104 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3105 to zero.
3106
58b963f7
SM
31072010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3108
84164a0d
SM
3109 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3110
2b0a91e7
SM
3111 Try to solve the problem of spurious EOF chars in long lines of text
3112 sent to interactive subprocesses.
3113 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3114 (system_process_attributes): Remove unused var `ttotal'.
3115 * process.c (send_process): Don't bother breaking long line with EOF
3116 chars when talking to ttys any more.
3117 (wait_reading_process_output): Output a warning when called in such
3118 a way that it could block without being interruptible.
3119
58b963f7
SM
3120 Try to detect file modification within the same second.
3121 * buffer.h (struct buffer): New field modtime_size.
3122 * buffer.c (reset_buffer): Initialize it.
3123 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3124 (Fverify_visited_file_modtime): Check it.
3125 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3126 (Fset_visited_file_modtime): Set (or clear) it.
3127
01f5787b
SM
31282010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3129
3130 * process.c (status_notify): Remove unused var `ro'.
3131
83725342
JD
31322010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3133
3134 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3135 more than one visual (Bug#5938).
3136
b9465836
DN
31372010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3138
50426a04
JB
3139 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3140 Undefine.
b9465836 3141
8d9c8ece
DN
31422010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3143
b1f52161
DN
3144 Remove C_SWITCH_SYSTEM_TEMACS.
3145 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3146 (malloc, realloc, free): Use emacs, not temacs for conditional
3147 definition.
3148
3149 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3150 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3151
8d9c8ece
DN
3152 Use autoconf, not cpp for some variables.
3153 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3154 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3155 (ALL_CFLAGS): Use them as make variables.
3156 (really-lwlib, really-oldXMenu): Do not pass them.
3157
1ecb2d3f
JD
31582010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3159
3160 * xmenu.c (apply_systemfont_to_dialog): New.
3161 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3162
3a4fa2f2
SM
31632010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3164
97e53006
SM
3165 * process.c (exec_sentinel): Preserve current-buffer.
3166
3a4fa2f2
SM
3167 * process.c (read_process_output): Move the save-current-buffer to
3168 apply to both the filter and the non-filter branches.
3169
88df7221
DN
31702010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3171
3172 * s/msdos.h (UNEXEC): New definition.
3173
5634ff85
YM
31742010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3175
6eff5c3d
YM
3176 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3177 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3178
3179 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3180 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3181 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3182 TRY_WINDOW_CHECK_MARGINS.
3183
3184 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3185 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3186 width only when it is for padding.
5634ff85 3187
b13aef54
J
31882010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3189
3190 * xfns.c (Fx_show_tip): Call try_window in a loop until
3191 fonts_changed_p is zero (Bug#2423).
3192
21d28484
EZ
31932010-04-08 Eli Zaretskii <eliz@gnu.org>
3194
3195 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3196 the end of TEXT_AREA. (Bug#5856)
3197
0269ef77
JD
31982010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3199
3200 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3201 HAVE_GCONF.
3202
5930fe97
EZ
32032010-04-08 Eli Zaretskii <eliz@gnu.org>
3204
3205 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3206 prev.orig_type, for resolving type of NSM. (Bug#5858)
3207
99852628
JD
32082010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3209
3210 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3211 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3212 in current_font.
3213 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3214 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3215 New functions.
3216 (syms_of_xsettings): Initialize current_font.
3217 defsubr Sfont_get_system_normal_font.
99852628
JD
3218
3219 * xsettings.h (Ffont_get_system_normal_font,
3220 xsettings_get_system_normal_font): Declare.
3221
3222 * xfns.c (extern xlwmenu_default_font): Remove.
3223 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3224 to xlwmenu.c.
3225
3226 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3227 menu items in UTF-8.
3228
3229 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3230 (apply_systemfont_to_menu): New function.
3231 (set_frame_menubar, create_and_show_popup_menu): Call
3232 apply_systemfont_to_menu.
3233
7fc874c4
J
32342010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3235
3236 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3237 FRAME_LINE_TO_PIXEL_Y.
3238
3239 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3240 pixelwidth/height.
3241
863bf481
DN
32422010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3243
5e5a3b92
DN
3244 Simplify code for HP machines.
3245 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3246 for GNU_LINUX, not needed.
3247 (UNEXEC, NEED_BSDTTY): Move definitions...
3248 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3249
863bf481
DN
3250 * m/iris4d.h (UNEXEC): Move definition ...
3251 * s/irix6-5.h (UNEXEC): ... here.
3252
3e6bec3b
JD
32532010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3254
3255 * xfns.c (set_machine_and_pid_properties): New function.
3256 (Fx_create_frame): Call set_machine_and_pid_properties.
3257
2912322b
SM
32582010-04-03 Eli Zaretskii <eliz@gnu.org>
3259
1502b819
EZ
3260 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3261 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3262 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3263
2912322b
SM
3264 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3265 in this function. (Bug#5703)
3266
32672010-04-03 Chong Yidong <cyd@stupidchicken.com>
3268
3269 * nsterm.h: Fix last change.
3270
c435b432
DN
32712010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3272
a568f507
DN
3273 * m/intel386.h (NO_REMAP): Move definition ...
3274 * s/msdos.h (NO_REMAP): ... here.
3275
4cd9f6c2
DN
3276 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3277
c435b432
DN
3278 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3279 used on those platforms.
3280
42a2c622
DN
32812010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3282
3283 Remove extern errno declarations.
3284 * xterm.c:
3285 * xrdb.c:
3286 * w32term.c:
3287 * unexec.c:
3288 * unexaix.c:
3289 * sysdep.c:
3290 * process.c:
3291 * lread.c:
3292 * keyboard.c:
3293 * floatfns.c:
3294 * filelock.c:
3295 * fileio.c:
3296 * emacs.c (main):
3297 * ecrt0.c:
3298 * dispnew.c:
3299 * callproc.c:
3300 * buffer.c: Remove errno extern declarations.
3301 * s/netbsd.h (NEED_ERRNO): Remove.
3302
8224f93d
DN
33032010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3304
3305 Remove all uses of LIBX11_SYSTEM.
3306 * Makefile.in (LIBX11_SYSTEM): Remove.
3307 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3308 instead.
3309
814062c7
EZ
33102010-04-01 Eli Zaretskii <eliz@gnu.org>
3311
ed68db4d
EZ
3312 Remove support for DJGPP v1.x (bug#5813).
3313
3314 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3315 * s/msdos.h:
3316 * unexec.c (make_hdr, copy_text_and_data):
3317 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3318 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3319 (IT_set_terminal_modes, __write, _rename, gethostname)
3320 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3321 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3322 the value of __DJGPP__.
ed68db4d
EZ
3323 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3324 compatibility code.
8224f93d
DN
3325 * lread.c:
3326 * gmalloc.c (memalign):
3327 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3328 * emacs.c (main):
3329 * dosfns.c (init_dosfns):
ed68db4d
EZ
3330 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3331
52f4d8d5
EZ
33322010-04-01 Eli Zaretskii <eliz@gnu.org>
3333
814062c7
EZ
3334 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3335 string with `cursor' property comes from an `after-string'
3336 overlay. (Bug#5816)
3337
0dc2e11d
GM
33382010-04-01 Glenn Morris <rgm@gnu.org>
3339
3340 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3341 Define as Makefile variables.
3342 (LIBX): Use above variables rather than directly using autoconf.
3343
1d29df59
DN
33442010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3345
3346 Clean up BSD_SYSTEM use.
3347 * xterm.c:
3348 * process.c:
3349 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3350 for including <sys/ioctl.h>.
3351 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3352 code is only used for MSDOS.
3353
1546c559
JL
33542010-03-31 Juri Linkov <juri@jurta.org>
3355
3356 * image.c: Add `Qextension_data'.
3357 (syms_of_image): Initialize and staticpro `Qextension_data'.
3358 (Fimage_metadata): Rename from `Fimage_extension_data'.
3359 (gif_load): Put GIF extension data to the property
3360 `Qextension_data'.
3361
6521c534
CY
33622010-03-31 Chong Yidong <cyd@stupidchicken.com>
3363
3364 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3365 * nsterm.h: Fix prototype.
3366
52c30783
EZ
33672010-03-31 Eli Zaretskii <eliz@gnu.org>
3368
3369 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3370 trailing whitespace in right-to-left rows.
3371
855a0da7
SM
33722010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3373
3374 Get rid of the direct_output optimizations.
3375 * keyboard.c (nonundocount): Remove extern declaration.
3376 (command_loop_1): Remove brittle optimisation for cheap and
3377 common operations.
3378 * xdisp.c (redisplay_internal): Don't bother checking
3379 redisplay_performed_directly_p any more.
3380 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3381 any more.
3382 * dispnew.c (redisplay_performed_directly_p)
3383 (direct_output_for_insert, direct_output_forward_char):
3384 * dispextern.h (redisplay_performed_directly_p)
3385 (direct_output_for_insert, direct_output_forward_char): Remove.
3386 * cmds.c (nonundocount): Make it static.
3387
85738751 33882010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3389
3390 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3391
85738751 33922010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3393
3394 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3395 invisible (Bug#5766).
3396
85738751 33972010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3398
855a0da7
SM
3399 * xdisp.c (x_consider_frame_title, update_window_cursor):
3400 Remove HAVE_NS conditionals.
194d44e7 3401 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
3402
3403 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3404 filename for the title.
3405 (ns_set_doc_edited): Do nothing if the selected window is a
3406 minibuffer window.
3407
3408 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3409 ns_set_doc_edited.
3410
3411 * nsterm.m: Remove unneeded prototype.
3412
85738751 34132010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
3414
3415 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3416 in the DOC file. (Bug#5336)
3417
85738751 34182010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
3419
3420 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3421
75d1428c
SM
34222010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3423
3424 * window.c (keys_of_window): Remove redundant/overridden bindings.
3425
82043cfb
EZ
34262010-03-30 Eli Zaretskii <eliz@gnu.org>
3427
3428 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3429 Restore original behavior when the iterator is not bidi_p.
3430
b5dd0ae7
DN
34312010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3432
3433 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3434
bd924a5d
EZ
34352010-03-30 Eli Zaretskii <eliz@gnu.org>
3436
3437 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3438 are outside the range of cached character positions.
3439
3580374b
JB
34402010-03-30 Juanma Barranquero <lekktu@gmail.com>
3441
3442 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3443
a7b02820
EZ
34442010-03-30 Eli Zaretskii <eliz@gnu.org>
3445
3446 Initial support for bidirectional editing.
3447
3448 * Makefile.in (obj): Include bidi.o.
3449 (bidi.o): New target.
3450
3451 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3452 ($(BLD)/bidi.$(O)): New target.
3453
3454 * bidi.c: New file.
3455
3456 * buffer.h (struct buffer): New members bidi_display_reordering
3457 and bidi_paragraph_direction.
3458
3459 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3460 and bidi_paragraph_direction.
3461 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3462 and bidi-paragraph-direction.
3463 (Fbuffer_swap_text): Swap the values of
3464 bidi_display_reordering and bidi_paragraph_direction.
3465
3466 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3467 (bidi_type_t, bidi_dir_t): New types.
3468 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3469 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3470 prev_stop, base_level_stop, and eol_pos.
3471 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3472 (IT_STACK_SIZE): Enlarge to 5.
3473 (struct glyph_row): New member reversed_p.
3474 <string_buffer_position>: Update prototype.
3475 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3476 glyph_row if bidi_it.paragraph_dir == R2L.
3477 (struct glyph): New members resolved_level and bidi_type.
3478
3479 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3480 processing or buffer's direction is right-to-left.
3481 (prepare_desired_row): Preserve the reversed_p flag.
3482 (row_equal_p): Compare the reversed_p attributes as well.
3483
3484 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3485 bidi_init_it and set it->paragraph_embedding from the current
3486 buffer's value of bidi_paragraph_direction.
3487 (reseat_1): Initialize bidi_it.first_elt.
3488 (set_iterator_to_next, next_element_from_buffer): Use the value of
3489 paragraph_embedding to determine the paragraph direction.
3490 (set_iterator_to_next): Under bidi reordering, call
3491 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3492 new_paragraph flag is set in the bidi iterator.
3493 (next_element_from_buffer): If bidi_it.first_elt is set,
3494 initialize paragraph direction and find the first character to
3495 display in the visual order. If reseated to a middle of a line,
3496 prime the bidi iterator starting at the line's beginning. Handle
3497 the situation where we overstepped stop_charpos due to
3498 non-linearity of the bidi iteration. Likewise for when we back up
3499 beyond the previous stop_charpos. When moving across stop_charpos,
3500 record it in prev_stop.
3501 (display_line): Set row->end and it->start for the next row to the
3502 next character in logical order. Always extend reversed_p rows to
3503 the end of line, even if they end at ZV. Copy the reversed_p flag
3504 to the next glyph row. Keep calling set_cursor_from_row for
3505 bidi-reordered rows even if we already have a possible candidate
3506 for cursor position. Set row_end after all the row's glyphs have
3507 been produced, by looping over the glyphs. Record the position
3508 after EOL in it->eol_pos, and use it to set end_pos of the last
3509 row produced for a continued line.
3510 <Qright_to_left, Qleft_to_right>: New variables.
3511 (syms_of_xdisp): Initialize and staticpro them.
3512 (string_buffer_position_lim): New function.
3513 (string_buffer_position): Most of code moved to
3514 string_buffer_position_lim. Last argument and return value are
3515 now EMACS_INT; all callers changed.
3516 (set_cursor_from_row): Rewritten to support bidirectional text and
3517 reversed glyph rows.
3518 (text_outside_line_unchanged_p, try_window_id): Disable
3519 optimizations if we are reordering bidirectional text and the
3520 paragraph direction can be affected by the change.
3521 (append_glyph, append_composite_glyph)
3522 (produce_image_glyph, append_stretch_glyph): Set the
3523 resolved_level and bidi_type members of each glyph.
3524 (append_glyph): If the glyph row is reversed, prepend the glyph
3525 rather than appending it.
3526 (handle_stop_backwards): New function.
3527 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
3528 (reseat): call handle_stop_backwards to recompute prev_stop and
3529 base_level_stop for the new position.
3530 (handle_invisible_prop): Under bidi iteration, skip invisible text
3531 using bidi_get_next_char_visually. If we are `reseat'ed, init the
3532 paragraph direction. Update IT->prev_stop after skipping
3533 invisible text.
3534 (move_it_in_display_line_to): New variables prev_method
3535 and prev_pos. Compare for strict equality in
3536 BUFFER_POS_REACHED_P.
3537 (try_cursor_movement): Examine all the candidate rows that occlude
3538 point, to return the best match. If rows are bidi-reordered
3539 and point moved backwards, back up to the row that is not a
3540 continuation line, and start looking for a suitable row from
3541 there.
3542
3543 * term.c (append_glyph): Reverse glyphs by pre-pending them,
3544 rather than appending, if the glyph_row's reversed_p flag is set.
3545 Set the resolved_level and bidi_type members of each glyph.
3546
3547 * .gdbinit (pbiditype): New command.
3548 (pgx): Use it to display bidi level and type of the glyph.
3549 (pitx): Display some bidi information about the iterator.
3550 (prowlims, pmtxrows): New commands.
3551
32a8894e
DN
35522010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3553
3554 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3555 * s/usg5-4.h (LIBS_DEBUG):
3556 * s/irix6-5.h (C_DEBUG_SWITCH):
3557 * s/gnu-linux.h (LIBS_DEBUG):
3558 * s/darwin.h (LIBS_DEBUG):
3559 * s/bsd-common.h (LIBS_DEBUG):
3560 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3561 * m/iris4d.h (LIBS_DEBUG):
3562 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3563
3564 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3565 (LIBS_DEBUG): Remove definition.
3566
649dbf36
CY
35672010-03-27 Chong Yidong <cyd@stupidchicken.com>
3568
3569 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3570 Windows.
3571
cad4261f
YM
35722010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3573
3574 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3575 `connect' (Bug#5723).
3576
cd591dbc
HE
35772010-03-25 Helmut Eller <eller.helmut@gmail.com>
3578
3579 * process.c (Fmake_network_process): Call `select' for interrupted
3580 `connect' rather than creating new socket (Bug#5173).
3581
e867cb5d 35822010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
3583
3584 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3585
3586 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3587
3588 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3589
e867cb5d 35902010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
3591
3592 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3593 XLoadQueryFont.
3594
e867cb5d 35952010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
3596
3597 * coding.c (decode_coding_ccl): Fix previous change for the
3598 multibyte case.
fb608df3
KH
3599 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3600 case that the output buffer is fullfilled.
3601 (encode_coding): Setup ccl program here.
fbdc1721 3602
5845f0ed
DN
36032010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3604
814fb708
DN
3605 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3606
5845f0ed
DN
3607 Simplify LIBS_MACHINE definitions.
3608 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3609 * m/iris4d.h (LIBS_MACHINE): Likewise.
3610 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3611 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 3612 * s/netbsd.h: Remove commented out code.
5845f0ed 3613
b7064064
DN
36142010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3615
df7734b2
DN
3616 Remove dead code dealing with POSIX_SIGNALS.
3617 * atimer.c (set_alarm): Remove dead code, all USG systems define
3618 POSIX_SIGNALS.
3619 * data.c (arith_error): Likewise.
3620 * keyboard.c (input_available_signal, handle_user_signal)
3621 (interrupt_signal): Likewise.
3622 * process.c (sigchld_handler): Likewise.
3623 (create_process): Remove if 0 code. Remove HPUX conditional when
3624 !defined (POSIX_SIGNALS), it cannot be true.
3625 * syssignal.h: Remove USG5_4 and USG conditionals when
3626 !POSIX_SIGNALS, they cannot be true.
3627
b7064064
DN
3628 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3629 NO_SOCK_SIGIO, not used anymore.
3630
55da5ee3
DN
36312010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3632
0be96e3a
DN
3633 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3634 support vax on BSDs.
3635
55da5ee3
DN
3636 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3637 * s/aix4-2.h (ORDINARY_LINK): ... here.
3638
c0282183
AS
36392010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3640
82c3d67a
AS
3641 * Makefile.in (abs_builddir): Define.
3642 (bootstrap_exe): Use it.
3643 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 3644
3613edce
SM
36452010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3646
3647 * Makefile.in (bootstrap_exe): Use an absolute name.
3648
7f110ddc
DN
36492010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3650
22e87574
DN
3651 Remove support for old GNU/Linux using libc version 5.
3652 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
3653 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
3654
05a670e6
DN
3655 Consolidate redundant definitions in s/bsd-common.h.
3656 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3657 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3658 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
3659 doing it in all files that include this one.
3660 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3661 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3662 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3663 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3664 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3665 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3666 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3667 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3668 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3669
2968f561
DN
3670 Consolidate redundant definitions.
3671 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
3672 it's undefined in all files that include this one.
3673 (POSIX_SIGNALS): Define here instead of doing it in all files that
3674 include this one.
3675 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3676 (POSIX_SIGNALS): Do not define.
3677 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3678 (POSIX_SIGNALS): Do not define.
3679 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3680 (POSIX_SIGNALS): Do not define.
3681
15d25dc0
DN
3682 Remove support for old UNIX System V systems.
3683 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
3684 * s/usg-5-4-2.h: Remove.
3685
07e339e4
DN
3686 Remove support for Solaris on PPC and for old versions.
3687 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
3688 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
3689 that cancel each other.
3690 * s/sol2-3.h:
3691 * s/sol2-4.h:
3692 * s/sol2-5.h: Remove.
3693 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
3694 (NO_REMAP): Remove, unused.
3695 (UNEXEC): Move definition ...
3696 * s/aix4-2.h (UNEXEC): ... here.
3697
7f110ddc
DN
3698 * s/openbsd.h: Remove support for non-ELF and for systems that do
3699 not support shared libraries.
3700 * s/netbsd.h:
3701 * s/freebsd.h: Likewise.
3702
605f35cd
DN
37032010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3704
3705 Remove non-working support for lynxos 3.0.
3706 * s/lynxos.h: Remove file.
3707
3708 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
3709 COFF_BSD_SYMBOLS, nothing defines it anymore.
3710
aed71cf4
DN
37112010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3712
3713 Remove obsolete uses of HAVE_SHM.
3714 * emacs.c (standard_args):
3715 (Fdump_emacs):
3716 (syms_of_emacs): Remove code depending on HAVE_SHM.
3717
3718 * alloc.c: Remove HAVE_SHM dependent definition.
3719
3720 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
3721
aded53ff
GM
37222010-03-18 Glenn Morris <rgm@gnu.org>
3723
17284745
GM
3724 * emacs.c (USAGE4): Hard-code bug address.
3725 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
3726 (bug_reporting_address): Remove.
3727 (main): Don't call bug_reporting_address.
3728
aded53ff
GM
3729 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
3730 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
3731
303500aa
CY
37322010-03-15 Chong Yidong <cyd@stupidchicken.com>
3733
3734 * xfns.c (Fx_create_frame):
3735 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
3736 on left.
3737
cef3058f
CY
37382010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
3739
3740 * editfns.c (Fformat): Account for string precision when computing
3741 field width (Bug#5710).
3742
a647d59d
CY
37432010-03-12 Chong Yidong <cyd@stupidchicken.com>
3744
4fa42018
CY
3745 * xfns.c (Fx_create_frame): Set default to Qright.
3746
a647d59d
CY
3747 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
3748 all window systems.
3749
6da23aaa
EZ
37502010-03-12 Eli Zaretskii <eliz@gnu.org>
3751
a96f6398 3752 These changes remove termcap.c from the build on Posix platforms.
83d02def 3753 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
3754 (MSDOS_OBJ): ...to here.
3755 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
3756 now identical to when LIBS_TERMCAP is defined.
3757
3758 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
3759
3760 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
3761
a96f6398 3762 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 3763
288f9fc0
CY
37642010-03-10 Chong Yidong <cyd@stupidchicken.com>
3765
3766 * Branch for 23.2.
3767
d48cd3f4
SM
37682010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3769
3770 Cleanup setup of gl_state in various parts of the code.
3771 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
3772 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
3773 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
3774 (skip_chars):
3775 * regex.c (regex_compile): Use it.
3776 (re_compile_pattern): Don't set gl_state.current_syntax_table since
3777 it's now set in regex_compile when/if we need it.
3778
618db430
SM
37792010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
3780
c0335e02
SM
3781 Make it possible to C-g in a tight bytecode loop again (bug#5680).
3782 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
3783 (QUIT): Use it to consolidate code and remove redundancy.
3784 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
3785
254c06a8
SM
3786 * regex.c (regex_compile): Setup gl_state as well.
3787
618db430
SM
3788 * syntax.c (skip_chars): Setup gl_state (bug#3823).
3789 (in_classes): Use CONSP before XCAR/XCDR.
3790
233f0c9f
CY
37912010-03-03 Chong Yidong <cyd@stupidchicken.com>
3792
3793 * keymap.c (Fwhere_is_internal): Use Fequal to compare
3794 definitions, so that keyboard macros are correctly handled
3795 (Bug#5481).
3796
75f80e63
EZ
37972010-03-02 Eli Zaretskii <eliz@gnu.org>
3798
3799 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
3800 text that could be relocated inside the call to emacs_mule_char.
3801 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
3802 (CODING_DECODE_CHAR): Add a comment describing its purpose.
3803
dcfb9bc4
KH
38042010-03-02 Kenichi Handa <handa@m17n.org>
3805
fc9a17bc
KH
3806 * character.c (parse_str_as_multibyte): Fix handling of the
3807 multibyte form of raw-bytes.
3808 (str_as_multibyte): Likewise.
3809
dcfb9bc4
KH
3810 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
3811 form of raw-bytes.
3812
412c01b6
CY
38132010-02-28 Chong Yidong <cyd@stupidchicken.com>
3814
3815 * charset.c (load_charset_map_from_file)
3816 (load_charset_map_from_vector): Zero out allocated
3817 charset_map_entries before using them.
3818
df7e1ea0
AS
38192010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3820
3821 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3822
fe69a722
CY
38232010-02-27 Chong Yidong <cyd@stupidchicken.com>
3824
4ed28cf4
CY
3825 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3826 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 3827
7379cfce
KH
38282010-02-26 Kenichi Handa <handa@m17n.org>
3829
f88cc4d6
KH
3830 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3831
7379cfce
KH
3832 * xdisp.c (reseat_to_string): Fix previous change.
3833
cf2fdcfb
CY
38342010-02-26 David Reitter <david.reitter@gmail.com>
3835
3836 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3837 Lisp_Object (Bug#4736).
3838
cc6c7c75
KH
38392010-02-25 Kenichi Handa <handa@m17n.org>
3840
3841 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3842
32e737d7
JD
38432010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3844
3845 * xterm.c (XTflash): Move declarations before statements.
3846
3847 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3848 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3849 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3850 (xg_create_tool_bar): Remove unused variables.
3851 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 3852 (xg_create_frame_widgets): Remove variable grav.
32e737d7 3853
676cae9f
CY
38542010-02-21 Chong Yidong <cyd@stupidchicken.com>
3855
3856 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3857
886cc2b8
SM
38582010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3859
3860 * term.c (fatal): Add a final \n if needed (bug#5596).
3861
ddb2d8e2
CY
38622010-02-18 Chong Yidong <cyd@stupidchicken.com>
3863
3864 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3865
2a4f8d3d
GM
38662010-02-18 Glenn Morris <rgm@gnu.org>
3867
3868 * callint.c (Finteractive): Doc fix.
3869
ebaf11b6
KH
38702010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3871
886cc2b8
SM
3872 * coding.c (record_conversion_result):
3873 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
3874 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3875 memory allocation error.
3876
d0396581
KH
38772010-02-17 Kenichi Handa <handa@m17n.org>
3878
886cc2b8
SM
3879 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3880 Fix for the case that the output buffer is fullfilled.
d0396581
KH
3881 (decode_coding): Setup ccl program here. Keep looping when the
3882 decoder stopped because the output buffer is
3883 fullfilled (bug#5534).
3884
3885 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3886
98599f74
JD
38872010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3888
471e4f04 3889 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 3890 bug #5571.
886cc2b8 3891 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 3892 overdrawn.
98599f74 3893
182659ae
JD
38942010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3895
3896 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3897 doing_interact here.
3898 (ice_connection_closed): New function.
3899 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3900 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3901 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3902 returns I/O error.
3903 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3904 bug #5512.
3905
9be32c4e 39062010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
3907
3908 * nsfont.m (nsfont_open): The system's value for the font descent
3909 is negative, so round it down to avoid clipping.
3910
a2f3eb19
CY
39112010-02-06 Chong Yidong <cyd@stupidchicken.com>
3912
3913 * charset.c (load_charset_map_from_file)
3914 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 3915 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 3916
3088147c
CY
39172010-02-05 Chong Yidong <cyd@stupidchicken.com>
3918
3919 * charset.c (load_charset_map_from_file): Allocate large
3920 charset_map_entries structure on the heap rather than the stack.
3921 (Bug#5526).
3922
b57d9029
KH
39232010-01-31 Kenichi Handa <handa@m17n.org>
3924
3925 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 3926 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 3927
c67d885b
CY
39282010-01-31 Chong Yidong <cyd@stupidchicken.com>
3929
3930 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3931 <deactivated@gmail.com> (Bug#3605).
3932
8fab2362
CY
39332010-01-31 David De La Harpe Golden <david@harpegolden.net>
3934
3935 * fileio.c (Frename_file): Correctly rename symlinks to
3936 directories (Bug#5496).
3937
cb2a62f2
CY
39382010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3939
3940 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3941
944c7a26
AS
39422010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3943
3944 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3945
c024ac08
CY
39462010-01-29 Chong Yidong <cyd@stupidchicken.com>
3947
3948 * frame.c (DEFAULT_ROWS): Change default to 35.
3949
3950 * xfns.c (x_default_font_parameter): Change default XFT font to
3951 monospace-10 (Bug#3643).
3952
af93af83
EZ
39532010-01-29 Eli Zaretskii <eliz@gnu.org>
3954
3955 * w32inevt.c (key_event): Remove unnecessary comparison of
3956 event->uChar.AsciiChar with 128.
3957
ca0eb708
CY
39582010-01-28 Chong Yidong <cyd@stupidchicken.com>
3959
b242dbfc
CY
3960 * fileio.c (Frename_file): Fix last change (Bug#5487).
3961
ca0eb708
CY
3962 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3963
3964 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3965
45d45af5
JD
39662010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3967
3968 * xfns.c (Fx_create_frame): Remove window size matching code from
3969 2010-01-15.
a73f9c9d 3970 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 3971
7e233730
JR
39722010-01-27 Jason Rumney <jasonr@gnu.org>
3973
3974 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 3975 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 3976
86e893e3
KH
39772010-01-27 Kenichi Handa <handa@m17n.org>
3978
3979 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 3980 pattern string (Bug#4209).
86e893e3 3981
8719abec
CY
39822010-01-27 David De La Harpe Golden <david@harpegolden.net>
3983
3984 * fileio.c (Frename_file): Call copy-directory and
3985 delete-directory for directories, in order to handle cross-device
3986 renaming (Bug#3353).
3987
844794c8
JD
39882010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3989
aa3e13b5 3990 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 3991 sizes 24 and 10. Bug #3643.
844794c8 3992
bd4b5750
SM
39932010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3994
8dc1adf6 3995 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
3996 * keymap.c (shadow_lookup): Add `remap' arg.
3997 (describe_map, describe_vector): Update calls to shadow_lookup.
3998 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3999 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4000 perform remapping during shadow_lookup check of remapped_sequences.
4001
285d07e2
CY
40022010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4003
4004 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4005 png_check_sig, which has been removed in libpng 1.4.
4006
c6d09b8d
CY
40072010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4008
4009 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4010 lacks this header file).
4011
3d782998
YM
40122010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4013
4014 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4015 as in Emacs 22.
4016
2aff7c53
YM
40172010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4018
4019 * lisp.h (make_pure_string): String pointer arg now points to const.
4020
4021 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4022 args now point to const.
4023
74327f7a
EZ
40242010-01-22 Eli Zaretskii <eliz@gnu.org>
4025
4026 * lread.c (Fload): Don't treat files without .elc extension as
4027 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4028 them. (bug#5303)
4029
4d1e6632
KH
40302010-01-20 Kenichi Handa <handa@m17n.org>
4031
4032 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4033 treat the source as actual byte sequence.
4034
1fdede8f
AM
40352010-01-19 Alan Mackenzie <acm@muc.de>
4036
4037 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4038 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4039 `signal_after_change_p' to `coherent_change_p', and make the
4040 invocation of `modify_region' conditional on it.
4041
67477f30
JD
40422010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4043
4044 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4045 for debug purpose.
4046 (syms_of_xsettings): Declare xft-settings.
4047
244b023e
CY
40482010-01-18 Chong Yidong <cyd@stupidchicken.com>
4049
4050 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4051
617364fe
CY
40522010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4053
4054 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4055
4fe22cdf
CY
40562010-01-16 Chong Yidong <cyd@stupidchicken.com>
4057
4058 * emacs.c (standard_args): Adjust arg priorities to reflect how
4059 they are processed in startup.el.
4060
e118d2be
AS
40612010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4062
4063 * Makefile.in (lisp, shortlisp): Update.
4064
523ae620
SM
40652010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4066
4067 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4068 code, link the new kboard into all_kboard before running Lisp code,
4069 and protect the new terminal with GCPRO (Bug#5365).
4070 (x_term_init): Remove unused var `atom'.
4071 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4072
f0d13888
JD
40732010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4074
4075 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4076 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4077 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4078 this. Bug #3643.
f0d13888 4079
cc320f07
KH
40802010-01-15 Kenichi Handa <handa@m17n.org>
4081
4082 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4083
7ffdf101
CY
40842010-01-15 Chong Yidong <cyd@stupidchicken.com>
4085
4086 * nsterm.m (Qnone): Define.
4087
4088 * nsfns.m (Qnone): Move definition to nsterm.m.
4089
d12bd917
KH
40902010-01-14 Kenichi Handa <handa@m17n.org>
4091
4092 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4093 systems.
4094
d9a7c140
KH
40952010-01-14 Kenichi Handa <handa@m17n.org>
4096
4097 Make auto-composition work on all buffers even if they are
4098 fundamental mode.
4099
4100 * composite.c (Vauto_composition_mode): New variable.
4101 (composition_compute_stop_pos): Check Vauto_composition_mode
4102 instead of Vauto_composition_function.
4103 (composition_adjust_point, Ffind_composition_internal): Likewise.
4104 (syms_of_composite): Declare Lisp variable
4105 "auto-composition-mode" here.
4106
63286bb2
CY
41072010-01-13 Chong Yidong <cyd@stupidchicken.com>
4108
4109 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4110 during call to vendor-specific-keysyms (Bug#5365).
4111
c2623ee7
YM
41122010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4113
4114 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4115 Call SIGNAL_THREAD_CHECK (Bug#5333).
4116
4117 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4118 Call SIGNAL_THREAD_CHECK.
4119
0b5397c2
SM
41202010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4121
4122 Try to fix bug#5314. This is probably not the final word, tho.
4123 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4124 recent-auto-save-p as a side-effect.
4125 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4126 * buffer.c (Fkill_buffer, reset_buffer):
4127 * editfns.c (Fsubst_char_in_region):
4128 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4129 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4130
dc954cb2
KH
41312010-01-13 Kenichi Handa <handa@m17n.org>
4132
4133 Display buffer name, etc. in mode line by composing correctly.
4134
4135 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4136 STRING is not nil.
0b5397c2 4137 (display_mode_element): Adjust for the change of
dc954cb2
KH
4138 decode_mode_spec and display_line.
4139 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4140 (display_string): Handle the case that STRING is non-null and
4141 LISP_STRING is not nil.
4142
0b5397c2
SM
4143 * xterm.c (x_draw_composite_glyph_string_foreground):
4144 Pay attention to s->face->overstrike.
dc954cb2
KH
4145
4146 * composite.c (composition_reseat_it): Don't check PT if STRING is
4147 non nil.
4148
4a00eaca
YM
41492010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4150
4151 * keyboard.c (read_char): Don't apply previous change when current
4152 buffer is unchanged by command execution.
4153
60abb287
JD
41542010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4155
4156 * keyboard.c (read_char): Return after executing from special map.
4157
893db5bc
GM
41582010-01-12 Glenn Morris <rgm@gnu.org>
4159
4160 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4161 bug-gnu-emacs rather than emacs-pretest-bug.
4162
4d03ece0
CY
41632010-01-11 Chong Yidong <cyd@stupidchicken.com>
4164
4165 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4166 initializing the Lisp variables that depend on them.
4167
1df47e38
YM
41682010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4169
4170 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4171 Clear areas that will not be updated after change of menu bar lines.
4172 Clear the menu bar window's current matrix when the window gets empty.
4173
2f1c6384
CY
41742010-01-09 Chong Yidong <cyd@stupidchicken.com>
4175
e398c61c
CY
4176 * intervals.h, textprop.c (extend_property_ranges): Return value
4177 and args changed. Discard properties that begin at or after the
4178 new end (Bug#5306).
4179
4180 * editfns.c (Fformat): Caller changed.
4181
e5a29a10
CY
4182 * nsterm.m (ns_set_default_prefs): Delete function.
4183 (syms_of_nsterm): Initialize ns_command_modifier,
4184 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4185 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4186
2f1c6384
CY
4187 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4188 position (Bug#4040).
4189
d427a9fa
EZ
41902010-01-09 Eli Zaretskii <eliz@gnu.org>
4191
4192 * editfns.c (Ffloat_time): Doc fix.
4193
21b9df2f
JD
41942010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4195
4196 * xfns.c (Fx_create_frame): Don't create frame larger than display
4197 by default bug#3643.
4198
4b00d3b1
YM
41992010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4200
4201 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4202 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4203 windows above internal border.
4204
4205 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4206 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4207 windows above internal border.
4208
4209 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4210 tool bar windows specially.
4211
4212 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4213
4214 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4215 specially.
4216 (XTflash): Take account of menu bar height.
4217
4218 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4219 specially.
4220
5075d853
JD
42212010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4222
ac146f82 4223 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4224 also be true before we can return early (bug #5339).
4225
474217c8
CY
42262010-01-06 David Reitter <david.reitter@gmail.com>
4227
4228 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4229 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4230 (Bug#3233).
4231
c0e6d47d
JD
42322010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4233
d0cf45b7
JD
4234 * font.c (font_open_entity): Enable chache and call cached_font_ok
4235 for the driver if defined.
4236 (QCuser_spec): New symbol.
4237 (font_spec_from_name): Save name as user-spec.
4238 (font_load_for_lface): Keep user-spec instead of name.
4239 (font_open_by_name): Save name as user-spec.
4240 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4241 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4242
4243 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4244 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4245 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4246
4247 * font.h (struct font_driver): Add cached_font_ok.
4248
c0e6d47d
JD
4249 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4250
7c583cd8
JD
42512010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4252
4253 * xterm.c (x_new_font): Move code for setting rows/cols before
4254 resizing ...
ac146f82 4255 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4256
4257 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4258 (xg_frame_resized, xg_frame_set_char_size):
4259 Call xg_clear_under_internal_border.
7c583cd8 4260 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4261
03f77f0a
CY
42622010-01-05 Chong Yidong <cyd@stupidchicken.com>
4263
4264 * keyboard.c (read_key_sequence): Catch keyboard switch after
4265 making a new tty frame (Bug#5095).
4266
2a1ef5be
KH
42672010-01-05 Kenichi Handa <handa@m17n.org>
4268
4269 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4270
e3eb1dae
SM
42712010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4272
4273 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4274 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4275 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4276
777013f2
MA
42772010-01-03 Michael Albinus <michael.albinus@gmx.de>
4278
4279 * dbusbind.c (xd_add_watch): Improve debug message.
4280 (xd_remove_watch): Improve debug message. If DATA is the session
4281 bus, unset D-Bus session environment.
4282 (Fdbus_init_bus): Pass the bus as argument to
4283 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4284
8932b1c2
CY
42852010-01-01 Chong Yidong <cyd@stupidchicken.com>
4286
87231e2c
CY
4287 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4288
4801c5fa
CY
4289 * lread.c (syms_of_lread): Make it clearer that these are the
4290 names of loaded files (Bug#5068).
4291
8932b1c2
CY
4292 * eval.c (run_hook_with_args): Handle the case where the global
4293 value has the obsolete single-function form (Bug#5026).
4294
11e3c684
CY
42952009-12-27 Chong Yidong <cyd@stupidchicken.com>
4296
4297 * minibuf.c (Fall_completions): Minor optimization.
4298
5b28ce35
EZ
42992009-12-26 Eli Zaretskii <eliz@gnu.org>
4300
5ce6e4f4
JB
4301 * .gdbinit (pgx): Fix display of composite glyphs.
4302 Display cmp.from and cmp.to as well.
4303 (pitx): Fix last change.
5b28ce35 4304
bcffff46
KH
43052009-12-25 Kenichi Handa <handa@m17n.org>
4306
4307 * composite.h (composition_adjust_point): Update prototype.
4308
4309 * composite.c (composition_reseat_it): Don't make a composition
4310 spanning over point.
4311 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4312 composable characters.
4313 (composition_adjust_point): New arg NEW_PT. Callers changed.
4314
4315 * keyboard.c (command_loop_1): Force redisplay if the last point
4316 was within a composition.
4317 (adjust_point_for_property): Don't adjust point for automatic
4318 composition when called after buffer modification.
4319
3f670e9a
EZ
43202009-12-19 Eli Zaretskii <eliz@gnu.org>
4321
5ce6e4f4
JB
4322 * .gdbinit (pitx): Don't use enum names, use their values.
4323 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4324 (pgx): Don't use enum names, use their values.
4325 (pitmethod): New helper command.
4326 (pitx): Use it to display iteration method.
4327 (pgrowit): New command.
4328
ad903955
EZ
4329 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4330
3f670e9a
EZ
4331 Update dependencies in Makefile.in.
4332
4333 * Makefile.in (alloc.o): Depend on termhooks.h.
4334 (atimer.o): Depend on blockinput.h.
4335 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4336 and frame.h.
4337 (callint.o): Depend on systime.h, coding.h, and composite.h.
4338 (callproc.o): Depend on buffer.h.
4339 (casefiddle.o): Don't depend on charset.h.
4340 (casetab.o): Depend on character.h.
4341 (ccl.o): Depend on composite.h.
4342 (chartab.o): Depend on ccl.h.
4343 (cm.o): Depend on dispextern.h.
4344 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4345 (coding.o): Don't depend on $(INTERVALS_H).
4346 (composite.o): Don't depend on dispextern.h explicitly (it's in
4347 $(INTERVALS_H)). Depend on ccl.h.
4348 (data.o): Depend on systime.h, coding.h, composite.h,
4349 dispextern.h, font.h, and ccl.h.
4350 (dired.o): Depend on composite.h.
4351 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4352 composite.h (it's in $(INTERVALS_H)).
4353 (doc.o): Depend on systime.h, coding.h, and composite.h.
4354 (editfns.o): Don't depend explicitly on dispextern.h.
4355 (emacs.o): Depend on frame.h and coding.h.
4356 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4357 (fileio.o): Depend on frame.h and commands.h. Don't depend
4358 explicitly on dispextern.h.
4359 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4360 composite.h.
4361 (fns.o): Don't depend on termhooks.h.
4362 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4363 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4364 coding.h, $(INTERVALS_H), window.h, xterm.h.
4365 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4366 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4367 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4368 fontset.h, ccl.h, and ftfont.h.
4369 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4370 (gtkutil.o): Depend on dispextern.h and composite.h.
4371 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4372 termhooks.h, and ccl.h.
4373 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4374 (intervals.o): Depend on systime.h and coding.h.
4375 (keyboard.o): Depend on composite.h and coding.h.
4376 (keymap.o): Depend on coding.h and frame.h.
4377 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4378 (macros.o): Depend on systime.h, coding.h, and composite.h.
4379 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4380 and atimer.h.
4381 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4382 dispextern.h explicitly.
0b5397c2
SM
4383 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4384 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4385 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4386 (regex.o): Don't depend on charset.h.
4387 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4388 (search.o): Don't depend explicitly on composite.h.
4389 (sound.o): Depend on atimer.h and systime.h.
4390 (syntax.o): Don't depend explicitly on composite.h.
4391 (sysdep.o): Depend on coding.h and composite.h.
4392 (term.o): Depend on xterm.h and buffer.h.
4393 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4394 (textprop.o): Don't depend on dispextern.h explicitly.
4395 (undo.o): Depend on dispextern.h.
4396 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4397 dispextern.h and composite.h explicitly.
4398 (xdisp.o): Depend on ccl.h.
4399 (xfaces.o): Depend on coding.h and ccl.h.
4400 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4401 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4402 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4403 ftfont.h.
4404 (xgselect.o): New dependency.
4405 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4406 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4407 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4408 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4409 (xsmfns.o): Depend on frame.h and dispextern.h.
4410 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4411 sysselect.h.
4412
7a6f7fea
AS
44132009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4414
4415 * font.c (Fclear_font_cache): Pass correct cache argument to
4416 font_clear_cache.
4417
f4c21026
AS
44182009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4419
4420 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4421 twice.
4422
f7ab0997
CY
44232009-12-15 Chong Yidong <cyd@stupidchicken.com>
4424
4425 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4426 calling file-remote-p. Reported by Jim Meyering.
4427
fa8e045a
MA
44282009-12-15 Michael Albinus <michael.albinus@gmx.de>
4429
4430 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 4431 avoid compiler warnings. (Bug #5217)
fa8e045a 4432
a63dba42
KH
44332009-12-14 Kenichi Handa <handa@m17n.org>
4434
4435 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4436 in 8-bit encoding.
4437
5ce6e4f4 44382009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
4439
4440 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4441 tooltip windows.
4442
223e5fc6
JD
44432009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4444
36acb2a7
JD
4445 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4446 Xatom_net_window_type.
4447
4448 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4449 Xatom_net_window_type.
4450
b8f00677
JD
4451 * xterm.c (my_log_handler): New function.
4452 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 4453 so we can filter out buggy messages. (Bug #5120).
b8f00677 4454
e5f0bc9a
JD
4455 * xterm.c (xg_scroll_callback): Parameter list changed,
4456 use parameter GtkScrollType to determine scroll/line/page.
4457 Only allow dragging if a button < 4 is grabbed (bug #5177).
4458 (xg_end_scroll_callback): New function.
4459 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4460 xg_create_scroll_bar.
4461
4462 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4463 (scroll_end_callback): Remove.
4464 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4465 button-release-event. Replace value-changed event with change-value,
4466 bug #5177,
4467 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4468 bug #5177.
4469
4470 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4471 (xg_create_scroll_bar): Add GCallback end_callback.
4472
223e5fc6
JD
4473 * xftfont.c (QClcdfilter): New variable.
4474 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4475 (syms_of_xftfont): Initialize QClcdfilter.
4476
3c055b77
JD
44772009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4478
4479 * xsettings.c (struct xsettings): Add member seen.
4480 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 4481 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
4482 (apply_xft_settings): Only update Xft settings with what member seen
4483 indicates as new.
4484
05fe33ff
EZ
44852009-12-12 Eli Zaretskii <eliz@gnu.org>
4486
4487 * dispextern.h (struct text_pos): Use EMACS_INT;
4488 (struct glyph): Use EMACS_INT for charpos.
4489 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4490 region_beg_charpos, region_end_charpos,
4491 redisplay_end_trigger_charpos, and also for
4492 iterator_stack_entry.end_charpos and
4493 iterator_stack_entry.stop_charpos.
4494
e8d7886a
JD
44952009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4496
5ce6e4f4 4497 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
4498 (xg_create_scroll_bar): Call scroll_end_callback on button release
4499 event (bug #5177).
4500 (xg_event_is_for_scrollbar): != replaced with ==.
4501
d0db2ec8
KH
45022009-12-12 Kenichi Handa <handa@m17n.org>
4503
4504 * ftfont.c (struct ftfont_info): New member matrix.
4505 (ftfont_open): Setup xftfont_info->matrix.
4506 (MFLTFontFT): New member matrix.
4507 (FLOOR, CEIL, ROUND): New macros.
4508 (ftfont_get_metrics): Handle matrix transformation.
4509 (ftfont_shape_by_flt): New arg matrix. Callers changed.
4510
4511 * xftfont.c (struct xftfont_info): New member matrix.
4512 (xftfont_open): Setup xftfont_info->matrix.
4513
45142009-12-10 Kenichi Handa <handa@m17n.org>
4515
4516 * xdisp.c (append_space_for_newline): Consider face-remapping.
4517
2cc7b62f
AS
45182009-12-09 Andreas Schwab <schwab@linux-m68k.org>
4519
b87dd913
AS
4520 * xsettings.c: Include "keyboard.h".
4521
eba5eb94
AS
4522 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
4523
2cc7b62f
AS
4524 Fix implicit function declarations.
4525 * cmds.c: Include "frame.h".
4526 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
4527 * frame.h: Move declaration of delete_frame outside of
4528 HAVE_WINDOW_SYSTEM.
4529
a4ef73c8
CY
45302009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
4531
4532 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
4533
4534 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
4535 GTK builds.
4536
944a300c
AS
45372009-12-07 Andreas Schwab <schwab@linux-m68k.org>
4538
4539 * unexelf.c (unexec): Don't search for .data twice.
4540
022eef62
CY
45412009-12-05 Chong Yidong <cyd@stupidchicken.com>
4542
426ac949
CY
4543 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
4544 if push failed.
4545 (handle_line_prefix): Set avoid_cursor_p here. Check return value
4546 of push_display_prop (Bug#5000).
4547
022eef62
CY
4548 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
4549 value of font_list_entities (Bug#5085).
4550
be95bee9
JB
45512009-12-04 Juanma Barranquero <lekktu@gmail.com>
4552
4553 Fix `string-to-number' to deal consistently with integers and floats.
4554 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4555 trailing characters, not just whitespace.
4556 (read1): Pass new arg 0 to keep old behavior.
4557 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4558 trailing chars, as it is already done for integers. Doc fixes.
4559 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4560
24c2d7ce
EZ
45612009-12-04 Eli Zaretskii <eliz@gnu.org>
4562
0b5397c2
SM
4563 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4564 Delete unused enumeration value.
24c2d7ce 4565
7e694795
EZ
45662009-12-03 Eli Zaretskii <eliz@gnu.org>
4567
4568 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4569
84b31826
SM
45702009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4571
4572 * process.c (Fmake_network_process): Fix up the tests for
4573 "connectionless socket", so they DTRT for seqpacket sockets as well.
4574
f00c449b
SM
45752009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4576
4577 * process.c (Qseqpacket): New symbol.
4578 (HAVE_SEQPACKET): New macro.
4579 (Fmake_network_process): Accept new :type `seqpacket'.
4580 (init_process): Add `seqpacket' feature when applicable.
4581 (syms_of_process): Initialize Qseqpacket.
4582
8096a0ff
YM
45832009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4584
4585 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4586 if entity is Qnil.
4587
3e0de07f
SM
45882009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4589
4590 * print.c (print_preprocess): Preprocess the key_and_value table of
4591 hashtables, even tho they're "hidden" (bug#5082).
4592
abeafb2a
JD
45932009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4594
4595 * frame.c (frame_make_pointer_invisible)
4596 (frame_make_pointer_visible): Declare f before statements.
4597
4bf47195
EZ
45982009-11-28 Eli Zaretskii <eliz@gnu.org>
4599
4600 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4601 omitted dependencies on lisp.h.
4602
c525b3f2
JD
46032009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4604
ece2d4ed
JD
4605 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4606 is NULL.
4607
4608 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4609
4610 * frame.c (frame_make_pointer_invisible)
3e0de07f 4611 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
4612 frame.
4613
c525b3f2
JD
4614 * search.c (simple_search): Remove warning by making *p const.
4615
2f00e299
DN
46162009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4617
4618 * xdisp.c (power_letter): Remove duplicate const.
4619
084b049b
JD
46202009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4621
a1fadc6f
JD
4622 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4623
5ce6e4f4 4624 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
4625 defaults (bug #5025).
4626
28259cac
SM
46272009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4628
4629 * insdel.c (adjust_markers_for_delete): Move it in the
4630 right direction! (bug#4803)
4631
e8e14166
YM
46322009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4633
4634 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4635
4636 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4637
86677b58
GM
46382009-11-24 Glenn Morris <rgm@gnu.org>
4639
4640 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4641
581e51e8
JD
46422009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4643
cfc86c7a
JD
4644 * Makefile.in: Must create deps for ecrt0.o in its rule.
4645
581e51e8
JD
4646 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4647 because that is what Gtk+ font dialog understands.
4648
4649 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4650 of Fcopy_sequence.
4651 (font_open_by_name): Put name given into QCname for font-object returned.
4652
4653 * frame.c (x_set_font): Save original font name as frame parameter
4654 font-parameter.
4655
4656 * xsettings.c (set_default_xft_settings): New function.
4657 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
4658 is found.
4659
8b264ecb
AS
46602009-11-22 Andreas Schwab <schwab@linux-m68k.org>
4661
4662 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
4663 searching backwards through multibyte buffer.
4664
872870b2
JD
46652009-11-21 Jan Djärv <jan.h.d@swipnet.se>
4666
4667 * xterm.c: #include xgselect.h.
4668 (x_initialize): Call xgselect_initialize.
4669
4670 * xsettings.c (something_changedCB): C++ comments => C comments.
4671 (init_gconf): Do not deal with any GLib file descriptors, xg_select
4672 does that now.
4673
4674 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
4675 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
4676 (scroll_bar_button_cb): Remove.
5ce6e4f4 4677 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
4678 event.
4679 (xg_create_scroll_bar): Don't bind button-press-event and
4680 button-release-event.
4681
4682 * process.c: Include xgselect.h if defined (USE_GTK) ||
4683 defined (HAVE_GCONF).
4684 (wait_reading_process_output): Call xg_select for the same condition.
4685
4686 * xgselect.c (xg_select): New function to better integrate with
4687 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
4688
4689 * xgselect.h: New file, declare xg_select, xgselect_initialize.
4690
4691 * Makefile.in (XOBJ): Add xgselect.o.
4692
62a6e103
AS
46932009-11-21 Andreas Schwab <schwab@linux-m68k.org>
4694
0b5397c2
SM
4695 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
4696 Remove ignored second argument. All callers changed.
62a6e103
AS
4697 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
4698 (RE_STRING_CHAR_AND_LENGTH): Likewise.
4699 * xdisp.c (string_char_and_length): Likewise.
4700
b0ca0f33
DN
47012009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
4702
4703 * xterm.c (x_new_font):
4704 * print.c (print_object):
4705 * cmds.c (Fself_insert_command): Move declarations before statements.
4706
dd5a6279
CY
47072009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
4708
4709 * s/cygwin.h: Remove unneeded linker flags.
4710
4a8e097d
JD
47112009-11-20 Jan Djärv <jan.h.d@swipnet.se>
4712
0d1d0d26
JD
4713 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
4714
4715 * xsettings.h: Declare xsettings_get_system_font.
4716
4717 * xsettings.c (xsettings_get_system_font): New function.
4718 (init_gconf): No use initiating gconf unless we have Xft also.
4719 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
4720 HAVE_GCONF.
4721
4a8e097d
JD
4722 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
4723 add a blank entry so it doesn't collapse into nothing.
4724
8ab1650e
SM
47252009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4726
4727 * lread.c (Funintern): Comment out last change.
4728
82c602f0
RS
47292009-11-19 Richard Stallman <rms@gnu.org>
4730
4731 * lread.c (Funintern): Error if symbol is t or nil.
4732
87e32266
SM
47332009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4734
4735 * insdel.c (make_gap_larger): Don't make as many assumptions about the
4736 representation of Lisp integers.
4737 Reported by MJ Chan <mjchan.inbox@gmail.com>.
4738
1b9ac145
AS
47392009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4740
4741 * lisp.h: Remove declaration of Ffont_get_system_font.
4742 * xfns.c: Move include of "xsettings.h".
4743 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
4744
dfb3c4c6
JD
47452009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4746
87e32266
SM
4747 * xsettings.c (something_changedCB, Ffont_get_system_font):
4748 Check use_system_font.
dfb3c4c6
JD
4749 (syms_of_xsettings): DEFVAR font-use-system-font.
4750
9370c1d8
AS
47512009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4752
25fe851a
AS
4753 * xfns.c (x_default_font_parameter): Remove dead assignment.
4754
9370c1d8
AS
4755 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
4756
637fa988
JD
47572009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4758
87e32266 4759 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 4760 not have FC_LCD_*. #define them if not there.
a6eb20d8 4761
87e32266 4762 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 4763
637fa988
JD
4764 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
4765
4766 * xterm.c (handle_one_xevent): Call xft_settings_event for
4767 ClientMessage, PropertyNotify and DestroyNotify.
4768 (x_term_init): If we have XFT, get DPI from Xft.dpi.
4769 Call xsettings_initialize.
4770
4771 * xftfont.c (xftfont_fix_match): New function.
4772 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
4773 Call xftfont_fix_match after XftFontMatch.
4774
4775 * xfont.c (xfont_driver): Initialize all members.
4776
87e32266
SM
4777 * xfns.c (x_default_font_parameter):
4778 Try font from Ffont_get_system_font.
637fa988
JD
4779 Do not get font from x_default_parameter if we got one from
4780 Ffont_get_system_font.
87e32266 4781 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
4782
4783 * w32font.c (w32font_driver): Initialize all members.
4784
4785 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
4786
4787 * lisp.h: Declare syms_of_xsettings.
4788
87e32266
SM
4789 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
4790 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
4791
4792 * ftfont.c (ftfont_filter_properties): New function.
4793
4794 * frame.c (x_set_font): Remove unused variable lval.
4795
87e32266 4796 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
4797
4798 * font.c (font_put_extra): Don't return if val is nil, it means
4799 boolean option is off.
4800 (font_parse_fcname): Collect all extra properties in extra_props
4801 and call filter_properties for all drivers with extra_props and
4802 font as parameter.
87e32266
SM
4803 (font_open_entity): Do not use cache, it does not pick up new
4804 fontconfig settings like hinting.
637fa988
JD
4805 (font_load_for_lface): If spec had a name in it, store it in entity.
4806
a73f9c9d 4807 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
4808
4809 * config.in: HAVE_GCONF is new.
4810
4811 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
4812 xsettings.o is new.
4813
5a942932
KH
48142009-11-17 Kenichi Handa <handa@m17n.org>
4815
4816 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4817 back to the default font in case that no suitable font is found.
4818
b7c7a4d1
SM
48192009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4820
4821 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4822 Suggested by Chad Brown <yandros@mit.edu>.
4823 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4824
072f1e39
JD
48252009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4826
4827 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4828
5d1e70a2
AS
48292009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4830
87e32266 4831 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 4832
a53cfbe5
JD
48332009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4834
473a99b7
JD
4835 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4836 has a parent.
4837
a53cfbe5 4838 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 4839 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
4840
4841 * config.in: Generated (AUTO_DEPEND).
4842
f04bb9b2
MA
48432009-11-13 Michael Albinus <michael.albinus@gmx.de>
4844
b7c7a4d1 4845 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
4846 Vdbus_registered_functions_table, because it contains also
4847 properties. Fix docstring.
b7c7a4d1 4848 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 4849
8f11f7ec
SM
48502009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4851
4852 * alloc.c (mark_object): Don't reprocess marked strings.
4853 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4854 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4855
8a605fe8
KH
48562009-11-13 Kenichi Handa <handa@m17n.org>
4857
8f11f7ec 4858 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
4859 semantics of Vword_combining_categories.
4860 (Vword_combining_categories): Describe the slight change of the
4861 semantics.
4862
241c4680
EZ
48632009-11-13 Eli Zaretskii <eliz@gnu.org>
4864
4865 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4866
4867 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4868
5d58e44c
SM
48692009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4870
4871 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4872
5e13f9d3
JB
48732009-11-12 Juanma Barranquero <lekktu@gmail.com>
4874
4875 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4876
cf54c754
DR
48772009-11-11 David Reitter <david.reitter@gmail.com>
4878
4879 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4880 variables to fix 2009-11-09 change.
4881
a4ada374
DN
48822009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4883
91433552
DN
4884 * process.c (ifflag_def): Make flag_sym constant.
4885 (Fnetwork_interface_info): Use a constant pointer.
4886 (ifflag_table):
4887 * xfns.c (cursor_bits):
4888 * xdisp.c (power_letter):
4889 * termcap.c (speeds, esctab):
4890 * sysdep.c (baud_convert):
4891 * keyboard.c (lispy_accent_codes, modifier_names):
4892 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4893 (jpeg_format, tiff_format, gif_format, svg_format)
4894 (interlace_start, interlace_increment, gs_format):
4895 * gtkutil.c (separator_names):
4896 * fringe.c (swap_nibble):
4897 * fns.c (base64_value_to_char, base64_char_to_value):
4898 * fileio.c (make_temp_name_tbl):
4899 * coding.c (suffixes): Make constant.
4900
f4265f6c
DN
4901 * frame.c (make_initial_frame):
4902 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4903 build_string.
4904 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4905
04420943
DN
4906 * s/freebsd.h:
4907 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4908
0a5d24ae
DN
4909 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4910 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4911
a4ada374
DN
4912 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4913 * xterm.c (syms_of_xterm):
4914 * xfaces.c (syms_of_xfaces):
4915 * xdisp.c (syms_of_xdisp):
4916 * lread.c (syms_of_lread):
4917 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4918 build_string.
91433552 4919
a4ada374
DN
4920 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4921
af98fc7f
SM
49222009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4923
8ab1650e 4924 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 4925
e90292a9
JD
49262009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4927
4928 * keyboard.h: Declare timer_check.
4929
4930 * keyboard.c (timer_check_2): New function that does what the old
4931 timer_check did.
4932 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4933 returned, i.e. don't return -1 with timers pending.
4934
4935 * process.c: Remove extern declaration of timer_check.
4936
4937 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4938 even if timer_check returned -1.
4939
af98fc7f
SM
4940 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4941 xg_dialog_data.
e90292a9
JD
4942 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4943 the event loop.
4944 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4945 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4946 Destroy the dialog after xg_dialog_run.
4947
045b83c0
SM
49482009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4949
4950 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4951
1fb99a3a
JD
49522009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4953
4954 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4955
04e452cb
JB
49562009-11-09 Juanma Barranquero <lekktu@gmail.com>
4957
4958 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4959
ef7417fd
SM
49602009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4961
4962 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4963 w32menu.c, and nsmenu.m.
4964 Simplify the obsolete case where position is nil.
4965 (cleanup_popup_menu): New function, moved from nsmenu.m.
4966 (struct skp): Remove slot `notreal'.
4967 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4968 adjust callers.
4969 (single_menu_item): Adjust call to parse_menu_item.
4970 (syms_of_menu): Defsubr x-popup-menu.
4971 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4972 (keymap_panes): Don't export any more.
4973 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4974 (xmenu_show): Declare.
4975 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4976 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4977 * keyboard.h (parse_menu_item): Update declaration.
4978 * xmenu.c (Fx_popup_menu): Remove.
4979 (syms_of_xmenu): Don't defsubr x-popup-menu.
4980 * w32menu.c (Fx_popup_menu): Remove.
4981 (syms_of_w32menu): Don't defsubr x-popup-menu.
4982 * nsmenu.m (cleanup_popup_menu): Remove.
4983 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4984 moved to menu.c's Fx_popup_menu.
4985 (Fx_popup_menu): Remove.
4986 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4987 menu_items (it's done in menu.c already).
4988
424d6179
SM
49892009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4990
4991 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4992 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4993
c0df13a6 49942009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
4995
4996 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 4997 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
4998 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4999 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5000
2de9f71c
SM
50012009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5002
5003 Let integers use up 2 tags to give them one extra bit and thus double
5004 their range.
5005 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5006 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5007 New macros.
5008 (enum Lisp_Type): Use them. Give explicit values.
5009 (Lisp_Type_Limit): Remove.
5010 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5011 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5012 Pay attention to USE_2_TAGS_FOR_INTS.
5013 (INTEGERP): Use LISP_INT_TAG_P.
5014 * fns.c (internal_equal): Simplify the default case.
5015 (sxhash): Use case_Lisp_Int.
5016 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5017 any more.
5018 (Ftype_of): Use case_Lisp_Int.
5019 (store_symval_forwarding): Take into account the fact that Ints can
5020 now have more than one tag.
5021 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5022 buffer_slot_type_mismatch):
5023 * xfaces.c (face_attr_equal_p):
5024 * print.c (print_object):
5025 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5026 Use case_Lisp_Int.
5027
323637a2
EZ
50282009-11-06 Eli Zaretskii <eliz@gnu.org>
5029
7ac65b38
EZ
5030 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5031
323637a2
EZ
5032 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5033 warning.
5034
e511451f
JD
50352009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5036
5037 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5038
5039 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5040
5041 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5042 ButtonPressRelease and MotionNotify (bug#4870).
5043
5e2327cf
DN
50442009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5045
5adc433e
DN
5046 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5047
d67b4f80
DN
5048 * xterm.c (syms_of_xterm):
5049 * xselect.c (syms_of_xselect):
5050 * xmenu.c (syms_of_xmenu):
5051 * xfns.c (syms_of_xfns):
5052 * xfaces.c (syms_of_xfaces):
5053 * xdisp.c (syms_of_xdisp):
5054 * window.c (syms_of_window):
5055 * w32fns.c (syms_of_w32fns):
5056 * undo.c (syms_of_undo):
5057 * textprop.c (syms_of_textprop):
5058 * terminal.c (syms_of_terminal):
5059 * syntax.c (syms_of_syntax):
5060 * sound.c (syms_of_sound):
5061 * search.c (syms_of_search):
5062 * print.c (syms_of_print):
5063 * minibuf.c (syms_of_minibuf):
5064 * macros.c (syms_of_macros):
5065 * keymap.c (syms_of_keymap, initial_define_key)
5066 (initial_define_lispy_key):
5067 * keyboard.c (syms_of_keyboard):
5068 * insdel.c (syms_of_insdel):
5069 * image.c (syms_of_image):
5070 * fringe.c (syms_of_fringe):
5071 * frame.c (syms_of_frame):
5072 * fontset.c (syms_of_fontset):
5073 * fns.c (syms_of_fns):
5074 * fns.c (syms_of_fns):
5075 * fileio.c (syms_of_fileio):
5076 * fileio.c (syms_of_fileio):
5077 * eval.c (syms_of_eval):
5078 * doc.c (syms_of_doc):
5079 * dispnew.c (syms_of_display):
5080 * dired.c (syms_of_dired):
5081 * dbusbind.c (syms_of_dbusbind):
5082 * data.c (syms_of_data):
5083 * composite.c (syms_of_composite):
5084 * coding.c (syms_of_coding):
5085 * cmds.c (syms_of_cmds):
5086 * charset.c (define_charset_internal, syms_of_character):
5087 * ccl.c (syms_of_ccl):
5088 * category.c (syms_of_category, init_category_once):
5089 * casetab.c (syms_of_casetab):
5090 * casefiddle.c (syms_of_casefiddle):
5091 * callint.c (syms_of_callint):
5092 * bytecode.c (syms_of_bytecode):
5093 * buffer.c (keys_of_buffer, syms_of_buffer):
5094 * alloc.c (syms_of_alloc):
5095 * process.c (syms_of_process, init_process):
5096 * lread.c (syms_of_lread, init_obarray):
5097 * font.c (build_style_table):
5098 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5099 intern_c_string, calls to make_pure_string with
5100 make_pure_c_string. Use pure_cons instead of Fcons.
5101
5e2327cf
DN
5102 * process.c (socket_options): Make it const.
5103 (set_socket_option, init_process): Use a const pointer.
5104
5105 * lread.c (intern_c_string): New function.
5106 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5107 (defvar_int): Uset it. Make the name const char*.
5108
5109 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5110 (defvar_int): Update prototypes.
5111 (DEFUN, EXFUN): Support for prototypes is now required.
5112 (intern_c_string): New prototype.
5113 (struct Lisp_Subr): Make symbol_name constant.
5114
5115 * font.c (struct table_entry): Remove unused member. Make NAMES
5116 constant.
5117 (weight_table, slant_table, width_table): Make constant.
5118
5119 * emacs.c (struct standard_args): Make name and longname constant.
5120
5121 * character.h (DEFSYM): Use intern_c_string.
5122
a56eaaef
DN
51232009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5124
5125 * alloc.c (make_pure_c_string): New function.
5126
5127 * eval.c (Fautoload): Purecopy all arguments.
5128
f6a07420
KH
51292009-11-05 Kenichi Handa <handa@m17n.org>
5130
5131 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5132 the buffer in case of replace.
5133
5d28d4b1
DN
51342009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5135
5136 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5137
b349d111
SM
51382009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5139
d528b1ce
SM
5140 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5141 when applicable (bug#4851).
5142
b349d111
SM
5143 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5144 (P_): Support for prototypes is now required.
5145
c38eb027
CY
51462009-10-31 Chong Yidong <cyd@stupidchicken.com>
5147
5148 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5149 (Bug#4827).
5150
0405f8d9
EZ
51512009-10-30 Eli Zaretskii <eliz@gnu.org>
5152
d528b1ce 5153 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5154
ca0a881a
DN
51552009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5156
5157 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5158
d528b1ce
SM
5159 * lread.c (Fload): Purecopy the file name when building
5160 Vpreloaded_file_list.
ca0a881a 5161
47e0e0e4
JR
51622009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5163
5164 * w32fns.c (syms_of_w32fns): Change default value of
5165 w32-scroll-lock-modifier to nil. (Bug#2827)
5166
057bce6f
JB
51672009-10-26 Juanma Barranquero <lekktu@gmail.com>
5168
782a943e 5169 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5170
242bc74c
AS
51712009-10-26 Andreas Schwab <schwab@redhat.com>
5172
5173 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5174
522d013a
JB
51752009-10-26 Juanma Barranquero <lekktu@gmail.com>
5176
5177 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5178 For delta < 0, skip check that only makes sense when the mini-window
5179 is going to be enlarged. (Bug#4534)
5180
18060980
CY
51812009-10-25 Chong Yidong <cyd@stupidchicken.com>
5182
5183 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5184 string in menu maps (Bug#4471).
5185
fec8f0fe
CY
51862009-10-24 Chong Yidong <cyd@stupidchicken.com>
5187
5188 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5189 FRAME_NS_VIEW on terminal frames (Bug#4765).
5190
10d66ec0
AS
51912009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5192
1cae01f7
AS
5193 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5194 DBUS_TYPE_UINTnn separately to get proper sign extension.
5195
58a12889
AS
5196 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5197 can properly handle unsigned types.
d528b1ce 5198 (make_uid, make_gid): Remove.
58a12889 5199
987c9327
AS
5200 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5201 types again.
5202
522d013a 5203 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5204 (system_process_attributes): Likewise.
5205
905a9ed3
DN
52062009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5207
5208 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5209
5210 * eval.c (Fautoload): Purecopy the filename. Simplify.
5211
5212 * category.c (Fdefine_category): Purecopy docstring.
5213
a599b3e8
AS
52142009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5215
7b792fc9
AS
5216 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5217
a599b3e8
AS
5218 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5219
b35ac83e
CY
52202009-10-23 Chong Yidong <cyd@stupidchicken.com>
5221
5222 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5223 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5224 (Bug#4775).
5225
e8903e00
SM
52262009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5227
5228 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5229 (init_fileio_once):
5230 * lisp.h (init_fileio_once): Remove.
5231 * emacs.c (main): Don't call init_fileio_once.
5232
8f43cbf3
DN
52332009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5234
5235 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5236
26898943
AS
52372009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5238
5239 * doprnt.c (doprnt): Fix overflow check.
5240
5c646d5a
JD
52412009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5242
3132a7ea
JD
5243 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5244
5c646d5a
JD
5245 * xterm.h (x_wait_for_event): Declare it.
5246
5247 * xterm.c (pending_event_wait): New variable.
5248 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5249 see pending_event_wait.eventtype.
5250 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5251 (x_new_font): Call change_frame_size with new rows/columns before we
5252 try to resize the frame.
5c646d5a 5253 (x_wait_for_event): New function.
d528b1ce
SM
5254 (x_set_window_size_1): Don't change gravity unless change_gravity
5255 is set.
5c646d5a
JD
5256 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5257 don't change frame size, instead wait for the ConfigureNotify.
5258 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5259 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5260 (x_initialize): Initialize pending_event_wait.
5261
5262 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5263 size.
5264
5265 * widget.c (EmacsFrameSetValues): Add comment.
5266 (EmacsFrameSetCharSize): Just call x_set_window_size.
5267
5268 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5269 x_wait_for_event.
d528b1ce 5270 (flush_and_sync): Remove again.
5c646d5a
JD
5271 (xg_get_font_name): Suggest monospace if no previous font is known.
5272
e9c1637d
SM
52732009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5274
5275 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5276 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5277
5a72cccb
YM
52782009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5279
5280 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5281 processing pending events when event is filtered for input method.
ab04798f 5282 (Bug#3681)
5a72cccb 5283
2629aa37
JB
52842009-10-20 Juanma Barranquero <lekktu@gmail.com>
5285
5286 * fns.c: Add #endif accidentally removed in previous change.
5287
c3417a74
DN
52882009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5289
5290 * fns.c: Remove code for unsupported system: MAC_OS.
5291 * image.c: Likewise. Include setjmp.h.
5292
9685cef2
JD
52932009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5294
5295 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5296 pixel -1 (bug #4742).
5297
d7306fe6
DN
52982009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5299
019d2c4c
DN
5300 * process.c (create_pty): Remove conditionals for no longer
5301 supported systems: UNIPLUS and RTU.
5302
ee6bacd4
DN
5303 * xterm.c:
5304 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5305
d7306fe6
DN
5306 * alloc.c: Do not define struct catchtag.
5307 * eval.c: Move struct catchtag definition ...
5308 * lisp.h: ... here.
5309
5310 * image.c: Move png.h #include earlier to avoid warnings.
5311
5312 * xterm.c:
5313 * xsmfns.c:
5314 * xselect.c:
5315 * xrdb.c:
5316 * xmenu.c:
5317 * xftfont.c:
5318 * xfont.c:
5319 * xfns.c:
5320 * xfaces.c:
5321 * xdisp.c:
5322 * window.c:
5323 * widget.c:
5324 * w32xfns.c:
5325 * w32uniscribe.c:
5326 * w32term.c:
5327 * w32select.c:
5328 * w32reg.c:
5329 * w32proc.c:
5330 * w32menu.c:
5331 * w32inevt.c:
5332 * w32heap.c:
5333 * w32font.c:
5334 * w32fns.c:
5335 * w32console.c:
5336 * w32.c:
5337 * w16select.c:
5338 * vm-limit.c:
5339 * unexsol.c:
5340 * unexec.c:
5341 * unexcw.c:
5342 * unexaix.c:
5343 * undo.c:
5344 * tparam.c:
5345 * textprop.c:
5346 * terminfo.c:
5347 * terminal.c:
5348 * termcap.c:
5349 * term.c:
5350 * syntax.c:
5351 * sound.c:
5352 * sheap.c:
5353 * search.c:
5354 * scroll.c:
5355 * region-cache.c:
5356 * regex.c:
5357 * ralloc.c:
5358 * process.c:
5359 * print.c:
b024548b
DN
5360 * nsterm.m:
5361 * nsselect.m:
5362 * nsmenu.m:
5363 * nsimage.m:
5364 * nsfont.m:
5365 * nsfns.m:
d7306fe6
DN
5366 * msdos.c:
5367 * minibuf.c:
5368 * menu.c:
5369 * marker.c:
5370 * macros.c:
5371 * keymap.c:
5372 * keyboard.c:
5373 * intervals.c:
5374 * insdel.c:
5375 * indent.c:
5376 * gtkutil.c:
5377 * ftxfont.c:
5378 * ftfont.c:
5379 * fringe.c:
5380 * frame.c:
5381 * fontset.c:
5382 * font.c:
5383 * fns.c:
5384 * floatfns.c:
5385 * filelock.c:
5386 * fileio.c:
5387 * emacs.c:
5388 * editfns.c:
5389 * dosfns.c:
5390 * doprnt.c:
5391 * doc.c:
5392 * dispnew.c:
5393 * dired.c:
5394 * dbusbind.c:
5395 * data.c:
5396 * composite.c:
5397 * coding.c:
5398 * cmds.c:
5399 * cm.c:
5400 * chartab.c:
5401 * charset.c:
5402 * character.c:
5403 * ccl.c:
5404 * category.c:
5405 * casetab.c:
5406 * casefiddle.c:
5407 * callproc.c:
5408 * callint.c:
5409 * bytecode.c:
5410 * buffer.c:
5411 * atimer.c: Include setjmp.h. (Bug#4643)
5412
fd5f21e6
SM
54132009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5414
4c0354d7
SM
5415 Remove leftover table unibyte_to_multibyte_table.
5416 * character.c (unibyte_to_multibyte_table): Remove.
5417 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5418 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5419 * character.h (UNIBYTE_TO_CHAR): New macro.
5420 (MAKE_CHAR_MULTIBYTE): Use it.
5421 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5422 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5423 (message_dolog, set_message_1):
5424 * search.c (Freplace_match):
5425 * editfns.c (Fcompare_buffer_substrings):
5426 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5427 (concat):
5428 * insdel.c (copy_text, count_size_as_multibyte):
5429 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5430 * term.c (produce_glyphs):
5431 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5432 * regex.c (RE_CHAR_TO_MULTIBYTE):
5433 * cmds.c (internal_self_insert):
5434 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5435
fd5f21e6
SM
5436 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5437
4418646e
DN
54382009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5439
5440 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5441
35f5c1d2
JB
54422009-10-16 Juanma Barranquero <lekktu@gmail.com>
5443
5444 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5445
a0cd8f6b
AR
54462009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5447
5448 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5449 still needed under Tiger.
5450
5451 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5452
5453 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5454 __Apple__.
5455
5456 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5457
01a8d3fa
KH
54582009-10-15 Kenichi Handa <handa@m17n.org>
5459
5460 * print.c (print_object): Escape a symbol like "2E10" too.
5461
bf6c75c9 54622009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
5463
5464 Cleanups and changes for 64-bit compile under Snow Leopard.
5465 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
5466
5467 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5468
c5959062 5469 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
5470 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5471 cast argument.
5472 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 5473 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
5474
5475 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5476
5477 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5478 where appropriate.
5479
5480 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5481 where appropriate.
6e4780c5
JB
5482 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5483 Use stringWithUTF8String.
bf6c75c9
AR
5484 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5485
6e4780c5
JB
5486 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5487 Add formal protocol mention to inheritance.
bf6c75c9
AR
5488 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5489
6e4780c5
JB
5490 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5491 Fix printf format.
bf6c75c9
AR
5492 (ns_query_color): Use CGFloat where appropriate.
5493 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 5494 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
5495 argument.
5496
3d87f118
AR
5497 * config.in (NS_HAVE_NSINTEGER): Drop.
5498
a95c8102
AR
5499 * dbusbind.c (dbus-method-return-internal)
5500 (dbus-method-error-internal): Use long format in printf, and cast
5501 argument.
5502
5503 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5504 in printf, and cast argument.
5505
6873acca 5506 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
5507 cast argument.
5508
9ec6f100
GM
55092009-10-11 Glenn Morris <rgm@gnu.org>
5510
5511 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
5512
5be883cd
JD
55132009-10-08 Jan Djärv <jan.h.d@swipnet.se>
5514
5515 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
5516 menu bar with a small width so it doesn't enlarge the frame.
5517
d7a39b51
JB
55182009-10-08 Juanma Barranquero <lekktu@gmail.com>
5519
5520 * fontset.c (Fset_fontset_font): Fix typos in error messages.
5521
0c2b6f8e
GM
55222009-10-06 Glenn Morris <rgm@gnu.org>
5523
5524 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
5525 SOME_MACHINE_LISP (this enters indirectly via DOC).
5526
e02131a2
EZ
55272009-10-05 Eli Zaretskii <eliz@gnu.org>
5528
5529 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
5530
b4744254
EZ
55312009-10-04 Eli Zaretskii <eliz@gnu.org>
5532
5533 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
5534 Doc fix.
5535
dbf64827
JB
55362009-10-03 Martin Rudalics <rudalics@gmx.at>
5537
5538 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
5539
e9a0aef8
MA
55402009-10-02 Michael Albinus <michael.albinus@gmx.de>
5541
d528b1ce 5542 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
5543 used anymore outside fileio.c.
5544
5545 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
5546
64eb2b56
JB
55472009-10-01 Juanma Barranquero <lekktu@gmail.com>
5548
5549 * lisp.h (Qdelete_directory_internal):
5550 Declare, instead of Qdelete_directory.
5551
5552 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5553
9d28c33e
SM
55542009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5555
5556 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5557
9d8f3bd9
MA
55582009-10-01 Michael Albinus <michael.albinus@gmx.de>
5559
9d28c33e 5560 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
5561 Fdelete_directory. It is not a command anymore. It has no file
5562 name handler.
5563
9694740b
SM
55642009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5565
5566 * xdisp.c (get_next_display_element): Use an enum in last change.
5567
748e162f
KH
55682009-09-28 Kenichi Handa <handa@m17n.org>
5569
9694740b 5570 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
5571 unibyte_display_via_language_environment in handling
5572 Vnobreak_char_display.
5573
17efd58d
AR
55742009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5575
5576 * nsterm.h (ns_app_name): New extern variable.
5577
5578 * nsterm.m (ns_app_name): New variable.
5579 (ns_term_init): Set and use it.
5580 (ns_term_shutdown): Use it.
5581
5582 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5583 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5584
5585 * nsfns.m (ns_set_name_iconic, ns_set_name)
5586 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5587 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5588
9694740b
SM
5589 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5590 Remove double-casting in client_data comparison.
31c2d412 5591
3208cb35
YM
55922009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5593
5594 * keyboard.c (make_lispy_event): Remember last wheel direction.
5595 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5596
b7d552d6
GM
55972009-09-26 Glenn Morris <rgm@gnu.org>
5598
5599 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5600 internal.elc. Add term/pc-win.elc.
5601 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5602 term/x-win.elc.
5603 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5604 term/w32-win.elc.
5605 (NS_SUPPORT): New.
5606 (lisp): Add NS_SUPPORT.
5607 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5608
4ff670a8
DR
56092009-09-25 David Reitter <david.reitter@gmail.com>
5610
5611 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5612 on Mac OS X 10.6+ (bug#4513).
5613
feabfb6c
JB
56142009-09-24 Juanma Barranquero <lekktu@gmail.com>
5615
5616 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
5617 some parts of Emacs code (like font selection) don't grok them.
5618 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 5619
de59072a
AS
56202009-09-24 Andreas Schwab <schwab@redhat.com>
5621
5622 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5623
a489517b
JB
56242009-09-24 Juanma Barranquero <lekktu@gmail.com>
5625
5626 * dired.c (Fdirectory_files): Fix typo in docstring.
5627
0592970c
AR
56282009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5629
5630 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5631 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5632 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5633 under GNUstep.
5634 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5635
5636 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5637 glyph advancement.
5638
48e8a88b
AR
56392009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5640
5641 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 5642 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
5643
5644 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5645 deleted (bug #4492).
5646
e14f0a78
AR
5647 * nsfont.m (Vns_reg_to_script): New lisp variable.
5648 (syms_of_nsfont): Declare it.
5649 (ns_registry_to_script): New function.
5650 (ns_get_req_script): Call it.
5651 (ns_findfonts): Don't give up on non-unicode registry.
5652
5653 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
5654
5b650faa
SM
56552009-09-20 Tom Tromey <tromey@redhat.com>
5656
5657 * eval.c (find_handler_clause): Make stack-trace-on-error work in
5658 batch mode (bug#4228).
5659
a489517b 56602009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
5661
5662 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 5663 carefully. (Bug #4339)
0bae4e09 5664
fcfe06f3
CY
56652009-09-18 Chong Yidong <cyd@stupidchicken.com>
5666
d798ba87 5667 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 5668
31642728
AR
56692009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5670
5671 * emacs.c (inhibit_x_resources): Update doc string for NS.
5672 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 5673 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
5674
5675 * nsterm.h (ns_no_defaults): Remove.
5676
5677 * nsterm.m (ns_no_defaults): Remove.
5678 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
5679 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
5680 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
5681 don't update the NSWindow itself.
5682 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 5683 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
5684
5685 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
5686 ns_use_qd_smoothing.
5687
5688 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
5689 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 5690 (x-close-connection): Drop PSFlush() under OS X.
a489517b 5691 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 5692
8686ac71
JB
56932009-09-17 Juanma Barranquero <lekktu@gmail.com>
5694
5695 * emacs.c (inhibit_x_resources): New variable.
5696 (main) [HAVE_NS]: Don't process --quick command line option.
5697 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
5698
5699 * lisp.h (inhibit_x_resources): Declare it extern.
5700
5701 * w32reg.c (x_get_string_resource):
5702 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
5703
e227ba05
EZ
57042009-09-17 Eli Zaretskii <eliz@gnu.org>
5705
362654a6
JB
5706 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
5707 Add lisp/term/internal.elc.
e227ba05 5708
742d40e8
SM
57092009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5710
5711 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
5712 (bug#4461).
5713
005bd5a2
DN
57142009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
5715
5716 * puresize.h (BASE_PURESIZE): Increase to 1290000.
5717
5718 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
5719 (OBJECTS_MACHINE): Remove, unused.
5720
f9af9719
SM
57212009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
5722
5723 * frame.c (x_get_resource_string): Remove unused.
5724
0307c7d2
JD
57252009-09-15 Jan Djärv <jan.h.d@swipnet.se>
5726
5727 * xterm.c (x_new_font): Call change_frame_size before calling
5728 x_set_window_size, in case frame size won't change.
5729
5730 * frame.c (x_set_font): Remove dead code.
5731
428b13d6
SM
57322009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
5733
5734 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
5735
5766c380
SM
57362009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5737
5738 * lread.c (Fload): Don't output a message after loading an obsolete
5739 package any more (done in Lisp now).
5740
2fd0161b
CY
57412009-09-12 Chong Yidong <cyd@stupidchicken.com>
5742
5743 * fns.c (syms_of_fns): Doc fix (Bug#4227).
5744
bc5e75b6
SM
57452009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5746
5747 * keymap.c (Fwhere_is_internal): Use nconc2.
5748
c31c985e
AM
57492009-09-11 Alan Mackenzie <acm@muc.de>
5750
5751 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
5752 batch mode.
5753
78012bd2
AS
57542009-09-11 Andreas Schwab <schwab@linux-m68k.org>
5755
5756 * xdisp.c (display_mode_element): Detect cycles.
5757
9d889332
SM
57582009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5759
5760 * keymap.c (where_is_internal): Don't erroneously return nil right after
5761 filling the cache.
5762 (where_is_internal_1): Fix up typo.
5763
7ab5d780
GM
57642009-09-11 Glenn Morris <rgm@gnu.org>
5765
5766 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
5767 share a common doc-string.
5768
5238a749
SM
57692009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5770
66d77eda
SM
5771 * keymap.c (get_keymap): Return the actual keymap symbol rather than
5772 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
5773
5238a749
SM
5774 * keymap.c (QCadvertised_binding): New constant.
5775 (syms_of_keymap): Initialize it.
5776 (Fwhere_is_internal): Try and use bindings from :advertised-binding
5777 if applicable.
5778
19f48442
SM
57792009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
5780
50d4ba39
SM
5781 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
5782 (parse_menu_item): Streamline since bindings are recomputed all the
5783 time anyway. Don't bother checking Vdefine_key_rebound_commands any
5784 more and don't support lmenu's menu-alias any more either.
5785
a88a5372
SM
5786 * keymap.c (where_is_internal_data): Make noindirect a boolean.
5787 (where_is_internal): Strip it down to only traverse the keymaps.
5788 Move the cache handling from Fwhere_is_internal to here.
5789 (Fwhere_is_internal): Move the handling of remapping and the choice of
5790 the best binding from where_is_internal to here.
5791 Unify the cached/noncached paths, so remapping is also handled
5792 correctly when the cache is used, and so the cache can be used to
5793 speed up remap-handling when applicable.
5794 Give preference to non-remapped bindings.
5795 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
5796 non-remapped bindings.
5797 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
5798 command remapping.
5799
19f48442
SM
5800 * xdisp.c (display_mode_element): Move list length limit from 50 to
5801 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
5802
599498c3 58032009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
5804
5805 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
5806
f9b7b5ac
SM
58072009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
5808
a53af587
JB
5809 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
5810 (Bug#4334)
5811
f9b7b5ac
SM
5812 * keymap.c (where_is_internal): Filter out shadowed remappings.
5813 Assume that where_is_internal returns unshadowed bindings to simplify
5814 the code and get rid of the gotos. Use ASIZE.
5815
04f4b72d
JD
58162009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5817
4da146f2
JD
5818 * xterm.c (x_focus_changed): If we get a focusout and pointer
5819 is invisible, make it visible.
5820
04f4b72d
JD
5821 * xterm.h: Remove condition for declaration of
5822 x_*_window_to_frame.
5823
7cef7ce3
SM
58242009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5825
5826 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5827 initial terminal as well.
5828
a54fa5b7
JD
58292009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5830
5831 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 5832 x_menubar_window_to_frame.
a54fa5b7 5833
50426a04 5834 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
5835 (XTmouse_position): Do not return valid positions
5836 for clicks in the menubar and the toolbar for Gtk+.
5837
5838 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5839 if the widget for the event has the same top level as a frame,
5840 return the frame.
5841 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5842 internal windows, bug #4122.
5843 (x_non_menubar_window_to_frame): Remove.
5844
5a021dd0
GM
58452009-09-02 Glenn Morris <rgm@gnu.org>
5846
5847 * buffer.c (default-major-mode): Move most of the doc from here...
5848 (major-mode): ... to here.
5849
548fe2f3
NR
58502009-08-30 Nick Roberts <nickrob@snap.net.nz>
5851
5852 * process.c (wait_reading_process_output): Keep the descriptor
5853 when pty is used by a non-child process, e.g., in I/O buffer of
5854 GDB this allows inferior to be restarted.
5855
e0840eef
EZ
58562009-08-29 Eli Zaretskii <eliz@gnu.org>
5857
5858 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5859 both branches into one.
5860
82e98df4
SM
58612009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5862
5863 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5864 (main): Use enable-multibyte-characters rather than
5865 default-enable-multibyte-characters. Output a warning message when
5866 running a unibyte session.
5867
890617cb
YM
58682009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5869
5870 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5871 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5872 (copy_data_segment): Also copy __program_vars section.
5873 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5874 (dump_it) [LC_DYLD_INFO]: Use it.
5875
5876 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5877
e7adeadc
EZ
58782009-08-28 Eli Zaretskii <eliz@gnu.org>
5879
5880 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5881 $(SRC)/buildobj.h.
5882 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5883 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5884 $(SRC)/buildobj.h.
5885 (clean): Add buildobj.h.
5886
3ed8bbdc
TZ
58872009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5888
5889 * print.c (print_object): Set escapeflag to 1 when printing
5890 hashtable keys and values.
5891
155a6764
SM
58922009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5893
5894 * lread.c (read_integer): Use doubles (and potentially return a float
5895 number) as we do in string-to-number.
5896 (read1): Use strtol to read integers, signal errors on strtol's
5897 overflow and use floats if strtol's output is too large for
5898 Elisp integers.
5899
877610de
EZ
59002009-08-27 Eli Zaretskii <eliz@gnu.org>
5901
5902 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5903 (make-buildobj-SH): Fix last change.
5904 (SRC): Move to before where it's first used.
5905
ef73e7be
KH
59062009-08-27 Kenichi Handa <handa@m17n.org>
5907
550c8289
KH
5908 * process.c (send_process): Use encode_coding_object instead of
5909 encode_coding_string to perform eol-conversion even if the string
5910 is unibyte.
5911
60afa08d
KH
5912 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5913 character.
5914
ef73e7be 5915 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 5916 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 5917
7b3a82d7
DN
59182009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5919
5654bf63
DN
5920 * callproc.c (Fcall_process): Remove always true #if.
5921
7b3a82d7
DN
5922 * lisp.h: Replace #if 0 code for checking with text pointing to
5923 the --enable-checking configure flag.
5924
5925 * emacs.c (main): Mention the --enable-profiling configure flag
5926 instead of using CFLAGS.
5927
878bde49
KR
59282009-08-26 Ken Raeburn <raeburn@raeburn.org>
5929
5930 * Makefile.in (buildobj.h): New target.
5931 (doc.o): Depend on it.
5932 (temacs${EXEEXT}): Don't generate buildobj.lst.
5933 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5934 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5935 ($(BLD)/doc.$(O)): Depend on it.
5936 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5937 provided by Eli Zaretskii.)
5938 ($(TEMACS)): Don't generate buildobj.lst.
5939 * doc.c: Include buildobj.h.
5940 (buildobj): New static variable.
5941 (Fsnarf_documentation): Use it, instead of opening and reading
5942 buildobj.lst.
5943
1574224c
MA
59442009-08-25 Michael Albinus <michael.albinus@gmx.de>
5945
5946 * dbusbind.c (Fdbus_call_method)
5947 (Fdbus_call_method_asynchronously): Use English numeric format for
5948 timeout values in doc string.
5949
d9da2f45
KH
59502009-08-25 Kenichi Handa <handa@m17n.org>
5951
ef73e7be
KH
5952 * alloc.c (mark_char_table): New function.
5953 (mark_object): Use mark_char_table for a char-table.
5954
d9da2f45
KH
5955 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5956 (CHAR_TABLE_REF): Use it.
5957
c8edcc01
KR
59582009-08-23 Ken Raeburn <raeburn@raeburn.org>
5959
5960 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5961 before invoking the newly build emacs to check for load-path
5962 shadowing.
5963
7763401b
GM
59642009-08-22 Glenn Morris <rgm@gnu.org>
5965
5966 * Makefile.in (bootstrap_exe): New variable.
5967 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5968 Use ${bootstrap_exe}.
5969
729eadda
EZ
59702009-08-22 Eli Zaretskii <eliz@gnu.org>
5971
5972 * coding.h (encode_coding_string): Don't encode unibyte strings.
5973 (Bug#4047)
5974
eb4c6ace
MA
59752009-08-22 Michael Albinus <michael.albinus@gmx.de>
5976
5977 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5978
5979 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5980 intended as hotfix only.
5981 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5982
36e34d1b
AR
59832009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5984
5985 * nsterm.m (ns_get_color): Update documentation properly for last
5986 change, and clean up loose ends in the code left by it. Fix
5987 longstanding bug with 16-bit hex parsing, and add support for
5988 yet another X11 format (rgb:r/g/b) for compatibility.
5989 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5990 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5991
f983eb8a
SM
59922009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5993
5994 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5995
3f56d3c6
MA
59962009-08-20 Michael Albinus <michael.albinus@gmx.de>
5997
5998 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5999 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6000 (xd_initialize, xd_pending_messages): Check, whether
6001 $DBUS_SESSION_BUS_ADDRESS is set.
6002
fb641d68
YM
60032009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6004
6005 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6006
6007 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6008
cf59a374
GM
60092009-08-20 Glenn Morris <rgm@gnu.org>
6010
6011 * emacs.c (system-type): Doc fix.
6012
1373f3be
SM
60132009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6014
6015 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6016 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6017
058ed861
MA
60182009-08-18 Michael Albinus <michael.albinus@gmx.de>
6019
1373f3be
SM
6020 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6021 New functions.
058ed861
MA
6022 (xd_initialize): Revert change from 2009-08-16.
6023
563a866e 60242009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6025
6026 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6027 font-group vector, return nil.
5fc05db0 6028
e42bdf01
CY
60292009-08-17 Chong Yidong <cyd@stupidchicken.com>
6030
6031 * process.c (status_notify): Don't perform redisplay.
6032 (Fdelete_process, list_processes_1, process_send_signal):
6033 Expliticly perform redisplay.
6034 (wait_reading_process_output): Always check process status, but
6035 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6036
4230ab74
KR
60372009-08-17 Ken Raeburn <raeburn@raeburn.org>
6038
1373f3be 6039 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6040 (XFLOAT_INIT): New macro for storing a float value.
6041 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6042 * fns.c (sxhash): Copy out the value of a float in order to
6043 examine its bytes.
6044 * dbusbind.c (xd_append_arg): Likewise.
6045
4230ab74
KR
6046 * emacs.c (main): Don't call syms_of_data twice.
6047
a0645cdd
MA
60482009-08-16 Michael Albinus <michael.albinus@gmx.de>
6049
6050 * dbusbind.c (xd_initialize): Add connection file descriptor to
6051 input_wait_mask, in order to let select() detect, whether a new
6052 message has been arrived.
ca4f31ea 6053 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6054
485db0ba
MA
60552009-08-15 Michael Albinus <michael.albinus@gmx.de>
6056
1373f3be
SM
6057 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6058 New functions.
485db0ba
MA
6059
6060 * lisp.h (xd_pending_messages): Declare.
6061
6062 * keyboard.c (readable_events): Call xd_pending_messages.
6063
b5b98ff4
CY
60642009-08-15 Chong Yidong <cyd@stupidchicken.com>
6065
1373f3be 6066 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6067
f8354c6e
CY
6068 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6069
b5b98ff4
CY
6070 * buffer.c (set_buffer_internal_1)
6071 (swap_out_buffer_local_variables): Check for unbound local
6072 variables (Bug#4138).
6073
8b9fc636
EZ
60742009-08-14 Eli Zaretskii <eliz@gnu.org>
6075
6076 * process.c (create_pty): Fix last change.
6077
ce959360
CY
60782009-08-13 Chong Yidong <cyd@stupidchicken.com>
6079
6080 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6081 (xbm_load_image): Caller changed.
64b807c9 6082 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6083
c7baf7e9
NR
60842009-08-13 Nick Roberts <nickrob@snap.net.nz>
6085
6086 * process.c (create_pty): New function.
6087 (Fstart_process): Use it to allow Emacs to just associate a pty
6088 with the buffer. See associated change in gdb-mi.el.
6089 (list_processes_1): Deal with no program name.
6090 (start_process_unwind): Use pid == -2 to mean no process.
6091
1ac9108a
SM
60922009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6093
6094 * cmds.c (nonundocount): New global variable.
6095 (keys_of_cmds): Initialize it.
6096 (Fself_insert_command): Use it to combine upto 20 sequential chars
6097 into a single undo entry, just like the Qself_insert_command code in
6098 keyboard.c does.
6099 Call frame_make_pointer_invisible, also like the Qself_insert_command
6100 code in keyboard.c does.
6101 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6102 than its own local replacement for it.
6103
e267324c
KR
61042009-08-10 Ken Raeburn <raeburn@raeburn.org>
6105
1ac9108a 6106 * fns.c (concat): Don't re-set string length to its current value.
77437343 6107
1ac9108a
SM
6108 * coding.h (decode_coding_string, encode_coding_string):
6109 Use SBYTES macro.
f0bed503 6110
1ac9108a 6111 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6112 (doprnt): Merge with doprnt1, discarding lispstrings code.
6113 * lisp.h (doprnt_lisp): Don't declare.
6114
416e006d
JL
61152009-08-07 Juri Linkov <juri@jurta.org>
6116
6117 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6118
6f7d5780
DN
61192009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6120
6121 * print.c (syms_of_print): Undo previous change.
6122
f19a0f5b
TZ
61232009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6124
6125 * lread.c (read1, syms_of_lread): Read hashtables back from the
6126 readable format.
6127
6128 * print.c (print_preprocess, print_object): Print hashtables fully
6129 and readably.
6130 (syms_of_print): Provide 'hashtable-print-readable.
6131
b9173dc2
AR
61322009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6133
6134 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6135 no family set.
6136 (nsfont_open): Handle case when entity has no family.
6137
1586503c
AR
61382009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6139
6140 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6141 element, not a list, for match case.
6142
087048cd
KH
61432009-07-28 Kenichi Handa <handa@m17n.org>
6144
6145 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6146 rigidly.
6147
6148 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6149 font_parse_xlfd. Check font properties more rigidly.
6150
780c2506
DN
61512009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6152
31fd7c5c
JB
6153 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6154 bsd-common.h.
780c2506 6155
a8c0cc18
KH
61562009-07-27 Kenichi Handa <handa@m17n.org>
6157
6158 * xfaces.c (face_with_height): Call font_clear_prop.
6159
4fbe2306
CY
61602009-07-26 Chong Yidong <cyd@stupidchicken.com>
6161
111d9af3
CY
6162 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6163
6164 * xterm.c (x_term_init): Use Qx.
6165
4fbe2306
CY
6166 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6167
1ac9108a 6168 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6169 (ns_get_color): Revert 2009-07-16 change.
6170
beb0b7f9
EZ
61712009-07-25 Eli Zaretskii <eliz@gnu.org>
6172
6173 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6174 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6175
2baf5e76
KR
61762009-07-25 Ken Raeburn <raeburn@raeburn.org>
6177
1ac9108a
SM
6178 * coding.h (decode_coding_string, encode_coding_string):
6179 Use SCHARS macro.
8890e5f5 6180
2baf5e76 6181 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6182 (load_depth): Delete.
2baf5e76
KR
6183 (Qload_in_progress): New variable.
6184 (load_unwind): Don't reference load_depth or load_in_progress.
6185 (Fload): Likewise; specbind Qload_in_progress instead.
6186 (init_lread): Don't initialize load_depth.
6187 (syms_of_lread): Initialize and protect Qload_in_progress.
6188
1395c6f5
AR
61892009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6190
6191 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6192
4e2f36cf
AR
61932009-07-23 Yavor Doganov <yavor@gnu.org>
6194
6195 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6196
5dd9a6f7
AR
61972009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6198
6199 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6200 Bugs 3792, 3720, 2402.
6201 (ns_lookup_indexed_color): Check for bad index.
6202 (ns_index_color): Init unused slot to 0.
6203 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6204 Bug 3714, possibly 3082.
5dd9a6f7 6205
c902b920
JR
62062009-07-22 Jason Rumney <jasonr@gnu.org>
6207
1ac9108a
SM
6208 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6209 Position IME window at cursor (Bug#2570).
c902b920
JR
6210 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6211 (globals_of_w32fns): Dynamically load functions required above.
6212
6213 * w32term.c (w32_draw_window_cursor): Send message to reposition
6214 any IME window.
6215
090101cf
CY
62162009-07-21 Chong Yidong <cyd@stupidchicken.com>
6217
6218 * fileio.c: Revert 2009-07-16 changes.
6219 (Vauto_save_include_big_deletions): New variable.
6220 (Fdo_auto_save): Disable auto-save only if
6221 auto-save-include-big-deletions is nil.
6222
e6583e3d
CY
62232009-07-21 Chong Yidong <cyd@stupidchicken.com>
6224
6225 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6226 the overflowed pixels into account (Bug#3879).
6227
ece435a5
KR
62282009-07-21 Ken Raeburn <raeburn@raeburn.org>
6229
6230 * lread.c (load_depth): New variable.
6231 (Fload, load_unwind, init_lread): Set it to the load recursion
6232 depth; set load_in_progress as a simple boolean based on the
6233 current load_depth. (Bug#3892)
6234
40b2d973
AR
62352009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6236
6237 * nsfont.m (ns_has_attribute): Remove.
6238 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6239
10be7e0d
JL
62402009-07-18 Juri Linkov <juri@jurta.org>
6241
6242 * process.c (Fset_process_query_on_exit_flag): Mention killing
6243 a buffer in docstring.
6244
fa055055
KH
62452009-07-17 Kenichi Handa <handa@m17n.org>
6246
6247 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6248
042f7b69
YM
62492009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6250
6251 * nsfns.m (Fns_set_alpha): Remove function.
6252 (syms_of_nsfns): Don't defsubr it.
6253
6254 * nsterm.m (ns_get_color): Remove incompatible color formats.
6255 (ns_color_to_lisp): Generate #rrggbb color format string.
6256
4be941e3
RS
62572009-07-16 Richard Stallman <rms@gnu.org>
6258
6259 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6260 (Fset_buffer_auto_saved): Handle save_length = -2.
6261
4e6b227d
CY
62622009-07-16 Chong Yidong <cyd@stupidchicken.com>
6263
6264 * xterm.c (Qx_gtk_map_stock): New var.
6265
6266 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6267 of calling intern each time.
6268
a1856973
YM
62692009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6270
6271 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6272 does tiling.
6273
6274 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6275
497e54d8
KH
62762009-07-14 Kenichi Handa <handa@m17n.org>
6277
72d36834
KH
6278 * font.c (font_vconcat_entity_vectors): New function.
6279 (struct font_sort_data): New member font_driver_preference.
6280 (font_compare): Check font_driver_preference.
6281 (font_sort_entities): The format of the first argument changed.
6282 (font_delete_unmatched): Likewise.
6283 (font_list_entities): The return type changed.
6284 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6285 (font_find_for_lface): Adjuste for the above changes.
6286 Don't suppress the checking of C even if the repertory supports it.
6287 (Flist_fonts): Adjust for the above changes.
72d36834 6288
1ac9108a
SM
6289 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6290 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6291 Reject a font who has adstyle property that is different from a
6292 langname derived from registry property.
1ac9108a 6293 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6294
b6046155
EZ
62952009-07-13 Eli Zaretskii <eliz@gnu.org>
6296
6297 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6298 local copy of dirfilename.
6299
fb6b6049
KH
63002009-07-13 Kenichi Handa <handa@m17n.org>
6301
e2402a5e
KH
6302 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6303 against max_char.
6304
fb6b6049
KH
6305 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6306 calling XSYMBOL (sym).
6307
65156807
EZ
63082009-07-11 Eli Zaretskii <eliz@gnu.org>
6309
1ac9108a
SM
6310 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6311 New function.
6312 (directory_files_internal) [WINDOWSNT]:
6313 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6314 the filesystem of the directory is fast or slow.
6315
6316 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6317 file name.
6318 (is_slow_fs): New function.
6319 (stat): Use it to determine whether to issue more system calls to
6320 get accurate file attributes, when w32-get-true-file-attributes is
6321 `local'.
6322
e0ab5fcf
JD
63232009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6324
6325 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6326 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6327 parameter font-parameter as default to the font dialog.
6328
784ceded
KH
63292009-07-10 Kenichi Handa <handa@m17n.org>
6330
6331 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6332
fb8edc0b
EZ
63332009-07-09 Eli Zaretskii <eliz@gnu.org>
6334
1ac9108a 6335 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 6336
fb8edc0b
EZ
6337 * w32.c (stat): Treat UNC file names as residing on remote
6338 drives. (Bug#3542)
6339
635c75b1
KH
63402009-07-09 Kenichi Handa <handa@m17n.org>
6341
6342 * fontset.c (fontset_find_font): Fix previous change.
6343
c1d5ce94
MA
63442009-07-08 Michael Albinus <michael.albinus@gmx.de>
6345
6346 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6347 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6348 error flag.
6349
edb61b39
KH
63502009-07-08 Kenichi Handa <handa@m17n.org>
6351
374bf7e4
KH
6352 * fontset.c (fontset_find_font): Fix the logic of handling
6353 charset_matched.
6354 (font_for_char): Delete unused var.
6355 (generate_ascii_font_name): Delete it.
6356
edb61b39
KH
6357 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6358
6359 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6360 (encode_coding_sjis): Fix the code range check.
6361
0f3f018c
CY
63622009-07-07 Chong Yidong <cyd@stupidchicken.com>
6363
6364 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6365 (Fexpand_file_name): Copy string data properly (Bug#3772).
6366
fcaf6f3a
JD
63672009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6368
6369 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6370 first MapNotify.
6371
6809ca75
KH
63722009-07-07 Kenichi Handa <handa@m17n.org>
6373
6374 * character.h (unibyte_has_multibyte_table): Delete extern.
6375 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6376
6377 * charset.c (Fset_charset_priority): Update charset_unibyte.
6378 (syms_of_charset): Initialize charset_unibyte.
6379
6380 * character.c (unibyte_has_multibyte_table): Delete it.
6381 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6382 charset_unibyte.
6383 (multibyte_char_to_unibyte_safe): Likewise.
6384 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6385
1ac9108a 6386 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6387 (x_produce_glyphs): Likewise.
6388
6389 * .gdbinit (xcharset): Fix the treating $arg0.
6390
ad9e2d54
EZ
63912009-07-04 Eli Zaretskii <eliz@gnu.org>
6392
6393 Emulation of `getloadavg' on MS-Windows.
50426a04 6394 * w32.c: Include float.h.
ad9e2d54
EZ
6395 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6396 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6397 (get_native_system_info, get_system_times): New functions.
6398 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6399 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6400 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6401 g_b_init_get_system_times, and num_of_processors.
6402
0a3472c7
JR
64032009-07-03 Jason Rumney <jasonr@gnu.org>
6404
6405 * w32term.c (w32_initialize): Use standard types.
6406
80904120
EZ
64072009-07-03 Eli Zaretskii <eliz@gnu.org>
6408
6409 * dired.c (Ffile_attributes): Decode user and group names by the
6410 locale's encoding. (Bug#3443)
6411
6978862d
DN
64122009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6413
f8d23104
DN
6414 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6415 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6416
6417 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6418
6419 * term.c (init_tty): Remove spurious #ifdef.
6420
6978862d
DN
6421 * m/mips.h: Mention this file is also used for netbsd.
6422 * m/pmax.h: Remove file.
6423
e044e4fc
JD
64242009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6425
6426 * xterm.h (struct x_display_info): Add invisible_cursor.
6427 (struct x_output): Add current_cursor.
6428
6429 * xterm.c (XTtoggle_invisible_pointer): New function.
6430 (x_define_frame_cursor): Don't define cursor if invisible or the
6431 same as before. Set current_cursor.
6432 (x_create_terminal): Set toggle_invisible_pointer_hook.
6433
6434 * xfns.c (make_invisible_cursor): New function.
6435 (x_set_mouse_color): Call make_invisible_cursor.
6436 Set current_cursor.
6437 (x_window): Set current_cursor.
6438
6439 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6440
6441 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6442 inserting a character.
6443 (read_avail_input): Call frame_make_pointer_visible.
6444
6445 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
6446 (frame_make_pointer_invisible, frame_make_pointer_visible):
6447 New functions.
e044e4fc
JD
6448 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6449
6450 * frame.h: Declare frame_make_pointer_invisible and
6451 frame_make_pointer_visible.
6452 (struct frame): Add pointer_invisible.
6453
574c8efa
JD
64542009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6455
7b507248
JD
6456 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6457 frame isn't visible.
6458 (xg_frame_resized): If width/height is -1, get size of window
6459 from X server.
6460
6461 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6462 for MapNotify.
6463
835bdaa7 6464 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 6465 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 6466 (flush_and_sync): Reintroduce.
574c8efa 6467
3f1c6666 64682009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 6469
31fd7c5c 6470 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
6471
6472 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6473 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6474
6475 * frame.h: Declare Qsticky.
6476
cad9ef74
JD
6477 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6478
6479 * nsfns.m (ns_frame_parm_handlers): Ditto.
6480
6481 * frame.c: Declare Qsticky.
6482 (frame_parms): Add sticky.
6483
6484 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6485
6486 * xterm.h: Declare x_set_sticky.
6487
6488 * xterm.c (x_set_sticky): New function.
6489
69b16610
JD
6490 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6491 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6492 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
6493
6494 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6495
6496 * frame.c: Qmaximized is new.
6497 (x_set_frame_parameters): Do not handle fullscreen specially.
6498 Only set width and height if explicitly set.
6499 (x_set_fullscreen): Handle Qmaximized.
6500 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6501 (syms_of_frame): Initialize Qmaximized.
6502
1ac9108a
SM
6503 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6504 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
6505
6506 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
6507 for Expose event. Add call to x_check_fullscreen for MapNotify event.
6508 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
6509 set gravity to NorthWestGravity when USE_GTK.
6510 (set_wm_state): New function.
31fd7c5c 6511 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
6512 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
6513 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 6514 or the case when no window manager is running. That means remove calls
3f1c6666
JD
6515 to x_real_positions and x_fullscreen_adjust.
6516
6517 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
6518 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
6519 flush_and_sync.
6520 (xg_height_changed): New function.
6521 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
6522 and gtk_window_set_policy. Set frame gravity after parsing the
6523 geometry string.
3f1c6666
JD
6524 (xg_update_frame_menubar, free_frame_menubar)
6525 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6526 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
6527 Remove calls to xg_frame_set_char_size.
6528
fd503d99
KH
65292009-07-01 Kenichi Handa <handa@m17n.org>
6530
6531 * keyboard.c (decode_keyboard_code): New function.
6532 (tty_read_avail_input): Decode the input bytes if necessary.
6533
1ac9108a
SM
6534 * coding.c (setup_coding_system):
6535 Initialize coding->carryover_bytes to 0.
fd503d99
KH
6536 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
6537 use Qno_conversion.
6538
24ed93fb
YM
65392009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6540
6541 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
6542
99061dfc
CY
65432009-06-30 Chong Yidong <cyd@stupidchicken.com>
6544
1ac9108a 6545 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 6546
ff90fbde
JR
65472009-06-30 Jason Rumney <jasonr@gnu.org>
6548
6549 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6550 is already loaded.
6551 Set user model ID if supported (bug#1849).
6552
5f445726
JM
65532009-06-29 Jim Meyering <meyering@redhat.com>
6554
6555 Remove useless if-before-xfree test.
6556 * nsfont.m (nsfont_close): Remove useless test.
6557 * term.c (delete_tty): Likewise.
6558 * w32.c (system_process_attributes): Likewise.
6559 * w32font.c (w32font_close): Likewise.
6560 * xfaces.c (x_free_gc): Likewise.
6561 * xselect.c (buffer): Likewise.
6562
b9607587
AS
65632009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6564
6565 * process.c (send_process): Keep decoded string in a local
6566 variable and protect it from GC. (Bug#3521)
6567
89ba96f4
EZ
65682009-06-28 Eli Zaretskii <eliz@gnu.org>
6569
6570 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6571 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6572
098a1589
CY
65732009-06-28 Chong Yidong <cyd@stupidchicken.com>
6574
485422be
CY
6575 * xdisp.c (start_display, handle_face_prop)
6576 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
6577 (redisplay_window, try_window_id, produce_image_glyph):
6578 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 6579
098a1589
CY
6580 * xterm.c (x_update_window_begin, x_new_focus_frame)
6581 (x_scroll_bar_handle_click, handle_one_xevent)
6582 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6583 (x_make_frame_visible, x_make_frame_invisible)
6584 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6585 code chunks that are now obsolete.
6586
78c38319
MA
65872009-06-28 Michael Albinus <michael.albinus@gmx.de>
6588
6589 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6590 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6591 for hours, when optimzation is enabled.
6592 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6593 (xd_read_message): Make them static.
6594
4189ed40
CY
65952009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6596
6597 * term.c (turn_on_face): Allow simultaneously bold and dim
6598 terminal faces (Bug#3530).
6599
cd9b5e16
CY
66002009-06-27 Chong Yidong <cyd@stupidchicken.com>
6601
4e23bedb
CY
6602 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6603
cd9b5e16
CY
6604 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6605 truncation glyphs (Bug#3686).
6606
07cc3c35
GM
66072009-06-27 Glenn Morris <rgm@gnu.org>
6608
6609 * m/pmax.h: Restore file, with only netbsd portions.
6610
31fd7c5c 66112009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 6612
cd9b5e16 6613 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 6614
42d4a64f
KH
66152009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6616
6617 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6618 the arg FORCE_SYMBOL.
6619
930fe55b 66202009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
6621
6622 * fontset.c (fontset_find_font): When a usable rfont_def is found
6623 in a fallback font-group, make it the first element of the group.
6624
57ebc3fd
CY
66252009-06-24 Chong Yidong <cyd@stupidchicken.com>
6626
6627 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6628
f084f942
KH
66292009-06-24 Kenichi Handa <handa@m17n.org>
6630
6631 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6632 set for C.
6633 (fontset_font): Record the availability of a font for C both in
6634 the realized fontsets of the current one and the default one.
6635
2f686c87
DN
66362009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6637
6638 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6639 conditional, it is always defined on AIX.
6640
666e158e
MB
66412009-06-23 Miles Bader <miles@gnu.org>
6642
6643 * window.c (Vrecenter_redisplay): New variable.
6644 (syms_of_window): Initialize it.
6645 (Qtty): New extern declaration.
6646 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6647
c6da7cd2
JM
66482009-06-23 Jim Meyering <meyering@redhat.com>
6649
1ac9108a
SM
6650 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6651 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 6652 pointer dereferences are guaranteed to be valid.
c6da7cd2 6653
678dca3d
KH
66542009-06-23 Kenichi Handa <handa@m17n.org>
6655
74d75424
KH
6656 * emacs.c (main): Call init_font ().
6657
6658 * font.h (Vfont_log): Extern it.
6659 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
6660
6661 * font.c (font_sort_entities, font_list_entities)
6662 (font_matching_entity, font_open_entity)
6663 (font_close_object): Change font_add_log to FONT_ADD_LOG.
6664 (Vfont_log): Delete static.
6665 (font_log_env_checked): Delete this variable.
6666 (font_add_log): Don't check font_log_env_checked.
6667 (font_deferred_log): Check Vfont_log.
6668 (init_font): New function.
6669
678dca3d
KH
6670 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
6671
6672 * w32font.c: Change font_add_log to FONT_ADD_LOG.
6673
6674 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
6675
6676 * xfont.c: Change font_add_log to FONT_ADD_LOG.
6677
6678 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
6679 (face_for_char): Don't call font_deferred_log here.
6680 (font_for_char): Likewise.
6681
8a668709
CY
66822009-06-22 Chong Yidong <cyd@stupidchicken.com>
6683
9a01ee33
CY
6684 * w32term.c (x_draw_glyph_string): Use the glyph string's width
6685 rather than its background_width for drawing the overline and
6686 underline (Bug#489).
6687
6688 * xterm.c (x_draw_glyph_string): Use the glyph string's width
6689 rather than its background_width for drawing the overline and
6690 underline (Bug#489).
ec7c9926
CY
6691 (xg_default_icon_file): New variable.
6692 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
6693 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 6694
8a668709
CY
6695 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
6696 (load_overlay_strings): Remove externs.
6697 (fast_find_position): Function deleted.
6698 (mouse_face_from_buffer_pos): New function, based on
6699 fast_find_position. Correctly handle before-strings,
6700 display-strings, and after-strings (Bug#1220).
6701 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
6702
4d4c02d8
CY
67032009-06-21 Chong Yidong <cyd@stupidchicken.com>
6704
1ac9108a 6705 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
6706 (move_it_in_display_line_to, move_it_in_display_line_to)
6707 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
6708
70243478
CY
67092009-06-21 Chong Yidong <cyd@stupidchicken.com>
6710
6711 * Branch for 23.1.
6712
13087e59
JR
67132009-06-21 Jason Rumney <jasonr@gnu.org>
6714
6715 * w32term.c (keyboard_codepage): New static variable.
6716 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
6717 (w32_read_socket) [WM_CHAR]: Use it to decode character
6718 input (bug#3237).
6719 (w32_initialize): Initialize it.
6720 (codepage_for_locale): New function.
6721
4735b74e
KR
67222009-06-20 Ken Raeburn <raeburn@raeburn.org>
6723
6724 * process.c (status_message): Pass Faset index argument as a lisp
6725 object, so as to work with USE_LISP_UNION_TYPE.
6726
0e727afa
YM
67272009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6728
6729 * coding.c (Ffind_coding_systems_region_internal):
6730 Cache checked characters.
6731
cf299835
KH
67322009-06-18 Kenichi Handa <handa@m17n.org>
6733
1ac9108a 6734 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 6735
90f20d94
AS
67362009-06-18 Andreas Schwab <aschwab@redhat.com>
6737
6738 * xdisp.c (redisplay_internal): Check that the frame is still
6739 live after redisplay of its windows.
6740 (redisplay_windows): Check that the window is still live.
6741
7f1faf1c
KH
67422009-06-17 Andreas Schwab <schwab@linux-m68k.org>
6743
6744 * coding.c (detect_coding_utf_16): Fix previous change.
6745
cc13543e
KH
67462009-06-16 Kenichi Handa <handa@m17n.org>
6747
6748 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
6749 UTF-16 by checking the dispersion of Eth and Oth bytes.
6750
977b85f4
AS
67512009-06-15 Andreas Schwab <schwab@linux-m68k.org>
6752
6753 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
6754
66bd43d1
KH
67552009-06-15 Kenichi Handa <handa@m17n.org>
6756
6757 * process.c (status_message): Fix previous change. Be sure to
6758 decode a localized string.
6759
cb5ca9c5
YM
67602009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6761
6762 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
6763 add comment explaining why.
6764
ec7709ba 67652009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 6766
ec7709ba 6767 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 6768
4b7f335c
AR
67692009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
6770
6771 * nsfont.m (ns_attribute_value): Remove.
6772 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
6773 (ns_has_attribute): Shrink the normal range.
6774 (ns_findfonts): Don't worry about requested spec in determining
6775 need for synthItal.
e41820ee 6776 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 6777
73b26103
SZ
67782009-06-14 Seiji Zenitani <zenitani@mac.com>
6779
6780 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
6781
5753e4da
KH
67822009-06-11 Kenichi Handa <handa@m17n.org>
6783
6784 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6785 overhang for the static composition case.
6786
3561b671
KH
67872009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6788
5753e4da
KH
6789 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6790 overhang for the automatic composition case.
6791
3561b671
KH
6792 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
6793 composition case.
6794
852bbd41
CY
67952009-06-10 Chong Yidong <cyd@stupidchicken.com>
6796
6797 * xdisp.c (get_next_display_element): When handling wrap-prefix
6798 and line-prefix, treat \n as a control character (bug#3502).
6799
9903d1e6
KH
68002009-06-10 Kenichi Handa <handa@m17n.org>
6801
6802 * font.c (font_parse_family_registry): Fix for one-char foundry.
6803 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
6804
0bcbaaaa
CY
68052009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
6806
6807 * process.c (status_message): Fix handling of multibyte signal
6808 string (Bug#3499).
6809
40aa3f13
JM
68102009-06-09 Jim Meyering <meyering@redhat.com>
6811
1f80c7e2
CY
6812 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6813 color name is missing.
40aa3f13 6814
72d51285
KH
68152009-06-09 Kenichi Handa <handa@m17n.org>
6816
6817 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6818 FROM-CODE and TO-CODE are codepoints of CHARSET.
6819
c1d04d84
AR
68202009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6821
6822 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6823
68242009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6825
6826 Changes to support :script/:lang/:otf in NS font driver.
6827 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6828 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6829 indicate not part of font driver interface, and change callers.
6830 (ns_get_family): Remove pointless null check.
6831 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6832 ns_spec_to_descriptor, ns_descriptor_to_entity.
6833 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6834 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6835 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6836 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6837 (ns_get_req_script, ns_accumulate_script_ranges)
6838 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6839 New functions.
6840 (nsfont_list, nsfont_match): Use ns_findfonts.
6841 (nsfont_open): Use font descriptor instead of traits.
6842 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6843 (dump_glyphstring): Rename to ns_dump_glyphstring.
6844
c7eb9816
AR
6845 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6846
c1d04d84
AR
6847 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6848
6849 * fontset.c (fontset_from_font): Remove NS-specific code.
6850
ec7709ba 68512009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
6852
6853 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6854 nonactive windows.
6855
31fd7c5c 68562009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 6857
1ac9108a 6858 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 6859
68852c13 68602009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
6861
6862 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6863
6756cd1d
CY
68642009-06-07 Chong Yidong <cyd@stupidchicken.com>
6865
6866 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6867 account for the overflowing of newlines into the last glyph on the
6868 display line (Bug#3482).
6869
28bf482a
DR
68702009-06-05 David Reitter <david.reitter@gmail.com>
6871
ec7709ba
JB
6872 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6873 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
6874 Fns_selection_exists_p, Fns_selection_owner_p.
6875
fdb55376
JR
68762009-06-03 Jason Rumney <jasonr@gnu.org>
6877
6878 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6879 available. (Bug#3379)
6880
05129fbe
KH
68812009-05-29 Kenichi Handa <handa@m17n.org>
6882
1ac9108a
SM
6883 * coding.c (get_translation_table):
6884 Check Venable_character_translation.
05129fbe 6885
ec7709ba 68862009-05-26 David Reitter <david.reitter@gmail.com>
15891144 6887
ec7709ba
JB
6888 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6889 (x_make_frame_visible): Move frame to front rather than calling
15891144 6890 ns_raise_frame().
ec7709ba 6891 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 6892 isn't key window.
ec7709ba 6893 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
6894 drawRect may be called by NSView even if the frame is hidden.
6895
ec7709ba
JB
6896 * nsfns.m (Fx_create_frame): Follow other ports in
6897 determining visibility; default to t. Ensure async_visible is set.
15891144 6898
21f73755
EZ
68992009-05-23 Eli Zaretskii <eliz@gnu.org>
6900
6901 * dired.c (Ffile_attributes): Doc fix.
6902
34001e41
CY
69032009-05-22 Chong Yidong <cyd@stupidchicken.com>
6904
6905 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6906
46306a17
SM
69072009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6908
6909 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6910 and xfont_scratch_props.
6911 (syms_of_xfont): Do it here instead.
6912 (xfont_find_ccl_program): Delete, unused.
6913 (xfont_open): Delete unused var `i'.
6914
ef6e0694
KH
69152009-05-21 Kenichi Handa <handa@m17n.org>
6916
6917 * fontset.c (Qlatin): Don't make it static.
6918
46306a17
SM
6919 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6920 New functions.
ef6e0694
KH
6921 (xfont_scripts_cache, xfont_scratch_props): New variables.
6922 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
6923 (xfont_list_pattern): Argument changed. Callers changed.
6924 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
6925 (xfont_list): Don't reject a font spec with :script property.
6926 (xfont_has_char): Fix setting of encoding.
6927 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6928 xfont_scratch_props.
6929
69302009-05-19 Kenichi Handa <handa@m17n.org>
6931
46306a17 6932 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
6933 Callers changed.
6934
69352009-05-18 Kenichi Handa <handa@m17n.org>
6936
6937 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6938
ac71ced7
SM
69392009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6940
6941 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6942 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6943
1c6d1051
YM
69442009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6945
6946 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6947 (x_delete_terminal): Dissociate resource database from display and
6948 then call XrmDestroyDatabase before closing display.
6949
9b9b779c
AR
69502009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6951
6952 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
6953 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6954 whether selected frame is viable before raising it (based on patch
6955 by David Reitter), and improve commentary.
6956 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 6957
cccd42d5
KH
69582009-05-15 Kenichi Handa <handa@m17n.org>
6959
6960 * font.c (Ffont_spec): Check arguments.
6961
337fbd17
CY
69622009-05-14 Chong Yidong <cyd@stupidchicken.com>
6963
6964 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6965 weight when testing attributes (Bug#3282).
6966
47a6002f
JD
69672009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6968
6969 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6970 what we expect to get in the next ConfigureNotify event.
6971
9cb363db
YM
6972 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6973 before Xft one (Bug#1696).
6974
b9126609
CY
69752009-05-07 David Reitter <david.reitter@gmail.com>
6976
6977 * nsfns.m (Fx_display_planes): Compute bitplanes using
6978 NSBitsPerPixelFromDepth (Bug#3207).
6979
27a69fd9
CY
69802009-05-10 Chong Yidong <cyd@stupidchicken.com>
6981
6982 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6983
00f37552
TTN
69842009-05-10 Ulrich Mueller <ulm@gentoo.org>
6985
6986 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6987
2d82a920
DR
69882009-05-07 David Reitter <david.reitter@gmail.com>
6989
ec7709ba
JB
6990 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6991 Respect mouse face background.
2d82a920 6992
46b0d52d
DR
69932009-05-07 David Reitter <david.reitter@gmail.com>
6994
ec7709ba
JB
6995 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6996 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
6997 in ns_update_begin and ns_update_end.
6998
ce1b23bb
SM
69992009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7000
5996e1b7
SM
7001 * nsfns.m (ns_get_screen): Rewrite.
7002 Don't presume selected-frame is of type `ns'.
7003
ba98e3a0
SM
7004 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7005 all drivers.
7006
ce1b23bb
SM
7007 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7008
bcda200f
YM
70092009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7010
7011 * keyboard.h (add_user_signal): Fix typo in extern.
7012
7013 * lisp.h (add_user_signal): Remove extern.
7014
7015 * unexelf.c (unexec): Consider a section to precede the .bss section
7016 if its addresses overlap that of .bss.
7017 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7018 instead of dumping process.
7019
864660a2
SM
70202009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7021
7022 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7023
50da4e56
SM
70242009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7025
7026 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7027
51520a1a
DN
70282009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7029
7030 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7031 any statements.
7032
409ea3a1
AS
70332009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7034
59c4c60f
AS
7035 * process.c (read_process_output): Make sure the current buffer is
7036 always restored.
7037
409ea3a1
AS
7038 * coding.c (record_conversion_result): Don't modify
7039 Vlast_code_conversion_error for successful result.
7040 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7041
56f00ed2
KH
70422009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7043
7044 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7045 (load_charset_map): Remove unnecessary code.
56f00ed2 7046
4491c9d2
DR
70472009-04-30 David Reitter <david.reitter@gmail.com>
7048
35f5b128 7049 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7050 through f24.
7051
6970f632
CY
70522009-04-30 Chong Yidong <cyd@stupidchicken.com>
7053
7054 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7055
7056 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7057 face_at_buffer_position.
7058 (face_before_or_after_it_pos, get_next_display_element)
7059 (note_mouse_highlight): Update face_at_buffer_position call.
7060
7061 * term.c (term_mouse_highlight):
7062 * msdos.c (IT_note_mouse_highlight):
7063 * fontset.c (Finternal_char_font):
35f5b128 7064 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7065
7066 * dispextern.h (face_at_buffer_position): Update prototype.
7067
0c616f63
KH
70682009-04-30 Kenichi Handa <handa@m17n.org>
7069
35f5b128 7070 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7071
ad3aaf33
AS
70722009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7073
7074 * callproc.c (Fcall_process): Fix GC protection. Make sure
7075 current buffer is always restored.
7076
c3c963a0
YM
70772009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7078
7079 * atimer.c (init_atimer): Also clear stopped_atimers.
7080
7081 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7082
7e3386cb
YM
7083 * process.c (create_process): Clean up merger residues of
7084 2008-07-17 change.
7085
91f68422
CY
70862009-04-29 Ulrich Mueller <ulm@gentoo.org>
7087
7088 * lread.c (Vread_circle): New variable.
7089 (read1): Disable recursive read if Vread_circle is nil.
7090
24b34550
KH
70912009-04-29 Kenichi Handa <handa@m17n.org>
7092
7093 * fontset.h (set_default_ascii_font): Delete extern.
7094
7095 * fontset.c (set_default_ascii_font): Delete this unused function.
7096
7097 * frame.c (x_set_font): When ARG is a font-object, check if the
7098 font-object matches with the ASCII font-spec of the frame's
9c358bda 7099 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7100
77bf07e1
AS
71012009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7102
7103 * fns.c (Flocale_info): Protect vector from GC during decoding.
7104
7105 * process.c (Fstart_process): Protect argv strings from GC during
7106 encoding.
7107
2c55aacf
AS
71082009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7109
7110 * sysdep.c: Include <ctype.h>.
7111
b892d3c9
DR
71122009-04-27 David Reitter <david.reitter@gmail.com>
7113
35f5b128 7114 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7115 Remove commented-out code.
7116
9d0644c4
JB
71172009-04-26 Johan Bockgård <bojohan@gnu.org>
7118
7119 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7120
b7053016
JR
71212009-04-25 Jason Rumney <jasonr@gnu.org>
7122
7123 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7124
4e8231f3
YM
71252009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7126
7127 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7128 Swap bytes in short integer if fringe bitmap width > 8.
7129
493dcf2c
KH
71302009-04-23 Kenichi Handa <handa@m17n.org>
7131
7132 * xfaces.c (Fx_list_fonts): If a font size is specified in
7133 PATTERN, set it in returned scalable fonts.
7134
401e9e57
CY
71352009-04-22 Chong Yidong <cyd@stupidchicken.com>
7136
708e05dc
CY
7137 * keyboard.c (Fset_input_meta_mode): Doc fix.
7138
7139 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7140
1ac9108a 7141 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7142
7143 * coding.c (Fterminal_coding_system): Doc fix.
7144
7145 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7146 (Fx_display_pixel_height, Fx_display_planes)
7147 (Fx_display_color_cells, Fx_server_max_request_size)
7148 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7149 (Fx_display_mm_height, Fx_display_mm_width)
7150 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7151 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7152 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7153 (check_x_display_info): Handle terminal objects instead of
7154 terminal ids.
7155
401e9e57
CY
7156 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7157 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7158 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7159 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7160
df80c7f0
KH
71612009-04-21 Kenichi Handa <handa@m17n.org>
7162
5a8f12af 7163 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7164 (font_score): Check AVGWIDTH too.
908567ef 7165
df80c7f0
KH
7166 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7167 worst case.
1ac9108a
SM
7168 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7169 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7170
705af33f
JR
71712009-04-19 Jason Rumney <jasonr@gnu.org>
7172
7173 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7174 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7175
7176 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7177 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7178 get_phys_cursor_geometry.
7179
b71ac3dd 7180 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7181 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7182 using get_phys_cursor_geometry.
7183
7184 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7185 correctly calculated.
7186
dc2933eb
JD
71872009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7188
1ac9108a
SM
7189 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7190 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7191 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7192 is deprecated.
7193
973e7849
AS
71942009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7195
7196 * font.c (font_put_frame_data): Use xfree instead of free.
7197
314d66f4
JB
71982009-04-17 Juanma Barranquero <lekktu@gmail.com>
7199
7200 * w32font.c (Qja, Qko): Remove declarations.
7201 (syms_of_w32font): Don't DEFSYM them.
7202
cf702558
CY
72032009-04-17 Chong Yidong <cyd@stupidchicken.com>
7204
7205 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7206
7207 * font.h (Qja, Qko): Extern them.
7208
7209 * ftfont.c (Qja, Qko): Remove declarations.
7210
7211 * xfont.c (Qja, Qko): Remove declarations.
7212
b50504f5
KH
72132009-04-17 Kenichi Handa <handa@m17n.org>
7214
bde25748
KH
7215 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7216 string from a vector to handle Latin-1 characters correctly.
7217
b50504f5
KH
7218 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7219 entity even if the cache hits.
7220
f4646fff
AS
72212009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7222
7223 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7224 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7225
e7deaab0
AS
7226 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7227 * lisp.h: Adjust prototypes.
7228
0a0e7d49
CY
72292009-04-16 Chong Yidong <cyd@stupidchicken.com>
7230
7231 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7232 change (Bug#3003).
7233
3c908a57
KH
72342009-04-16 Kenichi Handa <handa@m17n.org>
7235
1ac9108a 7236 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7237
7238 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7239 adstyle.
7240
7241 * ftfont.c (Qja, Qko): Don't make them static.
7242 (enum ftfont_cache_for): New enum.
7243 (fc_charset_table): Undo the previous change.
7244 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7245 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7246 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7247 non-scarable font, try to get AVERAGE_WIDTH.
7248 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7249 Change ft_face_cache from a list of a hash-table. Don't check
7250 `ja' and `ko' adstyle here.
7251 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7252 FTFONT_CACHE_FOR_CHARET.
7253 (ftfont_get_charset): Undo the previous change.
1ac9108a 7254 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7255 (ftfont_close): Likewise.
7256 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7257
7258 * font.c (font_sort_entites): Change the meaning of the arg
7259 BEST-ONLY. Don't optimize for VEC of lenght 1.
7260 (font_select_entity): Just return the value of font_sort_entites.
7261
7262 * xfaces.c (merge_face_vectors): Reflect font properties in
7263 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7264 font_clear_prop if a face attribute doesn't change.
7265
3c908a57
KH
7266 * charset.h (charset_ksc5601): Extern it.
7267
7268 * charset.c (charset_ksc5601): New variable.
7269 (Fdefine_charset_internal): Set charset_ksc5601.
7270 (init_charset_once): Initialize charset_ksc5601 to -1.
7271
d65859c3
DN
72722009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7273
7274 * fileio.c (history_delete_duplicates): Remove unused declaration.
7275
7276 * callint.c (history_delete_duplicates): New declaration.
7277 (Fcall_interactively): Remove command history duplicates when
7278 history_delete_duplicates is true.
7279
3ba010e5
EZ
72802009-04-14 Eli Zaretskii <eliz@gnu.org>
7281
7282 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7283
06f19b91
KH
72842009-04-14 Kenichi Handa <handa@m17n.org>
7285
7286 * font.c (Ffont_info): Fix docstring. Fix the second element of
7287 the returned value (bug#2949).
7288
2cce8bfc
CY
72892009-04-14 Chong Yidong <cyd@stupidchicken.com>
7290
7291 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7292
d156542d
KH
72932009-04-14 Kenichi Handa <handa@m17n.org>
7294
7295 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7296 encoding charset is ascii_compatible.
7297
7298 * charset.c (Fdefine_charset_internal): Make charset
7299 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7300 code_offset is 0, and covers all ASCII characters.
7301
86fa089e
SM
73022009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7303
7304 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7305 (ns_string_to_pasteboard_internal):
7306 * nsmenu.m (process_dialog):
7307 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7308 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7309 * lisp.h (Fx_load_color_file): Declare.
7310
a8a3728b
KH
73112009-04-13 Kenichi Handa <handa@m17n.org>
7312
1ac9108a 7313 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7314 (font_select_entity): Suppress the code to optimize for the same
7315 kind of fonts.
7316 (font_load_for_lface): Get a font that supports at least ASCII
7317 characters.
7318
7319 * ftfont.c (Qja, Qko): New variables.
7320 (fc_charset_table): Delete uniquifier data for iso8859-1.
7321 (ftfont_get_latin1_charset): New function.
7322 (get_adstyle_property): New function.
7323 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7324 bitmap fonts.
7325 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7326 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7327 `ko' or `ja'.
7328 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7329 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
7330 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7331 property.
7332 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7333 (syms_of_ftfont): DEFSYM Qja and Qko.
7334
483670b5
KH
73352009-04-09 Kenichi Handa <handa@m17n.org>
7336
12b55765
KH
7337 * charset.c (map_charset_chars): For a charset of `superset'
7338 method, fix calculation of code range.
7339
483670b5
KH
7340 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7341 from the list of extra properties.
7342 (font_clear_prop): Be sure to delete `:name' font property.
7343
57d3b93b
KH
73442009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7345
b4b2c2ca
YM
7346 * dispnew.c (redraw_overlapping_rows): Fix detection of
7347 overlapping for topmost and bottommost rows.
7348
1ac9108a 7349 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 7350
472c3609
JR
73512009-04-06 Jason Rumney <jasonr@gnu.org>
7352
7353 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7354
ab193662
KH
73552009-04-06 Kenichi Handa <handa@m17n.org>
7356
7357 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7358
7359 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7360
0c26f026
KH
73612009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7362
7363 * ftfont.c (ftfont_open): Fix checking of the return value of
7364 FT_Load_Char. Fix setting font->underline_thickness.
7365
e173bbce
CY
73662009-04-04 Chong Yidong <cyd@stupidchicken.com>
7367
7368 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7369 (Fterminal_parameters, Fterminal_parameter)
7370 (Fset_terminal_parameter): In doc string, refer to terminal
7371 objects rather than terminal ids.
7372
693a2698
EZ
73732009-04-04 Eli Zaretskii <eliz@gnu.org>
7374
7375 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7376 ret_lim_data. (Bug#2867)
7377
d5221487
CY
73782009-04-03 Chong Yidong <cyd@stupidchicken.com>
7379
7380 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7381 so they don't get wider than the window, matching 2006-01-23
7382 change to the partner function in xdisp.c (Bug#2800).
7383
223509a3
KH
73842009-04-03 Kenichi Handa <handa@m17n.org>
7385
7386 * print.c (print_object): Make each lowest sub_char_table start a
7387 new line (Bug#2866).
7388
74fcd0b1
KH
73892009-04-02 Kenichi Handa <handa@m17n.org>
7390
7391 * fontset.c (fontset_font): Record no-font when a fontset
7392 explicitly tells not to try another font-specs.
7393
c542407d
SM
73942009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7395
7396 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7397
e3869731
KH
73982009-03-30 Kenichi Handa <handa@m17n.org>
7399
d8d2f142
KH
7400 * fontset.c (fontset_from_font): Specify only registry in a
7401 font-spec for all characters supported by that registry.
7402
e3869731
KH
7403 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7404 even if HAVE_M17N_FLT is not defined.
7405
5da5f805
CY
74062009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7407
7408 * ftfont.c: Conditionalize prototyping and use of
7409 ftfont_variation_glyphs.
7410
ab226c50
SM
74112009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7412
9628fed7
SM
7413 * frame.c (delete_frame): Work around compiler bug.
7414
7415 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7416 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7417 Some more EMACS_INT.
7418 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7419
7420 * xdisp.c (dump_glyph): Fix typo.
7421
ae19ba7c
SM
7422 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7423 (adjust_markers_gap_motion, adjust_markers_for_delete)
7424 (adjust_markers_for_insert, adjust_point)
7425 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7426 (make_gap, copy_text, count_size_as_multibyte, insert)
7427 (insert_and_inherit, insert_before_markers)
7428 (insert_before_markers_and_inherit, insert_1)
7429 (count_combining_before, count_combining_after, insert_1_both)
7430 (insert_from_string, insert_from_string_before_markers)
7431 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7432 (insert_from_buffer_1, adjust_after_replace)
7433 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7434 (replace_range_2, del_range, del_range_1, del_range_byte)
7435 (del_range_both, del_range_2, modify_region)
7436 (prepare_to_modify_buffer, signal_before_change)
7437 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7438 for buffer positions and sizes.
7439 * lisp.h: Adjust prototypes accordingly.
7440
7441 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7442 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7443 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7444
ab226c50
SM
7445 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7446
46dfb8fb
JD
74472009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7448
7449 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7450 lines and columns so we keep the same pixel height and width.
7451
7452 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7453 the property _NET_WM_STATE has changed.
46dfb8fb
JD
7454 (x_handle_net_wm_state): New function to update frame parameter
7455 fullscreen.
7456 (x_term_init): Initialize atoms for _NET_WM_STATE.
7457
7458 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7459
d347e494
SM
74602009-03-27 Kevin Ryde <user42@zip.com.au>
7461
7462 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7463 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7464 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7465 (Fgpm_mouse_stop): Pass that new parameter.
7466 * termhooks.h (close_gpm): Adjust prototype.
7467
84db11d6
SM
74682009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7469
c95a5008
SM
7470 * lisp.h (Fx_focus_frame): Declare.
7471
84db11d6
SM
7472 * callint.c (Fcall_interactively): For '^' just delegate the work to
7473 handle-shift-selection.
7474 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7475
0a1958d6
CY
74762009-03-24 Chong Yidong <cyd@stupidchicken.com>
7477
0bfdff23
CY
7478 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7479
0a1958d6
CY
7480 * data.c (Qinteractive_form): New variable.
7481 (Finteractive_form): Use it.
7482
7483 * eval.c (Fcommandp): Use Qinteractive_form.
7484
58aec0d6
JR
74852009-03-24 Jason Rumney <jasonr@gnu.org>
7486
7487 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7488 Calculate total size precisely. Decode environment variables
7489 before substituting. (Bug#38)
7490
553dd618
KH
74912009-03-24 Kenichi Handa <handa@m17n.org>
7492
7493 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 7494 encoding (Bug#2722).
553dd618 7495
c39ea606
JD
74962009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7497
7498 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7499 that gdpy is set.
7500
bc9b2b5e
AM
75012009-03-22 Alan Mackenzie <acm@muc.de>
7502
7503 * callint.c (Finteractive): Clarify the doc string - even
7504 promptless elements need \n separators.
7505
9f995a76
JR
75062009-03-22 Jason Rumney <jasonr@gnu.org>
7507
7508 * w32term.c (syms_of_w32term): Doc fix for
7509 x-use-underline-position-properties.
7510
22749e9a
EZ
75112009-03-21 Eli Zaretskii <eliz@gnu.org>
7512
7513 * w32.c (getpwuid): Change argument type to unsigned.
7514 (struct w32_id): Change type of `rid' member to unsigned.
7515 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
7516 argument ID to unsigned. All callers changed.
7517 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
7518
e00553bf
EZ
75192009-03-20 Eli Zaretskii <eliz@gnu.org>
7520
7521 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
7522 negative, produce a float value.
7523
7524 * dired.c (make_uid, make_gid): New functions.
7525 (Ffile_attributes): Use them to avoid negative UID and GID.
7526
f761d6b6
JB
75272009-03-20 Juanma Barranquero <lekktu@gmail.com>
7528
7529 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
7530 (syms_of_keyboard) <command-hook-internal, input-method-function>:
7531 Fix typos in docstrings.
7532
d507f8d7
KH
75332009-03-19 Kenichi Handa <handa@m17n.org>
7534
7535 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
7536 changed, use font_load_for_lface to get a new font object.
7537 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
7538
7539 * frame.c (x_set_font): Handle the case that ARG is a cons.
7540
c68845e0
GM
75412009-03-19 Glenn Morris <rgm@gnu.org>
7542
7543 * fileio.c (Fsubstitute_in_file_name): Doc fix.
7544
bfa49dd1
CY
75452009-03-19 Chong Yidong <cyd@stupidchicken.com>
7546
7547 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
7548
8458d4c1
KH
75492009-03-19 Kenichi Handa <handa@m17n.org>
7550
7551 * charset.c (load_charset_map_from_file): When a mapfile can't be
7552 loaded, signal an error.
7553
78e7d1fe
EZ
75542009-03-18 Eli Zaretskii <eliz@gnu.org>
7555
7556 * dired.c (Ffile_attributes): Make sure UID and GID are always
7557 positive, even if the value is too large for a positive EMACS_INT.
7558 Doc fix.
7559
7560 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7561
5da9fdfa
YM
75622009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7563
7564 * xmenu.c (xdialog_show): Move Fredisplay call ...
7565 (Fx_popup_dialog): ... here.
7566
7519c40d
SM
75672009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7568
7569 * dired.c (file_name_completion): Disable the first optimization just
7570 installed, since it is not implemented correctly.
7571
2cd298e2
SM
75722009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7573
7574 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 7575 only if the entry can affect bestmatch.
2cd298e2
SM
7576 Stop the search early, as Ftry_completion already does.
7577
48d37adf
CY
75782009-03-17 Chong Yidong <cyd@stupidchicken.com>
7579
e10c9c93 7580 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 7581
9286b16a
CY
75822009-03-15 Chong Yidong <cyd@stupidchicken.com>
7583
7584 * keyboard.c (parse_menu_item): Don't display remappings as menu
7585 equivalent bindings (Bug#788).
7586
f7b146dc
JR
75872009-03-15 Jason Rumney <jasonr@gnu.org>
7588
7589 * w32term.h (WM_EMACS_PAINT): New message.
7590 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7591 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7592 before passing to lisp thread. (Bug#950)
7593
f761d6b6 75942009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 7595
d93f9575
CY
7596 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7597 variable as it was never reset.
7598 (ns_term_init): Remove initialization of Lisp-settable defaults
7599 and ns_expand_space.
7600 (-setPanelFromDefaultValues): Remove ns_expand_space.
7601 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7602 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
7603 i.e. no additional spacing, similar to Carbon port.
7604
d93f9575
CY
7605 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7606 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 7607
305018ec
JD
76082009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7609
7610 * sound.c (alsa_configure): Remove call to deprecated
7611 snd_pcm_sw_params_set_xfer_align.
7612
f761d6b6 76132009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
7614
7615 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7616 after clicking in a detached tool bar.
7617 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7618
46e722a9
SM
76192009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7620
348db3dd
SM
7621 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7622 int/Lisp_Object mixup).
46e722a9 7623
a3d16f39
KH
76242009-03-13 Kenichi Handa <handa@m17n.org>
7625
7626 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 7627 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
7628 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7629 (set_fontset_font): Change ARG to a vector. Handle range_list in
7630 ARG correctly.
7631 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 7632 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
7633 the above change.
7634 (fontset_from_font): Fix previous change.
fe24f56a 7635 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
7636 entry. If FONTSET is the default fontset, don't set the extra
7637 slot of the returning char-table.
7638
b066e6b6
JB
76392009-03-12 Juanma Barranquero <lekktu@gmail.com>
7640
7641 * nsfns.m (Fx_close_connection): Doc fix.
7642 (Fns_do_applescript): Reflow docstring.
7643 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7644 (Fx_display_pixel_width, Fx_display_pixel_height)
7645 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7646 Fix typos in docstrings.
7647 (Fns_set_alpha): Fix typos in error messages.
7648
d472514e 76492009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 7650
d472514e 7651 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
7652 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
7653 were used for such events.
7654
d472514e
JB
7655 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
7656 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 7657
d472514e 7658 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
7659 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
7660
fb930676
KH
76612009-03-11 Kenichi Handa <handa@m17n.org>
7662
ff85581a
KH
7663 * font.h (font_open_by_spec): Extern it.
7664
c50b7e98
KH
7665 * font.c (font_open_by_spec): New function.
7666 (font_open_by_name): Use font_open_by_spec.
7667
fb930676
KH
7668 * frame.c (x_set_font): When ARG is a font-object, don't alter the
7669 fontset of the frame.
7670
7671 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
7672 modify the default font of frames that use this fontset.
7673 (num_auto_fontsets): New variable.
7674 (fontset_from_font): Use num_auto_fontsets to decide a fontset
7675 name. Be sure to set FONTSET_ASCII to the correct font name.
7676 (update_auto_fontset_alist): New function.
7677
df4e8455
JB
76782009-03-11 Juanma Barranquero <lekktu@gmail.com>
7679
7680 * makefile.w32-in: Update dependencies.
7681
0a375797
AR
76822009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7683
7684 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
7685
61313fa3
SM
76862009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7687
7688 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
7689
b55103fb
CY
76902009-03-10 Chong Yidong <cyd@stupidchicken.com>
7691
7692 * lread.c (Feval_buffer): Doc fix.
7693
dde2559c
KH
76942009-03-09 Kenichi Handa <handa@m17n.org>
7695
7696 * charset.c (Qfile_name_handler_alist): Extern it.
7697 (load_charset_map_from_file): Temporarily bind
7698 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
7699
df4e8455 77002009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 7701
47f588bb
GM
7702 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
7703 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 7704
4ddf94bd
AR
77052009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7706
4c9bdfc2
AR
7707 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
7708 (x_set_window_size): Change back to calculated method of setting
7709 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
7710 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
7711 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
7712
fe41ae9e
AR
7713 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
7714
4c9bdfc2
AR
7715 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
7716 accelerator in parens under GNUstep.
7717
825d0875
KH
77182009-03-06 Kenichi Handa <handa@m17n.org>
7719
7720 These changes are to detect incorrect composition sequence without
f3b3be74 7721 looking ahead the source. (Bug#2370)
825d0875
KH
7722
7723 * coding.h: Include "composite.h".
7724 (enum compisition_state): New enum.
7725 (struct compisition_status): New struct.
7726 (struct iso_2022_spec): New member cmp_status.
7727 (struct emacs_mule_spec): New struct.
7728 (struct coding_system): New members ctext_extended_segment_len and
7729 embedded_utf_8. Change the union member
7730 spec.emacs_mule_full_support to spec.emacs_mule.
7731
7732 * coding.c (CODING_ISO_CMP_STATUS): New macro.
7733 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 7734 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
7735 (ADD_COMPOSITION_DATA): New arg nbytes.
7736 (emacs_mule_char): New arg cmp_status.
7737 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
7738 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
7739 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
7740 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
7741 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
7742 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
7743 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
7744 (EMACS_MULE_COMPOSITION_END): New macro.
7745 (emacs_mule_finish_composition): New function.
7746 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
7747 (decode_coding_emacs_mule): Avoid long looking ahead while
7748 handling composition.
7749 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
7750 (ENCODE_COMPOSITION_RULE): New macro.
7751 (finish_composition): New function.
7752 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
7753 (DECODE_COMPOSITION_START): New implementation.
7754 (DECODE_COMPOSITION_END): Likewise.
7755 (STORE_COMPOSITION_RULE): New macro.
7756 (decode_coding_iso_2022): Avoid long looking ahead while handling
7757 composition, CTEXT extended segment, and embedded UTF-8.
7758 (setup_coding_system): For a coding of type iso-2022, reset
7759 CODING_ISO_EXTSEGMENT_LEN (coding) and
7760 CODING_ISO_EMBEDDED_UTF_8 (coding).
7761 (get_translation): Delete arguments last_block, from_nchars,
7762 to_nchars. Callers changed.
7763 (produce_chars): Don't modify charbuf. Adjusted for the change of
7764 get_translation.
98a326f7 7765 (produce_composition): Adjust for the new annotation sequence.
825d0875 7766 (handle_composition_annotation): Likewise.
98a326f7 7767 (consume_chars): Adjust for the change of get_translation.
825d0875 7768
ccbc4452
AR
77692009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
7770
4ddf94bd 7771 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 7772
988a7ddb
KH
77732009-03-05 Kenichi Handa <handa@m17n.org>
7774
7775 * font.c (font_select_entity): New function.
7776 (font_find_for_lface): Use font_select_entity to select a font.
7777
7778 * fontset.c (fontset_find_font): If a font found without
a8a3728b 7779 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
7780 font with C restriction.
7781
98a326f7 77822009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 7783
be1bce46 7784 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 7785
10ea2b82
JR
77862009-03-04 Jason Rumney <jasonr@gnu.org>
7787
2c93b248 7788 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 7789 characters that have already been read. (Bug#2569)
2c93b248 7790
10ea2b82
JR
7791 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
7792 Log an error message if check_image_size failed.
7793 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 7794 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 7795
71a0c011
EZ
77962009-03-02 Eli Zaretskii <eliz@gnu.org>
7797
7798 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
7799 when decoding process output.
7800
2f63bba8
RS
78012009-03-01 Richard M Stallman <rms@gnu.org>
7802
7803 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
7804
7805 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
7806
0a9564cb
EZ
78072009-02-28 Eli Zaretskii <eliz@gnu.org>
7808
7809 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
7810 (decode_coding_emacs_mule, decode_coding_iso_2022)
7811 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7812 (decode_coding_raw_text, decode_coding_charset)
7813 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7814 Honor inhibit-eol-conversion. (Bug #2186)
7815
449148b3
JR
78162009-02-28 Jason Rumney <jasonr@gnu.org>
7817
7818 * coding.c (detect_coding_charset): If not checking latin extra,
7819 fail on characters between 0x80 and 0xA0. (Bug#2354)
7820
a4aee864
EZ
78212009-02-28 Eli Zaretskii <eliz@gnu.org>
7822
7823 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 7824 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 7825
d88bee5a
GM
78262009-02-27 Glenn Morris <rgm@gnu.org>
7827
7828 * callint.c (Finteractive): Doc fix.
7829
a808f22d
KH
78302009-02-27 Kenichi Handa <handa@m17n.org>
7831
7832 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7833
caf8d60c
CY
78342009-02-27 Chong Yidong <cyd@stupidchicken.com>
7835
7836 * font.c (font_style_to_value): Set value for unknown symbols to
7837 100 instead of 255.
b61137ea
CY
7838 (weight_table, slant_table, width_table): Treat "unspecified" as
7839 the default value.
caf8d60c 7840
1a0de25c
JB
78412009-02-26 Juanma Barranquero <lekktu@gmail.com>
7842
7843 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7844
8fc45744
JB
78452009-02-25 Juanma Barranquero <lekktu@gmail.com>
7846
107bd7d1
JB
7847 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7848 error as soon as a recursive load is detected.
8fc45744 7849
f097e223
AR
78502009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7851
7852 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7853 before caching.
7854
8810a12f
KH
78552009-02-24 Kenichi Handa <handa@m17n.org>
7856
7857 * fontset.c (fontset_find_font): Fix the condition for checking
7858 unavailable font.
7859
2c7d1565
GM
78602009-02-24 Glenn Morris <rgm@gnu.org>
7861
7862 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7863 whitespace that confuses documentation.
7864
a20878b6
MB
78652009-02-23 Miles Bader <miles@gnu.org>
7866
7867 * process.c (Flist_system_processes, Fprocess_attributes)
7868 (syms_of_process): Rename `system-process-attributes' to
7869 `process-attributes'.
7870
b3b58c01
AS
78712009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7872
1b3b981b
AS
7873 * coding.h (struct coding_system): Make safe_charsets a pointer to
7874 unsigned char.
7875 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7876 being 255.
7877 (SAFE_CHARSET_P): Likewise.
7878 (setup_iso_safe_charsets): Properly setup safe_charsets.
7879 (Fdefine_coding_system_internal): Likewise.
7880 (setup_coding_system): Likewise. Remove unneeded casts.
7881 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7882 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7883 unneeded casts.
7884
b3b58c01
AS
7885 * insdel.c (del_range_2): Don't modify gap contents when called
7886 from decode_coding_object. (Bug#1809)
7887
0b6f228c
CY
78882009-02-21 Chong Yidong <cyd@stupidchicken.com>
7889
7890 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7891 Qfont_object.
7892 (Ftype_of): Recognize font objects.
7893
7894 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7895
7896 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7897 moved to data.c.
7898
52f8870b
AR
78992009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7900
7901 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7902 async_iconified. Based on a patch by Christian Lynbech
7903 <christian.lynbech@tieto.com>.
7904 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7905
7087d5e9
GM
79062009-02-20 Glenn Morris <rgm@gnu.org>
7907
7908 * syntax.c (Fskip_chars_forward): Fix doc typo.
7909
41d2ceef
CY
79102009-02-20 Chong Yidong <cyd@stupidchicken.com>
7911
7912 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7913
1a3b7ca6
CY
79142009-02-19 Chong Yidong <cyd@stupidchicken.com>
7915
7916 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7917
73cce38d
KH
79182009-02-19 Kenichi Handa <handa@m17n.org>
7919
7920 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 7921 Don't overflow coding->carryover. (Bug#2370)
73cce38d 7922
a51092ee
DN
79232009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7924
7925 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7926
c423ecca
KH
79272009-02-18 Kenichi Handa <handa@m17n.org>
7928
7929 * font.c (font_check_otf_features): Fix handling of `nil' element.
7930 (Ffont_spec): Describe :lang and :otf in the docstring.
7931
4c1958f4
AS
79322009-02-16 Andreas Schwab <schwab@suse.de>
7933
7934 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7935 string.
7936
5704f39a
KH
79372009-02-16 Kenichi Handa <handa@m17n.org>
7938
7939 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 7940 (Bug#1723)
5704f39a 7941
8f0085aa
CY
79422009-02-14 Chong Yidong <cyd@stupidchicken.com>
7943
a057d86a 7944 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
7945
7946 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7947 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7948
aff01dd9
EZ
79492009-02-14 Eli Zaretskii <eliz@gnu.org>
7950
7951 * msdos.c (MAX_SCREEN_BUF): New macro.
7952 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7953 Encode the entire run of glyphs sharing the same face, instead of
7954 doing that one glyph at a time (fixes a bug with displaying
7955 double-size characters).
7956
ba301db3
AR
79572009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7958
7959 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7960
7961 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7962 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 7963 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
7964
7965 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 7966 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 7967
51d861de
SM
79682009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7969
ac146f82 7970 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
7971 invisible areas.
7972
7fed8996
JR
79732009-02-12 Jason Rumney <jasonr@gnu.org>
7974
631ea4fb
JR
7975 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7976 (add_font_entity_to_list): Call check_face_name even when family
7977 is unspecified.
7978
cb4a3e42
JR
7979 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7980 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 7981 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 7982
7fed8996 7983 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 7984 raster fonts. (Bug#2219)
7fed8996 7985
895416e3
KH
79862009-02-12 Kenichi Handa <handa@m17n.org>
7987
7988 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7989 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7990 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 7991 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7992 (find_automatic_composition): While looking forward and backward,
7993 check static composition. Fix where to stop looking forward.
7994 (composition_adjust_point): Fix checking of static composition.
7995 (Fcomposition_get_gstring): Pay attention to
1dacf998 7996 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7997
7998 * lisp.h (fast_looking_at): Extern it.
7999
8000 * search.c (fast_looking_at): New function.
8001
51d861de 8002 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8003 <struct glyph>.u.cmp.to.
8004 (append_composite_glyph): Likewise.
8005
51d861de 8006 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8007 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8008 composition.
51d861de 8009 (append_composite_glyph): Adjust for the change of
895416e3
KH
8010 <strcut glyph>.u.cmp.to.
8011
8510724d
JB
80122009-02-11 Juanma Barranquero <lekktu@gmail.com>
8013
8014 * casetab.c (init_casetab_once):
8015 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8016 * font.c (font_update_lface):
8017 * fontset.c (Fnew_fontset):
8018 * ftfont.c (ftfont_drive_otf):
8019 * xfont.c (xfont_open):
8020 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8021
294fa707
SM
80222009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8023
8024 * fileio.c (Fwrite_region): !NILP -> CONSP.
8025
b5bfebec
AS
80262009-02-10 Andreas Schwab <schwab@suse.de>
8027
8028 * process.c (send_process): Properly relocate pointer into data
adab88bd 8029 when using encoded data. (Bug#2272)
b5bfebec 8030
cb84a2be
KH
80312009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8032
8033 * coding.c (detect_coding_charset): Fix previous change.
8034
89e09428
JR
80352009-02-08 Jason Rumney <jasonr@gnu.org>
8036
8037 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8038 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8039
4470a277
AS
80402009-02-07 Andreas Schwab <schwab@suse.de>
8041
8042 * unexelf.c (unexec): Fix error message.
8043
3175b12a
AR
80442009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8045
8046 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8047 when modal window is active. (Bug #2152)
3175b12a
AR
8048 (applicationShouldTerminate:): Remove now-unneeded while loop
8049 around NSRunAlertPanel.
8050
8051 * nsmenu.m (popupSession): New file-global variable.
8052 (pop_down_menu): End the popupSession before closing dialog.
8053 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8054 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8055 don't query NSApp for events (just sleep instead).
8056
8434d0b8
EZ
80572009-02-07 Eli Zaretskii <eliz@gnu.org>
8058
51d861de
SM
8059 * coding.c (syms_of_coding) <translation-table-for-input>:
8060 Modify doc string to discourage use for character code unification.
8434d0b8 8061
aa82edfd
CY
80622009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8063
8064 * atimer.c (run_timers): Update pending_atimers.
8065
2d283c7c
CY
80662009-02-06 Chong Yidong <cyd@stupidchicken.com>
8067
eb306cab
CY
8068 * image.c (svg_load_image): Fix last change.
8069
2d283c7c
CY
8070 * xfns.c (Fx_create_frame): Signal an error if no font is
8071 found (Bug#2147).
8072
4d8e170e
JB
80732009-02-05 Juanma Barranquero <lekktu@gmail.com>
8074
8075 * character.c (syms_of_character) <script-representative-chars>:
8076 Fix typo in docstring.
8077
c96169a0
AR
80782009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8079
8080 * nsmenu.m (pop_down_menu): New function.
8081 (ns_popup_dialog): Call it on unwind.
8082 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8083 call timer_check() (Bug#2154).
8084 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8085 handling_signal is set.
8086 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8087
31fd7c5c 8088 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8089
8090 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8091
8092 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8093
51d861de
SM
8094 * keyboard.c (poll_for_input_1, handle_async_input):
8095 Set handling_signal under HAVE_NS.
c96169a0 8096
aacd8ba1
GM
80972009-02-04 Glenn Morris <rgm@gnu.org>
8098
8099 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8100
4cb75c4b
KH
81012009-02-04 Kenichi Handa <handa@m17n.org>
8102
8103 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8104
8105 * charset.c (Fchar_charset): New optional arg restriction.
8106
8107 * coding.h (coding_system_charset_list): Extern it.
8108
8109 * coding.c (coding_system_charset_list): New function.
8110
8111 * composite.c: Include coding.h and termhooks.h.
8112 (composition_gstring_p): Fix for the terminal case.
8113 (composition_gstring_width): Likewise.
8114 (fill_gstring_body): Likewise.
8115 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8116 the frame.
8117 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8118 is within a composition.
867d4bb3 8119 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8120
8121 * term.c (encode_terminal_code): Fix handling of composition.
8122 (produce_composite_glyph): For static composition, get pixel_width
8123 from struct composition.
8124
826ba17e
AS
81252009-02-02 Andreas Schwab <schwab@suse.de>
8126
8127 * unexelf.c (unexec): Handle unaligned bss offset.
8128
8ad093db
AR
81292009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8130
8131 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8132 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8133
8ad093db
AR
8134 * keyboard.c (handle_interrupt): Don't call
8135 quit_throw_to_read_char() under NS.
d0a76a6e 8136
8ad093db
AR
8137 * blockinput.h: Remove NS-specific code.
8138
4d18a7a2
DN
81392009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8140
db878925
DN
8141 * dispnew.c (window_change_signal): Don't try to get the size of a
8142 suspended tty frame.
8143 * term.c (Fresume_tty): Resize if the size has changed while the
8144 tty was suspended.
8145
4d18a7a2
DN
8146 * alloc.c (mark_stack): Properly conditionalize previous change.
8147
8984df7c
JB
81482009-01-30 Juanma Barranquero <lekktu@gmail.com>
8149
8150 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8151 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8152 Remove; this code is not used on Windows.
8153
75f4f1ac
EZ
81542009-01-30 Eli Zaretskii <eliz@gnu.org>
8155
8156 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8157 EOLs that also has stray ^M characters.
8158
07a1e794
JB
81592009-01-30 Juanma Barranquero <lekktu@gmail.com>
8160
8161 * atimer.c (run_timers, alarm_signal_handler):
8162 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8163 * w32inevt.c (w32_console_read_socket):
8164 * w32term.c (w32_read_socket):
8165 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8166
a8b11cc9
CY
81672009-01-30 Chong Yidong <cyd@stupidchicken.com>
8168
8169 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8170 Initialize it as a relative filename pattern.
8171 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8172 (Fcall_process_region): Simplify temp file creation using
8173 temporary-file-directory.
8174
c279587b
EZ
81752009-01-29 Eli Zaretskii <eliz@gnu.org>
8176
8177 * msdos.c: Rename pending_signals to msdos_pending_signals.
8178 (sig_suspender, sigprocmask): Adjust.
8179
a8fe3242
CY
81802009-01-29 Chong Yidong <cyd@stupidchicken.com>
8181
8182 * keyboard.c (pending_signals): New var.
8183 (poll_for_input, input_available_signal, init_keyboard): Set it.
8184 (process_pending_signals): New function.
8185
8186 * lisp.h (QUIT): Check pending_signals instead of
8187 interrupt_input_pending. Use process_pending_signals.
8188
51d861de 8189 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8190
51d861de 8191 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8192
8193 * sysdep.c (emacs_write): Use process_pending_signals.
8194
8195 * xterm.c (XTread_socket): Update pending_signals.
8196
8197 * w32term.c (w32_read_socket): Update pending_signals.
8198
8199 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8200
6570a1c4
KH
82012009-01-29 Kenichi Handa <handa@m17n.org>
8202
8203 * xftfont.c (xftfont_has_char): New function.
8204 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8205
d72a4afa
AR
82062009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8207
8208 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8209 under GNUstep.
8210 (ns_query_color): New declaration.
8211
8212 * nsterm.m (ns_confirm_quit): New variable.
8213 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8214 (EmacsApp-applicationShouldTerminate:): Use it.
8215 (EmacsPrefsController): Let user set it.
8216 (ns_query_color): New function.
8217 (ns_defined_color): Use it.
8218 (ns_initialize): Drop.
8219 (ns_term_init): Add two lines from ns_initialize(), and set
8220 input_interrupt_mode to nil.
8221
8222 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8223 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8224
9fe78804
KH
82252009-01-28 Kenichi Handa <handa@m17n.org>
8226
8227 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8228 (fontset_get_font_group): Remember that no font-group is specified
8229 for C.
9fe78804 8230
fa57de36
CY
82312009-01-27 Chong Yidong <cyd@stupidchicken.com>
8232
930600e9
CY
8233 * fns.c (concat): Check for string overflow (bug#1787).
8234
fa57de36
CY
8235 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8236 Quadruple undo limits (bug#1501).
8237
7179ce7b
KH
82382009-01-27 Kenichi Handa <handa@m17n.org>
8239
8240 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8241 directly use GT_Get_Char_index.
8242
8243 * xftfont.c (struct xftfont_info): New member `index'.
8244
8245 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8246 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8247
5be8fcc0
CY
82482009-01-26 Kenichi Handa <handa@m17n.org>
8249
8250 * fontset.c (fontset_find_font): Fix handling of non-cons return
8251 value of fontset_get_font_group.
8252 (fontset_font): Revert last change.
8253
19ae3e61
JR
82542009-01-26 Jason Rumney <jasonr@gnu.org>
8255
8256 * w32font.c (w32font_list_internal): Return quickly if registry is
8257 unknown. Simplify final return.
8258 (add_font_entity_to_list): Break complex logic down into more
8259 manageable chunks. Move unknown registry check to
8260 w32font_list_internal.
8261
8612b71a
AR
82622009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8263
8264 Changes to remove Feval calls from GUI under NS.
8265
d8038940
JB
8266 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8267 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8268 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8269
8270 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8271 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8272 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8273 instead of NON_ASCII_KEYSTROKE_EVENT.
8274 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8275 (EmacsApp-applicationShouldTerminate:): Query user.
8276 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8277 instead of Feval.
8278
8279 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8280
8281 * keyboard.c (kbd_buffer_get_event): Check for it.
8282 (keys_of_keyboard): Define lispy keys for
8283 ns-put/unput-working-text.
8284
8285 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8286 versions.
8287 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8288
6288ae55
CY
82892009-01-25 Chong Yidong <cyd@stupidchicken.com>
8290
8291 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8292 setting current_buffer directly. (Bug#2044)
6288ae55 8293
289e7f8f
CY
82942009-01-24 Chong Yidong <cyd@stupidchicken.com>
8295
5ce87308 8296 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8297 any work. (Bug#1952, bug#1990).
5ce87308 8298
64cc3cf6 8299 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8300
b3243e6f
AR
83012009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8302
8303 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8304 (ns_no_defaults): New declaration.
8305 (main): Use it.
e0d2e69a 8306
d900b2af 8307 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8308
d900b2af 8309 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8310
d900b2af
AR
8311 * nsterm.m (ns_no_defaults): New variable.
8312 (ns_initialize): Don't read defaults when ns_no_defaults.
8313 (EmacsView-readSelectionFromPasteboard:)
8314 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8315 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8316 (ns_dumpglyphs_stretch): New function.
8317 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8318 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8319
e0d2e69a
AR
8320 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8321
3ac71f5d
CY
83222009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8323
8324 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8325 call for Sparc64.
8326
3fe53a83
AR
83272009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8328
8329 * nsfns.m:
8330 * nsgui.h:
8331 * nsmenu.m:
8332 * nsselect.m:
8333 * nsterm.h:
8334 * nsterm.m: Remove '23' comments that indicated code added during
8335 update from emacs-20 -> emacs-23.
8336
10f87c6f 83372009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
8338
8339 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 8340 ns_alternate_modifier. (Bug#1217)
a3b53a85 8341
c7cef62d
AR
8342 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8343 Display all shortcuts, including those w/o super modifier.
8344
575fb8bd
AR
8345 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8346
918b848b
CY
83472009-01-22 Chong Yidong <cyd@stupidchicken.com>
8348
8349 * fileio.c (Vwrite_region_post_annotation_function)
8350 (Vwrite_region_annotation_buffers): New vars.
8351 (build_annotations_unwind): Just reset
8352 Vwrite_region_annotation_buffers.
8353 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8354 Call write-region-post-annotation-function.
8355 (build_annotations): Add to Vwrite_region_annotation_buffers if
8356 buffer changes.
8357
a39e2539
AR
83582009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8359
8360 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8361 Tiger.
51d861de
SM
8362 * nsfns.m (ns_do_applescript):
8363 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8364
35ed44db
AR
83652009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8366
8367 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8368
cbe0b5bf
AR
83692009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8370
8371 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8372
6049d3a0
AR
8373 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8374
8375 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8376 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8377 handle Ctrl-tab. (Bug#1841)
8378 (ns_get_color): Use unsigned long long for scanned hex string value.
8379 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8380 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8381 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8382 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8383 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8384 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8385 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8386
d3810c21 8387 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8388 DPI. (Bug#1316)
d3810c21
AR
8389 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8390 values in onTiger section.
4c7077c3 8391
e301e634
CY
83922009-01-19 Chong Yidong <cyd@stupidchicken.com>
8393
7f82490b
CY
8394 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8395 Check return value of font_spec_from_name.
64cc3cf6 8396 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8397
8398 * font.c (font_spec_from_name): Return Qnil if font name could not
8399 be parsed.
8400 (font_parse_name): Treat a `?' character as part of an XLFD.
8401
e301e634
CY
8402 * fns.c (Fsubstring): Doc fix.
8403
1c0db158
KH
84042009-01-19 Kenichi Handa <handa@m17n.org>
8405
51d861de 8406 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
8407 (ftfont_list): Likewise.
8408
acf20901
JB
84092009-01-18 Juanma Barranquero <lekktu@gmail.com>
8410
fff4e459
JB
8411 * dbusbind.c (Fdbus_register_signal):
8412 * process.c (conv_sockaddr_to_lisp):
8413 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8414
acf20901
JB
8415 * callproc.c (Fgetenv_internal): Doc fix.
8416
e7abcdfb
CY
84172009-01-16 Chong Yidong <cyd@stupidchicken.com>
8418
8419 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8420 it is not even used.
8421
b60861e6
GM
84222009-01-16 Glenn Morris <rgm@gnu.org>
8423
8424 * font.c (Ffont_variation_glyphs): Silence compiler.
8425
8db52afe
JB
84262009-01-15 Juanma Barranquero <lekktu@gmail.com>
8427
8428 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8429 Reported by David Robinow <drobinow@gmail.com>.
8430
4cddb209
KH
84312009-01-15 Kenichi Handa <handa@m17n.org>
8432
51d861de 8433 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 8434
f247f67b
JR
84352009-01-14 Jason Rumney <jasonr@gnu.org>
8436
8437 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 8438 never a fontset. (Bug#1562)
f247f67b 8439
f56a4450
KH
84402009-01-14 Kenichi Handa <handa@m17n.org>
8441
8442 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 8443 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 8444
4e99855e
CY
84452009-01-13 Chong Yidong <cyd@stupidchicken.com>
8446
8447 * font.c (font_clear_prop): If clearing the family, clear the font
8448 width index too.
8449
fff4e459 8450 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 8451
24f01470
JB
84522009-01-12 Juanma Barranquero <lekktu@gmail.com>
8453
8454 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8455 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8456 functions, use sizeof.
8457
a41240a3
MR
84582009-01-12 Martin Rudalics <rudalics@gmx.at>
8459
8460 * keyboard.c (read_char): Fix case where last_nonmenu_event
8461 returned a bad value with submenus. (Bug#447)
8462
944636b8
CY
84632009-01-12 Chong Yidong <cyd@stupidchicken.com>
8464
8465 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8466 family, clear the font width index too.
8467
0dad7c6f
JR
84682009-01-11 Jason Rumney <jasonr@gnu.org>
8469
8470 * keyboard.c (cmd_error_internal): Exit when errors occur before
8471 frame creation and not in daemon mode. (Bug#1836)
8472
7c2363af
CY
84732009-01-10 Chong Yidong <cyd@stupidchicken.com>
8474
8475 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8476 of a display vector, backtrack.
8477 (try_window_reusing_current_matrix): Check glyph type before
8478 referencing charpos member.
8479
97b1b294
EZ
84802009-01-10 Eli Zaretskii <eliz@gnu.org>
8481
8482 Fix Bug #876:
8483
8484 * coding.c (inhibit_null_byte_detection): New variable.
8485 (detect_coding, detect_coding_system): Don't pay attention to null
8486 bytes if inhibit_null_byte_detection is non-zero.
51d861de 8487 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
8488 <inhibit-iso-escape-detection>: Doc fix.
8489
4624b6e3
JR
84902009-01-09 Jason Rumney <jasonr@gnu.org>
8491
8492 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 8493 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
8494 Only report Unicode Plane 2 fonts as unicode-sip.
8495
323b840c
CY
84962009-01-09 Chong Yidong <cyd@stupidchicken.com>
8497
51d861de
SM
8498 * xfaces.c (Fx_font_family_list): Delete function.
8499 Move compatibility version to faces.el.
323b840c 8500
51d861de 8501 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 8502
eba7400d
MR
85032009-01-09 Martin Rudalics <rudalics@gmx.at>
8504
8505 * frame.c (x_set_frame_parameters): Remember requested value for
8506 fullscreen before it's reset by the parameter handler.
8507
4b09796d
GM
85082009-01-09 Glenn Morris <rgm@gnu.org>
8509
8510 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 8511 (last_command_event): ... and update all users.
4b09796d
GM
8512 (last_input_char): For clarity, rename to...
8513 (last_input_event): ... and update all users.
8514 (last-command-char, last-input-char): Move to subr.el as aliases.
8515 * cmds.c, commands.h: Update for last_command_char rename.
8516
14ccea62
CY
85172009-01-08 Chong Yidong <cyd@stupidchicken.com>
8518
51d861de 8519 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 8520
5f004711
JR
85212009-01-08 Jason Rumney <jasonr@gnu.org>
8522
8523 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
8524 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
8525 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
8526 Don't declare.
fff4e459 8527 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
8528 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
8529
b71f6f73
KH
85302009-01-07 Kenichi Handa <handa@m17n.org>
8531
50b06221 8532 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 8533 remember the coding system used for decoding in
50b06221
KH
8534 coding_system (Bug#1039).
8535
b71f6f73 8536 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 8537 breaking the loop. (Bug#870)
b71f6f73
KH
8538 (decode_coding_utf_16, decode_coding_emacs_mule)
8539 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8540 (decode_coding_charset): Likewise.
8541
56f668f7
MR
85422009-01-05 Martin Rudalics <rudalics@gmx.at>
8543
8544 * frame.c (x_set_frame_parameters): Make sure height (width) get
8545 applied when fullwidth (fullheight) is set. (Bug#1522)
8546
5da9424d
JB
85472009-01-04 Juanma Barranquero <lekktu@gmail.com>
8548
8549 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8550 (utc_base): Declare as ULONGLONG, not long double.
8551 (convert_time_raw): Delete.
8552 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8553 (initialize_utc_base): New function.
8554 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8555 (convert_from_time_t): Use initialize_utc_base; compute result with
8556 64-bit arithmetic.
8557 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8558
c4605e09
EZ
85592009-01-03 Eli Zaretskii <eliz@gnu.org>
8560
9acef61c 8561 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
8562 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8563 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8564 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8565 [!subprocesses]: Define.
8566 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8567 (Flist_system_processes, Fsystem_process_attributes)
8568 [!subprocesses]: Call list_system_processes and
8569 system_process_attributes instead of returning Qnil.
8570
9acef61c
JB
8571 * dosfns.c (system_process_attributes, list_system_processes):
8572 New functions.
c4605e09
EZ
8573
8574 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8575
8576 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8577 Don't use the default (no-op) implementation.
8578
8b7d0a16
JR
85792009-01-03 Jason Rumney <jasonr@gnu.org>
8580
a6d46bc1
JR
8581 * keyboard.c (parse_modifiers_uncached): Wheel events are
8582 clicks (bug#687).
8583
8b7d0a16
JR
8584 * w32term.c (x_query_colors, x_query_color): New functions.
8585
8586 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8587 (svg_load_image): Cast returned pointers from dynamically loaded
8588 functions. Eliminate W32 specific code.
8589
bfe11752
DN
85902009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8591
89e2438a
DN
8592 * nsfns.m (x_set_foreground_color, x_set_background_color)
8593 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8594 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8595 x_ prefix instead of ns_. Update references.
8596 (syms_of_nsfns): Add a FIXME comment.
8597
8598 * nsterm.m (x_set_cursor_type): New prototype.
8599 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8600
bfe11752
DN
8601 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8602 for Solaris instead of incorrectly providing Qutime and Qcutime.
8603
031da700
EZ
86042009-01-02 Eli Zaretskii <eliz@gnu.org>
8605
8606 * w32.c (process_times): Compute sum of utime and stime.
8607 (system_process_attributes): Add Qtime to the alist.
8608
8609 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8610 and add them to the alist.
8611
8612 * process.c (top level) <Qtime, Qctime>: New variables.
8613 (syms_of_process): staticpro them.
8614 (Fsystem_process_attributes): Add their documentation to the doc
8615 string.
8616
8617 * process.h: Declare Qtime and Qctime.
8618
df23bf08
JR
86192009-01-02 Jason Rumney <jasonr@gnu.org>
8620
9acef61c 8621 * image.c (Qgobject): New symbol.
df23bf08
JR
8622 (syms_of_image): Initialize it.
8623 (init_svg_functions): Load some functions from gobject library.
8624
5bbdf7aa
DN
86252009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8626
8627 * frame.c (make_terminal_frame): Remove redundant code and useless
8628 block.
8629
63136da6
AS
86302009-01-01 Andreas Schwab <schwab@suse.de>
8631
8632 * process.c (conv_sockaddr_to_lisp): Add workaround for
8633 getsockname bug on BSD.
8634
9ef69046
CY
86352009-01-01 Chong Yidong <cyd@stupidchicken.com>
8636
d6fafbe0
CY
8637 * xfns.c (x_create_tip_frame): Set border width of the X window.
8638
51d861de 8639 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 8640
f9c34147
JR
86412009-01-01 Jason Rumney <jasonr@gnu.org>
8642
9acef61c 8643 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
8644 Don't block input, as per earlier xterm.c changes.
8645
f5497e45
AR
86462008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8647
8648 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8649 (ns_appkit_version_int): New function.
8650 (x-server-version): Use ns_appkit_version_int and follow 21+
8651 convention of returning 3 integers.
8652
c19cab20
KH
86532008-12-30 Kenichi Handa <handa@m17n.org>
8654
8655 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
8656 (CHAR_SURROGATE_PAIR_P): New macro.
8657
8658 * font.h (struct font_driver): New member get_variation_glyphs.
8659
9acef61c 8660 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
8661 (Ffont_variation_glyphs): New function.
8662 (syms_of_font): Defsubr it.
8663
8664 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
8665 ftfont_variation_glyphs.
8666 (setup_otf_gstring): New function.
8667 (ftfont_drive_otf): Use it.
8668 (ftfont_shape_by_flt): Handle variation selector.
8669 (ftfont_variation_glyphs): New function.
8670
28cd591f
MR
86712008-12-30 Martin Rudalics <rudalics@gmx.at>
8672
8673 * frame.c (Vemacs_iconified): Remove.
8674
7f714baf
JR
86752008-12-30 Jason Rumney <jasonr@gnu.org>
8676
8677 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 8678 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 8679
9d2d22ab
CY
86802008-12-30 Chong Yidong <cyd@stupidchicken.com>
8681
8682 * indent.c (Fvertical_motion): Don't advance iterator if we have
8683 reseated to the desired position.
8684
8685 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
8686 checking for pos match.
8687
545312c2
KH
86882008-12-30 Kenichi Handa <handa@m17n.org>
8689
1ede3eb6
KH
8690 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
8691 just get the low 8-bit of the code.
8692
545312c2
KH
8693 * font.c (font_intern_prop): Validate str as multibyte.
8694
bd7bbf29
DN
86952008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8696
31e0750e
DN
8697 * dispextern.h (struct face): Move lface and hash from the middle
8698 of bitfields.
8699
bd7bbf29
DN
8700 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
8701
b5672e7c
DN
87022008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8703
8704 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
8705 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
8706 instead of intervals.h.
8707
d704470f
AS
87082008-12-26 Andreas Schwab <schwab@suse.de>
8709
8710 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
8711 cons.
8712
54b33868
MR
87132008-12-26 Martin Rudalics <rudalics@gmx.at>
8714
8715 * textprop.c (Qminibuffer_prompt): New variable.
8716 (syms_of_textprop): Initialize it.
8717 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
8718 in minibuffer-prompt face. (Bug#1662)
8719
40b615d6
JR
87202008-12-25 Jason Rumney <jasonr@gnu.org>
8721
8722 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
8723
baae5c2d
JR
87242008-12-24 Jason Rumney <jasonr@gnu.org>
8725
8726 * ralloc.c (r_alloc_reset_variable): New function.
8727
8728 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 8729 record of what points where. (Bug#716)
baae5c2d 8730
a9051c88
DN
87312008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
8732
8733 * minibuf.c (read_minibuf): Follow the non-interactive case when
8734 running as a daemon, before detaching.
8735
8b146312
AS
87362008-12-22 Andreas Schwab <schwab@suse.de>
8737
8738 * buffer.c (init_buffer): Use realloc instead of xrealloc.
8739 * gtkutil.c (free_widget_value): Use xfree instead of free.
8740
56f2de10
MR
87412008-12-22 Martin Rudalics <rudalics@gmx.at>
8742
8743 * frame.c (delete_frame): New function derived from
8744 Fdelete_frame to handle Qnoelisp value for FORCE argument.
8745 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
8746 (Fdelete_frame): Call delete_frame. Remove line from doc-string
8747 saying that FORCE non-nil doesn't run `delete-frame-functions'.
8748 * frame.h: Extern delete_frame.
8749 * window.c (window_loop):
8750 * terminal.c (delete_terminal):
8751 * xterm.c (x_connection_closed):
8752 * xfns.c (Fx_hide_tip):
9acef61c 8753 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 8754
1fc200d6
JR
87552008-12-21 Jason Rumney <jasonr@gnu.org>
8756
8757 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
8758 when character maps to .notdef character.
8759
5e252df2
SM
87602008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
8761
8762 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
8763
99b72cc4
JR
87642008-12-20 Jason Rumney <jasonr@gnu.org>
8765
8766 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 8767 a graphical frame on Windows. (Bug#1325)
99b72cc4 8768
acc49a52
JD
87692008-12-20 Jan Djärv <jan.h.d@swipnet.se>
8770
8771 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
8772
6ea15123
CY
87732008-12-20 Chong Yidong <cyd@stupidchicken.com>
8774
8775 * minibuf.c (Fread_buffer): Doc fix.
8776
b2dab6c8
JR
87772008-12-20 Jason Rumney <jasonr@gnu.org>
8778
54ea0c87 8779 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 8780 server name in UNC paths. (Bug#719)
54ea0c87 8781
b2dab6c8 8782 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 8783 charbuf. (Bug#1035)
b2dab6c8 8784
6d1921be
DN
87852008-12-19 Daniel Engeler <engeler@gmail.com>
8786
8787 * sysdep.c (serial_configure): Fix typo.
8788
53934c98
DN
87892008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8790
8791 * sysdep.c: Include alloca.h.
f4f634e8
DN
8792 (system_process_attributes): Add implementation for Solaris.
8793
8794 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 8795
06e111a6
DN
87962008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8797
8798 Reorganize implementation of Flist_system_processes and
8799 Fsystem_process_attributes. No functional changes.
8800 * process.c: Don't #include pwd.h, grp.h and limits.h.
8801 (Flist_system_processes): Just call list_system_processes.
8802 (Fsystem_process_attributes): Just call system_process_attributes.
8803 (procfs_list_system_processes, time_from_jiffies)
8804 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8805 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
8806
8807 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
8808 (list_system_processes): Rename from
8809 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
8810 Provide a do nothing implementation.
8811 (system_process_attributes): Rename from
8812 procfs_list_system_processes.
8813 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 8814 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
8815
8816 * w32.c (list_system_processes): Rename from
8817 w32_list_system_processes.
8818 (system_process_attributes): Rename from
8819 w32_system_process_attributes.
8820
8821 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8822
8823 * process.h (w32_list_system_processes)
8824 (w32_system_process_attributes): Remove.
362654a6
JB
8825 (list_system_processes, system_process_attributes):
8826 New prototypes.
06e111a6 8827
6a705b23
KH
88282008-12-19 Kenichi Handa <handa@m17n.org>
8829
8830 * xfont.c (xfont_decode_coding_xlfd): New function.
8831 (xfont_encode_coding_xlfd): New function.
8832 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8833 (xfont_list): Decode and encode XLFD by iso-8859-1.
8834 (xfont_match): Likewise.
8835 (xfont_list_family): Likewise.
8836 (xfont_open): Likewise.
8837
d66c0241 8838 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
8839 names are utf-8.
8840
d66c0241 8841 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
8842 names are utf-8.
8843
5a130941
JD
88442008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8845
8846 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8847 changed.
bfd20325
JD
8848 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8849 clicked on a detached tool bar button.
5a130941 8850
fd95644b
DN
88512008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8852
8853 * emacs.c (main): Print and error and exit when no data is read
8854 from the pipe.
8855
e6eee6ae
JR
88562008-12-17 Jason Rumney <jasonr@gnu.org>
8857
8858 * w32font.c (w32font_has_char): Always return -1.
8859
a35dd56b
KH
88602008-12-16 Kenichi Handa <handa@m17n.org>
8861
8862 * font.c (font_open_entity): Fix previous change.
8863
0e3635c2
DN
88642008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8865
8866 * process.c: Include <limits.h>.
8867
d4835507 88682008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
8869
8870 * font.c (font_update_drivers): Fix mistake in reconstructing the
8871 driver list.
8872
88732008-12-16 Chong Yidong <cyd@stupidchicken.com>
8874
8875 * font.c (font_clear_cache): Fix format of font cache data.
8876
e2cbc401
CY
88772008-12-15 Chong Yidong <cyd@stupidchicken.com>
8878
8879 * xftfont.c (xftfont_open): Free Xft font pattern if
8880 XftFontOpenPattern fails.
8881
8882 * xterm.c (x_free_frame_resources): Remove extraneous call to
8883 free_frame_faces.
8884
b131d535
CY
88852008-12-13 Chong Yidong <cyd@stupidchicken.com>
8886
8887 * xterm.c (x_delete_display): Move xim_close_dpy call to
8888 x_delete_terminal.
8889 (x_delete_terminal): Call xim_close_dpy.
8890
e6df5336
JR
88912008-12-13 Jason Rumney <jasonr@gnu.org>
8892
8893 * w32font.c (intern_font_name): New function.
8894 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8895 (w32font_open_internal, Fx_select_font): Decode font name.
8896 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8897
8898 * w32font.h (intern_font_name): Declare new function.
8899
8900 * w32uniscribe.c (add_opentype_font_name_to_list):
8901 Use intern_font_name.
8902
20d68145
CY
89032008-12-13 Chong Yidong <cyd@stupidchicken.com>
8904
9f2554de
CY
8905 * frame.c (Fdelete_frame): Call free_font_driver_list.
8906
3d9bec9a
CY
8907 * font.c (free_font_driver_list): Implement missing function.
8908
20d68145
CY
8909 * w32term.c (w32_term_init): Don't initialize the image cache
8910 here; it will be done in init_frame_faces.
8911
8912 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8913 (struct x_display_info): Remove unused member null_pixel. New
8914 member xim_callback_data.
8915
8916 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8917 (xim_initialize): Save pointer to callback function data.
8918 (xim_close_dpy): Free callback function data. Call XCloseIM,
8919 reverting 2008-11-04 change by David Smith.
8920 (x_term_init): Don't initialize the image cache here; it will be
8921 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8922 (x_delete_display): Free x_dnd_atoms member.
8923
96f9306b
KH
89242008-12-13 Kenichi Handa <handa@m17n.org>
8925
6dec9044
JB
8926 * font.c (font_rescale_ratio): Moved from xfaces.c.
8927 Argument type changed. Handle a font-spec too.
96f9306b 8928 (font_score): Check Vface_font_rescale_alist.
6dec9044 8929 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
8930
8931 * xfaces.c (font_rescale_ratio): Moved to font.c.
8932
8d5b4964
CY
89332008-12-13 Chong Yidong <cyd@stupidchicken.com>
8934
8935 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8936
e6df5336
JR
89372008-12-12 Jason Rumney <jasonr@gnu.org>
8938
8939 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8940 Vwindow_system_version to the real w32 major version.
8941
97c6058a
DN
89422008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8943
8944 * term.c (init_tty): Move setting the terminal name before the
8945 potential user: maybe_fatal.
8946
ec4e88d7
CY
89472008-12-11 Chong Yidong <cyd@stupidchicken.com>
8948
d4835507
JB
8949 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8950 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 8951
b4233ec9
JR
89522008-12-11 Jason Rumney <jasonr@gnu.org>
8953
8ec71e23 8954 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 8955 SYMBOL_CHARSET. (Bug#547)
8ec71e23 8956
b4233ec9 8957 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 8958 size for surrogates. (Bug#1096, bug#872)
b4233ec9 8959
011a0143
JB
89602008-12-11 Juanma Barranquero <lekktu@gmail.com>
8961
8962 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8963
3c309f34
JB
89642008-12-11 Juanma Barranquero <lekktu@gmail.com>
8965
8966 * process.c (Fsystem_process_attributes, syms_of_process):
8967 Fix typo in name of Ssystem_process_attributes.
8968 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8969
fedc6ab5
JB
89702008-12-11 Juanma Barranquero <lekktu@gmail.com>
8971
8972 * syntax.c (Fmodify_syntax_entry): Doc fix.
8973
ba3de0e8
JB
89742008-12-10 Juanma Barranquero <lekktu@gmail.com>
8975
8976 * font.c (Ffont_spec): Move usage to end of docstring.
8977
174f1c74
JR
89782008-12-10 Jason Rumney <jasonr@gnu.org>
8979
8980 * w32font.c (Qcham): New symbol.
8981 (font_supported_scripts): Add cham, and comments for other new
8982 scripts in bitfield from OpenType spec.
9d32f818
JR
8983 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8984 contain characters beyond the bmp.
174f1c74 8985
7b649478
KH
89862008-12-10 Kenichi Handa <handa@m17n.org>
8987
8988 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 8989 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
8990 Qunicode_sip.
8991
2133e2d1
JB
89922008-12-10 Juanma Barranquero <lekktu@gmail.com>
8993
8994 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8995 (Fcoding_system_put): Use QCdefault_char.
8996 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8997
9af886ee
CY
89982008-12-09 Chong Yidong <cyd@stupidchicken.com>
8999
74d819eb
CY
9000 * xftfont.c (syms_of_xftfont): Fix typo.
9001
4ccfa1c0 9002 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9003
7c19d3ae
DN
90042008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9005
9006 * emacs.c (main): Close daemon_pipe on exec.
9007
567826bb
CY
90082008-12-08 Chong Yidong <cyd@stupidchicken.com>
9009
9010 * termchar.h (struct tty): New members termcap_term_buffer and
9011 termcap_strings_buffer.
9012
9013 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9014 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9015 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9016 All callers changed.
9017 (init_tty): Store termcap data and string buffers in new struct
9018 tty members termcap_term_buffer and termcap_strings_buffer.
9019 (delete_tty): Free them.
4ccfa1c0 9020 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9021
aa96c42b
SZ
90222008-12-07 Seiji Zenitani <zenitani@mac.com>
9023
9024 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9025 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9026
b7e1d896
CY
90272008-12-06 Chong Yidong <cyd@stupidchicken.com>
9028
9029 * coding.c (make_conversion_work_buffer): Disable buffer
9030 modification hooks in the work buffer.
9031
b5ec91a5
EZ
90322008-12-05 Eli Zaretskii <eliz@gnu.org>
9033
9034 * process.c (procfs_system_process_attributes): If `nread' has a
9035 negative value, assign zero to it.
9036
a5d2a52b
CY
90372008-12-05 Chong Yidong <cyd@stupidchicken.com>
9038
68c5540b 9039 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9040
7bf1bb21
KH
90412008-12-05 Kenichi Handa <handa@m17n.org>
9042
9043 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9044 second character is a combining character.
9045
2fdc7d00
EZ
90462008-12-05 Eli Zaretskii <eliz@gnu.org>
9047
9048 * process.c (procfs_system_process_attributes): Don't use cmd,
9049 cmdsize, and q without initializing them first.
9050
bf6bfba8
JR
90512008-12-04 Jason Rumney <jasonr@gnu.org>
9052
9053 * w32font.c (w32font_draw): Initialize orig_clip before getting
9054 it, and delete it when finished.
9055
a3b1a468
DN
90562008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9057
9058 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9059 case when running as a daemon before detaching.
9060
8b8be8eb
JB
90612008-12-03 Juanma Barranquero <lekktu@gmail.com>
9062
805f2638 9063 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9064
b1bde622
KH
90652008-12-03 Kenichi Handa <handa@m17n.org>
9066
e500c47d
KH
9067 * font.c (font_at): Set `multibyte' at first.
9068
ca516334
KH
9069 * coding.c (decode_coding_charset): Check type of an element of
9070 vector VALIDS.
7bf1bb21 9071 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9072
4ccfa1c0 9073 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9074 (font_for_char): Likewise.
9075
1e5ecd37
CY
90762008-12-03 Chong Yidong <cyd@stupidchicken.com>
9077
d5b01609 9078 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9079 (font_update_lface): Handle fonts with corrupted size specs,
9080 i.e. non-int and non-float.
d5b01609 9081
11e3a6e4 9082 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9083 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9084 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9085
ab06788b
CY
9086 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9087
1e5ecd37 9088 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9089 underline_minimum_offset for underline position.
1e5ecd37 9090
63c125ab
DN
90912008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9092
9093 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9094
9095 * character.c (c_string_width): Specify the type for LEN.
9096
3a8406e1
KH
90972008-12-03 Kenichi Handa <handa@m17n.org>
9098
4ccfa1c0 9099 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9100 (decode_coding_utf_8): Likewise.
4ccfa1c0 9101 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9102 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9103
651df7d9
CY
91042008-12-02 Chong Yidong <cyd@stupidchicken.com>
9105
9106 * keyboard.c (make_lispy_position): Only use PT if the selected
9107 window is current.
9108
1f625c6c
AS
91092008-12-02 Andreas Schwab <schwab@suse.de>
9110
f7741ce9
AS
9111 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9112
1f625c6c
AS
9113 * doprnt.c (doprnt1): Fix size of charbuf.
9114
92bc2678
CY
91152008-12-02 Chong Yidong <cyd@stupidchicken.com>
9116
9117 * keyboard.c (timer_check): Revert last change.
9118
93b9e8cc
JB
91192008-12-02 Juanma Barranquero <lekktu@gmail.com>
9120
9121 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9122
fd7a37d5
JB
91232008-12-01 Juanma Barranquero <lekktu@gmail.com>
9124
9125 * makefile.w32-in: Update dependencies.
9126 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9127
c115043b
AS
91282008-12-01 Andreas Schwab <schwab@suse.de>
9129
9130 * font.c (register_font_driver): Use xmalloc.
9131 (font_put_frame_data): Likewise.
9132
f5668d2a
CY
91332008-12-01 Chong Yidong <cyd@stupidchicken.com>
9134
860d96be
CY
9135 * xfaces.c (realize_x_face): Make abort condition clearer.
9136
f5668d2a
CY
9137 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9138
379c17e7
CY
91392008-11-30 Chong Yidong <cyd@stupidchicken.com>
9140
9141 * keyboard.c (timer_check): After a timer runs, ensure that the
9142 selected window's buffer is current.
9143
35f36d65
JB
91442008-11-30 Juanma Barranquero <lekktu@gmail.com>
9145
f952c61c
JB
9146 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9147 It was accidentally restored by the Unicode merge.
9148
35f36d65
JB
9149 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9150
b23077df
JB
91512008-11-29 Juanma Barranquero <lekktu@gmail.com>
9152
9153 * w32proc.c: Include "coding.h".
9154 (Fw32_short_file_name): Encode filename passed to Windows API.
9155 (Fw32_long_file_name): Encode filename passed to Windows API and
9156 decode back the result. (Bug#1433)
9157
b8ebe9dd
KH
91582008-11-29 Kenichi Handa <handa@m17n.org>
9159
8cc53f96
KH
9160 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9161 not before accessing it.
9162
b8ebe9dd
KH
9163 * charset.c (Fdefine_charset_internal): After calculating
9164 min_char, max_char, and fastmap, copy the charset structure again.
9165 (encode_char): Fix the previous change.
9166
59bc82c0
SZ
91672008-11-28 Seiji Zenitani <zenitani@mac.com>
9168
9169 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9170
9171 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9172
9173 * nsterm.m (x_set_frame_alpha): New function.
9174
32247e3d
EZ
91752008-11-27 Eli Zaretskii <eliz@gnu.org>
9176
9177 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9178
b003e5ff
JB
91792008-11-27 Juanma Barranquero <lekktu@gmail.com>
9180
9181 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9182 pointer to check_face_name.
9183
708550f5
KH
91842008-11-27 Kenichi Handa <handa@m17n.org>
9185
9186 * category.h (SET_CATEGORY_SET): Call set_category_set.
9187 (set_category_set): Extern it.
9188
9189 * category.c (hash_get_category_set): New function.
9190 (Fmodify_category_entry): Adjusted for the change of
9191 char_table_ref_and_range. Call hash_get_category_set to get a
9192 category set to store in the table.
9193
9194 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9195 Funify_charset.
9196
2ae37cf0 9197 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9198 (DECODE_CHAR): Check if the decoder vector is ready.
9199 (ENCODE_CHAR): Check if the encoder char-table is ready.
9200 (maybe_unify_char): Extern it.
9201
9202 * charset.c (Vchar_unified_charset_table): Delete it.
9203 (inhibit_load_charset_map): New variable.
9204 (temp_charset_work): New variable.
9205 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9206 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9207 New macros.
9208 (load_charset_map): Meaning of control_flag changed. If
9209 inhibit_load_charset_map is nonzero, setup a table in
9210 temp_charset_work.
9211 (load_charset): New argument control_flag.
9212 (map_charset_for_dump): New function.
9213 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9214 map_charset_for_dump.
9215 (Fdefine_charset_internal): If the charset method is MAP, load
9216 mapping tables by calling load_charset.
9217 (Funify_charset): Don't load a mapping table but directly set
9218 Vchar_unify_table.
9219 (maybe_unify_char): New function.
9220 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9221 Handle the case of inhibit_load_charset_map being nonzero.
9222 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9223 Handle the case of inhibit_load_charset_map being nonzero.
9224 (Fclear_charset_maps): Just free temp_charset_work.
9225 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9226 variable.
9227
9228 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9229 change of char_table_ref_and_range.
9230 (char_table_ref_and_range): Change the meaning of argument FROM
9231 and TO. Now the caller must provide initial values for *FROM
9232 and *TO.
9233
9234 * fontset.c (fontset_add): Adjusted for the change of
9235 char_table_ref_and_range.
9236 (fontset_get_font_group): Likewise.
9237 (Ffontset_info): Likewise.
9238
9239 * keymap.c (describe_vector): Adjusted for the change of
9240 char_table_ref_and_range. For char-table, put boundary between
9241 non-ASCII and 8-bit characters.
9242
9243 * print.c (print_object): For bool-vector, delete unnecessary
9244 check of ASCII_BYTE_P.
9245
9196133b
JR
92462008-11-26 Jason Rumney <jasonr@gnu.org>
9247
9248 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9249 leading in font height. (Bug#879)
9196133b 9250
9f688acf
GM
92512008-11-26 Glenn Morris <rgm@gnu.org>
9252
9253 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9254 redefinition with ifdef. (Bug#1383)
9255
90d19aff
AR
92562008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9257
9258 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9259
4ccfa1c0 92602008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9261
9262 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9263 New EmacsView methods.
9264 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9265 Fixes bug #1048,1357,1414.
9266
92672008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9268
9269 Fix bug #1362.
9270 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9271 is not an indexed color.
9272 * nsterm.m (free_indexed_color): Add argument checking.
9273 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9274
e7d5ecb3
CY
92752008-11-24 Chong Yidong <cyd@stupidchicken.com>
9276
9277 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9278 Document confirm-after-completion value for
9279 minibuffer-completion-confirm.
9280
c285743c
JR
92812008-11-24 Jason Rumney <jasonr@gnu.org>
9282
9283 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9284 warning.
9285
b0857706
JR
92862008-11-23 Jason Rumney <jasonr@gnu.org>
9287
9288 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9289 restored before returning.
9290
9291 * w32font.c (check_face_name): New function.
9292 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9293 fonts. (Bug#642)
b0857706 9294
ee50ff07
MR
92952008-11-22 Martin Rudalics <rudalics@gmx.at>
9296
9297 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9298 confirm-nonexistent-file-or-buffer in doc-string.
9299
b8ff72fa
SM
93002008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9301
9302 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9303 Fix copy/paste typo. Add checks.
9304
cee53ed4
KH
93052008-11-21 Kenichi Handa <handa@m17n.org>
9306
9307 * coding.c (detect_coding_iso_2022): Reject invalid composition
9308 sequence.
9309 (DECODE_COMPOSITION_START): If the current source is the last
9310 block, and the current composition doesn't end, regard this
9311 sequence as invalid.
9312 (decode_coding_iso_2022): Handle invalid composition sequence.
9313
f6ef1e65
MR
93142008-11-20 Martin Rudalics <rudalics@gmx.at>
9315
9316 * window.c (coordinates_in_window): Don't return
9317 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9318 line when the window is not the rightmost one. (Bug#1372)
9319
e08b1705
MR
93202008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9321
9322 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9323
ad98e89f
EZ
93242008-11-15 Eli Zaretskii <eliz@gnu.org>
9325
9326 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9327 and bright_bg if noninteractive is non-zero.
9328
fb098a4b
CY
93292008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9330
9331 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9332 x_draw_glyph_string_background.
9333
9334 * w32term.c (x_draw_glyph_string): Likewise.
9335
ce952b6e
CY
93362008-11-15 Chong Yidong <cyd@stupidchicken.com>
9337
9338 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9339 the next glyph string once past the overhang width.
9340
9341 * nsterm.m (ns_draw_glyph_string): Likewise.
9342
9343 * w32term.c (x_draw_glyph_string): Likewise.
9344
26ea7079
CY
93452008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9346
9347 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9348 double file close.
9349
1c33c906
MR
93502008-11-14 Martin Rudalics <rudalics@gmx.at>
9351
9352 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9353 dedicated status of window before attempting to display another
9354 buffer in it.
9355
8fc29035
JB
93562008-11-14 Juanma Barranquero <lekktu@gmail.com>
9357
9358 * msdos.c (Fmsdos_long_file_names):
9359 (syms_of_msdos) <dos-unsupported-char-glyph>:
9360 * dosfns.c (Fint86): Fix typos in docstrings.
9361
55fb4286
EZ
93622008-11-14 Eli Zaretskii <eliz@gnu.org>
9363
9364 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9365
3fda0315
KY
93662008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9367
9368 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9369
7e849c17
CY
93702008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9371
9372 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9373
9374 * frame.h: Negative alpha means "don't touch".
9375
9376 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9377
9378 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9379
b9fd67bd
DN
93802008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9381
9382 * hftctl.c:
9383 * chpdef.h:
9384 * acldef.h: Remove files used only for systems no longer supported.
9385
9386 * Makefile.in: Fix .o alphabetical ordering.
9387 (hftctl.o): Remove dependency, file removed.
9388 (keymap.o, print.o): Depend on charset.h.
9389
d5998e03
KH
93902008-11-10 Kenichi Handa <handa@m17n.org>
9391
2ae37cf0 9392 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9393
be70e183
CY
93942008-11-08 Chong Yidong <cyd@stupidchicken.com>
9395
9396 * dired.c (file_name_completion): If completion_ignore_case is
9397 enabled, ignore case when checking completion-regexp-list.
9398
7cf94eac
EZ
93992008-11-08 Eli Zaretskii <eliz@gnu.org>
9400
9401 * vm-limit.c (get_lim_data): Fix last change.
9402
ee107a89
KH
94032008-11-08 Kenichi Handa <handa@m17n.org>
9404
9405 * character.c (Fget_byte): New function.
9406 (syms_of_character): Defsubr Fget_byte.
9407
5fd15622
CY
94082008-11-07 Chong Yidong <cyd@stupidchicken.com>
9409
9410 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9411 cursor position is valid after scrolling.
9412
13d62fad
JB
94132008-11-06 Juanma Barranquero <lekktu@gmail.com>
9414
9415 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9416
a1dd2936
GM
94172008-11-06 Glenn Morris <rgm@gnu.org>
9418
9419 * xterm.c (handle_one_xevent): Don't let popup menus cause
9420 mouse-autoselect-window related window switching. (Bug#1261)
9421
860cd236
CY
94222008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9423
9424 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9425
653a3150
AS
94262008-11-04 Andreas Schwab <schwab@suse.de>
9427
9428 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9429
870f5cac
CY
94302008-11-03 Chong Yidong <cyd@stupidchicken.com>
9431
9432 * xfns.c (Fx_wm_set_size_hint): New function.
9433
1e02f3cb
MR
94342008-11-03 Martin Rudalics <rudalics@gmx.at>
9435
9436 * textprop.c (Fprevious_single_char_property_change): Return 0
9437 when there's no change in a string. (Bug#1301)
9438
e630dfc6
MR
94392008-11-02 Martin Rudalics <rudalics@gmx.at>
9440
9441 * frame.c (do_switch_frame): New argument NORECORD passed to
9442 Fselect_window.
9443 (Fselect_frame): New argument NORECORD passed to
9444 do_switch_frame.
9445 (Fset_frame_selected_window): New argument NORECORD passed to
9446 Fselect_frame.
9447 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9448 in call of do_switch_frame.
9449 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9450 Handle NORECORD argument in call of Fselect_frame.
9451 * lisp.h (do_switch_frame, Fselect_frame)
9452 (Fset_frame_selected_window): Adjust declarations.
9453 * window.c (select_frame_norecord): New function.
9454 (run_window_configuration_change_hook): Use it and call
9455 Fselect_frame with NORECORD set.
9456 (Fselect_window): Pass NORECORD to Fselect_frame.
9457 (Fset_window_configuration): Handle NORECORD argument in call of
9458 do_switch_frame.
9459 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9460 Fset_frame_selected_window.
9461 * keyboard.c (command_loop_1): Handle NORECORD in call of
9462 Fselect_frame (currently ifdefd).
9463
9020b223
GM
94642008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9465
9466 * emacs.c (USAGE2): Untabify.
9467
793ffee8
SM
94682008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9469
9470 * composite.c (fill_gstring_header): Fix copy/paste typo.
9471
ab6d1131
MR
94722008-10-31 Martin Rudalics <rudalics@gmx.at>
9473
9474 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9475 (Fother_window): Rename argument and rewrite doc-string.
9476 (select_window_norecord): Fix return value. (Bug#1276)
9477
601a9cf1
JB
94782008-10-30 Juanma Barranquero <lekktu@gmail.com>
9479
9480 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9481 new frames overriding foreground for tooltips. Based on similar patch
9482 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9483
813b0652
CY
94842008-10-29 Chong Yidong <cyd@stupidchicken.com>
9485
9486 * emacs.c (Fdaemon_initialized): Initialize nfd.
9487
4414f58f
MR
94882008-10-29 Martin Rudalics <rudalics@gmx.at>
9489
9490 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9491 (Fwindow_text_height): Clarify doc-strings.
9492 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9493 doc-string of window-scroll-functions.
9494
ecdcaa09
RS
94952008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9496
9497 * category.c (syms_of_category): Fix typo in docstring.
9498
23fe745a
JB
94992008-10-28 Juanma Barranquero <lekktu@gmail.com>
9500
9501 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9502 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9503 Fix typos in docstrings.
9504
ff808935
DN
95052008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9506
9507 * emacs.c (daemon_pipe): Make non-static.
9508 (IS_DAEMON): Move definition ...
9509 * lisp.h (IS_DAEMON): ... here.
9510 (daemon_pipe): Declare.
9511 (is_daemon): Remove.
9512 * dispnew.c (init_display): Use IS_DAEMON.
9513
fc012771
SM
95142008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9515
9516 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
9517 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
9518
9519 * emacs.c (is_daemon): Remove.
9520 (main): Don't set is_daemon.
9521 (IS_DAEMON): New macro.
9522 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 9523 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
9524 parent exits.
9525 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
9526
d8bdbe6f
CY
95272008-10-27 Chong Yidong <cyd@stupidchicken.com>
9528
d1a072bf
CY
9529 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
9530 over-sized glyph, draw it with the default glyph width.
9531
e2e325aa
CY
9532 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9533 glyph, draw it with the default glyph width.
9534
9535 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9536 glyph, draw it with the default glyph width.
9537
d8bdbe6f
CY
9538 * xdisp.c (try_scrolling): When computing the distance from the
9539 scroll margin to PT, try moving some distance past the window
9540 bottom before giving up.
9541
7bfac547
MR
95422008-10-27 Martin Rudalics <rudalics@gmx.at>
9543
9544 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
9545 (Fset_window_buffer): Explain in doc-string that a window can be
9546 "strongly" dedicated to its buffer.
9547
4ff029f6
DN
95482008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
9549
9550 * emacs.c (daemon_name): New variable.
9551 (main): Deal with --daemon=SERVER_NAME.
9552 (Fdaemonp): Return a name if one was passed to --daemon.
9553
5790ef40
DN
95542008-10-26 Romain Francoise <romain@orebokech.com>
9555
f9bd0df9 9556 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
9557 (main): Create a pipe before forking, make the parent exit only after
9558 the child has closed its end of the pipe. Move closing the
9559 descriptors ...
9560 (Fdaemon_initialized): ... here. New function.
9561
f5385255
SM
95622008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9563
4d632321
SM
9564 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9565 the previous unoptimized table.
9566
f5385255
SM
9567 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9568 the distinction between non-nil and non-t value of `dedicated'.
9569
6c56a0f3
CY
95702008-10-25 Chong Yidong <cyd@stupidchicken.com>
9571
9572 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 9573 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 9574
fec89261
MR
95752008-10-25 Martin Rudalics <rudalics@gmx.at>
9576
9577 * window.c (Fget_buffer_window, Fdelete_windows_on)
9578 (Freplace_buffer_in_windows): Make buffer argument optional and
9579 rename to buffer_or_name.
9580
34fcddd0
CY
95812008-10-24 Chong Yidong <cyd@stupidchicken.com>
9582
f5385255
SM
9583 * xdisp.c (handle_single_display_spec, handle_display_prop):
9584 Undo 2005-05-16 change.
34fcddd0
CY
9585 (handle_stop): Pop iterator if it's loaded with an empty string.
9586 (get_overlay_strings_1): Don't save iterator if it's loaded with
9587 an empty string (bug#1201).
9588
064766f2
KH
95892008-10-24 Kenichi Handa <handa@m17n.org>
9590
9591 * ftfont.c (ftfont_otf_features): Fix previous change.
9592 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9593 calling ftfont_otf_features.
9594
f9bd0df9 95952008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
9596
9597 * font.c (font_match_p): Fix for the case that a vector of
9598 characters is in script-representative-chars.
9599
1dae9197
MA
96002008-10-24 Michael Albinus <michael.albinus@gmx.de>
9601
9602 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 9603 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
9604 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9605 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 9606 macro. (Bug#1186)
1dae9197 9607
f9bd0df9 96082008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
9609
9610 * s/sol2-10.h: New file.
9611
878a4584
JB
96122008-10-23 Juanma Barranquero <lekktu@gmail.com>
9613
9614 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9615 poor beast has survived 9+ years and the jump from xterm.c!).
9616
cd265ca6
MR
96172008-10-23 Martin Rudalics <rudalics@gmx.at>
9618
9619 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9620 Reword doc-string.
f5385255 9621 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 9622
472a4dc9
JB
96232008-10-23 Juanma Barranquero <lekktu@gmail.com>
9624
9625 * character.c (syms_of_character) <script-representative-chars>:
9626 <unicode-category-table>: Doc fixes.
9627
159bd5a2
NF
96282008-10-23 Noah Friedman <friedman@splode.com>
9629
9630 * coding.c (make_conversion_work_buffer): Check that
9631 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9632 Fget_buffer_create.
9633
49f9c344
KH
96342008-10-23 Kenichi Handa <handa@m17n.org>
9635
9636 * font.c (font_add_log): Check the values of extra properties.
9637
12bb3111
MR
96382008-10-22 Martin Rudalics <rudalics@gmx.at>
9639
9640 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9641 Reword doc-string.
9642 (Fset_window_parameter): Use NILP.
9643 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 9644 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 9645
bbeb4e99
JB
96462008-10-22 Juanma Barranquero <lekktu@gmail.com>
9647
9648 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9649
96502008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
9651
9652 * nsfns.m (ns_appkit_version): New function.
9653 (x-server-version): Use it.
9654 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
9655 (x-server-vendor): Don't check_ns().
9656
9657 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
9658
a9b555d3
JB
96592008-10-22 Juanma Barranquero <lekktu@gmail.com>
9660
9661 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9662 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
9663
4626499f
KH
96642008-10-22 Kenichi Handa <handa@m17n.org>
9665
e3681952
KH
9666 * syntax.c (scan_words): Call word_boundary_p instead of comparing
9667 scripts.
9668
4626499f
KH
9669 * category.c (word_boundary_p): Check scripts instead of charset.
9670 Handle nil value in word-separating-categories and
9671 word-combining-categories.
9672 (syms_of_category): Fix docstrings of word-separating-categories
9673 and word-combining-categories.
9674
1560f91a
EZ
96752008-10-21 Eli Zaretskii <eliz@gnu.org>
9676
9677 * coding.c (Fencode_coding_region, Fdecode_coding_region)
9678 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
9679
f4668441
MR
96802008-10-21 Martin Rudalics <rudalics@gmx.at>
9681
9682 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
9683 Rename arg "buffer" to "buffer_or_name".
9684 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
9685 it optional.
9686 (no_switch_window): Remove since the return value is not used.
a9b555d3 9687 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
9688 Consider window as dedicated when Fwindow_dedicated_p returns a
9689 non-nil value.
9690 * lisp.h: Remove prototype for no_switch_window.
9691
fd75ddb2
JD
96922008-10-21 Jan Djärv <jan.h.d@swipnet.se>
9693
9694 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 9695 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 9696
07295713
KH
96972008-10-21 Kenichi Handa <handa@m17n.org>
9698
9699 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
9700 check Vlatin_extra_code_table.
9701
712adc82
EZ
97022008-10-20 Eli Zaretskii <eliz@gnu.org>
9703
9704 * fileio.c (Fset_file_modes): Doc fix.
9705
f549eb0b
MA
97062008-10-19 Michael Albinus <michael.albinus@gmx.de>
9707
9708 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
9709 in arrays.
9710
aac0c6e3
MR
97112008-10-19 Martin Rudalics <rudalics@gmx.at>
9712
9713 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9714 Mention kill-buffer in doc-string.
9715 (Fset_window_buffer): Reinsert tem check removed in last commit.
9716 (Fenlarge_window, Fshrink_window): Have argument names and
9717 doc-string follow Elisp manual more closely.
9718
97192008-10-18 Eli Zaretskii <eliz@gnu.org>
9720
9721 * fileio.c (Fset_file_modes): Doc fix.
9722
97232008-10-18 Martin Rudalics <rudalics@gmx.at>
9724
9725 * window.c (Fwindow_width, Fset_window_start)
9726 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
9727 (Fdelete_windows_on, Freplace_buffer_in_windows):
9728 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
9729 (Fwindow_dedicated_p): Make window argument optional.
9730 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
9731 (Fset_window_buffer): Respect any non-nil dedicated value for
9732 window. Rename "buffer" argument to "buffer_or_name".
9733
97342008-10-18 Ulrich Mueller <ulm@gentoo.org>
9735
9736 * m/sh3.h: New file, machine description for SuperH.
9737
97382008-10-17 Martin Rudalics <rudalics@gmx.at>
9739
9740 * window.c (Fsplit_window): Rename arg horflag to horizontal.
9741
97422008-10-17 Kenichi Handa <handa@m17n.org>
9743
9744 * ftfont.c (ftfont_otf_features): Fix indexing
9745 gsub_gpos->FeatureList.Feature. Check the validity of indices.
9746
97472008-10-16 Magnus Henoch <mange@freemail.hu>
9748
9749 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
9750 (Fdbus_call_method_asynchronously): Ditto.
9751 This change makes C-h f display the argument list.
9752
97532008-10-16 Chong Yidong <cyd@stupidchicken.com>
9754
9755 * fileio.c (Fexpand_file_name): Doc fix.
9756
9757 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
9758 of :foreground and :background equivalent to unspecified (20.x
9759 compatibility).
9760
97612008-10-15 Eli Zaretskii <eliz@gnu.org>
9762
9763 * buffer.c (syms_of_buffer): Doc fix.
9764
97652008-10-14 Kenichi Handa <handa@m17n.org>
9766
9767 * font.c (font_clear_prop): When clearing font width, clear the
9768 average width field too.
9769
97702008-10-12 Andreas Schwab <schwab@suse.de>
9771
9772 * ftfont.c (ftfont_shape_by_flt): Make static.
9773 * ftfont.h (ftfont_shape_by_flt): Don't declare.
9774
9775 * font.c: Don't include <m17n-flt.h>.
9776
97772008-10-10 Eli Zaretskii <eliz@gnu.org>
9778
9779 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
9780
97812008-10-09 Eli Zaretskii <eliz@gnu.org>
9782
9783 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
9784 away code.
9785
97862008-10-09 Chong Yidong <cyd@stupidchicken.com>
9787
9788 * dispnew.c (update_text_area): Avoid looping due to large glyph
9789 overhangs (bug#1070).
9790
97912008-10-09 Kenichi Handa <handa@m17n.org>
9792
9793 * fontset.c (face_for_char): If face->fontset is negative, just
9794 return ascii_face.
9795
f5385255
SM
9796 * font.c (font_delete_unmatched): Fix previous change.
9797 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
9798
97992008-10-09 Martin Rudalics <rudalics@gmx.at>
9800
9801 * frame.c (Fraise_frame): On text-only terminals select frame in
9802 order to make it visible. (Bug#1061)
9803
98042008-10-08 Chong Yidong <cyd@stupidchicken.com>
9805
9806 * fontset.c (fontset_find_font): Check frame validity.
9807
98082008-10-07 Chong Yidong <cyd@stupidchicken.com>
9809
a9b555d3 9810 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
9811 (xg_display_close): Allow Emacs to close all displays (bug#985).
9812
98132008-10-06 Andreas Schwab <schwab@suse.de>
9814
f5385255 9815 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
9816
98172008-10-06 Chong Yidong <cyd@stupidchicken.com>
9818
f5385255 9819 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 9820
a9b555d3 9821 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
9822
9823 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9824 during initialization.
9825
98262008-10-04 Eli Zaretskii <eliz@gnu.org>
9827
9828 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9829 whole thing on MSDOS frames as well as on a TTY.
9830
9831 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9832 well as for TTY.
9833 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9834 well as on a TTY.
9835
9836 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9837 as well as for TTY.
9838
9839 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9840
9841 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9842 MSDOS frames as well.
9843
98442008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9845
9846 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9847 correct arguments.
b71ac3dd 9848 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
9849
98502008-10-03 Glenn Morris <rgm@gnu.org>
9851
9852 * emacs.c (USAGE1): Add --daemon.
9853
98542008-10-02 Eli Zaretskii <eliz@gnu.org>
9855
9856 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9857 100, so it's in percents as advertised.
9858
98592008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9860
9861 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9862 (ns_output.current_cursor, ns_output.desired_cursor)
9863 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9864 (FRAME_NEW_CURSOR_COLOR): Remove.
9865
9866 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 9867 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
9868 enumeration (HOLLOW_BOX_CURSOR, etc.).
9869
9870 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9871 (draw_window_cursor): Simplify code.
f5385255
SM
9872 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9873 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 9874 updates manually.
a9b555d3
JB
9875 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9876 Use core Emacs cursor types.
aac0c6e3 9877
b8ff72fa 9878 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
9879
98802008-10-02 Martin Rudalics <rudalics@gmx.at>
9881
9882 * process.c (Faccept_process_output): Fix doc-string.
9883
98842008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9885
9886 * gmalloc.c (__sbrk): Also define for uClibc.
9887
9888 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9889 for uClibc.
9890
98912008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9892
9893 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9894 styles.
9895 (nsfont_open): Reenable the cache.
9896
98972008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9898
9899 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9900 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9901
99022008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9903
9904 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9905 a suspended terminal.
9906
99072008-09-30 Michael Albinus <michael.albinus@gmx.de>
9908
9909 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9910
99112008-09-30 Eli Zaretskii <eliz@gnu.org>
9912
9913 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9914
99152008-09-30 Chong Yidong <cyd@stupidchicken.com>
9916
9917 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9918 in a continued line coincides with a line beginning.
9919
99202008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9921
9922 * nsfont.m (nsfont_trait_distance): Fix bug.
9923 (nsfont_list): Return a list rather than a vector (syncs with Handa
9924 changes of 2008-05-14).
9925 (nsfont_open): Improve logging.
9926
99272008-09-29 Andreas Schwab <schwab@suse.de>
9928
9929 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9930
99312008-09-28 Martin Rudalics <rudalics@gmx.at>
9932
9933 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9934 name as char-resolve-modifiers.
9935 Reported by: Markus Triska <markus.triska@gmx.at>
9936
99372008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9938
9939 * dispnew.c (init_display): Return earlier when running as a daemon.
9940
99412008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9942
9943 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9944
99452008-09-27 Eli Zaretskii <eliz@gnu.org>
9946
9947 * composite.c (Fcomposition_get_gstring)
9948 (Fcompose_region_internal, Fcompose_string_internal)
9949 (Ffind_composition_internal): Doc fix.
9950 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9951 (syms_of_composite) <auto-composition-function>: Doc fix.
9952 (syms_of_composite) <composition-function-table>: Doc fix.
9953
99542008-09-25 Chong Yidong <cyd@stupidchicken.com>
9955
9956 * search.c (wordify): New argument for lax word-ends.
9957 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9958
99592008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9960
9961 * lisp.h (is_daemon): Declare.
9962 * dispnew.c (init_display): Do not try to initialize the terminal
9963 when running as a daemon.
9964
99652008-09-22 Chong Yidong <cyd@stupidchicken.com>
9966
9967 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9968 x_display_pixel_height.
9969
99702008-09-22 Martin Rudalics <rudalics@gmx.at>
9971
9972 * undo.c (record_point): Don't call Fundo_boundary for first
9973 change. (Bug#731)
9974
99752008-09-22 Juanma Barranquero <lekktu@gmail.com>
9976
9977 * emacs.c (Fdaemonp): Doc fix.
9978
99792008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9980
9981 * emacs.c (main): Place #ifdef in the proper place.
9982
99832008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9984
9985 * emacs.c (standard_args): Add --daemon.
9986 (main): Disconnect from the terminal when --daemon is passed.
9987 (is_daemon): New variable.
9988 (Fdaemonp): New function.
9989 (syms_of_emacs): Defsubr it.
9990
99912008-09-20 Chong Yidong <cyd@stupidchicken.com>
9992
9993 * xdisp.c (get_next_display_element): Handle string display
9994 correctly when checking for the end of a box run.
9995
99962008-09-20 Glenn Morris <rgm@gnu.org>
9997
9998 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9999 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10000 (Frename_file): Avoid copying to trash if a rename involves
10001 a delete. (Bug#964).
10002
100032008-09-20 Eli Zaretskii <eliz@gnu.org>
10004
10005 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10006 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10007 frames as well as termcap frames.
10008 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10009 get_named_tty.
10010
100112008-09-19 Eli Zaretskii <eliz@gnu.org>
10012
10013 * process.c (procfs_system_process_attributes): Fix cmdline in
10014 case /proc/PID/cmdline is empty.
10015
10016 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10017 x_display_pixel_height.
10018
100192008-09-19 Juanma Barranquero <lekktu@gmail.com>
10020
10021 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10022
10023 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10024 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10025
100262008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10027
10028 * dispextern.h (struct it): Move line_wrap away from the middle of
10029 bitfields. Move voffset in struct iterator_stack_entry after the
10030 bitfields. Move tab_width near after another short.
10031
100322008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10033
10034 * frame.h (struct frame): Move alpha from the middle of bitfields.
10035
10036 * window.h (struct window): Move frozen_window_start_p after the
10037 rest of the bitfields to reduce padding.
10038
100392008-09-18 Chong Yidong <cyd@stupidchicken.com>
10040
10041 * xterm.h (x_display_info): Remove `height' and `width' members.
10042
10043 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10044
10045 * w32term.h (w32_display_info): Remove `height', `width',
10046 `height_in', and `width_in' members.
10047
b8ff72fa
SM
10048 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10049 New functions.
aac0c6e3
MR
10050 (x_calc_absolute_position): Use them.
10051 (x_term_init): Omit removed `height' and `width' members.
10052
b8ff72fa
SM
10053 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10054 New functions.
aac0c6e3
MR
10055 (w32_read_socket, x_calc_absolute_position): Use them.
10056 (w32_initialize_display_info, w32_term_init): Omit removed members
10057 of w32_display_info.
10058
b8ff72fa
SM
10059 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10060 New functions.
10061 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10062
b8ff72fa
SM
10063 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10064 New functions.
aac0c6e3
MR
10065 (x_calc_absolute_position): Use them.
10066 (x_term_init): Omit removed `height' and `width' members.
10067
10068 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10069 (compute_tip_xy):
10070 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10071 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10072 x_display_pixel_width.
10073
100742008-09-18 Kenichi Handa <handa@m17n.org>
10075
10076 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10077 (composition_compute_stop_pos): Fix handling of static composition.
10078 (Fcomposition_get_gstring): Check FROM and TO at first.
10079
100802008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10081
46e722a9 10082 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10083 mixup (YAILOM).
10084
100852008-09-17 Chong Yidong <cyd@stupidchicken.com>
10086
10087 * indent.c (Fvertical_motion): Use position reported by iterator
10088 instead of PT for determining screen motion (bug#943).
10089
100902008-09-17 Romain Francoise <romain@orebokech.com>
10091
10092 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10093
100942008-09-17 Kenichi Handa <handa@m17n.org>
10095
10096 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10097
10098 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10099 if necessary.
10100
101012008-09-16 Kenichi Handa <handa@m17n.org>
10102
10103 * coding.c (make_conversion_work_buffer): Avoid calling
10104 Fget_buffer_create if it is not necessary.
10105
101062008-09-15 Martin Rudalics <rudalics@gmx.at>
10107
10108 * window.c (Fselect_window): Don't update window_select_count and
10109 use_time when norecord is not nil.
10110
101112008-09-14 Kenichi Handa <handa@m17n.org>
10112
10113 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10114 specpdl_ptr.
10115
101162008-09-12 Kenichi Handa <handa@m17n.org>
10117
10118 * indent.c (scan_for_column): Don't handle automatic composition
10119 if the current buffer is not associated with a window.
10120
10121 * composite.c (composition_reseat_it): If the current buffer is
10122 not associated with a window, ignore the automatic composition.
10123 (find_automatic_composition): Likewise.
10124
101252008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10126
10127 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10128 (Fgpm_mouse_stop): Use it.
10129 * termhooks.h (close_gpm): Declare.
10130 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10131 connection if Gpm_GetEvent fails.
10132
10133 * window.c (set_window_buffer): Always preserve current-buffer.
10134
101352008-09-12 Glenn Morris <rgm@gnu.org>
10136
10137 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10138
101392008-09-11 Glenn Morris <rgm@gnu.org>
10140
10141 * charset.c (charset-map-path): Doc fix.
10142
101432008-09-10 Kenichi Handa <handa@m17n.org>
10144
10145 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10146
10147 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10148 compose a grapheme cluster with the preceding base glyph.
10149
10150 * composite.c (composition_compute_stop_pos): Fix previous change.
10151 Reset cmp_it->id to -1 at first.
10152
101532008-09-10 Glenn Morris <rgm@gnu.org>
10154
10155 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10156
101572008-09-09 Chong Yidong <cyd@stupidchicken.com>
10158
10159 * keyboard.c (read_key_sequence): Reapply translation maps when
10160 switching keyboards.
10161
101622008-09-09 Kenichi Handa <handa@m17n.org>
10163
10164 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10165 characters.
10166
10167 * composite.c (FORWARD_CHAR): Fix calculation
10168 of (POSITION).pos_byte.
10169 (composition_compute_stop_pos): Limit the search of composition to
10170 at most 500 characters ahead. If we reach the limit or find a
10171 newline, set cmp_it->ch to -2 and return 0.
10172 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10173
101742008-09-08 Kenichi Handa <handa@m17n.org>
10175
10176 * indent.c (Fvertical_motion): Be sure to set
10177 it_overshoot_expected if it.cmp_it.id is non-negative.
10178
101792008-09-07 Andreas Schwab <schwab@suse.de>
10180
10181 * callproc.c (Fcall_process): Don't hold references to string data
10182 across garbage collection. Move initialisation of new_argv down
10183 to avoid compiler bug.
10184
101852008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10186
10187 * process.c (Fsystem_process_attributes): Doc fix.
10188
101892008-09-07 Chong Yidong <cyd@stupidchicken.com>
10190
10191 * callproc.c (Fcall_process): Canonicalize current directory name.
10192
10193 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10194 iterator advances to the next line if the current line ends in a
10195 continued tab.
10196
101972008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10198
10199 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10200 member to point to cmp_from.
10201
10202 * xdisp.c: Doc fix for references to gidx data member.
10203
102042008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10205
10206 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10207
102082008-09-07 Kenichi Handa <handa@m17n.org>
10209
10210 * composite.c (FORWARD_CHAR): Check STOP after
10211 incrementing (POSITION).pos.
10212
102132008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10214
10215 * process.c (Fsystem_process_attributes): Doc fix.
10216
102172008-09-06 Chong Yidong <cyd@stupidchicken.com>
10218
10219 * keyboard.c (Ftop_level): Doc fix.
10220
102212008-09-06 Eli Zaretskii <eliz@gnu.org>
10222
10223 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10224 minibuffer, don't let lower part of menu invade the echo area.
10225
10226 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10227 "char *q" to access menu text and advance through it. Revert the
10228 change that displayed ">" instead of ASCII character 0x10.
10229
102302008-09-05 Eli Zaretskii <eliz@gnu.org>
10231
10232 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10233 toggle boxes and radio buttons on MS-DOS as well.
10234
102352008-09-05 Kenichi Handa <handa@m17n.org>
10236
10237 * composite.c (autocmp_chars): Check lookback count.
10238 (composition_compute_stop_pos): Set cmp_it->lookback.
10239 (composition_reseat_it): Check lookback count.
10240 (struct position_record): New struct.
10241 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10242 (find_automatic_composition): New function.
10243 (composition_adjust_point): Use find_automatic_composition.
10244
10245 * dispextern.h (struct composition_it): New member lookback.
10246
102472008-09-02 Chong Yidong <cyd@stupidchicken.com>
10248
10249 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10250 if moving by a single line.
10251
102522008-09-02 Andreas Schwab <schwab@suse.de>
10253
10254 * xterm.c (x_delete_display): Fix merge error.
10255
10256 * fileio.c (Fexpand_file_name): Remove unused variables.
10257
102582008-09-02 Eli Zaretskii <eliz@gnu.org>
10259
10260 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10261 storage on all platforms, not just on DOS_NT.
10262
102632008-09-02 Jason Rumney <jasonr@gnu.org>
10264
b8ff72fa
SM
10265 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10266 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10267
102682008-09-01 Chong Yidong <cyd@stupidchicken.com>
10269
10270 * xfaces.c (Finternal_set_alternative_font_family_alist)
10271 (Finternal_set_alternative_font_registry_alist): Properly copy
10272 entire alist structure.
10273
102742008-09-01 Kenichi Handa <handa@m17n.org>
10275
d66c0241 10276 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10277 representative chars of the script is a vector.
d66c0241
JB
10278 (ftfont_list): Handle the case where the representative chars of
10279 the script is a vector.
aac0c6e3
MR
10280
10281 * character.c (syms_of_character): Docstring of
10282 script-representative-chars fixed.
10283
102842008-08-31 Eli Zaretskii <eliz@gnu.org>
10285
10286 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10287 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10288 the menu. Allocate larger buffer for `text', to account for
10289 possible ^C characters.
10290
102912008-08-31 Martin Rudalics <rudalics@gmx.at>
10292
10293 * xdisp.c (prepare_menu_bars): Don't call
10294 Vwindow_size_change_functions with arg Qt.
10295
102962008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10297
10298 * font.h (font_range):
10299 * fileio.c (report_file_error):
46e722a9
SM
10300 * composite.c (composition_update_it): Yet another int/Lisp_Object
10301 mixup (YAILOM).
aac0c6e3
MR
10302
103032008-08-30 Glenn Morris <rgm@gnu.org>
10304
10305 * data.c (Fmake_variable_frame_local): Doc fix.
10306
10307 * frame.c (Fmodify_frame_parameters): Doc fix.
10308
103092008-08-30 Eli Zaretskii <eliz@gnu.org>
10310
10311 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10312 needed by GetTokenInformation.
10313 (w32_system_process_attributes): Check return values of all system
10314 APIs.
10315
10316 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10317 only when the state changes.
10318 (IT_update_begin, IT_update_end): Add termscript trace.
10319
10320 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10321 clipboard is unavailable. Set dst to NULL if it doesn't point to
10322 malloc'ed data.
10323 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10324 passing random values to xfree.
10325
10326 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10327 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10328
103292008-08-29 Jason Rumney <jasonr@gnu.org>
10330
10331 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10332
103332008-08-29 Eli Zaretskii <eliz@gnu.org>
10334
10335 * composite.c (fill_gstring_body): Avoid compiler warnings.
10336
10337 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10338 LGLYPH_SET_CODE to avoid compiler warnings.
10339
2ae37cf0 10340 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
10341
10342 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10343
10344 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10345 LGLYPH_SET_CODE.
10346
103472008-08-29 Kenichi Handa <handa@m17n.org>
10348
10349 * fileio.c (report_file_error): Don't downcase the first character
10350 of errstring if it is still unibyte.
10351
103522008-08-29 Kenichi Handa <handa@m17n.org>
10353
10354 These changes are to re-implement the automatic composition so
10355 that it doesn't use text properties.
10356
10357 * Makefile.in (ftfont.o): Depend on composite.h.
10358 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10359
10360 * character.h (Vunicode_category_table): Extern it.
10361
10362 * character.c (Vunicode_category_table): New variable.
10363 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10364
10365 * chartab.c (optimize_sub_char_table): Perform more greedy
10366 optimization.
10367
b8ff72fa
SM
10368 * composite.h (enum composition_method):
10369 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10370 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10371 (Vcomposition_function_table): Extern it.
10372 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10373 (composition_gstring_put_cache, composition_gstring_from_id)
10374 (composition_gstring_p, composition_gstring_width)
10375 (composition_compute_stop_pos, composition_reseat_it)
10376 (composition_update_it, composition_adjust_point): Extern them.
10377 (Fcomposition_get_gstring): EXFUN it.
10378
d66c0241 10379 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10380 (Vcomposition_function_table)
10381 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10382 (gstring_hash_table, gstring_work, gstring_work_headers):
10383 New variables.
aac0c6e3
MR
10384 (gstring_lookup_cache, composition_gstring_put_cache)
10385 (composition_gstring_from_id, composition_gstring_p)
10386 (composition_gstring_width, fill_gstring_header)
10387 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10388 (composition_reseat_it, composition_update_it)
b8ff72fa 10389 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10390 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10391 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10392 Defsubr composition_get_gstring.
aac0c6e3
MR
10393
10394 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10395 cmp_id.
10396 (struct glyph_string): Delete the member gidx. New members
10397 cmp_id, cmp_from, and cmp_to.
10398 (enum it_method): Delete GET_FROM_COMPOSITION.
10399 (struct composition_it): New struct.
10400 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10401 Delete c, len, cmp_id, cmp_len in u.comp.
10402
10403 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 10404 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 10405 (enum lglyph_indices): Likewise.
b8ff72fa 10406 (font_range): Adjust extern.
aac0c6e3
MR
10407 (font_fill_lglyph_metrics): Extern it.
10408
10409 * font.c (QCf): New variable.
10410 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10411 (font_prepare_composition): Delete this function.
10412 (font_range): Type and arguments changed.
10413 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10414 (font_fill_lglyph_metrics): New function.
b8ff72fa 10415 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 10416 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
10417 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10418 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
10419
10420 * fontset.h (font_for_char): Extern it.
10421
10422 * fontset.c (font_for_char): New function.
10423
10424 * ftfont.c: Include composite.h.
10425 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 10426 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
10427
10428 * indent.c: Include composite.h and dispextern.h.
10429 (check_composition): Delete this function.
10430 (scan_for_column): Handle composition by
10431 composition_compute_stop_pos, composition_reseat_it, and
10432 composition_update_it.
10433 (compute_motion): Likewise.
10434 (Fvertical_motion): Fix checking of composition.
10435
10436 * keyboard.c (adjust_point_for_property): Check composition by
10437 composition_adjust_point.
10438
b8ff72fa 10439 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
10440 struct glyph_string.
10441
b8ff72fa
SM
10442 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10443 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
10444 struct glyph.
10445 (produce_composite_glyph): Likewise.
10446
b8ff72fa
SM
10447 * w32term.c (x_draw_composite_glyph_string_foreground):
10448 Adjust for the change of struct glyph_string.
aac0c6e3
MR
10449 (x_draw_glyph_string): Likewise.
10450
10451 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10452 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10453
10454 * xdisp.c: Include font.h.
10455 (it_props): Delete the entry for Qauto_composed.
10456 (init_iterator): Initialize it->cmp_it.id to -1.
10457 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 10458 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
10459 (handle_auto_composed_prop): Delete it.
10460 (handle_composition_prop): Handle only static composition.
10461 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10462 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 10463 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
10464 (pop_it): Likewise.
10465 (get_next_element): Delete next_element_from_composition.
10466 (CHAR_COMPOSED_P): New macro.
10467 (get_next_display_element): For automatic composition, get a face
10468 from the font in the glyph-string.
10469 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 10470 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
10471 (next_element_from_string): Check if the character at the current
10472 position is composed by CHAR_COMPOSED_P.
10473 (next_element_from_buffer): Likewise.
d66c0241
JB
10474 (next_element_from_composition): Adjust for the change of struct it.
10475 Update it->cmp_it.
b8ff72fa
SM
10476 (dump_glyph): Adjust for the change of struct glyph.
10477 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
10478 it and struct glyph. Don't handle automatic composition here.
10479 (fill_gstring_glyph_string): New function.
10480 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 10481 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
10482 (BUILD_GSTRING_GLYPH_STRING): New macro.
10483 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10484 automatic composition.
b8ff72fa 10485 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 10486 struct glyph.
b8ff72fa 10487 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 10488
b8ff72fa 10489 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
10490 the change of struct glyph_string.
10491 (x_draw_glyph_string): Likewise.
10492
104932008-08-29 Glenn Morris <rgm@gnu.org>
10494
10495 * buffer.c (word-wrap): Doc fix.
10496 * xdisp.c (truncate-partial-width-windows): Doc fix.
10497 Increase default to 50.
10498
104992008-08-29 Chong Yidong <cyd@stupidchicken.com>
10500
10501 * xdisp.c (update_tool_bar_unwind): New function.
10502 (update_tool_bar): Temporarily set selected frame before building
10503 tool-bar items.
10504
105052008-08-28 Michael Albinus <michael.albinus@gmx.de>
10506
10507 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10508 snprintf, respectively.
10509 (xd_append_arg): Convert strings with Fstring_make_unibyte.
10510
105112008-08-28 Chong Yidong <cyd@stupidchicken.com>
10512
10513 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
10514 LDFLAGS to GNUstep CC invocation.
10515
105162008-08-27 Chong Yidong <cyd@stupidchicken.com>
10517
10518 * indent.c (Fvertical_motion): Revert last change. Handle the
10519 general case where we are moving forward, and PT spans multiple
10520 screen lines.
10521
10522 * eval.c (find_handler_clause): Temporarily increase
10523 max-lisp-eval-depth while printing the backtrace buffer, to
10524 guarantee that help-mode code can run.
10525
105262008-08-27 Eli Zaretskii <eliz@gnu.org>
10527
10528 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
10529 colors under -rv.
10530 (IT_set_frame_parameters): Don't swap foreground and background
10531 colors if `(reverse . t)' is present in the frame properties.
10532 (internal_terminal_init): Call init_frame_faces only for the
10533 initial frame.
10534
105352008-08-27 Andreas Schwab <schwab@suse.de>
10536
10537 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
10538
105392008-08-27 Andreas Schwab <schwab@suse.de>
10540
10541 * search.c (search_buffer): Set char_base to zero only at the end.
10542
105432008-08-27 Kenichi Handa <handa@m17n.org>
10544
b8ff72fa 10545 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
10546
105472008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
10548
10549 * xterm.c (x_term_init): Temporarily hide the partially
10550 initialized terminal while calling vendor-specific-keysyms.
10551
105522008-08-26 Eli Zaretskii <eliz@gnu.org>
10553
10554 * msdos.c (internal_terminal_init): Most initializations done only
10555 once, especially initial_screen_colors[] and termscript open.
10556
105572008-08-26 Chong Yidong <cyd@stupidchicken.com>
10558
10559 * eval.c (Fcondition_case): Doc fix.
10560
10561 * widgetprv.h (EmacsFramePart): Change font member to the new font
10562 struct.
10563
10564 * widget.c: Include character.h and font.h for XSETFONT.
10565 (setup_frame_gcs): Compute X font id from font struct, just once.
10566
105672008-08-26 Eli Zaretskii <eliz@gnu.org>
10568
10569 * term.c (get_named_tty): Fix last change.
10570
105712008-08-26 Chong Yidong <cyd@stupidchicken.com>
10572
10573 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 10574 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
10575
105762008-08-25 Eli Zaretskii <eliz@gnu.org>
10577
10578 * frame.c (do_switch_frame): Mark previously displayed frame as
10579 obscured for FRAME_MSDOS_P frames as well.
10580
105812008-08-24 Eli Zaretskii <eliz@gnu.org>
10582
10583 * frame.c (make_terminal_frame): Initialize f->terminal,
10584 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10585 Set the top frame to newly created frame.
10586 (Fmake_terminal_frame): Reuse the_only_display_info.
10587
10588 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10589 estimating available memory.
10590
b97439ce 105912008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
10592
10593 * nsterm.m (ns_draw_window_cursor): Don't call
10594 NSDisableScreenUpdates and NSEnableScreenUpdates on
10595 non-NS_IMPL_COCOA systems.
10596
105972008-08-23 Andreas Schwab <schwab@suse.de>
10598
10599 * process.c (procfs_system_process_attributes): Fix use of
10600 uninitialized variables.
10601
106022008-08-23 Eli Zaretskii <eliz@gnu.org>
10603
10604 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10605
10606 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10607 calling tty-set-up-initial-frame-faces.
10608
b8ff72fa
SM
10609 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10610 Allow MSDOS frames along with X frames.
aac0c6e3
MR
10611
10612 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10613 addition to output_termcap.
10614
10615 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10616
10617 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10618 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10619 highlight.
10620
10621 * process.c [!subprocesses]: Define QCname.
10622 (syms_of_process): Intern and staticpro it.
10623
10624 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
10625 Adjust for changes in encoding/decoding routines.
10626 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
10627 encode_coding and decode_coding.
10628
b8ff72fa 10629 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
10630
10631 * dosfns.c: Include frame.h before termhooks.h.
10632 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10633 variable termscript.
10634
10635 * s/msdos.h (USER_FULL_NAME): Define.
10636 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10637
10638 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10639 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10640 pw->pw_gecos.
10641
10642 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10643 SELECTED_FRAME as additional (1st) argument.
10644 (tty_read_avail_input): Handle output_msdos_raw in
10645 addition to output_termcap.
10646
10647 * msdos.c: Include frame.h before termhooks.h.
10648 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10649 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10650 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10651 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10652 (IT_set_terminal_modes, IT_reset_terminal_modes)
10653 (IT_set_frame_parameters): Use tty->termscript instead of a global
10654 variable termscript.
10655 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
10656 global variable terminal_coding. Don't refer to
10657 Vnonascii_translation_table.
10658 (internal_terminal_init): Set Vwindow_system in current_kboard.
10659 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
10660 Announce date and time of session start, if termscript is open.
10661 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
10662 term.c:init_tty). Open termscript only of not already open.
10663 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
10664 here instead of dos_ttraw. Don't initialize display if this is an
10665 initial tty. Don't set FRAME_FONT.
10666 (Vwindow_system_version): Bump to 23.
10667 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
10668 is available, set up mouse_position_hook.
10669 (dos_ttraw, IT_set_terminal_modes): If called with initial
10670 terminal, do nothing.
10671 (IT_set_frame_parameters): Handle the Qtty_type frame
10672 parameter by calling internal_terminal_init.
10673 (dos_set_window_size, show_mouse_face)
10674 (clear_mouse_face, IT_note_mode_line_highlight)
10675 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
10676 (dos_rawgetc): Use tty_display_info instead of x_display_info.
10677 (initialize_msdos_display): New function.
10678 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
10679 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
10680 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
10681 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 10682 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
10683 (request_sigio, unrequest_sigio): Don't define, now defined on
10684 sysdep.c.
10685 (IT_write_glyphs): Rewrite to use encode_terminal_code.
10686
10687 * term.c [MSDOS]: Include msdos.h.
10688 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
10689 conditional to DOS_NT. Allow only one call to this function in a
10690 session. Don't allocate a new struct tty_display_info; instead,
10691 reuse the_only_display_info. Call get_tty_size to get screen
10692 dimensions. Call init_baud_rate to set bad_rate.
10693 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
10694 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 10695 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
10696 (get_tty_terminal, get_named_tty, Ftty_type)
10697 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
10698 output_termcap.
b8ff72fa
SM
10699 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
10700 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 10701 only when subprocesses are supported.
aac0c6e3
MR
10702
10703 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
10704 f->output_data.x.
10705 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
10706 terminal devices.
10707
5582fbc7 10708 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
10709 x_output.
10710 (FRAME_FONT): Use output_data.tty.
10711 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
10712 (struct x_display_info): Rename from display_info. Update all users in
10713 msdos.c.
aac0c6e3 10714 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 10715 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
10716 (dos_ttraw): Update prototype.
10717
10718 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
10719 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
10720
107212008-08-23 Jason Rumney <jasonr@gnu.org>
10722
10723 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
10724 (fn_TIFFSetDirectory): New library function used.
10725 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
10726 (tiff_load): Use :index to select among multiple images. Set count
10727 property when multiple images exist.
10728 (gif_format): Use :index, not :image.
10729
107302008-08-23 Chong Yidong <cyd@stupidchicken.com>
10731
10732 * xdisp.c (try_scrolling): Check INT_MAX instead of
10733 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
10734 to obtain INT_MAX.
10735
107362008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
10737
10738 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
10739
107402008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
10741
10742 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
10743 GNUstep library location.
10744
107452008-08-21 Chong Yidong <cyd@stupidchicken.com>
10746
10747 * xfaces.c (x_update_menu_appearance): Check validity of menu font
10748 before using it.
10749
10750 * puresize.h (BASE_PURESIZE): Increase to 1250000.
10751
107522008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10753
10754 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
10755 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
10756 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
10757 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
10758 (EmacsApp-cursor_blink_handler): Remove declaration.
10759 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
10760 match 01 Feb 2008 changes in xterm.c.
10761 (ns_read_socket): Add cast to avoid warning.
10762 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
10763 GNUstep.
10764
107652008-08-20 Chong Yidong <cyd@stupidchicken.com>
10766
10767 * xselect.c (x_get_foreign_selection): Return nil if desired
10768 selection could not be obtained, instead of signalling an error.
10769
107702008-08-20 David Reitter <david.reitter@gmail.com>
10771
10772 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
10773 * nsterm.m: Remove ns-specific code for cursor blinking.
10774 (ns_draw_window_cursor): Clear cursor properly rather than
10775 redrawing the area. Respect width of bar cursors.
10776 These changes enable the use of generic blink-cursor-mode and
10777 generic cursor types in NS and support smooth cursor movements (do
10778 not blink off after command).
10779 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
10780 Nextstep, too.
10781
107822008-08-19 Kenichi Handa <handa@m17n.org>
10783
10784 * font.c (Vfont_log_deferred): New variable.
10785 (font_add_log): Check Vfont_log_deferred.
10786 (font_deferred_log): New function.
10787
10788 * font.h (font_deferred_log): Extern it.
10789
10790 * fontset.c (reorder_font_vector): Use encoding charset of fonts
10791 for sorting.
10792 (face_for_char): Use deferred log.
10793
107942008-08-18 Kenichi Handa <handa@m17n.org>
10795
10796 * fontset.c (face_for_char): Add font log.
10797
10798 * font.c (font_add_log): Add the font properties :script, :lang,
10799 and :otf in the log.
10800
108012008-08-17 Chong Yidong <cyd@stupidchicken.com>
10802
10803 * xdisp.c: Remove dead code.
10804 (handle_invisible_prop, next_overlay_string): Defer call to
10805 setup_for_ellipsis.
10806 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
10807
108082008-08-15 Chong Yidong <cyd@stupidchicken.com>
10809
10810 * xfaces.c (lookup_derived_face): Properly handle possible zero
10811 return value of get_lface_attributes.
10812 (merge_faces): Don't tell lookup_derived_face to signal an error
10813 if face is not found.
10814
10815 * dired.c (Fdirectory_files): Doc fix.
10816
10817 * process.c (make_process): Initialize kill_without_query struct
10818 member.
10819
108202008-08-15 Eli Zaretskii <eliz@gnu.org>
10821
10822 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10823 Alternative calculation of totphys for Visual Studio 6.
10824
10825 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10826
10827 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10828 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10829 All users changed.
10830 (stat): Only root directory passed to GetDriveType. Allow RAM
10831 disk as well as local fixed disk when w32-get-true-file-attributes
10832 is set to `local'.
10833 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10834 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10835 (w32_cached_id, w32_add_to_cache): New functions.
10836 (get_name_and_id): Look account names in the cache before calling
10837 lookup_account_sid.
10838 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10839 New initialization flags.
10840 (globals_of_w32): Initialize them to zero.
10841 (w32_system_process_attributes): Use w32_cached_id and
10842 w32_add_to_cache.
10843
108442008-08-14 Lawrence Mitchell <wence@gmx.li>
10845
10846 * lread.c (Fread_char, Fread_char_exclusive): If no character
10847 event is read before timeout is reached, return nil, rather than
10848 converting to a number.
10849
108502008-08-14 Chong Yidong <cyd@stupidchicken.com>
10851
10852 * fns.c (use_dialog_box): Doc fix.
10853
10854 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10855 on OS X.
10856
108572008-08-13 Chong Yidong <cyd@stupidchicken.com>
10858
10859 * frame.c (Qns_parse_geometry): New var.
10860 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10861
108622008-08-11 Chong Yidong <cyd@stupidchicken.com>
10863
10864 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10865 space character in calculating tabs.
10866
108672008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10868
10869 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10870
108712008-08-10 Glenn Morris <rgm@gnu.org>
10872
10873 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10874 silence gcc "limited range of data type" warnings in some
10875 make_fixnum_or_float calls.
10876
108772008-08-09 Eli Zaretskii <eliz@gnu.org>
10878
10879 * w32.c (w32_system_process_attributes): If the process does not
10880 exist, return nil.
10881
10882 * w32.c: Include thelp32.h, psapi.h and coding.h.
10883 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10884 declarations.
10885 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10886 (Process32Next_Proc): New typedefs.
10887 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10888 (g_b_init_process32_next, g_b_init_open_thread_token)
10889 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10890 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10891 (g_b_init_get_process_working_set_size)
10892 (g_b_init_global_memory_status_ex): New static variables.
10893 (globals_of_w32): Initialize them.
10894 (create_toolhelp32_snapshot, process32_first, process32_next)
10895 (open_thread_token, impersonate_self, revert_to_self)
10896 (get_process_memory_info, get_process_working_set_size)
10897 (global_memory_status, global_memory_status_ex): New wrapper
10898 functions.
10899 (w32_list_system_processes, w32_system_process_attributes)
10900 (enable_privilege, restore_privilege, ltime, process_times):
10901 New functions.
10902 (convert_time_raw): New function.
10903 (convert_time): Remove conversion of FILETIME into time in 100
10904 nsec units, call convert_time_raw instead.
10905
10906 * process.h (w32_list_system_processes, w32_system_process_attributes):
10907 Add prototypes.
10908 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10909 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10910 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10911 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10912
10913 * process.c (Fsystem_process_attributes): Doc fix.
10914
109152008-08-08 Chong Yidong <cyd@stupidchicken.com>
10916
10917 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10918 a continued multi-char glyph; if so, advance to the actual glyph.
10919
109202008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10921
10922 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10923
10924 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10925 (.m.o): Use it.
10926 * config.in: Regenerate.
10927
109282008-08-07 Chong Yidong <cyd@stupidchicken.com>
10929
10930 * xdisp.c (redisplay_window): Revert last change.
10931 (try_window): Check bottom scroll margin too.
10932
109332008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10934
10935 * config.in: Regenerate.
10936
10937 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10938 -list-load-path-shadows'.
10939 (nsgui.h): Reduce number of things depending on it.
10940
109412008-08-06 Chong Yidong <cyd@stupidchicken.com>
10942
10943 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10944 instead of window-end which does the wrong thing at eob.
10945 (try_cursor_movement): Minor optimization.
10946 (redisplay_window): If scroll margin is defined, don't assume
10947 window doesn't need scrolling.
10948
109492008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10950
10951 * config.in: Regenerate.
10952
10953 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10954 (mostlyclean): Don't delete *.d under NS.
10955
10956 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10957
109582008-08-06 Kenichi Handa <handa@m17n.org>
10959
10960 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10961
109622008-08-06 Andreas Schwab <schwab@suse.de>
10963
10964 * config.in: Regenerate.
10965
109662008-08-05 Chong Yidong <cyd@stupidchicken.com>
10967
10968 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10969 forcing a window start.
10970
10971 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10972 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10973
109742008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10975
10976 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10977 argument.
10978
109792008-08-05 Juanma Barranquero <lekktu@gmail.com>
10980
10981 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10982 <scroll-down-aggressively, before-change-functions>:
10983 <after-change-functions>: Reflow docstrings.
10984
109852008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 10986 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
10987
10988 Dock menu customization, based on a patch by Ken Raeburn, plus some
10989 other fixes.
10990 * nsmenu.m (dockMenu): New variable.
10991 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10992
10993 * nsterm.h (dockMenu): Declare.
10994
10995 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10996 (ns_term_init): Initialize dockMenu.
10997 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10998 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10999 left.
11000
11001 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11002
110032008-08-04 Chong Yidong <cyd@stupidchicken.com>
11004
11005 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11006
11007 * config.in: Regenerate.
11008
110092008-08-04 Seiji Zenitani <zenitani@mac.com>
11010
11011 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11012
110132008-08-04 Chong Yidong <cyd@stupidchicken.com>
11014
11015 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11016
110172008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11018
11019 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11020
11021 * keyboard.h: Comment an #endif.
11022
11023 * lisp.h (have_menus_p): Adjust comment.
11024
11025 * menu.c (find_and_return_menu_selection): Fix comparison with
11026 client_data.
11027
11028 * nsmenu.m (popup_activated_flag): New variable.
11029 (popup_activated): New function.
11030 (menu-or-popup-active-p): New exported lisp definition.
11031 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11032 when popup done.
11033 (ns_popup_dialog): Set popup_activated_flag.
11034
11035 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11036 version for GNUstep (handled by conditional typedef in nsterm.m).
11037 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11038 in rgb.txt).
11039
11040 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11041
11042 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11043
11044 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11045
11046 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11047 shortcircuit if popup_activated like GTK and X toolkit.
11048
11049 * m/inter386.h: Change DARWIN to DARWIN_OS.
11050
11051 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11052 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11053 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11054 comment on NO_SOCK_SIGIO.
11055
110562008-08-03 Chong Yidong <cyd@stupidchicken.com>
11057
11058 * nsterm.m (windowDidResize): Remove stopModal call.
11059
110602008-08-03 Andreas Schwab <schwab@suse.de>
11061
11062 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11063 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11064
110652008-08-02 Chong Yidong <cyd@stupidchicken.com>
11066
11067 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11068 Don't use uninitialized pointer variable when using getrlimit.
11069
110702008-08-02 Jason Rumney <jasonr@gnu.org>
11071
11072 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11073
110742008-08-02 Eli Zaretskii <eliz@gnu.org>
11075
11076 * alloc.c (NSTATICS): Bump to 0x640.
11077
11078 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11079
11080 * lisp.h: Add prototype for directory_files_internal.
11081
11082 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11083 New functions.
11084 (syms_of_process): Defsubr them. Add initializations for various
11085 Q* symbols used in procfs_system_process_attributes.
11086 (procfs_list_system_processes, procfs_system_process_attributes)
11087 [HAVE_PROCFS]: New functions.
11088 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11089 (procfs_get_total_memory): New functions.
11090
110912008-08-01 Juanma Barranquero <lekktu@gmail.com>
11092
11093 * xfaces.c (Fx_load_color_file): Fix previous change;
11094 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11095
110962008-08-01 Michael Albinus <michael.albinus@gmx.de>
11097
11098 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11099
111002008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11101
11102 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11103
111042008-08-01 Chong Yidong <cyd@stupidchicken.com>
11105
11106 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11107
11108 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11109 define NSApplicationDelegateReplySuccess.
11110 (EmacsView -converstationIdentifier): Use long instead of
11111 NSInteger for GNUstep, since it doesn't have NSInteger.
11112
11113 * xmenu.c: Revert last change.
11114
11115 * keyboard.h: Fix last change.
11116
111172008-08-01 Juanma Barranquero <lekktu@gmail.com>
11118
11119 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11120 on Windows.
11121
111222008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11123
11124 Warning clearing and clean-up in NS port.
11125 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11126 Add prototypes.
11127 * nsgui.h (FACE_DEFAULT): Remove, unused.
11128 (XGCValues): Change colors to unsigned long.
11129 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11130 nsterm.m.
11131 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11132 (ns_list_fonts): Remove, unused.
11133 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11134 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11135 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11136 (nsfont_draw): Compare face colors to 0, not nil.
11137 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11138 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11139 (-addSubmenuWithTitle:): Use NSMenuItem class.
11140 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11141 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11142 (ns_clip_to_row): Make gc arg a BOOL.
11143 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11144 ns_clip_to_row() call.
11145 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11146 used). Cast FRAME_FONT assignments.
11147 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11148 (ns_string_to_lispmod): Change arg to const char.
11149 (ns_term_init): Use NSMenuItem class.
11150 (EmacsApp -openFile:): Move to different section of file.
11151 (EmacsApp -application:openFiles:): Don't return a value, call
11152 -replyToOpenOrPrint:.
11153 (EmacsView -keyDown:): Fix up cast.
11154 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11155 (EmacsView -menuDown:): Cast tag in call to
11156 find_and_call_menu_selection().
11157 (ns_list_fonts): Remove, unused.
11158 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11159 (ns_fontname_to_xlfd): Make static.
11160 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11161 Remove prototypes (now in keyboard.h).
11162 (next_menubar_widget_id): Remove, unused.
11163 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11164 Remove prototypes (now in keyboard.h).
11165 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11166
111672008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11168
11169 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11170 (floatfns.o): Depend on syssignal.h.
11171 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11172
11173 * systty.h: Fix previous change that removed BSD_TERMIOS.
11174 Add comments to #ifdefs.
11175
111762008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11177
11178 * w32fns.c (w32-load-color-file): Remove.
11179 (x-open-connection): Use renamed Fx_load_color_file.
11180 * xfaces.c (x-load-color-file): Add.
11181 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11182 Emacs.clr.
11183 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11184
111852008-07-31 Michael Albinus <michael.albinus@gmx.de>
11186
11187 * dbusbind.c (Fdbus_call_method_asynchronously)
11188 (Fdbus_method_error_internal): New defuns.
11189 (xd_read_message): Handle also reply messages.
11190 (Vdbus_registered_functions_table): Extend docstring.
11191
111922008-07-31 Juanma Barranquero <lekktu@gmail.com>
11193
11194 * keyboard.c (gobble_input): Fix previous change.
11195
111962008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11197
11198 * bitmaps/README:
11199 * xfns.c:
11200 * termcap.c:
11201 * term.c:
11202 * syswait.h:
11203 * systty.h:
11204 * systime.h:
11205 * syssignal.h:
11206 * sysdep.c:
11207 * process.h:
11208 * process.c:
11209 * print.c:
11210 * ndir.h:
11211 * lread.c:
11212 * keyboard.c:
11213 * getpagesize.h:
11214 * floatfns.c:
11215 * fileio.c:
11216 * emacs.c:
11217 * doc.c:
11218 * dispnew.c:
11219 * dired.c:
11220 * data.c:
11221 * callproc.c:
11222 * buffer.c:
11223 * README:
11224 * Makefile.in:
11225 * s/template.h:
11226 * s/msdos.h:
11227 * m/vax.h: Remove VMS support.
11228 * s/vms.h:
11229 * vlimit.h:
11230 * uaf.h:
11231 * temacs.opt:
11232 * param.h:
11233 * ioctl.h: Remove file.
11234
112352008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11236
11237 * s/ms-w32.h (MULTI_KBOARD): Remove.
11238 * xterm.c:
11239 * xselect.c:
11240 * xfns.c:
11241 * window.c:
11242 * w32term.c:
11243 * w32fns.c:
11244 * terminal.c:
11245 * termhooks.h:
11246 * term.c:
11247 * sysdep.c:
11248 * keyboard.h:
11249 * keyboard.c:
11250 * frame.h:
11251 * frame.c:
11252 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11253 * config.in: Regenerate.
11254
112552008-07-30 Jason Rumney <jasonr@gnu.org>
11256
11257 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11258
11259 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11260 (w32font_open_internal): Get unicode version of textmetrics.
11261 Don't enable or disable glyph indices here.
11262 (w32font_open): Disable use of glyph indices.
11263
11264 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11265
112662008-07-30 Chong Yidong <cyd@stupidchicken.com>
11267
11268 * minibuf.c (Vread_buffer_function): Doc fix.
11269
112702008-07-30 John Paul Wallington <jpw@pobox.com>
11271
11272 * minibuf.c (read_buffer_completion_ignore_case): New var.
11273 (Fread_buffer): Use it.
11274
112752008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11276
11277 * systty.h (sensemode): Remove empty #if. Remove reference to
11278 BSD_TERMIOS, unused.
11279
11280 * sysdep.c: Remove reference to DGUX.
11281 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11282
11283 * config.in: Regenerate.
11284
112852008-07-30 Jason Rumney <jasonr@gnu.org>
11286
11287 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11288
112892008-07-29 Jason Rumney <jasonr@gnu.org>
11290
11291 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11292 is populated.
11293 (uniscribe_encode_char): Always use uniscribe.
11294 Avoid using context if cache is populated.
11295
112962008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11297
11298 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11299 open menu.
11300
11301 * gtkutil.c (menu_nav_ended): Remove.
11302 (create_menus): Remove signal connect for menu_nav_ended.
11303
113042008-07-28 Chong Yidong <cyd@stupidchicken.com>
11305
11306 * xdisp.c (redisplay_window): Check return value of
11307 compute_window_start_on_continuation_line before forcing a window
11308 start.
11309
113102008-07-28 Jason Rumney <jasonr@gnu.org>
11311
11312 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11313
11314 * w32term.c (w32_enable_unicode_output, cleartype_active):
11315 Remove obsolete display options.
11316 (x_draw_glyph_string_background): Don't use old cleartype_active
11317 workaround.
11318 (w32_initialize): Remove cleartype_active initialization.
11319 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11320
113212008-07-28 Andreas Schwab <schwab@suse.de>
11322
11323 * lisp.h (init_weak_hash_tables, syms_of_font)
11324 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11325 (remove_hash_entry): Don't declare.
11326 * eval.c (maybe_call_debugger): Make static and move before use.
11327 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11328 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11329 * xterm.h (x_set_frame_alpha): Declare.
11330
113312008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11332
11333 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11334 (create_menus): Connect selection-done to menu_nav_ended.
11335
113362008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11337
11338 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11339 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11340 parameter with read of 'alpha' one.
11341 (Qns_frame_parameter): Remove.
5582fbc7 11342 * nsselect.m (selection-coding-system)
aac0c6e3
MR
11343 (next-selection-coding-system, Vselection_coding_system)
11344 (Vnext_selection_coding_system): Drop.
11345
113462008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11347
11348 * nsfns.m (do-applescript, do_applescript): Rename to
11349 ns-do-applescript, ns_do_applescript, and move within file.
11350
113512008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11352
11353 Remove support for Mac Carbon.
11354 * mactoolbox.c:
11355 * macterm.h:
11356 * macterm.c:
11357 * macselect.c:
11358 * macmenu.c:
11359 * macgui.h:
11360 * macfns.c:
11361 * mac.c: Remove file.
11362 * s/darwin.h:
11363 * m/intel386.h:
11364 * xfaces.c:
11365 * xdisp.c:
11366 * window.c:
11367 * tparam.c:
11368 * termhooks.h:
11369 * termcap.c:
11370 * term.c:
11371 * syssignal.h:
11372 * sysselect.h:
11373 * sysdep.c:
11374 * process.c:
11375 * lread.c:
11376 * lisp.h:
11377 * keyboard.c:
11378 * image.c:
11379 * fringe.c:
11380 * frame.h:
11381 * frame.c:
11382 * fontset.c:
11383 * font.h:
11384 * font.c:
11385 * fns.c:
11386 * fileio.c:
11387 * emacs.c:
11388 * dispnew.c:
11389 * dispextern.h:
11390 * config.in:
11391 * atimer.c:
2ae37cf0 11392 * Makefile.in: Remove code for Carbon.
aac0c6e3 11393
f0131492 113942008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11395
11396 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11397
113982008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11399
11400 * macterm.h (kCGBitmapByteOrder32Host): New define for
11401 non-universal SDKs.
11402
11403 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11404 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11405
11406 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11407 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11408
114092008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11410
11411 * w32inevt.c: Include dispextern.h.
11412
114132008-07-26 Andreas Schwab <schwab@suse.de>
11414
11415 * print.c (print_object): Fix off-by-one in last change.
11416
114172008-07-25 Juanma Barranquero <lekktu@gmail.com>
11418
11419 * term.c (syms_of_term): Don't initialize default_orig_pair,
11420 default_set_foreground and default_set_background on Windows.
11421
114222008-07-25 Jason Rumney <jasonr@gnu.org>
11423
11424 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11425 ScriptItemize. Clean up return value checking. Remove unused
11426 variables.
11427 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11428 shaping engine.
11429
11430 * w32font.c (w32font_has_char): Handle the case where we can't
11431 determine the script for a character.
11432
114332008-07-25 Chong Yidong <cyd@stupidchicken.com>
11434
11435 * term.c (syms_of_term): Initialize default_orig_pair,
11436 default_set_foreground, and default_set_background.
11437
11438 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11439 clash (bug#86).
11440 (getloadavg): Callers changed.
11441
11442 * image.c (svg_load_image): Fix last change.
11443 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11444 image size is valid. Use g_object_unref instead of deprecated
11445 rsvg_handle_free to free rsvg handle.
11446 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11447
114482008-07-25 Jason Rumney <jasonr@gnu.org>
11449
11450 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11451 surrogates before looking up glyph index.
11452 (w32font_text_extents): Encode as surrogates if falling back to
11453 functions that need UTF-16 wide chars.
11454
11455 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11456 BMP as surrogates before looking up glyph index.
11457
114582008-07-25 Chong Yidong <cyd@stupidchicken.com>
11459
11460 * image.c (svg_load_image): Check for failure in return value of
11461 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11462
114632008-07-25 Jason Rumney <jasonr@gnu.org>
11464
11465 * w32font.c (Fx_select_font): Reverse sense of second arg.
11466
114672008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11468
11469 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11470 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11471
11472 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11473 (PURESIZE): Use it.
11474
114752008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11476
11477 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11478 * m/alpha.h (TEXT_END):
11479 * m/ibmrs6000.h (TEXT_END):
11480 * m/macppc.h (TEXT_END):
11481 * s/darwin.h (TEXT_END):
11482 * s/msdos.h (TEXT_END): Remove, unused.
11483 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11484 * s/cygwin.h: Remove comment.
11485
11486 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11487 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11488 * m/intel386.h (DOT_GLOBAL_START):
11489 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11490 (USG): Remove, file not used on USG platforms.
11491
11492 * Makefile.in (HAVE_X11): Remove empty #else.
11493
114942008-07-24 Andreas Schwab <schwab@suse.de>
11495
11496 * fileio.c (Finsert_file_contents): Properly adjust undo list
11497 after format conversion.
11498
114992008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11500
11501 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11502 (menu_nav_ended): Remove.
11503 (create_menus): Remove signal connect for menu_nav_ended.
11504 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11505 create_menus.
11506 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11507
115082008-07-23 Jason Rumney <jasonr@gnu.org>
11509
11510 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
11511 with opened font.
11512 (w32font_open): Set font type to gdi.
11513
11514 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
11515
115162008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
11517
11518 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
11519 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
11520 defines it.
11521 * unexec.c (ADDR_CORRECT): Define unconditionally.
11522
11523 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
11524
11525 * unexec.c: Remove code depending on !COFF and USG, the file is
11526 not used for such systems.
11527
11528 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
11529 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
11530 (LD_SWITCH_SYSTEM_1): Remove, update users.
11531
11532 * s/darwin.h (DATA_END):
11533 * m/intel386.h (DATA_END):
11534 * m/ibmrs6000.h (DATA_END):
11535 * m/alpha.h (DATA_END): Remove, unused.
11536
11537 * config.in: Regenerate.
11538 * s/ms-w32.h (subprocesses): Define unconditionally.
11539 * s/template.h (subprocesses): Update comment.
11540 * s/vms.h (subprocesses):
11541 * s/usg5-4.h (subprocesses):
11542 * s/hpux10-20.h (subprocesses):
11543 * s/gnu-linux.h (subprocesses):
11544 * s/cygwin.h (subprocesses):
11545 * s/bsd-common.h (subprocesses):
11546 * s/aix4-2.h (subprocesses):
11547 * s/darwin.h (subprocesses): Do not define, defined by default now.
11548
11549 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11550 Remove all references.
11551 (temacs): Add GNUstep specific ld flags.
11552
11553 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11554 similarly to what X does.
11555
115562008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11557
11558 * nsfns.m (x-list-fonts): Remove.
11559 (syms_of_nsfns): Drop the x-list-fonts declaration.
11560 * nsterm.m: Get rid of remaining "//" comments.
11561
115622008-07-22 Chong Yidong <cyd@stupidchicken.com>
11563
11564 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11565
11566 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11567 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11568 (Fns_own_selection_internal, Fx_disown_selection_internal)
11569 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11570
11571 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11572 ... */' style of docstrings. Doc fixes.
11573
115742008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11575
11576 * terminfo.c (UP, BC, PC): Undo previous change.
11577
11578 * nsfns.m: Rename ns prefixed functions/variables to the
11579 corresponding x versions. Update references.
11580
115812008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11582
11583 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11584
115852008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11586
11587 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11588 Remove forwarding functions.
11589 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11590 non-static.
11591 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11592 non-static.
11593 (ns_frame_parm_handlers): Use the new names.
11594 (syms_of_nsfns): Move to the end of file.
11595
11596 * nsterm.m (syms_of_nsterm): Move to the end of file.
11597
11598 * dispnew.c (init_display): Remove code for X10.
11599
116002008-07-22 Jason Rumney <jasonr@gnu.org>
11601
11602 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11603 bare drive.
11604
116052008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11606
11607 * nsterm.m (syms_of_nsterm): Remove debugging println.
11608
116092008-07-22 David Reitter <david.reitter@gmail.com>
11610
11611 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11612 Carbon implementation of the same functionality: execute arbitrary
11613 AppleScript code.
11614
116152008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11616
11617 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11618 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11619 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11620 (Fx_display_mm_height, Fx_display_mm_width)
11621 (Fx_display_backing_store, Fx_display_visual_class)
11622 (Fx_display_save_under, Fx_open_connection)
11623 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11624 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11625 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11626 (Fx_display_pixel_width, Fx_display_pixel_height)
11627 (Fx_display_usable_bounds, Fx_display_planes)
11628 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11629 ... */' style of docstrings.
11630
116312008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11632
11633 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11634 on this platform.
11635 (mips):
11636 * m/iris4d.h (mips): Do not define.
11637 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11638
11639 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11640
11641 * image.c:
11642 * nsfns.m:
11643 * nsselect.m:
11644 * nsterm.h:
11645 * nsterm.m: Rename ns prefixed functions/variables to the
11646 corresponding x versions. Update references.
11647
11648 * m/ibms390x.h (NO_REMAP): Do not undefine.
11649
11650 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11651
116522008-07-21 Chong Yidong <cyd@stupidchicken.com>
11653
11654 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
11655 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
11656 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
11657 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
11658 (Fns_display_mm_height, Fns_display_mm_width)
11659 (Fns_display_backing_store, Fns_display_visual_class)
11660 (Fns_display_save_under, Fns_open_connection)
11661 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
11662 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
11663 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11664 (Fns_display_pixel_width, Fns_display_pixel_height)
11665 (Fns_display_usable_bounds, Fx_display_planes)
11666 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
11667
116682008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
11669
11670 * print.c (print_object): Check print_depth before searching for
11671 circularities.
11672
116732008-07-21 Michael Albinus <michael.albinus@gmx.de>
11674
11675 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
11676 only sprintf.
11677
116782008-07-21 Kenichi Handa <handa@m17n.org>
11679
11680 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
11681
116822008-07-20 Andreas Schwab <schwab@suse.de>
11683
11684 * syntax.c (find_start_pos, find_start_value)
11685 (find_start_value_byte, find_start_begv, find_defun_start)
11686 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
11687
116882008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11689
11690 * s/sol2-3.h: Insert contents of s/sol2.h.
11691 (LD_SWITCH_SYSTEM): Remove redundant definition.
11692 * s/sol2.h: Remove, unused.
11693
116942008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11695
11696 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
11697
116982008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11699
11700 * Makefile.in (ns_appdir): Fix typo in find command.
11701
117022008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11703
11704 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
11705
11706 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
11707 added not supported anymore.
11708
11709 * s/usg5-4-2.h (LIBS_SYSTEM):
11710 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
11711
11712 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11713 * s/lynxos.h (GETPGRP_NO_ARG):
11714 * s/hpux10-20.h (NO_SIOCTL_H):
11715 * s/gnu.h (GETPGRP_NO_ARG):
11716 * s/gnu-linux.h (NO_SIOCTL_H):
11717 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11718 * s/cygwin.h (GETPGRP_NO_ARG):
11719 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
11720 (C_DEBUG_SWITCH): Remove duplicate definition.
11721
11722 * m/ibms390.h: Remove boilerplate comments.
11723
11724 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
11725
11726 * process.c (HAVE_SERIAL): Consolidate ifdefs.
11727 (wait_reading_process_output): Remove code for SunOS, platform not
11728 supported anymore. Use SOLARIS2 instead of sun.
11729
117302008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11731
11732 * font.c (font_open_by_name): Under NS, default lface height to zero.
11733 (font_open_for_lface): Under NS, set size based on frame fontsize.
11734 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
11735 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
11736
117372008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11738
11739 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
11740 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
11741 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
11742 YES/NO.
11743 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
11744 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
11745 * Makefile.in (clean): Clear out build destination dir.
11746
117472008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11748
11749 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
11750 xterm, xselect.
11751 * lisp.h: Remove declaration of hash_remove.
11752 * nsgui.h: Remove redefinitions of hash_remove.
11753 * fns.c (hash_remove): Rename to hash_remove_from_table.
11754
117552008-07-19 Seiji Zenitani <zenitani@mac.com>
11756
11757 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
11758 strdup() the family UTF8String before modifying it.
11759
117602008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11761
11762 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
11763 NS_FACE_BACKGROUND with 0 instead of nil.
11764 * nsfont.m (nsfont_draw): Same.
11765
117662008-07-19 Chong Yidong <cyd@stupidchicken.com>
11767
11768 * nsfns.m (ns_set_background_color): Fix crash.
11769
117702008-07-18 Chong Yidong <cyd@stupidchicken.com>
11771
11772 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
11773
117742008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
11775
11776 * puresize.h (BASE_PURESIZE): Increase to 1240000.
11777
117782008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11779
11780 * gtkutil.c: Include <config.h> instead of "config.h".
11781
11782 * lisp.h (Foverlay_buffer): Add EXFUN.
11783
11784 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
11785 child process to complete child_setup. Undo 2005-09-21 change.
11786
11787 * s/darwin.h: Mention setsid after vfork.
11788
117892008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11790
11791 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
11792 Depend on macgui.h.
11793
11794 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
11795 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
11796
11797 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
11798 and f19.
11799 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
11800
11801 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
11802 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
11803 Remove enumerators.
11804
11805 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
11806 Check if FACE_FROM_ID returns NULL.
11807
118082008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
11809
11810 * w32inevt.c (change_frame_size): Remove extern declaration.
11811 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
11812 change_frame_size.
11813
118142008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11815
11816 * getloadavg.c: Revert last change (2008-07-15).
11817
118182008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11819
11820 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 11821 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
11822 from configure.
11823
118242008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11825
11826 * s/sol2.h:
11827 * s/sol2-4.h: Reorganize conditionals.
11828
11829 * ecrt0.c: Remove code depending on m68000, not used anymore.
11830
11831 * fns.c (hash_remove): Make static.
11832 * lisp.h (hash_remove): Don't prototype.
11833
11834 * m/ibmrs6000.h:
11835 * m/ibms390x.h:
11836 * m/macppc.h: Remove boilerplate comments.
11837
11838 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11839 Solaris, which does not need them.
11840
11841 * m/vax.h: Remove comments about unsupported systems.
11842
11843 * s/darwin.h: Reorganize ifdefs.
11844
118452008-07-17 Andreas Schwab <schwab@suse.de>
11846
11847 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11848
118492008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11850
11851 Use SDATA. Follow coding convention of placing operators at
11852 beginning of next line rather than end of previous line, and placing
11853 spaces around infix operators.
11854
11855 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11856 in case it was defined already.
11857 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11858 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11859 ns_default.
11860 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11861 Lisp_Objects.
11862 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11863 (ns_defined_color, ns_color_to_lisp): Declare.
11864 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11865 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11866 it's accepted even with USE_LISP_UNION_TYPE.
11867 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11868 (update_frame_tool_bar): Remove apparently obsolete tests for
11869 non-integerness of f->tool_bar_lines.
11870 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11871 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11872 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11873 (nsfont_open): Don't confuse NULL for Qnil.
11874 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11875 * menu.h (find_and_call_menu_selection):
11876 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11877 (find_and_return_menu_selection): Always return something.
11878 * frame.h: Include dispextern.h for Display_Info.
11879 (display_x_get_resource): Declare.
11880
118812008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11882
11883 * syntax.c: Remove stdio.h include accidentally introduced in
11884 Emacs.app commit.
11885 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11886 NS_IMPL_COCOA.
11887 * keyboard.c (handle_async_input, input_available_signal): Remove
11888 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11889
118902008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11891
11892 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11893 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11894 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11895 Use SDATA.
11896
11897 * keymap.c: Remove all NS-specific code.
11898 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11899 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11900 where_is_preferred_modifier, return a different value depending on how
11901 preferred is the binding.
11902 (where_is_internal): Adjust accordingly.
11903 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11904 Adjust to new preferred_sequence_p.
11905 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11906 * keyboard.c (parse_solitary_modifier): Not static any more.
11907 * keyboard.h (parse_solitary_modifier): Declare.
11908
119092008-07-16 Andreas Schwab <schwab@suse.de>
11910
11911 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11912 of easymenu.
11913
119142008-07-16 Chong Yidong <cyd@stupidchicken.com>
11915
11916 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11917 that we don't move off the line.
11918
119192008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11920
11921 * keyboard.c (Qsuper): Remove.
11922 (parse_menu_item): Don't call where_is_internal specially for NS.
11923
119242008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11925
11926 * s/gnu-linux.h: Remove boilerplate comments.
11927
11928 * m/alpha.h (__ELF__): Consolidate conditions.
11929
11930 * m/m68k.h (linux): Use GNU_LINUX instead.
11931 Remove boilerplate comments.
11932
11933 * m/intel386.h: Undo refactoring from previous change.
11934 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11935 too, remove dead code.
11936 (linux): Use GNU_LINUX instead.
11937
119382008-07-16 Jason Rumney <jasonr@gnu.org>
11939
11940 * w32gui.h: Repeat 26 June changes lost by last change.
11941
119422008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11943
11944 * systty.h: Remove code for Aix on 386, unsupported platform.
11945
11946 * s/ms-w32.h: Remove boilerplate comments.
11947 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11948
11949 * s/gnu-linux.h (TERM): Remove support.
11950 (HAVE_SYSVIPC): Remove, unused.
11951 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11952 for this system.
11953
11954 * process.c: Remove support for IRIS, unused.
11955 Remove support for TERM, not relevant anymore.
11956
11957 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11958 used with the definition.
11959
11960 * s/aix4-2.h (static): Do not undef.
11961
11962 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11963 only used on Aix.
11964 (HAVE_SYSVIPC): Remove, unused.
11965
11966 * m/hp800.h (CANNOT_DUMP): Do not undef.
11967
11968 * m/alpha.h: Fix comment.
11969
11970 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11971 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11972 used by this configuration.
11973 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11974 * unexec.c: Remove code depending on HPUX and
11975 USG_SHARED_LIBRARIES, not used with this file. Remove code
11976 depending on IRIS, unused. Remove if 0-ed code.
11977
11978 * s/template.h: Remove comments about static.
11979
11980 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11981 Remove if 0-ed code.
11982 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11983 were the same as the default.
11984 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11985 Remove boilerplate comments.
11986 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11987 (HAVE_SYSVIPC): Remove, unused.
11988 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11989
11990 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11991 Remove boilerplate comments.
11992 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11993 Remove boilerplate comments.
11994 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11995 Remove boilerplate comments.
11996 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11997
11998 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11999 USG systems which do not use DATA_SEG_BITS.
12000 Refactor code. Remove boilerplate comments.
12001
12002 * m/ibms390.h:
12003 * m/m68k.h:
12004 * s/bsd-common.h:
12005 * s/cygwin.h:
12006 * s/darwin.h:
12007 * s/freebsd.h:
12008 * s/gnu.h:
12009 * s/msdos.h: Remove boilerplate comments.
12010
12011 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12012 do not use this file.
aac0c6e3
MR
12013 (IRIS_4D): Remove, unused.
12014
12015 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12016 do not use this file.
aac0c6e3
MR
12017 (SIGN_EXTEND_CHAR):
12018 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12019 * unexmips.c: Remove file, unused.
12020
12021 * editfns.c (Fuser_full_name): Replace the only use of
12022 USER_FULL_NAME with its value.
12023 * config.in: Regenerate.
12024
120252008-07-16 David Reitter <david.reitter@gmail.com>
12026
12027 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12028 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12029
120302008-07-16 Glenn Morris <rgm@gnu.org>
12031
12032 * emacs.c (system-type): Doc fix.
12033
120342008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12035
12036 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12037 If the cache doesn't work, let's fix it, rather than work around it.
12038
120392008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12040
12041 * Makefile.in: Correct additions for nsfont.o in last commit.
12042 * nsfont.m: New file (forgot last commit).
12043
120442008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12045
12046 * callproc.c (set_initial_environment): Initialize
12047 Vprocess_environment under CANNOT_DUMP (fixes crash when
12048 batch-compiling for bootstrap).
12049
120502008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12051 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12052
12053 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
12054 fix crash due to different init order.
12055
120562008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12057
12058 Changes and additions for NeXTstep windowing system (Cocoa and
12059 GNUstep) support.
12060
12061 * Makefile.in:
12062 * config.in: Support defines and build commands for NS port.
12063 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12064 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12065 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12066 windowing.
12067 (struct face): Add synth_ital field.
12068 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12069 (init_display): Initialize Vinitial_window_system to "ns" when so
12070 compiled.
12071 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12072 (display_arg): Use under NS.
12073 (main): Under NS, allocate autorelease pool and handle command line
12074 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12075 (standard_args): Add NS-specific args.
12076 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12077 * font.c (DEFAULT_ENCODING): New variable.
12078 (font_find_for_lface): Use it.
12079 (syms_of_font): Load syms_of_nsfont under NS.
12080 * font.h: Declare nsfont_driver when compiled under NS.
12081 * fontset.c: When compiling under NS, include nsterm.h.
12082 (fontset_from_font): Autoconstruct fontset under NS.
12083 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12084 symbol, document and use it.
12085 (do_switch_frame): When for_deletion under Cocoa, add
12086 Fraise_frame(Qnil).
12087 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12088 (x_get_arg): Allow "yes" and "no" as boolean values.
12089 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12090 Qright under Cocoa.
12091 (focus-follows-mouse): Default to 0 under NS.
12092 * frame.h (enum output_method): Add output_ns.
12093 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12094 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12095 (FRAME_WINDOW_P): NS-specific definition.
12096 * fringe.c (max_used_fringe_bitmap): Make public.
12097 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12098 (getloadavg): Use NeXT code under descendant OS's.
12099 * image.c (includes and header section, x_create_bitmap_from_data)
12100 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12101 (image_background_transparent, x_clear_image_1)
12102 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12103 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12104 (x_to_xcolors, x_from_xcolors, x_disable_image)
12105 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12106 other GUIs, including XPM support using code originally written for
12107 Carbon GUI.
12108 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12109 using NS API.
12110 (image_ascent): Use font metrics macros instead of direct struct field
12111 access.
12112 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12113 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12114 Also, handle NS as GTK for menu bar purposes.
12115 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12116 toolkit where they differ.
12117 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12118 use cachelist, still needed under NS.
12119 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12120 (struct widget_value): Define it here for menu.c.
12121 * keymap.c (includes): Include modifier internals.
12122 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12123 NS.
12124 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12125 support for preferring sequences using certain modifiers, specified by
12126 the FIRSTONLY argument.
12127 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12128 under NS GNUstep implementation.
12129 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12130 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12131 * menu.c: Include nsterm.h under NS.
12132 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12133 (free_menubar_widget_tree_value, update_submenu_strings)
12134 (find_and_call_menu_selection): Treat NS as X and NT.
12135 (find_and_return_menu_selection): New function, used for popup menus.
12136 * nsgui.h:
12137 * nsterm.h:
12138 * nsfns.m:
12139 * nsimage.m:
12140 * nsmenu.m:
12141 * nsselect.m:
12142 * nsterm.m: New files.
12143 * process.c (wait_reading_process_output): Under NS, call ns_select()
12144 instead of plain select().
12145 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12146 beginning of buffer.
12147 * sysselect.h (init_process): Rename when compiling under Cocoa to
12148 avoid name conflict.
12149 * termhooks.h (display_info): Add ns_display_info to union.
12150 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12151 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12152 COCOA environment.
12153 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12154 unexec() signature. (Note, this will dump, but the resulting file
12155 crashes; unexosx is used instead; keeping around for reference and
12156 possible aid in getting dump working under GNUstep.)
12157 * w32gui.h (button_type, widget_value): Remove definitions (now in
12158 keyboard.h).
12159 * window.c: Include nsterm.h when compiling under NS.
12160 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12161 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12162 other GUI windowing systems.
12163 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12164 GTK.
12165 (x_consider_frame_title): Under NS, set icon type and frame
12166 modified-state indicator; use ns_set_name_as_filename() when using
12167 formatted title.
12168 (update_window_cursor): Make public when compiling under NS.
12169 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12170 (hourglass_atimer, Vhourglass_delay
12171 * xfaces.c (header section, init_frame_faces, clear_font_table)
12172 (defined_color, unload_color, x_face_list_fonts)
12173 (prepare_face_for_display): Add NS support parallel to other GUIs.
12174 Emulate GCs like other non-X GUIs.
12175 (split_font_name): Don't lowercase font name under NS.
12176 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12177 under NS.
12178 * s/darwin.h: Add support for compilation under NS.
12179
121802008-07-15 Jason Rumney <jasonr@gnu.org>
12181
12182 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12183 (w32_show_hourglass): Rename from show_hourglass.
12184 (w32_hide_hourglass): Rename from hide_hourglass.
12185 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12186 (Vhourglass_delay): Declare extern.
12187 (hourglass_started): Remove.
12188
12189 * xdisp.c (Vhourglass_delay): Remove static.
12190 (hourglass_started, start_hourglass, cancel_hourglass):
12191 Don't include these versions on WINDOWSNT.
12192
121932008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12194
12195 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12196 variables (formerly in xfns.c).
12197 (show_hourglass, hide_hourglass): New prototypes (same).
12198 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12199 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12200 in xfns.c).
12201 (syms_of_xdisp): Declare/initialize display-hourglass,
12202 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12203 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12204 formerly in xfns.c.
12205 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12206 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12207 (start_hourglass, cancel_hourglass): Remove.
12208 (show_hourglass, hide_hourglass): Remove prototypes and static
12209 modifiers.
12210 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12211 hourglass_atimer, hourglass_shown_p declaration/initialization.
12212 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12213 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12214 (start_hourglass, cancel_hourglass): Remove.
12215 (show_hourglass, hide_hourglass): Remove prototypes and static
12216 modifiers.
12217 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12218 hourglass_atimer, hourglass_shown_p declaration/initialization.
12219 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12220 (DEFAULT_HOURGLASS_DELAY): Remove.
12221 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12222 hourglass_shown_p declaration/initialization.
12223
122242008-07-14 Jason Rumney <jasonr@gnu.org>
12225
12226 * w32fns.c (w32_get_arg): Remove wrapper function.
12227 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12228 directly.
12229 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12230
122312008-07-14 Kenichi Handa <handa@m17n.org>
12232
12233 * xfont.c (xfont_open): Add workaround for X's bug.
12234
122352008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12236
12237 * fontset.c: Include <stdio.h> unconditionally.
12238
122392008-07-13 Michael Albinus <michael.albinus@gmx.de>
12240
12241 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12242 for filtering.
12243
122442008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12245
12246 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12247
12248 * m/macppc.h:
12249 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12250
12251 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
12252 (SPECIAL_EMACS_INT):
12253 * m/ia64.h (SPECIAL_EMACS_INT):
12254 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12255 * s/gnu.h (NLIST_STRUCT):
12256 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12257 * s/gnu-linux.h (LINUX):
12258 * s/msdos.h (HAVE_FACES):
12259 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12260
12261 * systty.h:
12262 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12263 anymore.
12264
122652008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12266
12267 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12268 always defined as int.
12269
12270 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12271 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12272 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12273 * s/freebsd.h (HAVE_WAIT_HEADER):
12274 * s/bsd-common.h (HAVE_UNION_WAIT):
12275 * s/aix4-2.h (HAVE_WAIT_HEADER):
12276 * m/mips.h (HAVE_UNION_WAIT):
12277 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12278 (COFF, static): Do not define, they are undefined later in the file.
12279
12280 * process.c (update_status): Don't use a union.
12281 (status_convert):
12282 (sigchld_handler): Use int instead of WAITTYPE.
12283
122842008-07-12 Chong Yidong <cyd@stupidchicken.com>
12285
12286 * indent.c (Fvertical_motion): Restore hscroll before moving to
12287 goal column.
12288
122892008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12290
12291 * lisp.h: Remove left over code.
12292
122932008-07-11 Andreas Schwab <schwab@suse.de>
12294
12295 * lisp.h: Fix logic in last change.
12296
12297 * menu.h: New file.
12298 * menu.c: Include it.
12299 * xmenu.c: Likewise.
12300 * Makefile.in: Update dependencies.
12301
123022008-07-11 Kenichi Handa <handa@m17n.org>
12303
12304 * fontset.c (fontset_from_font): Cancel the previous change.
12305
123062008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12307
12308 * lisp.h:
12309 * w32heap.c:
12310 * emacs.c:
12311 * alloc.c: Replace all references of NO_UNION_TYPE with
12312 USE_LISP_UNION_TYPE.
12313
12314 * m/xtensa.h (NO_UNION_TYPE):
12315 * m/vax.h (NO_UNION_TYPE):
12316 * m/template.h (NO_UNION_TYPE):
12317 * m/sparc.h (NO_UNION_TYPE):
12318 * m/mips.h (NO_UNION_TYPE):
12319 * m/macppc.h (NO_UNION_TYPE):
12320 * m/m68k.h (NO_UNION_TYPE):
12321 * m/iris4d.h (NO_UNION_TYPE):
12322 * m/intel386.h (NO_UNION_TYPE):
12323 * m/ibms390x.h (NO_UNION_TYPE):
12324 * m/ibms390.h (NO_UNION_TYPE):
12325 * m/ibmrs6000.h (NO_UNION_TYPE):
12326 * m/ia64.h (NO_UNION_TYPE):
12327 * m/hp800.h (NO_UNION_TYPE):
12328 * m/arm.h (NO_UNION_TYPE):
12329 * m/amdx86-64.h (NO_UNION_TYPE):
12330 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12331 defining it the same.
12332
123332008-07-10 Chong Yidong <cyd@stupidchicken.com>
12334
12335 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12336
123372008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12338
12339 * fileio.c:
50426a04 12340 * sysdep.c:
aac0c6e3
MR
12341 * systty.h:
12342 * m/ibmrs6000.h:
12343 * m/iris4d.h:
12344 * s/aix4-2.h:
12345 * s/freebsd.h:
12346 * s/gnu-linux.h:
12347 * s/hpux10-20.h:
12348 * s/hpux11.h:
12349 * s/netbsd.h:
12350 * s/sol2-3.h:
12351 * s/sol2-4.h:
12352 * s/sol2.h:
12353 * s/usg5-4.h:
12354 * s/vms.h: Remove references to unused variables.
12355
123562008-07-10 Andreas Schwab <schwab@suse.de>
12357
12358 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12359 pattern before matching the generic family.
12360
123612008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12362
12363 * unexec.c:
12364 * s/vms.h:
12365 * s/usg5-4-2.h:
12366 * s/sol2-5.h:
12367 * s/freebsd.h:
12368 * s/darwin.h: Remove dead code.
12369
12370 * m/template.h:
12371 * m/sparc.h:
12372 * m/mips.h:
12373 * m/m68k.h:
12374 * m/iris4d.h:
12375 * m/intel386.h:
12376 * m/ibms390x.h:
12377 * m/ibms390.h:
12378 * m/ia64.h:
12379 * m/hp800.h:
12380 * m/arm.h:
12381 * m/amdx86-64.h: Remove dead code and references to unused
12382 and compiler defined symbols.
12383
12384 * unexmips.c:
12385 * unexelf.c: Remove references to desupported systems.
12386
12387 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12388
12389 * m/powermac.h: Remove boilerplate comments.
12390 (NO_REMAP): Remove unused definition.
12391
12392 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12393 define them.
12394
123952008-07-10 Kenichi Handa <handa@m17n.org>
12396
12397 * xfont.c (xfont_open): Log the reason of failure.
12398
123992008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12400
12401 * fontset.c (fontset_get_font_group):
12402 * font.c (font_check_otf): Specify argument types.
12403
124042008-07-09 Kenichi Handa <handa@m17n.org>
12405
12406 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12407 non-ASCII char is found.
12408
12409 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12410 (reorder_font_vector): Change the arg preferred_family to font.
12411 Prefer the spec matching with font.
12412 (fontset_get_font_group): New function.
12413 (fontset_find_font): Change the format of an element of a realized
12414 fontset. Use fontset_get_font_group.
12415 (fontset_font): Try the current fontset, the default fontset, the
12416 fallbacks of the current fontset, and the fallbacks of the default
12417 fontset in this order.
12418 (face_for_char): Delete the shortcut to use the current font.
12419 (fontset_from_font): Don't set fonts for Latin in the fontset.
12420
12421 * font.h (font_make_object, font_match_p): Adjust prototypes.
12422
12423 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12424
12425 * font.c (font_make_object): New arg entity and pixelsize.
12426 (font_check_otf_features, font_check_otf): New functions.
12427 (font_match_p): Check :lang, :script, and :otf properties.
12428
12429 * xfont.c (xfont_open): Adjust it for the change of
12430 font_make_object.
12431 (xfont_text_extents): Fix initial setting of metrics.
12432
12433 * ftfont.c (struct ftfont_info): New member index, delete member
12434 fc_charset_idx. Make the member order compatible with struct
12435 xftfont_info.
12436 (fc_charset_table): Change charset names to registry names.
12437 (ftfont_pattern_entity): Delete the args registry and
12438 fc_charset_idx. Change the value of :font-entity property
12439 to (FONTNAME . INDEX). Always set :registry property to
12440 `iso10646-1'.
12441 (struct ftfont_cache_data): New struct.
12442 (ftfont_lookup_cache): New arg for_face.
12443 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12444 (ftfont_driver): Set the member otf_capability.
12445 (ftfont_get_charset): Adjust it for the change of
12446 fc_charset_table.
12447 (OTF_TAG_SYM): New macro.
12448 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12449 for the change of fc_charset_table.
12450 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12451 ftfont_pattern_entity. Add FC_INDEX to objset.
12452 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12453 and ftfont_pattern_entity.
12454 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12455 font_make_object, struct ftfont_info.
12456 (ftfont_has_char): Use ftfont_get_fc_charset.
12457 (ftfont_otf_features, ftfont_otf_capability): New functions.
12458 (ftfont_shape): Use ftfont_get_otf.
12459 (ftfont_text_extents): Fix initial setting of metrics.
12460
12461 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12462 member order compatible with struct ftfont_info.
12463 (xftfont_open): Add FC_CHARSET to the pattern. Set
12464 xftfont_info->ft_size. Don't unlock the face. Check BDF
12465 properties if appropriate.
12466 (xftfont_close): Unlock the face.
12467 (xftfont_anchor_point, xftfont_shape): Deleted.
12468 (syms_of_xftfont): Don't set members anchor_point and shape of
12469 xftfont_driver.
12470
12471 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12472 font_make_object.
12473
12474 * w32font.c (w32font_open): Adjust it for the change of
12475 font_make_object.
12476 (w32font_open_internal): Don't set properties of font_object here.
12477
124782008-07-08 Chong Yidong <cyd@stupidchicken.com>
12479
12480 * macfns.c (x_create_tip_frame):
12481 * w32fns.c (x_create_tip_frame):
12482 * xfns.c (x_create_tip_frame): Pass parameter argument to
12483 face-set-after-frame-default.
12484
12485 * xfaces.c (Finternal_merge_in_global_face): Save merged
12486 attributes for the default face back into the face vector.
12487
124882008-07-08 Andreas Schwab <schwab@suse.de>
12489
12490 * fontset.h: Declare fontset_from_font. Don't declare
12491 new_fontset_from_font and fontset_from_font_name.
12492 * xterm.c: Include "fontset.h".
12493 * Makefile.in (xterm.o): Update dependencies.
12494
124952008-07-08 Glenn Morris <rgm@gnu.org>
12496
12497 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12498 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12499
125002008-07-07 Chong Yidong <cyd@stupidchicken.com>
12501
12502 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12503 (x_set_frame_parameters): Don't bind it.
12504
125052008-07-07 Juanma Barranquero <lekktu@gmail.com>
12506
12507 * w32fns.c (map_w32_filename): Declare extern.
12508
125092008-07-07 Jason Rumney <jasonr@gnu.org>
12510
12511 * w32term.c (WS_EX_LAYERED): Define if not already.
12512
125132008-07-06 Chong Yidong <cyd@stupidchicken.com>
12514
12515 * xfaces.c (set_font_frame_param): Don't try to set the font
12516 parameter if it is still unspecified in the lface.
12517
125182008-07-05 Chong Yidong <cyd@stupidchicken.com>
12519
12520 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
12521 face if it didn't already exist.
12522
12523 * xdisp.c (try_window_id): Give up if word-wrapping is on.
12524
125252008-07-05 Andreas Schwab <schwab@suse.de>
12526
12527 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
12528
125292008-07-05 Chong Yidong <cyd@stupidchicken.com>
12530
12531 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
12532 word-wrapping.
12533 (IT_DISPLAYING_WHITESPACE): New macro.
12534 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
12535 when word-wrapping. Simplify word-wrapping logic. Use correct
12536 pixel positions when saving copies of the iterator.
12537 (display_line): Use proper wrap point if the last character on a
12538 line was preceded by whitespace.
12539
125402008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
12541
12542 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
12543
125442008-07-04 Kenichi Handa <handa@m17n.org>
12545
12546 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
12547
12548 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
12549
125502008-07-02 Jason Rumney <jasonr@gnu.org>
12551
12552 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 12553 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
12554
12555 * xdisp.c (next_element_from_display_vector): Move assignment out
12556 of if statement.
12557
125582008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12559
12560 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12561
12562 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12563 (syms_of_fileio): Initialize and export them.
12564 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12565
12566 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12567 (Fsystem_move_file_to_trash): New function.
12568 (syms_of_w32fns): Export it to lisp.
12569
125702008-07-01 Jason Rumney <jasonr@gnu.org>
12571
12572 * w32font.c (w32font_text_extents): Don't count overhang as part
12573 of width.
12574
125752008-06-30 Miles Bader <miles@gnu.org>
12576
12577 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12578 Add `avoid_cursor_p' field.
12579
12580 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12581 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12582 (append_glyph, append_composite_glyph, produce_image_glyph)
12583 (append_stretch_glyph): Initialize avoid_cursor_p.
12584 (get_it_property): Rename from `get_line_height_property'.
12585 (x_produce_glyphs): Use get_it_property.
12586 (handle_line_prefix, push_display_prop): New functions.
12587 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12588 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12589 New variables.
12590 (syms_of_xdisp): Initialize them.
12591
125922008-06-30 Kenichi Handa <handa@m17n.org>
12593
12594 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12595 XftDefaultSubstitute (they are called in XftFontMatch).
12596 (xftfont_open): Fix args to ftfont_font_format.
12597
12598 * ftfont.c (fc_charset_table): New member lang.
12599 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 12600 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
12601 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12602 (ftfont_open): Fix args to ftfont_font_format.
12603 (ftfont_font_format): New arg filename.
12604
126052008-06-30 Chong Yidong <cyd@stupidchicken.com>
12606
12607 * xfaces.c (Finternal_merge_in_global_face): If default face was
12608 modified, realize it again. Update the font face attribute.
12609
126102008-06-29 Jason Rumney <jasonr@gnu.org>
12611
12612 * w32term.c (x_set_frame_alpha): Fix logic.
12613
126142008-06-29 Kenichi Handa <handa@m17n.org>
12615
12616 * fontset.c (Finternal_char_font): Return font-object instead of
12617 font-name.
12618
12619 * composite.c (get_composition_id): Fix the width calculation for TAB.
12620
126212008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12622
12623 * indent.c (Fvertical_motion): Properly handle float column arg.
12624
126252008-06-28 Jason Rumney <jasonr@gnu.org>
12626
12627 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12628 (pfnSetLayeredWindowAttributes): New function pointer.
12629 (w32_initialize): Initialize it when supported.
12630 (x_set_frame_alpha): New function.
12631
12632 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12633 (w32_frame_parm_handlers): Set alpha handler.
12634
12635 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12636
126372008-06-27 Jason Rumney <jasonr@gnu.org>
12638
12639 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12640 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12641 (w32_to_x_charset, x_to_w32_charset)
12642 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12643 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12644 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12645 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12646 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12647 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12648 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12649 (Qw32_charset_unicode): Remove.
12650 (syms_of_w32fns): Update for above changes.
12651
12652 * w32font.c (w32_to_x_charset, x_to_w32_charset)
12653 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12654 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12655 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12656 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12657 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12658 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12659 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
12660 (syms_of_w32font): Update for above changes.
12661
126622008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
12663
12664 * s/usg5-4.h: Fix previous change: keep the correct branch of a
12665 removed #if.
12666 (USG_SHARED_LIBRARIES): Remove duplicate definition.
12667
126682008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 12669 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
12670
12671 * makefile.w32-in (LOCAL_FLAGS):
12672 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
12673
12674 * sysdep.c (_spawnlp, _getpid):
12675 Declare with explicit _cdecl instead of _CRTAPI1.
12676
12677 * editfns.c (Fget_internal_run_time):
12678 Check for WINDOWSNT with #ifdef, not #if.
12679
126802008-06-26 Jason Rumney <jasonr@gnu.org>
12681
12682 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
12683
12684 * w32term.c (x_draw_glyph_string_foreground)
12685 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
12686 Use FONT_HANDLE macro.
12687 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
12688
12689 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12690 (uniscribe_encode_char): Use FONT_HANDLE macro.
12691
12692 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
12693 (w32font_text_extents): Use precast w32_font.
12694 (w32font_close): Free cached metrics.
12695 (w32font_open_internal): Allocate space for name on stack.
12696
126972008-06-26 Chong Yidong <cyd@stupidchicken.com>
12698
12699 * xdisp.c (extend_face_to_end_of_line): Fix last change.
12700
127012008-06-26 Jason Rumney <jasonr@gnu.org>
12702
12703 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
12704 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
12705
127062008-06-26 Juanma Barranquero <lekktu@gmail.com>
12707
12708 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
12709
127102008-06-26 Jason Rumney <jasonr@gnu.org>
12711
12712 * w32bdf.c, w32bdf.h: Remove obsolete files.
12713
12714 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
12715
12716 * w32gui.h: Don't include w32bdf.h.
12717 (XCharStruct, enum w32_char_font_type, W32FontStruct):
12718 Remove obsolete font support.
12719
12720 * w32font.h (struct w32font_info): Remove compat_w32_font.
12721 Add hfont member.
12722 (FONT_COMPAT): Remove obsolete macro.
12723
12724 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
12725 (w32font_encode_char, w32font_text_extents): Use new hfont member.
12726 (w32font_open_internal): Remove compat code. Set new hfont member.
12727 (Fx_select_font): Use new hfont member.
12728
12729 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12730 (uniscribe_encode_char): Use new hfont member.
12731
12732 * w32term.c (x_draw_glyph_string_foreground)
12733 (x_draw_composite_glyph_string_foreground): Use new hfont member.
12734 (x_draw_glyph_string): Use metrics in w32font_info.
12735
127362008-06-26 Kenichi Handa <handa@m17n.org>
12737
12738 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
12739
127402008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
12741
12742 * unexnext.c:
12743 * m/ews4800.h:
12744 * m/hp9000s300.h:
12745 * m/ibm370aix.h:
12746 * m/mips-siemens.h:
12747 * m/ncr386.h:
12748 * m/next.h:
12749 * m/pmax.h:
12750 * m/powerpcle.h:
12751 * m/tandem-s2.h:
12752 * s/386bsd.h:
12753 * s/bsd386.h:
12754 * s/bsd4-1.h:
12755 * s/bsd4-2.h:
12756 * s/bsdos2-1.h:
12757 * s/bsdos2.h:
12758 * s/bsdos3.h:
12759 * s/bsdos4.h:
12760 * s/nextstep.h:
12761 * s/ultrix4-3.h:
12762 * s/usg5-0.h:
12763 * s/usg5-2-2.h:
12764 * s/usg5-2.h:
12765 * s/usg5-4-3.h:
12766 * s/ux4800.h:
12767 * s/uxpds.h:
12768 * s/uxpv.h: Remove support for obsolete systems.
12769 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 12770 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
12771 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
12772 Remove, insert contents in s/aix4-2.h.
12773 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
12774 * s/bsd4-3.h: Rename to ...
12775 * s/bsd-common.h: ... this.
12776 * data.c:
12777 * doc.c:
12778 * ecrt0.c:
12779 * emacs.c:
12780 * fileio.c:
12781 * floatfns.c:
12782 * keyboard.c:
12783 * mem-limits.h:
12784 * print.c:
12785 * process.c:
12786 * sysdep.c:
12787 * syssignal.h:
12788 * systty.h:
12789 * syswait.h:
12790 * term.c:
12791 * unexec.c:
12792 * unexelf.c:
12793 * unexhp9k800.c:
12794 * m/hp800.h:
12795 * m/ibmrs6000.h:
12796 * m/mips.h:
12797 * m/vax.h:
12798 * s/darwin.h:
12799 * s/freebsd.h:
12800 * s/gnu.h:
12801 * s/ms-w32.h:
12802 * s/msdos.h:
12803 * s/netbsd.h:
12804 * s/template.h: Remove references to obsolete variables.
12805
12806 * Makefile.in: Add dependencies for all unexec files.
12807 (admindir): Remove unused variable.
12808 (UNEXEC_SRC): Remove references.
12809
128102008-06-25 Chong Yidong <cyd@stupidchicken.com>
12811
12812 * xfns.c (x_default_font_parameter): If Xft is available, first
12813 try Monospace-12 for the default font.
12814
128152008-06-25 Jason Rumney <jasonr@gnu.org>
12816
12817 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12818
128192008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12820
12821 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12822
12823 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12824
128252008-06-25 Juanma Barranquero <lekktu@gmail.com>
12826
12827 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12828 <scroll-conservatively>: Fix typo in docstring.
12829
12830 * xselect.c (Fx_send_client_event): Doc fix.
12831
128322008-06-25 Kenichi Handa <handa@m17n.org>
12833
12834 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12835
12836 * font.c (font_parse_fcname): Remove unused variables.
12837 (font_sort_entites): Delete the arg SPEC. Caller changed.
12838 Fix for the case of ! best_only.
12839 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12840
12841 * lisp.h (Fstring_to_unibyte): EXFUN it.
12842
12843 * character.h (str_to_unibyte): Extern it.
12844
12845 * character.c (str_to_unibyte): New function.
12846
12847 * fns.c (Fstring_to_unibyte): New function.
12848 (syms_of_fns): Defsubr it.
12849
128502008-06-24 Kenichi Handa <handa@m17n.org>
12851
12852 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12853 DPI too.
12854 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12855
128562008-06-24 Andreas Schwab <schwab@suse.de>
12857
12858 * Makefile.in (${lispsource}loaddefs.el): Rename from
12859 ../lisp/loaddefs.el.
12860 (bootstrap-clean): Do what distclean does but don't remove
12861 Makefile.
12862 (distclean): Depend on bootstrap-clean and remove Makefile.
12863
128642008-06-24 Chong Yidong <cyd@stupidchicken.com>
12865
12866 * buffer.h (struct buffer): New member word_wrap.
12867
12868 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12869 word-wrap.
12870 (init_buffer_once): Initialize them.
12871
12872 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12873 line_wrap enum possessing three possible values.
12874
12875 * termopts.h: Replace truncate_partial_width_windows with
12876 Vtruncate_partial_width_windows.
12877
12878 * dispnew.c (direct_output_for_insert): Avoid direct output when
12879 inserting a space with word wrap on.
12880
12881 * indent.c (compute_motion): Obey integer values of
12882 truncate-partial-width-windows.
12883
12884 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12885 replacing truncate_partial_width_windows.
12886 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12887 truncate only if the window width is below that integer.
12888 (start_display, resize_mini_window, produce_stretch_glyph)
12889 (display_string, move_it_in_display_line_to): Use line_wrap.
12890 (back_to_previous_visible_line_start, reseat_1): Reset
12891 string_from_display_prop_p.
12892 (display_line): Extend default face to end of line when wrapping.
12893
128942008-06-24 Kim F. Storm <storm@cua.dk>
12895
12896 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12897 to wrap continued lines at word boundaries.
12898
128992008-06-24 Jason Rumney <jasonr@gnu.org>
12900
12901 * font.c (Ffont_face_attributes): Multiply pixel size before point
12902 conversion to avoid multiplying rounding error.
12903
129042008-06-23 Jason Rumney <jasonr@gnu.org>
12905
12906 * w32term.c (x_draw_glyph_string_background)
12907 (x_draw_glyph_string): Remove old bdf font code.
12908
12909 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12910
129112008-06-22 Kenichi Handa <handa@m17n.org>
12912
12913 * font.c (font_find_for_lface): Try the adstyle specified in
12914 the property of LFACE_FONT of LFACE (if any).
12915
129162008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12917 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12918
12919 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12920
129212008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12922
12923 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12924 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12925 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12926 (witness-emacs): Remove.
12927 (lisp, shortlisp): Move loaddefs.el earlier.
12928 (mostlyclean): Forget about witness-emacs.
12929
129302008-06-22 Glenn Morris <rgm@gnu.org>
12931
12932 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12933 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12934
129352008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12936
12937 * Makefile.in (PRECOMP): Remove.
12938 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12939 (witness-emacs): Run `compile-first'.
12940 (.el.elc): Use the new compile-onefile target.
12941
129422008-06-21 Kenichi Handa <handa@m17n.org>
12943
12944 * xftfont.c (xftfont_open): Handle QCembolden only when
12945 FC_EMBOLDEN is defined.
12946
129472008-06-21 Andreas Schwab <schwab@suse.de>
12948
12949 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12950 (.el.elc): Likewise.
12951
129522008-06-21 Miles Bader <miles@gnu.org>
12953
12954 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12955 build dir, not the lisp source dir.
12956
129572008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12958
12959 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12960 (bootstrapclean): Remove.
12961 (.el.elc): New rule.
12962 (PRECOMP): New var.
12963 (../lisp/subdirs.el): Remove.
12964 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12965 (witness-emacs): New target.
12966 (mostlyclean): Remove witness-emacs as well.
12967 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12968 Add witness-emacs dependency.
12969
129702008-06-20 Chong Yidong <cyd@stupidchicken.com>
12971
12972 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12973 defined by the font.
12974
129752008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12976
12977 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12978 (bootstrap-clean): New target that keeps TAGS around.
12979 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12980 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12981
129822008-06-20 Jason Rumney <jasonr@gnu.org>
12983
12984 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12985 Remove obsolete font code.
12986
12987 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12988 to determine language support.
12989
129902008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12991
12992 * sysdep.c (cfsetspeed): New fun extracted from the code.
12993 (cfmakeraw): Move before first use.
12994
129952008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12996
12997 * sysdep.c (cfmakeraw): Provide fallback implementation.
12998 (serial_configure): Provide fallback implementation of cfsetspeed.
12999
130002008-06-20 Kenichi Handa <handa@m17n.org>
13001
13002 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13003 the pattern.
13004
13005 * fontset.c (fontset_from_font): Copy font_spec before changing
13006 the elements.
13007
13008 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13009
130102008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13011
13012 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13013 for explicit `font' parameters.
13014
13015 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13016
130172008-06-19 Kenichi Handa <handa@m17n.org>
13018
13019 * frame.c: Include <ctype.h>.
13020 (x_set_font_backend): Allow spacing characters in the X resource
13021 for FontBackend.
13022
130232008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13024
13025 * w32fns.c, xfns.c (Qfont_param): New var.
13026 (syms_of_w32fns): Initialize it.
13027 (x_default_font_parameter): Record explicit `font' into
13028 `font-parameter'.
13029
130302008-06-18 Kenichi Handa <handa@m17n.org>
13031
13032 * font.c (font_parse_xlfd): Fix previous change.
13033 (font_parse_fcname): Don't use :fc-unknown-spec.
13034 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13035 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13036 (font_add_log): Prepend the driver name to the resulting fonts.
13037
13038 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13039 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13040 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13041
13042 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13043 (QCembolden): New variables.
13044 (syms_of_xftfont): DEFSYM them.
13045 (xftfont_open): Call XftFontMatch. Don't trust the result of
13046 XftTextExtents8 if the pixel_size is less than 5.
13047
130482008-06-18 Andreas Schwab <schwab@suse.de>
13049
13050 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13051 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13052
130532008-06-18 Jason Rumney <jasonr@gnu.org>
13054
13055 * w32font.c (w32font_list, w32font_match): Add logging.
13056
13057 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13058
130592008-06-17 Chong Yidong <cyd@stupidchicken.com>
13060
13061 * font.c (font_parse_fcname): Store divider characters for
13062 unknown-spec list. For known key symbols, intern using correct
13063 symbol name.
13064
130652008-06-17 Kenichi Handa <handa@m17n.org>
13066
13067 * xfaces.c (realize_default_face): If the frame is not on window
13068 system, set the fontset of face to nil.
13069
130702008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13071
13072 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13073
130742008-06-16 Juanma Barranquero <lekktu@gmail.com>
13075
13076 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13077 (build_font_name_from_vector): Delete externs.
13078
13079 * xfaces.c (struct font_name): Don't declare.
13080
130812008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13082
13083 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13084
130852008-06-16 Chong Yidong <cyd@stupidchicken.com>
13086
13087 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13088
130892008-06-16 Juanma Barranquero <lekktu@gmail.com>
13090
13091 * font.c (Ffont_spec): Fix usage in docstring.
13092 (Ffont_face_attributes): Doc fix.
13093
130942008-06-16 Andreas Schwab <schwab@suse.de>
13095
13096 * font.c (Ffont_face_attributes): Fix definition.
13097
130982008-06-16 Jason Rumney <jasonr@gnu.org>
13099
13100 * font.h (font_style_symbolic_from_value): Remove.
13101
13102 * font.c (font_style_symbolic_from_value): Remove.
13103 (font_style_symbolic): Revert to pre 2008-06-13 version.
13104
13105 * w32font.c (w32_to_fc_weight): New function.
13106 (w32font_full_name, logfont_to_fcname): Use it.
13107
131082008-06-16 Kenichi Handa <handa@m17n.org>
13109
13110 * font.c (font_check_object): Delete it.
13111 (font_clear_cache): Check if a font-object is alive.
13112 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13113 font-object to nil.
13114 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13115 (font_at): Don't call font_check_object.
13116 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13117
131182008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13119
13120 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13121
131222008-06-16 Chong Yidong <cyd@stupidchicken.com>
13123
13124 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13125
131262008-06-15 Chong Yidong <cyd@stupidchicken.com>
13127
13128 * font.c (font_parse_fcname): Only one decimal point.
13129 (font_unparse_fcname): Handle data in family and foundry indices
13130 as symbols, not strings.
13131 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13132
13133 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13134
13135 * font.h (font_unparse_gtkname): Add prototype.
13136
131372008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13138
13139 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13140
131412008-06-15 Andreas Schwab <schwab@suse.de>
13142
13143 * font.c (font_update_drivers): Fix crash when no drivers match.
13144
131452008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13146
13147 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13148 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13149
131502008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13151
13152 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13153
131542008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13155
13156 * process.c (Fserial_process_configure, Fprocess_send_eof):
13157 Use EQ to compare Lisp_Objects.
13158
131592008-06-13 Jason Rumney <jasonr@gnu.org>
13160
13161 * w32fns.c (Fw32_select_font): Remove old font API function.
13162
13163 * w32font.c (logfont_to_fcname): New function.
13164 (Fx_select_font): New font dialog function compatible with
13165 GTK/fontconfig version.
13166
13167 * font.c (font_style_symbolic_from_value): New function.
13168 (font_style_symbolic): Use it.
13169
13170 * font.h (font_style_symbolic_from_value): Declare new function.
13171
131722008-06-13 Juanma Barranquero <lekktu@gmail.com>
13173
13174 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13175 <font-width-table>: Fix typos in docstrings.
13176
131772008-06-13 Daniel Engeler <engeler@gmail.com>
13178
13179 These changes add serial port access.
13180 * process.c: Add HAVE_SERIAL.
13181 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13182 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13183 (list_processes_1, select_wrapper, Fstop_process)
13184 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13185 (status_notify): Modify to handle serial processes.
13186 [HAVE_SERIAL] (Fserial_process_configure)
13187 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13188 New functions.
13189 * process.h (struct Lisp_Process): Add `type'.
13190 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13191 New functions.
13192 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13193 serial ports.
b71ac3dd 13194 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13195 * w32.h: Add FILE_SERIAL.
13196 (struct _child_process): Add ovl_read, ovl_write.
13197
131982008-06-13 Kenichi Handa <handa@m17n.org>
13199
13200 * dispextern.h (enum lface_attribute_index): New member
13201 LFACE_FOUNDRY_INDEX.
13202
13203 * font.c (font_score): Delete arg alternate_families. Check only
13204 weight, slant, width, and size. Ignore the difference of alias
13205 style symbols.
13206 (font_sort_entites): Adjust for the above change. Reflect the
13207 order of font-driver to scores.
13208 (font_list_entities): Don't check alternate_familes here.
13209 (font_clear_prop): Handle foundry.
13210 (font_update_lface): Don't parse "foundry-family" form here.
13211 Handle FONT_FOUNDRY_INDEX.
13212 (font_find_for_lface): Likewise. Handle alternate families here.
13213 If registry is nil, try iso8859-1 and ascii-0.
13214 (font_open_for_lface): Pay attention to size in ENTITY.
13215 (font_open_by_name): Simplify by calling font_load_for_lface.
13216 (free_font_driver_list): Delete it.
13217 (font_update_drivers): Preserve the order of backends.
13218 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13219 of font_score and font_sort_entites.
13220 (font_update_sort_order): Likewise.
13221
13222 * xfaces.c (LFACE_FOUNDRY): New macro.
13223 (check_lface_attrs): Check foundry.
13224 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13225 (merge_face_vectors): Check foundry.
13226 (merge_face_ref): Likewise.
13227 (Finternal_set_lisp_face_attribute): Likewise.
13228 (x_update_menu_appearance): Likewise.
13229 (Finternal_get_lisp_face_attribute): Likewise.
13230 (lface_hash): Likewise.
13231 (lface_same_font_attributes_p): Likewise.
13232 (x_supports_face_attributes_p): Likewise.
13233 (tty_supports_face_attributes_p): Likewise.
13234 (Finternal_set_alternative_font_family_alist): Intern strings.
13235 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13236 (realize_default_face): Set LFACE_FOUNDRY (lface).
13237
13238 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13239 font-driver at first.
13240
13241 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13242
132432008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13244
13245 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13246
132472008-06-12 Jim Meyering <meyering@redhat.com>
13248
13249 Make unexec_free handle NULL the same way free does.
13250 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13251
132522008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13253
13254 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13255 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13256 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13257 (WEAK_ALIAS): Simplify.
13258 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13259 when searching a unibyte buffer.
13260
132612008-06-12 Chong Yidong <cyd@stupidchicken.com>
13262
13263 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13264
132652008-06-12 Juanma Barranquero <lekktu@gmail.com>
13266
13267 * w32font.c: Include ctype.h.
13268
132692008-06-11 Jason Rumney <jasonr@gnu.org>
13270
13271 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13272 misreported as space.
13273 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13274 as aliases for registry iso10646-1.
13275
132762008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13277
13278 * buffer.c (clone_per_buffer_values): Skip `name'.
13279
132802008-06-11 Chong Yidong <cyd@stupidchicken.com>
13281
13282 * font.c (font_parse_fcname): Fix last change; accept decimal
13283 points in font size.
13284
132852008-06-10 Jason Rumney <jasonr@gnu.org>
13286
13287 * w32uniscribe.c (add_opentype_font_name_to_list):
13288 Skip non unicode fonts.
13289
132902008-06-10 Chong Yidong <cyd@stupidchicken.com>
13291
13292 * xfns.c (Fx_font_dialog): New function.
13293
13294 * gtkutil.c (xg_dialog_response_cb): Rename from
13295 xg_file_response_callback.
13296 (pop_down_dialog): Rename from pop_down_file_dialog.
13297 (xg_get_file_name): Callers changed.
13298 (xg_get_font_name): New function.
13299
13300 * gtkutil.h (xg_get_font_name): Insert prototype.
13301
133022008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13303
13304 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13305 x_underline_minimum_display_offset.
13306 (syms_of_xdisp): Declare it here rather than in xterm.c.
13307 * dispextern.h (underline_minimum_offset): Declare it.
13308 * w32term.c (x_draw_glyph_string): Use it.
13309 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13310 (syms_of_xterm): Don't declare it any more.
13311 (x_draw_glyph_string): Adjust to the new name.
13312
8719abec 133132008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13314
13315 * xterm.c (x_underline_minimum_display_offset): New var.
13316 (x_draw_glyph_string): Use it.
13317 (syms_of_xterm): Declare it.
13318
133192008-06-10 Chong Yidong <cyd@stupidchicken.com>
13320
13321 * font.c (font_parse_fcname): Accept GTK-style font names too.
13322
133232008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13324
13325 * dired.c (file_name_completion): Don't return t if the match is exact
13326 but with different capitalization.
13327 * minibuf.c (Ftry_completion): Simplify.
13328
13329 * window.c (Vwindow_point_insertion_type): New var.
13330 (set_window_buffer): Use it.
13331 (syms_of_window): Init and export it to Lisp.
13332
133332008-06-10 Kenichi Handa <handa@m17n.org>
13334
13335 * font.h (font_intern_prop): Prototype adjusted.
13336
13337 * font.c (font_intern_prop): New arg force_symbol.
13338 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13339 Adjust for the change of font_intern_prop.
13340
13341 * ftfont.c (ftfont_pattern_entity):
13342 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13343 (w32_registry):
13344 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13345 the change of font_intern_prop.
13346
133472008-06-09 Juanma Barranquero <lekktu@gmail.com>
13348
13349 * w32menu.c (digest_single_submenu): Declare extern.
13350
133512008-06-09 Jason Rumney <jasonr@gnu.org>
13352
13353 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13354
13355 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13356 (parse_single_submenu): Remove.
13357 (digest_single_submenu): Remove.
13358 (syms_of_w32menu): Don't initialise variables that have moved
13359 to menu.c.
13360 (set_frame_menubar): Sync with version in xmenu.c.
13361 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13362
13363 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13364 Make static again.
13365
133662008-06-09 Jason Rumney <jasonr@gnu.org>
13367
13368 Changes to w32 files related to the move of common menu code
13369 to menu.c on 2008-06-08 by Chong Yidong.
13370
13371 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13372 defs to w32gui.h.
13373 (single_keymap_panes, push_menu_item, push_menu_pane):
13374 Make globally visible.
13375
13376 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13377 (local_free, malloc_widget_value, free_widget_value)
13378 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13379 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13380 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13381 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13382 (menu_items, menu_items_allocated, menu_items_used)
13383 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13384 (init_menu_items, finish_menu_items, discard_menu_items)
13385 (grow_menu_items, push_submenu_start, push_submenu_end)
13386 (push_left_right_boundary, push_menu_pane, push_menu_item)
13387 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13388 (free_menubar_widget_tree_value, parse_single_submenu)
13389 (update_submenu_strings): Remove functions.
13390 (xmalloc_widget_value): Remove and declare extern.
13391
13392 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13393 (OBJ1): Build it.
13394
13395 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13396 (local_heap, local_alloc, local_free, malloc_widget_value)
13397 (free_widget_value): Define here.
13398
133992008-06-09 Kenichi Handa <handa@m17n.org>
13400
13401 * font.h (Qascii_0): Extern it.
13402
13403 * font.c (Qascii_0): New variable.
13404 (syms_of_font): DEFSYM it.
13405 (font_open_by_name): If the registry "iso8859-1" fails, try also
13406 "ascii-0".
13407
13408 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13409
134102008-06-08 Kenichi Handa <handa@m17n.org>
13411
13412 * .gdbinit (xfont): New command.
13413
134142008-06-08 Andreas Schwab <schwab@suse.de>
13415
13416 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13417 * Makefile.in (menu.o): Update dependencies.
13418
13419 * Makefile.in (obj): Always add menu.o.
13420 * emacs.c (main): Always call syms_of_menu.
13421 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13422
134232008-06-08 Chong Yidong <cyd@stupidchicken.com>
13424
13425 * Makefile.in: Compile menu.c.
13426
13427 * lisp.h: Declare syms_of_menu.
13428
13429 * emacs.c (main): Call syms_of_menu.
13430
13431 * keyboard.h: Relocate platform-independent menu definitions from
13432 xmenu.c.
13433
13434 * menu.c: New file. Relocate platform-independent menu
13435 definitions from xmenu.c. Suggested by Adrian Robert.
13436
13437 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 13438 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
13439 (menu_items_used, menu_items_n_panes)
13440 (menu_items_submenu_depth): Move to keyboard.h.
13441 (init_menu_items, finish_menu_items, unuse_menu_items)
13442 (discard_menu_items, restore_menu_items, save_menu_items)
13443 (grow_menu_items, push_submenu_start, push_submenu_end)
13444 (push_left_right_boundary, push_menu_pane, push_menu_item)
13445 (keymap_panes, single_keymap_panes, single_menu_item)
13446 (list_of_panes, list_of_items, find_and_call_menu_selection)
13447 (xmalloc_widget_value, free_menubar_widget_value_tree)
13448 (parse_single_submenu, digest_single_submenu)
13449 (update_submenu_strings): Move to menu.c.
13450
134512008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13452
13453 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13454
134552008-06-06 Miles Bader <miles@gnu.org>
13456
13457 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13458 face, not frame default.
13459
134602008-06-05 Martin Rudalics <rudalics@gmx.at>
13461
13462 * window.c (pop_up_windows, pop_up_frames)
13463 (display_buffer_reuse_frames, Vpop_up_frame_function)
13464 (Vdisplay_buffer_function, Veven_window_heights)
13465 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13466 (Vspecial_display_function, Vsame_window_buffer_names)
13467 (Vsame_window_regexps, split_height_threshold)
13468 (Vsplit_window_preferred_function): Move those vars to window.el.
13469 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13470 (Fdisplay_buffer): Move those functions to window.el.
13471 (syms_of_window): Remove corresponding declarations.
13472 (display_buffer): New function.
13473 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13474 * dispnew.c (Flast_nonminibuf_frame): New function.
13475 * buffer.c (Fpop_to_buffer): Move to window.el.
13476
134772008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13478
13479 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13480
134812008-06-05 Kenichi Handa <handa@m17n.org>
13482
13483 * coding.c (detect_coding): Fix previous change.
13484 (detect_coding_system): Likewise.
13485
134862008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13487
13488 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13489
13490 * keymap.c (Vminibuffer_local_filename_must_match_map):
13491 Rename from Vminibuffer_local_must_match_filename_map.
13492 (syms_of_keymap):
13493 * minibuf.c (Fcompleting_read): Adjust accordingly.
13494 * commands.h: Rename declaration as well.
13495
134962008-06-05 Kenichi Handa <handa@m17n.org>
13497
13498 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13499 family name.
13500 (Ffont_put): Likewise.
13501
13502 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13503 current font-spec.
13504
13505 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13506 is unspecified.
13507
13508 * xfaces.c (realize_x_face): If the font-related face attributes
13509 are the same as those of default face, realize a new fontset from
13510 default->fontset.
13511 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
13512
135132008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13514
13515 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
13516 (move_it_in_display_line): New wrapper.
13517
13518 * window.c (window_scroll_pixel_based_preserve_x)
13519 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
13520 (window_scroll_pixel_based, window_scroll_line_based):
13521 Use them to preserve column positions.
13522 (syms_of_window): Initialize them.
13523
13524 * indent.c (Fvertical_motion): Extend first arg to allow passing an
13525 (HPOS . VPOS) pair.
13526
13527 * dispextern.h (move_it_in_display_line): Declare.
13528
135292008-06-05 Juanma Barranquero <lekktu@gmail.com>
13530
13531 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
13532 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
13533 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
13534
135352008-06-04 Juanma Barranquero <lekktu@gmail.com>
13536
13537 * window.c (Fset_window_parameter): Doc fix.
13538 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
13539
135402008-06-04 Joakim Verona <joakim@verona.se>
13541
13542 * window.h (struct window): Add new member window_parameters.
13543
13544 * window.c (Fwindow_parameters, Fwindow_parameter)
13545 (Fset_window_parameter): New defuns.
13546 (syms_of_window): Defsubr the new defuns.
13547 (make_window): Initialize window_parameters to nil.
13548
135492008-06-04 John Paul Wallington <jpw@pobox.com>
13550
13551 * eval.c (Fdefmacro): Doc fix.
13552
135532008-06-04 Kenichi Handa <handa@m17n.org>
13554
13555 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13556 Be sure to call setup_coding_system when we find a proper coding system.
13557 (detect_coding_system): Fix handling of coding->head_ascii.
13558
135592008-06-03 Andreas Schwab <schwab@suse.de>
13560
13561 * font.c (font_prop_validate_spacing): Fix last change.
13562
135632008-06-03 Kenichi Handa <handa@m17n.org>
13564
13565 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13566 (font_parse_fcname): Fix handling of unknown key.
13567
13568 * xfont.c (xfont_list): Try an alias.
13569
13570 * charset.c (char_charset): Return NULL if the arg charset_list is
13571 specified and C doesn't belong to any of them.
13572
135732008-06-02 Chip Coldwell <coldwell@redhat.com>
13574
13575 * font.c (font_pixel_size): Don't take cdr of an integer.
13576
135772008-06-02 Jim Meyering <meyering@redhat.com>
13578
13579 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13580 * alloc.c (xfree): Return right away for a NULL arg.
13581 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13582 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13583 * mac.c (create_apple_event_from_event_ref): Likewise.
13584 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13585 Likewise.
13586 * doprnt.c (doprnt1): Likewise.
13587 * frame.c (frame): Likewise.
13588 * keyboard.c (wipe_kboard): Likewise.
13589 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13590 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13591 * term.c (tty_default_color_capabilities, maybe_fatal)
13592 (delete_tty): Likewise.
13593 * w16select.c (string): Likewise.
13594 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13595 * w32bdf.c (w32_free_bdf_font): Likewise.
13596 * w32fns.c (w32_unload_font): Likewise.
13597 * w32font.c (w32font_close): Likewise.
13598 * window.c (size_window): Likewise.
13599 * xselect.c (receive_incremental_selection): Likewise.
13600 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13601 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13602 * w32.c (stat): Likewise.
13603
13604 Remove useless if-before-free tests.
13605 * editfns.c (Fset_time_zone_rule): Likewise.
13606 * lread.c (nosuffix): Likewise.
13607 * ralloc.c (get_bloc): Likewise.
13608 * regex.c (reg_free): Likewise.
13609 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13610 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13611 * xsmfns.c (smc_save_yourself_CB): Likewise.
13612
136132008-06-02 Kenichi Handa <handa@m17n.org>
13614
13615 * font.c (font_find_for_lface): Handle float font size.
13616 (font_open_for_lface): Likewise.
13617
13618 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13619 comparing the properties.
13620
136212008-06-01 Jason Rumney <jasonr@gnu.org>
13622
13623 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13624 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13625 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13626 Don't add empty script list.
13627 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13628
136292008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13630
13631 * Makefile.in (dot, dotdot): Remove, update users.
13632 ".." has been used elsewhere in the file for a long time.
13633 (LIBXT_STATIC): Remove conditional based on unused variable.
13634
136352008-06-01 Miles Bader <miles@gnu.org>
13636
13637 * xfaces.c (Vface_remapping_alist): New variable.
13638 (syms_of_xfaces): Initialize it.
13639 (enum named_merge_point_kind): New type.
13640 (struct named_merge_point): Add `named_merge_point_kind' field.
13641 (push_named_merge_point): Make cycle detection respect different
13642 named-merge-point kinds.
13643 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13644 Remove face-name alias resolution.
13645 (lface_from_face_name): New definition using
13646 `lface_from_face_name_no_resolve'.
13647 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13648 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13649 (get_lface_attributes): New definition that layers face-remapping on
13650 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13651 (lookup_basic_face): New function.
13652 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
13653 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
13654 `get_lface_attributes'.
13655 (face_at_buffer_position): Use `lookup_basic_face' to lookup
13656 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
13657 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
13658
13659 * xdisp.c (init_iterator): Pass base_face_id through
13660 `lookup_basic_face' when we actually use it as a face-id.
13661 (handle_single_display_prop): Use `lookup_basic_face' to lookup
13662 DEFAULT_FACE_ID.
13663
13664 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
13665 lookup the initial face-id.
13666
13667 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
13668
136692008-06-01 Juanma Barranquero <lekktu@gmail.com>
13670
13671 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
13672 (Fremove_text_properties): Fix typos in docstrings.
13673
136742008-05-31 Kenichi Handa <handa@m17n.org>
13675
13676 * font.c (font_list_entities): Fix the car part of data to be
13677 stored in the cache.
13678
13679 * ftfont.c (ftfont_font_format): Don't use strcasestr.
13680
136812008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13682
13683 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
13684 Add a `test' argument so another predicate than `equal' can be used.
13685 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
13686 (map_char_table): Remove unused vars `c' and `i'.
13687 * lisp.h (Foptimize_char_table): Adjust declaration.
13688 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
13689
136902008-05-30 Kenichi Handa <handa@m17n.org>
13691
13692 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
13693 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
13694 defined.
13695
136962008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13697
13698 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13699 (Fmake_variable_frame_local): Disallow mixing buffer-local and
13700 frame-local settings for the same variable.
13701
137022008-05-30 Kenichi Handa <handa@m17n.org>
13703
13704 * fontset.c (Ffont_info): Move to font.c.
13705 (syms_of_fontset): Delete defsubr of Sfont_info.
13706
13707 * font.c (font_style_to_value, font_score): Delete casting of the
13708 args to xstcasecmp.
13709 (register_font_driver): Increment num_font_drivers only when
13710 registering the driver globally.
13711 (Ffont_info): Move from fontset.c. Handle a font object too.
13712 (syms_of_font): Defsubr Sfont_info.
13713
137142008-05-29 Kenichi Handa <handa@m17n.org>
13715
13716 * coding.h (enum define_coding_utf8_arg_index): New enum.
13717 (enum coding_attr_index): Change coding_attr_utf_16_bom to
13718 coding_attr_utf_bom.
13719 (enum utf_bom_type): Rename from utf_16_bom_type.
13720 (struct utf_16_spec): Adjust for the above change.
13721 (struct coding_system): Add utf_8_bom in `spec' union.
13722
13723 * coding.c (CODING_UTF_8_BOM): New macro.
13724 (enum coding_category): Delete coding_category_utf_8, add
13725 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
13726 coding_category_utf_8_sig.
13727 (CATEGORY_MASK_UTF_8): Delete it.
13728 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
13729 (CATEGORY_MASK_UTF_8_SIG): New macros.
13730 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
13731 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
13732 CATEGORY_MASK_UTF_8_SIG.
13733 (CATEGORY_MASK_UTF_8): New macro.
13734 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
13735 (detect_coding_utf_8): Check BOM.
13736 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
13737 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
13738 (encode_coding_utf_16): Likewise.
13739 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
13740 (detect_coding, detect_coding_system): Handle utf-8-auto.
13741 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
13742 (syms_of_coding): Fix setting up of Vcoding_category_table.
13743
137442008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
13745
13746 * process.c (Faccept_process_output): If `millisec' is non-nil,
13747 `seconds' default to 0.
13748 (wait_reading_process_output): Also return non-nil if we read output
13749 from a non-running process.
13750
137512008-05-29 Jason Rumney <jasonr@gnu.org>
13752
13753 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
13754 `raster' specified.
13755 (add_font_entity_to_list): Allow non-opentype truetype fonts back
13756 in the uniscribe backend, but disallow any font that has no
13757 unicode subrange support.
13758
137592008-05-29 Juanma Barranquero <lekktu@gmail.com>
13760
13761 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
13762 Fix typos in docstrings.
13763
137642008-05-29 Kenichi Handa <handa@m17n.org>
13765
13766 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
13767 (Fx_family_fonts): Set frame correctly.
13768
137692008-05-28 Jason Rumney <jasonr@gnu.org>
13770
13771 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
13772
137732008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13774
13775 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
13776 calling build_annotations.
13777
137782008-05-28 Juanma Barranquero <lekktu@gmail.com>
13779
13780 * coding.c (Fdecode_coding_region, Fencode_coding_region)
13781 (Fencode_coding_string):
13782 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
13783 <latin-extra-code-table>: Fix typos in docstrings.
13784 (syms_of_coding) <coding-system-alist>: Doc fix.
13785 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
13786
137872008-05-28 Kenichi Handa <handa@m17n.org>
13788
13789 * fontset.c (Ffont_info): Don't call font_close_object.
13790
13791 * font.c (font_parse_family_registry): Use Ffont_put to validate
13792 foundry and family.
13793 (font_delete_unmatched): Don't check spacing.
13794 (font_list_entities): Add spacing to the spec to list fonts.
13795
13796 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
13797 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
13798
13799 * coding.c (encode_coding_raw_text): Fix previous change.
13800 (encode_coding_object): When the dst_object is a buffer and is
13801 different from src_object, move gap to PT.
13802
138032008-05-27 Chong Yidong <cyd@stupidchicken.com>
13804
13805 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
13806
138072008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13808
13809 * coding.c (encode_coding_raw_text): Set coding->produced_char for
13810 all branches. Compute it differently.
13811
13812 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13813
138142008-05-27 Juanma Barranquero <lekktu@gmail.com>
13815
13816 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13817 into "else if () ... else ...".
13818
138192008-05-27 Jason Rumney <jasonr@gnu.org>
13820
13821 * w32font.c (w32font_open_internal): Determine if glyph indices
13822 are likely to work here.
13823
138242008-05-27 Chong Yidong <cyd@stupidchicken.com>
13825
13826 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13827 draw overlap glyphs with appropriate highlighting.
13828
138292008-05-27 Kenichi Handa <handa@m17n.org>
13830
13831 * xfont.c (xfont_open): Fix calculation of font->average_width.
13832
138332008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13834
13835 * casefiddle.c (casify_object): Try to guess better whether the
13836 argument is a byte or a char.
13837
138382008-05-26 Andreas Schwab <schwab@suse.de>
13839
13840 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13841 Always send multiples of format size.
13842
13843 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13844
138452008-05-26 Jason Rumney <jasonr@gnu.org>
13846
13847 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13848 (compute_metrics): Don't set failure if we just cleared the cache.
13849 (w32_weight_table): Remove unused variable.
13850 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13851 backwards compatibility.
13852
138532008-05-25 Kenichi Handa <handa@m17n.org>
13854
13855 * w32term.c (x_draw_glyph_string):
13856 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13857
13858 * xfaces.c: Delete unused function prototypes.
13859 (xstrlwr, font_frame): Delete them.
13860 (clear_face_cache): Delete unused variable.
13861
13862 * xftfont.c (xftfont_open): Delete unused variable.
13863 If underline_thickness is not 1, adjust underline_position.
13864
13865 * ftxfont.c (ftxfont_open): Delete unused variable.
13866
13867 * fontset.c (face_for_char): Optimize for the case of no charset
13868 property.
13869
13870 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13871 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13872 (otf_open, font_otf_capability, generate_otf_features)
13873 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13874 Comment out by surrounding "#if 0" and "#endif" for the moment.
13875 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13876 (syms_of_font): Codes for accessing above commented out.
13877
138782008-05-24 Eli Zaretskii <eliz@gnu.org>
13879
13880 * w32proc.c: Include dispextern.h.
13881
13882 * w32.c: Include dispextern.h.
13883
138842008-05-23 Juanma Barranquero <lekktu@gmail.com>
13885
13886 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13887 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13888 Fix typos in docstrings.
13889
138902008-05-23 Jason Rumney <jasonr@gnu.org>
13891
13892 * xsmfns.c: Remove includes that are already included by config.h.
13893
138942008-05-23 Kenichi Handa <handa@m17n.org>
13895
13896 * charset.c (Qemacs, charset_emacs): New variables.
13897 (char_charset): Fix for non-Unicode characters.
13898 (syms_of_charset): Define charset_emacs.
13899
13900 * w32term.c (x_draw_glyph_string): Be sure to update
13901 s->underline_thickness and s->underline_position. Be sure to draw
13902 underline within the current line area.
13903
13904 * xterm.c (x_draw_glyph_string): Be sure to update
13905 s->underline_thickness and s->underline_position. Be sure to draw
13906 underline within the current line area.
13907
13908 * fontset.c: Delete unused variables and add casting for char *
13909 throughout the file.
13910 (fontset_font): Try the fallback fonts of the current fontset
13911 before consulting the default fontset.
13912
13913 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13914
13915 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13916
139172008-05-22 Jason Rumney <jasonr@gnu.org>
13918
13919 * font.c: Don't include strings.h.
13920
13921 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13922
13923 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13924 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13925 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13926 to call xstrcasecmp.
13927
13928 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13929
13930 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13931
13932 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13933
13934 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13935
139362008-05-22 Kenichi Handa <handa@m17n.org>
13937
13938 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13939
13940 * font.c (font_prop_validate_style): Adjust for the format
13941 change of font_style_table.
13942
13943 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13944 two args.
13945
13946 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13947 two args.
13948
139492008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13950
13951 * minibuf.c (keys_of_minibuf): Delete.
13952 * lisp.h (keys_of_minibuf): Delete.
13953 * emacs.c (main): Don't call keys_of_minibuf.
13954
139552008-05-22 Kenichi Handa <handa@m17n.org>
13956
13957 * ftfont.c (ftfont_resolve_generic_family): Rename from
13958 ftfont_list_generic_family. Return a single family for each
13959 generic family.
13960 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13961 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13962 Call font_add_log.
13963 (ftfont_match): Call font_add_log.
13964
13965 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13966 (FONT_DEBUG): Define it.
13967 (font_add_log): Extern it.
13968 (font_assert): Rename from xassert.
13969
13970 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13971 (xfont_list_family): Call font_add_log.
13972 (xfont_match): Likewise.
13973 (memq_no_quit): Delete.
13974
13975 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13976 call of Ffont_xlfd_name.
13977
13978 * xfaces.c (struct table_entry, slant_table, weight_table)
13979 (swidth_table): Move to font.c.
13980
13981 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13982 xassert are changed to font_assert. Delete many unused variables.
13983 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13984 New variables.
13985 (struct table_entry): Move from xfaces.c and modified.
13986 (weight_table, slant_table, width_table): Move from xfaces.c and
13987 contents adjusted for the change of struct table_entry.
13988 (font_style_to_value, font_style_symbolic): Adjust for the
13989 format change of font_style_table.
13990 (font_parse_family_registry): Don't overwrite existing foundry and
13991 family of font_spec.
13992 (font_score): Fix calculation of diff for sizes.
13993 (font_sort_entites): Call font_add_log.
13994 (font_delete_unmatched): Return a newly created list.
13995 (font_list_entities): Fix previous change. Call font_add_log.
13996 (font_matching_entity, font_open_entity, font_close_entity):
13997 Call font_add_log.
13998 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13999 (Finternal_set_font_style_table): Delete.
14000 (BUILD_STYLE_TABLE): New macro.
14001 (build_style_table): New function.
14002 (Vfont_log, font_log_env_checked): New variables.
14003 (font_add_log): New function.
14004 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14005 Declare Lisp variables "font-weight-table", "font-slant-table",
14006 "font-width-table", and "font-log". Initialize font_style_table.
14007
140082008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14009
14010 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14011
140122008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14013 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14014
14015 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14016 (Vframe_alpha_lower_limit): New variable.
14017 (x_set_alpha): New function.
14018
14019 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14020
14021 * xfns.c (x-create-frame, Qalpha):
14022 Initialize the frame parameter `alpha'.
14023 * xterm.c (OPAQUE, OPACITY): New.
14024 (x_set_frame_alpha): New function.
14025 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14026
14027 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14028 * w32fns.c (w32_frame_parm_handlers): Likewise.
14029
140302008-05-20 Jason Rumney <jasonr@gnu.org>
14031
14032 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14033 truetype fonts to opentype list.
14034
140352008-05-20 Juanma Barranquero <lekktu@gmail.com>
14036
14037 * fontset.c (Ffontset_info): Doc fix.
14038 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14039 <ignore-relative-composition>: Fix typos in docstrings.
14040
14041 * font.c (syms-of-font) <font-encoding-alist>:
14042 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14043 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14044 (Ffont_otf_alternates): Doc fixes.
14045
140462008-05-20 Kenichi Handa <handa@m17n.org>
14047
14048 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14049 font.h through out the file.
14050 (FONT_DRIVERS): Rename from FONTOBJ.
14051 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14052 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14053
14054 * emacs.c (main): Call syms_of_font unconditionally.
14055
14056 * font.h (find_font_encoding): Extern it.
14057
14058 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14059 fontset.c.
194d44e7 14060 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14061 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14062 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14063 only when HAVE_WINDOW_SYSTEM is defined.
14064 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14065 when HAVE_WINDOW_SYSTEM is defined.
14066
14067 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14068 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14069
14070 * xfaces.c: Include font.h unconditionally.
14071 (merge_face_ref, merge_face_vectors)
14072 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14073
140742008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14075
14076 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14077 indirect_variable.
14078 * eval.c (lisp_indirect_variable): New fun.
14079 (Fuser_variable_p): Use it.
14080
140812008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14082
14083 * lisp.h (indirect_variable):
14084 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14085 Use Lisp_Symbol pointers rather than Lisp_Object.
14086 Adjust callers.
14087 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14088 To this end, change calling-convention.
14089
14090 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14091 if some non-hidden buffers are selected by string&pred.
14092
140932008-05-19 Chong Yidong <cyd@stupidchicken.com>
14094
14095 * process.c (wait_reading_process_output): Always check status
14096 when in batch mode.
14097
140982008-05-19 Kenichi Handa <handa@m17n.org>
14099
14100 * font.c (font_list_entities): Fix handling of cache.
14101 (font_matching_entity): Likewise.
14102
14103 * ftfont.c (cs_iso8859_1): Delete.
14104 (ft_face_cache): New variable.
14105 (struct ftfont_info): New member fc_charset_idx.
14106 (ftfont_build_basic_charsets): Delete.
14107 (fc_charset_table): New variable.
14108 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14109 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14110 Callers changed.
14111 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14112 (ftfont_spec_pattern): New argument fc_charset_idx.
14113 Check registry more rigidly. Change callers.
14114 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14115 change of :font-entity property of the font.
14116
14117 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14118 property of the font.
14119
141202008-05-18 Juanma Barranquero <lekktu@gmail.com>
14121
14122 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14123 (Funencodable_char_position, Fcheck_coding_systems_region)
14124 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14125 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14126 (Ffind_operation_coding_system, Fset_coding_system_priority)
14127 (Fcoding_system_eol_type): Doc fixes.
14128
141292008-05-17 Glenn Morris <rgm@gnu.org>
14130
14131 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14132
141332008-05-16 Eli Zaretskii <eliz@gnu.org>
14134
14135 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14136 and st_gid.
14137
14138 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14139 HAVE_WINDOW_SYSTEM is not defined.
14140
14141 * xfaces.c (merge_face_ref, merge_face_vectors)
14142 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14143 HAVE_WINDOW_SYSTEM is defined.
14144 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14145
141462008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14147
14148 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14149
141502008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14151
14152 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14153
141542008-05-15 Kenichi Handa <handa@m17n.org>
14155
14156 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14157 preference.
14158
141592008-05-15 Glenn Morris <rgm@gnu.org>
14160
14161 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14162
141632008-05-15 Chong Yidong <cyd@stupidchicken.com>
14164
14165 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14166 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14167
14168 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14169
141702008-05-15 Kenichi Handa <handa@m17n.org>
14171
14172 * ftfont.c (ftfont_list): Downcase family name to check generic
14173 families.
14174
14175 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14176 font-spec for QCfont value.
14177
14178 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14179 buffer. Check the return value of it.
14180
141812008-05-14 Jason Rumney <jasonr@gnu.org>
14182
14183 * w32term.c (w32_get_glyph_overhangs): Remove.
14184 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14185
141862008-05-14 Kenichi Handa <handa@m17n.org>
14187
14188 * font.c (font_prop_validate): Make nil a valid value.
14189 (font_clear_cache): Check if the cached vector of entities is nil
14190 or not.
14191
141922008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14193
14194 * emacs.c (main_thread): Conditionalize on
14195 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14196 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14197
14198 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14199 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14200 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14201
142022008-05-14 Kenichi Handa <handa@m17n.org>
14203
14204 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14205 has no corresponding coding system.
14206
142072008-05-14 Jason Rumney <jasonr@gnu.org>
14208
14209 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14210
14211 * w32font.h (w32font_open_internal): Update declaration.
14212
14213 * w32font.c (w32font_open_internal): Change last argument from
14214 w32font_info struct to font object. Fill in font object from
14215 font_entity. Get Outline metrics if possible. Use them to
14216 calculate underline position and thickness. Use xlfd name as name
14217 property. Don't set codepage.
14218 (w32font_open): Pass font_object to w32font_open_internal. Don't
14219 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14220 (w32font_draw): Use s->font.
14221 (clear_cached_metrics): Don't clear non-existent blocks.
14222
14223 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14224 font was not found.
14225 (x_draw_glyph_string): Use underline position and thickness from font.
14226
14227 * w32uniscribe.c (uniscribe_open): Pass font_object to
14228 w32font_open_internal.
14229
142302008-05-14 Kenichi Handa <handa@m17n.org>
14231
14232 These changes are to delete all legacy font-handling codes, and
14233 make Emacs use only font-backends.
14234
14235 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14236 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14237
14238 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14239
14240 * charset.h (Vcharset_non_preferred_head)
14241 (Vcurrent_iso639_language): Extern them.
14242
14243 * charset.c (Vcharset_non_preferred_head): New variable.
14244 (Vcurrent_iso639_language): New variable.
14245 (syms_of_charset): Declare it as a Lisp variable.
14246 (char_charset): Don't check non preferred charsets. As a last
14247 resort, return charset_unicode.
14248 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14249
14250 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14251 conditionals. Don't check enable_font_backend. Delete all codes
14252 used only when USE_FONT_BACKEND is not defined.
14253
14254 * dispextern.h (struct glyph_string): Change type of `font' to
14255 `struct font *'.
14256 (struct glyph_string): New member underline_position and
14257 underline_thickness.
14258 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14259 (struct face): Change type of `font' to `struct font *'. Remove
14260 members `font_name', `font_info_id'.
14261 (per_char_metric, encode_char): Delete externs.
14262 (calc_pixel_width_or_height): Adjust the prototype.
14263
14264 * emacs.c (enable_font_backend): Delete extern.
14265 (main): Don't set enable_font_backend. Don't check the command
14266 line argument "-disable-font-backend".
14267
14268 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14269 (enum font_property_index): New members FONT_DPI_INDEX,
14270 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14271 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14272 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14273 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14274 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14275 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14276 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14277 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14278 (struct font_spec, struct font_entity): New structs.
14279 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14280 (struct font): Many members from old "struct font_info" moved to
14281 here. Members font and entity deleted.
14282 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14283 the new font-related objects.
14284 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14285 (CHECK_FONT_GET_OBJECT): Likewise.
14286 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14287 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14288 (struct font_driver): New members case_sensitive anc check. Type
14289 of the member list and open changed.
14290 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14291 (font_symbolic_width, font_find_object, font_get_spec)
14292 (font_set_lface_from_name): Delete extern.
14293 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14294
14295 * font.c: Include <strings.h>.
14296 (enable_font_backend): Delete it.
14297 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14298 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14299 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14300 (null_string): Delete it.
14301 (null_vector): Make it static.
14302 (font_family_alist): Delete it.
14303 (Qnormal): Extern it.
14304 (QCextra, QClanguage): Delete it.
14305 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14306 (font_make_spec, font_make_entity, font_make_object)
14307 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14308 the string. Callers changed.
14309 (font_pixel_size): Adjusted for the format change of font-related
14310 objects.
14311 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14312 (font_style_to_value, font_style_symbolic): New function.
14313 (build_font_family_alist): Delete it.
14314 (font_registry_charsets): Use Fassoc_string instead of
14315 assq_no_quit.
14316 (font_prop_validate_symbol): Don't return null_string.
14317 (font_prop_validate_style): Adjusted for the change of
14318 style-related values in a font vector.
14319 (font_property_table): Delete entries for QClanguage and
14320 QCantialias, add entries for QCavgwidth.
14321 (get_font_prop_index): Delete the 2nd argument FROM.
14322 (font_prop_validate): Arguments changed.
14323 (font_put_extra): Adjusted for the change of font-related objects.
14324 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14325 (font_parse_fcname, font_unparse_fcname)
14326 (font_prepare_composition): Likewise.
14327 (font_parse_family_registry): Renamed from font_merge_old_spec.
14328 (otf_open): Delete the 1st arg entity.
14329 (font_otf_capability): Adjusted for the above change.
14330 (font_score): New arg alternate_families. Adjusted for the change
14331 of font-related objects.
14332 (font_sort_entites): New arg best_only.
14333 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14334 Delete them.
14335 (font_match_p): Check alternate families.
14336 (font_find_object): Delete it.
14337 (font_check_object): New function.
14338 (font_clear_cache): Adjusted for the change of font-related objects.
14339 (font_delete_unmatched): New arg.
14340 (font_list_entities): Call font_driver->list with a spec that
14341 doesn't specify style-related properties.
14342 (font_matching_entity): Arguments changed. Caller changed.
14343 (font_open_entity): Adjusted for the change of font-related objects.
14344 (font_close_object, font_has_char, font_encode_char)
14345 (font_get_name, font_get_spec): Likewise.
14346 (font_spec_from_name, font_clear_prop, font_update_lface):
14347 New functions.
14348 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14349 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14350 (font_at): Adjusted for the change of font-related objects.
14351 (font_range): New function.
14352 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14353 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14354 (Fcopy_font_spec, Fmerge_font_spec): New function.
14355 (Ffont_family_list): Renamed from list-families.
14356 (Finternal_set_font_style_table): Arguments changed.
14357 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14358 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14359 change of font-related objects.
14360 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14361
14362 * fontset.h (struct font_info): Delete it. Most members go to
14363 struct font.
14364 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14365 (enum FONT_SPEC_INDEX): Delete it.
14366 (font_info, list_fonts_func, load_font_func, query_font_func)
14367 (set_frame_fontset_func, find_ccl_program_func)
14368 (get_font_repertory_func, new_fontset_from_font_name): Delete
14369 externs.
14370 (fontset_from_font_name): Extern it.
14371 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14372 (FONT_INFO_FROM_FACE): Deleted.
14373 (face_for_font): Adjust prototype.
14374
14375 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14376 conditionals. Don't check enable_font_backend. Delete all codes
14377 used only when USE_FONT_BACKEND is not defined.
14378 (get_font_info_func, list_font_func, load_font_func)
14379 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14380 (get_font_repertory_func): Delete them.
14381 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14382 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14383 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14384 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14385 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14386 (fontset_compare_rfontdef): New function.
14387 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14388 rfont-defs by qsort. Adjusted for the change of font-group vector.
14389 (load_font_get_repertory): Deleted.
14390 (fontset_find_font): Use new macros to ref/set elements of
14391 font-def and rfont-def.
14392 (fontset_font): Fix the timing of remembering that no font for C.
14393 (free_face_fontset): Do nothing if the face has no fontset.
14394 (face_suitable_for_char_p): Use new macros to ref/set elements of
14395 rfont-def.
14396 (face_for_char): Likewise. Call face_for_char with font_object.
14397 (fs_load_font): Delete. Delete #pragma surrounding it.
14398 (fs_query_fontset): Use strcasecmp instead of strcmp.
14399 (generate_ascii_font_name): Adjusted for the format change of
14400 font-spec.
14401 (Fset_fontset_font): Likewise. Use new macros to set elements of
14402 font-def.
14403 (Fnew_fontset): Use font_unparse_xlfd to generate
14404 FONTSET_ASCII (fontset).
14405 (new_fontset_from_font_name): Deleted.
14406 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14407 a fontset is already created for the font. FIx updating of
14408 Vfontset_alias_alist.
14409 (fontset_ascii_font): Deleted.
14410 (Ffont_info): Adjusted for the format change of font-spec.
14411 (Finternal_char_font): Likewise.
14412 (Ffontset_info): Likewise.
14413 (syms_of_fontset): Don't check load_font_func.
14414
14415 * fns.c (internal_equal): Handle PREV_FONT.
14416
14417 * frame.h: Delete USE_FONT_BACKEND conditional.
14418
14419 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14420 conditionals. Don't check enable_font_backend. Delete all codes
14421 used only when USE_FONT_BACKEND is not defined.
14422 (x_set_font): Call x_new_font, not x_new_fontset2.
14423 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14424 already set for the frame.
14425
14426 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14427 a font-entity by font_make_entity. Use font_intern_prop instead
14428 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14429 font property. If a font is scalable, set avgwidth property to 0.
14430 Set font-entity property by font_put_extra.
14431 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14432 (ffont_driver): Adjusted for the change of struct font_driver.
14433 (ftfont_spec_pattern): New function.
14434 (ftfont_list): Return a list, not vector.
14435 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14436 (ftfont_list_family): Don't downcase names.
14437 (ftfont_free_entity): Deleted.
14438 (ftfont_open): Return a font-object. Adjusted for the change of
14439 struct font. Get underline_thickness and underline_position from
14440 font property. Don't update dpyinfo->smallest_font_height and
14441 dpyinfo->smallest_char_width.
14442 (ftfont_close): Don't free `struct font'.
14443 (ftfont_has_char): Adjusted for the format change of font-entity.
14444 (ftfont_encode_char, ftfont_text_extents): Likewise.
14445
14446 * ftxfont.c (ftxfont_list): Return a list, not vector.
14447 (ftxfont_open): Return a font-object. Adjusted for the change of
14448 struct font. Get underline_thickness and underline_position from
14449 font property. Don't update dpyinfo->smallest_font_height and
14450 dpyinfo->smallest_char_width.
14451 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14452 (ftxfont_draw): Adjusted for the change of struct font.
14453
14454 * image.c (image_ascent): Don't include "charset.h". Include
14455 "character.h" and "font.h".
14456
14457 * lisp.h (enum pvec_type): New member PREV_FONT.
14458 (Fassoc_string): EXFUN it.
14459
14460 * print.c: Include font.h.
14461 (print_object): Handle font-related objects.
14462
14463 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14464 conditionals. Don't check enable_font_backend. Delete all codes
14465 used only when USE_FONT_BACKEND is not defined.
14466 (handle_auto_composed_prop): Do nothing if it->f is not on a
14467 window system. Check how many following characters can be
14468 displayed by the same font.
14469 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14470 'struct font *'.
14471 (get_char_face_and_encoding): Assign the whole encoding task to
14472 the `encode-char' method of a font driver.
14473 (fill_composite_glyph_string): Adjusted for the change of `struct
14474 face' and `struct glyph_string'.
14475 (fill_glyph_string): Likewise.
14476 (get_per_char_metric): Arguments changed.
14477 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14478 and `struct glyph_string'.
14479 (produce_stretch_glyph, calc_line_height_property)
14480 (x_produce_glyphs): Likewise.
14481
14482 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14483 conditionals. Don't check enable_font_backend. Delete all codes
14484 used only when USE_FONT_BACKEND is not defined. Use
14485 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14486 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14487 (Qp): Extern them.
14488 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14489 Deleted.
14490 (struct font_name): Deleted.
14491 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14492 (compare_fonts_by_sort_order): New function.
14493 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14494 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14495 Deleted.
14496 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14497 compare_fonts_by_sort_order.
14498 (Fx_font_family_list): Call Ffont_family_list.
14499 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14500 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14501 (face_symbolic_slant, face_symbolic_swidth)
14502 (split_font_name_into_vector, build_font_name_from_vector)
14503 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14504 (font_rescale_ratio, split_font_name, build_font_name)
14505 (free_font_names, sort_fonts, x_face_list_fonts)
14506 (face_font_available_p, sorted_font_list, cmp_font_names)
14507 (font_list_1, concat_font_list, font_list, remove_duplicates):
14508 Deleted.
14509 (Fx_list_fonts): Use Ffont_list.
14510 (LFACE_AVGWIDTH): Deleted.
14511 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
14512 by FONTP.
14513 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
14514 (set_lface_from_font_name): Delete it.
14515 (set_lface_from_font): Renamed from
14516 set_lface_from_font_and_fontset. Caller changed. Don't set
14517 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
14518 for face.
14519 (merge_face_vectors): Copy font-spec if necessary.
14520 Clear properties of the font-spec if necessary.
14521 (merge_face_ref): Clear properties of the font-spec if necessary.
14522 (Finternal_set_lisp_face_attribute): Likewise.
14523 (set_font_frame_param): Use font_load_for_lface to load a
14524 font-object, and call Fmodify_frame_parameters with it.
14525 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
14526 font name by Ffont_xlfd_name.
14527 (Finternal_lisp_face_attribute_values): Don't check QCweight,
14528 QCslant, and QCwidth.
14529 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
14530 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
14531 Compare fonts by EQ.
14532 (lookup_non_ascii_face): Deleted.
14533 (face_for_font): The 2nd argument changed.
14534 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
14535 Check atomic font properties by case insensitive.
14536 (realize_non_ascii_face): Set face->overstrike correctly.
14537 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
14538 (dump_realized_face): Get font name from
14539 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
14540
14541 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
14542 conditionals. Don't check enable_font_backend. Delete all codes
14543 used only when USE_FONT_BACKEND is not defined.
14544 (xic_create_xfontset): Original code deleted and renamed from
14545 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
14546 (x_make_gc): Don't set GCFont in GCs.
14547 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
14548 opened by "fixed".
14549 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14550 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14551 get_font_repertory_func.
14552
14553 * xfont.c: Include <stdlib.h> and "ccl.h".
14554 (struct xfont_info): New structure.
14555 (xfont_query_font): Deleted.
14556 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14557 moved from xterm.c.
14558 (xfont_driver): Adjusted for the change of struct font_driver.
14559 (compare_font_names): New function.
14560 (xfont_list_pattern): Sort font names case insensitively. Make
14561 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14562 (xfont_list): Return a list, not vector.
14563 (xfont_match): If the font doesn't have QCname property, generate
14564 a name from the other font properties.
14565 (xfont_open): Return a font-object. Adjusted for the change of
14566 struct font. Get underline_thickness and underline_position from
14567 font property. Don't update dpyinfo->smallest_font_height and
14568 dpyinfo->smallest_char_width.
14569 (xfont_close): Don't free struct font.
14570 (xfont_prepare_face): Adjusted for the change of struct font.
14571 (xfont_done_face): Deleted.
14572 (xfont_has_char): Adjusted for the change of struct font.
14573 (xfont_encode_char, xfont_draw): Likewise.
14574 (xfont_check): New function.
14575
14576 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14577 callback function.
14578 (xftfont_match): Adjusted for the format change of font-entity.
14579 (xftfont_open): Adjusted for the format change of font-entity and
14580 font-object. Adjusted for the change of struct font. Return a
14581 font-object. Don't update dpyinfo->smallest_font_height and
14582 dpyinfo->smallest_char_width.
14583 (xftfont_close): Block input while calling XftFontClose.
14584 (xftfont_prepare_face): Don't block input while calling
14585 xftfont_get_colors. Adjusted for the change of struct font.
14586 (xftfont_shape): Return value of error case fixed.
14587
14588 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14589
14590 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14591 conditionals.
14592 (FONT_WIDTH): Return (f)->max_width.
14593 (struct x_display_info): Delete member `font'.
14594 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14595 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14596 (struct x_output): Change type of `font' to `struct font *'.
14597
14598 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14599 conditionals. Don't check enable_font_backend. Delete all codes
14600 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14601 (x_per_char_metric, x_encode_char): Deleted.
14602 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14603 (x_compute_glyph_string_overhangs): Adjusted for the change of
14604 `struct face'.
14605 (x_draw_glyph_string_foreground)
14606 (x_draw_composite_glyph_string_foreground): Likewise.
14607 (x_draw_glyph_string): Likewise. Use font->underline_position and
14608 font->underline_thickness.
14609 (x_new_font): Renamed from x_new_fontset2.
14610 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14611 (x_check_font): Call `check' method of a font driver.
14612 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14613 (x_query_font, x_get_font_repertory): Deleted.
14614 (x_find_ccl_program): Renamed and moved to xfont.c.
14615 (x_redisplay_interface): Adjusted for the change of `struct
14616 redisplay_interface'.
14617
14618 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14619 conditionals. Don't check enable_font_backend. Delete all codes
14620 used only when USE_FONT_BACKEND is not defined. Surround non-used
14621 code by "#ifdef OLD_FONT" and "endif".
14622 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14623
14624 * w32font.h (struct w32font_info): New member.
14625 (FONT_COMPAT): New macro.
14626 (w32font_open_internal): Prototype adjusted.
14627
14628 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14629 OLD_FONT" and "endif".
14630
14631 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14632 conditionals. Don't check enable_font_backend. Delete all codes
14633 used only when USE_FONT_BACKEND is not defined.
14634 (w32font_open): Return a font-object. Make a font-object by
14635 font_make_object. Adjusted for the change of struct w32font_info.
14636 (w32font_close): Don't free struct font. Adjusted for the change
14637 of struct w32font_info.
14638 (w32font_encode_char, w32font_text_extents, w32font_draw):
14639 Adjusted for the change of struct w32font_info.
14640 (w32font_draw): Likewise.
14641 (w32font_list_internal): Return a list, not vector.
14642 (w32font_open_internal): Change the 4th arg to font-object.
14643 Adjusted for the change of struct w32font_info and font-object format.
14644 (add_font_name_to_list): Don't downcase names.
14645 (w32_enumfont_pattern_entity): Make a font-entity by
14646 font_make_entity. Adjusted for the format change of font-entity.
14647 Use FONT_SET_STYLE to set a style-related font property. If a
14648 font is scalable, set avgwidth property to 0. Set font-entity
14649 property by font_put_extra.
14650 (font_matches_spec): Adjusted for the format change of font-entity.
14651 (w32_weight_table, w32_decode_weight): New variables.
14652 (w32_encode_weight): New function.
14653 (fill_in_logfont): Adjusted for the format change of font-spec.
14654 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
14655 weight value.
14656 (w32font_driver): Adjusted for the change of struct font_driver.
14657
14658 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
14659 conditionals. Don't check enable_font_backend. Surround non-used
14660 code by "#ifdef OLD_FONT" and "endif".
14661 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
14662 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
14663
14664 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
14665 conditionals. Don't check enable_font_backend. Delete all codes
14666 used only when USE_FONT_BACKEND is not defined. Surround non-used
14667 code by "#ifdef OLD_FONT" and "endif".
14668
14669 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
14670 (uniscribe_open): Return value changed to font-object.
14671 Adjusted for the format change of font-object.
14672 (uniscribe_otf_capability): Adjusted for the change of struct font.
14673 (add_opentype_font_name_to_list): Don't downcase names.
14674 (uniscribe_font_driver): Adjusted for the change of struct
14675 font_driver.
14676
146772008-05-13 Chong Yidong <cyd@stupidchicken.com>
14678
14679 * dispnew.c (update_frame_1): Check if tty output is still valid
14680 before flushing it.
14681
146822008-05-13 Jan Djärv <jan.h.d@swipnet.se>
14683
14684 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
14685 to Gtk+ menus.
14686
146872008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14688
14689 * dired.c (file_name_completion): Tweak the code so as to always do it
14690 in a single pass. Tighten the scope of some variables.
14691
14692 * dired.c (Qdefault_directory): New var.
14693 (file_name_completion): Use it instead of Fexpand_file_name.
14694 (syms_of_dired): Initialize it.
14695
146962008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
14697
14698 * fileio.c (double_dollars): Remove dead code.
14699
147002008-05-10 Eli Zaretskii <eliz@gnu.org>
14701
14702 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
14703 Mention w32-get-true-file-attributes in doc string.
14704
14705 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
14706
147072008-05-09 Glenn Morris <rgm@gnu.org>
14708
14709 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
14710 2008-04-23.
14711
147122008-05-09 Eli Zaretskii <eliz@gnu.org>
14713
14714 Support for reporting owner and group of each file on MS-Windows:
14715 * dired.c (stat_uname, stat_gname): New functions, with special
14716 implementation for w32.
14717 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
14718
14719 * w32.c: Rename the_passwd_* to dflt_passwd_*.
14720 (dflt_group_name): New static variable.
14721 (dflt_group): Rename from the_group.
14722 (init_user_info): Init dflt_group fields. Get user's group name
14723 from LookupAccountSid.
14724 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
14725 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
14726 New initialization states.
14727 (globals_of_w32): Initialize them to zero. Initialize the default
14728 group name to "None".
14729 (GetFileSecurity_Name): New global var, the name of the function
14730 to call for GetFileSecurity.
14731 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
14732 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
14733 (get_file_security, get_security_descriptor_owner)
14734 (get_security_descriptor_group, is_valid_sid)
14735 (get_file_security_desc, get_rid, get_name_and_id)
14736 (get_file_owner_and_group): New functions.
14737 (stat): Use get_file_security_desc and get_file_owner_and_group to
14738 report the owner and primary group of each file. Don't ignore the
14739 high 32 bits of file's size, now that st_size is 64-bit wide.
14740 Fix test when to get true file attributes.
14741 (init_user_info): Use get_rid instead of equivalent inline code.
14742 (fstat): Don't ignore the high 32 bits of file's size.
14743
147442008-05-09 Chong Yidong <cyd@stupidchicken.com>
14745
14746 * image.c (png_load): Use correct bit-depth for setting background
14747 color.
14748
147492008-05-08 Eli Zaretskii <eliz@gnu.org>
14750
14751 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
14752 epa-hook.elc.
14753
147542008-05-08 Juanma Barranquero <lekktu@gmail.com>
14755
14756 * font.c (Ffont_match_p): Don't use `iff' in docstring.
14757
147582008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
14759
14760 * macfns.c (Fx_create_frame): Make a copy of frame parameters
14761 because the original parameters are in pure storage now.
14762 (mac_window): Remove unused params. Update callers.
14763
147642008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14765
14766 * lread.c (substitute_object_recurse): Use lower-level primitives.
14767 Don't signal errors when traversing sub-char-tables.
14768 Don't loop over all the possible characters when traversing char-tables.
14769
14770 * print.c (print_preprocess): Add sub-char-tables to the print-table,
14771 just like we do in print.c.
14772
147732008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
14774
14775 * minibuf.c (Ftry_completion): Remove code left over from when we used
14776 scmp instead of Fcompare_strings.
14777
147782008-05-04 Juanma Barranquero <lekktu@gmail.com>
14779
14780 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
14781
147822008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14783
14784 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
14785 Create bitmap context in native byte order.
14786
14787 * macterm.c (XDrawLine)
14788 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
14789 context in native byte order.
14790
147912008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14792
14793 * config.in: Regenerate.
14794
14795 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
14796 New definitions for Image I/O support.
14797 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14798 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
14799 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14800 (mac_data_provider_release_data, image_load_image_io)
14801 [USE_MAC_IMAGE_IO]: New functions.
14802 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
14803 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
14804 (init_image_func_pointer) [MAC_OSX]: Remove function.
14805 (image_load_quartz2d) [MAC_OSX]: Check availability of
14806 CGImageCreateWithPNGDataProvider at compile time.
14807 Use lowercase `false' for boolean constant.
14808 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
14809 Use image_load_image_io.
14810 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
14811 Don't check MyCGImageCreateWithPNGDataProvider.
14812 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14813 Don't call init_image_func_pointer.
14814
14815 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14816
14817 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14818 Make variable non-static.
14819 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14820 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14821
14822 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14823 (RED_FROM_ULONG): Mask off higher bits.
14824 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14825
14826 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14827 Include AvailabilityMacros.h.
14828 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14829 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14830
148312008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14832
14833 * chartab.c (Fset_char_table_range): If range is t, really set all
14834 chars to that value.
14835
148362008-05-03 Eli Zaretskii <eliz@gnu.org>
14837
14838 * dired.c (Ffile_attributes): Don't allow the device number become
14839 negative.
14840
148412008-05-02 Daiki Ueno <ueno@unixuser.org>
14842
14843 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14844
148452008-05-02 Juri Linkov <juri@jurta.org>
14846
14847 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14848 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14849 DEFAULT argument as a list of default values in docstrings.
14850
148512008-05-01 Chong Yidong <cyd@stupidchicken.com>
14852
14853 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14854
148552008-05-01 Martin Rudalics <rudalics@gmx.at>
14856
14857 * dispnew.c (change_frame_size_1): Preserve small windows when
14858 shrinking frames by calling set_window_height|width with third
14859 arg 2.
14860
14861 * window.h (struct window): Replace field too_small_ok by field
14862 resize_proportionally.
14863
14864 * window.c (make_window): Initialize resize_proportionally.
14865 (enlarge_window): Temporarily set resize_proportionally to make
14866 sure that shrink_windows does scale the window proportionally.
14867 (shrink_windows): When window has resize_proportionally set try
14868 to shrink it proportionally by stealing from other windows.
14869 (struct saved_window, Fset_window_configuration)
14870 (compare_window_configurations): Handle resize_proportionally.
14871 (WINDOW_TOTAL_SIZE): New macro.
14872 (window_min_size, shrink_windows, size_window): Use it.
14873 (check_min_window_sizes): Remove. Invalid values of
14874 window-min-height|width are handled by window_min_size_2 now.
14875 (size_window, Fsplit_window, enlarge_window)
14876 (adjust_window_trailing_edge, grow_mini_window): Don't call
14877 check_min_window_sizes.
14878 (window_min_size_2, window_min_size_1, window_min_size):
14879 New argument safe_p for retrieving "safe" minimum sizes.
14880 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14881 (adjust_window_trailing_edge, grow_mini_window):
14882 Adjust arguments of window_min_size... functions.
14883 (shrink_windows): Argument min_size removed. New argument
14884 safe_p allows shrinking windows to their safe minimum sizes.
14885 Calculate minimum size and decide whether a window shall be
14886 deleted for each window individually.
14887 (size_window): When nodelete_p equals 2, tell shrink_windows to
14888 delete windows only if their new minimum size is no more safe.
14889 (shrink_window_lowest_first): Call window_min_size_1 to make
14890 sure to preserve modeline of bottom-most window when resizing
14891 the minibuffer.
14892 (Fset_window_configuration, Fcurrent_window_configuration)
14893 (compare_window_configurations): Do not handle
14894 window-min-height|width any more.
14895 (syms_of_window): Clarify window-min-height|width doc-strings.
14896
148972008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14898
14899 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14900 some more. Copy some of the code from Ftry_completions.
14901 Remove special case code that dates back to initial revision when the
14902 slash was only added when necessary and that can't trigger nowadays.
14903
149042008-04-27 Kenichi Handa <handa@m17n.org>
14905
14906 * font.c (font_prop_validate): Signal `error' instead of `font'.
14907
149082008-04-29 Jason Rumney <jasonr@gnu.org>
14909
14910 * w32fns.c (Fw32_battery_status): New defun.
14911 (syms_of_w32fns): Defsubr it.
14912
149132008-04-28 Andreas Schwab <schwab@suse.de>
14914
14915 * dired.c (file_name_completion): Fix another mixing of encoded
14916 and decoded names.
14917
149182008-04-28 Juanma Barranquero <lekktu@gmail.com>
14919
14920 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14921
149222008-04-27 Juanma Barranquero <lekktu@gmail.com>
14923
14924 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14925
149262008-04-27 Andreas Schwab <schwab@suse.de>
14927
14928 * dired.c (file_name_completion): Fix inappropriate mixing of
14929 encoded and decoded names.
14930
14931 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14932
14933 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14934
149352008-04-26 Eli Zaretskii <eliz@gnu.org>
14936
14937 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14938 2008-03-31, it's not needed anymore with `struct stat' definition
14939 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14940 for the same reasons.
14941
149422008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14943
14944 * m/sparc.h: Additional redefinitions for GNU/Linux.
14945
149462008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14947
14948 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14949 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14950 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14951 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14952 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14953 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14954 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14955 Likewise.
14956
14957 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14958 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14959 (mac_ax_number_of_characters): Add externs.
14960 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14961 [USE_MAC_TSM]: Likewise.
14962 (mac_handle_text_input_event) [MAC_OSX]:
14963 Handle kEventTextInputOffsetToPos for no active input area case.
14964 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14965 (mac_handle_document_access_event)
14966 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14967 (install_application_handler) [MAC_OSX]: Register handlers for
14968 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14969 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14970 Register mac_handle_document_access_event.
14971
14972 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14973 Make functions non-static.
14974
149752008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14976
14977 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14978 (read_file_name_completion_ignore_case, insert_default_directory)
14979 (Qdefault_directory): Move to minibuffer.el.
14980 (Fread_file_name): Call the new `read-file-name' instead.
14981
149822008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14983
14984 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14985 Make function non-static.
14986 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14987 Remove function.
14988 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14989 Move to mactoolbox.c.
14990 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14991
14992 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14993 (mac_rect_make): New macro.
14994
14995 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14996 instead of float.
14997 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14998 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14999 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15000 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15001 CGRectMake.
15002 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15003 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15004 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15005 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15006 instead of WindowRef in argument type.
15007 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15008 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15009 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15010 instead of DISPLAY. All uses changed.
15011 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15012 (x_calc_absolute_position): Simplify so as not to use
15013 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15014
15015 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15016 instead of WindowRef in argument type.
15017 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15018 [TARGET_API_MAC_CARBON]: Remove externs.
15019 (create_apple_event, mac_event_parameters_to_lisp)
15020 [TARGET_API_MAC_CARBON]: Add externs.
15021
15022 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15023 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15024 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15025 is clicked.
15026 (x_activate_menubar): Remove extern for saved_menu_event_location.
15027 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15028 Move from mac.c.
15029
150302008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15031
15032 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15033 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15034
150352008-04-23 Jason Rumney <jasonr@gnu.org>
15036
15037 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15038 attributes only for local files.
15039
15040 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15041 default to Qlocal.
15042
150432008-04-22 Juri Linkov <juri@jurta.org>
15044
15045 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15046 read-buffer-to-switch instead of using the letter "B".
15047
150482008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15049
15050 * fileio.c (Qdefault_directory): New variable.
15051 (Fread_file_name): Use it to pass `dir' to the completion functions.
15052
150532008-04-20 Chong Yidong <cyd@stupidchicken.com>
15054
15055 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15056
150572008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15058
15059 * keyboard.c (Vpre_help_message): Remove.
15060 (show_help_echo): Remove default C code.
15061
15062 * dired.c (directory_files_internal, file_name_completion):
15063 Only call ENCODE_FILE if the string is indeed decoded.
15064
150652008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15066
15067 * Makefile.in (TOOLKIT_DEFINES): Remove.
15068 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15069
150702008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15071
15072 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15073 (mactoolbox.o): New target.
15074
15075 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15076 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15077
15078 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15079 Use mac_set_frame_window_background instead of XSetWindowBackground.
15080 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15081 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15082 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15083 instead of SetWindowTitleWithCFString.
15084 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15085 Move function to mactoolbox.c.
15086 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15087 Use mac_set_window_modified instead of SetWindowModified.
15088 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15089 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15090 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15091 FrontNonFloatingWindow. Use mac_activate_window instead of
15092 ActivateWindow. Use mac_active_non_floating_window instead of
15093 ActiveNonFloatingWindow.
15094 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15095 Use mac_show_hourglass and mac_hide_hourglass.
15096 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15097 instead of GetGlobalMouse.
15098 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15099 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15100 Use mac_bring_window_to_front instead of BringToFront.
15101 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15102 mactoolbox.c.
15103 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15104 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15105 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15106 mactoolbox.c.
15107
15108 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15109 (XtPointer): Move typedef from macmenu.c.
15110 (enum button_type): Move enum from macmenu.c.
15111 (widget_value): Move typedef from macmenu.c.
15112 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15113 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15114 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15115 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15116 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15117 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15118 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15119 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15120 (Selection): Move typedef from macselect.c.
15121 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15122 macterm.c.
15123 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15124 (mac_is_window_collapsed, mac_bring_window_to_front)
15125 (mac_send_window_behind, mac_hide_window, mac_show_window)
15126 (mac_collapse_window, mac_front_non_floating_window)
15127 (mac_active_non_floating_window, mac_activate_window)
15128 (mac_move_window_structure, mac_move_window, mac_size_window)
15129 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15130
15131 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15132 (enum mac_menu_kind): Move enum to mactoolbox.c.
15133 (min_menu_id): Move variable to mactoolbox.c.
15134 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15135 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15136 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15137 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15138 [TARGET_API_MAC_CARBON]: Likewise.
15139 (XtPointer): Move typedef to macgui.h.
15140 (enum button_type): Move enum to macgui.h.
15141 (widget_value): Move typedef to macgui.h.
15142 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15143 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15144 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15145 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15146 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15147 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15148 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15149 (popup_activated_flag): Make variable non-static.
15150 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15151 (add_menu_item, fill_menu, dispose_menus):
15152 Move functions to mactoolbox.c.
15153 (restore_show_help_function, menu_target_item_handler)
15154 (install_menu_target_item_handler, mac_handle_dialog_event)
15155 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15156 [TARGET_API_MAC_CARBON]: Likewise.
15157 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15158 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15159 (find_and_call_menu_selection, name_is_separator): Make function
15160 non-static.
15161 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15162 to mactoolbox.c.
15163 (set_frame_menubar): Don't call install_menu_quit_handler.
15164 (menu_item_selection): New variable.
15165 (mac_menu_show): Use create_and_show_popup_menu.
15166 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15167 selection but set variable menu_item_selection. All uses changed.
15168 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15169 Call install_menu_quit_handler. Move to mactoolbox.c.
15170
15171 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15172 (Selection): Move typedef to macgui.h.
15173 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15174 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15175 Make variables non-static.
15176 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15177 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15178 Make functions non-static.
15179 (Vmac_service_selection) [MAC_OSX]: Likewise.
15180 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15181 (mac_valid_selection_target_p, mac_clear_selection)
15182 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15183 (mac_put_selection_value, mac_selection_has_target_p)
15184 (mac_get_selection_value, mac_get_selection_target_list)
15185 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15186 Move functions to mactoolbox.c.
15187 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15188 Likewise.
15189 (copy_scrap_flavor_data, mac_handle_service_event)
15190 (install_service_handler) [MAC_OSX]: Likewise.
15191 (syms_of_macselect) <Vmac_dnd_known_types>:
15192 Use mac_dnd_default_known_types.
15193
15194 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15195 Move to mactoolbox.c.
15196 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15197 (Fx_selection_owner_p): Add EXFUN.
15198 (install_window_handler, remove_window_handler, XSetWindowBackground):
15199 Remove externs.
15200 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15201 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15202 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15203 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15204 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15205 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15206 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15207 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15208 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15209 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15210 (mac_valid_selection_target_p, mac_clear_selection)
15211 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15212 (mac_put_selection_value, mac_selection_has_target_p)
15213 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15214 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15215 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15216 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15217 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15218 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15219 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15220 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15221 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15222
15223 * mactoolbox.c: New file.
15224
152252008-04-18 Jason Rumney <jasonr@gnu.org>
15226
15227 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15228
152292008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15230
15231 * character.c (Fmultibyte_char_to_unibyte):
15232 Return latin1 chars unchanged.
15233
15234 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15235 relocated if it points to `name'.
15236
152372008-04-17 Kenichi Handa <handa@m17n.org>
15238
15239 * data.c (Faset): Allow setting a multibyte character in an
15240 ASCII-only unibyte string.
15241
15242 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15243
152442008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15245
15246 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15247 done in config.h.
15248
152492008-04-16 Juanma Barranquero <lekktu@gmail.com>
15250
15251 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15252 (Fchar_direction): Add usage in the docstring.
15253
152542008-04-15 Chong Yidong <cyd@stupidchicken.com>
15255
15256 * keyboard.c (read_key_sequence): Remove always-true checks.
15257
152582008-04-14 Jason Rumney <jasonr@gnu.org>
15259
15260 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15261 compatibility struct, for better underline positioning.
15262
152632008-04-13 David Hansen <david.hansen@gmx.net>
15264
15265 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15266 string.
15267
152682008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15269
15270 * m/hp800.h (XUINT, XSET): Remove.
15271
152722008-04-12 Juanma Barranquero <lekktu@gmail.com>
15273
15274 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15275 previous change.
15276
152772008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15278
15279 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15280 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15281
152822008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15283
15284 * keymap.h (map_keymap_canonical): Declare.
15285 * xmenu.c (single_keymap_panes): Use it.
15286
152872008-04-11 Glenn Morris <rgm@gnu.org>
15288
15289 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15290 set the target's value to that of the alias.
15291
152922008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15293
15294 * term.c (set_tty_color_mode): Left over typo.
15295
152962008-04-10 Michael Albinus <michael.albinus@gmx.de>
15297
15298 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15299 only after check for file name handler functions. Signal, when
15300 native functionality is not supported.
15301 (syms_of_fileio): Declare it unconditionally.
15302
153032008-04-10 Jason Rumney <jasonr@gnu.org>
15304
15305 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15306 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15307
15308 * w32.c (logon_network_drive): Also logon to remote drives that
15309 are mapped to drive letters.
15310
153112008-04-10 Glenn Morris <rgm@gnu.org>
15312
15313 * xdisp.c (truncate-partial-width-windows): Doc fix.
15314
153152008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15316
15317 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15318 Move functions to minibuffer.el.
15319 (syms_of_fileio): Don't declare them.
15320
153212008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15322
15323 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15324 (syms_of_minibuf): Remove its initialization.
15325
15326 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15327
153282008-04-09 Juanma Barranquero <lekktu@gmail.com>
15329
15330 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15331
153322008-04-09 Jason Rumney <jasonr@gnu.org>
15333
15334 * makefile.w32-in (distclean): Delete makefile too.
15335 (maintainer-clean): New target.
15336
15337 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15338
15339 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15340 for new font backend and composite cases.
15341
153422008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15343
15344 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15345 Most of the code moved to run_timers.
15346 (do_pending_atimers): Call run_timers.
15347 (run_timers): New function.
15348
15349 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15350 run atimers.
15351
15352 * process.c (wait_reading_process_output): The same as above.
15353
153542008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15355
15356 * minibuf.c (last_exact_completion): Remove variable.
15357 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15358 (complete_and_exit_1, complete_and_exit_2)
15359 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15360 (Fdisplay_completion_list, display_completion_list_1)
15361 (Fminibuffer_completion_help, Fself_insert_and_exit)
15362 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15363 minibuffer.el.
15364 (syms_of_minibuf): Remove corresponding initializations.
15365
15366 * keyboard.c (Qdeactivate_mark): New var.
15367 (command_loop_1): Use it to call `deactivate-mark'.
15368 (syms_of_keyboard): Initialize it.
15369
15370 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15371 to another frame.
15372 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15373 Don't call set_tty_color_mode.
15374 (store_frame_param): Reset previous_frame rather than call
15375 set_tty_color_mode.
15376 * term.c (set_tty_color_mode): Rewrite.
15377 * dispextern.h (set_tty_color_mode): New type.
15378 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15379
153802008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15381
15382 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15383 for generic chars, which do not exist any more in emacs-unicode.
15384
153852008-04-08 Michael Albinus <michael.albinus@gmx.de>
15386
15387 * coding.c (detect_coding_emacs_mule)
15388 (Ffind_operation_coding_system): Fix typo.
15389
153902008-04-08 Jason Rumney <jasonr@gnu.org>
15391
15392 * w32uniscribe.c (SNAME): Extract only symbol name.
15393
15394 * w32font.h (struct w32_metric_cache): New struct.
15395 (w32font_info): Use it.
15396 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15397 (CACHE_BLOCKSIZE): New constants.
15398
15399 * w32font.c (Qja, Qko, Qzh): New symbols.
15400 (syms_of_w32font): Initialise them.
15401 (font_matches_spec): Use them to filter by language.
15402 (recompute_cached_metrics): Remove function.
15403 (compute_metrics, clear_cached_metrics): New functions.
15404 (w32font_encode_char): Use them to manage metric cache.
15405 (w32font_text_extents): Cache metrics for all glyphs on demand.
15406 Delay converting glyph indices to WORD until needed.
15407 (w32font_open_internal): Initialize metric cache to empty.
15408 (registry_to_w32_charset): Charset should always be a symbol.
15409 (fill_in_logfont, list_all_matching_fonts): Family should
15410 always be a symbol.
15411
154122008-04-06 Jason Rumney <jasonr@gnu.org>
15413
15414 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15415 Give up if glyph indices not supported. Use uniscribe obtained
15416 ABC widths for individual metrics. Map glyph clusters back to
15417 characters using fClusterStart flag. Return number of glyphs
15418 produced, not chars processed.
15419 (uniscribe_shape): Map char at FROM to current glyph.
15420
154212008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15422
15423 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15424 Use SetMenuItemHierarchicalMenu.
15425
154262008-04-05 Jason Rumney <jasonr@gnu.org>
15427
15428 * image.c (pbm_load): Allow color values up to 65535.
15429 Throw an error if max_color_idx is outside the supported range.
15430 Report an error when image size is invalid.
15431 Read two bytes at a time when raw images have max_color_idx above 255.
15432
aac0c6e3
MR
154332008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15434
15435 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15436 append "CCL: Quitted" when the CCL program is quitted.
15437 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15438
15439 * ccl.h (struct ccl_program): New member quit_silently.
15440
154412008-04-05 Chong Yidong <cyd@stupidchicken.com>
15442
15443 * search.c (compile_pattern_1): Treat non-nil and non-string of
15444 search-spaces-regexp as nil.
15445
15446 * minibuf.c (Fassoc_string): Tweak docstring.
15447
154482008-04-05 Eli Zaretskii <eliz@gnu.org>
15449
15450 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15451 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15452 2008-03-14 to force inode be positive.
15453
15454 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15455 _S_* ones, since we now use our own sys/stat.h.
15456 (stat, fstat): Don't mangle the inode number.
15457 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15458
154592008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15460
15461 * frame.h (struct frame): Give one more bit to `visible' since we use
15462 values larger than 1 to indicate obscured frames on ttys.
15463
15464 * keymap.c (Qkeymap_canonicalize): New var.
15465 (Fmap_keymap_internal): New fun.
15466 (describe_map): Use keymap-canonicalize.
15467
15468 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15469 (Fundo_boundary): Set them.
15470 (syms_of_undo): Initialize them.
15471 (record_point): Use them instead of last_point_position*.
15472 (last_undo_buffer): Change type.
15473
154742008-04-04 Jason Rumney <jasonr@gnu.org>
15475
15476 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15477 (recompute_cached_metrics): Don't set ascent and descent per char.
15478
15479 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15480 (uniscribe_check_otf): Add GC protection before consing.
15481 Rearrange loop for counting features.
15482
154832008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15484
15485 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15486 buffer with byte-size of source buffer.
15487
154882008-04-03 Chong Yidong <cyd@stupidchicken.com>
15489
15490 * callint.c (Fcall_interactively): Handle temporary region even
15491 when shift-select-mode is off.
15492
154932008-04-03 Jason Rumney <jasonr@gnu.org>
15494
15495 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15496
154972008-04-03 Kenichi Handa <handa@m17n.org>
15498
15499 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15500 (CATEGORY_MASK_UTF_16): Likewise.
15501 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15502 binary file.
15503 (detect_coding): Add null-byte detection for a binary file.
15504 (detect_coding_system): Likewise.
15505
155062008-04-03 Jason Rumney <jasonr@gnu.org>
15507
15508 * w32uniscribe.c: New file.
15509
15510 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
15511
15512 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
15513
15514 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
15515 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
15516 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
15517 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
15518 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
15519 (Qphonetic): New symbols.
15520 (syms_of_w32font): Initialize them.
15521 (font_supported_scripts): Use them.
15522 (w32font_list_family): List all charsets.
15523 (w32font_text_extents, recompute_cached_metrics): Fix metric
15524 calculations.
15525 (w32_enumfont_pattern_entity): Make full_type a DWORD.
15526 Give opentype fonts their own format.
15527 (font_matches_spec): New arguments backend and logfont.
15528 Handle :otf spec for uniscribe backend.
15529 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
15530 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
15531
15532 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
15533 font backend.
15534 (globals_of_w32fns): Initialize uniscribe font backend.
15535
15536 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
15537 dependencies.
15538 (w32uniscribe.$(O)): New file to build.
15539 (FONT_OBJ): Include w32uniscribe.$(O).
15540 (LIBS): Add uniscribe libraries.
15541
15542 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
15543
155442008-04-02 Chong Yidong <cyd@stupidchicken.com>
15545
15546 * callint.c (Vshift_select_mode): New var.
15547 (Finteractive): Document new ^ spec.
15548 (Fcall_interactively): Call handle-shift-selection if the ^ spec
15549 is present.
15550
15551 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15552 (command_loop_1): Avoid running the direct display versions of
15553 forward-char and backward-char if shift-selection may occur.
15554 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15555 shift-translation takes place.
15556
15557 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15558 avoid clobbering by define-minor-mode.
15559
15560 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15561 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15562
15563 * syntax.c (Fforward_word): Add ^ interactive spec.
15564
15565 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15566 (Fscroll_right): Add ^ interactive spec.
15567
155682008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15569
15570 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15571
15572 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15573
15574 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15575
155762008-03-31 Juri Linkov <juri@jurta.org>
15577
15578 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15579
155802008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15581
15582 * gtkutil.c (xg_set_geometry): Fix indentation.
15583 (xg_resize_outer_widget): Remove.
15584 (x_wm_size_hint_off): Fix indentation.
15585 (xg_frame_set_char_size): Call flush_and_sync after
15586 gtk_window_resize.
15587 (x_wm_set_size_hint): Pass NULL as geometry window to
15588 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15589 Add menu bar and tool bar height to base height.
15590 (xg_update_frame_menubar, free_frame_menubar)
15591 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15592 (update_frame_tool_bar, free_frame_tool_bar):
15593 Change xg_resize_outer_widget to xg_frame_set_char_size.
15594
155952008-03-30 Michael Albinus <michael.albinus@gmx.de>
15596
15597 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15598 (Fdbus_call_method): New parameter TIMEOUT.
15599 (dbus-send-signal): Optimize UNGCPRO call.
15600
156012008-03-29 Juri Linkov <juri@jurta.org>
15602
15603 * window.c (Fdisplay_buffer): Move call to
15604 Vsplit_window_preferred_function out of conditions that check
15605 if window is eligible for vertical splitting.
15606 When Vsplit_window_preferred_function is non-nil, call it and use
15607 its non-nil return value as window. Otherwise, continue doing
15608 vertical splitting using Fsplit_window with arg horflag=nil.
15609 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15610 default value from `split-window' to nil.
15611
156122008-03-29 Juri Linkov <juri@jurta.org>
15613
15614 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15615 for interactive code letters 'b' and 'B'.
15616
156172008-03-29 Eli Zaretskii <eliz@gnu.org>
15618
15619 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15620 multibyte string.
15621
156222008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15623
15624 * keyboard.c (pending_funcalls): New var.
15625 (timer_check): Run it.
15626 (syms_of_keyboard): Initialize it.
15627 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15628 (Vdelete_terminal_functions): New vars.
15629 (syms_of_terminal): Initialize them.
15630 (Fdelete_terminal): Run delete-terminal-functions.
15631 * xdisp.c (safe_eval): Rewrite.
15632 (safe_call2): New fun.
15633 * frame.c (Qdelete_frame_functions): New var.
15634 (syms_of_frame): Initialize it.
15635 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15636 * lisp.h (safe_call2, pending_funcalls): Declare.
15637
156382008-03-28 Andreas Schwab <schwab@suse.de>
15639
15640 * indent.c (Fmove_to_column): Move declaration before statements.
15641
156422008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15643
15644 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15645 (struct frame): Use bit fields for boolean vars.
15646
15647 * process.c (server_accept_connection): Simplify naming.
15648 (emacs_get_tty_pgrp): Use SDATA.
15649
15650 * coding.c (decode_coding_object): Fix last change.
15651
156522008-03-27 Jason Rumney <jasonr@gnu.org>
15653
15654 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
15655
156562008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
15657
15658 * charset.c (Fdefine_charset_internal): Change the way of
15659 registering charsets in Vcharset_order_list.
15660 (syms_of_charset): Make the charset `eight-bit' supplementary.
15661
156622008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
15663
15664 * regex.c (EXTEND_BUFFER): Change order of pointer addition
15665 operations, to avoid having the difference between pointers
15666 overflow.
15667
156682008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
15669
15670 * indent.c (check_display_width): New fun.
15671 (scan_for_column): Use it.
15672
15673 * data.c (syms_of_data): Mark most-positive-fixnum and
15674 most-negative-fixnum as constants.
15675
15676 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
15677
15678 * indent.c (scan_for_column): Extract from current_column_1.
15679 Merge with the same code from Fmove_to_column.
15680 (current_column_1, Fmove_to_column): Use it.
15681
156822008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
15683
15684 * keymap.c (map_keymap_internal): New fun.
15685 (map_keymap): Use it.
15686 (Fmap_keymap_internal): New fun.
15687 (Fmap_keymap): Remove left-out test from before make_save_value.
15688
15689 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
15690
15691 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
15692 Use XCAR/XCDR.
15693
15694 * process.h (struct Lisp_Process): Remove filter_multibyte.
15695 * process.c (QCfilter_multibyte): Remove.
15696 (setup_process_coding_systems): Don't use filter_multibyte.
15697 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
15698 (read_process_output): Don't adjust multibyteness to filter_multibyte.
15699 (Fset_process_filter_multibyte): Change the coding-system to
15700 approximate the previous behavior.
15701 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
15702 coding-system.
15703
15704 * coding.c (decode_coding_object): When not decoding into a buffer,
15705 obey the coding system's preference of (uni|multi)byte.
15706
157072008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
15708
15709 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
15710 every char is changed and has a different byte-length.
15711 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
15712 Fix int -> EMACS_INT.
15713
157142008-03-23 David Hansen <david.hansen@gmx.net>
15715
15716 * dbusbind.c (xd_read_message): Remove extra copying of message
15717 strings. Check for NULL `interface' or `member'.
15718
157192008-03-22 Eli Zaretskii <eliz@gnu.org>
15720
15721 * w32.c (readdir): If FindFirstFile/FindNextFile return in
15722 cFileName a file name that includes `?' characters, use the 8+3
15723 alias in cAlternateFileName instead.
15724
157252008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
15726
15727 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
15728
157292008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15730
15731 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
15732 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
15733 work on current_buffer only instead (that was already the case
15734 for some of the code anyway).
15735 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
15736 (temp_set_point, temp_set_point_both): Use EMACS_INT.
15737 (SET_PT, SET_PT_BOTH): Adjust.
15738 * intervals.h (set_point, temp_set_point, set_point_both)
15739 (temp_set_point_both): Remove redundant declarations.
15740
157412008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15742
15743 * fileio.c (Finsert_file_contents):
15744 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
15745 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
15746 when buffer != current_buffer anyway.
15747
157482008-03-20 Andreas Schwab <schwab@suse.de>
15749
15750 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
15751 as default.
15752
157532008-03-19 Jason Rumney <jasonr@gnu.org>
15754
15755 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
15756 (syms_of_w32fns): Initialize them.
15757 (HOURGLASS_ID): New constant.
15758 (x_window_to_frame): Don't check hourglass_window.
15759 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
15760 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
15761 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
15762 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
15763 Only change the cursor if hourglass is not active.
15764 (Fx_create_frame): Initialize frame's current_cursor.
15765 (hourglass_atimer): Remove.
15766 (hourglass_started): New function.
15767 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
15768 (show_hourglass): Adapt to w32, changing argument to frame.
15769
15770 * w32term.h (struct w32_output): Remove hourglass_window.
15771 Add current_cursor.
15772
15773 * eval.c (call_debugger, Fsignal):
15774 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
15775 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
15776 (Fexecute_extended_command, cancel_hourglass_unwind):
15777 * minibuf.c (read_minibuf):
15778 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
15779
157802008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
15781
15782 * window.c (run_funs): New fun.
15783 (run_window_configuration_change_hook): Use it to run the buffer-local
15784 and the global part of the hook.
15785
15786 * xdisp.c (format_mode_line_unwind_data): Add window argument.
15787 (unwind_format_mode_line): Restore selected window.
15788 (x_consider_frame_title, Fformat_mode_line): Set selected window.
15789
157902008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15791
15792 * editfns.c (Fchar_equal): Check they are valid characters.
15793
15794 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
15795
157962008-03-17 Andreas Schwab <schwab@suse.de>
15797
15798 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
15799 against a charset.
15800
15801 * lisp.h (Fbuffer_list): Declare.
15802
158032008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 15804
aac0c6e3
MR
15805 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
15806 handlebox_widget is != 0.
15807
158082008-03-16 Juri Linkov <juri@jurta.org>
15809
15810 * callint.c (Fcall_interactively): For interactive code letters
15811 'b' and 'B' put the buffer list into the list of default "future"
15812 values of the minibuffer.
15813
158142008-03-16 Andreas Schwab <schwab@suse.de>
15815
15816 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15817 modifiers.
15818
15819 * regex.c (re_match_2_internal): Correct matching of a charset
15820 against latin-1 characters.
15821
158222008-03-16 Kenichi Handa <handa@m17n.org>
15823
15824 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15825 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15826 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15827 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15828 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15829 CHAR_STRING_ADVANCE.
15830 (produce_chars): Fix for the case that the source and the
15831 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15832 instead of CHAR_STRING_ADVANCE.
15833 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15834 STRING_CHAR_ADVANCE.
15835
158362008-03-15 Andreas Schwab <schwab@suse.de>
15837
15838 * regex.c (re_match_2_internal): Correct matching of eight bit
15839 characters in unibyte strings.
15840
158412008-03-15 Martin Rudalics <rudalics@gmx.at>
15842
15843 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15844 at end of range when it coincides with the end of the buffer.
15845
158462008-03-14 Eli Zaretskii <eliz@gnu.org>
15847
15848 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15849
15850 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15851
158522008-03-14 Jason Rumney <jasonr@gnu.org>
15853
15854 * editfns.c (initial_tz): New variable.
15855 (syms_of_editfns): Initialize it.
15856 (Fset_time_zone_rule): Set it when first called.
15857 Use it when TZSTRING is nil.
15858
15859 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15860 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15861 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15862 (globals_of_w32fns): Initialize them.
15863 (compute_tip_xy): Use them to position tooltips.
15864
158652008-03-14 Glenn Morris <rgm@gnu.org>
15866
15867 * emacs.c (main): Revert previous change.
15868 (standard_args): Revert -internal-script back to -scriptload,
15869 and remove the long-option form.
15870
158712008-03-13 Glenn Morris <rgm@gnu.org>
15872
15873 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15874 Remove option -enable-font-backend.
15875
158762008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15877
15878 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15879
158802008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15881
15882 * xterm.c (x_connection_closed): For GTK: If this is the last
15883 terminal just exit without closing the display.
15884
158852008-03-11 Jason Rumney <jasonr@gnu.org>
15886
15887 * w32font.c (w32font_full_name): Use floor to round.
15888
f0131492 158892008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
15890
15891 * sound.c (alsa_configure): Declare vol at beginning of block.
15892
15893 * fontset.c (Ffontset_info): Remove extra semicolon.
15894
158952008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15896
15897 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15898 size of resulting string.
15899
159002008-03-10 Jason Rumney <jasonr@gnu.org>
15901
15902 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15903
159042008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15905
15906 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15907 Don't pretend as if characters with display property haven't been
15908 consumed for string-replacing-string case.
15909
159102008-03-08 Kim F. Storm <storm@cua.dk>
15911
15912 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15913 (get_next_display_element, next_element_from_string)
15914 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15915
159162008-03-08 Andreas Schwab <schwab@suse.de>
15917
15918 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15919
159202008-03-06 Jason Rumney <jasonr@gnu.org>
15921
15922 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15923 when charset not specified. Only translate ANSI to unicode when
15924 font_type is truetype.
15925 (w32font_coverage_ok): New function.
15926 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15927
159282008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15929
15930 * lread.c (Fread_char): Resolve modifiers.
15931 (Fread_char_exclusive): Likewise.
15932
15933 * character.c (char_resolve_modifier_mask): New function.
15934 (char_string): Use char_resolve_modifier_mask.
15935 (Fchar_resolve_modifiers): New function.
15936 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15937 function.
15938
159392008-03-04 Jason Rumney <jasonr@gnu.org>
15940
15941 * makefile.w32-in: Always include w32font.c in the build.
15942 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15943
159442008-03-04 Andreas Schwab <schwab@suse.de>
15945
15946 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15947 (versionclean): Likewise.
15948
159492008-03-04 Juanma Barranquero <lekktu@gmail.com>
15950
15951 * .cvsignore: Add oo.
15952
159532008-03-03 Andreas Schwab <schwab@suse.de>
15954
15955 * coding.c (decode_coding_object): Inhibit gap shrinking while
15956 decoding in place.
15957
159582008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15959
15960 * w32term.c: Remove unused include "gnu.h".
15961 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15962
15963 * gnu.h: Rename to ...
15964 * emacs-icon.h: ... this.
15965 * xterm.c: Use emacs-icon.h instead of gnu.h.
15966 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15967
159682008-03-03 Juanma Barranquero <lekktu@gmail.com>
15969
15970 * w32font.c: Include math.h.
15971
159722008-03-03 Jason Rumney <jasonr@gnu.org>
15973
15974 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15975 Compute options separately.
15976 (w32font_open_internal): Set glyph_idx before caching metrics.
15977
15978 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15979 Define if system headers don't.
15980 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15981 (w32font_encode_char): Don't declare here.
15982
15983 * w32font.c (Quniscribe, QCformat): New symbols.
15984 (syms_of_w32font): Define them.
15985 (w32font_has_char): Indicate uncertainty.
15986 (w32font_encode_char): Encode as glyph point. Make static.
15987 (recompute_cached_metrics): New function.
15988 (w32font_open_internal): Use it. Set font to use glyph points
15989 initially. Set format based on type of font.
15990 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15991 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15992 on it. Set format based on information available here.
15993 (add_font_entity_to_list): Identify backend based on opentype_only.
15994
159952008-03-02 Andreas Schwab <schwab@suse.de>
15996
15997 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15998
15999 * coding.c (decode_coding_big5, produce_chars):
16000 Fix typos in last change.
16001
160022008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16003
16004 * gnu.h: New icon.
16005
160062008-03-02 Kenichi Handa <handa@m17n.org>
16007
16008 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16009 `dos', don't decode '\r' if that is the last in the source.
16010 (decode_coding_utf_16, decode_coding_emacs_mule)
16011 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16012 (decode_coding_raw_text, decode_coding_charset): Likewise.
16013 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16014
160152008-03-01 Jason Rumney <jasonr@gnu.org>
16016
16017 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16018
160192008-03-01 Kim F. Storm <storm@cua.dk>
16020
16021 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16022
160232008-03-01 Jason Rumney <jasonr@gnu.org>
16024
16025 * w32font.c (w32font_full_name): New function.
16026 (w32font_open_internal): Use it.
16027
160282008-03-01 Kim F. Storm <storm@cua.dk>
16029
16030 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16031
160322008-03-01 Jason Rumney <jasonr@gnu.org>
16033
16034 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16035
160362008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16037
16038 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16039 xg_frame_resized when the event is for the edit widget.
16040
16041 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16042
16043 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16044 set_char_size.
16045 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16046 operations on widgets here. Just set frame size if needed.
16047 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16048 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16049 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16050 the whole frame.
16051 (xg_create_tool_bar): Move attachment of the tool bar to
16052 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16053 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16054
160552008-03-01 Jason Rumney <jasonr@gnu.org>
16056
16057 * w32fns.c (w32_msg_pump): Disable debug code.
16058
160592008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16060
16061 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16062
160632008-02-29 Chong Yidong <cyd@stupidchicken.com>
16064
16065 * xdisp.c (next_overlay_string): Don't set
16066 overlay_strings_at_end_processed_p if we're currently reading from
16067 a display string.
16068
160692008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16070
16071 * xdisp.c (get_overlay_strings_1): Fix typo.
16072
160732008-02-29 Chong Yidong <cyd@stupidchicken.com>
16074
16075 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16076
160772008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16078
16079 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16080
16081 * xdisp.c (display_mode_element): Cancel the previous change.
16082 (decode_mode_spec): Likewise.
16083 (handle_auto_composed_prop): Don't make composition if it->string
16084 is a string.
16085
160862008-02-27 Kim F. Storm <storm@cua.dk>
16087
16088 * lisp.h (GLYPH): Change type from int to struct with separate char
16089 and face_id members.
16090 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16091 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16092 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16093 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16094 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16095 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16096 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16097 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16098 handle new Lisp glyph code encoding, either an integer or a cons.
16099
16100 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16101 (GLYPH_ALIAS): Delete.
16102 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16103 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16104 (GLYPH_FROM_CHAR): Replace macro by ...
16105 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16106
16107 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16108 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16109 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16110 (GLYPH_INVALID_P): New macro.
16111 (spec_glyph_lookup_face): Update prototype.
16112
16113 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16114 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16115 new glyph code encoding.
16116 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16117 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16118
16119 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16120 Adapt to new glyph type and new glyph code encoding.
16121
16122 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16123
16124 * indent.c (current_column, current_column_1, Fmove_to_column)
16125 (compute_motion): Adapt to new glyph code encoding.
16126
16127 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16128
161292008-02-27 Chong Yidong <cyd@stupidchicken.com>
16130
16131 * process.c (wait_reading_process_output): Check for window
16132 changes caused by timers.
16133 Suggested by Johan Bockgård.
16134
161352008-02-27 Glenn Morris <rgm@gnu.org>
16136
16137 * emacs.c (USAGE1): Add `--disable-font-backend'.
16138
161392008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16140
16141 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16142 is made to the buffer.
16143
161442008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16145
16146 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16147 (face_at_string_position):
16148 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16149 (face_at_string_position):
16150 * xdisp.c (display_string, next_overlay_change):
16151 * buffer.h (overlays_at):
16152 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16153 Update callers.
16154
161552008-02-26 Chong Yidong <cyd@stupidchicken.com>
16156
16157 * editfns.c (Fformat): Doc fix.
16158
161592008-02-26 Juanma Barranquero <lekktu@gmail.com>
16160
16161 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16162 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16163 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16164
161652008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16166
16167 * buffer.c (Fbuffer_swap_text): New function.
16168 (syms_of_buffer): Defsubr it.
16169
161702008-02-25 Chong Yidong <cyd@stupidchicken.com>
16171
16172 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16173
161742008-02-25 Jason Rumney <jasonr@gnu.org>
16175
16176 * w32font.c (w32font_draw): Draw one character at a time when padding.
16177
161782008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16179
16180 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16181 Handle a nil arg. Use run_window_configuration_change_hook.
16182 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16183 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16184 Use run_window_configuration_change_hook.
16185
161862008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16187
16188 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16189 1-pixel width.
16190
161912008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16192
16193 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16194 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16195 if the glyph in the font is zero pixel with.
16196
16197 * dispextern.h (struct glyph_string): New member padding_p.
16198
16199 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16200
16201 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16202
16203 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16204
16205 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16206
16207 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16208
162092008-02-25 Jason Rumney <jasonr@gnu.org>
16210
16211 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16212
162132008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16214
16215 Allow fine-grained image-cache flushing.
16216 * dispextern.h (struct image): Add `dependencies' field.
16217 (clear_image_caches): Change arg to Lisp_Object.
16218 * image.c (make_image): Initialize `dependencies' field.
16219 (clear_image_cache): Change arg to allow fine-grained flushing.
16220 Perform the flush even if image-cache-eviction-delay is nil.
16221 (clear_image_caches): Change arg to Lisp_Object.
16222 (Fclear_image_cache): Expand meaning of the argument.
16223 (mark_image): Mark `dependencies' field.
16224 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16225 (lface_hash): Use XHASH rather than XFASTINT.
16226 (face_at_buffer_position): Fix int -> EMACS_INT position.
16227 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16228 (select_frame_for_redisplay): Remove code duplication.
16229 (redisplay_internal): Adapt arg to call to clear_image_caches.
16230
162312008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16232
16233 * s/vms4-0.h:
16234 * s/vms4-2.h:
16235 * s/vms4-4.h:
16236 * s/vms5-5.h: Remove, unused.
16237
16238 * s/irix5-2.h:
16239 * s/irix6-0.h:
16240 * s/riscos5.h:
16241 * s/mach-bsd4-3.h:
16242 * m/mips4.h: Remove files for obsolete systems.
16243
16244 * Makefile.in:
16245 * filelock.c:
16246 * unexmips.c:
16247 * m/hp9000s300.h:
16248 * m/iris4d.h:
16249 * s/aix3-1.h:
16250 * s/hpux.h:
16251 * s/msdos.h:
16252 * s/usg5-0.h:
16253 * s/usg5-2-2.h:
16254 * s/usg5-2.h:
16255 * s/usg5-3.h: Remove references to obsolete variables.
16256
16257 * s/irix5-0.h: Remove, move all the contents ...
16258 * s/irix6-5.h: ... here. Simplify.
16259 * config.in: Regenerate.
16260
162612008-02-24 Jason Rumney <jasonr@gnu.org>
16262
16263 * w32term.c (x_draw_glyph_string_background): Clear the background
16264 manually when cleartype is in use.
16265 (x_draw_glyph_string_foreground): Draw text transparently when
16266 cleartype is in use.
16267
16268 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16269 a font into it unless we have to.
16270
162712008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16272
16273 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16274 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16275
aac0c6e3
MR
162762008-02-18 Jason Rumney <jasonr@gnu.org>
16277
16278 * w32fns.c (Fw32_shell_execute): Encode parameters.
16279
162802008-02-09 Eli Zaretskii <eliz@gnu.org>
16281
16282 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16283
162842008-02-05 Juanma Barranquero <lekktu@gmail.com>
16285
16286 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16287
162882008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16289
16290 * xterm.c (x_set_offset): Don't change the gravity if
16291 CHANGE_GRAVITY is -1.
16292
162932008-02-23 Chong Yidong <cyd@stupidchicken.com>
16294
16295 * fileio.c (auto_save_error_occurred): New var.
16296 (auto_save_error): Set it.
16297 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16298 error occurred.
16299
163002008-02-23 Eli Zaretskii <eliz@gnu.org>
16301
16302 * w32.c (globals_of_w32): Add initializations for
16303 g_b_init_get_sid_sub_authority and
16304 g_b_init_get_sid_sub_authority_count.
16305
163062008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16307
16308 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16309 (font_parse_xlfd): Use them for sanity check.
16310 (Finternal_set_font_style_table): Make sure the table is bijective.
16311
16312 Consolidate the image_cache to the terminal struct.
16313 * termhooks.h (P_): Remove redundant def.
16314 (struct terminal): New field `image_cache'.
16315 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16316 of FRAME_X_IMAGE_CACHE.
16317 * xterm.h (struct x_display_info): Remove image_cache field.
16318 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16319 * w32term.h (struct w32_display_info): Remove image_cache field.
16320 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16321 * macterm.h (struct mac_display_info): Remove image_cache field.
16322 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16323 * xterm.c (x_term_init):
16324 * w32term.c (w32_term_init):
16325 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16326 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16327 Remove declarations.
16328 (clear_image_caches, mark_image_cache): New declarations.
16329 * xfaces.c (clear_face_cache):
16330 * xdisp.c (redisplay_internal): Use clear_image_caches.
16331 * image.c (clear_image_cache): Don't check that a frame is on
16332 a window-system before checking if it shares the same cache.
16333 (clear_image_caches): New function.
16334 (Fclear_image_cache): Use it.
16335 (mark_image): Move from allo.c.
16336 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16337 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16338 (mark_object): Don't call mark_image_cache for frames.
16339 (mark_terminals): Call mark_image_cache.
16340
16341 * lisp.h (Fdelete_terminal): Declare.
16342
16343 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16344 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16345 wrong_type_argument.
16346
163472008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16348
16349 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16350 malayalam.el, and tamil.el. Add sinhala.el.
16351
163522008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16353
16354 * xterm.c (x_connection_closed): Consolidate identical tests.
16355 (x_delete_terminal): Don't crash if called via x_connection_closed.
16356
163572008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16358
16359 * xdisp.c (decode_mode_spec): New arg string.
16360 (display_mode_element): Adjust for the above change.
16361
163622008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16363
16364 * callint.c (Fcall_interactively): Use AREF.
16365
163662008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16367
16368 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16369
163702008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16371
16372 * xfns.c (Fx_show_tip): Set string to " " if empty.
16373
163742008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16375
16376 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16377 with Qt.
16378
163792008-02-17 Kenichi Handa <handa@m17n.org>
16380
16381 * ftfont.c (ftfont_shape): Return Lispy number.
16382
16383 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16384 for GCs.
16385 (Finternal_set_font_selection_order): Call font_update_sort_order
16386 only when enable_font_backend is set.
16387 (realize_x_face): Set face->font_info to that of default face only
16388 when enable_font_backend is set.
16389
16390 * xdisp.c (handle_composition_prop): Set it->c to the fist
16391 character of the composed region.
16392 (fill_composite_glyph_string): Set base_face->font_info to
16393 s->font_info. Get a face for ascii from base_face->ascii_face.
16394 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16395 with a face already decided.
16396 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16397 non-negative.
16398 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16399 call font_prepare_composition unconditionally.
16400
16401 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16402
16403 * xterm.h (struct x_display_info): New member font.
16404
16405 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16406 (x_set_mouse_face_gc, x_new_font): Likewise.
16407 (x_term_init): Setup display_info->font.
16408 (x_delete_terminal): Free display_info->font.
16409
16410 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16411
16412 * ftxfont.c (ftxfont_default_fid): Delete it.
16413 (ftxfont_open): Set xfont->fid to 0.
16414 (ftxfont_end_for_frame): Clear data specific to the frame and the
16415 font-driver.
16416
16417 * xftfont.c (xftfont_default_fid): Delete it.
16418 (xftfont_open): Set xfont->fid to 0.
16419
16420 * fontset.c (FONTSET_OBJLIST): New macro.
16421 (fontset_find_font): Update font-object list of the fontset.
16422 (free_realized_fontset): New function.
16423 (free_face_fontset): Call free_realized_fontset.
16424 (Ffont_info): Call font_close_object only when enable_font_backend
16425 is set.
16426
16427 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16428 [HAVE_NTGUI]: Include w32term.h.
16429 [MAC_OS]: Include macterm.ch.
16430 (font_otf_ValueRecord): Use make_number.
16431 (font_finish_cache): Fix handling of reference count.
16432 (font_clear_cache): Update num_fonts.
16433 (font_open_entity): Update smallest_char_width and
16434 smallest_font_height of the frame.
16435 (font_close_object): Update num_fonts.
16436 (Fclear_font_cache): Fix finding the target cache data.
16437
164382008-02-16 Glenn Morris <rgm@gnu.org>
16439
16440 * fontset.c (Finternal_char_font): Fix compilation warning.
16441
164422008-02-16 Eli Zaretskii <eliz@gnu.org>
16443
16444 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16445 instead of char arrays. Enlarge the size of array passed to
16446 get_token_information.
16447
16448 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16449 warnings.
16450
164512008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16452
16453 * .gdbinit: Don't set `args', it breaks gdb --args.
16454
164552008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16456
16457 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16458 within a narrowed buffer.
16459
164602008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16461
16462 * coding.c (decode_coding_object, encode_coding_object):
16463 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16464
164652008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16466
16467 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16468 hardcoding 1.
16469 (detect_coding_system):
16470 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16471 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16472 * insdel.c (insert_from_gap):
16473 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16474 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16475 (string_to_multibyte):
16476 * character.c (chars_in_text, multibyte_chars_in_text):
16477 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16478
16479 * character.h (FETCH_STRING_CHAR_ADVANCE)
16480 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16481 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16482 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16483
16484 * casefiddle.c (casify_region): Only call after-change and composition
16485 functions on the part of the region that was changed.
16486
16487 * keyboard.c (read_avail_input):
16488 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16489
164902008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16491
16492 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16493 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16494
164952008-02-11 Juanma Barranquero <lekktu@gmail.com>
16496
16497 * w32menu.c (push_submenu_start, push_submenu_end)
16498 (push_left_right_boundary, push_menu_pane, push_menu_item):
16499 * keyboard.c (read_key_sequence): Don't pass args with side effects
16500 to AREF, it fails when compiling with -DENABLE_CHECKING.
16501
165022008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16503
16504 * Makefile.in (${lispsource}international/charprop.el):
16505 Delete this target.
16506
16507 * search.c (boyer_moore): Fix incorrect synching of the trunk and
16508 emacs-unicode-2.
16509
165102008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16511
16512 * terminal.c (Fdelete_terminal): Clean up the `force' path.
16513
165142008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16515
16516 * frame.c (Qnoelisp): New symbol.
16517 (syms_of_frame): Initialize it.
16518 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
16519 harmless Elisp code, from a strong `force' from x_connection_closed.
16520 * frame.h (Qnoelisp): Declare.
16521 * xterm.c (x_connection_closed): Pass `noelisp'.
16522
16523 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
16524 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
16525 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
16526 rather than `int' for the type of `type'.
16527
165282008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
16529
16530 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
16531
16532 * Makefile.in (GNUC): Remove support for gcc-1.x.
16533
165342008-02-10 Richard Stallman <rms@gnu.org>
16535
16536 * lisp.h (ASET): Use AREF, not ASLOT.
16537
165382008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16539
16540 * lisp.h (ASET): Check bounds.
16541
165422008-02-10 Glenn Morris <rgm@gnu.org>
16543
16544 * buffer.c (mode-name): Doc fix.
16545
165462008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16547
16548 * Makefile.in:
16549 * emacs.c:
16550 * gmalloc.c:
16551 * keyboard.c:
16552 * lisp.h:
16553 * m/ibm370aix.h:
16554 * process.c:
16555 * regex.c:
16556 * s/hpux.h:
16557 * sysdep.c:
16558 * sysselect.h:
16559 * systty.h:
16560 * unexec.c:
16561 * w32term.c:
16562 * xsmfns.c:
16563 * xterm.c: Remove code that deals with obsolete variables.
16564
16565 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16566
16567 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16568 nothing else needs it anymore.
16569
165702008-02-09 Eli Zaretskii <eliz@gnu.org>
16571
16572 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16573 instead of unibyte_char_to_multibyte.
16574
165752008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16576
16577 * s/gnu-linux.h: Remove commented out code.
16578
16579 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16580
16581 * Makefile.in: Update what RMS says about using autoconf.
16582 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16583 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16584 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16585 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16586
165872008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16588
16589 * keymap.c (Fkey_description): Move side effect outside of macro call.
16590
16591 * xfaces.c (Finternal_make_lisp_face):
16592 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16593
16594 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16595 (syms_of_fontset): Use ASET.
16596
16597 * fns.c (concat): Move side effect outside of macro call.
16598 (hash_clear): Use ASET.
16599
166002008-02-08 Richard Stallman <rms@gnu.org>
16601
16602 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16603 If FORCE, and frame has a surrogate minibuffer for another frame,
16604 delete the other frame first.
16605
166062008-02-07 Timo Savola <timo.savola@iki.fi>
16607
16608 * xterm.c (x_detect_focus_change): Handle embed client message.
16609 (handle_one_xevent): Ditto.
16610 (handle_one_xevent): If embedded and we get a button press/release,
16611 request focus.
16612 (xembed_set_info, xembed_send_message): New functions.
16613 (x_make_frame_visible): Call xembed_set_info if embedded.
16614 (x_make_frame_invisible): Call xembed_set_info if embedded.
16615 (x_term_init): Initialize Xatom_XEMBED.
16616 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16617 (x_iconify_frame): Ditto.
16618
16619 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16620 (enum xembed_info, enum xembed_message, enum xembed_focus)
16621 (enum xembed_modifier, enum xembed_accelerator): New.
16622 (xembed_set_info, xembed_send_message): Declare.
16623 (FRAME_X_EMBEDDED_P): New.
16624
16625 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16626 gtk_plug_new.
16627
16628 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16629 window ID of a frame.
16630 (x_window): Reparent frame if embedded.
16631 (Fx_create_frame): Don't set border width if embedded.
16632
16633 * emacs.c (USAGE3): Add --parent-id.
16634 (standard_args): Ditto.
16635
166362008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16637
16638 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16639
166402008-02-07 Jim Meyering <meyering@redhat.com>
16641
16642 Use "do...while (0)", not "if (1)...else" in macro definitions.
16643 The latter provokes a warning from gcc about the empty else, when
16644 followed by ";". Also, without that trailing semicolon, it would
16645 silently swallow up any following statement.
16646 * syntax.h (SETUP_SYNTAX_TABLE)
16647 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16648 * buffer.h (DECODE_POSITION): Likewise.
16649 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16650 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16651 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16652 (FETCH_CHAR_ADVANCE): Likewise.
16653 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
16654
166552008-02-07 Jim Meyering <meyering@redhat.com>
16656
16657 * lread.c [lint]: Don't include <sys/inode.h>.
16658
166592008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
16660
16661 * xselect.c (x_handle_dnd_message):
16662 * xmenu.c (digest_single_submenu, xmenu_show):
16663 * xdisp.c (with_echo_area_buffer_unwind_data)
16664 (format_mode_line_unwind_data, unwind_format_mode_line)
16665 (display_menu_bar):
16666 * eval.c (Ffetch_bytecode):
16667 * doc.c (store_function_docstring):
16668 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
16669 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
16670 * buffer.c (add_overlay_mod_hooklist): Use ASET.
16671
166722008-02-07 Kenichi Handa <handa@m17n.org>
16673
16674 * ftxfont.c (ftxfont_open): Don't set
16675 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
16676
16677 * ftfont.c (ftfont_open): Fix previous change.
16678
166792008-02-06 Jason Rumney <jasonr@gnu.org>
16680
16681 * w32font.c (w32font_text_extents): Fill in lbearing metric.
16682 Use cached metrics for ASCII characters.
16683 (w32font_open_internal): Don't set font's owning_frame.
16684 Cache metrics for ASCII characters.
16685
16686 * w32font.h (struct w32font_info): Add ascii_metrics.
16687 Remove owning_frame.
16688
166892008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
16690
16691 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
16692 to negative value.
16693
16694 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
16695
16696 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
16697
16698 * charset.c (syms_of_charset): Set QCtest and Qeq.
16699
167002008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
16701
16702 * process.c (Fstart_process):
16703 * callproc.c (Fcall_process): Handle the case where
16704 Funhandled_file_name_directory returns nil.
16705
16706 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
16707 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
16708 * font.c (check_gstring): Use them and AREF to access the vector before
16709 we know it's really a gstring.
16710 (Ffont_shape_text): Fix typo.
46e722a9 16711 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
16712
16713 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
16714 Declare.
16715
16716 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
16717
167182008-02-05 Jason Rumney <jasonr@gnu.org>
16719
16720 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
16721 Set smallest_font_height and smallest_char_width in display info.
16722
167232008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
16724
16725 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
16726
167272008-02-05 Miles Bader <miles@gnu.org>
16728
16729 * xfaces.c (get_lface_attributes, merge_named_face)
16730 (lookup_named_face, lookup_derived_face, realize_named_face):
16731 Revert 2008-02-01 change by cyd@stupidchicken.com.
16732
167332008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
16734
16735 * fontset.c (Ffontset_info): Handle the case of inhibitting the
16736 fallback fonts.
16737 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
16738
167392008-02-04 Jason Rumney <jasonr@gnu.org>
16740
16741 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
16742 set full_name.
16743 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
16744
167452008-02-03 Jason Rumney <jasonr@gnu.org>
16746
16747 * makefile.w32-in (OBJ1): Include font.o here.
16748 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
16749
167502008-02-02 Jason Rumney <jasonr@gnu.org>
16751
16752 * makefile.w32-in (temacs): Bump EMHEAP to 21.
16753
167542008-02-01 Jason Rumney <jasonr@gnu.org>
16755
16756 * s/cygwin.h: Define VIRT_ADDR_VARIES.
16757
16758 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
16759
167602008-02-01 Andreas Schwab <schwab@suse.de>
16761
16762 * Makefile.in (shortlisp, lisp): Update for rename of
16763 ../lisp/language/myanmar.el.
16764
167652008-02-01 Chong Yidong <cyd@stupidchicken.com>
16766
16767 * xfaces.c (get_lface_attributes): Delete function.
16768 (merge_named_face, lookup_named_face, lookup_derived_face)
16769 (realize_named_face): Call lface_from_face_name directly, and use
16770 the fact that merge_face_vectors does not alter its FROM argument.
16771
167722008-02-01 Jason Rumney <jasonr@gnu.org>
16773
16774 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
16775 input in the default locale. Handle non-Unicode multibyte input.
16776
167772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16778
16779 * fontset.c (reorder_font_vector): Exclude nil elements from the
16780 font group. Don't try multiple fonts.
16781 (fontset_font): Adjust for the above change.
16782 (Finternal_char_font): Return nil if the found font doesn't
16783 contain the character ch.
16784
16785 * Makefile.in (lisp, shortlisp): Add cham.el.
16786
167872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16788
16789 * font.h (FONTP): Make it return 1 also for a font-object.
16790
16791 * .gdbinit (xfontset): New function.
16792
16793 * font.c (font_find_for_lface): Check if the character C is
16794 supported or not only for the first font.
16795
16796 * fontset.c (reorder_font_vector): Fix typo.
16797 (fontset_find_font): Don't add a font-spec specifying a script.
16798 Use 0 (not Qt) for the indication of empty font-group. Change the
16799 format of RFONT-DEF. Return Qt if no font in the font-group
16800 support the character.
16801 (fontset_font): Adjust for the above change. If no font was
16802 found the character, remember that.
16803 (face_for_char): Adjust for the change of RFONT-DEF.
16804 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
16805 no font for the target.
16806 (Finternal_char_font): Adjust for the change of RFONT-DEF.
16807
168082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16809
16810 * font.c (font_load_for_face): Handle the case that the font in
16811 face->lface is a string.
16812
168132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16814
16815 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16816
168172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16818
16819 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16820 Fix previous change. If the frame is not on a window system,
16821 signal an error.
16822
168232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16824
16825 * coding.c (decode_coding_object, encode_coding_object): Adjust
16826 marker positions after conversion.
16827
16828 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16829
168302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16831
16832 * font.c (font_find_for_lface): Fix the handling of the return
16833 value of font_has_char.
16834 (Ffont_shape_text): Fix previous change.
16835
16836 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16837 (fontset_ref_and_range): Delete it.
16838 (fontset_find_font): Call char_table_ref_and_range instead of
16839 FONTSET_REF_AND_RANGE.
16840 (make_fontset): Don't setup font groups of Latin here.
16841 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16842 (new_fontset_from_font): Make the specified font the default for
16843 all Latin characters.
16844
168452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16846
16847 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16848 is on a window system before accessing the fontset of the frame.
16849
168502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16851
16852 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16853
16854 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16855 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16856
16857 * font.c (Ffont_shape_text): If the font driver doesn't have a
16858 shaper function, make zero-width glyphs to have at least one-pixel
16859 width. Fix setting of `to' field of glyphs.
16860
168612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16862
16863 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16864 glyphs.
16865
16866 * font.h (struct font_driver): Improve docstring of member `shape'.
16867
168682008-02-01 Kenichi Handa <handa@m17n.org>
16869
16870 * composite.c (syms_of_composite): Fix docstring of
16871 auto-composition-function.
16872
16873 * font.h (LGLYPH_SIZE): New macro.
16874
16875 * font.c (Ffont_fill_gstring): Stop filling when a character not
16876 supported by the font is found.
16877 (Ffont_shape_text): When a shape callback function returns nil,
16878 try at most two more times with larger gstring.
16879 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16880
16881 * xdisp.c (handle_auto_composed_prop): Change the argument to
16882 auto-composition-function.
16883
16884 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16885 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16886 Lispy glyph and store it in the lgstring.
16887
16888 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16889
16890 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16891
168922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16893
16894 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16895
16896 * fontset.c (Vfont_encoding_charset_alist): New variable.
16897 (syms_of_fontset): DEFVAR it.
16898 (reorder_font_vector, fontset_find_font): Optimize for the case of
16899 no need of reordering.
16900 (face_for_char): Map the charset property by
16901 Vfont_encoding_charset_alist.
16902
169032008-02-01 Jason Rumney <jasonr@gnu.org>
16904
16905 * w32font.c (logfonts_match): Don't check adstyle here.
16906 (font_matches_spec): Check here against physical font instead.
16907 (add_font_entity_to_list): Avoid some substitutions.
16908
16909 * font.c (font_parse_fcname): Default weight and slant to normal.
16910 (font_score): Prefer normal fonts if weight or slant unspecified.
16911 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16912 match freetype scores.
16913
169142008-02-01 Jason Rumney <jasonr@gnu.org>
16915
16916 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16917 font, as it may have been deleted.
16918 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16919 most common hyphenless variation.
16920 (logfonts_match): Check generic family.
16921 (font_matches_spec): Don't check generic family here.
16922 (fill_in_logfont): Set generic family based on adstyle.
16923
16924 * w32font.h (w32font_get_cache): Update declaration.
16925
169262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16927
16928 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16929
16930 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16931 If none of the new drivers are available, call font_update_drivers
16932 with the old drivers.
16933
16934 * w32font.c (w32font_get_cache): Adjust the argument type.
16935
16936 * xfont.c (xfont_get_cache): Adjust the argument type.
16937
16938 * font.h (struct font_driver): Change argument type of get_cache.
16939
16940 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16941
16942 * font.c (Ffont_get): Fix arguments to Fassoc.
16943 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16944 (font_clear_cache): New function.
16945 (font_list_entities, font_matching_entity): Use font_get_cache.
16946 (font_update_drivers): Call font_clear_cache when finishing a driver.
16947
16948 * fontset.c (fontset_find_font): Fix previous change.
16949
169502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16951
16952 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16953 dpyinfo->font_table.
16954 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16955 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16956
16957 * font.c (font_at): Handle the case that the arg C is negative.
16958 Handle the unibyte case.
16959 (Ffont_at): Call font_at with the arg C -1.
16960
16961 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16962 the position here, and call font_at with the arg C -1.
16963 Don't check the range of the existing composition at the point.
16964
169652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16966
16967 * fontset.c (fontset_add): New args charset_id and family.
16968 Change caller.
16969 (load_font_get_repertory, fontset_find_font): Assume that
16970 font_spec is always a font-spec object.
16971 (Fset_fontset_font): Always store a font-spec object in a fontset.
16972
16973 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16974 instead of get_property_and_range.
16975
169762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16977
16978 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16979 (xftfont_open): Don't keep locking face.
16980 (xftfont_close): Don't unlock face.
16981 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16982
16983 * fontset.c (fontset_find_font): Don't prefer a font of
16984 supplementary charset.
16985
169862008-02-01 Kenichi Handa <handa@m17n.org>
16987
16988 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16989 script, langsys_tag to langsys, new member script.
16990 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 16991 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
16992 listing to the script specified in that property. Fix arg to
16993 OTF_check_features.
16994
169952008-02-01 Jason Rumney <jasonr@gnu.org>
16996
16997 * w32font.h: New file.
16998
16999 * w32font.c: Include it.
17000 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17001 (w32font_open): Set owning_frame.
17002 (w32font_text_extents): Use owning_frame.
17003 (struct font_callback_data): Add opentype_only field.
17004 (add_font_entity_to_list): Use it to filter fonts.
17005 Don't check against full name.
17006 (w32font_list_internal): New function.
17007 (w32font_list): Use it.
17008 (w32font_match_internal): New function.
17009 (w32font_match): Use it.
17010 (w32font_open_internal): New function.
17011 (w32font_open): Use it.
17012 (w32font_get_cache, w32font_close, w32font_has_char)
17013 (w32font_encode_char, w32font_text_extents, w32font_draw):
17014 Make non-static.
17015
17016 * makefile.w32-in (w32font.o): Depend on w32font.h.
17017
170182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17019
17020 * charset.c (Fdefine_charset_internal): Record a supplementary
17021 charset at the tail of Vcharset_order_list.
17022
17023 * font.c (Ffont_shape_text): Fix the return value.
17024
17025 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17026
17027 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17028
170292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17030
17031 * ftfont.c (struct OpenTypeSpec): New struct.
17032 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17033 (ftfont_get_open_type_spec): New function.
17034 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17035
17036 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17037
170382008-02-01 Jason Rumney <jasonr@gnu.org>
17039
17040 * w32font.c (add_font_entity_to_list): Compare only the beginning
17041 of full name.
17042
170432008-02-01 Kenichi Handa <handa@m17n.org>
17044
17045 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17046 Never return HANDLED_RECOMPUTE_PROPS.
17047
170482008-02-01 Kenichi Handa <handa@m17n.org>
17049
17050 * font.c (font_gstring_produce): Delete it.
17051
17052 * composite.h (COMPOSITION_METHOD):
17053 Handle COMPOSITION_WITH_GLYPH_STRING.
17054
170552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17056
17057 * xfont.c (Qx): Delete.
17058 (syms_of_xfont): Don't initialize Qx.
17059
17060 * composite.h (enum composition_method):
17061 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17062
170632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17064
17065 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17066 (choose_face_font): Accept new form of font-spec.
17067
17068 * frame.h (font_driver_list): Declare it unconditionally.
17069 (struct frame): Define members font_driver_list and font_data_list
17070 unconditionally.
17071
17072 * fontset.c: Include "font.h" unconditionally.
17073 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17074 (Fset_fontset_font): Accept a font-spec object.
17075
17076 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17077 PIXEL_SIZE part a wild card.
17078
17079 * dispextern.h (struct glyph_string): Define members clip and
17080 num_clips unconditionally.
17081 (struct face): Define members font_info and extra unconditionally.
17082
17083 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17084 ftfont_info only when HAVE_LIBOTF is defined.
17085
170862008-02-01 Andreas Schwab <schwab@suse.de>
17087
17088 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17089 and end.
17090
170912008-02-01 Jason Rumney <jasonr@gnu.org>
17092
17093 * w32font.c (w32font_driver): Add new fields.
17094
170952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17096
17097 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17098 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17099 (LIBES): Add @M17N_FLT_CFLAGS@.
17100
17101 * composite.c (compose_text): Don't treat the new style
17102 composition specially.
17103
17104 * emacs.c (main): Call syms_of_font unconditionally.
17105
17106 * font.h (FONT_ENTITY_NOT_LOADABLE)
17107 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17108 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17109 (struct font_driver): New member shape.
17110 (font_registry_charsets): Extern it.
17111 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17112 (font_otf_capability, font_drive_otf): Delete their externs.
17113
17114 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17115 (font_charset_alist, font_registry_charsets): Move from xfont.c
17116 and rename.
17117 (font_prop_validate_otf): New function.
17118 (font_property_table): Register it for QCotf.
17119 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17120 (font_drive_otf): Delete.
17121 (font_prepare_composition): New arg F. Adjust for the change of
17122 lispy gstring.
17123 (font_find_for_lface): New arg C.
17124 (font_load_for_face): Adjust for the change of font_find_for_lface.
17125 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17126 lispy gstring.
17127 (Ffont_shape_text): New function.
17128 (Fopen_font): If the font size is not given, use 12-pixel.
17129 (Ffont_at): New arg STRING.
17130 (syms_of_font): Initalize font_charset_alist.
17131 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17132 conditionally.
17133
17134 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17135 fonts of the same font-spec. Change the format of RFONT-DEF.
17136 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17137 Adjust for the change of RFONT-DEF.
17138 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17139
17140 * ftfont.h: New file.
17141
17142 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17143 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17144 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17145 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17146 font_otf_capability and font_drive_otf, set ftfont_shape.
17147 (ftfont_list): Adjust for the change of :otf property value.
17148 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17149 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17150 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17151 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17152 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17153 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17154
17155 * w32term.c (x_draw_composite_glyph_string_foreground):
17156 Adjust for the change of lispy gstring.
17157
17158 * xdisp.c (handle_composition_prop): Adjust for the change of
17159 lispy gstring. Call a function for auto-composition with the
17160 third arg it->window.
17161 (fill_composite_glyph_string): Adjust for the change of lispy string.
17162 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17163
17164 * xfaces.c (set_font_frame_param): Adjust for the change of
17165 font_find_for_lface.
17166
17167 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17168 (xfont_registry_charsets): Likewise. Change caller.
17169 (syms_of_xfont): Don't handle x_font_charset_alist.
17170
17171 * xftfont.c: Include "ftfont.h".
17172 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17173 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17174 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17175 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17176 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17177 Set xftfont_driver.shape to xftfont_shape.
17178
17179 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17180 the change of lispy gstring.
17181
171822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17183
17184 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17185
171862008-02-01 Jason Rumney <jasonr@gnu.org>
17187
17188 * w32font.c (w32font_draw): Fill background manually.
17189
171902008-02-01 Jason Rumney <jasonr@gnu.org>
17191
17192 * font.c (Qfontp): Remove unused symbol.
17193 (QCantialias): New symbol.
17194 (syms_of_font): Define it.
17195 (font_property_table): Set a validator for QCantialias.
17196
17197 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17198 Define if not already.
17199 (QCfamily): Share with xfaces.c.
17200 (Qstandard, Qsubpixel, Qnatural): New symbols.
17201 (syms_of_w32font): Define them. Don't define QCfamily here.
17202 (w32_antialias_type, lispy_antialias_type): New functions.
17203 (w32_enumfont_pattern_entity): New arg requested_font.
17204 Set antialias parameter if non-default was requested.
17205 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17206
172072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17208
17209 * lread.c (read1): Undo the previous change.
17210
172112008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17212
17213 * frame.c (Fdelete_frame): Call font_update_drivers only when
17214 USE_FONT_BACKEND is defined.
17215
172162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17217
17218 * font.h (struct font_bitmap): New member bits_per_pixel.
17219 (struct font_driver): New members start_for_frame and end_for_frame.
17220 (struct font_data_list): New struct.
17221 (font_put_frame_data, font_get_frame_data): Extern them.
17222
17223 * frame.h (struct frame): New member font_data_list.
17224
17225 * font.c (font_update_drivers): Call driver->start_for_frame and
17226 driver->end_for_frame at proper timings.
17227 (font_put_frame_data, font_get_frame_data): New functions.
17228 (Ffont_spec): Add usage in the docstring.
17229
17230 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17231 (Fdelete_frame): Call font_update_drivers.
17232
17233 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17234 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17235 (xftfont_get_xft_draw): New function.
17236 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17237 (xftfont_end_for_frame): New function.
17238 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17239
17240 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17241 Change argument. Cache GCs in the per-frame data.
17242 (struct ftxfont_frame_data): New struct.
17243 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17244 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17245 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17246 (ftxfont_end_for_frame): New function.
17247 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17248
17249 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17250
172512008-02-01 Kenichi Handa <handa@m17n.org>
17252
17253 * xselect.c (Vselection_coding_system)
17254 (Vnext_selection_coding_system): Delete them.
17255 (syms_of_xselect): Don't declare selection-coding-system and
17256 next-selection-coding-system. They are declared in select.el.
17257
172582008-02-01 Jason Rumney <jasonr@gnu.org>
17259
17260 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17261
17262 * w32fns.c: Include imm.h.
17263 (get_composition_string_fn, get_ime_context_fn): New optional
17264 system functions.
17265 (globals_of_w32fns): Load them from imm32.dll.
17266 (ignore_ime_char): New flag.
17267 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17268 WM_IME_ENDCOMPOSITION messages.
17269
17270 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17271 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17272
172732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17274
17275 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17276 (READCHAR_REPORT_MULTIBYTE): New macro.
17277 (readchar): New 2nd arg MULTIBYTE.
17278 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17279 Make symbol's name multibyte according to the multibyteness of the
17280 source.
17281
172822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17283
17284 * xfaces.c (face_for_overlay_string): Call lookup_face with
17285 correct arguments (fix of synching with the trunk).
17286
172872008-02-01 Kenichi Handa <handa@m17n.org>
17288
17289 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17290 (font_prop_validate_non_neg, font_prop_validate_spacing):
17291 Delete argument prop_index.
17292 (font_property_table): Change arguments to validater. Change Callers.
17293 (font_lispy_object): Delete.
17294 (font_at): Use font_find_object instead fo font_lispy_object.
17295
172962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17297
17298 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17299 and file names.
17300
173012008-02-01 Jason Rumney <jasonr@gnu.org>
17302
17303 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17304 (font_matches_spec): Remove debug output.
17305 (add_font_entity_to_list): Avoid using substituted fonts.
17306
173072008-02-01 Jason Rumney <jasonr@gnu.org>
17308
17309 * doc.c (Fsnarf_documentation):
17310 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17311
173122008-02-01 Miles Bader <miles@gnu.org>
17313
17314 * dispextern.h (struct glyph_row): Only define "clip" field if
17315 HAVE_WINDOW_SYSTEM is defined.
17316
173172008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17318
17319 Fix up multi-tty merge.
17320
17321 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17322 and indentation.
17323
17324 * xfaces.c (free_realized_face, clear_face_gcs):
17325 Include font_done_for_face in the input_blocked section, just in case.
17326
17327 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17328 (get_char_face_and_encoding): Undo last change and remove the *other*
17329 duplicate definition (i.e. keep the one that's better scoped and that
17330 includes code for the font-backend).
17331
17332 * terminal.c (create_terminal): Default keyboard_coding to
17333 `no-conversion' and terminal_coding to `undecided'.
17334
17335 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17336
17337 * fontset.c (free_realized_fontsets): Check that the table entry does
17338 contain a fontset before trying to compare it to `base'.
17339
17340 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17341 syms_of_charset, and syms_of_coding earlier because init_window_once
17342 now needs Vcoding_system_hash_table to be setup.
17343
17344 * coding.h (default_buffer_file_coding): Remove.
17345
17346 * coding.c (default_buffer_file_coding): Remove.
17347 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17348 than ->symbol, and use the terminal-local coding system.
17349 (syms_of_coding): Don't setup the coding-systems that are not
17350 terminal-local.
17351 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17352
17353 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17354 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17355
17356 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17357 in chartab.c and were re-added here by mistake.
17358 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17359
17360 * doc.c (Fsnarf_documentation):
17361 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17362 src to etc.
17363
17364 * ChangeLog.10: Add mistakenly removed entry.
17365
173662008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17367
17368 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17369
173702008-02-01 Miles Bader <miles@gnu.org>
17371
17372 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17373 Add extra args to FACE_FOR_CHAR.
17374
173752008-02-01 Kenichi Handa <handa@m17n.org>
17376
17377 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17378 in sequence.
17379
17380 * chartab.c (map_sub_char_table, map_char_table): If the range
17381 contains just one character, call the function with that character
17382 even if the depth is not 3.
17383
173842008-02-01 Jason Rumney <jasonr@gnu.org>
17385
17386 * w32font.c (w32font_text_extents): Calculate metrics for the
17387 whole string.
17388
173892008-02-01 Jason Rumney <jasonr@gnu.org>
17390
17391 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17392
173932008-02-01 Jason Rumney <jasonr@gnu.org>
17394
17395 * w32term.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 * w32font.c (w32font_draw): Do clipping here.
17401
174022008-02-01 Kenichi Handa <handa@m17n.org>
17403
17404 * xftfont.c (xftfont_draw): Adjust for the change of struct
17405 glyph_string.
17406
17407 * xterm.c (x_set_glyph_string_clipping): Use
17408 get_glyph_string_clip_rects.
17409 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17410 Adjust for the change of struct glyph_string.
17411
17412 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17413 the resulting clip(s}.
17414 (expose_overlaps): Add arg r. Change callers. Set it to
17415 row->clip temporarily.
17416 (expose_window): Redraw rows overlapping the exposed area.
17417
17418 * dispextern.h (struct glyph_row): New member clip.
17419 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17420 clip_height, new member clip, and num_clips.
17421
174222008-02-01 Kenichi Handa <handa@m17n.org>
17423
17424 * data.c (Fchar_or_string_p): Fix docstring.
17425
174262008-02-01 Kenichi Handa <handa@m17n.org>
17427
17428 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17429 create a temporary XftDraw object.
17430
174312008-02-01 Kenichi Handa <handa@m17n.org>
17432
17433 * font.c (Ffontp): Fix docstring.
17434
17435 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17436 strong evidence of ISO-2022.
17437
174382008-02-01 Kenichi Handa <handa@m17n.org>
17439
17440 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17441 SYNTAX_ENTRY_FOLLOW_PARENT.
17442
174432008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17444
17445 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17446 its type.
17447 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17448 Update to the new type of weak_hash_tables and next_weak.
17449
17450 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17451 a plain C pointer to Lisp_Hash_Table.
17452
17453 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17454 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17455 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17456 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17457 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17458 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17459 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17460 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17461 (GC_EQ): Remove since they've been identical to their non-GC_
17462 alter-egos ever since the markbit was eradicated.
17463
17464 * alloc.c:
17465 * buffer.c:
17466 * buffer.h:
17467 * data.c:
17468 * fileio.c:
17469 * filelock.c:
17470 * fns.c:
17471 * frame.h:
17472 * lisp.h:
17473 * macterm.c:
17474 * print.c:
17475 * process.c:
17476 * w32fns.c:
17477 * w32menu.c:
17478 * w32term.c:
17479 * xfns.c:
17480 * xmenu.c:
17481 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17482
174832008-02-01 Kenichi Handa <handa@m17n.org>
17484
17485 * chartab.c (map_sub_char_table): Make it work for the top-level
17486 char-table. Fix handling of parent char-table.
17487 (map_char_table): Adjust for the above change.
17488
174892008-02-01 Jason Rumney <jasonr@gnu.org>
17490
17491 * w32font.c (Qgdi): Rename from Qw32.
17492
174932008-02-01 Jason Rumney <jasonr@gnu.org>
17494
17495 * w32bdf.c (get_quoted_string): Make function static.
17496
174972008-02-01 Kenichi Handa <handa@m17n.org>
17498
17499 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17500 bigger ascent and descent than those of the font, use them as
17501 font's ascent and descent.
17502
175032008-02-01 Kenichi Handa <handa@m17n.org>
17504
17505 * Makefile.in (${lispsource}international/charprop.el): Move this
17506 target within "#ifdef HAVE_UNIDATA" and "#endif".
17507
175082008-02-01 Kenichi Handa <handa@m17n.org>
17509
17510 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
17511 (shortlisp): Add ../lisp/language/tai-viet.el.
17512
175132008-02-01 Ulrich Mueller <ulm@gentoo.org>
17514
17515 * Makefile.in (${lispsource}international/charprop.el): Depend on
17516 temacs${EXEEXT}.
17517
175182008-02-01 Jason Rumney <jasonr@gnu.org>
17519
17520 * w32font.c (w32font_close): Delete the GDI font object.
17521
17522 * w32menu.c: Include character.h.
17523
17524 * w32proc.c: Likewise.
17525
17526 * w32select.c: Likewise.
17527
17528 * makefile.w32-in (w32proc.o): Depend on character.h.
17529
175302008-02-01 Jason Rumney <jasonr@gnu.org>
17531
17532 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
17533
17534 * w32menu.c (syms_of_w32menu): Likewise.
17535
17536 * w32proc.c (syms_of_ntproc): Likewise.
17537
17538 * w32select.c (syms_of_w32select): Likewise.
17539
17540 * w32term.c (syms_of_w32term): Likewise.
17541
175422008-02-01 Jason Rumney <jasonr@gnu.org>
17543
17544 * w32font.c (w32font_draw): Delete brush after using it.
17545
175462008-02-01 Jason Rumney <jasonr@gnu.org>
17547
17548 * w32font.c (w32font_open): Don't set font_idx.
17549 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17550 to font settings.
17551 (w32font_draw): Fill background explicitly.
17552
175532008-02-01 Jason Rumney <jasonr@gnu.org>
17554
17555 * w32term.c (w32_initialize): Don't call w32font_initialize.
17556
17557 * w32font.c (w32font_info): Remove subranges.
17558 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17559 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17560 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17561 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17562 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17563 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17564 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17565 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17566 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17567 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17568 New symbols.
17569 (font_callback_data): New struct.
17570 (w32font_list, w32font_match): Use it.
17571 (w32font_open): Don't populate subranges.
17572 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17573 (w32font_encode_char): Always return unicode code-point as-is.
17574 (w32font_text_extents): Supply a transformation matrix to
17575 GetGlyphOutline. Never look up by glyph index. Avoid looping
17576 twice. Use unicode version of GetTexExtentPoint32 instead of
17577 glyph index version.
17578 (set_fonts_frame): Remove.
17579 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17580 set frame parameter. Use backward compatible fake foundries.
17581 Save generic family in extra slot under QCfamily. Make width slot
17582 constant. Save QCspacing value. Save list of scripts instead of
17583 binary subranges.
17584 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17585 (add_font_entity_to_list): Use font_callback_data struct. Filter
17586 unwanted fonts.
17587 (add_one_font_entity_to_list): Use font_callback_data struct.
17588 (w32_registry): Default to iso10646_1.
17589 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17590 string font registries. Don't fill in font name if it is a generic
17591 family name, fill family instead. Use spacing, family and script
17592 extra info to fill pitch, family and charset fields.
17593 (list_all_matching_fonts): Use font_callback_data struct.
17594 (unicode_range_for_char): Remove.
17595 (font_supported_scripts): New function.
17596 (w32font_initialize): Remove.
17597 (syms_of_w32font): Update which symbols are defined.
17598
175992008-02-01 Jason Rumney <jasonr@gnu.org>
17600
17601 * font.c (font_pixel_size): Reverse assq_no_quit args.
17602
17603 * w32term.h (FONT_WIDTH): Report max width, not average.
17604 (FONT_MAX_WIDTH): Remove.
17605 (FONT_AVG_WIDTH): New macro.
17606
17607 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17608 redefinition of FONT_WIDTH.
17609
17610 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17611 (w32_cache_char_metrics): Use FONT_WIDTH.
17612
17613 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17614
176152008-02-01 Jason Rumney <jasonr@gnu.org>
17616
17617 * w32font.c (w32font_open): Make lfHeight negative.
17618
17619 * w32fns.c (x_default_font_parameter): Use new style font name.
17620 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17621
176222008-02-01 Jason Rumney <jasonr@gnu.org>
17623
17624 * w32font.c (QCsubranges): New symbol.
17625 (w32font_open, w32font_has_char): Get subranges from subproperty
17626 of extra.
17627 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17628 (syms_of_w32font): Define :subranges symbol.
17629
17630 * font.c (font_put_extra): Expose externally.
17631
17632 * font.h (font_put_extra): Move declaration from font.c.
17633
17634 * font.c (Ffont_get): Use font driver to determine otf capability.
17635 (adjust_anchor): Check if driver defines anchor_point before using.
17636
17637 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17638 (w32font_draw): Use options.
17639 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17640 Fix detection of truetype fonts.
17641 (registry_to_w32_charset): Handle charsets other than iso8859-1
17642 expressed as lisp symbols.
17643 (w32_registry): Express charset as lisp symbol.
17644 (fill_in_logfont): Reverse pixel and point height logic.
17645 Don't set width here. Set quality to default.
17646
17647 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17648 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17649
17650 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17651 Remove redundant loop and allocation.
17652
17653 * makefile.w32-in (font.o, w32font.o): New objects.
17654 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
17655 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
17656
17657 * xdisp.c (fill_composite_glyph_string): Make the first arg to
17658 STORE_XCHARB a valid l-value.
17659
17660 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
17661 calculations for non-Truetype fonts.
17662 (x_draw_glyph_string): Sync with xterm.c.
17663 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17664 Remove redundant code.
17665 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
17666
17667 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
17668 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
17669
17670 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
17671 (x_to_w32_charset, w32_to_x_charset): Expose externally.
17672
17673 * w32font.c: New file for w32 font backend.
17674
176752008-02-01 Kenichi Handa <handa@m17n.org>
17676
17677 * term.c: Don't include "buffer.h" twice.
17678
176792008-02-01 Kenichi Handa <handa@m17n.org>
17680
17681 * character.c (Funibyte_string): New function.
17682 (syms_of_character): Defsubr it.
17683
176842008-02-01 Jason Rumney <jasonr@gnu.org>
17685
17686 * w32term.c [USE_FONT_BACKEND]:
17687 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
17688 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
17689 (x_draw_glyph_string, x_draw_glyph_string_foreground)
17690 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
17691 (x_free_frame_resources): Sync with xterm.c.
17692
176932008-02-01 Andreas Schwab <schwab@suse.de>
17694
17695 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
17696 char-table size.
17697
176982008-02-01 Kenichi Handa <handa@m17n.org>
17699
17700 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
17701
177022008-02-01 Kenichi Handa <handa@m17n.org>
17703
17704 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
17705 font_otf_gpos, add font_drive_otf.
17706
17707 * fontset.c (fontset_find_font): Pay attention to font size
17708 specified for a font.
17709 (reorder_font_vector): Check contents of font_def.
17710
17711 * font.c (struct otf_list): Delete it.
17712 (otf_list): Make it a lisp variable.
17713 (otf_open): Use lispy otf_list.
17714 (generate_otf_features): Rename from parse_gsub_gpos_spec.
17715 (check_otf_features): New function.
17716 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17717 New functions.
17718 (font_drive_otf): New function merging font_otf_gsub and
17719 font_otf_gpos.
17720 (font_open_for_lface): New arg spec. Change argument order.
17721 (font_load_for_face): Adjust for the change of font_open_for_lface.
17722 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
17723 Ffont_otf_gpos.
17724 (syms_of_font): Staticpro otf_list. Delete defsubr of
17725 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
17726
17727 * xfaces.c (set_font_frame_param): Adjust for the change of
17728 font_open_for_lface.
17729
17730 * font.h (font_open_for_lface): Adjust prototype.
17731 (struct font_driver): Delete members otf_gsub and otf_gpos, add
17732 member otf_drive.
17733 (font_otf_gsub, font_otf_gpos): Delete externs.
17734 (font_drive_otf): Extern it.
17735
177362008-02-01 Kenichi Handa <handa@m17n.org>
17737
17738 * font.c (font_at): If the window W is not on a window system,
17739 return Qnil.
17740
17741 * coding.c (produce_chars, encode_coding): Don't call
17742 insert_from_gap if no characters to produce.
17743
177442008-02-01 Kenichi Handa <handa@m17n.org>
17745
17746 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
17747 Fclear_face_cache.
17748
17749 * xfaces.c (face_for_font): Check also face->font==font->font.font.
17750
177512008-02-01 Miles Bader <miles@gnu.org>
17752
17753 * emacs.c (main): Change default value of `enable_font_backend' to 1.
17754 Parse "--disable-font-backend" option.
17755 (standard_args): Add "--disable-font-backend" option.
17756
177572008-02-01 Kenichi Handa <handa@m17n.org>
17758
17759 * fontset.c (fontset_find_font): New function.
17760 (fontset_font): Use fontset_find_font.
17761 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
17762 Register the specified font for all Latin characters.
17763 (new_fontset_from_font): Register the specified font for all Latin
17764 characters.
17765 (dump_fontset): For a realized fontset, include the base fontset
17766 name in the returned vector.
17767
177682008-02-01 Kenichi Handa <handa@m17n.org>
17769
17770 * character.h (CHAR_STRING): Cast C to unsigned on calling
17771 char_string.
17772
17773 * character.c (char_string): Type of arg C changed to unsigned.
17774 Signal an error if C is an invalid character code.
17775
17776 * editfns.c (general_insert_function, Fchar_to_string):
17777 Use CHARACTERP, not INTEGERP.
17778
177792008-02-01 Kenichi Handa <handa@m17n.org>
17780
17781 * character.h (MIN_MULTIBYTE_LEADING_CODE)
17782 (MAX_MULTIBYTE_LEADING_CODE): New macros.
17783
17784 * regex.c (analyse_first): Fix for multibyte characters in "case
17785 charset:" and "case categoryspec:".
17786
177872008-02-01 Andreas Schwab <schwab@suse.de>
17788
17789 * Makefile.in (LIBES): Move standard libraries to the end.
17790
177912008-02-01 Kenichi Handa <handa@m17n.org>
17792
17793 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
17794 nonzero, don't shrink the buffer nextb.
17795
17796 * buffer.h (struct buffer_text): New member inhibit_shrinking.
17797
17798 * coding.c (coding_alloc_by_making_gap): New arg offset.
17799 (alloc_destination): Call coding_alloc_by_making_gap with the arg
17800 offset.
17801 (decode_coding_iso_2022): Update coding->safe_charsets.
17802 (decode_coding_gap): Temporarily set
17803 current_buffer->text->inhibit_shrinking to 1.
17804
178052008-02-01 Kenichi Handa <handa@m17n.org>
17806
17807 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
17808 indexing into elements of s->cmp and s->char2b.
17809
178102008-02-01 Juanma Barranquero <lekktu@gmail.com>
17811
17812 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17813
178142008-02-01 Kenichi Handa <handa@m17n.org>
17815
17816 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17817 target_multibyte instead of multibyte.
17818 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17819 (bcmp_translate): Change the argument name from multibyte to
17820 target_multibyte.
17821
178222008-02-01 Kenichi Handa <handa@m17n.org>
17823
17824 These changes are to compile a regexp into a pattern that can be
17825 used both for multibyte and unibyte targets.
17826
17827 * Makefile.in (search.o): Depend on charset.h.
17828
17829 * character.c (multibyte_char_to_unibyte_safe): New function.
17830
17831 * search.c: Include "charset.h".
17832 (compile_pattern_1): Delete argument multibyte. Don't set
17833 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17834 (compile_pattern): Don't compare cp->buf.target_multibyte.
17835 Compare cp->buf.charset_unibyte.
17836 (compile_pattern): Set cp->buf.target_multibyte.
17837
17838 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17839
17840 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17841
17842 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17843 multibyte. Change callers.
17844 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17845 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17846 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17847 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17848 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17849 (regex_compile): Make the compiled pattern usable both for
17850 multibyte and unibyte targets.
17851 (analyse_first): Make the fastmap usable both for multibyte and
17852 unibyte targets.
17853 (TRANSLATE_VIA_MULTIBYTE): Delete.
17854 (re_match_2_internal): Pay attention to the case that the
17855 multibyteness of bufp and target may be different.
17856
178572008-02-01 Kenichi Handa <handa@m17n.org>
17858
17859 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17860 empty box occupy at least one column width.
17861
178622008-02-01 Miles Bader <miles@gnu.org>
17863
17864 * Makefile.in: Remove redundant HAVE_XFT clause.
17865
178662008-02-01 Kenichi Handa <handa@m17n.org>
17867
17868 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17869
178702008-02-01 Kenichi Handa <handa@m17n.org>
17871
17872 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17873 being nil.
17874
178752008-02-01 Kenichi Handa <handa@m17n.org>
17876
17877 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17878
178792008-02-01 Kenichi Handa <handa@m17n.org>
17880
17881 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17882
178832008-02-01 Kenichi Handa <handa@m17n.org>
17884
17885 * search.c (simple_search): Fix previous change.
17886
178872008-02-01 Kenichi Handa <handa@m17n.org>
17888
17889 * xftfont.c (ftfont_font_format): Extern declaration.
17890
17891 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17892
17893 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17894 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17895
17896 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17897 (ftfont_font_format): Fix previous change.
17898
17899 * font.h (Ffont_xlfd_name): EXFUN it.
17900
17901 * font.c (font_parse_xlfd): Fix the array size of `f'.
17902 (register_font_driver): Use EQ to compare driver->type.
17903
17904 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17905 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17906 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17907
179082008-02-01 Kenichi Handa <handa@m17n.org>
17909
17910 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17911 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17912
179132008-02-01 Kenichi Handa <handa@m17n.org>
17914
17915 * xfont.c (xfont_open): Set font->format.
17916
17917 * xftfont.c (xftfont_open): Set font->format.
17918
17919 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17920 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17921 (ftfont_open): Set font->format.
17922 (ftfont_font_format): New function.
17923
17924 * font.h (struct font): New member format.
17925
17926 * font.c (Qopentype): New variable.
17927 (syms_of_font): Defsym it.
17928 (Fquery_font): Change the format of the last element of the return
17929 value.
17930
179312008-02-01 Kenichi Handa <handa@m17n.org>
17932
17933 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17934 last resort.
17935
179362008-02-01 Kenichi Handa <handa@m17n.org>
17937
17938 * coding.c (detect_coding_charset): Fix detection of multi-byte
17939 charset.
17940
179412008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17942
17943 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17944
179452008-02-01 Kenichi Handa <handa@m17n.org>
17946
17947 * xdisp.c (get_next_display_element): Set it->face_id for the
17948 first component of a composition.
17949 (x_produce_glyphs): Check if the font is changed or not for composition.
17950
179512008-02-01 Kenichi Handa <handa@m17n.org>
17952
17953 * fontset.c (Qlatin): New variable.
17954 (syms_of_fontset): Define it as a lisp symbol.
17955 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17956
179572008-02-01 Kenichi Handa <handa@m17n.org>
17958
17959 * font.c (font_unparse_fcname): Pay attention to the case that
17960 some of font property is a null string.
17961
179622008-02-01 Kenichi Handa <handa@m17n.org>
17963
17964 * term.c: Include "composite.h".
17965 (encode_terminal_code): Output all components of composition.
17966 Check the size of encode_terminal_src.
17967 (produce_glyphs): For composition, call produce_composite_glyph.
17968 (append_composite_glyph, produce_composite_glyph): New functions.
17969
17970 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17971 is not found, get font_info from the current ascii face.
17972
179732008-02-01 Kenichi Handa <handa@m17n.org>
17974
17975 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17976 buffer-file-name to Qnil before calling insert_from_buffer.
17977
17978 * font.c (font_unparse_fcname): Pay attention to the case that
17979 foundry is a null string.
17980
179812008-02-01 Kenichi Handa <handa@m17n.org>
17982
17983 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17984
17985 * font.c (Qunicode_sip): New variable.
17986 (syms_of_font): Declare it as a Lisp symbol.
17987
17988 * font.h (Qunicode_sip): Extern it.
17989
179902008-02-01 Kenichi Handa <handa@m17n.org>
17991
17992 * composite.c (get_composition_id): Pay attention to TAB component.
17993
17994 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17995 TAB. Adjust for the change of s->char2b which always points to
17996 the first element of allocated memory.
17997
17998 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17999
18000 * xdisp.c (handle_composition_prop): Set it->c to the first
18001 non-TAB component.
18002 (fill_composite_glyph_string): Change argument.
18003 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18004 (x_produce_glyphs): Fix handling of left/right padding.
18005
180062008-02-01 Kenichi Handa <handa@m17n.org>
18007
18008 * coding.c (detect_coding_system): Fix for handling off
18009 inhibit_iso_escape_detection. Fix for the case that no coding
18010 system is defined for a specific coding category.
18011
180122008-02-01 Kenichi Handa <handa@m17n.org>
18013
18014 * font.c (font_matching_entity): Delete unused local var.
18015
18016 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18017 opening a font.
18018
18019 * fileio.c (Finsert_file_contents): On recovering a file, assume
18020 Unix-like eol.
18021 (choose_write_coding_system): On auto-saving a file, force
18022 Unix-like eol.
18023
18024 * coding.c (setup_coding_system): Fix setting of
18025 coding->common_flags based on eol_type.
18026 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18027 inherit from it.
18028
180292008-02-01 Kenichi Handa <handa@m17n.org>
18030
18031 * alloc.c (NSTATICS): Increas to 0x600.
18032
180332008-02-01 Kenichi Handa <handa@m17n.org>
18034
18035 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18036 (ftfont_list): Don't check :name property.
18037 (ftfont_match): New function.
18038 (ftfont_pattern_entity): If the pattern doesn't contain
18039 FC_SPACING, don't assume FC_MONO.
18040
18041 * font.h (struct font_driver): New member `match'.
18042 (font_update_drivers): Adjust prototype.
18043
18044 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18045 property of FONT.
18046 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18047 them unconditionally.
18048 (font_matching_entity): New function.
18049 (font_open_by_name): Try font_matching_entity if exact match is
18050 not found.
18051 (font_update_drivers): Delete the arg FONT. Return a list of
18052 actually used backends. Don't free faces, font caches here.
18053 Don't store data in frame parameters. Don't call x_set_font.
18054 (Ffont_spec): Store :name property as is.
18055 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18056 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18057 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18058 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18059 Call font->driver->otf_gsub instead of font_otf_gsub.
18060
18061 * frame.c (x_set_font_backend): Do more works that were done in
18062 font_update_drivers before.
18063
18064 * xfont.c (xfont_match): New function.
18065 (xfont_driver): Set xfont_driver.match to xfont_match.
18066 (xfont_draw): Set font in GC if necessary.
18067
18068 * ftxfont.c (ftxfont_match): New function.
18069 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18070
18071 * xftfont.c (xftfont_match): New function.
18072 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18073
180742008-02-01 Kenichi Handa <handa@m17n.org>
18075
18076 * font.h (struct font): New member scalable.
18077 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18078 (font_otf_gsub): Adjust prototype.
18079
18080 * font.c (font_otf_capability): Fix handling of the default langsys.
18081 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18082 Check the contents of SPEC.
18083 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18084 (check_gstring): New function.
18085 (REPLACEMENT_CHARACTER): New macro.
18086 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18087 glyph codes of GSTRING.
18088 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18089 (font_prepare_composition): Set cmp->glyph_len.
18090 (font_open_entity): Set font->scalable.
18091 (Ffont_get): Handle :otf property.
18092 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18093 functions.
18094 (Fquery_font): Use font->font.full_name.
18095 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18096 Sfont_otf_alternates.
18097
18098 * ftfont.c (ftfont_open): Set font->font.full_name and
18099 font->font.name properly. Fix calculation of font->font.height
18100 and font->min_width.
18101
18102 * ftxfont.c (ftxfont_create_gcs): New function.
18103 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18104 (ftxfont_draw_backgrond): Fix filling region.
18105 (ftxfont_default_fid): New function.
18106 (ftxfont_open): Set xfont->fid to the return value of
18107 ftxfont_default_fid.
18108 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18109 (ftxfont_done_face): Free only GCs that are created by
18110 ftxfont_create_gcs.
18111 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18112
18113 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18114 Clip to src->width, etc (not src->clip_XXX).
18115
18116 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18117 FontBackend frame parameter.
18118
181192008-02-01 Kenichi Handa <handa@m17n.org>
18120
18121 * font.h (struct font_driver_list): New member `on'.
18122 (Fclear_font_cache): EXFUN it.
18123 (font_update_drivers): Extern it.
18124
18125 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18126 (font_list_entities): Check driver_list->on.
18127 (register_font_driver): Initalize `on' member to 0.
18128 (font_update_drivers): New function.
18129 (Fclear_font_cache): Check driver_list->on.
18130
18131 * frame.h (Qfont_backend): Extern it.
18132 (x_set_font_backend): Extern it.
18133
18134 * frame.c (Qfont_backend): New variable.
18135 (frame_parms): New element for font-backend.
18136 (x_set_font_backend): New function.
18137
18138 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18139 FontBackend frame parameter.
18140 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18141 x_set_font_backend.
18142
18143 * xfont.c (xfont_list): Don't try listing by :name property if the
18144 name is not for XLFD.
18145
181462008-02-01 Kenichi Handa <handa@m17n.org>
18147
18148 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18149 (LGLYPH_SET_TO): New macros.
18150 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18151 element of G is vector or not.
18152 (font_at): Extern it.
18153
18154 * font.c: Include window.h.
18155 (font_lispy_object): New function.
18156 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18157 end of valid glyph.
18158 (font_close_object): Fix getting (struct font *).
18159 (font_at): New function.
18160 (Ffont_get): If FONT is a font-object, get entity from it.
18161 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18162 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18163 range check.
18164 (Ffont_at): New function.
18165 (syms_of_font): Defsubr Sfont_at.
18166
18167 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18168 before the entry for Qcomposition.
18169 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18170 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18171 the font in gstring.
18172 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18173 LGLYPH_FORM (g) to detect the end of valid glyph.
18174 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18175 we are composing with gstring.
18176
18177 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18178 Check if adjustment is vector or not.
18179
18180 * Makefile.in (font.o): Make it depends on window.h.
18181
181822008-02-01 Kenichi Handa <handa@m17n.org>
18183
18184 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18185 adjustment is vector or not.
18186
181872008-02-01 Miles Bader <miles@gnu.org>
18188
18189 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18190
181912008-02-01 Kenichi Handa <handa@m17n.org>
18192
18193 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18194 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18195 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18196
18197 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18198 (DEVICE_DELTA): Fix typo.
18199 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18200 LGLYPH format.
18201
18202 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18203 the change of LGLYPH format.
18204
182052008-02-01 Kenichi Handa <handa@m17n.org>
18206
18207 * ftfont.c (ftfont_list): Fix typo.
18208 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18209
182102008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18211
18212 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18213
18214 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18215 xftface_info is non-NULL.
18216
182172008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18218
18219 * ftfont.c (ftfont_list): Move misplaced #endif.
18220
182212008-02-01 Kenichi Handa <handa@m17n.org>
18222
18223 * ftfont.c (ftfont_list): Pay attention to the case that
18224 FC_CAPABILITY is not defined.
18225
182262008-02-01 Kenichi Handa <handa@m17n.org>
18227
18228 * xftfont.c (xftfont_open): Set charset related members to -1.
18229
18230 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18231 QCname.
18232 (ftfont_open): Set charset related members to -1.
18233
18234 * fontset.c (Votf_script_alist): New variable.
18235 (syms_of_fontset): Initialize it.
18236 (fontset_font): Delete unused variable.
18237
18238 * fontset.h (Votf_script_alist): Extern it.
18239
18240 * font.c (font_find_for_lface): Optimize code.
18241
18242 * font.h (font_close_object, font_merge_old_spec): Extern them.
18243
182442008-02-01 Kenichi Handa <handa@m17n.org>
18245
18246 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18247 (syms_of_font): Initialize them.
18248 (font_pixel_size): Allow float value in dpi.
18249 (font_prop_validate_type): Delete.
18250 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18251 Change caller.
18252 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18253 (font_prop_validate_extra): Delete.
18254 (font_prop_validate_spacing): New function.
18255 (font_property_table): Add elements for all known properties.
18256 (get_font_prop_index): Rename from check_font_prop_name. New
18257 argument FROM. Change caller.
18258 (font_prop_validate): Validate all known properties.
18259 (font_put_extra): Delete argument force. Change caller.
18260 (font_expand_wildcards): Make it static. Fix the way of shrinking
18261 the possible range.
18262 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18263 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18264 Change caller.
18265 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18266 (font_parse_fcname): Delete argument merge. Fix parsing of point
18267 size. Don't validate properties values here. Change caller.
18268 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18269 (font_open_by_name): Delete unused variable.
18270 (Ffont_spec): Likewise. Validate property values.
18271 (Ffont_match_p): New function.
18272
18273 * font.h (QCscalable): Extern it.
18274 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18275
18276 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18277
18278 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18279 (xfont_list_pattern): New function.
18280 (xfont_list): Use xfont_list_pattern.
18281
182822008-02-01 Kenichi Handa <handa@m17n.org>
18283
18284 * font.h (Flist_fonts): EXFUN it.
18285
182862008-02-01 Jason Rumney <jasonr@gnu.org>
18287
18288 * w32term.c (w32_initialize): Add back smoothing_type and
18289 smoothing_enabled definitions.
18290
182912008-02-01 Kenichi Handa <handa@m17n.org>
18292
18293 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18294 s->face->font on determining underline position.
18295
182962008-02-01 Kenichi Handa <handa@m17n.org>
18297
18298 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18299 (font_has_char): Accept font-object too.
18300 (font_find_for_lface): Try at first with a size specified in face.
18301
183022008-02-01 Kenichi Handa <handa@m17n.org>
18303
18304 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18305 font_open_by_name.
18306
183072008-02-01 Kenichi Handa <handa@m17n.org>
18308
18309 * font.h (QCspacing, QCdpi): Extern them.
18310 (enum font_spacing): New enum.
18311 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18312
18313 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18314 (QCspacing, QCdpi): New variables.
18315 (syms_of_font): Initialize them.
18316 (font_pixel_size): New function.
18317 (font_put_extra): New function.
18318 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18319 in FONT_EXTRA.
18320 (font_parse_fcname): Handle enumerated values (e.g. bold).
18321 Fix handling font size. Add QCname property that contains only
18322 unknown properties.
18323 (font_score): Change argument. Change caller. Pay attention to
18324 FONT_PIXEL_SIZE_QUANTUM.
18325 (font_sort_entites, font_list_entities, font_find_for_lface)
18326 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18327 (Ffont_spec): Add QCname property that contains only unknown properties.
18328
18329 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18330 include weight in listing pattern, instead check weight of each
18331 listed font. Don't include scalable in pattern. Pay attention to
18332 FONT_PIXEL_SIZE_QUANTUM.
18333
183342008-02-01 Kenichi Handa <handa@m17n.org>
18335
18336 * font.c (font_parse_fcname): Fix parsing of point-size.
18337 (font_unparse_fcname): Produce symbolic names for style properties.
18338 (font_list_entities): Handle float size correctly.
18339 (font_open_by_name): Prefer `normal' property values if the name
18340 doesn't specify them.
18341
18342 * fontset.c (Finternal_char_font): Use font_get_name, not
18343 Ffont_xlfd_name.
18344
18345 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18346 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18347 pattern. Don't force scalable.
18348
18349 * xftfont.c (xftfont_open): For generating a name, start from
18350 96-byte buffer.
18351
183522008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18353
18354 * frame.h (x_new_fontset2): Fix prototype.
18355
183562008-02-01 Kenichi Handa <handa@m17n.org>
18357
18358 * font.h (struct font_driver): Delete member parse_name.
18359 (font_match_p, font_get_spec, font_parse_fcname)
18360 (font_unparse_fcname): Extern them.
18361 (font_get_name): Adjust prototype.
18362
18363 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18364 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18365 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18366 unnecessary checks for weight, slant, and swidth.
18367 (font_parse_fcname): New function.
18368 (font_unparse_fcname): New function.
18369 (font_parse_name): New function.
18370 (font_match_p): New function.
18371 (font_get_name): Change return value to Lisp string.
18372 (font_get_spec): New function.
18373 (Qunspecified, Qignore_defface): Don't extern them.
18374 (font_find_for_lface): Assume that LFACE is fully specified.
18375 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18376 object, use it for FACE.
18377 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18378 driver->parse_name.
18379 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18380
18381 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18382 prototype.
18383
18384 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18385 argument F. Don't call Fnew_fontset. Instead, directly call
18386 make_fontset.
18387
18388 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18389
18390 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18391 of x_new_fontset2.
18392
18393 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18394 (Qsans__serif): New variables.
18395 (ftfont_generic_family_list): New variable.
18396 (syms_of_ftfont): Initialize the above variables.
18397 (ftfont_pattern_entity): Delete argument NAME.
18398 (ftfont_list_generic_family): New function.
18399 (ftfont_parse_name): Delete this function.
18400 (ftfont_list): Try generic family only when FcFontList found no font.
18401 (ftfont_list_family): Fix args to FcObjectSetBuild.
18402
18403 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18404 object in attrs[LFACE_FONT_INDEX].
18405 (set_lface_from_font_name): Cancel all changes for font-backend.
18406 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18407 function.
18408 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18409 font object in QCfont attribute.
18410 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18411 (realize_default_face) [USE_FONT_BACKEND]: Call
18412 set_lface_from_font_and_fontset.
18413
18414 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18415 "fixed", and signal error here if no suitable font was found.
18416
18417 * xfont.c (xfont_parse_name): Delete this function.
18418
18419 * xftfont.c (xftfont_open): Change coding style of error
18420 handling. Generate fontconfig's fontname pattern.
18421
18422 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18423 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18424
18425 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18426 Both args FONTSET and FONT_OBJECT must be existing ones.
18427
184282008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18429
18430 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18431
184322008-02-01 Kenichi Handa <handa@m17n.org>
18433
18434 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18435
18436 * font.h (struct font): Fix typo.
18437
18438 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18439 XLFD_XXX_INDEX.
18440 (enum xlfd_field_mask): New enum.
18441 (intern_font_field): Changed argument. Change caller. If digits
18442 are followed by non-digits, return a symbol.
18443 (font_expand_wildcards): New function.
18444 (font_parse_xlfd): Fix wildcard handling.
18445 (Ffont_spec): If :name is specified, reflect the info in the other
18446 properties.
18447
18448 * ftfont.c (ftfont_pattern_entity): Fix typo.
18449 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18450 locale.
18451
184522008-02-01 Kenichi Handa <handa@m17n.org>
18453
18454 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18455
18456 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18457 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18458 registry doesn't specify encoding part.
18459 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18460 (font_open_by_name): At first try parsing the name.
18461 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18462 as Lisp symbols.
18463
18464 * fontset.c (reorder_font_vector): Pay attention to the case that
18465 the 3rd element of font_def is nil.
18466 (fontset_font): For the default fontset, append one more fontset
18467 elements for a script-based font specification. Don't add script
18468 attribute on finding a font.
18469 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18470 font name.
18471 (fontset_ascii_font): If a font can't be opened, return nil.
18472
18473 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18474 (ftfont_pattern_entity): New function.
18475 (ftfont_get_cache): Assume that freetype_font_cache is already
18476 initialized.
18477 (ftfont_list): Handle the case that a file is specified in font
18478 name. Use ftfont_pattern_entity to generate entities.
18479 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18480 (syms_of_ftfont): Initialize freetype_font_cache.
18481
18482 * xftfont.c (xftfont_open): Make the font name fontconfig's
18483 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18484 (xftfont_close): Free font->font.name if not NULL.
18485
18486 * xfont.c (xfont_list): If script is specified for a font, return
18487 null_vector.
18488 (xfont_list_family): Declare argument type.
18489
18490 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18491 name, set LFACE_FONT (lface) to nil.
18492
18493 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18494 return Qnil.
18495
184962008-02-01 Kenichi Handa <handa@m17n.org>
18497
18498 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18499 (standard_args): Add "-enable-font-backend".
18500
185012008-02-01 Kenichi Handa <handa@m17n.org>
18502
18503 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18504 (struct xftdraw_list, xftdraw_list): Delete them.
18505 (register_xftdraw, check_xftdraw): Delete them.
18506 (xftfont_prepare_face): Don't call register_xftdraw.
18507 (xftfont_done_face): Don't call check_xftdraw.
18508 (xftfont_draw): Get background color only when with_background is
18509 nonzero.
18510
18511 * xfont.c (xfont_encode_char): Fix calculation of char2b.
18512
185132008-02-01 Kenichi Handa <handa@m17n.org>
18514
18515 These changes are for the new font handling codes.
18516
18517 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
18518 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
18519 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
18520 (FONTSRC, FONTOBJ): New variables.
18521 (obj): Add $(FONTOBJ).
18522 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
18523 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
18524 @LIBOTF_LIBS@.
18525 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
18526 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
18527
18528 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
18529
18530 * character.h (Vscript_representative_chars): Extern it.
18531
18532 * character.c (Vscript_representative_chars): New variable.
18533 (syms_of_character): Declare it as a Lisp variable.
18534
18535 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
18536 enable_font_backend is nonzero, accept the composition method
18537 COMPOSITION_WITH_GLYPH_STRING.
18538
18539 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
18540 enumeration COMPOSITION_WITH_GLYPH_STRING.
18541
18542 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
18543 members clip_x, clip_y, clip_width, and clip_height.
18544 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
18545
18546 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
18547 --enable-font-backend. Call syms_of_font.
18548
18549 * fns.c (assoc_no_quit): New function.
18550
18551 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18552 (face_for_font, new_fontset_from_font)
18553 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18554
18555 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18556 (fontset_font, fontset_ascii, face_for_char)
18557 (make_fontset_for_ascii_face, Ffont_info)
18558 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18559 is nonzero, use font-backend mechanism.
18560 (find_font_encoding): Make it non-static.
18561 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18562 New functions.
18563
18564 * frame.h (struct frame): New members resx and resy.
18565 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18566 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18567
18568 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18569 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18570
18571 * lisp.h (assoc_no_quit): Extern it.
18572
18573 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18574 Through out the file, use FONT_INFO_FROM_FACE instead of
18575 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18576 rif->per_char_metric.
18577 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18578 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18579 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18580 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18581 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18582 nonzero, use font-backend mechanism.
18583 (get_per_char_metric): New function.
18584
18585 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18586 (set_lface_from_font_name)
18587 (set_font_frame_param, free_realized_face)
18588 (prepare_face_for_display, clear_face_gcs)
18589 (Finternal_set_font_selection_order, realize_x_face)
18590 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18591 font-backend mechanism.
18592 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18593 (load_face_font) [USE_FONT_BACKEND]: Abort.
18594 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18595 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18596
18597 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18598 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18599 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18600 nonzero, register all available font drivers. Call
18601 x_default_font_parameter for deciding a font.
18602 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18603
18604 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18605 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18606 (x_set_glyph_string_clipping_exactly)
18607 (x_compute_glyph_string_overhangs)
18608 (x_draw_glyph_string_foreground)
18609 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18610 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18611 enable_font_backend is nonzero, use font-backend mechanism.
18612 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18613
186142008-02-01 Kenichi Handa <handa@m17n.org>
18615
18616 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18617 system_eol_type.
18618 (syms_of_coding): Initialize system_eol_type.
18619
18620 * process.c (Fset_process_coding_system): Inherit system's eol
18621 format if necessary.
18622
186232008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18624
18625 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18626
186272008-02-01 Kenichi Handa <handa@m17n.org>
18628
18629 * coding.c (decode_eol): Pay attention to buffer relocation in
18630 del_range_2.
18631 (decode_coding): Call decode_eol before restoring undo_list.
18632
186332008-02-01 Kenichi Handa <handa@m17n.org>
18634
18635 * charset.c (Fdefine_charset_internal): Fix setting of
18636 emacs_mule_bytes.
18637
186382008-02-01 Kenichi Handa <handa@m17n.org>
18639
18640 * keyboard.c (read_char): Check if C is a character or not before
18641 looking up Vkeyboard_translate_table.
18642
186432008-02-01 Kenichi Handa <handa@m17n.org>
18644
18645 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18646 condition to terminate the loop.
18647
186482008-02-01 Kenichi Handa <handa@m17n.org>
18649
18650 * coding.c (produce_composition): Compare charbuf[i] instead of
18651 args[i] against 0.
18652 (Fterminal_coding_system): Use EQ to compare Lisp objects.
18653
186542008-02-01 Kenichi Handa <handa@m17n.org>
18655
18656 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
18657 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
18658 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
18659 detect_coding.
18660 (emacs_mule_char): Handle old style (Emacs 20) component character
18661 of a composition.
18662 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
18663 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
18664 composition rule.
18665 (decode_coding_emacs_mule): Handle invalid bytes correctly.
18666
186672008-02-01 Kenichi Handa <handa@m17n.org>
18668
18669 * coding.c (encode_coding_ccl): Allocate destination dynamically
18670 when necessary.
18671
186722008-02-01 Kenichi Handa <handa@m17n.org>
18673
18674 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
18675 the loop. When quitted, show a proper error message.
18676
186772008-02-01 Kenichi Handa <handa@m17n.org>
18678
18679 * xterm.c (x_set_glyph_string_clipping_exactly): Set
18680 src->clip_head and src->clip_tail temporarily instead of src->hl.
18681
18682 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
18683 character sequence.
18684 (Fccl_execute_on_string): Use ASET, not XSET.
18685
186862008-02-01 Kenichi Handa <handa@m17n.org>
18687
18688 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
18689
186902008-02-01 Kenichi Handa <handa@m17n.org>
18691
18692 * coding.c (decode_coding): Fix the condition of terminating the
18693 decoding loop.
18694
186952008-02-01 Kenichi Handa <handa@m17n.org>
18696
18697 * data.c (Faset): On setting a character bigger than 255 in a
18698 unibyte string, signal an error instead of make the string multibyte.
18699
187002008-02-01 Kenichi Handa <handa@m17n.org>
18701
18702 * charset.c (map_charset_chars): Fix for ascii-compatible charset
18703 made by a mapping table.
18704
187052008-02-01 Kenichi Handa <handa@m17n.org>
18706
18707 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
18708 not.
18709 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
18710 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
18711
18712 * xterm.c (x_draw_composite_glyph_string_foreground): Check
18713 s->face is NULL or not.
18714
187152008-02-01 Kenichi Handa <handa@m17n.org>
18716
18717 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
18718 (x_draw_glyph_string): Fix drawing of right_overhang and
18719 left_overhang around/on cursor.
18720
18721 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
18722
187232008-02-01 Kenichi Handa <handa@m17n.org>
18724
18725 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
18726
187272008-02-01 Kenichi Handa <handa@m17n.org>
18728
18729 * coding.c (Fdefine_coding_system_internal)
18730 (Fdefine_coding_system_alias): Avoid a duplicated element in
18731 Vcoding_system_alist.
18732
187332008-02-01 Kenichi Handa <handa@m17n.org>
18734
18735 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
18736
18737 * coding.c (Qcoding_system_define_form): New variable.
18738 (syms_of_coding): Intern and staticpro it.
18739 (Fcoding_system_p): Check Qcoding_system_define_form.
18740 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
18741
18742 * coding.h (CODING_SYSTEM_P): If ID is not available, call
18743 Fcoding_system_p.
18744 (CHECK_CODING_SYSTEM): If ID is not available, call
18745 Fcheck_coding_system.
18746 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
18747 Try also Fcheck_coding_system.
18748
187492008-02-01 Kenichi Handa <handa@m17n.org>
18750
18751 * coding.c (code_conversion_restore): GCPRO arg.
18752
187532008-02-01 Kenichi Handa <handa@m17n.org>
18754
18755 * character.c (lisp_string_width): Check multibyteness of STRING.
18756
187572008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18758
18759 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
18760 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
18761 (decode_mac_font_name): Use decode_coding_c_string instead of
18762 decode_coding.
18763 (x_load_font): Initialize fontp->fontset to -1. Set
18764 fontp->encoding_type.
18765
187662008-02-01 Kenichi Handa <handa@m17n.org>
18767
18768 * search.c (search_buffer): Give up BM search on case-fold-search
18769 if one of a target character has a case-equivalence of different
18770 byte length even if that target charcter is an ASCII.
18771 (simple_search): Fix calculation of byte length of matched text.
18772 (boyer_moore): Fix handling of case-equivalent multibyte characters.
18773
187742008-02-01 Kenichi Handa <handa@m17n.org>
18775
18776 * coding.c (decode_coding): Fix handling of invalid bytes.
18777
187782008-02-01 Kenichi Handa <handa@m17n.org>
18779
18780 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
18781 Unicode characters.
18782
187832008-02-01 Kenichi Handa <handa@m17n.org>
18784
18785 * coding.c (encode_coding_object): If a pre-write-conversion
18786 function makes a new buffer, kill it.
18787
187882008-02-01 Kenichi Handa <handa@m17n.org>
18789
18790 * coding.c (QCascii_compatible_p): New variable.
18791 (syms_of_coding): Initialize it.
18792 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
18793 calling string_char.
18794 (record_conversion_result): Add `default:' case.
18795 (coding_charset_list): Delete unused variable `coding_type'.
18796 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
18797 property in the plist of the coding system.
18798 (Fcoding_system_put): Check QCascii_compatible_p.
18799
188002008-02-01 Miles Bader <miles@gnu.org>
18801
18802 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
18803 removed calculation of frame `f', as it's now used.
18804
188052008-02-01 Kenichi Handa <handa@m17n.org>
18806
18807 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
18808 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
18809 (UNIDATA): New variable.
18810 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
18811 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
18812 $(RUN_TEMACS) unconditionally.
18813
188142008-02-01 Kenichi Handa <handa@m17n.org>
18815
18816 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18817 (admindir): New variable.
18818 ($(lispsource)international/charprop.el): New target.
18819
188202008-02-01 Miles Bader <miles@gnu.org>
18821
18822 * character.c (chars-in-region): Remove obsolete function.
18823 (syms_of_character): Remove its initialization.
18824
188252008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18826
18827 * w32select.c (validate_coding_system)
18828 (setup_windows_coding_system): New functions.
18829 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18830 setup_windows_coding_system.
18831 (setup_config, Fw32_get_clipboard_data): Use
18832 validate_coding_system.
18833 (Fx_selection_exists): Move call to setup_config to a place
18834 where signals are allowed.
18835
18836 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18837 (Fcheck_coding_system): Add declarations.
18838
188392008-02-01 Kenichi Handa <handa@m17n.org>
18840
18841 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18842
188432008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18844
18845 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18846 string as the second argument for x_new_fontset.
18847
188482008-02-01 Kenichi Handa <handa@m17n.org>
18849
18850 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18851 (encode_coding_object): Use safe_call instead of call2.
18852
188532008-02-01 Kenichi Handa <handa@m17n.org>
18854
18855 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18856
18857 * Makefile.in (lisp): Include charprop.el.
18858
188592008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18860
18861 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18862 Not sure if it's unnecessary.
18863
188642008-02-01 Steven Tamm <steventamm@mac.com>
18865
18866 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18867 some possibly unnecessary fontset checking code that crashed
18868 when creating a new frame.
18869
188702008-02-01 Kenichi Handa <handa@m17n.org>
18871
18872 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18873 lookup_face.
18874
18875 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18876
18877 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18878
188792008-02-01 Kenichi Handa <handa@m17n.org>
18880
18881 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18882 (coding_charset_list): New function.
18883
18884 * coding.h (coding_charset_list): Extern it.
18885
188862008-02-01 Kenichi Handa <handa@m17n.org>
18887
18888 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18889 concatenation of family and registry.
18890
188912008-02-01 Kenichi Handa <handa@m17n.org>
18892
18893 * character.h (BYTE8_STRING): Fix typo.
18894
18895 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18896 string to multibyte (sync to HEAD).
18897
18898 * casefiddle.c (casify_region): Handle changes in byte-length
18899 using replace_range_2 (sync to HEAD).
18900
189012008-02-01 Andreas Schwab <schwab@suse.de>
18902
18903 * chartab.c (map_char_table): GCPRO table and arg.
18904
189052008-02-01 Kenichi Handa <handa@m17n.org>
18906
18907 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18908 already at limit.
18909
189102008-02-01 Kenichi Handa <handa@m17n.org>
18911
18912 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18913 instead of fast_c_string_match_ignore_case.
18914 (find_font_encoding): Change argument to Lisp_Object. Use
18915 fast_string_match_ignore_case instead of
18916 fast_c_string_match_ignore_case. Change caller.
18917
189182008-02-01 Kenichi Handa <handa@m17n.org>
18919
18920 * xdisp.c (get_next_display_element): In unibyte case, decide to
18921 display in octal form by checking a character by
18922 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18923
18924 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18925
18926 * character.c (unibyte_has_multibyte_table): New variable.
18927
18928 * character.h (unibyte_has_multibyte_table): Extern it.
18929 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18930
189312008-02-01 Kenichi Handa <handa@m17n.org>
18932
18933 * coding.c (encode_coding_iso_2022): Fix handling of charset
18934 annotation.
18935
189362008-02-01 Kenichi Handa <handa@m17n.org>
18937
18938 * coding.c (setup_coding_system): If coding_system is nil, use
18939 Qundecided.
18940 (Fterminal_coding_system): Return nil if terminal coding system is
18941 `undecided'.
18942 (syms_of_coding): Define coding-system `undecided' here. Setup
18943 terminal_coding as `undecided'.
18944
189452008-02-01 Kenichi Handa <handa@m17n.org>
18946
18947 * xdisp.c (message_dolog, set_message_1): Call
18948 unibyte_char_to_multibyte with arg type int.
18949
18950 * lread.c (read1): Fix reading of a char-table.
18951
18952 * print.c (print_object): Include sub char-table in circularities
18953 detection.
18954
189552008-02-01 Kenichi Handa <handa@m17n.org>
18956
18957 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18958 Append the found sequences in car of ARGS instead of prepending.
18959
189602008-02-01 Kenichi Handa <handa@m17n.org>
18961
18962 * fileio.c (report_file_error): Make a unibyte string from
18963 strerror (errorno).
18964 (Fsubstitute_in_file_name): Fix the arg to
18965 unibyte_char_to_multibyte. It is evaluated twice.
18966
189672008-02-01 Kenichi Handa <handa@m17n.org>
18968
18969 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18970
189712008-02-01 Kenichi Handa <handa@m17n.org>
18972
18973 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18974 BOM is not found.
18975 (detect_coding, detect_coding_system): Optimization for ISO-2022
18976 when no 8-bit data is found.
18977
189782008-02-01 Jason Rumney <jasonr@gnu.org>
18979
18980 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18981
189822008-02-01 Kenichi Handa <handa@m17n.org>
18983
18984 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18985 CHARS.
18986
189872008-02-01 Steven Tamm <steventamm@mac.com>
18988
18989 * macterm.c (mac_encode_char): Add charset argument and update
18990 to use encoding_type.
18991 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18992 switch to pure fontset.
18993 (decode_mac_font_name): Temporarily remove decoding.
18994 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18995 (x_load_font): Temporarily remove encoding.
18996
189972008-02-01 Kenichi Handa <handa@m17n.org>
18998
18999 * xfaces.c (Fface_font): If frame is not on a window system,
19000 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19001 refer to face->font.
19002 (split_font_name_into_vector, build_font_name_from_vector)
19003 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19004 when HAVE_WINDOW_SYSTEM is defined.
19005
190062008-02-01 Kenichi Handa <handa@m17n.org>
19007
19008 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19009 (x_produce_glyphs): Fix setting of members of cmp in case
19010 cmp->glyph_len is zero.
19011
19012 * fontset.c (Fset_fontset_font): Fix docstring.
19013 (Ffontset_info): Make it backward compatible. New arg ALL.
19014
190152008-02-01 Kim F. Storm <storm@cua.dk>
19016
19017 * process.c (read_process_output): Grow decoding_buf when needed;
19018 this could cause a crash in allocate_string and compact_small_strings.
19019
190202008-02-01 Kenichi Handa <handa@m17n.org>
19021
19022 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19023
190242008-02-01 Kenichi Handa <handa@m17n.org>
19025
19026 * coding.c (setup_coding_system): Set coding->common_flags
19027 correctly for raw-text.
19028 (consume_chars): On encoding unibyte text by raw-text, don't check
19029 multibyte form.
19030 (encode_coding): On encoding by raw-text, never use translation tables.
19031
19032 * fileio.c (e_write): Short cut for the case of no encoding.
19033
190342008-02-01 Kenichi Handa <handa@m17n.org>
19035
19036 * coding.c (detect_coding, detect_coding_system): Delete unused
19037 variables.
19038
190392008-02-01 Kenichi Handa <handa@m17n.org>
19040
19041 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19042 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19043
190442008-02-01 Kenichi Handa <handa@m17n.org>
19045
19046 * coding.c (Ffind_coding_systems_region_internal): Include
19047 raw-text and no-conversion in the result.
19048
190492008-02-01 Kenichi Handa <handa@m17n.org>
19050
19051 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19052 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19053 FONT_DEF.
19054 (font_def_arg, add_arg, from_arg, to_arg): New args.
19055 (set_fontset_font): Change argument.
19056 (Fset_fontset_font): Fix for the case that TARGET is a script
19057 name and charset name.
19058 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19059
190602008-02-01 Kenichi Handa <handa@m17n.org>
19061
19062 * fontset.c (fontset_font): Rename from fontset_face. Change return
19063 value.
19064 (face_suitable_for_char_p, face_for_char): Adjust for the change
19065 of fontset_font.
19066 (make_fontset_for_ascii_face): Fix setting of the fontset element
19067 for ASCII.
19068 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19069 to get a font name.
19070 (Ffontset_info): Adjust for the change of fontset_font.
19071
19072 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19073
19074 * character.h (LEADING_CODE_LATIN_1_MIN)
19075 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19076
190772008-02-01 Kenichi Handa <handa@m17n.org>
19078
19079 * editfns.c (check_translation): New function.
19080 (Ftranslate_region_internal): Handle M:N mapping.
19081
190822008-02-01 Kenichi Handa <handa@m17n.org>
19083
19084 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19085
190862008-02-01 Kenichi Handa <handa@m17n.org>
19087
19088 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19089 goto invalid_code.
19090 (decode_coding_iso_2022): Fix handling of invalid designation.
19091
19092 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19093 after calling code_conversion_save.
19094
190952008-02-01 Kenichi Handa <handa@m17n.org>
19096
19097 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19098
19099 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19100
19101 * fontset.c: Include "intervals.h".
19102 (fontset_face): Fix comparing of Lisp_Objects.
19103 (free_face_fontset, new_fontset_from_font_name): Fix
19104 Lisp_Object/int mixup.
19105
19106 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19107
19108 * coding.c: Add many prototypes for static functions.
19109 (get_translation_table): Allow max_lookup to be NULL.
19110 (decode_coding, Ffind_coding_systems_region_internal)
19111 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19112 get_translation_table with max_lookup NULL.
19113
191142008-02-01 Kenichi Handa <handa@m17n.org>
19115
19116 * coding.c (get_translation_table): Declare it as Lisp_Object.
19117 (LOOKUP_TRANSLATION_TABLE): New macro.
19118 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19119 instead of CHAR_TABLE_REF.
19120
191212008-02-01 Kenichi Handa <handa@m17n.org>
19122
19123 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19124 annotation data format.
19125 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19126 Change arguments FROM and TO to single argument NCHARS. Change caller.
19127 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19128 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19129 (decode_coding_ccl, decode_coding_charset): Pay attention to
19130 coding->charbuf_used.
19131 (get_translation): New function.
19132 (produce_chars): New arguments translation_table and last_block.
19133 Translate characters here. Return number of carryover chars.
19134 Change caller.
19135 (produce_composition): New argument pos. Change caller.
19136 Adjust for the change of annotation data format.
19137 (produce_charset, produce_annotation): Likewise.
19138 (decode_coding, encode_coding): Don't call translate_chars.
19139 (consume_chars): New arg translation_table. Change caller.
19140 (translate_chars): Delete.
19141 (syms_of_coding): Make translation-table's number of extra slots 2.
19142
191432008-02-01 Kenichi Handa <handa@m17n.org>
19144
19145 * search.c (simple_search): Fix setting this_pos_byte in backward
19146 search.
19147
19148 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19149 byte sequence.
19150 (detect_coding_ccl): Fix setting of the variable valids.
19151
191522008-02-01 Kenichi Handa <handa@m17n.org>
19153
19154 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19155
19156 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19157
19158 * editfns.c (Ftranslate_region_internal): Rename from
19159 Ftranslate_region. Accept a char-table in TABLE.
19160 (syms_of_editfns): Defsubr Stranslate_region_internal.
19161
19162 * xfaces.c (set_lface_from_font_name): If a font is specified for
19163 a frame, generate a fontset from the font.
19164 (build_scalable_font_name): If the scalable font is requested for
19165 a specific size, don't change that size.
19166 (try_font_list): Try a scalable font also in the case that a
19167 pattern string is specified.
19168
191692008-02-01 Kenichi Handa <handa@m17n.org>
19170
19171 * xfaces.c (Fface_font): New optional arg CHARACTER.
19172
191732008-02-01 Kenichi Handa <handa@m17n.org>
19174
19175 * charset.h (CHARSET_OFFSET): New macro.
19176
191772008-02-01 Kenichi Handa <handa@m17n.org>
19178
19179 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19180
19181 * fontset.c (fontset_face): Handle the case that repertory is a
19182 char-table.
19183 (find_font_encoding): Return nil for unknown encoding.
19184 (Fset_fontset_font): Ignore a font of unknown encoding.
19185
191862008-02-01 Kenichi Handa <handa@m17n.org>
19187
19188 * keymap.c (describe_vector): Handle default value of a char table.
19189
19190 * fontset.c (fontset_face): Handle fallback fonts correctly.
19191 (Ffontset_info): Return infomation about fallback fonts.
19192
191932008-02-01 Kenichi Handa <handa@m17n.org>
19194
19195 * fontset.c (FONTSET_DEFAULT): New macro.
19196 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19197 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19198 the case that it is nil.
19199 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19200 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19201
19202 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19203 subset or superset.
19204
192052008-02-01 Kenichi Handa <handa@m17n.org>
19206
19207 * emacs.c (main): Call init_charset after syms_of_XXX.
19208
19209 * charset.c (Vcharset_map_directory): Delete.
19210 (Vcharset_map_path): New variable.
19211 (load_charset_map_from_file): Use Vcharset_map_path instead.
19212 (init_charset): Initialize Vcharset_map_path.
19213 (syms_of_charset): Delete declaration of "charset-map-directory",
19214 add declaration of "charset-map-path".
19215
192162008-02-01 Kenichi Handa <handa@m17n.org>
19217
19218 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19219 ASCII only string.
19220
19221 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19222
19223 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19224 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19225
192262008-02-01 Kenichi Handa <handa@m17n.org>
19227
19228 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19229
19230 * coding.c (QCmnemonic, QCdefalut_char)
19231 (QCdecode_translation_table, QCencode_translation_table)
19232 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19233 (get_translation_table): Return a list of translation tables if
19234 necessary.
19235 (decode_coding): Call get_translation_table with ENCODEP 0.
19236 (char_encodable_p): If translation_table is non-nil, always call
19237 translate_char.
19238 (Fdefine_coding_system_internal): Accept list of translation
19239 tables as :encode-translation-table and :decode-translation-table.
19240 (Fcoding_system_put): New function.
19241 (syms_of_coding): Declare new symbols. Defsubr
19242 Scoding_system_put.
19243 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19244 typically JISX0212.
19245
19246 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19247 when the charset is superset type.
19248
19249 * character.c (translate_char): Accept list of translation tables.
19250
192512008-02-01 Kenichi Handa <handa@m17n.org>
19252
19253 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19254 (CODING_ATTR_TRANS_TBL): New macro.
19255
19256 * coding.c (get_translation_table): New function.
19257 (translate_chars): Fix the bug of skipping annotation data.
19258 (decode_coding, encode_coding): Utilize get_translation_table.
19259 (char_encodable_p, Funencodable_char_position): Translate char if
19260 necessary.
19261 (Ffind_coding_systems_region_internal)
19262 (Fcheck_coding_systems_region): Setup translation table for encode
19263 in a coding system attribute vector in advance.
19264 (Fdefine_coding_system_internal): Allow a symbol as translation
19265 table. For shift-jis type coding system, allow 4th charset.
19266
192672008-02-01 Kenichi Handa <handa@m17n.org>
19268
19269 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19270
19271 * xdisp.c (get_next_display_element): Pass -1 as POS to
19272 FACE_FOR_CHAR if displaying a C-string.
19273
192742008-02-01 Kenichi Handa <handa@m17n.org>
19275
19276 * composite.c (get_composition_id): Handle xoff and yoff in a
19277 composition rule.
19278
19279 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19280 (struct composition): New member lbearing and rbearing.
19281
19282 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19283 (x_get_glyph_overhangs): Handle a composition glyph.
19284 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19285
19286 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19287 composition glyph.
19288
192892008-02-01 Kenichi Handa <handa@m17n.org>
19290
19291 * print.c: Include charset.h.
19292 (Vprint_charset_text_property): New variable.
19293 (Qdefault): Extern it.
19294 (PRINT_STRING_NON_CHARSET_FOUND)
19295 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19296 (print_check_string_result): New variable.
19297 (print_check_string_charset_prop): New function.
19298 (print_prune_charset_plist): New variable.
19299 (print_prune_string_charset): New function.
19300 (print_object): Call print_prune_string_charset if
19301 Vprint_charset_text_property is not t.
19302 (print_interval): Print nothing if interval->plist is nil.
19303 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19304 variable. Init and staticpro print_prune_charset_plist.
19305
193062008-02-01 Kenichi Handa <handa@m17n.org>
19307
19308 * fontset.c (new_fontset_from_font_name): Use the specified font
19309 for all characters in the new fontset.
19310
19311 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19312 OBJECT args.
19313
19314 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19315 OBJECT args for composition too.
19316
19317 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19318 OBJECT args.
19319
193202008-02-01 Kenichi Handa <handa@m17n.org>
19321
19322 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19323
19324 * fontset.c (reorder_font_vector): Adjust for the change of
19325 FONT_DEF format.
19326 (fontset_face): New arg id. Change caller.
19327 (face_for_char): New args pos and object.
19328 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19329 (fs_query_fontset): Check NAME by Fassoc too.
19330 (Fset_fontset_font): Allow non-XLFD font name.
19331 (Ffontset_info): Adjust for the change of FONT_DEF format.
19332
19333 * fontset.h (face_for_char): Adjust prototype.
19334
19335 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19336 (append_space, extend_face_to_end_of_line)
19337 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19338 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19339
19340 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19341 POS and OBJECT args.
19342
19343 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19344 POS and OBJECT args.
19345
193462008-02-01 Jason Rumney <jasonr@gnu.org>
19347
19348 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19349 of GlobalAlloc'ed memory.
19350
193512008-02-01 Kenichi Handa <handa@m17n.org>
19352
19353 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19354
19355 * charset.h (charset_table_used): Delete extern.
19356
19357 * charset.c (charset_table_used): Make it static.
19358 (map_charset_chars): Fix args to c_function with.
19359
19360 * chartab.c (map_sub_char_table_for_charset): Fix args to
19361 c_function with.
19362
19363 * coding.h (enum coding_result_code): Delete
19364 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19365
19366 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19367 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19368 (Vlast_code_conversion_error): New variables.
19369 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19370 (ONE_MORE_BYTE): Record error if any instead of signaling an
19371 error. If non-ASCII multibyte char is found, return the negative
19372 value of the code. All callers changed to check it.
19373 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19374 (record_conversion_result): New function. Change all codes setting
19375 coding->result to call this function.
19376 (detect_coding_utf_8, decode_coding_utf_8)
19377 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19378 Don't use the local variable incomplete.
19379 (emacs_mule_char): Change the second arg to `const'.
19380 (decode_coding): Fix of flushing out unprocessed data.
19381 (make_conversion_work_buffer): Fix making of a work buffer.
19382 (decode_coding_object): Return coding->dst_object.
19383
19384 * fontset.c (set_fontset_font): Fix args.
19385
19386 * lisp.h (CHARACTERBITS): Define as 22.
19387
19388 * process.c (send_process): Be sure to set coding->src_multibyte.
19389
19390 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19391
193922008-02-01 Kenichi Handa <handa@m17n.org>
19393
19394 * xdisp.c (handle_auto_composed_prop): Give limit to
19395 Fnext_single_char_property_change.
19396
193972008-02-01 Kenichi Handa <handa@m17n.org>
19398
19399 * composite.c (syms_of_composite): Don't make the composition hash
19400 table weak.
19401
19402 * fontset.c (Fset_fontset_font): Fix docstring.
19403
19404 * lisp.h (detect_coding_system): Adjust prototype.
19405
19406 * fileio.c (kill_workbuf_unwind): Delete this function.
19407 (Finsert_file_contents): Adjust the call of detect_coding_system.
19408 Get conversion_buffer by code_conversion_save. Use the macro
19409 CODING_MAY_REQUIRE_DECODING. After decoding, update
19410 coding_system.
19411
19412 * coding.h (make_conversion_work_buffer): Delete extern.
19413 (code_conversion_save): Extern it.
19414
19415 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19416 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19417 (decode_coding_utf_8): Don't do eol converion.
19418 (detect_coding_utf_16): Check coding->src_chars, not
19419 coding->src_bytes. Add heuristics for those that have no signature.
19420 (decode_coding_emacs_mule, decode_coding_iso_2022)
19421 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19422 Don't do eol converion.
19423 (adjust_coding_eol_type): Return a new coding system.
19424 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19425 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19426 each change.
19427 (decode_coding): Pay attention to undo_list. Do eol conversion for
19428 all types of coding-systems (if necessary).
19429 (Vcode_conversion_work_buf_list): Delete it.
19430 (Vcode_conversion_reused_workbuf): Rename from
19431 Vcode_conversion_reused_work_buf.
19432 (Vcode_conversion_workbuf_name): New variable.
19433 (reused_workbuf_in_use): New variable.
19434 (make_conversion_work_buffer): Delete the arg DEPTH.
19435 (code_conversion_restore): Change argument to cons.
19436 (code_conversion_save): Delete the argument BUFFER. Change callers.
19437 (detect_coding_system): New argument src_chars. Change callers.
19438 Fix for utf-16 detection.
19439 (init_coding_once): Don't use ISO_carriage_return.
19440 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19441 reused_workbuf_in_use.
19442
194432008-02-01 Kenichi Handa <handa@m17n.org>
19444
19445 * keymap.c (store_in_keymap): Pay attention to the case that idx
19446 is a cons specifying a character range.
19447
194482008-02-01 Kenichi Handa <handa@m17n.org>
19449
19450 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19451 HANDLED_RECOMPUTE_PROPS.
19452
19453 * coding.c (Fdefine_coding_system_internal): Fix checking of
19454 ascii compatibility.
19455
194562008-02-01 Kenichi Handa <handa@m17n.org>
19457
19458 * charset.c (find_charsets_in_text): Delete unused locale variable.
19459 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19460
19461 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19462 Resync charset_list to Vemacs_mule_charset_list.
19463
19464 * keymap.c (store_in_keymap): Pay attention to the case that idx
19465 is a cons specifying a character range.
19466
194672008-02-01 Kenichi Handa <handa@m17n.org>
19468
19469 * composite.c (update_compositions): Bind inhibit-read-only, etc
19470 to t before calling remove-list-of-text-properties.
19471
19472 * print.c (print_object): Always print ASCII chars as is.
19473
194742008-02-01 Kenichi Handa <handa@m17n.org>
19475
19476 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19477
19478 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19479 is a char table.
19480
194812008-02-01 Kenichi Handa <handa@m17n.org>
19482
19483 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19484
194852008-02-01 Kenichi Handa <handa@m17n.org>
19486
19487 * xfaces.c (set_lface_from_font_name): Fix for the case that
19488 FONTNAME is not fontset name.
19489
194902008-02-01 Kenichi Handa <handa@m17n.org>
19491
19492 * fns.c (base64_encode_1): Fix previous change.
19493
194942008-02-01 Kenichi Handa <handa@m17n.org>
19495
19496 * fontset.c (set_fontset_font): New function.
19497 (Fset_fontset_font): If a font is specified for a charset, use
19498 map_charset_chars to store the font spec in a fontset.
19499
195002008-02-01 Kenichi Handa <handa@m17n.org>
19501
19502 * fontset.c (fontset_face): Create a fallback fontset on demand.
19503 (make_fontset): Don't create a fallback fontset here.
19504 (free_face_fontset): Free a fallback fontset (if any) too.
19505 (n_auto_fontsets): Delete this variable.
19506 (auto_fontset_alist): New variable.
19507 (new_fontset_from_font_name): Check auto_fontset_alist.
19508 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19509 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
19510 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
19511 Defsubr Sfontset_list_all.
19512
195132008-02-01 Kenichi Handa <handa@m17n.org>
19514
19515 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
19516
195172008-02-01 Kenichi Handa <handa@m17n.org>
19518
19519 * fontset.c (Fnew_fontset): Check NAME more rigidly.
19520
195212008-02-01 Kenichi Handa <handa@m17n.org>
19522
19523 * editfns.c (Fgoto_char): Fix docstring.
19524
195252008-02-01 Kenichi Handa <handa@m17n.org>
19526
19527 * insdel.c (insert_from_gap): Adjust intervals correctly.
19528
195292008-02-01 Jason Rumney <jasonr@gnu.org>
19530
19531 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
19532 (pfnGetFontUnicodeRanges): New dynamically loaded function.
19533 (w32_initialize): Try to load it.
19534 (x_get_font_repertory): Use it if available.
19535 (w32_encode_char): Add shortcut for unicode output.
19536
19537 * w32fns.c (w32_load_system_font): Default charset to -1.
19538 (x_to_w32_charset): Match all fonts for unicode.
19539 (w32_to_x_charset): New parameter matching. Don't return partial
19540 or wildcard charsets.
19541 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
19542 (w32_codepage_for_font): Return CP_UNICODE for unicode.
19543 (w32_to_x_font): Match charset to real charset.
19544 (enum_font_cb2): Always list unicode versions.
19545
19546 * makefile.w32-in (temacs): Increase EMHEAP.
19547
195482008-02-01 Jason Rumney <jasonr@gnu.org>
19549
19550 * w32term.c (w32_encode_char): New charset parameter.
19551 font_info.encoding becomes encoding_type.
19552 (x_get_font_repertory): New function. Warning: stub only!
19553 (x_new_font): Return quickly if font already set.
19554 (x_new_fontset): fontsetname parameter is Lisp_Object.
19555 Use new fs_query_fontset. Try new_fontset_from_font_name.
19556 Use fontset_name for return value.
19557
19558 * w32term.h: Declare x_get_font_repertory.
19559
19560 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19561 place of find_charset_in_text. Use encode_coding_object in place
19562 of encode_coding.
19563 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19564 decode_coding.
19565
19566 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19567 of x_new_fontset.
19568 (w32_load_system_font): Initialize charset as unicode.
19569 font_info.encoding becomes encoding_type.
19570 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19571 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19572 (syms_of_w32fns): Set get_font_repertory_func.
19573
19574 * w32console.c: Include character.h. Use terminal_encode_buffer
19575 from term.c.
19576 (write_glyphs): Use new version of encode_terminal_code. Use
19577 encode_coding_object in place of encode_coding.
19578
19579 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19580 encoding becomes encoding_type.
19581
19582 * term.c (terminal_encode_buffer): Make externally visible.
19583
19584 * makefile.w32-in: Add character.h dependancies.
19585 (character.o, chartab.o): New targets.
19586
195872008-02-01 Kenichi Handa <handa@m17n.org>
19588
19589 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19590 CODING_ID_EOL_TYPE.
19591
195922008-02-01 Andreas Schwab <schwab@suse.de>
19593
19594 * coding.c (produce_chars): Revert last change.
19595
195962008-02-01 Kenichi Handa <handa@m17n.org>
19597
19598 * charset.h (charset_unicode): Extern it.
19599
19600 * charset.c (string_xstring_p): Check by (C >= 0x100).
19601 (find_charsets_in_text): Change format of the arc CHARSETS. New
19602 arg MULTIBYTE.
19603 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19604 change of find_charsets_in_text.
19605 (Fsplit_char): Fix doc. Never return unknown.
19606
19607 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19608
19609 * coding.c (Fdefine_coding_system_alias): Update
19610 Vcoding_system_list.
19611
19612 * fontset.c (load_font_get_repertory): Pay attention to the case
19613 that ENCODING of a font is specified by a char-table.
19614
19615 * xterm.c (x_get_font_repertory): Handle the case that the
19616 encoding of font is other than Unicode.
19617
196182008-02-01 Kenichi Handa <handa@m17n.org>
19619
19620 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19621 if a character is encodable by the terminal coding system. If
19622 not, produces proper number of `?'s. Update
19623 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19624 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19625
196262008-02-01 Kenichi Handa <handa@m17n.org>
19627
19628 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19629 variables.
19630 (encode_terminal_code): Change argument. Encode multiple
19631 characters at once. Store the result of encoding in
19632 terminal_encode_buffer.
19633 (write_glyphs, insert_glyphs): Adjust for the change of
19634 encode_terminal_code.
19635 (term_init): Initialize terminal_encode_buffer and
19636 terminal_encode_buf_size.
19637
19638 * coding.c (consume_chars): If coding->src_object is nil, don't
19639 check annotation.
19640
196412008-02-01 Kenichi Handa <handa@m17n.org>
19642
19643 * character.c (char_string): Use ASCII_CHAR_P instead of
19644 SINGLE_BYTE_CHAR_P.
19645
196462008-02-01 Kenichi Handa <handa@m17n.org>
19647
19648 * xdisp.c (handle_auto_composed_prop): Check if the last
19649 characters of auto-composed region is newly composed with the
19650 following characters.
19651 (handle_composition_prop): Fix checking of point being inside
19652 composition.
19653
196542008-02-01 Kenichi Handa <handa@m17n.org>
19655
19656 * fns.c (concat): Don't change multibyteness of the result by
19657 concatenating an 8-bit character.
19658
19659 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
19660 multibyteness of the result when newelt is an 8-bit character.
19661
196622008-02-01 Dave Love <fx@gnu.org>
19663
19664 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
19665 EMACS_INT.
19666
19667 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
19668
19669 * xfaces.c (face_numeric_value): Declare dim size_t.
19670 (Finternal_lisp_face_equal_p): Remove unused f.
19671
19672 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
19673 (MATRIX_ROW): Remove unused vars.
19674 (draw_glyphs, x_insert_glyphs, fast_find_position)
19675 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
19676 byte/char counts.
19677
19678 * regex.c (regex_compile): Remove unused var.
19679
19680 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19681
19682 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19683 (Faccessible_keymaps, where_is_internal): Remove unused vars.
19684
19685 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
19686
19687 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
19688
19689 * fileio.c (Fwrite_region): Remove unused var.
19690
19691 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
19692 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
19693
19694 * composite.c (Fremove_list_of_text_properties): Declare.
19695
19696 * coding.c (inhibit_pre_post_conversion): Remove (unused).
19697 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
19698 (coding_inherit_eol_type): Remove unused attrs.
19699 (detect_coding): Cast arg of detect_eol.
19700
19701 * charset.c (syms_of_charset): Remove unused var p.
19702 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
19703 byte/char counts.
19704
19705 * casetab.c (set_case_table): Remove unused var.
19706
19707 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
19708 unused vars.
19709
197102008-02-01 Dave Love <fx@gnu.org>
19711
19712 * xterm.c (x_bitmap_mask): Declare.
19713
197142008-02-01 Dave Love <fx@gnu.org>
19715
19716 * xterm.c (x_term_init): Fix type error.
19717
19718 * lisp.h: Add Funibyte_char_to_multibyte.
19719
19720 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
19721 (Fset_coding_system_priority): Doc fix.
19722
19723 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
19724
19725 * indent.c (check_composition): Make start and end EMACS_INT.
19726
19727 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
19728
19729 * xdisp.c (handle_composition_prop, check_point_in_composition):
19730 Make buffer positions EMACS_INT.
19731
19732 * composite.c (find_composition, run_composition_function)
19733 (update_compositions, Ffind_composition_internal): Make buffer
19734 positions EMACS_INT.
19735
19736 * composite.h (find_composition, update_compositions): Make
19737 position args EMACS_INT.
19738
19739 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
19740
19741 * intervals.c (get_property_and_range):
19742 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
19743
19744 * unexalpha.c: Don't include varargs.h.
19745
197462008-02-01 Dave Love <fx@gnu.org>
19747
19748 * coding.h (ENCODE_UTF_8): New.
19749
19750 * Makefile.in (gtkutil.o): Depend on coding.h.
19751
19752 * coding.c (Fset_coding_system_priority): Doc fix.
19753
197542008-02-01 Kenichi Handa <handa@m17n.org>
19755
19756 * fileio.c (Finsert_file_contents): Call setup_coding_system in
19757 the case of auto saving.
19758
197592008-02-01 Andreas Schwab <schwab@suse.de>
19760
19761 * chartab.c (map_char_table, map_char_table_for_charset): Protect
19762 `range' from GC.
19763
197642008-02-01 Kenichi Handa <handa@m17n.org>
19765
19766 * coding.c (decode_coding_sjis): Check bytes more rigidly.
19767
197682008-02-01 Kenichi Handa <handa@m17n.org>
19769
19770 * fileio.c (choose_write_coding_system): Return a decided coding system.
19771 (Fwrite_region): Set Vlast_coding_system_used to the return value
19772 of choose_write_coding_system.
19773
197742008-02-01 Kenichi Handa <handa@m17n.org>
19775
19776 * charset.c (Fset_charset_priority): Pay attention to duplicated
19777 arguments.
19778
19779 * coding.c (QCcategory): New variable.
19780 (syms_of_coding): Defsym it. Set all elements of
19781 Vcoding_category_table and their symbol values.
19782 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
19783 coding-category-XXX, and coding-category-list.
19784 (Fdefine_coding_system_internal): Add category in the plist.
19785
197862008-02-01 Kenichi Handa <handa@m17n.org>
19787
19788 * callproc.c (Fcall_process): Handle carryover correctly.
19789
19790 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
19791 (raw_text_coding_system): Check NILP (coding_system).
19792 (coding_inherit_eol_type): Check NILP (coding_system) and
19793 NILP (parent).
19794 (consume_chars): Fix for the case of raw-text.
19795
19796 * process.c (read_process_output): Handle carryover correctly.
19797
197982008-02-01 Dave Love <fx@gnu.org>
19799
19800 * regex.c (re_search_2): Fix last change.
19801
198022008-02-01 Kenichi Handa <handa@m17n.org>
19803
19804 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
19805 target_multibyte. Even in a unibyte case, return a converted
19806 multibyte char.
19807 (GET_CHAR_AFTER): New macro.
19808 (PATFETCH): Translate via multibyte char.
19809 (HANDLE_UNIBYTE_RANGE): Delete this macro.
19810 (SETUP_MULTIBYTE_RANGE): New macro.
19811 (regex_compile): Setup compiled code so that its multibyteness
19812 matches that of a target. Fix the handling of "[X-YZ]" using
19813 SETUP_MULTIBYTE_RANGE.
19814 (analyse_first) <charset>: For filling fastmap for all multibyte
19815 characters, don't check by BASE_LEADING_CODE_P.
19816 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19817 the same as RE_MULTIBYTE_P (bufp) now.
19818 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19819 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19820 (TRANSLATE_VIA_MULTIBYTE): New macro.
19821 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19822 It is the same as RE_MULTIBYTE_P (bufp) now.
19823 <exactn>: Translate via multibyte.
19824 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19825 translate it.
19826 <charset, charset_not>: Fetch a character by
19827 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19828 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19829 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19830 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19831 by GET_CHAR_AFTER.
19832 (bcmp_translate): Likewise.
19833
19834 * search.c (compile_pattern): Check the member target_multibyte,
19835 not the member multibyte of buf.
19836
19837 * lread.c (read1): While reading a string, set force_singlebyte
19838 and force_multibyte correctly.
19839
19840 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19841 up of unibyte_to_multibyte_table.
19842
198432008-02-01 Kenichi Handa <handa@m17n.org>
19844
19845 * coding.c (setup_coding_system): If coding has
19846 post-read-conversion or pre-write-conversion, set
19847 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19848 respectively.
19849 (decode_coding_gap): Run post-read-conversion if any.
19850
19851 * fileio.c (Finsert_file_contents): Even if we read into a
19852 unibyte buffer, check if we must decode the result or not.
19853
198542008-02-01 Kenichi Handa <handa@m17n.org>
19855
19856 * coding.c (make_conversion_work_buffer): Change the work buffer
19857 name to the same one as that of Emacs 21.
19858
198592008-02-01 Kenichi Handa <handa@m17n.org>
19860
19861 * coding.h (make_conversion_work_buffer): Adjust prototype.
19862 (code_conversion_restore): Don't extern it.
19863
19864 * coding.c (detected_mask): Delete unused variable.
19865 (decode_coding_iso_2022): Pay attention to the byte sequence of
19866 CTEXT extended segment, and retain those bytes as is.
19867 (decode_coding_ccl): Delete unused variable `valids'.
19868 (setup_coding_system): Delete unused variable `category'.
19869 (consume_chars): Delete unused variable `category'. Make it work
19870 for non-multibyte case.
19871 (make_conversion_work_buffer): Change argument.
19872 (saved_coding): Delete unused variable.
19873 (code_conversion_restore): Don't check saved_coding->destination.
19874 (code_conversion_save): New function.
19875 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19876 instead of record_unwind_protect.
19877 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19878 (detect_coding_system): Delete unused variable `mask'.
19879 (Fdefine_coding_system_internal): Delete unused variable id.
19880
19881 * fileio.c (kill_workbuf_unwind): New function.
19882 (Finsert_file_contents): On replacing, call
19883 make_conversion_work_buffer with correct args, and call
19884 record_unwind_protect with the first arg kill_workbuf_unwind.
19885
19886 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19887
198882008-02-01 Kenichi Handa <handa@m17n.org>
19889
19890 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19891 (fontset_add): Fix for the case that TO is less than TO1.
19892 (Ffontset_info): Don't use fallback fontset on checking the
19893 default fontset.
19894 (dump_fontset): New function for debugging.
19895
19896 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19897 coding_type is Qcharset.
19898
198992008-02-01 Kenichi Handa <handa@m17n.org>
19900
19901 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19902 (map_char_table): Don't inherit the value from the parent on
19903 initializing VAL. Adjust for the above change.
19904
199052008-02-01 Kenichi Handa <handa@m17n.org>
19906
19907 * coding.c (Qsignature, Qendian): Delete these variables.
19908 (syms_of_coding): Don't initialize them.
19909 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19910 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19911 detect_info->found.
19912 (decode_coding_utf_16): Don't detect BOM here.
19913 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19914 is NOT utf_16_without_bom.
19915 (setup_coding_system): For a coding system of type utf-16, check
19916 if the attribute :endian is Qbig or not (not nil or not), and set
19917 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19918 (detect_coding): If coding type is utf-16 and BOM detection is
19919 required, detect it.
19920 (Fdefine_coding_system_internal): For a coding system of type
19921 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19922
199232008-02-01 Kenichi Handa <handa@m17n.org>
19924
19925 * coding.c (coding_set_source): Fix for the case that the current
19926 buffer is different from coding->src_object.
19927 (decode_coding_object): Don't use the conversion work buffer if
19928 DST_OBJECT is a buffer.
19929
199302008-02-01 Dave Love <fx@gnu.org>
19931
19932 * lread.c (read_emacs_mule_char) [len==2]: Index
19933 emacs_mule_charset correctly.
19934
199352008-02-01 Dave Love <fx@gnu.org>
19936
19937 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19938 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19939 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19940 treated specially.)
19941 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19942 (detected_mask): Remove Big5 bits.
19943
199442008-02-01 Kenichi Handa <handa@m17n.org>
19945
19946 The following changes are to make the font rescaling facility
19947 compatible with Emacs 21.
19948
19949 * xfaces.c (Vface_font_rescale_alist): Rename from
19950 Vface_resizing_fonts.
19951 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19952 (font_rescale_ratio): Rename from font_resizing_ratio.
19953 (split_font_name): Set font->rescale_ratio.
19954 (better_font_p): Pay attention to font->rescale_ratio.
19955 (build_scalable_font_name): Likewise. Change RESX, and RESY
19956 fields.
19957 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19958
199592008-02-01 Kenichi Handa <handa@m17n.org>
19960
19961 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19962 (Qutf_16_le): Remove these variables.
19963 (syms_of_coding): Don't DEFSYM them.
19964 (decode_coding_utf_16): Fix handling of BOM.
19965 (encode_coding_utf_16): Fix handling of BOM.
19966
199672008-02-01 Kenichi Handa <handa@m17n.org>
19968
19969 * fileio.c (Finsert_file_contents): On replacing, before decoding
19970 the file into the work buffer, set point of the work buffer to the end.
19971
199722008-02-01 Dave Love <fx@gnu.org>
19973
19974 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19975
199762008-02-01 Dave Love <fx@gnu.org>
19977
19978 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19979 and fix C types.
19980
199812008-02-01 Kenichi Handa <handa@m17n.org>
19982
19983 * xdisp.c (SKIP_GLYPHS): New macro.
19984 (set_cursor_from_row): Pay attention to string display properties.
19985
19986 * category.c (copy_category_entry): Fix for the case that RANGE
19987 is an integer.
19988
19989 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19990
19991 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19992
199932008-02-01 Kenichi Handa <handa@m17n.org>
19994
19995 * charset.c (Fcharset_id_internal): New function.
19996 (syms_of_charset): Defsubr it.
19997
19998 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19999 with the last arg charset_list acquired from coding.
20000 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20001 the attribute coding_attr_ccl_valids.
20002
20003 * coding.h (enum define_coding_ccl_arg_index): Set the first
20004 member coding_arg_ccl_decoder to coding_arg_max.
20005
20006 * ccl.h (ccl_driver): Adjust prototype.
20007
20008 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20009 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20010 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20011 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20012 last arg Qnil.
20013
200142008-02-01 Kenichi Handa <handa@m17n.org>
20015
20016 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20017 call encode_char.
20018
20019 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20020
200212008-02-01 Dave Love <fx@gnu.org>
20022
20023 * composite.c (syms_of_composite): Make composition_hash_table weak.
20024
200252008-02-01 Kenichi Handa <handa@m17n.org>
20026
20027 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20028 (font_name_registry): Don't extern them.
20029 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20030
20031 * fontset.h (Qfontset): Don't extern it.
20032 (new_fontset_from_font_name): Extern it.
20033
20034 * fontset.c: Give 8 extra slots to fontset objects.
20035 (Qfontset_info): New variable.
20036 (syms_of_fontset): Defsym it.
20037 (FONTSET_FALLBACK): New macro.
20038 (fontset_face): Try also the default fontset.
20039 (make_fontset): Realize a fallback fontset from the default fontset.
20040 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20041 using split_font_name_into_vector and build_font_name_from_vector.
20042 (Fset_fontset_font): Access the elements of font_spec by enum
20043 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20044 name by using split_font_name_into_vector.
20045 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20046 generate a proper font name from the fontset name. Update
20047 Vfontset_alias_alist.
20048 (n_auto_fontsets): New variable.
20049 (new_fontset_from_font_name): New function.
20050 (Ffont_info): Store the information about fonts generated from the
20051 default fontset in the first extra slot of the returned char-table.
20052
20053 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20054 (font_name_registry): Delete function.
20055 (split_font_name_into_vector): New function.
20056 (build_font_name_from_vector): New function.
20057 (font_list): The argument REGISTRY is now a list of registry names.
20058 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20059 specifies an explicit font name, return the name as is. Make a
20060 list of registy names.
20061
20062 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20063 of x_new_fontset.
20064 (Fx_create_frame): Don't call x_new_fontset here. Just use
20065 x_list_fonts to check the existence of fonts.
20066
20067 * xterm.h (x_new_fontset): Adjust prototype.
20068
20069 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20070 string. Use new_fontset_from_font_name to create a fontset from a
20071 font name.
20072
200732008-02-01 Kenichi Handa <handa@m17n.org>
20074
20075 * syntax.c (Vfind_word_boundary_function_table): New name for
20076 Vnext_word_boundary_function_table.
20077 (find-word-boundary-function-table): New name for
20078 next-word-boundary-function-table.
20079
200802008-02-01 Dave Love <fx@gnu.org>
20081
20082 * Makefile.in: Fix some dependencies.
20083
20084 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20085 set it to nil before returning.
20086
20087 * composite.c (update_compositions): Fix type error.
20088
20089 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20090
200912008-02-01 Kenichi Handa <handa@m17n.org>
20092
20093 * xterm.c (x_new_font): Optimize for the case that the font is
20094 already set for the frame.
20095
200962008-02-01 Kenichi Handa <handa@m17n.org>
20097
20098 * chartab.c (char_table_ascii): Check if the char table contents
20099 is sub-char-table or not.
20100 (char_table_set, char_table_set_range): Fix argument to
20101 char_table_ascii.
20102
20103 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20104 (detect_coding_utf_8, detect_coding_utf_16)
20105 (detect_coding_emacs_mule, detect_coding_iso_2022)
20106 (detect_coding_sjis, detect_coding_big5)
20107 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20108 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20109 sequence is valid in this coding system. Change callers.
20110 (MAX_ANNOTATION_LENGTH): New macro.
20111 (ADD_ANNOTATION_DATA): New macro.
20112 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20113 ADD_ANNOTATION_DATA. Change the format of annotation data.
20114 (ADD_CHARSET_DATA): New macro.
20115 (emacs_mule_char): New argument ID. Change callers.
20116 (decode_coding_emacs_mule, decode_coding_iso_2022)
20117 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20118 Produce charset annotation data in coding->charbuf.
20119 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20120 to charset annotation data in coding->charbuf.
20121 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20122 coding->common_flags if the coding system is iso-2022 based and
20123 uses designation.
20124 (produce_composition): Adjust for the new annotation data format.
20125 (produce_charset): New function.
20126 (produce_annotation): Handle charset annotation.
20127 (handle_composition_annotation, handle_charset_annotation): New
20128 functions.
20129 (consume_chars): Handle charset annotation. Utilize the above two
20130 functions.
20131 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20132 buffer, get the deleted text as a string and set
20133 coding->src_object to that string.
20134 (detect_coding, detect_coding_system): Use the new struct
20135 coding_detection_info.
20136
20137 * coding.h (struct coding_detection_info): New structure.
20138 (struct coding_system): Adjust prototype of the member `detector'.
20139 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20140
201412008-02-01 Kenichi Handa <handa@m17n.org>
20142
20143 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20144
201452008-02-01 Dave Love <fx@gnu.org>
20146
20147 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20148 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20149 to new local and nullify apropos_accumulate before returning.
20150 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20151
201522008-02-01 Kenichi Handa <handa@m17n.org>
20153
20154 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20155 correctly.
e3eea1fc 20156
aac0c6e3
MR
201572008-02-01 Dave Love <fx@gnu.org>
20158
20159 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20160
201612008-02-01 Kenichi Handa <handa@m17n.org>
20162
20163 The following changes are to make character composition happen
20164 automatically on displaying.
20165
20166 * Makefile.in (lisp, shortlisp): Add composite.elc.
20167
20168 * composite.h (Qauto_composed, Vauto_composition_function)
20169 (Qauto_composition_function): Extern them.
20170
20171 * composite.c (Vcomposition_function_table)
20172 (Qcomposition_function_table): Delete variables.
20173 (Qauto_composed, Vauto_composition_function)
20174 (Qauto_composition_function): New variables.
20175 (run_composition_function): Don't call
20176 compose-chars-after-function.
20177 (update_compositions): Clear `auto-composed' text property.
20178 (compose_chars_in_text): Delete this function.
20179 (syms_of_composite): Staticpro Qauto_composed and
20180 Qauto_composition_function. Declare Vauto_composition_function as
20181 a Lisp variable.
20182
20183 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20184
20185 * xdisp.c (it_props): Add an entry for Qauto_composed.
20186 (handle_auto_composed_prop): New function.
20187
20188 * xselect.c (selection_data_to_lisp_data): Don't call
20189 compose_chars_in_text.
20190
201912008-02-01 Dave Love <fx@gnu.org>
20192
20193 * keyboard.c (read_char): Modify checking around use of
20194 Vkeyboard_translate_table.
20195
20196 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20197 and fix C types.
20198
201992008-02-01 Kenichi Handa <handa@m17n.org>
20200
20201 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20202 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20203 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20204 the case that the last byte is '\r' correctly.
20205 (decode_coding): Flush out the unprocessed data correctly.
20206 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20207
202082008-02-01 Dave Love <fx@gnu.org>
20209
20210 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20211 Add XK_ISO... case.
20212 (xaw_scroll_callback): Revert last change.
20213
202142008-02-01 Kenichi Handa <handa@m17n.org>
20215
20216 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20217
202182008-02-01 Kenichi Handa <handa@m17n.org>
20219
20220 * xfaces.c (Vface_resizing_fonts): New variable.
20221 (struct font_name): New member `resizing_ratio'.
20222 (font_resizing_ratio): New function.
20223 (split_font_name): Set font->resizing_ratio.
20224 (better_font_p): Pay attention to font->resizing_ratio.
20225 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20226 RESX, and RESY fields.
20227 (try_alternative_families): Try scalable fonts if
20228 Vscalable_fonts_allowed is not Qt.
20229 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20230
202312008-02-01 Dave Love <fx@gnu.org>
20232
20233 * xterm.c (xaw_scroll_callback): Cast correctly.
20234
202352008-02-01 Dave Love <fx@gnu.org>
20236
20237 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20238 (lispy_kana_keys): Comment out.
20239 (make_lispy_event) [XK_kana_A]: Comment out.
20240
20241 * xterm.c (xaw_scroll_callback): Cast call_data.
20242 (XTread_socket): Deal with ASCII keysyms.
20243 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20244
202452008-02-01 Dave Love <fx@gnu.org>
20246
20247 * xterm.c (Vx_keysym_table): New.
20248 (syms_of_xterm): Initialize it.
20249 (XTread_socket): Use it.
20250 From head: Eliminate incorrect optimization that tried to avoid
20251 decoding the output of X*LookupString.
20252 (x_get_font_repertory): Delete charset declaration.
20253
202542008-02-01 Kenichi Handa <handa@m17n.org>
20255
20256 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20257 return 0.
20258 (Fdefine_coding_system_internal): Setup
20259 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20260
202612008-02-01 Dave Love <fx@gnu.org>
20262
20263 * coding.c (Fcheck_coding_system): Doc fix.
20264
20265 * editfns.c (Finsert_byte): Return a proper value.
20266
202672008-02-01 Kenichi Handa <handa@m17n.org>
20268
20269 * coding.c (decode_coding): Fix args to translate_chars. Pay
20270 attention to Vstandard_translation_table_for_decode.
20271 (encode_coding): Fix args to translate_chars. Pay attention to
20272 Vstandard_translation_table_for_encode.
20273
20274 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20275 SINGLE_BYTE_CHAR_P.
20276
20277 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20278 not by SINGLE_BYTE_CHAR_P.
20279
20280 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20281 SINGLE_BYTE_CHAR_P.
20282
20283 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20284 SINGLE_BYTE_CHAR_P.
20285
20286 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20287 by SINGLE_BYTE_CHAR_P.
20288
20289 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20290 SINGLE_BYTE_CHAR_P.
20291
202922008-02-01 Dave Love <fx@gnu.org>
20293
20294 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20295
202962008-02-01 Dave Love <fx@gnu.org>
20297
20298 * fns.c (Flanginfo): Fix typo.
20299
20300 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20301
203022008-02-01 Kenichi Handa <handa@m17n.org>
20303
20304 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20305 (detect_coding_emacs_mule, detect_coding_iso_2022)
20306 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20307 incomplete byte sequence. Don't update *mask when correctly detected.
20308 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20309 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20310 (detect_coding, detect_coding_system): Adjust for the changes above.
20311
203122008-02-01 Kenichi Handa <handa@m17n.org>
20313
20314 * character.c (char_string): Rename from
20315 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20316 (string_char): Rename from string_char.
20317
20318 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20319 if C is greater than MAX_3_BYTE_CHAR.
20320 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20321 string_char instead of string_char_with_unification.
20322
203232008-02-01 Dave Love <fx@gnu.org>
20324
20325 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20326
203272008-02-01 Kenichi Handa <handa@m17n.org>
20328
20329 * keymap.c (push_key_description): Pay attention to force_multibyte.
20330
20331 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20332
203332008-02-01 Dave Love <fx@gnu.org>
20334
20335 * charset.c (define_charset_internal): Rename `supprementary'.
20336
20337 * Makefile.in (lisp, shortlisp): Remove latin-N.
20338
203392008-02-01 Dave Love <fx@gnu.org>
20340
20341 * xfns.c (x_window, x_window): Use use_xim.
20342
20343 * xterm.c (use_xim): Initialize.
20344 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20345 (x_term_init): Maybe set use_xim.
20346
20347 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20348
203492008-02-01 Kenichi Handa <handa@m17n.org>
20350
20351 * search.c (search_buffer): Fix case-fold-search of multibyte
20352 characters.
20353 (boyer_moore): Rename the last argument to char_high_bits.
20354
203552008-02-01 Kenichi Handa <handa@m17n.org>
20356
20357 * xdisp.c (display_string): Fix for the case of zero width glyph.
20358
20359 * xfns.c (x_set_font): Change the error message of the case that
20360 x_new_fontset returns Qt.
20361
20362 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20363 (Finternal_set_lisp_face_attribute): Use signal_error for the
20364 error of invalid fontset.
20365
20366 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20367 fontset, return Qt.
20368
203692008-02-01 Dave Love <fx@gnu.org>
20370
20371 * unexelf.c (unexec): Make .got handling not SGI-specific.
20372
20373 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20374
20375 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20376
20377 * keyboard.c (read_key_sequence): Fix type error.
20378
20379 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20380 type error.
20381
20382 * fontset.c (fontset_add): Return Lisp_Object.
20383
203842008-02-01 Dave Love <fx@gnu.org>
20385
20386 * charset.h (charset_ordered_list_tick): Declare extern.
20387
203882008-02-01 Kenichi Handa <handa@m17n.org>
20389
20390 The following changes (and some of 2008-02-01 changes of mine) are
20391 for handling syntax, category, and case conversion for unibyte
20392 characters by converting them to multibyte on the fly. With these
20393 changes, we don't have to setup syntax and case tables for unibyte
20394 characters in each language environment.
20395
20396 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20397 multibyte if necessary.
20398
20399 * bytecode.c (Fbyte_code): Likewise.
20400
20401 * character.h (LEADING_CODE_LATIN_1_MIN)
20402 (LEADING_CODE_LATIN_1_MAX): New macros.
20403 (unibyte_to_multibyte_table): Extern it.
20404 (unibyte_char_to_multibyte): New macro.
20405 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20406 (CHAR_LEADING_CODE): New macro.
20407 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20408
20409 * character.c (unibyte_to_multibyte_table): New variable.
20410 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20411 (multibyte_char_to_unibyte): If C is an eight-bit character,
20412 convert it to the corresponding byte value.
20413
20414 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20415 not 1, signals an error. Update the elements of
20416 unibyte_to_multibyte_table.
20417 (init_charset_once): Initialize unibyte_to_multibyte_table.
20418 (syms_of_charset): Define the charset `iso-8859-1'.
20419
20420 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20421 as is without converting it to unibyte. In a unibyte buffer,
20422 convert C to multibyte before checking the syntax.
20423
20424 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20425
20426 * minibuf.c (Fminibuffer_complete_word): Use the macro
20427 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20428
20429 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20430
20431 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20432 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20433 that is zero, convert an eight-bit char to multibyte.
20434 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20435 non-emacs case.
20436 (PATFETCH): Convert an eight-bit char to multibyte.
20437 (HANDLE_UNIBYTE_RANGE): New macro.
20438 (regex_compile): Setup the compiled pattern for multibyte chars
20439 even if the given regex string is unibyte. Use PATFETCH_RAW
20440 instead of PATFETCH in many places. To handle `charset'
20441 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20442 only for ASCII chars.
20443 (analyse_first) <exactn>: Simplify because the compiled pattern
20444 is multibyte.
20445 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20446 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20447 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20448 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20449 multibyte always 1.
20450 (re_search_2): In emacs, set the locale variable multibyte to 1,
20451 otherwise to 0. New local variable target_multibyte. Check it
20452 to decide the multibyteness of STR1 and STR2. If
20453 target_multibyte is zero, convert unibyte chars to multibyte
20454 before translating and checking fastmap.
20455 (TARGET_CHAR_AND_LENGTH): New macro.
20456 (re_match_2_internal): In emacs, set the locale variable multibyte
20457 to 1, otherwise to 0. New local variable target_multibyte. Check
20458 it to decide the multibyteness of STR1 and STR2. Use
20459 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20460 <charset, charset_not>: If multibyte is nonzero, check fastmap
20461 only for ASCII chars. Call bcmp_translate with
20462 target_multibyte, not with multibyte.
20463 <begline>: Declare the local variable C as `unsigned'.
20464 (bcmp_translate): Change the last arg name to target_multibyte.
20465
20466 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20467 the regexp pattern and the matching target. Set cp->buf.multibyte
20468 to the multibyteness of the regexp pattern. Set
20469 cp->but.target_multibyte to the multibyteness of the matching target.
20470 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20471 FETCH_STRING_CHAR_ADVANCE.
20472 (Freplace_match): Convert unibyte chars to multibyte.
20473
20474 * syntax.c (char_quoted, back_comment, scan_words)
20475 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20476 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20477 unibyte chars to multibyte.
20478 (skip_chars): Delete the arg syntaxp, and move the code for
20479 handling syntaxes to skip_syntaxes. Change callers.
20480 Fix the case that the multibyteness of STRING and the current
20481 buffer doesn't match.
20482 (skip_syntaxes): New function.
20483 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20484 SINGLE_BYTE_CHAR_P.
20485
204862008-02-01 Kenichi Handa <handa@m17n.org>
20487
20488 * xfaces.c (QCfontset): New variable.
20489 (LFACE_FONTSET): New macro.
20490 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20491 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20492 (Finternal_set_lisp_face_attribute)
20493 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20494 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20495 check also LFACE_FONTSET_INDEX.
20496 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20497 attrs[LFACE_FONT_INDEX].
20498 (syms_of_xfaces): Intern and staticpro QCfontset.
20499
20500 * dispextern.h (enum lface_attribute_index): New member
20501 LFACE_FONTSET_INDEX.
20502
20503 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20504
205052008-02-01 Kenichi Handa <handa@m17n.org>
20506
20507 * coding.c (coding_set_destination): Fix coding->destination for
20508 the case converting a region.
20509 (encode_coding_utf_8): Encode eight-bit chars as single byte.
20510 (encode_coding_object): Fix coding->dst_pos and
20511 coding->dst_pos_byte for the case converting a region.
20512
20513 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
20514
20515 * character.h (BYTE8_STRING): New macro.
20516
20517 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
20518
205192008-02-01 Kenichi Handa <handa@m17n.org>
20520
20521 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
20522 characters by octal form.
20523
20524 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20525
20526 * buffer.h (_fetch_multibyte_char_len): Delete extern.
20527 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
20528 _fetch_multibyte_char_len.
20529 (FETCH_CHAR_AS_MULTIBYTE): New macro.
20530
20531 * casetab.c (set_canon, set_identity, shuffle): Simplify.
20532
20533 * casefiddle.c (casify_object): Simplify. Handle the case that
20534 the case conversion change the byte length.
20535 (casify_region): Likewise.
20536
20537 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
20538
20539 * character.c (_fetch_multibyte_char_len): Delete this variable.
20540 (syms_of_character): Setup Vprintable_chars.
20541
20542 * editfns.c (Fchar_equal): Fix for the unibyte case.
20543 (Finsert_byte): New function.
20544 (syms_of_editfns): Defsubr it.
20545
20546 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
20547 of direct code 0x3ffff.
20548
20549 * search.c (Freplace_match): Fix for the unibyte case.
20550
205512008-02-01 Kenichi Handa <handa@m17n.org>
20552
20553 * lread.c (safe_to_load_p): Fix the logic.
20554
20555 * syntax.c (scan_words): Don't treat characters belonging to
20556 different scripts as constituting a word.
20557
20558 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20559
20560 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20561
20562 * emacs.c (main): In the case of --unibyte, instead of aborting on
20563 finding non-empty buffer, make it unibyte.
20564
205652008-02-01 Kenichi Handa <handa@m17n.org>
20566
20567 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20568 to create a fontset.
20569
205702008-02-01 Dave Love <fx@gnu.org>
20571
20572 * character.c (Funibyte_char_to_multibyte): Doc fix.
20573
20574 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20575
205762008-02-01 Kenichi Handa <handa@m17n.org>
20577
20578 * fontset.c (fontset_add): Make the type `int'.
20579 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20580
20581 * character.c (unibyte_char_to_multibyte)
20582 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20583 charset_unibyte, not charset_primary.
20584
20585 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20586
20587 * charset.c (charset_unibyte): Rename from charset_primary.
20588 (Funibyte_charset): Rename from Fprimary_charset.
20589 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20590 (syms_of_charset): Adjust for the above changes.
20591
20592 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20593 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20594 it->multibyte_p is zero.
20595
20596 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20597 Delete extern.
20598
205992008-02-01 Kenichi Handa <handa@m17n.org>
20600
20601 * coding.c (Fdefine_coding_system_internal): Fix category setting
20602 for a coding system of type iso-2022.
20603
206042008-02-01 Kenichi Handa <handa@m17n.org>
20605
20606 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20607
206082008-02-01 Kenichi Handa <handa@m17n.org>
20609
20610 * syntax.c (Vnext_word_boundary_function_table): New variable.
20611 (next-word-boundary-function-table): Declare it as a Lisp variable
20612 in syms_of_syntax.
20613 (scan_words): Call functions in Vnext_word_boundary_function_table
20614 if any.
20615
20616 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20617
20618 * fontset.c (fs_load_font): If fontp->charset is not negative,
20619 return fontp without setting its members.
20620
206212008-02-01 Dave Love <fx@gnu.org>
20622
20623 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20624
20625 * m/sparc.h (HAVE_ALLOCA): Delete.
20626
20627 * s/irix6-5.h: Don't include strings.h.
20628 (bcopy, bzero, bcmp): Don't undef.
20629
20630 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20631
20632 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20633 (TIOCSIGSEND): Don't test IRIX6.
20634 (bcopy, bzero, bcmp): Define conditionally.
20635
206362008-02-01 Kenichi Handa <handa@m17n.org>
20637
20638 * buffer.c (Qas, Qmake, Qto): New variables.
20639 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20640 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20641
20642 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20643 we are inserting a process output into a multibyte buffer.
20644
20645 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20646 multibyte_char_to_unibyte.
20647
20648 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20649 by the primary charset, make it eight-bit char.
20650 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20651
20652 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
20653 (charset_8_bit__control, charset_8_bit_graphic)
20654 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
20655 (define_charset_internal): New function.
20656 (syms_of_charset): Call define_charset_internal for pre-defined
20657 charsets.
20658
20659 * charset.h (charset_8_bit): Extern it.
20660
20661 * coding.c (make_conversion_work_buffer): Adjust for the change
20662 of Fset_buffer_multibyte.
20663 (encode_coding_raw_text): Increment p0 in the loop.
20664
20665 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
20666
20667 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
20668 for the change of Fset_buffer_multibyte.
20669
20670 * fns.c (Fstring_to_multibyte): New function.
20671 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
20672
206732008-02-01 Dave Love <fx@gnu.org>
20674
20675 * xfns.c (x_put_x_image): Declare args.
20676
20677 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
20678 (try_font_list): Declare an arg.
20679
20680 * xdisp.c (message2_nolog, set_message): Declare an arg.
20681
20682 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
20683
20684 * syntax.c (scan_sexps_forward): Declare an arg.
20685
20686 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20687 Declare an arg.
20688
20689 * lisp.h (Fnew_fontset): Declare.
20690
20691 * keymap.c (push_key_description): Call CHARACTERP correctly.
20692
20693 * fontset.c (fontset_add): Declare args. Call make_number correctly.
20694 (face_for_char): Delete unused vars.
20695 (Fset_fontset_font): Doc fix. Delete unused vars.
20696
20697 * doc.c (Fsubstitute_command_keys): Delete unused vars.
20698
20699 * composite.c (update_compositions): Declare arg.
20700
20701 * cm.c (calccost, cmgoto): Declare args.
20702
20703 * charset.c: Remove `emacs' conditional. Doc fixes.
20704 (map_char_table_for_charset): Declare.
20705
20706 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
20707
20708 * ccl.c: Remove `emacs' conditional.
20709
207102008-02-01 Kenichi Handa <handa@m17n.org>
20711
20712 The following changes are to allow specifying multiple font
20713 patterns for a character range (specified by script or charset).
20714
20715 * Makefile.in (abbrev.o): Depend on syntax.h.
20716 (xfaces.o): Depend on charset.h.
20717
20718 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
20719 SINGLE_BYTE_CHAR_P.
20720
20721 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
20722
20723 * character.h (Vchar_script_table): Extern it.
20724
20725 * character.c (Vscript_alist): Delete.
20726 (Vchar_script_table, Qchar_script_table): New variable.
20727 (syms_of_character): Declare Vchar_script_table as a lisp variable
20728 and initialize it.
20729
20730 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
20731 have property char-table-extra-slots, make no extra slot.
20732
20733 * dispextern.h (struct face): Delete member `charset'.
20734 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
20735 SINGLE_BYTE_CHAR_P.
20736 (choose_face_font, lookup_non_ascii_face, font_name_registry):
20737 Add prototypes.
20738 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
20739 (generate_ascii_font_name): Rename from generate_ascii_font.
20740
20741 * fontset.h (get_font_repertory_func): New prototype.
20742 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
20743 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
20744
20745 * fontset.c (Qprepend, Qappend): New variables.
20746 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
20747 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
20748 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
20749 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
20750 (fontset_ref_and_range, fontset_add, reorder_font_vector)
20751 (load_font_get_repertory): New functions.
20752 (fontset_set): Delete.
20753 (fontset_face): New arg FACE. Return face ID, not face.
20754 Complete re-write to handle new fontset structure. Change caller.
20755 (free_face_fontset): Use ASET istead of AREF (X) = Y.
20756 (face_for_char): Don't call lookup_face.
20757 (make_fontset_for_ascii_face): New arg FACE.
20758 (fs_load_font): New arg CHARSET_ID. Don't check
20759 Vfont_encoding_alist here.
20760 (find_font_encoding): New function.
20761 (list_fontsets): Use STRINGP, not ! NILP.
20762 (accumulate_script_ranges): New function.
20763 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
20764 re-written to handle new fontset structure.
20765 (Ffontset_font): Return a copy of element.
20766 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
20767 docstring of font-encoding-alist.
20768
20769 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
20770 (Fset_fotset_font): Fix arguments to 5.
20771
20772 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
20773
20774 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
20775 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20776 (highlight_trailing_whitespace): Adjust for the change of
20777 lookup_named_face.
20778
20779 * xfaces.c: Include charset.h.
20780 (load_face_font): Delete argument C. Change caller.
20781 (generate_ascii_font_name): Rename from generate_ascii_font.
20782 (font_name_registry): New function.
20783 (cache_face): Store ascii faces before non-ascii faces in buckets.
20784 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
20785 Lookup only ascii faces.
20786 (lookup_non_ascii_face): New function.
20787 (lookup_named_face): Delete argument C. Change caller.
20788 (lookup_derived_face): Delete argument C. Change caller.
20789 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
20790 a string, just call font_list with it.
20791 (choose_face_font): Delete arguments FACE and C. New arg
20792 FONT_SPEC. Change caller.
20793 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
20794 Change caller.
20795 (realize_non_ascii_face): New function.
20796 (realize_x_face): Call load_face_font here.
20797 (realize_tty_face): Delete argument C. Change caller.
20798 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
20799 get a face ID.
20800 (dump_realized_face): Don't print charset of FACE.
20801
20802 * xfns.c (x_set_font): Always call x_new_fontset and
20803 store_frame_parameter.
20804 (Fx_create_frame): Call x_new_fontset, not x_new_font.
20805 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
20806
20807 * xterm.h (x_get_font_repertory): Extern it.
20808
20809 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20810 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20811 it->multibyte_p is zero.
20812 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20813 (x_new_fontset): If FONTSETNAME doesn't match any existing
20814 fontsets, create a new one.
20815 (x_get_font_repertory): New function.
20816
208172008-02-01 Kenichi Handa <handa@m17n.org>
20818
20819 * coding.c (Ffind_coding_systems_region_internal): Detect an
20820 ASCII only string correctly.
20821
20822 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20823 version is 0.
20824
208252008-02-01 Kenichi Handa <handa@m17n.org>
20826
20827 * lread.c: Include "coding.h".
20828 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20829 (load_each_byte, unread_char): New variables.
20830 (readchar_backlog): Delete.
20831 (readchar): Return a character unless load_each_byte is nonzero.
20832 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20833 cons. If unread_char is not -1, simply return it.
20834 (unreadchar): Handle the case that readcharfun is
20835 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20836 (read_multibyte): Delete.
20837 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20838 (read_emacs_mule_char): New functions.
20839 (Fload): Even if the file doesn't have the extension ".elc", if
20840 safe_to_load_p returns a positive version number, assume that the
20841 file contains bytecompiled code. If the version is less than 22,
20842 load the file while decoding multibyte sequences by emacs-mule.
20843 (readevalloop): Don't use readchar_backlog.
20844 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20845 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20846 (read_escape): Delete the arg BYTEREP.
20847 (read1): Set load_each_byte to 1 temporarily while handling
20848 #@NUMBER. Don't call read_multibyte.
20849 (read_vector): Call Fread with a cons. If readcharfun is
20850 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20851 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20852 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20853 and Qload_force_doc_strings.
20854
208552008-02-01 Kenichi Handa <handa@m17n.org>
20856
20857 * xdisp.c (face_before_or_after_it_pos): Call
20858 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20859
208602008-02-01 Kenichi Handa <handa@m17n.org>
20861
20862 * character.h (TRAILING_CODE_P): New macro.
20863 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20864 (string_char_with_unification): Fix prototype.
20865 (Vscript_alist): Extern it.
20866
20867 * character.c (Vscript_alist): New variable.
20868 (string_char_with_unification, str_as_unibyte)
20869 (string_escape_byte8): Add `const' to local variables.
20870 (syms_of_character): Declare script-alist as a Lisp variable.
20871
20872 * charset.h (Vcharset_ordered_list): Extern it.
20873 (charset_ordered_list_tick): Extern it.
20874 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20875 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20876 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20877 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20878 (Funify_charset): Adjust for the change of Funify_charset.
20879
20880 * charset.c (charset_ordered_list_tick): New variable.
20881 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20882 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20883 deunify intead of unify a charset.
20884 (string_xstring_p): Add `const' to local variables.
20885 (find_charsets_in_text): Add `const' to arguments and local variables.
20886 (encode_char): Adjust for the change of Funify_charset. Fix
20887 detecting of invalid code.
20888 (Fset_charset_priority): Increment charset_ordered_list_tick.
20889 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20890 and TO_CODE.
20891
20892 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20893 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20894 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20895 (decode_coding_ccl, consume_chars)
20896 (Ffind_coding_systems_region_internal)
20897 (Fcheck_coding_systems_region): Add `const' to local variables.
20898
20899 * print.c (print_object): Use octal form for printing the
20900 contents of a bool vector.
20901
209022008-02-01 Dave Love <fx@gnu.org>
20903
20904 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20905 <version == 20>: Refuse to load.
20906
209072008-02-01 Dave Love <fx@gnu.org>
20908
20909 * fns.c: Move coding.h.
20910 (Qcodeset, Qdays, Qmonths): New.
20911 (concat): Use CHARACTERP instead of INTEGERP.
20912 (Flocale_codeset): Delete.
20913 (Flanginfo): New function.
20914 (syms_of_fns): Change accordingly.
20915
20916 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20917
209182008-02-01 Dave Love <fx@gnu.org>
20919
20920 * casetab.c (init_casetab_once, init_casetab_once): Fix
20921 CHAR_TABLE_SET call.
20922
20923 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20924
20925 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20926
20927 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20928 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20929 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20930
20931 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20932
20933 * coding.c (ENCODE_DESIGNATION, decode_eol)
20934 (make_conversion_work_buffer, code_conversion_restore)
20935 (Fdefine_coding_system_internal): Convert Lisp types.
20936 (code_conversion_restore): Use EQ, not ==.
20937 (Fencode_coding_string): Fix code_convert_string call.
20938
20939 * coding.h (code_convert_region): Fix prototype.
20940
20941 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20942
20943 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20944 (Ffontset_info): Convert Lisp types.
20945
20946 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20947
20948 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20949
20950 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20951
20952 * chartab.c: Include "...h", not <...h> in some cases.
20953
20954 * callproc.c (Fcall_process): Remove unused variables.
20955
209562008-02-01 Dave Love <fx@gnu.org>
20957
20958 * coding.c (Fset_coding_system_priority): Allow null arg list.
20959
209602008-02-01 Dave Love <fx@gnu.org>
20961
20962 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20963 (Fself_insert_and_exit): Use CHARACTERP.
20964
20965 * callproc.c (Fcall_process): Remove unused vars.
20966
20967 * xterm.c (XTread_socket): Add extra dead keysyms.
20968
20969 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20970
20971 * dispextern.h: Remove prototypes for redraw_frame,
20972 redraw_garbaged_frames.
20973
20974 * cmds.c (Fself_insert_command): Use CHARACTERP.
20975
20976 * chartab.c (make_sub_char_table): Remove unused var.
20977 (Fset_char_table_default, Fmap_char_table): Doc fix.
20978
20979 * keymap.c (access_keymap): Remove generic char code.
20980 (push_key_description): Use CHARACTERP.
20981
209822008-02-01 Dave Love <fx@gnu.org>
20983
20984 * charset.c: Doc fixes.
20985 (Funify_charset): Extra checking.
20986
209872008-02-01 Dave Love <fx@gnu.org>
20988
20989 * lread.c: Remove some unused variables.
20990 (safe_to_load_p): If safe, return the magic number version byte.
20991 (Fload): Maybe use load-with-code-conversion.
20992
209932008-02-01 Kenichi Handa <handa@m17n.org>
20994
20995 * category.c (Fmodify_category_entry): Don't modify the contents
20996 of category_set for characters out of the range. Avoid
20997 unnecessary modification.
20998
20999 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21000 Vchar_unify_table. The default value of the table is now nil.
21001
21002 * character.c (syms_of_character): Setup Vchar_width_table for
21003 eight-bit-control and raw-byte chars.
21004
21005 * charset.h (enum define_charset_arg_index): Delete
21006 charset_arg_parents and add charset_arg_subset and
21007 charset_arg_superset.
21008 (enum charset_attr_index): Delete charset_parents and add
21009 charset_subset and charset_superset.
21010 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21011 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21012 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21013 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21014 (CHARSET_SUPERSET): New macros.
21015 (charset_work): Extern it.
21016 (ENCODE_CHAR): Use charset_work.
21017 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21018 (map_charset_chars): Extern it.
21019
21020 * charset.c (load_charset_map): Set the default value of encoder
21021 and deunifier char-tables to nil.
21022 (map_charset_chars): Change argument. Change callers. Use
21023 map_char_table_for_charset instead of map_char_table.
21024 (Fmap_charset_chars): New optional args from_code and to_code.
21025 (Fdefine_charset_internal): Adjust for the change of
21026 `define-charset' (:parents -> :subset or :superset).
21027 (charset_work): New variable.
21028 (encode_char, syms_of_charset): Adjust for the change of
21029 Fdefine_charset_internal.
21030 (Ffind_charset_string): Setup the vector `charsets' correctly.
21031
21032 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21033 the previous change.
21034 (char_table_ref_and_range): Adjust for the above change.
21035 (map_sub_char_table_for_charset): New function.
21036 (map_char_table_for_charset): New function.
21037
21038 * keymap.c (describe_vector): Handle a char-table directly here.
21039 (describe_char_table): Delete.
21040
21041 * lisp.h (map_charset_chars): Delete.
21042
210432008-02-01 Dave Love <fx@gnu.org>
21044
21045 * fns.c (count_combining): Comment out (unused).
21046 (Flocale_codeset): New.
21047 (syms_of_fns): Defsubr it.
21048
21049 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21050 (size_t): Remove.
21051
210522008-02-01 Dave Love <fx@gnu.org>
21053
21054 * Makefile.in (chartab.o): Depend on charset.h.
21055
210562008-02-01 Kenichi Handa <handa@m17n.org>
21057
21058 * character.c (syms_of_character): Set the default value of
21059 Vprintable_chars to Qnil.
21060
210612008-02-01 Dave Love <fx@gnu.org>
21062
21063 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21064
210652008-02-01 Kenichi Handa <handa@m17n.org>
21066
21067 * charset.c (load_charset_map): Handle the case that from < to
21068 correctly.
21069
21070 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21071 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21072 Pay attention to raw-8-bit chars.
21073
210742008-02-01 Kenichi Handa <handa@m17n.org>
21075
21076 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21077 It is not bytecompiled now.
21078
21079 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21080 (charset_jisx0208): New variables.
21081 (Fdefine_charset_internal): Setup them if appropriate.
21082 (init_charset_once): Initialize them to -1.
21083
21084 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21085 (charset_jisx0208): Extern them.
21086
21087 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21088 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21089 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21090 (setup_iso_safe_charsets): Fix arguments to Fassq.
21091 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21092 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21093 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21094 (encode_coding_iso_2022): Change the 1st arg to
21095 ENCODE_ISO_CHARACTER to a variable.
21096
210972008-02-01 Kenichi Handa <handa@m17n.org>
21098
21099 * charset.h (enum define_charset_arg_index): New enums
21100 charset_arg_min_code and charset_arg_max_code.
21101 (struct charset): New member char_index_offset.
21102
21103 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21104 Take charset->char_index_offset into account.
21105 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21106 args[charset_arg_max_code]. Setup charset.char_index_offset.
21107 (syms_of_charset): Fix args to Fdefine_charset_internal.
21108
211092008-02-01 Dave Love <fx@gnu.org>
21110
21111 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21112
211132008-02-01 Dave Love <fx@gnu.org>
21114
21115 * coding.c: Doc fixes.
21116 (Fcoding_system_aliases): Fix return value.
21117 (Qmac): Remove (duplicated) definition.
21118
211192008-02-01 Dave Love <fx@gnu.org>
21120
362654a6
JB
21121 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21122 New functions.
aac0c6e3
MR
21123
21124 * character.c (Fstring): Doc fix.
21125
21126 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21127
362654a6 21128 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21129 (font-encoding-alist): Doc fix.
21130
211312008-02-01 Dave Love <fx@gnu.org>
21132
21133 * term.c (costs_set): Declare static, non-initialized for pcc.
21134 (encode_terminal_code): Remove unused var.
21135
21136 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21137 for K&R.
21138
21139 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21140
21141 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21142 (suffixes): Move out of make_subsidiaries for K&R.
21143
21144 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21145
21146 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21147
211482008-02-01 Dave Love <fx@gnu.org>
21149
21150 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21151
21152 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21153
211542008-02-01 Yong Lu <lyongu@asia-infonet.com>
21155
21156 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21157
21158 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21159
211602008-02-01 Kenichi Handa <handa@m17n.org>
21161
21162 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21163 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21164
211652008-02-01 Kenichi Handa <handa@m17n.org>
21166
21167 * coding.c (decode_coding_charset): Adjust for the change of
21168 Fdefine_coding_system_internal.
21169 (Fdefine_coding_system_internal): For a coding system of
21170 `charset' type, store a list of charset IDs in
21171 `charset_attr_charset_valids' element of coding attributes.
21172
211732008-02-01 Kenichi Handa <handa@m17n.org>
21174
21175 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21176 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21177 caller. Handle 2-byte and 3-byte charsets correctly.
21178 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21179 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21180 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21181 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21182 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21183 sequence.
21184 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21185 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21186 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21187 and alt&rule composition.
21188 (decode_coding_iso_2022): Handle composition correctly.
21189 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21190
21191 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21192 re-defining a charset. If the charset has :emacs-mule-id, setup
21193 emacs_mule_bytes.
21194 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21195
211962008-02-01 Kenichi Handa <handa@m17n.org>
21197
21198 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21199 (encode_coding_big5, encode_coding_charset): If coding requires safe
21200 encoding, produce a character specified by
21201 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21202
212032008-02-01 Dave Love <fx@gnu.org>
21204
21205 * xterm.c (XSetIMValues): Declare.
21206
21207 * process.c: Conditionally include sys/wait.h, pty.h.
21208
21209 * print.c (print_object): Fix print format for 64-bit systems.
21210
21211 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21212
21213 * buffer.c (emacs_strerror): Declare.
21214
21215 * fontset.c (Fclear_face_cache): Declare.
21216 (accumulate_font_info): Comment-out (unused).
21217 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21218 variables.
21219
21220 * character.h (string_escape_byte8): Declare.
21221
21222 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21223 unused vars.
21224 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21225 (Fmap_charset_chars): Doc fix.
21226
21227 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21228 (Fset_coding_system_priority, Fset_coding_system_priority)
21229 (Fdefine_coding_system_internal): Doc fix.
21230
212312008-02-01 Dave Love <fx@gnu.org>
21232
21233 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21234
212352008-02-01 Kenichi Handa <handa@m17n.org>
21236
21237 * character.c (string_escape_byte8): Make multibyte string with
21238 correct size.
21239
21240 * charset.c (Fmake_char): Delete unnecessary code.
21241
212422008-02-01 Kenichi Handa <handa@m17n.org>
21243
21244 * xfns.c (x_encode_text): Allocate coding.destination here, and
21245 call encode_coding_object with dst_object Qnil.
21246
21247 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21248 multibyte form correctly.
21249
21250 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21251 against Vfont_encoding_alist.
21252
21253 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21254 handling of charset list.
21255 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21256 (decode_coding_object): Move point to coding->dst_pos before
21257 calling post-read-conversion function.
21258 (encode_coding_object): Give correct arguments to
21259 pre-write-conversion. Ignore the return value of
21260 pre-write-conversion function. Pay attention to the case that
21261 pre-write-conversion changes the current buffer. If dst_object is
21262 Qt, even if coding->src_bytes is zero, allocate at least one byte
21263 to coding->destination.
21264
21265 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21266
21267 * charset.c (Fmake_char): Make it more backward compatible.
21268 (Fmap_charset_chars): Fix docstring.
21269
212702008-02-01 Dave Love <fx@gnu.org>
21271
21272 * coding.c: Doc fixes.
21273 (Fdefine_coding_system_alias): Use names, not symbols, in
21274 coding-system-alist.
21275
212762008-02-01 Kenichi Handa <handa@m17n.org>
21277
21278 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21279 of calling free_realized_face.
21280
212812008-02-01 Yong Lu <lyongu@asia-infonet.com>
21282
21283 * charset.c (read_hex): Don't treat SPC as a comment starter.
21284 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21285 (Fdecode_char): Fix typo.
21286
212872008-02-01 Kenichi Handa <handa@m17n.org>
21288
21289 * charset.h (struct charset): New member `code_space_mask'.
21290
21291 * coding.c (coding_set_source): Delete the local variable beg_byte.
21292 (encode_coding_charset, Fdefine_coding_system_internal):
21293 Delete the local variable charset.
21294 (Fdefine_coding_system_internal): Setup
21295 attrs[coding_attr_charset_valids] correctly.
21296
21297 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21298 member to check if CODE is valid or not.
21299 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21300 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21301 is within the range of charset->min_code and carset->max_code.
21302
213032008-02-01 Dave Love <fx@gnu.org>
21304
21305 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21306
21307 * dispextern.h (generate_ascii_font): Fix return type.
21308
21309 * xfaces.c (generate_ascii_font): Fix arg declaration.
21310
21311 * coding.c (coding_inherit_eol_type)
21312 (Fset_terminal_coding_system_internal)
21313 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21314
213152008-02-01 Kenichi Handa <handa@m17n.org>
21316
21317 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21318 multiple charsets correctly.
21319
213202008-02-01 Kenichi Handa <handa@m17n.org>
21321
21322 * search.c (boyer_moore): Fix handling of multibyte character
21323 translation.
21324
21325 * xdisp.c (display_mode_element): When the variable `elt' is
21326 changed, update `this' and `lisp_string'.
21327
213282008-02-01 Kenichi Handa <handa@m17n.org>
21329
21330 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21331
21332 * callproc.c (Fcall_process): Be sure to give the current buffer
21333 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21334
21335 * charset.c (struct charset_map_entries): New struct.
21336 (load_charset_map): Rename from parse_charset_map. New args
21337 entries and n_entries. Change caller.
21338 (load_charset_map_from_file): Rename from load_charset_map.
21339 Change caller. New arg control_flag. Call load_charset_map at
21340 the tail.
21341 (load_charset_map_from_vector): New function.
21342 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21343 (encode_char): If the charset is compact, change a character index
21344 to a code point.
21345
21346 * coding.c (coding_alloc_by_making_gap): Check the case that the
21347 source and destination are the same correctly.
21348 (decode_coding_raw_text): Set coding->consumed_char and
21349 coding->consumed to 0.
21350 (produce_chars): If coding->chars_at_source is nonzero, update
21351 coding->consumed_char and coding->consumed before calling
21352 alloc_destination.
21353 (Fdefine_coding_system_alias): Register ALIAS in
21354 Vcoding_system_alist.
21355 (syms_of_coding): Define `no-conversion' coding system at the tail.
21356
21357 * fileio.c (Finsert_file_contents): Set coding_system instead of
21358 val. If the current buffer is multibyte, always call
21359 decode_coding_gap.
21360
21361 * xfaces.c (try_font_list): Give higher priority to fontset's
21362 family than face's family.
21363
213642008-02-01 Kenichi Handa <handa@m17n.org>
21365
21366 * callproc.c (Fcall_process): Be sure to give the current buffer
21367 to decode_coding_c_string.
21368
21369 * xfaces.c (try_font_list): Give a family specified in a fontset
21370 higher priority than a family specified in a face.
21371
213722008-02-01 Kenichi Handa <handa@m17n.org>
21373
21374 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21375 Fix arguments to insert_from_buffer.
21376
21377 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21378
213792008-02-01 Kenichi Handa <handa@m17n.org>
21380
21381 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21382 (decode_coding_gap): Set coding->dst_multibyte correctly.
21383
213842008-02-01 Kenichi Handa <handa@m17n.org>
21385
21386 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21387 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21388 (encode_coding_utf_16): Substitute coding->default_char for
21389 non-Unicode characters.
21390 (decode_coding): Don't call record_insert here.
21391 (setup_coding_system): Initialize `surrogate' of
21392 coding->spec.utf_16 to 0.
21393 (EMIT_ONE_BYTE): Fix for multibyte case.
21394
21395 * insdel.c (insert_from_gap): Call record_insert.
21396
213972008-02-01 Kenichi Handa <handa@m17n.org>
21398
21399 * casefiddle.c (casify_region): Fix multibyte case.
21400
21401 * character.c (c_string_width): Add return type `int'.
21402 (char_string_with_unification): Delete arg ADVANCED.
21403
21404 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21405 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21406 (CHAR_STRING_ADVANCE): Make it do-while statement.
21407
21408 * chartab.c (sub_char_table_set_range): Optimize for the case
21409 DEPTH == 3. Add workaround code for a GCC optimization bug.
21410
21411 * charset.c (parse_charset_map): Remove an unused variable.
21412
21413 * coding.c: Delete unused variables.
21414
21415 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21416 earlier. If inserted is zero and the coding system doesn't
21417 require flushing, don't call decode_coding_gap.
21418
21419 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21420
214212008-02-01 Kenichi Handa <handa@m17n.org>
21422
21423 The following changes are for using Unicode as an internal
21424 character model, and use UTF-8 format for buffer/string
21425 representation.
21426
21427 * .gdbinit (xchartable): Adjust for the change of char table structure.
21428 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21429
21430 * Makefile.in (obj): Add character.o and chartab.o.
21431 (lisp, shortlisp): Remove utf-8.elc.
21432 (*.o): For many files, change dependency on charset.h to
21433 character.h, and add dependency on character.h.
21434 (character.o, chartab.o): New targets.
21435
21436 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21437 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21438 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21439 of "charset.h".
21440
21441 * dired.c, filelock.c: Include "character.h".
21442
21443 * alloc.c: Include "character.h" instead of "charset.h".
21444 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21445 (syms_of_alloc): Remove defsubr for Smake_char_table.
21446
21447 * buffer.c: Include "character.h" instead of "charset.h", don't
21448 include "coding.h".
21449 (Fset_buffer_multibyte): Adjust for UTF-8.
21450
21451 * buffer.h: EXFUN Fbuffer_live_p.
21452
21453 * callproc.c: Include "character.h" instead of "charset.h".
21454 (Fcall_process): Big change for the new code-conversion APIs.
21455
21456 * casetab.c: Include "character.h" instead of "charset.h".
21457 (set_canon, set_identity, shuffle): Adjust for the new
21458 map_char_table spec.
21459 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21460 accessing the char table structure.
21461
21462 * chartab.c: New file that implements char table.
21463
21464 * category.c: Include "character.h".
21465 (copy_category_entry): New function.
21466 (copy_category_table): Call map_char_table and copy_category_entry.
21467 (Fmake_category_table): Initialize all top-level slots.
21468 (char_category_set): New function.
21469 (modify_lower_category_set): Delete.
21470 (Fmodify_category_entry): Call char_table_ref_and_range.
21471
21472 * category.h (CATEGORY_SET): Just call char_category_set.
21473
21474 * ccl.c: Include "character.h".
21475 (Qccl, Qcclp): New variables.
21476 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21477 it's less than 256.
21478 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21479 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21480 and DST type.
21481 (ccl_driver): Change types of argument, adjust code accordingly.
21482 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21483 ccl_driver.
21484 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21485
21486 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21487 New members src_multibyte, dst_multibyte, consumed, and produced.
21488 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21489 (CODING_SPEC_CCL_PROGRAM): New macro.
21490 (ccl_driver): Update prototype.
21491 (Qccl, Qcclp, Fccl_program_p): Extern them.
21492 (CHECK_CCL_PROGRAM): New macro.
21493
21494 * character.c, character.h, chartab.c: New files.
21495
21496 * charset.c: Mostly re-written. Move character and multibyte sequence
21497 handling codes to character.c.
21498
21499 * charset.h: Mostly re-written. Move character and multibyte sequence
21500 handling codes to character.h.
21501
21502 * coding.c, coding.h: Mostly re-written.
21503
21504 * composite.c: Include "character.h" instead of "charset.h".
21505 (CHAR_WIDTH): Move to character.h.
21506 (HASH_KEY, HASH_VALUE): Delete.
21507
21508 * composite.h (enum composition_method): Change order of enumeration
21509 symbols.
21510
21511 * data.c: Include "character.h" instead of "charset.h".
21512 (Faref): Call CHAR_TABLE_REF for a char table.
21513 (Faset): Call CHAR_TABLE_SET for a char table.
21514
21515 * dispextern.h (free_realized_face, check_face_attribytes)
21516 (generate_ascii_font): Extern them.
21517 (free_realized_multibyte_face): Delete extern.
21518
21519 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
21520 table structure.
21521
21522 * editfns.c: Include "character.h" instead of "charset.h".
21523 (Fchar_to_string): Always call CHAR_STRING.
21524
21525 * emacs.c (main): Call init_charset_once, init_charset,
21526 syms_of_chartab, and syms_of_character.
21527
21528 * fileio.c: Include "character.h" instead of "charset.h".
21529 (Finsert_file_contents): Big change for the new code-conversion API.
21530 (choose_write_coding_system, Fwrite_region): Likewise.
21531 (build_annotations_2): Delete.
21532 (e_write): Big change for the new code-conversion API.
21533
21534 * fns.c: Include "character.h" instead of "charset.h".
21535 (copy_sub_char_table): Move to chartab.c.
21536 (Fcopy_sequence): Call copy_char_table for a char table.
21537 (concat): Delete codes calling count_multibyte.
21538 (string_char_to_byte, string_byte_to_char): Adjust for the new
21539 multibyte form.
21540 (internal_equal): Adjust for the change of char table structure.
21541 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
21542 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
21543 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
21544 (char_table_translate, optimize_sub_char_table)
21545 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
21546 chartab.c.
21547 (char_table_ref_and_index): Delete.
21548 (HASH_KEY, HASH_VALUE): Move to lisp.h.
21549 (Fmd5): Call preferred_coding_system instead of accessing
21550 Vcoding_category_list. Adjust for the new code-conversion API.
21551 (syms_of_fns): Move defsubr for char table related functions to
21552 chartab.c.
21553
21554 * fontset.c: Mostly re-written.
21555
21556 * fontset.h (struct font_info): Change type of the member encoding_type.
21557 (enum FONT_SPEC_INDEX): New enum.
21558 (fontset_font_pattern, fs_load_font): Update prototype.
21559 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21560
21561 * indent.c: Include "character.h" instead of "charset.h".
21562 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21563
21564 * insdel.c: Include "character.h" instead of "charset.h".
21565 (copy_text): Don't refer to Vnonascii_translation_table.
21566 (insert_from_gap): New function.
21567
21568 * keyboard.c: Include "character.h" instead of "charset.h".
21569 (command_loop_1): Never call direct_output_forward_char before
21570 a non-ASCII character.
21571 (read_char): If Vkeyboard_translate_table is a char table, always
21572 translate a character.
21573
21574 * keymap.c: Include "character.h".
21575 (store_in_keymap): Handle the case that IDX is a cons.
21576 (Fdefine_key): Handle the case that KEY is a cons and the car part
21577 is also a cons (range).
21578 (push_key_description): Adjust for the new character code.
21579 (describe_vector): Call describe_char_table for a char table.
21580 (describe_char_table): New function.
21581
21582 * keymap.h (describe_char_table): Extern it.
21583
21584 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21585 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21586 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21587 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21588 Delete.
21589 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21590 structure.
21591 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21592 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21593 (CHARTAB_SIZE_BITS_3): New macros.
21594 (chartab_size): Extern it.
21595 (struct Lisp_Char_Table): Re-design.
21596 (struct Lisp_Sub_Char_Table): New structure.
21597 (HASH_KEY, HASH_VALUE): Move from fns.c.
21598 (CHARACTERBITS): Define as 22.
21599 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21600 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21601 (GC_SUB_CHAR_TABLE_P): New macro.
21602 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21603 (code_convert_string_norecord): Deleted extern.
21604 (init_character_once, syms_of_character, init_charset)
21605 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21606
21607 * lread.c: Include "character.h".
21608 (read_multibyte): New arg NBYTES.
21609 (read_escape): Change the meaning of returned *BYTEREP.
21610 (to_multibyte): Delete.
21611 (read1): Adjust the handling of char table and string.
21612
21613 * print.c: Include "character.h" instead of "charset.h".
21614 (print_string): Convert 8-bit raw bytes to octal form by
21615 string_escape_byte8.
21616 (print_object): Adjust for the new multibyte form. Print 8-bit
21617 raw bytes always in octal form. Handle sub char table correctly.
21618
21619 * process.c: Include "character.h" instead of "charset.h".
21620 (read_process_output, send_process): Adjust for the new
21621 code-conversion API.
21622
21623 * puresize.h (BASE_PURESIZE): Increase.
21624
21625 * regex.c: Include "character.h" instead of "charset.h".
21626 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21627 (regex_compile): Accept a range whose starting and ending
21628 character have different leading bytes.
21629 (analyse_first): Adjust for the above change.
21630
21631 * search.c: Include "character.h" instead of "charset.h".
21632 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21633 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21634
21635 * syntax.c: Include "character.h" instead of "charset.h".
21636 (syntax_parent_lookup): Delete.
21637 (Fmodify_syntax_entry): Accept a cons as CHAR.
21638 (skip_chars): Adjust for the new multibyte form.
21639 (init_syntax_once): Call char_table_set_range instead of directly
21640 accessing the structure of a char table.
21641
21642 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21643 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21644 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21645 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21646
21647 * term.c: Include "buffer.h" and "character.h".
21648 (encode_terminal_code, write_glyphs): Adjust for the new
21649 code-conversion API.
21650 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21651
21652 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
21653
21654 * xdisp.c: Include "character.h".
21655 (get_next_display_element): Adjust for the new multibyte form.
21656 (disp_char_vector): Adjust for the new char table structure.
21657 (decode_mode_spec_coding): Adjust for the new structure of
21658 coding system.
21659 (decode_mode_spec): Adjust for the new code-conversion API.
21660
21661 * xfaces.c: Include "character.h" instead of "charset.h".
21662 (load_face_font): Adjust for the change of choose_face_font and
21663 FS_LOAD_FONT.
21664 (generate_ascii_font): New function.
21665 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
21666 (set_font_frame_param): Adjust for the change of choose_face_font.
21667 (free_realized_face): Make it public.
21668 (free_realized_faces_for_fontset): Rename from
21669 free_realized_multibyte_face. Free also faces realized for ASCII.
21670 (choose_face_font): Change arguments. Adjust for the change of
21671 fontset_font_pattern and FS_LOAD_FONT.
21672
21673 * xfns.c: Include "character.h".
21674 (x_encode_text): Adjust for the new code-conversion API.
21675
21676 * xselect.c: Don't include "charset.h".
21677 (selection_data_to_lisp_data): Adjust for the new code conversion API.
21678
21679 * xterm.c: Include "character.h".
21680 (x_encode_char): New argument CHARSET. Change caller.
21681 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
21682 Call ENCODE_CHAR instead of SPLIT_CHAR.
21683 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
21684 CHAR_WIDTH instead of CHARSET_WIDTH.
21685 (XTread_socket): Adjust for the new code-conversion API.
21686 (x_new_font): Adjust for the change of FS_LOAD_FONT.
21687 (x_load_font): Adjust for the change of struct font.
21688
216892008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21690
21691 * xfaces.c (face_at_buffer_position): Remove unused vars.
21692
216932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21694
21695 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
21696 Fix overflow checking.
21697
216982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21699
21700 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
21701 Cancel previous change.
21702
217032008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21704
21705 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
21706 ccl->eight_bit_control. Fix check for buffer overflow.
21707 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
21708 (ccl_driver): Initialize extra_bytes to 0.
21709
217102008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21711
21712 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
21713 return it ORed with ctrl_modifier.
21714
217152008-01-29 Miles Bader <miles@gnu.org>
21716
21717 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
21718
217192008-01-28 Jason Rumney <jasonr@gnu.org>
21720
21721 * w32.c (stat): Don't double check for networked drive.
21722
217232008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
21724
21725 * window.c (run_window_configuration_change_hook): New function.
21726 Code extracted from set_window_buffer. Set the selected frame.
21727 (set_window_buffer): Use it.
21728 * window.h (run_window_configuration_change_hook): Declare.
21729 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
21730
21731 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
21732
217332008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
21734
21735 * Makefile.in: Remove references to unused macros.
21736
217372008-01-26 Eli Zaretskii <eliz@gnu.org>
21738
21739 * w32.c (g_b_init_get_sid_sub_authority)
21740 (g_b_init_get_sid_sub_authority_count): New static variables.
21741 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
21742 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
21743 (init_user_info): Use them to retrieve uid and gid.
21744 Use 500/513, the Windows defaults, as Administrator's uid/gid.
21745 (fstat): Use pw_uid and pw_gid from the_passwd structure for
21746 st_uid and st_gid of the file.
21747
217482008-01-26 Jason Rumney <jasonr@gnu.org>
21749
21750 * w32.c (logon_network_drive): New function.
21751 (stat): Use it.
21752
217532008-01-26 Chong Yidong <cyd@stupidchicken.com>
21754
21755 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
21756 invisible text covered with an ellipsis.
21757
217582008-01-25 Richard Stallman <rms@gnu.org>
21759
21760 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
21761 jump back to beginning. Move some other initializations after that.
21762 (Qwindow_text_change_functions, Vwindow_text_change_functions):
21763 New variables.
21764 (syms_of_xdisp): Init them.
21765
21766 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
21767
21768 * buffer.c (reset_buffer_local_variables):
21769 Implement `permanent-local-hook'.
21770 (Qpermanent_local_hook): New variable.
21771 (syms_of_buffer): Init and staticpro it.
21772
217732008-01-25 Michael Albinus <michael.albinus@gmx.de>
21774
21775 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
21776
217772008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
21778
21779 * fns.c (Fclrhash): Return TABLE.
21780
217812008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21782
21783 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
21784 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
21785 is set even without positional changes.
21786 (x_scroll_bar_clear): Set bar->redraw_needed_p.
21787
21788 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
21789
217902008-01-23 Jason Rumney <jasonr@gnu.org>
21791
21792 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
21793
21794 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
21795 the unicode range available in MULE by locale-coding-system.
21796 Improve dbcs lead byte detection. Set event timestamp and modifiers
21797 earlier.
21798
217992008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21800
21801 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
21802 [MAC_OSX] (init_mac_osx_environment): Initialize it.
21803 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
21804 when used on child processes.
21805
218062008-01-21 Michael Albinus <michael.albinus@gmx.de>
21807
21808 * dbusbind.c (Fdbus_method_return_internal): Rename from
21809 Fdbus_method_return.
21810 (Fdbus_unregister_object): Move to dbus.el.
21811 (Fdbus_call_method, Fdbus_method_return_internal)
21812 (Fdbus_send_signal): Improve debug messages.
21813
218142008-01-20 Martin Rudalics <rudalics@gmx.at>
21815
21816 * undo.c (undo_inhibit_record_point): New variable.
21817 (syms_of_undo): Initialize it.
21818 (record_point): Don't record point when undo_inhibit_record_point
21819 is set.
21820
218212008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21822
21823 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21824
21825 * xdisp.c (Qauto_hscroll_mode): New var.
21826 (syms_of_xdisp): Initialize it.
21827 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21828 window's buffer.
21829 (hscroll_windows): Don't check automatic_hscrolling_p here.
21830
21831 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21832 vscroll if we're setting window-buffer to the value it already has.
21833
218342008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21835
21836 * m/intel386.h: Remove references to XENIX.
21837
218382008-01-17 Andreas Schwab <schwab@suse.de>
21839
21840 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21841 instead of HAVE_X86_64_LIB64_DIR.
21842 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21843
218442008-01-17 Glenn Morris <rgm@gnu.org>
21845
21846 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21847 to HAVE_X86_64_LIB64_DIR.
21848
218492008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21850
21851 * s/irix3-3.h:
21852 * s/irix4-0.h:
21853 * s/386-ix.h:
21854 * s/domain.h:
21855 * s/hpux9-x11r4.h:
21856 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21857
21858 * sysdep.c: Remove code containing references to symbols defined
21859 by unsupported systems.
21860
218612008-01-16 Glenn Morris <rgm@gnu.org>
21862
21863 * coding.c (select-safe-coding-system-function): Doc fix.
21864
218652008-01-15 Glenn Morris <rgm@gnu.org>
21866
21867 * config.in: Revert 2008-01-13 change: this is a generated file.
21868
218692008-01-13 Tom Tromey <tromey@redhat.com>
21870
21871 * lisp.h: Fix typo.
21872
218732008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21874
21875 * m/sequent-ptx.h:
21876 * m/sequent.h:
21877 * s/ptx.h:
21878 * s/ptx4-2.h:
21879 * s/ptx4.h: Remove files for systems no longer supported.
21880
21881 * callproc.c (Fcall_process): Fix previous change.
21882
218832008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21884
21885 * unexsunos4.c: Remove file, system not supported anymore.
21886
21887 * m/mips.h:
21888 * m/intel386.h:
21889 * callproc.c:
21890 * config.in:
21891 * ecrt0.c:
21892 * emacs.c:
21893 * fileio.c:
21894 * frame.c:
21895 * getpagesize.h:
21896 * keyboard.c:
21897 * lread.c:
21898 * process.c:
21899 * puresize.h:
21900 * sysdep.c:
21901 * systty.h:
21902 * syswait.h:
21903 * unexec.c:
21904 * xdisp.c:
21905 * alloc.c: Remove code containing references to symbols defined by
21906 unsupported systems.
21907
219082008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21909
21910 * coding.c (detect_coding_mask): Fix previous change.
21911
219122008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21913
21914 * coding.c (detect_coding_iso2022): New arg
21915 latin_extra_code_state. Allow Latin extra codes only
21916 when *latin_extra_code_state is nonzero.
21917 (detect_coding_mask): If there is a NULL byte, detect the encoding
21918 as UTF-16 or binary. If Latin extra codes exist, detect the
21919 encoding as ISO-2022 only when there's no other proper encoding is
21920 found.
21921
219222008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21923
21924 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21925 #ifdef MAC_OS.
21926
219272008-01-08 Richard Stallman <rms@gnu.org>
21928
21929 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21930
219312008-01-06 Nick Roberts <nickrob@snap.net.nz>
21932
21933 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21934 menu bar in parentheses.
21935
219362008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21937
21938 * m/7300.h:
21939 * m/acorn.h:
21940 * m/alliant-2800.h:
21941 * m/alliant.h:
21942 * m/alliant1.h:
21943 * m/alliant4.h:
21944 * m/altos.h:
21945 * m/amdahl.h:
21946 * m/apollo.h:
21947 * m/att3b.h:
21948 * m/aviion-intel.h:
21949 * m/aviion.h:
21950 * m/celerity.h:
21951 * m/clipper.h:
21952 * m/cnvrgnt.h:
21953 * m/convex.h:
21954 * m/cydra5.h:
21955 * m/delta88k.h:
21956 * m/dpx2.h:
21957 * m/dual.h:
21958 * m/elxsi.h:
21959 * m/f301.h:
21960 * m/gould-np1.h:
21961 * m/gould.h:
21962 * m/i860.h:
21963 * m/ibmps2-aix.h:
21964 * m/ibmrt-aix.h:
21965 * m/ibmrt.h:
21966 * m/irist.h:
21967 * m/is386.h:
21968 * m/isi-ov.h:
21969 * m/mega68.h:
21970 * m/mg1.h:
21971 * m/news-r6.h:
21972 * m/news-risc.h:
21973 * m/news.h:
21974 * m/nh3000.h:
21975 * m/nh4000.h:
21976 * m/ns16000.h:
21977 * m/ns32000.h:
21978 * m/nu.h:
21979 * m/orion.h:
21980 * m/orion105.h:
21981 * m/paragon.h:
21982 * m/pfa50.h:
21983 * m/plexus.h:
21984 * m/pyramid.h:
21985 * m/pyrmips.h:
21986 * m/sh3el.h:
21987 * m/sps7.h:
21988 * m/sr2k.h:
21989 * m/stride.h:
21990 * m/sun1.h:
21991 * m/sun2.h:
21992 * m/sun3-68881.h:
21993 * m/sun3-fpa.h:
21994 * m/sun3-soft.h:
21995 * m/sun3.h:
21996 * m/sun386.h:
21997 * m/symmetry.h:
21998 * m/tad68k.h:
21999 * m/tahoe.h:
22000 * m/targon31.h:
22001 * m/tek4300.h:
22002 * m/tekxd88.h:
22003 * m/tower32.h:
22004 * m/tower32v3.h:
22005 * m/ustation.h:
22006 * m/wicat.h:
22007 * m/xps100.h:
22008 * s/cxux.h:
22009 * s/cxux7.h:
22010 * s/dgux.h:
22011 * s/dgux4.h:
22012 * s/dgux5-4-3.h:
22013 * s/dgux5-4r2.h:
22014 * s/esix.h:
22015 * s/esix5r4.h:
22016 * s/hiuxmpp.h:
22017 * s/hiuxwe2.h:
22018 * s/iris3-5.h:
22019 * s/iris3-6.h:
22020 * s/isc2-2.h:
22021 * s/isc3-0.h:
22022 * s/isc4-0.h:
22023 * s/isc4-1.h:
22024 * s/newsos5.h:
22025 * s/newsos6.h:
22026 * s/osf1.h:
22027 * s/osf5-0.h:
22028 * s/riscix1-1.h:
22029 * s/riscix12.h:
22030 * s/sco4.h:
22031 * s/sco5.h:
22032 * s/sunos4-0.h:
22033 * s/sunos4-1.h:
22034 * s/sunos413.h:
22035 * s/sunos4shr.h:
22036 * s/umax.h:
22037 * s/unipl5-2.h:
22038 * s/xenix.h:
22039 * cxux-crt0.s:
22040 * unexapollo.c:
22041 * unexconvex.c:
22042 * unexenix.c:
22043 * unexsni.c: Remove files for systems no longer supported.
22044
22045 * m/intel386.h: Remove references to unsupported systems.
22046
22047 * w32.c (get_emacs_configuration): Remove reference to i860.
22048
22049 * sysdep.c: Remove dead code.
22050
220512008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22052
22053 * s/rtu.h:
22054 * m/masscomp.h: Remove files. Platform is obsolete.
22055
220562008-01-04 Michael Albinus <michael.albinus@gmx.de>
22057
22058 * dbusbind.c (Fdbus_method_return): New function.
22059 (xd_read_message): Add the serial number to the event.
22060 (Fdbus_register_method): Activate the function.
22061
220622008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22063
22064 * keyboard.c (read_key_sequence): Fix typo.
22065
220662008-01-03 Michael Albinus <michael.albinus@gmx.de>
22067
22068 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22069 (xd_signature, xd_append_arg): Handle element type detection for
22070 empty arrays.
22071 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22072 SDATA () calls; this must be solved more general.
22073 (Fdbus_register_signal): Use SBYTES instead of strlen.
22074
220752008-01-03 Magnus Henoch <magnus@zemdatav>
22076
22077 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22078 unsigned int for byte values (necessary for big-endian platform).
22079 (Fdbus_call_method): Handle the case of no returned arguments.
22080
220812007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22082
22083 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22084
220852007-12-31 Magnus Henoch <mange@freemail.hu>
22086
22087 * dbusbind.c (xd_signature): Signature of variant is just "v".
22088
220892007-12-30 Michael Albinus <michael.albinus@gmx.de>
22090
22091 * dbusbind.c: Fix several errors and compiler warnings.
22092 Reported by Tom Tromey <tromey@redhat.com>.
22093 (XD_ERROR, XD_DEBUG_MESSAGE)
22094 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22095 (xd_append_arg): Part for basic D-Bus types rewritten.
22096 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22097 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22098 appropriate.
22099 (xd_read_message): Return Qnil. Don't signal an error; it is not
22100 useful during event reading.
22101 (Fdbus_register_signal): Signal an error if the check for
22102 FUNCTIONP fails.
22103 (Fdbus_register_method): New function. The implementation is not
22104 complete, the call of the function signals an error therefore.
22105 (Fdbus_unregister_object): New function, renamed from
22106 Fdbus_unregister_signal. The initial check signals an error, if
22107 the object is not well formed.
22108
221092007-12-30 Richard Stallman <rms@gnu.org>
22110
22111 * textprop.c (get_char_property_and_overlay):
22112 Signal error if POSITION is out of range in a buffer.
22113
221142007-12-29 Martin Rudalics <rudalics@gmx.at>
22115
22116 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22117 because the original parameters are in pure storage now.
22118
221192007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22120
22121 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22122
221232007-12-22 Eli Zaretskii <eliz@gnu.org>
22124
22125 * callint.c (syms_of_callint) <command-history>: Add reference to
22126 history-length in the doc string.
22127
221282007-12-17 Jason Rumney <jasonr@gnu.org>
22129
22130 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22131 before passing as wParam.
22132
221332007-12-22 Michael Albinus <michael.albinus@gmx.de>
22134
22135 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22136 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22137 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22138 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22139 as number.
22140 (Fdbus_call_method): Fix docstring.
22141
221422007-12-21 Michael Albinus <michael.albinus@gmx.de>
22143
22144 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22145 New macros.
22146 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22147 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22148 Simplify.
22149 (xd_signature): New function.
22150 (xd_append_arg): Compute also signatures. Major rewrite.
22151 (xd_retrieve_arg): Make debug messages friendly.
22152 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22153 Check for signatures of arguments.
22154
221552007-12-19 Michael Albinus <michael.albinus@gmx.de>
22156
22157 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22158 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22159 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22160 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22161 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22162 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22163 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22164 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22165 (xd_retrieve_value): Remove. Functionality included in ...
22166 (xd_append_arg): New function.
22167 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22168
221692007-12-16 Michael Albinus <michael.albinus@gmx.de>
22170
22171 * dbusbind.c (top): Include <stdio.h>.
22172 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22173 dbus_message_new_method_call and dbus_message_new_signal.
22174 (Fdbus_register_signal): Rename unique_name to uname.
22175 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22176 non-existing unique name. Fix typos in matching rule. Return an
22177 object which is useful in Fdbus_unregister_signal.
22178 (Fdbus_unregister_signal): Reimplementation, in order to remove
22179 only the corresponding entry.
22180 (Vdbus_registered_functions_table): Change the order of entries.
22181 Apply these changes in xd_read_message and Fdbus_register_signal.
22182
221832007-12-16 Andreas Schwab <schwab@suse.de>
22184
22185 * fileio.c (Finsert_file_contents): Fix overflow check to not
22186 depend on undefined integer overflow.
22187
221882007-12-14 Jason Rumney <jasonr@gnu.org>
22189
22190 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22191 for characters above 127.
22192
221932007-12-13 Jason Rumney <jasonr@gnu.org>
22194
22195 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22196 before dereferencing array.
22197 (lookup_vk_code): Remove zero comparison.
22198
221992007-12-14 Michael Albinus <michael.albinus@gmx.de>
22200
22201 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22202 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22203 Use `unsigned int' instead of `uint'.
22204 (xd_read_message, Fdbus_register_signal): Split expressions into
22205 multiple lines before operators "&&" and "||", according to the
22206 GNU Coding Standards.
22207
222082007-12-14 Eli Zaretskii <eliz@gnu.org>
22209
22210 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22211
222122007-12-12 Juri Linkov <juri@jurta.org>
22213
22214 * buffer.c (Frename_buffer): In interactive spec replace
22215 `read-buffer' with `read-string' that uses `buffer-name-history'
22216 as history, and the current buffer's name as default.
22217
222182007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22219
22220 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22221 manipulating the backtrace manually.
22222 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22223 (struct backtrace, backtrace_list): Remove.
22224 (command_loop_1): Remove dead var `no_direct'.
22225
22226 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22227 preserve non-built-in buffer-local variables.
22228 (Fkill_all_local_variables): Don't re-create&re-set permanent
22229 buffer-local variables.
22230
222312007-12-09 Juri Linkov <juri@jurta.org>
22232
22233 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22234 Lisp code that uses `read-buffer' with current buffer as default.
22235
222362007-12-08 Michael Albinus <michael.albinus@gmx.de>
22237
22238 * dbusbind.c (xd_read_message): Generate an event for every
22239 registered handler. There might be several handlers registered
22240 for the same signal.
22241 (Fdbus_register_signal): Don't overwrite a registration for the
22242 same signal. Add a new registration if handlers are different.
22243 (Vdbus_registered_functions_table): Rework doc string.
22244
222452007-12-07 Michael Albinus <michael.albinus@gmx.de>
22246
22247 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22248 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22249 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22250 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22251 Unify argument lists.
22252 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22253 arguments and hash table keys. Use unique name for service.
22254 (Fdbus_unregister_signal): Remove checks.
22255 (Vdbus_registered_functions_table): Fix doc string.
22256
222572007-12-05 Magnus Henoch <mange@freemail.hu>
22258
22259 * process.c (make_process): Initialize pty_flag to 0.
22260
222612007-12-05 Jason Rumney <jasonr@gnu.org>
22262
22263 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22264 specified XBMs.
22265
222662007-12-05 Richard Stallman <rms@gnu.org>
22267
22268 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22269
222702007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22271
22272 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22273 New variable.
22274 (mac_try_close_socket) [MAC_OSX]: New function.
22275 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22276 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22277
22278 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22279 Use mac_try_close_socket.
22280
222812007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22282
22283 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22284 reloc_base.
22285 (copy_dysymtab): Compute relocation base here.
22286 (rebase_reloc_address) [__ppc64__]: New function.
22287 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22288 changed.
22289
222902007-12-05 Jason Rumney <jasonr@gnu.org>
22291
22292 * w32proc.c (sys_spawnve): Quote args with wildcards.
22293
222942007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22295
22296 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22297 __objc_* sections.
22298 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22299
223002007-12-05 Michael Albinus <michael.albinus@gmx.de>
22301
22302 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22303 Move check for Vdbus_registered_functions_table to
22304 xd_read_queued_messages.
22305 (xd_read_queued_messages): Protect xd_read_message calls by
22306 internal_condition_case_1.
22307
223082007-12-04 Michael Albinus <michael.albinus@gmx.de>
22309
22310 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22311 Qdbus_system_bus and Qdbus_session_bus, respectively.
22312 (Vdbus_intern_symbols): Remove.
22313 (Vdbus_registered_functions_table): New hash table.
22314 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22315 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22316 Rewrite in order to manage registered functions by hash table
22317 Vdbus_registered_functions_table.
22318
223192007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22320
22321 * xterm.c: Update URL to Window Manager Specification in comment.
22322
223232007-12-02 Michael Albinus <michael.albinus@gmx.de>
22324
22325 * config.in (HAVE_DBUS): Add.
22326
22327 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22328 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22329 (obj): Add $(DBUS_OBJ).
22330 (LIBES): Add $(DBUS_LIBS).
22331 (dbusbind.o): New target.
22332
22333 * dbusbind.c: New file.
22334
22335 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22336
22337 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22338 (Qdbus_event): New Lisp symbol.
22339 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22340 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 22341 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
22342
22343 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22344
223452007-12-01 Richard Stallman <rms@gnu.org>
22346
22347 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22348
223492007-11-30 Jason Rumney <jasonr@gnu.org>
22350
22351 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22352 (w32con_reset_terminal_modes): Clear screen buffer.
22353 (w32_face_attributes): Don't use color indexes that are out of range.
22354 Only reverse the default colors.
22355
22356 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22357 WINDOWSNT.
22358
22359 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22360
223612007-11-29 Jason Rumney <jasonr@gnu.org>
22362
22363 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22364 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22365 if the terminal colors are initialized.
22366 (unspecified_fg, unspecified_bg): Remove unused declarations.
22367
223682007-11-29 Andreas Schwab <schwab@suse.de>
22369
22370 * keyboard.c (apply_modifiers): Fix typo.
22371
223722007-11-29 Richard Stallman <rms@gnu.org>
22373
22374 * keymap.c (Fcurrent_local_map): Doc fix.
22375
223762007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22377
22378 * s/gnu-kfreebsd.h: New file.
22379
223802007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22381
22382 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22383 Don't cast redundantly.
22384
22385 * keyboard.c (KEY_TO_CHAR): New macro.
22386 (parse_modifiers, apply_modifiers): Accept integer arguments.
22387 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22388 for chars and symbol keys.
22389 After doing such remapping, apply function-key-map again.
22390
223912007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22392
22393 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22394 compiled anymore.
22395
223962007-11-26 Andreas Schwab <schwab@suse.de>
22397
22398 * process.c (list_processes_1): Fix indentation level of the
22399 command column.
22400
224012007-11-23 Andreas Schwab <schwab@suse.de>
22402
22403 * editfns.c (Fformat): Handle %c specially since it requires the
22404 argument to be of type int.
22405
224062007-11-23 Markus Triska <markus.triska@gmx.at>
22407
22408 * emacs.c (main): Call init_editfns before init_process, since
22409 init_process sets Vprocess_connection_type depending on OS release.
22410
224112007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22412
22413 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22414 (find_symbol_value): Use do_symval_forwarding.
22415
22416 * data.c (set_internal): Set the value in the `cons-cell' (for
22417 Buffer_Local_values) not only for frame-local variables.
22418
224192007-11-22 Andreas Schwab <schwab@suse.de>
22420
22421 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22422 values to sprintf.
22423 * keymap.c (Fsingle_key_description): Likewise.
22424 * print.c (print_object): Likewise.
22425
224262007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22427
22428 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22429 file for image is nil.
22430
224312007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22432
22433 * term.c: Include stdarg.h.
22434 (fatal): Implement using varargs.
22435 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22436
224372007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22438
22439 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22440 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22441 Update call to buffer_slot_type_mismatch.
22442 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22443 (buffer_slot_type_mismatch): Update.
22444 * buffer.c (buffer_local_types): Remove.
22445 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22446 (defvar_per_buffer): Set the type in the buffer_objfwd.
22447
224482007-11-21 Jason Rumney <jasonr@gnu.org>
22449
22450 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22451 CreateFileMapping returns NULL on failure.
22452
224532007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22454
22455 * search.c (Fset_match_data): Remove the `evaporate' feature.
22456 (unwind_set_match_data): Don't use the `evaporate' feature.
22457
224582007-11-21 Jason Rumney <jasonr@gnu.org>
22459
22460 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22461
22462 * w32console.c (w32con_write_glyphs): Remove unused variables.
22463
224642007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22465
22466 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22467
22468 * s/darwin.h (MULTI_KBOARD): Remove.
22469
22470 * macfns.c (x_create_tip_frame, Fx_create_frame)
22471 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22472
224732007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22474
22475 * buffer.c (Fbuffer_local_value): Remove redundant test.
22476 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22477 than in `current-buffer' to match the comment.
22478 Do the swap using swap_in_global_binding.
22479
22480 * data.c (store_symval_forwarding, set_internal):
22481 * eval.c (specbind): Remove dead code.
22482
22483 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22484 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22485 Since we do not want to see internal Lisp_*fwd objects here.
22486
224872007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22488
22489 * sysdep.c (init_system_name): Use getaddrinfo if available.
22490
22491 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22492 (x_scroll_bar_note_movement): start, end, with, height in struct
22493 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22494
224952007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22496
22497 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22498
224992007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22500
22501 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22502 This undoes Richard's change of 14-Oct-2002.
22503
22504 * alloc.c (allocate_other_vector):
22505 * lisp.h (allocate_other_vector): Remove.
22506
22507 * window.c (struct save_window_data): Move non-lisp data to the end
22508 and make it `int' rather than Lisp_Object.
22509 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
22510 Done wrap/unwrap integer values.
22511 (Fset_window_configuration, compare_window_configurations):
22512 Update use of fields to their new types.
22513
22514 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
22515 Turn integer fields into `int'. Merge x_window_low and x_window_high.
22516 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
22517 (SET_SCROLL_BAR_X_WINDOW): Remove.
22518 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
22519 Access the new x_window field directly.
22520 * xterm.c (x_scroll_bar_create): Use a pseudovector.
22521 Don't wrap/unwrap integers into Lisp_Objects.
22522 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
22523 (x_scroll_bar_report_motion):
22524 Don't wrap/unwrap integers into Lisp_Objects.
22525 (x_term_init): Use SDATA.
22526 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
22527 (x_scroll_bar_set_handle, x_scroll_bar_remove)
22528 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
22529 (x_scroll_bar_report_motion, x_scroll_bar_clear):
22530 * xfns.c (x_set_background_color):
22531 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
22532 Access the new x_window field directly.
22533
22534 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
22535 (allocate_pseudovector): Make non-static.
22536
22537 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
22538 (allocate_pseudovector): Declare.
22539 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
22540
225412007-11-15 Andreas Schwab <schwab@suse.de>
22542
22543 * editfns.c (Fformat): Correctly format EMACS_INT values.
22544 Also take precision into account when formatting an integer.
22545
22546 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
22547
225482007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
22549
22550 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22551 (syms_of_keyboard): Defsubr it.
22552
22553 * data.c (swap_in_global_binding): Fix longstanding bug where
22554 store_symval_forwarding was not called with the right second argument,
22555 thus causing objfwd-ing from being dropped.
22556
225572007-11-14 Juanma Barranquero <lekktu@gmail.com>
22558
22559 * macfns.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_visual_class, Fx_display_save_under):
22564 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
22565 (Fx_display_pixel_height, Fx_display_planes)
22566 (Fx_display_color_cells, Fx_server_max_request_size)
22567 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
22568 (Fx_display_mm_height, Fx_display_mm_width)
22569 (Fx_display_backing_store, Fx_display_visual_class)
22570 (Fw32_select_font, Fx_display_save_under):
22571 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
22572 (Fx_display_pixel_height, Fx_display_planes)
22573 (Fx_display_color_cells, Fx_server_max_request_size)
22574 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22575 (Fx_display_save_under): Fix typos in docstrings.
22576
225772007-11-14 Juanma Barranquero <lekktu@gmail.com>
22578
22579 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22580 corresponding to deleted entries; they are an implementation detail.
22581 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22582 Remove variables.
22583 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22584 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22585 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22586 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22587 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22588 (Fw32_define_rgb_color, Fw32_load_color_file)
22589 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22590 Fix typos in docstrings.
22591 (Fx_server_version): Reflow docstring.
22592 (Fw32_shell_execute): Doc fixes.
22593
225942007-11-13 Juanma Barranquero <lekktu@gmail.com>
22595
22596 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22597 if w32_parse_hot_key returned nil.
22598
225992007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22600
22601 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22602
226032007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 22604
aac0c6e3
MR
22605 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22606
22607 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22608
22609 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22610 Remove W32_SCROLL_BAR_CLICK_EVENT.
22611
22612 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22613 Add MULTIMEDIA_KEY_EVENT.
22614
22615 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22616 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22617 (make_lispy_event) [WINDOWSNT]: Use it to translate
22618 MULTIMEDIA_KEY_EVENT.
22619
22620 * w32term.h (WM_APPCOMMAND): Define if not already.
22621 (GET_APPCOMMAND_LPARAM): Likewise.
22622
22623 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22624 WM_APPCOMMAND.
22625
22626 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22627 (syms_of_w32fns): Export and initialize it.
22628 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22629
226302007-11-09 Chong Yidong <cyd@stupidchicken.com>
22631
22632 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22633 twice.
22634
22635 * xdisp.c (handle_face_prop): Fix last change.
22636
226372007-11-09 Richard Stallman <rms@gnu.org>
22638
22639 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22640 not just for after-strings and before-strings.
22641 Call face_for_overlay_string and pass the overlay to it.
22642 (handle_display_prop): Determine whether property came from an overlay.
22643 Pass OVERLAY arg to handle_single_display_spec.
22644 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22645 (load_overlay_strings): Fill in it->string_overlays.
22646 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22647
22648 * xfaces.c (face_for_overlay_string): Function renamed from
22649 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22650
22651 * dispextern.h (struct it): New elt string_overlays.
22652 New elt from_overlay, also in stack.
22653 Rearrange a few elements.
22654 (face_for_overlay_string): Decl renamed from
22655 face_at_buffer_position_no_overlays, and add argument.
22656
226572007-11-09 Richard Stallman <rms@gnu.org>
22658
22659 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
22660 to get the base face for an overlay string.
22661
22662 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
22663
22664 * xfaces.c (face_at_buffer_position_no_overlays): New function.
22665
22666 * xdisp.c (handle_stop): Move some code out of loop.
22667
226682007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22669
22670 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
22671 Fix conversion from Lisp object to ATSUFontID.
22672
226732007-11-09 Jason Rumney <jasonr@gnu.org>
22674
22675 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
22676
226772007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22678
22679 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
22680 Don't assume regions are aligned to page boundary.
22681 (print_load_command_name): Add LC_UUID if defined.
22682
226832007-11-09 Richard Stallman <rms@gnu.org>
22684
22685 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
22686
226872007-11-07 Jason Rumney <jasonr@gnu.org>
22688
22689 * s/windows95.h: Remove.
22690
226912007-11-06 Jan Djärv <jan.h.d@swipnet.se>
22692
22693 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
22694 abort with a message on unhandled store_type values.
22695
226962007-11-01 Jan Djärv <jan.h.d@swipnet.se>
22697
22698 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
22699 Remove HAVE_X11R5 and HAVE_X11R4.
22700
227012007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22702
22703 * Makefile.in: Remove references to sunfns.c and sunfns.o.
22704
227052007-11-01 Johan Bockgård <bojohan@gnu.org>
22706
22707 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
22708 Don't set s->stippled_p here, since it has already been set by
22709 x_set_glyph_string_gc from x_draw_glyph_string.
22710
227112007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22712
22713 * sunfns.c: Remove file.
22714
22715 * m/sun386.h:
22716 * m/sun2.h:
22717 * m/sparc.h: Remove Sun windows code.
22718
227192007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
22720
22721 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
22722 (init_keyboard): Set current_kboard's window-system to nil.
22723 (tty_read_avail_input): Typo.
22724 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
22725
227262007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
22727
22728 * s/usg5-4.h:
22729 * s/usg5-3.h:
22730 * s/ptx.h:
22731 * m/is386.h:
22732 * m/ibmps2-aix.h:
22733 * Makefile.in: Remove all mentions of X10.
22734
22735 * dispnew.c (syms_of_display): Don't mention version 10.
22736
227372007-10-28 Juanma Barranquero <lekktu@gmail.com>
22738
22739 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
22740 ($(BLD)/abbrev.$(O)): Remove.
22741
227422007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
22743
22744 Rewrite abbrev.c in Elisp.
22745 * image.c (Qcount): Don't declare as extern.
22746 (syms_of_image): Initialize and staticpro `Qcount'.
22747 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
22748 * emacs.c (main): Don't call syms_of_abbrev.
22749 * Makefile.in (obj): Remove abbrev.o.
22750 (abbrev.o): Remove.
22751 * abbrev.c: Remove.
22752
227532007-10-26 Martin Rudalics <rudalics@gmx.at>
22754
22755 * window.c (window_min_size_2): Don't count header-line.
22756
227572007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
22758
22759 * frame.h (struct frame): Move all bit fields after the first bit
22760 field to take advantage of the available space. Group all the
22761 chars together to reduce wasted space due to padding.
22762
227632007-10-26 Juanma Barranquero <lekktu@gmail.com>
22764
22765 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
22766
22767 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
22768 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
22769 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
22770 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
22771 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
22772 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
22773 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
22774 (last_marked, mark_object_loop_halt): Make static.
22775
22776 * frame.c (syms_of_frame) <delete-frame-functions>:
22777 Fix typo in docstring.
22778
227792007-10-25 Juanma Barranquero <lekktu@gmail.com>
22780
22781 * w32.c (init_environment): Fix tiny memory leak.
22782 (w32_get_resource): Remove unused variable `ok'.
22783
227842007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
22785
22786 Make `window-system' into a keyboard-local variable (rather than
22787 frame-local as done originally by multi-tty).
22788
22789 * keyboard.h (struct kboard): Add Vwindow_system.
22790 * keyboard.c (init_kboard): Set a default for Vwindow_system.
22791 (mark_kboards): Mark Vwindow_system.
22792
22793 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
22794 (init_display): Don't set the obsolete `window-system' frame-param.
22795
22796 * xterm.c (x_term_init):
22797 * w32term.c (w32_create_terminal):
22798 * term.c (init_tty): Set Vwindow_system.
22799 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
22800 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
22801
22802 * xfns.c (Fx_create_frame, x_create_tip_frame):
22803 * w32fns.c (Fx_create_frame, x_create_tip_frame):
22804 * macfns.c (Fx_create_frame):
22805 Don't set the obsolete `window-system' frame-param.
22806
22807 * frame.h (Qwindow_system): Remove.
22808 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
22809 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
22810
228112007-10-24 Richard Stallman <rms@gnu.org>
22812
22813 * frame.c (x_figure_window_size): For fullscreen case,
22814 set USPosition | PPosition without clobbering rest of window_prompting.
22815
22816 * keyboard.c (Fcurrent_idle_time): Doc fix.
22817
22818 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22819
228202007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22821
22822 * process.c (unwind_request_sigio): Only define if __ultrix__.
22823
22824 * callproc.c (child_setup): Remove spurious *.
22825
22826 * lisp.h (Fget_text_property): Declare.
22827 (have_menus_p): Declare it here rather than in sys-dep header files.
22828 * macterm.h (have_menus_p):
22829 * msdos.h (have_menus_p):
22830 * xterm.h (have_menus_p): Remove.
22831
22832 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22833 (Fmake_variable_frame_local): Just check the variable's const-ness
22834 rather than checking nil or t.
22835
228362007-10-22 Jason Rumney <jasonr@gnu.org>
22837
22838 * w32fns.c: Include math.h.
22839 (w32_abort): Declaration moved to nt/config.nt.
22840
22841 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22842 (abort): Redefinition moved to nt/config.nt.
22843
22844 * m/windowsnt.h: Remove.
22845
228462007-10-22 Juanma Barranquero <lekktu@gmail.com>
22847
22848 * emacs.c (Fdump_emacs): Fix typo in message.
22849 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22850 <installation-directory>: Reflow docstring.
22851
228522007-10-22 Juri Linkov <juri@jurta.org>
22853
22854 * minibuf.c: Allow minibuffer default to be a list of default values.
22855 With empty input use the first element of this list as returned default.
22856 (string_to_object)
22857 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22858 (read_minibuf): If defalt is cons, set histstring to its car.
22859 (Fread_string): If default_value is cons, set val to its car.
22860 (Fread_buffer): If def is cons, use its car.
22861 (Fcompleting_read): If defalt is cons, set val to its car.
22862
228632007-10-21 Michael Albinus <michael.albinus@gmx.de>
22864
22865 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22866
228672007-10-20 Juanma Barranquero <lekktu@gmail.com>
22868
22869 * doc.c (Fdocumentation): Check for advice in all cases.
22870
228712007-10-19 Chong Yidong <cyd@stupidchicken.com>
22872
22873 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22874
228752007-10-19 Richard Stallman <rms@gnu.org>
22876
22877 * doc.c (Fdocumentation): Check for and handle an advised function.
22878
228792007-10-19 Juanma Barranquero <lekktu@gmail.com>
22880
22881 * process.c (Fset_process_filter): Doc fix.
22882
228832007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22884
22885 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22886 which caused key-translation-map to applied repeatedly (thus breaking
22887 double-mode).
22888
228892007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22890
22891 * xselect.c (x_own_selection, x_handle_selection_clear)
22892 (x_clear_frame_selections):
22893 * w32menu.c (list_of_panes, list_of_items):
22894 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22895 * textprop.c (validate_plist, interval_has_all_properties)
22896 (interval_has_some_properties, interval_has_some_properties_list)
22897 (add_properties, text_property_list):
22898 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22899 * minibuf.c (Fassoc_string):
22900 * macselect.c (x_own_selection, x_clear_frame_selections)
22901 (Fx_disown_selection_internal):
22902 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22903 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22904
229052007-10-17 Chong Yidong <cyd@stupidchicken.com>
22906
22907 * process.c: Link to libs for calling res_init() if available.
22908 (Fmake_network_process): Call res_init() before getaddrinfo or
22909 gethostbyname, if possible.
22910
229112007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22912
22913 * lread.c (read1): Set pvectype for char_tables.
22914
22915 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22916 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22917 Add type checks.
22918 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22919
22920 * alloc.c (free_misc): Use XMISCTYPE.
22921 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22922
229232007-10-17 Glenn Morris <rgm@gnu.org>
22924
22925 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22926 (syms_of_minibuf): Add Qcompletion_ignore_case.
22927 * dired.c (Qcompletion_ignore_case): Change to external.
22928 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22929 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22930 (Fread_file_name): Use it rather than intern'ing.
22931
22932 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22933 (Fread_coding_system): Ignore case of user input.
22934
229352007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22936
22937 * xdisp.c (handle_display_prop): Ignore display specs after
22938 replacing one when string text is being replaced.
22939 (handle_single_display_spec): Pretend as if characters with display
22940 property haven't been consumed only when buffer text is being replaced.
22941
229422007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22943
22944 * xfns.c (Fx_create_frame, Fx_display_list):
22945 * window.c (window_fixed_size_p, enlarge_window)
22946 (shrink_window_lowest_first):
22947 * macterm.c (init_font_name_table):
22948 * macfns.c (Fx_create_frame, Fx_display_list):
22949 * lread.c (close_load_descs):
22950 * keyboard.c (read_char_x_menu_prompt):
22951 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22952 * coding.c (code_convert_region_unwind): Test the type of an object
22953 rather than just !NILP before extracting data from it.
22954
22955 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22956
22957 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22958 (XMISCANY): New macro.
22959 (XMISCTYPE): Use it.
22960 (struct Lisp_Misc_Any): New type.
22961 (union Lisp_Misc): Use it.
22962 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22963 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22964 (find_symbol_value, set_internal, default_value, Fset_default)
22965 (Fmake_variable_buffer_local, Fmake_local_variable)
22966 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22967 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22968 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22969 * alloc.c (allocate_buffer): Set the size and tag.
22970 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22971 Use XMISCANY.
22972 (die): Follow the GNU convention for error messages.
22973 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22974 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22975 tag any more.
22976 (set_buffer_internal_1):
22977 * frame.c (store_frame_param):
22978 * eval.c (specbind):
22979 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22980
22981 * doc.c (Fsnarf_documentation): Simplify.
22982
229832007-10-14 Juanma Barranquero <lekktu@gmail.com>
22984
22985 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22986 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22987
229882007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22989
22990 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22991
229922007-10-14 Juanma Barranquero <lekktu@gmail.com>
22993
22994 * eval.c (do_autoload): Don't save autoloads.
22995
22996 * data.c (Ffset): Save autoload of the function being set.
22997
229982007-10-07 John Paul Wallington <jpw@pobox.com>
22999
23000 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23001 parameter before setting up faces.
23002
230032007-10-13 Eli Zaretskii <eliz@gnu.org>
23004
23005 * ccl.c (Fregister_code_conversion_map):
23006 * keyboard.c (append_tool_bar_item): Reformat last change.
23007
23008 * lisp.h (eabs): Rename from `abs'. All callers changed.
23009
230102007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23011
23012 * buffer.c (add_overlay_mod_hooklist):
23013 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23014 * fontset.c (make_fontset):
23015 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23016 (append_tool_bar_item):
23017 * macmenu.c (grow_menu_items):
23018 * w32menu.c (grow_menu_items):
23019 * xmenu.c (grow_menu_items): Use larger_vector.
23020
230212007-10-13 Eli Zaretskii <eliz@gnu.org>
23022
23023 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23024 selected frame'' on MSDOS).
23025
230262007-10-12 Martin Rudalics <rudalics@gmx.at>
23027
23028 * frame.c (Qexplicit_name): New variable.
23029 (x_report_frame_params): Report it in parameter alist.
23030 (syms_of_frame): Intern and staticpro it.
23031
230322007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23033
23034 * macfns.c (x_create_tip_frame): Set terminal for frame.
23035
230362007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23037
23038 * frame.c (Qenvironment): Remove.
23039 (syms_of_frame) <Qenvironment>: Don't initialize.
23040 (Fdelete_frame): Don't treat the `environment' param specially.
23041 * frame.h (Qenvironment): Don't declare.
23042 * callproc.c (set_initial_environment): Don't set unused frame param.
23043
23044 * frame.c (Fframe_with_environment): Remove.
23045 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23046
23047 * lisp.h (Fframe_with_environment): Don't declare.
23048
230492007-10-10 Juanma Barranquero <lekktu@gmail.com>
23050
23051 * indent.c (indent_tabs_mode, last_known_column)
23052 (last_known_column_modified): Make static.
23053 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23054
230552007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23056
23057 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23058
230592007-10-09 Jason Rumney <jasonr@gnu.org>
23060
23061 * w32term.c (x_set_window_size): Disable code that attempts to tell
23062 Lisp code about a size change before it actually happens.
23063
230642007-10-09 Richard Stallman <rms@gnu.org>
23065
23066 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23067 return HANDLED_RETURN.
23068
230692007-10-08 Martin Rudalics <rudalics@gmx.at>
23070
23071 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23072 when there's an unread command event.
23073
23074 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23075 window autoselection act appropriately when leaving selected frame.
23076 (syms_of_frame): Initialize focus_follows_mouse.
23077 * frame.h (focus_follows_mouse): Extern it.
23078 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23079 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23080 * msdos.c (dos_rawgetc): Likewise.
23081 * w32term.c (w32_read_socket): Likewise.
23082 * xterm.c (handle_one_xevent): Likewise.
23083 * xdisp.c (syms_of_xdisp): In doc-string of
23084 mouse-autoselect-window mention focus-follows-mouse.
23085
230862007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23087
23088 * macterm.c (mac_load_query_font): Fix missing return value.
23089 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23090 Add BLOCK_INPUT.
23091
230922007-10-08 Richard Stallman <rms@gnu.org>
23093
23094 * xdisp.c (get_window_cursor_type): Implement documented behavior
23095 for cursor-in-non-selected-windows = t.
23096
230972007-10-08 Jason Rumney <jasonr@gnu.org>
23098
23099 * w32.c (w32_get_resource): Always close registry keys.
23100
231012007-10-08 Jason Rumney <jasonr@gnu.org>
23102
23103 * makefile.w32-in (LIBS): Add COMCTL32.
23104
23105 * w32fns.c (globals_of_w32fns): Init common controls.
23106
231072007-10-08 Richard Stallman <rms@gnu.org>
23108
23109 * image.c (our_memory_buffer): Rename from omfib_buffer.
23110
231112007-10-08 Richard Stallman <rms@gnu.org>
23112
23113 * buffer.c (Foverlays_at): Doc fix.
23114
231152007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23116
23117 * fns.c (Fplist_put): Preserve uneven tail data.
23118
231192007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23120
23121 * termhooks.h (enum event_kind): Remove trailing comma.
23122
23123 * frame.h (enum): Remove trailing comma.
23124
231252007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23126
23127 * w32proc.c (delete_child): Don't terminate threads of zombies.
23128
231292007-10-08 Martin Rudalics <rudalics@gmx.at>
23130
23131 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23132
23133 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23134 last-repeatable-command.
23135 (init_kboard): Initialize Vlast_repeatable_command.
23136 (command_loop_1): Set it to real_this_command unless that was
23137 bound to an input event.
23138 (mark_kboards): Mark it.
23139
231402007-10-08 Richard Stallman <rms@gnu.org>
23141
23142 * eval.c (condition-case): Doc fix.
23143
231442007-10-08 Masatake YAMATO <jet@gyve.org>
23145
23146 * xfaces.c (tty_supports_face_attributes_p): Fix code
23147 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23148 was copied and not edited.
23149
231502007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23151
23152 Add new `input-decode-map' keymap and use it for terminal
23153 escape sequences.
23154 * keyboard.h (struct kboard): Add Vinput_decode_map.
23155 Remove Vlocal_key_translation_map.
23156 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23157 (init_kboard): Init input-decode-map.
23158 Replace local-key-translation-map back with key-translation-map.
23159 (syms_of_keyboard): Declare input-decode-map.
23160 Remove local-key-translation-map. Update docstrings.
23161 (mark_kboards): Mark Vinput_decode_map.
23162 Don't mark Vlocal_key_translation_map.
23163 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23164 Replace local-key-translation-map back with key-translation-map.
23165 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23166 Bind in input-decode-map rather than function-key-map.
23167
23168 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23169 This was made redundant by the previous introduction of XSETPVECTYPE.
23170
231712007-10-09 Richard Stallman <rms@gnu.org>
23172
23173 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23174
231752007-09-29 Richard Stallman <rms@gnu.org>
23176
23177 * eval.c (internal_condition_case_2, internal_condition_case_1)
23178 (internal_condition_case): Reenable abort if x_catching_errors ()
23179 to see if that really happens and why.
23180
231812007-10-06 Andreas Schwab <schwab@suse.de>
23182
23183 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23184
231852007-10-04 Juanma Barranquero <lekktu@gmail.com>
23186
23187 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23188
231892007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23190
23191 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23192
231932007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23194
23195 * window.h (struct window):
23196 * window.c (struct save_window_data, struct saved_window):
23197 * termhooks.h (struct terminal):
23198 * process.h (struct Lisp_Process):
23199 * frame.h (struct frame):
23200 * buffer.h (struct buffer):
23201 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23202 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23203 The size field of (pseudo)vectors is now unsigned.
23204 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23205
23206 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23207 Turn `count' into an integer.
23208
23209 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23210 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23211 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23212 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23213 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23214
23215 * alloc.c (allocate_pseudovector): New fun.
23216 (ALLOCATE_PSEUDOVECTOR): New macro.
23217 (allocate_window, allocate_terminal, allocate_frame)
23218 (allocate_process): Use it.
23219 (mark_vectorlike): New function.
23220 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23221 (mark_terminals): Use it.
23222 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23223 (Fmake_byte_code): Use XSETPVECTYPE.
23224
23225 * frame.c (Fframe_parameters): Minor simplification.
23226
23227 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23228
23229 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23230
23231 * buffer.c (Fget_buffer_create, init_buffer_once):
23232 * lread.c (defsubr):
23233 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23234
23235 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23236 defined differently in the m/*.h files.
23237 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23238 (XSETPVECTYPE): New macro.
23239 (XSETPSEUDOVECTOR): Use it.
23240
23241 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23242 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23243
23244 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23245 * lread.c (defvar_per_buffer):
23246 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23247
23248 * window.c (candidate_window_p): Only consider as visible frames that
23249 are on the same terminal.
23250
23251 * m/ibms390x.h (MARKBIT): Remove unused macro.
23252
232532007-10-01 Juanma Barranquero <lekktu@gmail.com>
23254
23255 * lread.c (Fload): Fix typo in docstring.
23256
232572007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23258
23259 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23260 of a non-zero value can't yield zero.
23261
232622007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23263
23264 * term.c (term_clear_mouse_face, term_mouse_highlight)
23265 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23266
23267 * print.c (safe_debug_print): Use XHASH.
23268
23269 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23270 Lisp elements such as tags.
23271 (XHASH): New macro.
23272 (EQ): Use it.
23273 (SREF, SSET, STRING_COPYIN): Use SDATA.
23274 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23275
23276 * alloc.c (mark_terminal): Remove left-over declaration.
23277 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23278 (allocate_vectorlike): Remove type argument. Adjust callers.
23279 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23280 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23281
23282 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23283 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23284 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23285 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23286 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23287 Use them.
23288
23289 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23290 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23291 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23292
232932007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23294
23295 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23296 loaded by default.
23297
232982007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23299
23300 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23301 on this tty.
23302 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23303
23304 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23305 Update all users.
23306 (handle_one_term_event): Use Gpm_DrawPointer.
23307 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23308 Signal errors instead of returning nil. Always return nil.
23309 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23310 Make it a noop if gpm-mouse was not activated.
23311 (syms_of_term): Update names.
23312
233132007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23314
23315 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23316 (init_sys_modes): Check that gpm_tty is the current tty.
23317
23318 * alloc.c (allocate_terminal): Set the vector size to only count the
23319 lisp fields. Initialize those to nil.
23320 (mark_object): Don't treat terminals specially.
23321 (mark_terminal): Remove.
23322 (mark_terminals): Use mark_object instead.
23323
23324 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23325 the GC to the beginning.
23326
23327 * indent.h:
23328 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23329
23330 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23331
233322007-09-25 Jason Rumney <jasonr@gnu.org>
23333
23334 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23335
23336 * w32console.c (create_w32cons_output): Remove.
23337
23338 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23339
23340 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23341 (reset_sys_modes): Use reset_terminal_modes_hook.
23342
233432007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23344
23345 * eval.c (do_autoload): Don't output any message.
23346
233472007-09-24 Juri Linkov <juri@jurta.org>
23348
23349 * emacs.c (standard_args): Change priority of "--no-splash"
23350 from 40 to 3. Add "--no-desktop" with the same priority.
23351
233522007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23353
23354 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23355 and optimize the case where they are all 1.
23356
233572007-09-23 Johannes Weiner <hannes@saeurebad.de>
23358
23359 * lisp.h (abs): Define if not defined.
23360 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23361 Don't define `abs', since it's defined in lisp.h.
23362
233632007-09-22 Eli Zaretskii <eliz@gnu.org>
23364
23365 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23366 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23367 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23368 (init_tty): Use DEV_TTY instead of "/dev/tty".
23369 [WINDOWSNT]: No need to protect from NAME arg being null.
23370
233712007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23372
23373 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23374 up the tty state.
23375
233762007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23377
23378 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23379 (gpm_tty): Change its type.
23380 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23381 (gpm_tty): Change its type and initialize it.
23382 (Fterm_open_connection): Check the frame is indeed a tty.
23383 Use the new gpm_tty.
23384 (Fterm_close_connection): Use the new gpm_tty.
23385 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23386 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23387
233882007-09-21 Juanma Barranquero <lekktu@gmail.com>
23389
23390 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23391 underline_color, to draw strike-through.
23392
233932007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23394
23395 * lisp.h (allocate_terminal): Declare.
23396
23397 * window.c (candidate_window_p): Consider frames that are being placed
23398 by the user as somewhere between visible and iconified.
23399 (window_loop): Prefer windows on the current frame.
23400 (Fselect_window): Move the use of select-frame to the beginning so we
23401 can just delegate all the work (it'll call us back anyway).
23402
23403 * frame.c (Qdisplay_environment_variable):
23404 * frame.h (Qdisplay_environment_variable): Delete.
23405
23406 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23407 of the first arg, since that value may be a union.
23408
23409 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23410 parameter rather than Qdisplay_environment_variable. If all else
23411 fails, look for DISPLAY in initial-environment.
23412
234132007-09-21 Glenn Morris <rgm@gnu.org>
23414
23415 * Makefile.in (emacstool): Remove target.
23416 (lisp, shortlisp): Remove termdev.elc.
23417
234182007-09-21 Markus Triska <markus.triska@gmx.at>
23419
23420 * xterm.c (x_delete_display): Compile session management conditionally.
23421
234222007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23423
23424 * callproc.c (getenv_internal_1): New function.
23425 (getenv_internal): Use it.
23426 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23427
23428 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23429 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23430 (Fset_terminal_parameter): Work with dead terminals as well.
23431 (Fmodify_terminal_parameters): Remove.
23432
23433 * terminal.c (get_terminal): Handle terminals.
23434 Make sure the terminal returned is live.
23435 (create_terminal): Use allocate_terminal.
23436 (mark_terminals): Move to alloc.c.
23437 (delete_terminal): Use terminal->name as liveness status.
23438 NULL out fields after freeing their contents.
23439 Don't deallocate the object.
23440 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23441 rather than an int.
23442 (Fterminal_live_p): Accept non-integer arguments.
23443 (Fterminal_list): Return terminal objects rather than an ints.
23444
23445 * alloc.c (enum mem_type): New member for `terminal' objects.
23446 (allocate_terminal): New function.
23447 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23448 Handle terminals.
23449 (mark_terminal): New fun.
23450 (mark_terminals): Move from terminal.c.
23451
23452 * term.c (get_tty_terminal): Don't treat output_initial specially.
23453 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23454 (delete_tty): Use terminal->name as liveness status.
23455
23456 * termhooks.h (struct terminal): Make it into a pseudovector.
23457 Remove `deleted' replaced by checking `name's nullness.
23458
23459 * print.c (print_object): Handle terminals.
23460
23461 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23462 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23463
23464 * frame.c (make_terminal_frame):
23465 * keyboard.c (tty_read_avail_input):
23466 * w32term.c (x_delete_terminal):
23467 * xfns.c (Fx_create_frame, x_create_tip_frame):
23468 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23469
234702007-09-20 Glenn Morris <rgm@gnu.org>
23471
23472 * process.c (Fmake_network_process): Doc fix.
23473
234742007-09-19 Jason Rumney <jasonr@gnu.org>
23475
23476 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23477
234782007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23479
23480 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23481 Fix a C warning regarding variable constness.
23482
23483 * xterm.c (handle_one_xevent): Fix a C warning.
23484
234852007-09-18 Jason Rumney <jasonr@gnu.org>
23486
23487 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23488
234892007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23490
23491 * gtkutil.c (gdpy_def): New variable.
23492 (xg_initialize): Initialize gdpy_def.
23493 (xg_display_close): If no other display exists, set gdpy_def to a
23494 new connection.
23495
234962007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23497
23498 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23499 when we have no file name for the icon.
23500 (xg_tool_bar_expose_callback): Remove.
23501 (xg_create_tool_bar): Don't connect expose signal to
23502 xg_tool_bar_expose_callback.
23503 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23504
235052007-09-16 Andreas Schwab <schwab@suse.de>
23506
23507 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23508 values instead of zapping them.
23509
235102007-09-14 Glenn Morris <rgm@gnu.org>
23511
23512 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
23513 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
23514 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
23515 scope and rename to omfib_buffer for clarity.
23516 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
23517
235182007-09-14 Kenichi Handa <handa@m17n.org>
23519
23520 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
23521
235222007-09-13 Jason Rumney <jasonr@gnu.org>
23523
23524 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
23525
23526 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
23527
23528 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
23529 (mac_term_init): Call here instead, passing rif.
23530
235312007-09-13 Glenn Morris <rgm@gnu.org>
23532
23533 * s/hpux.h: No longer define `static' as nothing.
23534
235352007-09-13 Johan Bockgård <bojohan@gnu.org>
23536
23537 * callint.c (Fcall_interactively): Remove unused var `fun'.
23538
235392007-09-12 Romain Francoise <romain@orebokech.com>
23540
23541 * window.c (prefer_window_split_horizontally, display_buffer):
23542 Revert 2007-09-08 change.
23543
235442007-09-12 Glenn Morris <rgm@gnu.org>
23545
23546 * alloca.c: Remove file.
23547 * Makefile.in (alloca): Do not undef.
23548 (allocaobj, alloca.o): Remove.
23549 (otherobj): Remove allocaobj.
23550 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23551 * regex.c (C_ALLOCA): Remove all references and code that was only
23552 used when this was defined.
23553 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23554 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23555 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23556
23557 * Makefile.in (SOURCES, unlock, relock): Delete.
23558
23559 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23560 (menu_grab_callback): All uses changed.
23561
23562 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23563 (x_reply_selection_request): All uses changed.
23564
235652007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23566
23567 * lread.c (load_warn_old_style_backquotes): Change message to look
23568 better when it appears in the middle of byte-compiler messages.
23569
235702007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23571
23572 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23573
23574 * xterm.c (x_create_terminal): Add comment.
23575
23576 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23577
235782007-09-10 Richard Stallman <rms@gnu.org>
23579
23580 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23581
235822007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23583
23584 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23585 (DEFUN): Document `intspec', use it instead of `prompt'.
23586
23587 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23588
23589 * data.c (Finteractive_form): If the interactive specification starts
23590 with a `(', use it as a Lisp form.
23591
23592 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23593 name and file modes.
23594
23595 * callint.c (Fcall_interactively): Comment fixes.
23596
235972007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23598
23599 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23600 and compiled functions.
23601
236022007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23603
23604 * window.c (prefer_window_split_horizontally): New variable.
23605 (display_buffer): Consider splitting window horizontally depending
23606 on prefer_window_split_horizontally.
23607
236082007-09-08 Eli Zaretskii <eliz@gnu.org>
23609
23610 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23611
236122007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23613
23614 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23615
23616 * frame.c (x_set_frame_parameters): Check number is positive before
23617 using XFASTINT.
23618
23619 * window.c (freeze_window_start): Don't presume selected_window holds
23620 a window object.
23621 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23622
236232007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23624
23625 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23626
236272007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23628
23629 * window.c (Vsplit_window_preferred_function): New var.
23630 (Fdisplay_buffer): Use it.
23631 (syms_of_window): Export, and initialize it.
23632
236332007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23634
23635 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23636
236372007-09-06 Glenn Morris <rgm@gnu.org>
23638
23639 * gtkutil.c (menu_grab_callback) <cnt>:
23640 * xselect.c (x_reply_selection_request) <cnt>: Move static
23641 variable to file scope.
23642
236432007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23644
23645 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23646 consistent values of selected_frame and selected_window.
23647
236482007-09-04 Jason Rumney <jasonr@gnu.org>
23649
23650 * w32console.c (initialize_w32_display): Zero unused hooks.
23651
236522007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23653
23654 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
23655 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
23656
236572007-09-04 Jason Rumney <jasonr@gnu.org>
23658
23659 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
23660 in w32console.c. Set up input. Remove XXX comments that have been
23661 confirmed as correct.
23662
23663 * s/ms-w32.h (MULTI_KBOARD): Define.
23664
23665 * w32console.c (one_and_only_w32cons): Remove.
23666 (initialize_w32_display): Take terminal argument.
23667
23668 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
23669 initialize_w32_display.
23670 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
23671
23672 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
23673
23674 * keyboard.c (discard_mouse_events): Discard it.
23675 (make_lispy_event): Translate it to a lisp event.
23676 (lispy_wheel_names): Add wheel-left and right events.
23677 (syms_of_keyboard): Enlarge wheel_syms.
23678
23679 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
23680 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
23681
23682 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
23683
23684 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
23685 from WM_MOUSEHWHEEL.
23686 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
23687
23688 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
23689 terminal.
23690
23691 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
23692 keyboard for the terminal.
23693
236942007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23695
23696 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
23697 (Vresume_tty_hook): Rename from Vresume_tty_functions.
23698 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
23699 and resume-tty-function to resume-tty-hook.
23700 (Fsuspend_tty, Fresume_tty): Use new names.
23701
237022007-09-02 Jan Djärv <jan.h.d@swipnet.se>
23703
23704 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
23705 if it starts with "n:".
23706
237072007-08-31 Jan Djärv <jan.h.d@swipnet.se>
23708
23709 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
23710
237112007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
23712
23713 * frame.h:
23714 * frame.c (Qterm_environment_variable): Remove.
23715 (syms_of_frame): Don't init and staticpro it.
23716
23717 * callproc.c (getenv_internal): Remove special case for $TERM.
23718
23719 * callproc.c (Vinitial_environment): New variable.
23720 (set_initial_environment): Initialize it.
23721 (syms_of_callproc): Declare it.
23722 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
23723 TERM under which a process runs is never related to the TERM in which
23724 Emacs is running.
23725
237262007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23727
23728 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
23729 * s/darwin.h: ... do it here.
23730
237312007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
23732
23733 * lisp.h (set_initial_environment): Rename from set_global_environment.
23734
23735 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
23736 removed by mistake on the multi-tty branch.
23737
23738 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
23739 (Fmodify_frame_parameters): Return a value.
23740
23741 * image.c (png_load): Comment-out var only used in commented-out code.
23742
23743 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
23744 before passing it to mark_object.
23745
23746 * xfaces.c (internal_resolve_face_name): Return a value.
23747 (internal_resolve_face_name, resolve_face_name_error): Comment out.
23748
23749 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
23750 (x_icon): Comment-out var only used in commented-out code.
23751
237522007-08-29 Romain Francoise <romain@orebokech.com>
23753
23754 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
23755 QUIT hasn't been provided.
23756
237572007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23758
23759 * callproc.c (child_setup, getenv_internal): Use the
23760 display-environment-variable and term-environment-variable frame params.
23761 (set_initial_environment): Initialise Vprocess_environment.
23762
23763 * config.in: Disable multi-keyboard support on a mac.
23764
23765 * frame.c (Qterm_environment_variable)
23766 (Qdisplay_environment_variable): New variables.
23767 (syms_of_frame): Intern and staticpro them.
23768 (Fmake_terminal_frame): Disable output method test.
23769
23770 * frame.h: Declare them here.
23771
23772 * macfns.c (x_set_mouse_color): Get rif from the frame.
23773 (x_set_tool_bar_lines): Don't use updating_frame.
23774 (mac_window): Add 2 new parameters for consistency with other systems.
23775 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
23776 frame parameters following what is done in X11 and w32. Don't use
23777 FRAME_MAC_DISPLAY_INFO.
23778 (Fx_open_connection, start_hourglass): Remove window-system check.
23779 (x_create_tip_frame): Get the keyboard from the terminal.
23780
23781 * macmenu.c: Reorder includes.
23782 (Fx_popup_menu): Use terminal specific mouse_position_hook.
23783
23784 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
23785 terminal parameter.
23786 (x_clear_frame): Add a frame parameter.
23787 (note_mouse_movement): Get rif from the frame.
23788 (mac_term_init): Initialize the terminal.
23789 (mac_initialize): Make static and move terminal initialization ...
23790 (mac_create_terminal): ... to this new function.
23791
23792 * macterm.h (struct mac_display_info): Add terminal.
23793 (mac_initialize): Delete declaration.
23794
23795 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
23796
23797 * sysdep.c: Comment out text after #endif.
23798
23799 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
23800 is defined. Better initialize ttys in windows. Use terminal
23801 specific mouse_position_hook.
23802
23803 * termhooks.h (union display_info): Add mac_display_info.
23804
23805 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
23806 Set the default minibuffer frame, window_system and the rest of the
23807 frame parameters following what is done in X11.
23808
23809 * w32term.c (w32_initialize): Make static.
23810
23811 * xselect.c (x_handle_selection_clear): Only access
23812 terminal->kboard when MULTI_KBOARD is defined.
23813
23814 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23815 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23816
238172007-08-29 Jason Rumney <jasonr@gnu.org>
23818
23819 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23820 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23821
23822 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23823 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23824
23825 * keyboard.c (restore_kboard_configuration): Only define when
23826 MULTI_KBOARD defined.
23827
23828 * makefile.w32-in: Update dependancies from Makefile.in.
23829 (OBJ1): Add terminal.$(O)
23830
23831 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23832 Don't define function body.
23833 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23834
23835 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23836
23837 * w32.c (request_sigio, unrequest_sigio): Remove.
23838
23839 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23840 (w32con_clear_frame, w32con_clear_end_of_line)
23841 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23842 (w32con_delete_glyphs, w32con_set_terminal_window)
23843 (scroll_line, w32_sys_ring_bell): Add frame arg.
23844 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23845 Add terminal arg.
23846 (PICK_FRAME): Remove.
23847 (w32con_write_glyphs): Use frame specific terminal coding.
23848 (one_and_only_w32cons): New global variable.
23849 (initialize_w32_display): Use it for storing hooks.
23850 (create_w32cons_output): New function.
23851
23852 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23853 arg a frame.
23854
23855 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23856 Set window_system.
23857 (x_set_tool_bar_lines): Don't use updating_frame.
23858 (Fx_create_frame): Set terminal and ref count.
23859 (Fx_open_connection): Remove window-system check.
23860
23861 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23862
23863 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23864 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23865 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23866 Add frame arg.
23867 (x_delete_terminal, w32_create_terminal): New functions.
23868 (w32_term_init): Create a terminal.
23869 (w32_initialize): Move terminal specific initialization to
23870 w32_create_terminal.
23871
23872 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23873 (w32_clear_rect, w32_clear_area): Use background from frame.
23874 (w32_display_info): Add terminal.
23875 (w32_sys_ring_bell, x_delete_display): Declare here.
23876
23877 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23878
23879 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23880
238812007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23882
23883 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23884 Fix get_named_tty calls for the controlling tty.
23885
238862007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23887
194d44e7 23888 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
23889
238902007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23891
23892 * term.c (tty_insert_glyphs): Add missing first parameter.
23893
238942007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23895
23896 * buffer.c (Fbuffer_list, Fbury_buffer):
23897 Take frame->buried_buffer_list into account.
23898
23899 * cm.c (current_tty): New variable, for cmputc().
23900 (cmputc): Use it.
23901 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23902 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23903 (cmgoto): Add tty parameter. Pass it on to calccost().
23904 Use emacs_tputs() instead of tputs().
23905
23906 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23907 tputs().
23908 (current_tty): New variable, for cmputc().
23909 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23910
23911 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23912 (internal_condition_case, internal_condition_case_1)
23913 (internal_condition_case_2): Don't abort when x_catching_errors.
23914
23915 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23916 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23917 prevent crashes caused by bogus longjmps in read_char.
23918
23919 * keymap.h (Fset_keymap_parent): Add EXFUN.
23920
23921 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23922 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23923 Remove redundant definition.
23924
23925 * macfns.c (x_set_mouse_color, x_make_gc):
23926 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23927
23928 * w32term.c (x_free_frame_resources):
23929 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23930 (w32_initialize): Use the accessor macros for terminal characteristics.
23931
23932 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23933 Use the accessor macros for terminal characteristics.
23934 * msdos.c (internal_terminal_init): Use the accessor macros for
23935 terminal characteristics.
23936 (ScreenVisualBell, internal_terminal_init):
23937 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23938
23939 * termopts.h (no_redraw_on_reenter): Declare.
23940
23941 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23942 (mark_terminals, mark_ttys): Declare.
23943 (Fgarbage_collect): Call them.
23944 (mark_object): Mark buried_buffer_list.
23945
23946 * prefix-args.c: Include stdlib.h for exit.
23947
23948 * syssignal.h: Add comment.
23949
23950 * indent.c: Include stdio.h.
23951
23952 * window.h (Vinitial_window_system): Declare.
23953 (Vwindow_system): Delete declaration.
23954
23955 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23956
23957 * image.c (lookup_image): Don't initialize `c' until the xasserts
23958 have been run.
23959
23960 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23961 FRAME_FOREGROUND_PIXEL.
23962
23963 * print.c (print_preprocess): Don't lose print_depth levels while
23964 iterating.
23965
23966 * widget.c (update_from_various_frame_slots):
23967 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23968
23969 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23970 frames.
23971 (window_internal_height): Remove bogus make_number call.
23972 (init_window_once): Call make_terminal_frame with two zero parameters.
23973
23974 * fileio.c (Fread_file_name): Update comment.
23975
23976 * callint.c (Fcall_interactively):
23977 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23978 Make sure it is correctly unwound.
23979
23980 * xsmfns.c (x_session_close): New function.
23981
23982 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23983 Delete declarations.
23984
23985 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23986 (x_output): Remove background_pixel and foreground_pixel fields.
23987 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23988 (x_delete_device, x_session_close): Declare.
23989
23990 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23991 (read_filtered_event): Call `read_char' with a local
23992 `wrong_kboard_jmpbuf'.
23993
23994 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23995 Don't call single_kboard_state. Use FRAME_RIF.
23996
23997 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23998 systems.
23999
24000 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24001 (Fframe_with_environment, Fset_input_meta_mode)
24002 (Fset_quit_char): EXFUN.
24003 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24004 (init_sys_modes, reset_sys_modes): Update prototypes.
24005 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24006
24007 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24008 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24009 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24010 Delete declarations.
24011 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24012 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24013 New declarations.
24014
24015 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24016 already does that during init_display(). Call syms_of_keymap
24017 before syms_of_keyboard. Call `syms_of_terminal'.
24018 Call set_initial_environment, not set_process_environment.
24019 (shut_down_emacs): Call reset_all_sys_modes() instead of
24020 reset_sys_modes().
24021
24022 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24023 (internal_resolve_face_name, resolve_face_name_error): New functions.
24024 (resolve_face_name): Protect against loops and errors thrown by Fget.
24025 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24026 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24027
24028 * scroll.c: Replace CURTTY() with local variables throughout the
24029 file (where applicable).
24030 (calculate_scrolling, calculate_direct_scrolling)
24031 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24032 characteristics.
24033
24034 * keymap.c (Vfunction_key_map): Remove.
24035 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24036 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24037 (Vkey_translation_map): Remove.
24038 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24039 (Fdescribe_buffer_bindings)
24040 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24041 Update for terminal-local key-translation-map.
24042
24043 * Makefile.in (callproc.o): Update dependencies.
24044 (lisp, shortlisp): Add termdev.elc.
24045 (obj): Add terminal.o.
24046 (terminal.o): Add dependencies.
24047 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24048 (data.o, fns.o): Add termhooks.h dependency.
24049 (SOME_MACHINE_LISP): Add dnd.elc.
24050 (minibuf.o): Fix typo.
24051 Update dependencies.
24052
24053 * data.c (do_symval_forwarding, store_symval_forwarding)
24054 (find_symbol_value): Use the selected frame's keyboard, not
24055 current_kboard.
24056
24057 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24058 Vwindow_system.
24059
24060 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24061 Fmenu_bar_open.
24062 (syms_of_xmenu): Update defsubr.
24063 (mouse_position_for_popup, Fx_popup_menu)
24064 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24065 (set_frame_menubar, free_frame_menubar)
b97439ce 24066 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24067 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24068 an X frame.
24069
24070 * xselect.c (x_own_selection): Abort if not an X frame.
24071 (some_frame_on_display): Check if it is an X frame.
24072 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24073
24074 * coding.c: Include frame.h and termhooks.h.
24075 (terminal_coding, keyboard_coding): Delete.
24076 (Fset_terminal_coding_system_internal)
24077 (Fset_keyboard_coding_system_internal)
24078 (Fkeyboard_coding_system)
24079 (Fterminal_coding_system): Add a terminal parameter.
24080 Get terminal_coding from the terminal.
24081 (init_coding_once): Don't call setup_coding_system here.
24082
24083 * dispextern.h (set_scroll_region, turn_off_insert)
24084 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24085 (tty_clear_end_of_line, tty_setup_colors)
24086 (delete_tty, updating_frame)
24087 (produce_special_glyphs, produce_glyphs, write_glyphs)
24088 (insert_glyphs): Remove.
24089 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24090 (tty_turn_off_highlight, get_tty_size): Add declaration.
24091 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24092
24093 * frame.h (enum output_method): Add output_initial.
24094 (struct x_output): Delete.
24095 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24096 Access foreground_pixel and background_pixel directly from the frame.
24097 (tty_display): Delete.
24098 (struct frame): Add buried_buffer_list, foreground_pixel,
24099 background_pixel and terminal. Delete kboard.
24100 (union output_data): Add tty.
24101 (FRAME_KBOARD): Get the kboard from the terminal.
24102 (FRAME_INITIAL_P): New macro.
24103 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24104 (Qterm_environment_variable, Qdisplay_environment_variable)
24105 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24106 New declarations.
24107
24108 * termchar.h (tty_output, tty_display_info): New structures.
24109 (tty_list): Declare.
24110 (FRAME_TTY, CURTTY): New macros.
24111 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24112 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24113 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24114 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24115
24116 * callproc.c: Include frame.h and termhooks.h, for terminal
24117 parameters.
24118 (add_env): New function.
24119 (child_setup): Use it.
24120 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24121 (getenv_internal): Fix get_terminal_param call.
24122 (Fgetenv_internal, egetenv): Update doc.
24123 (syms_of_callproc): Initialize Vprocess_environment to nil.
24124 Register and initialize them. Remove obsolete defvars. Update doc
24125 strings.
24126 (child_setup): Handle Vlocal_environment_variables.
24127 (getenv_internal): Add terminal parameter.
24128 Handle Vlocal_environment_variables.
24129 (Fgetenv_internal): Add terminal parameter.
24130 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24131 environment in a frame (not terminal) parameter. Update doc strings.
24132 (set_initial_environment): Rename from set_global_environment.
24133 Store Emacs environment in initial frame parameter.
24134
24135 * xdisp.c (redisplay_internal): Update references to
24136 `previous_terminal_frame'.
24137 (display_mode_line, Fformat_mode_line): Replace calls to
24138 `push_frame_kboard' with `push_kboard'.
24139 (get_glyph_string_clip_rects): Add extra parentheses and
24140 braces to prevent compiler warnings.
24141 (calc_pixel_width_or_height): Add xassert to check that the
24142 frame is alive. Don't call `lookup_image' on a termcap frame.
24143 (message2_nolog, message3_nolog, redisplay_internal)
24144 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24145 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24146 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24147 (Fx_display_pixel_width, Fx_display_pixel_height)
24148 (Fx_display_planes, Fx_display_color_cells)
24149 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24150 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24151 (Fx_display_backing_store, Fx_display_visual_class)
24152 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24153 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24154
24155 * xfns.c (x_set_foreground_color x_set_background_color)
24156 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24157 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24158 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24159 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24160 terminal that is being deleted.
24161 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24162 frame parameter, and make sure it overrides any user-supplied setting.
24163 (Fx_close_connection, Fx_synchronize): Unify argument names with
24164 the rest of the DEFUNs.
24165
24166 * dispnew.c (Fsend_string_to_terminal): Update call to
24167 `get_tty_terminal'.
24168 (Fredraw_frame, Fsend_string_to_terminal)
24169 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24170 FRAME_TERMCAP_P and FRAME_TTY.
24171 (window_change_signal): Don't believe width/height values that are
24172 impossibly small.
24173 (Vinitial_window_system): Rename from Vwindow_system.
24174 (termscript, Wcm, rif): Delete.
24175
24176 * termhooks.h (struct terminal): New struct containing the
24177 previously global text display hooks and new members NAME,
24178 DELETED and PARAM_ALIST.
24179 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24180 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24181 (FRAME_RIF): New macros.
24182 (get_terminal_param, get_device): New declarations.
24183 (termscript): Delete declaration.
24184
24185 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24186 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24187 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24188 FRAME_FOREGROUND_PIXEL.
24189 (x_fully_uncatch_errors): Disable definition.
24190 (x_scroll_bar_expose): Fix reference to foreground pixel.
24191 (XTread_socket): Disable loop on all X displays.
24192 (x_delete_terminal): Don't set terminal->deleted and let
24193 delete_terminal delete the frames on the terminal.
24194 (x_delete_display): Doc update to reflect changes in
24195 delete_terminal.
24196 (x_display_info) <terminal>: Move member earlier in the struct.
24197 (deleting_tty): Remove old variable.
24198 (Fsuspend_tty): Call clear_tty_hooks.
24199 (Fresume_tty, init_tty): Call set_tty_hooks.
24200 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24201 errors on X frames.
24202 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24203 (handle_one_xevent): Initialize `f' to NULL.
24204 (x_delete_terminal, x_create_terminal): New functions.
24205 (XTset_terminal_modes, XTreset_terminal_modes)
24206 (XTread_socket, x_connection_closed, x_term_init)
24207 (x_term_init, x_delete_display): Add terminal parameter.
24208 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24209 X connections.
24210
24211 * frame.c: Include termchar.h.
24212 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24213 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24214 (Qdisplay_environment_variable): New vars.
24215 (Fframep): Deal with output_initial.
24216 (Fframe-live-p): Doc fix.
24217 (Fwindow-system): New function.
24218 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24219 (make_terminal_frame): Don't create frames on a terminal that is
24220 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24221 (store_frame_param): Check for found_for_frame before calling XFRAME.
24222 (Fmake_terminal_frame): Handle NULL tty names correctly.
24223 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24224 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24225 frames to refer to a deleted frame in their 'environment parameter.
24226 (Fframe_with_environment): New function.
24227 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24228 (get_future_frame_param): New function.
24229 (Fmake_terminal_frame): Use it.
24230 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24231
24232 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24233 * sysdep.c (reset_sys_modes): Update for renames.
24234
24235 * keyboard.c (tty_read_avail_input): New function.
24236 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24237 (syms_of_keyboard): Defsubr them.
24238 (Fset_input_meta_mode, Fset_quit_char): New functions.
24239 (Fset_input_mode): Split to above functions.
24240 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24241 parameter. Use it in call to `read_char'.
24242 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24243 Set wrong_kboard_jmpbuf correctly in recursive calls.
24244 Use current_kboard to access Vkeyboard_translate_table.
24245 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24246 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24247 Update longjmp invocations. Remember the original current_kboard,
24248 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24249 changes it. Comment out unnecessary calls to
24250 `record_single_kboard_state' and `any_kboard_state'.
24251 Update recursive calls.
24252 (wrong_kboard_jmpbuf): Remove global variable.
24253 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24254 Handle deleted interrupted_kboards correctly; that is a legal
24255 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24256 and read_char calls. Abort if interrupted_kboard died in read_char.
24257 (any_kboard_state, single_kboard_state)
24258 (push_frame_kboard): Remove function.
24259 (pop_kboard): Switch out of single_kboard mode if the kboard has
24260 been deleted. Remove unused variable. Help debugging by not
24261 changing current_kboard unnecessarily. Set current_kboard to the
24262 kboard of the selected frame when the stored kboard object has
24263 been deleted before pop_kboard.
24264 (temporarily_switch_to_single_kboard): Change first parameter to a
24265 frame pointer. Throw an error when caller wants to change kboards
24266 while in single_kboard mode. Don't push_kboard if we weren't in
24267 single kboard state. Don't pop_kboard if we popped into any
24268 kboard state.
24269 (restore_kboard_configuration): Abort if pop_kboard changed the
24270 kboard in single_kboard mode. Call pop_kboard only after setting
24271 up single_kboard mode.
24272 (Frecursive_edit): Switch to single_kboard mode only in nested
24273 command loops.
24274 (cmd_error, command_loop, command_loop_1, timer_check):
24275 Comment out unnecessary call to `any_kboard_state' and
24276 `record_single_kboard_state'.
24277 (delete_kboard): Exit single_kboard mode if we have just deleted
24278 that kboard. Use FRAME_KBOARD.
24279 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24280 `fatal_error_signal'.
24281 (record_single_kboard_state): Don't push_kboard if we weren't in
24282 single kboard state. Don't pop_kboard if we popped into any
24283 kboard state.
24284 (push_frame_kboard): Rename to push_kboard.
24285 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24286 (read_avail_input): Read input from all terminals.
24287 (mark_kboards): Also mark Vkeyboard_translate_table.
24288 (kbd_buffer_store_event_hold): Simplify condition.
24289 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24290 (Vkeyboard_translate_table): Move to struct kboard.
24291 (init_kboard): Initialize Vkeyboard_translate_table.
24292 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24293 Vkeyboard_translate_table. Update doc strings. Update docs of
24294 local-function-key-map and function-key-map.
24295
24296 * terminal.c: New file.
24297
24298 * term.c: Include errno.h.
24299 (Vring_bell_function, device_list, initial_device)
24300 (next_device_id, ring_bell, update_begin, update_end)
24301 (set_terminal_window, cursor_to, raw_cursor_to)
24302 (clear_to_end, clear_frame, clear_end_of_line)
24303 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24304 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24305 (syms_of_term): Move their initialization to terminal.c.
24306 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24307 (Ftty_display_color_cells)
24308 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24309 (clear_tty_hooks, set_tty_hooks)
24310 (init_tty, maybe_fatal): New functions.
24311 (Ftty_type): Return nil if terminal is not on a tty instead of
24312 throwing an error. Doc update.
24313 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24314 Doc update. Initialize new subrs and variables.
24315 (delete_tty): Use terminal->deleted.
24316 (tty_set_terminal_modes): Rename from set_terminal_modes.
24317 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24318 (set_scroll_region): Rename to `tty_set_scroll_region'.
24319 (turn_on_insert): Rename to `tty_turn_on_insert'.
24320 (turn_off_insert): Rename to `tty_turn_off_insert'.
24321 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24322 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24323 (toggle_highligh): Rename to `tty_toggle_highlight'.
24324 (background_highlight): Rename to `tty_background_highlight'.
24325 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24326 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24327 (tty_set_scroll_region, tty_background_highlight)
24328 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24329 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24330 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24331 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24332 Add static modifier.
24333 (tty_reset_terminal_modes, tty_set_terminal_window)
24334 (tty_set_scroll_region, tty_background_highlight)
24335 (tty_highlight_if_desired, tty_cursor_to)
24336 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24337 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24338 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24339 renames.
24340
243412007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24342
24343 * keyboard.c: Qrtl is new.
24344 (parse_tool_bar_item): Handle :rtl keyword.
24345 (syms_of_keyboard): Intern :rtl keyword.
24346
24347 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24348
24349 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24350 so no Lisp code is executed.
24351 (file_for_image, find_rtl_image): New functions.
24352 (xg_get_image_for_pixmap): Use file_for_image.
24353 (update_frame_tool_bar): If direction is RTL, use RTL image if
24354 defined. Use Gtk stock images if defined.
24355
243562007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24357
24358 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24359 for nonexistent or zero-width glyph in composition glyph.
24360
243612007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24362
24363 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24364
24365 * xdisp.c (Finvisible_p): New function.
24366 (syms_of_xdisp): defsubr it.
24367
243682007-08-24 Juanma Barranquero <lekktu@gmail.com>
24369
24370 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24371 Doc fixes.
24372
243732007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24374
24375 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24376
243772007-08-24 Martin Rudalics <rudalics@gmx.at>
24378
24379 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24380 whether decoding has modified buffer contents.
24381
243822007-08-24 Jason Rumney <jasonr@gnu.org>
24383
24384 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24385 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24386 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24387 (init_svg_functions) [HAVE_NTGUI]: New function.
24388 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24389 (svg_load_image): Use them.
24390 (svg_load_image) [HAVE_NTGUI]: Implement background.
24391
243922007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24393
24394 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24395 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24396 (LIBX): Remove @RSVG_LIBS@.
24397 (LIBES): Add $(RSVG_LIBS).
24398
24399 * image.c (svg_load_image): Blend with specified background if exists.
24400 Use IMAGE_BACKGROUND. Add Mac OS Support.
24401
24402 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24403 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24404 Remove macros.
24405 [MAC_OSX] (socket_callback): Do nothing.
24406 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24407 ReceiveNextEvent.
24408 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24409 socket_callback.
24410 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24411
244122007-08-22 Glenn Morris <rgm@gnu.org>
24413
24414 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24415
244162007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24417
24418 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24419
24420 * image.c: Add support for SVG images. Some additional comments
24421 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24422 (svg_image_p): New function to test for SVG image.
24423 (svg_load): New function to load SVG image.
24424 (svg_load_image): New function, helper for svg_load.
24425 (Qsvg): New Lisp_object.
24426 (svg_keyword_index): New enum.
24427 (svg_format): New static `image_keyword' struct.
24428 (svg_type): New static `image_type' struct.
24429 (librsvg/rsvg.h): Include it.
24430
244312007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24432
24433 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24434
244352007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24436
24437 * lread.c (Qold_style_backquotes): New var.
24438 (syms_of_lread): Init and staticpro it.
24439 (load_warn_old_style_backquotes): New fun.
24440 (Fload): Use them to warn about old style backquotes.
24441 (end_of_file_error, Fload): Remove unused vars.
24442
24443 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24444
24445 * lread.c (Vold_style_backquotes): New var.
24446 (syms_of_lread): Init and export it to Elisp.
24447 (read1): Set it when we find an old-style (back)quote.
24448
244492007-08-22 Jason Rumney <jasonr@gnu.org>
24450
24451 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24452
244532007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24454
24455 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24456
244572007-08-19 Richard Stallman <rms@gnu.org>
24458
24459 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24460
244612007-08-19 Andreas Schwab <schwab@suse.de>
24462
24463 * alloc.c (pure): Round PURESIZE up.
24464
244652007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24466
24467 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24468 active frame.
24469
244702007-08-16 Richard Stallman <rms@gnu.org>
24471
24472 * eval.c (Fcommandp): Add parens to clarify.
24473
24474 * minibuf.c (Fall_completions): Use enum for type of table.
24475
24476 * emacs.c (USAGE2): Improve text.
24477
244782007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24479
24480 * term.c (tty_default_color_capabilities): Declare static
24481 variables in file scope, to avoid HPUX compiler problem.
24482
244832007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24484
24485 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24486 to gtk_toolbar_insert.
24487
244882007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24489
24490 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24491
24492 * insdel.c (reset_var_on_error): New fun.
24493 (signal_before_change, signal_after_change):
24494 Use it to reset (after|before)-change-functions to nil in case of error.
24495 Bind inhibit-modification-hooks to t.
24496 Don't bind (after|before)-change-functions to nil while they run.
24497
244982007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24499
24500 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24501 filling pixmap with stippled background.
24502
245032007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24504
24505 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24506 Don't use invisible frame as parent window for repositioning.
24507
245082007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
24509
24510 * print.c (new_backquote_output): Rename from old_backquote_output.
24511 (print): Inverse its logic (according to its name) so as to match the
24512 behavior of new_backquote_flag in lread.c.
24513
245142007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24515
24516 * gmalloc.c (posix_memalign): New function.
24517
24518 * macterm.c (frame_highlight, frame_unhighlight): Don't call
24519 ActivateControl/DeactivateControl here.
24520 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
24521 frame-notice-user-settings is non-nil.
24522 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
24523 for kEventParamFMFontStyle.
24524 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
24525 mac_pass_command_to_system and mac_pass_control_to_system here.
24526 (XTread_socket): Call ActivateControl/DeactivateControl here.
24527 (XTread_socket) [TARGET_API_MAC_CARBON]:
24528 Check mac_pass_command_to_system and mac_pass_control_to_system here.
24529 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
24530 for window repositioning.
24531
245322007-08-08 Glenn Morris <rgm@gnu.org>
24533
24534 * Replace `iff' in doc-strings and comments.
24535
245362007-08-07 Chong Yidong <cyd@stupidchicken.com>
24537
24538 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
24539
245402007-08-07 Martin Rudalics <rudalics@gmx.at>
24541
24542 * fileio.c (Finsert_file_contents): Run format-decode and
24543 after_insert_file_functions on entire buffer when REPLACE is
24544 non-nil and inhibit modification_hooks and point_motion_hooks.
24545 For consistency, run after_insert_file_functions iff something
24546 got inserted. Move signal_after_change and update_compositions
24547 after code running after_insert_file_functions. Make sure that
24548 undo_list doesn't record intermediate steps of the decoding process.
24549
245502007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24551
24552 * emacs.c (main)
24553 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24554 Call malloc_enable_thread on interactive startup.
24555
24556 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24557 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24558 [USE_PTHREAD]: Conditionalize with it.
24559 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24560 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24561 New functions.
24562
245632007-08-06 Chong Yidong <cyd@stupidchicken.com>
24564
24565 * xdisp.c (redisplay_window): When restoring original buffer
24566 position, make sure it is still valid.
24567
24568 * image.c (png_load): Ignore png-supplied background color.
24569
245702007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24571
24572 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24573 Use kCFAbsoluteTimeIntervalSince1970.
24574
24575 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24576 New variable.
24577 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24578 event loop should be quit.
24579 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24580 Quit dialog event loop if quit_dialog_event_loop is set.
24581
24582 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24583 (Selection): New typedef. Use instead of ScrapRef.
24584 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24585 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24586 (mac_clear_selection): Rename from clear_scrap.
24587 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24588 scrap_has_target_type. All uses changed.
24589 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24590 (mac_selection_has_target_p): New functions.
24591 (mac_put_selection_value): Rename from put_scrap_string.
24592 (mac_get_selection_value): Rename from get_scrap_string.
24593 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24594 (put_scrap_private_timestamp, scrap_has_target_type)
24595 (get_scrap_private_timestamp): Remove functions.
24596 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24597 (x_own_selection, x_get_local_selection):
24598 Use mac_valid_selection_value_p.
24599 (x_own_selection): Don't use put_scrap_private_timestamp.
24600 Record OWNERSHIP-INFO into Vselection_alist instead.
24601 (x_get_local_selection): Don't check type if request is local.
24602 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24603 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24604
246052007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24606
24607 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24608 add comment explaining why.
24609
246102007-08-03 Richard Stallman <rms@gnu.org>
24611
24612 * fileio.c (Fvisited_file_modtime): Use make_time.
24613
246142007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24615
24616 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24617 build.
24618
246192007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24620
24621 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24622
246232007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24624
24625 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24626
246272007-07-30 Richard Stallman <rms@gnu.org>
24628
24629 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24630
246312007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24632
24633 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24634
246352007-07-28 Nick Roberts <nickrob@snap.net.nz>
24636
24637 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24638 remote default-directory.
24639
24640 * buffer.c (mode-line-format): Update doc string.
24641
246422007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24643
24644 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24645 scroll bar gap.
24646 (x_scroll_bar_create): Set bar->fringe_extended_p.
24647 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24648 on frame edge. Check fringe background extension. Don't clear
24649 extended fringe background area.
24650
24651 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24652 (w32_fill_area): Enclose multiple statements with do ... while (0).
24653
24654 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
24655 Extend fringe background to scroll bar gap.
24656 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
24657 Set bar->fringe_extended_p.
24658 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24659 Put leftmost/rightmost scroll bars on frame edge. Check fringe
24660 background extension. Don't clear extended fringe background area.
24661
24662 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24663 New member fringe_extended_p.
24664
246652007-07-25 Glenn Morris <rgm@gnu.org>
24666
24667 * Relicense all FSF files to GPLv3 or later.
24668
24669 * COPYING: Switch to GPLv3.
24670
246712007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
24672
24673 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
24674
24675 * data.c (Finteractive_form): Check for the presence of an
24676 `interactive-form' symbol property more thoroughly.
24677
24678 * data.c (Finteractive_form): Use an `interactive-form' property if
24679 present, analogous to the function-documentation property.
24680
246812007-07-24 Jason Rumney <jasonr@gnu.org>
24682
24683 * w32fns.c (x_real_positions): Get real position from OS instead of
24684 calculating it.
24685
246862007-07-23 Jason Rumney <jasonr@gnu.org>
24687
24688 * filelock.c (current_lock_owner): Allow for @ sign in username.
24689
246902007-07-22 Nick Roberts <nickrob@snap.net.nz>
24691
24692 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
24693 remote default-directory.
24694
24695 * buffer.c (mode-line-format): Describe above case in doc string.
24696
246972007-07-20 Eli Zaretskii <eliz@gnu.org>
24698
24699 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
24700 Define if not defined.
24701
247022007-07-18 Jason Rumney <jasonr@gnu.org>
24703
24704 * w32proc.c (w32_executable_type): Handle 64 bit executables.
24705
247062007-07-18 Richard Stallman <rms@gnu.org>
24707
24708 * data.c (Fsetq_default): Doc fix.
24709
24710 * eval.c (Fsetq): Doc fix.
24711
247122007-07-18 Juanma Barranquero <lekktu@gmail.com>
24713
24714 * coding.c (Ffind_operation_coding_system):
24715 * eval.c (For, Fand): Doc fixes.
24716 Reported by Johan Bockgård.
24717
247182007-07-18 Jan Djärv <jan.h.d@swipnet.se>
24719
24720 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
24721
24722 * xterm.h: Declare x_ewmh_activate_frame.
24723
24724 * xterm.c (x_ewmh_activate_frame): New function.
24725 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
24726
247272007-07-17 Martin Rudalics <rudalics@gmx.at>
24728
24729 * window.c (Fdisplay_buffer): If largest or LRU window is the
24730 only window, split it even if it is not eligible for splitting.
24731 This restores the original behavior broken by the 2007-07-15
24732 change.
24733
247342007-07-17 Glenn Morris <rgm@gnu.org>
24735
24736 * abbrev.c (abbrev_check_chars): New function.
24737 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24738 Call abbrev_check_chars to check abbrev characters are word
24739 constituents. Doc fix.
24740
247412007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
24742
24743 * process.c (Fstart_process, Fmake_network_process)
24744 (read_process_output): Fix up last changes.
24745
247462007-07-16 Eli Zaretskii <eliz@gnu.org>
24747
24748 * makefile.w32-in (clean): Don't delete *~.
24749
247502007-07-16 Andreas Schwab <schwab@suse.de>
24751
24752 * window.c (Fdisplay_buffer): Use NILP.
24753 (Fset_window_scroll_bars): Likewise.
24754
247552007-07-15 Martin Rudalics <rudalics@gmx.at>
24756
24757 * window.c (window_min_size_2): New function.
24758 (window_min_size_1, size_window, Fdisplay_buffer)
24759 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
24760 windows without mode- or header-lines when window-min-height is
24761 too small.
24762 (size_window): Reset nodelete_p after testing it, following an
24763 earlier note by Kim F. Storm.
24764 (display_buffer): Do not set split_height_threshold to twice the
24765 value of window_min_height to avoid changing the value of a
24766 customizable variable. Rather explicitly check whether the
24767 height of the window that shall be splitted is at least as large
24768 as split_height_threshold.
24769 (Fwindow_full_width_p): New defun.
24770 (syms_of_window): Defsubr it.
24771
24772 * window.h: Add EXFUN for Fwindow_full_width_p.
24773
247742007-07-14 Jason Rumney <jasonr@gnu.org>
24775
24776 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
24777
247782007-07-14 Richard Stallman <rms@gnu.org>
24779
24780 * eval.c (maybe_call_debugger): New function.
24781 (find_handler_clause): Use maybe_call_debugger.
24782 Call it when the handler says `debug'.
24783 Eliminate DEBUGGER_VALUE_PTR.
24784 (Fsignal): Eliminate debugger_value.
24785 (Qdebug): New variable.
24786 (syms_of_eval): Initialize it.
24787
247882007-07-14 Juanma Barranquero <lekktu@gmail.com>
24789
24790 * eval.c (Fprogn):
24791 * keyboard.c (Ftrack_mouse):
24792 * print.c (Fwith_output_to_temp_buffer):
24793 * window.c (Fsave_window_excursion): Doc fix.
24794
247952007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
24796
24797 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
24798
247992007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
24800
24801 * process.h (struct Lisp_Process): Turn slots infd, outfd,
24802 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
24803 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
24804 read_output_delay, and read_output_skip from Lisp_Objects to ints.
24805 Remove unused encoding_carryover.
24806 * process.c: Adjust all functions accordingly.
24807
248082007-07-12 Richard Stallman <rms@gnu.org>
24809
24810 * term.c: Include unistd.h only if HAVE_UNISTD_H.
24811
248122007-07-11 Jason Rumney <jasonr@gnu.org>
24813
24814 * makefile.w32-in (LIBS): Include OLE32.
24815
24816 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24817 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24818
248192007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24820
24821 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24822 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24823 from a Lisp_Object into a bare pointer.
24824 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24825 Adjust the code correspondingly.
24826
24827 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24828
24829 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24830 (term_show_mouse_face): Remove unused var `j'.
24831 (handle_one_term_event): Remove unused vars `i' and `j'.
24832 Don't cast return value of ttyname since it's not necessary.
24833
248342007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24835
24836 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24837 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24838
24839 * fns.c (map_char_table): Use an array of int for `indices' rather than
24840 an array of Lisp_Objects (which are only ever integers anyway).
24841 (Fmap_char_table): Update caller.
24842 * lisp.h: Update prototype.
24843 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24844 * fontset.c (Ffontset_info):
24845 * casetab.c (set_case_table): Update callers.
24846
24847 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24848
24849 * keymap.c (struct accessible_keymaps_data)
24850 (struct where_is_internal_data): New structures.
24851 (accessible_keymaps_1, where_is_internal_1): Use them to change
24852 interface to adhere to the one used by map_keymap.
24853 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24854 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24855
24856 * keymap.h (map_keymap_function_t): More informative prototype.
24857
248582007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24859
24860 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24861 (looking_at_1): Don't change search_regs and last_thing_searched
24862 if `inhibit-changing-match-data' is non-nil.
24863 (string_match_1, search_buffer, set_search_regs): Likewise.
24864 (syms_of_search): Add Lisp level definition for
24865 `inhibit-changing-match-data' and set it to nil.
24866 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24867 start and end of the match, instead of using values in search_regs.
24868
248692007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24870
24871 * minibuf.c (Fcompleting_read): New value `confirm-only'
24872 for `require-match'.
24873
248742007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24875
24876 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24877 part of the 2007-06-27 change to syms_of_fileio.
24878
248792007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24880
24881 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24882 Check WINDOWP before using XWINDOW. Consolidate return statements.
24883
248842007-06-27 Richard Stallman <rms@gnu.org>
24885
24886 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24887
248882007-06-27 Juanma Barranquero <lekktu@gmail.com>
24889
24890 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24891
248922007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24893
24894 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24895 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24896 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24897 (_free_internal, memalign): Use them.
24898 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24899 Initialize to PTHREAD_MUTEX_INITIALIZER.
24900 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24901 (morecore_nolock): Rename from morecore. All uses changed.
24902 Use only nolock versions of internal allocation functions.
24903 (_malloc_internal_nolock, _realloc_internal_nolock)
24904 (_free_internal_nolock): New functions created from
24905 _malloc_internal, _realloc_internal, and _free_internal.
24906 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24907 Copy hook value to automatic variable before its use.
24908 (memalign): Copy hook value to automatic variable before its use.
24909
249102007-06-26 Kenichi Handa <handa@m17n.org>
24911
24912 * coding.c (Ffind_operation_coding_system): Docstring improved.
24913 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24914
249152007-06-25 David Kastrup <dak@gnu.org>
24916
24917 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24918 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24919 cater for additional parameter.
24920
24921 * keymap.h: Adjust number of parameters to `current-active-maps'.
24922
24923 * doc.c (Fsubstitute_command_keys): Adjust call of
24924 `current-active-maps'.
24925
249262007-06-25 David Kastrup <dak@gnu.org>
24927
24928 * callint.c (Fcall_interactively): Make the parsing of interactive
24929 specs somewhat more readable.
24930
249312007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24932
24933 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24934 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24935 if extended background has already been filled.
24936
249372007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24938
24939 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24940 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24941
24942 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24943 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24944 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24945 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24946 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24947 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24948 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24949 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24950 Run timers during dialog popup.
24951 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24952
249532007-06-21 Jason Rumney <jasonr@gnu.org>
24954
24955 * image.c (convert_mono_to_color_image): Swap fore and background.
24956
249572007-06-20 Jason Rumney <jasonr@gnu.org>
24958
24959 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24960 (w32_free_bdf_font): Unmap memory not handle.
24961
249622007-06-20 Sam Steingold <sds@gnu.org>
24963
24964 * gmalloc.c (__morecore): Fix the declaration to comply with the
24965 definition.
24966
249672007-06-20 Juanma Barranquero <lekktu@gmail.com>
24968
24969 * w32term.c (w32_delete_display): Remove leftover declaration.
24970 (w32_define_cursor, w32_initialize): Make static.
24971
24972 * w32.c (_wsa_errlist): Fix typo in error message.
24973 (init_environment): Ignore any environment variable from the
24974 registry having a null value.
24975
249762007-06-20 Glenn Morris <rgm@gnu.org>
24977
24978 * Makefile.in (LIBGIF): Default to -lgif.
24979
249802007-06-17 Jason Rumney <jasonr@gnu.org>
24981
24982 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24983 unicode strings.
24984
249852007-06-16 Juanma Barranquero <lekktu@gmail.com>
24986
24987 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24988 Fix typo in docstring.
24989
249902007-06-16 Eli Zaretskii <eliz@gnu.org>
24991
24992 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24993 and their keybindings.
24994
249952007-06-15 Chong Yidong <cyd@stupidchicken.com>
24996
24997 * composite.c (update_compositions): Fix last fix.
24998
249992007-06-14 Jason Rumney <jasonr@gnu.org>
25000
25001 * w32.c (get_process_times_fn): New function pointer.
25002 (globals_of_w32): Intialize it if present in kernel32.dll.
25003 (w32_get_internal_run_time): New function.
25004
25005 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25006
250072007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25008
25009 * composite.c (update_compositions): Check the validness of
25010 compositions.
25011
250122007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25013
25014 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25015 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25016
25017 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25018 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25019
25020 * macgui.h (USE_MAC_TOOLBAR): New define.
25021
25022 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25023 Return immediately unless popup is activated.
25024
25025 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25026 background to scroll bar gap.
25027 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25028 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25029 scroll bars on frame edge. Check fringe background extension.
25030 Don't clear extended fringe background area.
25031 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25032 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25033 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25034 [USE_MAC_TOOLBAR]: New macros.
25035 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25036 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25037 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25038 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25039 [USE_MAC_TOOLBAR]: New functions.
25040 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25041 manually if previous repositioning has failed.
25042 (mac_handle_keyboard_event): Use precomputed event kind.
25043 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25044 as tool bar item click. Handle mouse movement over tool bar items.
25045
25046 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25047 toolbar_win_gravity.
25048 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25049 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25050 Add externs.
25051
25052 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25053 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25054
250552007-06-14 Chong Yidong <cyd@stupidchicken.com>
25056
25057 * image.c (search_image_cache): Remove unused variable.
25058
250592007-06-13 Chong Yidong <cyd@stupidchicken.com>
25060
25061 * xfns.c, xmenu.c: Link to xaw3d if available.
25062
250632007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25064
25065 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25066 frame_foreground and frame_background.
25067
25068 * image.c (lookup_image): Save frame foreground and background colors.
25069 (search_image_cache): Check if saved and current frame colors match.
25070
250712007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25072
25073 * regex.c (regex_compile): Remove the `regnum' counter.
25074 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25075
250762007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25077
25078 * term.c: Include intervals.h to declare Fget_text_property.
25079
250802007-06-10 Jason Rumney <jasonr@gnu.org>
25081
25082 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25083
250842007-06-08 Juanma Barranquero <lekktu@gmail.com>
25085
25086 * callint.c (Fcall_interactively):
25087 * editfns.c (Fdelete_and_extract_region):
25088 * fileio.c (Fread_file_name):
25089 * fns.c (Fmapconcat):
25090 * keyboard.c (cmd_error_internal):
25091 * keymap.c (Fkey_description):
25092 * lread.c (openp):
25093 * minibuf.c (read_minibuf):
25094 * search.c (wordify):
25095 * sunfns.c (sel_read):
25096 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25097 * xfns.c (x_default_scroll_bar_color_parameter):
25098 * xmenu.c (menu_help_callback):
25099 * xselect.c (Fx_get_atom_name):
25100 * xterm.c (x_term_init): Use empty_unibyte_string.
25101
251022007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25103
25104 * alloc.c (init_strings): Initialize canonical empty strings.
25105 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25106 canonical empty string when the requested size is 0.
25107
25108 * emacs.c (empty_unibyte_string): Rename from empty_string.
25109 (empty_multibyte_string): New canonical empty string.
25110 (syms_of_emacs): Don't initialize empty_string.
25111
25112 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25113 string, if appropriate.
25114 (empty_unibyte_string, empty_multibyte_string): New externs.
25115 (empty_string): Remove extern.
25116
25117 * lread.c (syms_of_lread): Use empty_unibyte_string.
25118
251192007-06-07 Jason Rumney <jasonr@gnu.org>
25120
25121 * s/ms-w32.h: Don't define HAVE_TZNAME.
25122
25123 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25124
251252007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25126
25127 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25128
25129 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25130 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25131
25132 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25133 Don't call next handler.
25134 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25135 Remove argument. Install handler to application.
25136 (set_frame_menubar): Don't change deep_p.
25137 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25138 FRAME_OUTER_TO_INNER_DIFF_Y.
25139 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25140 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25141 [HAVE_DIALOGS]: New macros.
25142 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25143 Use them.
25144 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25145
25146 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25147 init_service_handler. All callers changed. Return OSStatus value.
25148
25149 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25150 All callers changed so as not to call SetPortWindowPort.
25151 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25152 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25153 mac_draw_string_common.
25154 (mac_draw_image_string_qd): Likewise.
25155 (mac_draw_string_common): Use them. Add INLINE.
25156 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25157 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25158 GetGlobalMouse.
25159 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25160 and FRAME_OUTER_TO_INNER_DIFF_Y.
25161 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25162 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25163 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25164 repositioning window to mac_handle_window_event.
25165 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25166 saving window location to mac_handle_window_event
25167 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25168 (install_menu_target_item_handler): Remove argument in extern.
25169 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25170 Also accept command events.
25171 (do_keystroke): New function created from XTread_socket.
25172 (init_command_handler): Remove functions.
25173 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25174 and save window location by kEventWindowShowing and kEventWindowHiding
25175 handlers here. Don't call next handler for window state change and
25176 focus events.
25177 (mac_handle_application_event, mac_handle_keyboard_event)
25178 [TARGET_API_MAC_CARBON]: New functions.
25179 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25180 kEventWindowShowing and kEventWindowHiding events. Move installation
25181 of mouse, font, text input and menu target item handlers to
25182 install_application_handler.
25183 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25184 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25185 New function.
25186 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25187 Register it.
25188 (XTread_socket) [TARGET_API_MAC_CARBON]:
25189 Consolidate SendEventToEventTarget calls.
25190 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25191 Move application activation handler to mac_handle_application_event.
25192 Move keyboard handler to mac_handle_keyboard_event.
25193 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25194 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25195 init_command_handler. Call install_application_handler.
25196
25197 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25198 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25199
252002007-06-07 Glenn Morris <rgm@gnu.org>
25201
25202 * emacs.c (main): Use `emacs-copyright' in --version output.
25203
252042007-06-06 Chong Yidong <cyd@stupidchicken.com>
25205
25206 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25207
252082007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25209
25210 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25211
25212 * macgui.h: Replace WindowPtr with WindowRef.
25213
25214 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25215 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25216 Replace ControlHandle with ControlRef.
25217 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25218
25219 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25220 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25221 Replace ControlHandle with ControlRef.
25222 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25223 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25224
25225 * macterm.h (struct scroll_bar): Rename member control_handle_low
25226 and control_handle_high to control_ref_low and control_ref_high.
25227 All uses changed.
25228 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25229 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25230 respectively. All uses changed.
25231 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25232 (install_window_handler, remove_window_handler): Replace WindowPtr
25233 with WindowRef in externs.
25234
252352007-06-05 Juanma Barranquero <lekktu@gmail.com>
25236
25237 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25238
252392007-06-03 Nick Roberts <nickrob@snap.net.nz>
25240
25241 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25242
25243 * frame.c (Fmouse_position, Fmouse_pixel_position):
25244 Condition on HAVE_GPM too.
25245
25246 * term.c (term_mouse_highlight): Remove unused variables.
25247 (Fterm_open_connection): Set gpm_zerobased to 1.
25248 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25249 Use zero based co-ordinates.
25250 (handle_one_term_event): Report a drag as mouse movement too.
25251
25252 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25253
252542007-06-03 Chong Yidong <cyd@stupidchicken.com>
25255
25256 * image.c (search_image_cache): New function. Require background
25257 color match if background color is unspecified in the image spec.
25258 (uncache_image, lookup_image): Use it.
25259
252602007-06-01 Juanma Barranquero <lekktu@gmail.com>
25261
25262 * window.c (Fshrink_window): Reflow docstring.
25263
252642007-06-02 Chong Yidong <cyd@stupidchicken.com>
25265
25266 * Version 22.1 released.
25267
252682007-06-01 Richard Stallman <rms@gnu.org>
25269
25270 * xfns.c (x_encode_text): Add GCPRO.
25271
252722007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25273
25274 * xfns.c (x_set_name_internal): Save encoded name before
25275 x_encode_text in case string data is relocated.
25276
252772007-05-31 Richard Stallman <rms@gnu.org>
25278
25279 * buffer.c (syms_of_buffer): Doc fix.
25280
252812007-05-30 Nick Roberts <nickrob@snap.net.nz>
25282
25283 * sysdep.c (init_sys_modes): Add rather than replace with
25284 O_NONBLOCK.
25285
25286 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25287 term_mouse_moveto.
25288
25289 * termhooks.h (term_mouse_moveto): New extern.
25290
25291 * term.c (mouse_face_window): Rename...
25292 (Qmouse_face_window): ...to this.
25293 (term_show_mouse_face, term_clear_mouse_face)
25294 (term_mouse_highlight): Use Qmouse_face_window.
25295 (term_mouse_moveto): New function.
25296 (term_mouse_position): Make it work.
25297 (syms_of_term): Uncomment assignment to mouse_position_hook.
25298 Staticpro Qmouse_face_window.
25299
253002007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25301
25302 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25303 around current_column call.
25304
253052007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25306
25307 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25308 * xdisp.c (next_element_from_buffer):
25309 * window.c (delete_window):
25310 * term.c (term_mouse_highlight):
25311 * msdos.c (getdefdir):
25312 * macterm.c (mac_create_bitmap_from_bitmap_data)
25313 (init_font_name_table):
25314 * fns.c (Fsxhash):
25315 * data.c (Fmake_local_variable):
25316 * ccl.c (ccl_driver): Likewise.
25317
253182007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25319
25320 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25321 Call mac_wakeup_from_rne on window size change.
25322
253232007-05-25 Chong Yidong <cyd@stupidchicken.com>
25324
25325 * image.c (uncache_image): Fix typo.
25326
253272007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25328
25329 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25330
253312007-05-22 Richard Stallman <rms@gnu.org>
25332
25333 * xterm.c (x_connection_closed): Remove NO_RETURN.
25334
253352007-05-22 Martin Rudalics <rudalics@gmx.at>
25336
25337 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25338
253392007-05-21 Chong Yidong <cyd@stupidchicken.com>
25340
25341 * image.c (uncache_image): New function.
25342 (Fimage_refresh): New function.
25343
253442007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25345
25346 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25347
253482007-05-20 Nick Roberts <nickrob@snap.net.nz>
25349
25350 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25351 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25352
253532007-05-20 Nick Roberts <nickrob@snap.net.nz>
25354
25355 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25356 conditional on [HAVE_GPM_H].
25357
253582007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25359
25360 * syntax.c (skip_chars): Update syntax-table only after we checked that
25361 the new location is valid.
25362
253632007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25364
25365 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25366 mac_get_window_bounds.
25367
253682007-05-20 Nick Roberts <nickrob@snap.net.nz>
25369
25370 * Makefile.in (LIBGPM): Allow it to be set from configure.
25371 If set then link Emacs with it.
25372
25373 * config.in: Regenerate.
25374
25375 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25376 New externs.
25377
25378 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25379 Include gpm.h.
25380 (handle_one_term_event, term_gpm): New externs.
25381
25382 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25383 and allow it to be interrupted by SIGIO.
25384
25385 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25386 (wait_reading_process_output): Wait on gpm_fd too.
25387 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25388 (add_gpm_wait_descriptor_called_flag): New variable.
25389 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25390
25391 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25392 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25393 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25394 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25395 (make_lispy_event): Add case GPM_CLICK_EVENT.
25396 (read_avail_input): Handle mouse input.
25397
25398 * term.c (write_glyphs_with_face): New function.
25399 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25400 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25401 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25402 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25403 (last_mouse_x, last_mouse_y): New variables.
25404 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25405 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25406 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25407 (Fterm_close_connection): New functions.
25408 (term_init): Initialise mouse_face_window.
25409
254102007-05-19 Chong Yidong <cyd@stupidchicken.com>
25411
25412 * xdisp.c (redisplay_window): If first window line is a
25413 continuation line, recompute the new window start instead of
25414 recentering.
25415
254162007-05-18 Glenn Morris <rgm@gnu.org>
25417
25418 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25419 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25420
254212007-05-17 Glenn Morris <rgm@gnu.org>
25422
25423 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25424
254252007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25426
25427 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25428 dead key repeat and up events.
25429
254302007-05-14 Chong Yidong <cyd@stupidchicken.com>
25431
25432 * image.c (pbm_load): Check image size for monochrome pbm.
25433
254342007-05-13 Chong Yidong <cyd@stupidchicken.com>
25435
25436 * xterm.c (XTread_socket): Revert last change.
25437
254382007-05-12 Chong Yidong <cyd@stupidchicken.com>
25439
25440 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25441
25442 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25443
254442007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25445
25446 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25447 mixup (YAILOM).
25448
254492007-05-07 Andreas Schwab <schwab@suse.de>
25450
25451 * keymap.c (Flookup_key): Fix typo in last change.
25452
254532007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25454
25455 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25456 mapping for unibyte strings.
25457
254582007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25459
25460 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25461 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25462
254632007-04-29 Richard Stallman <rms@gnu.org>
25464
25465 * insdel.c (replace_range): For undo, record insertion first.
25466
254672007-04-29 Andreas Schwab <schwab@suse.de>
25468
25469 * lisp.h (VECSIZE): Use OFFSETOF.
25470
254712007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25472
25473 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25474 disabled lines.
25475
254762007-04-28 Richard Stallman <rms@gnu.org>
25477
25478 * lread.c (read_escape): In a string, \s is always space.
25479
254802007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25481
25482 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25483
25484 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25485 submenu for menu bar items.
25486
25487See ChangeLog.10 for earlier changes.
25488
25489;; Local Variables:
25490;; coding: utf-8
25491;; add-log-time-zone-rule: t
aac0c6e3
MR
25492;; End:
25493
e3eb1dae 25494 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
25495
25496 This file is part of GNU Emacs.
25497
25498 GNU Emacs is free software: you can redistribute it and/or modify
25499 it under the terms of the GNU General Public License as published by
25500 the Free Software Foundation, either version 3 of the License, or
25501 (at your option) any later version.
25502
25503 GNU Emacs is distributed in the hope that it will be useful,
25504 but WITHOUT ANY WARRANTY; without even the implied warranty of
25505 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25506 GNU General Public License for more details.
25507
25508 You should have received a copy of the GNU General Public License
25509 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25510
25511;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40