Make internal_self_insert static
[bpt/emacs.git] / src / ChangeLog
CommitLineData
c8197983
AS
12010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2
3 * cmds.c (internal_self_insert): Make static.
4 * lisp.h (internal_self_insert): Remove declaration.
5
97b372d7
JB
62010-07-23 Juanma Barranquero <lekktu@gmail.com>
7
33ac0414
JB
8 * alloc.c (free_float):
9 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
10 * frame.c (delete_frame_handler):
11 * ralloc.c (reorder_bloc):
12 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
13 Remove unused static functions.
14
94da8397
JB
15 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
16 it is called only from NS code.
17
2e6c8532
JB
18 * w32term.c (my_set_focus): #ifdef away; it is called only from
19 "#ifdef 0" code.
20
97b372d7
JB
21 * w32fns.c (x_edge_detection):
22 * xfaces.c (may_use_scalable_font_p):
23 Remove obsolete static declarations.
24
7c3320d8
JB
252010-07-20 Juanma Barranquero <lekktu@gmail.com>
26
27 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
28 (emacs_blocked_realloc, uninterrupt_malloc):
29 * fringe.c (w32_reset_fringes):
30 * image.c (convert_mono_to_color_image, lookup_rgb_color)
31 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
32 * sound.c (be2hs, do_play_sound):
33 * vm-limit.c (get_lim_data, ret_lim_data):
34 * w32term.c (x_free_frame_resources):
35 * xfaces.c (x_create_gc, x_free_gc):
36 Convert definitions to standard C.
37
d5273788
SM
382010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
39
40 * eval.c (Feval, Ffuncall): Use the new names.
41
42 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
43 (DEFUN): Add braces around the union initialisation and use ## to
44 specify the right union alternative and avoid a cast.
45
8d16a259
JB
462010-07-18 Juanma Barranquero <lekktu@gmail.com>
47
48 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
49
3b8eff32
CY
502010-07-17 Chong Yidong <cyd@stupidchicken.com>
51
52 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
53
499322ce
J
542010-07-17 Jan Djärv <jan.h.d@swipnet.se>
55
56 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
57 is related to the menu bar (Bug#6499).
a628ad9d 58 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 59
f6003da5 602010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
61
62 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
63
64 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
65
66 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
67 i.e. don't put back ButtonRelease (Bug#6608).
68
69 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
70 instead of Window. Call xg_event_is_for_menubar when
71 USE_GTK (Bug#6499).
72
73 * gtkutil.h (xg_event_is_for_menubar): Declare.
74
75 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
76
f6003da5 772010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
78
79 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
80 when it's the same as the old foreground. (Bug#6609)
81
23243f29
J
822010-07-16 Jan Djärv <jan.h.d@swipnet.se>
83
84 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
85 widget is non-null (Bug#6645).
86
2b23d2a6
AS
872010-07-15 Andreas Schwab <schwab@linux-m68k.org>
88
01b564ff
AS
89 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
90 Convert old-style definition.
91
2b23d2a6
AS
92 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
93 timestamp argument.
94
c4affd2c
EZ
952010-07-15 Eli Zaretskii <eliz@gnu.org>
96
97 * fringe.c (update_window_fringes): Restore mistakenly reverted
98 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
99
cf28cebc
J
1002010-07-14 Jan Djärv <jan.h.d@swipnet.se>
101
102 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
103 (SET_SAVED_KEY_EVENT): Remove (not used).
104 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
105 remove size parameter.
106 (handle_one_xevent): Check popup_activated () for menu for Xt also.
107 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
108 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
109 ButtonRelease.
6b2c4bd9
J
110 (x_set_window_size_1): scroll_bar_actual_width is always
111 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
112
113 * xdisp.c (pending_menu_activation): Remove extern declaration.
114 (prepare_menu_bars): Remove setting of pending_menu_activation.
115
116 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
117 (x_activate_menubar): Set popup_activated_flag for Xt also.
118 Remove setting of pending_menu_activation.
cf28cebc
J
119 (set_frame_menubar): Remove check of pending_menu_activation.
120 Declare menubar_size before code. Correct spelling in comment.
121
f6c1c771
KH
1222010-07-14 Kenichi Handa <handa@m17n.org>
123
124 * font.c (font_open_entity): Cancel previous change.
125 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
126
20477505
EZ
1272010-07-13 Eli Zaretskii <eliz@gnu.org>
128
77defa9a
EZ
129 Remove subprocesses #ifdefs.
130 * process.c <inhibit_sentinels>: Move to the common part.
131 (Fwaiting_for_user_input_p): Move to the common part; return nil
132 if async subprocesses aren't supported.
133 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
134 MS-DOS. Remove "#ifdef subprocesses".
135 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
136 (gettimeofday): Remove "#ifdef subprocesses".
137 (wait_without_blocking): Remove function.
138 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
139 Remove "#ifdef subprocesses".
140 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
141 compiled on MS-DOS.
142 * callproc.c (Fcall_process) [!MSDOS]: Don't call
143 wait_for_termination on MS-DOS.
144 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
145 initialization of inhibit_sentinels.
146 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
147 subprocesses" conditional.
148 * callproc.c (Fcall_process) [!subprocesses]: Don't call
149 wait_for_termination, since `buffer' cannot be an integer when
150 async subprocesses are not supported
151 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
152 for ifdefing away the call to Fprocess_status.
153
20477505
EZ
154 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
155 away the entire body of the function.
156
b3ffc17c
DN
1572010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
158
01faa934
DN
159 Remove subprocesses #ifdefs from term.c.
160 * process.c (add_keyboard_wait_descriptor)
161 (delete_keyboard_wait_descriptor): Move to common section, do
162 nothing when subprocesses is not defined.
a628ad9d
JB
163 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
164 Remove subprocesses #ifdefs.
01faa934 165
b3ffc17c
DN
166 Convert maybe_fatal to standard C.
167 * lisp.h (verror): Declare.
168 * eval.c (verror): New function containing the code from ...
169 (error): ... this. Call verror.
170 * term.c (vfatal): New function containing the code from ...
171 (fatal): ... this. Call vfatal.
172 (maybe_fatal): Convert to standard C, use variable number of
173 arguments. Declare as non-return.
174 (init_tty): Fix maybe_fatal call.
175
0521f580
DN
1762010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
177
178 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
179 (_scroll_bar_note_movement): Convert definitions to standard C.
180 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
181 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
182
ebd15611
DN
1832010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
184
185 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
186 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
187 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
188 (xaw_jump_callback, xaw_scroll_callback)
189 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
190 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
191 definitions to standard C.
192 * xmenu.c (menubar_id_to_frame, popup_get_selection)
193 (popup_activate_callback, popup_deactivate_callback)
194 (menu_highlight_callback, menubar_selection_callback)
195 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
196 (free_frame_menubar, popup_selection_callback, as)
197 (create_and_show_popup_menu, dialog_selection_callback)
198 (create_and_show_dialog):
199 * xfns.c (hack_wm_protocols, x_window):
200 * xfaces.c (x_update_menu_appearance):
201 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
202 (char_to_pixel_size, round_size_to_char, get_wm_shell)
203 (set_frame_size, update_wm_hints, setup_frame_gcs)
204 (update_various_frame_slots, update_from_various_frame_slots)
205 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
206 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
207 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
208
de06a2dd
AS
2092010-07-12 Andreas Schwab <schwab@linux-m68k.org>
210
a628ad9d 211 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 212
fc549af9
EZ
2132010-07-12 Eli Zaretskii <eliz@gnu.org>
214
215 * process.c (setup_process_coding_systems): Move to the part
216 shared by non-subprocesses systems, and make its body empty when
217 subprocesses is not defined.
218 (close_process_descs): Move to the part shared by non-subprocesses
219 systems.
1408902e
EZ
220 (wait_reading_process_output) [!subprocesses]: Convert arg list to
221 ANSI C.
fc549af9 222
d5a3eaaf
AS
2232010-07-12 Andreas Schwab <schwab@linux-m68k.org>
224
225 * editfns.c (transpose_markers): Convert old-style definition.
226 * emacs.c (abort, shut_down_emacs, fixup_locale)
227 (synchronize_system_time_locale)
228 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
229 * floatfns.c (extract_float, matherr, init_floatfns)
230 (syms_of_floatfns): Likewise.
231 * fns.c (make_hash_table): Likewise.
232 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
233 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
234 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
235 (ftfont_variation_glyphs): Likewise.
236 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
237 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
238 * lread.c (read_filtered_event): Likewise.
239 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
240 * process.c (wait_reading_process_output): Likewise.
241 * scroll.c (do_line_insertion_deletion_costs): Likewise.
242 * search.c (search_buffer, boyer_moore): Likewise.
243 * syntax.c (scan_sexps_forward): Likewise.
244 * xdisp.c (try_scrolling): Likewise.
245 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
246 (face_at_string_position): Likewise.
247 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
248 * xselect.c (x_get_window_property, receive_incremental_selection)
249 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
250 Likewise.
251 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
252
6f704c76
DN
2532010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
254
ded80a25
DN
255 * callproc.c (child_setup): Remove subprocesses conditional.
256 Remove code dealing with SET_EMACS_PRIORITY, unused.
257
49d937f4 258 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
259 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
260
261 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
262 (__do_global_dtors, __main): Use void in definition.
263 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
264 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
265 the only users from ...
266 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
267 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
268 (HAVE_VOLATILE): Remove, unused.
269
6f704c76
DN
270 Convert more function definitions to standard C.
271 * xdisp.c (window_box_edges, handle_single_display_spec)
272 (display_string): Convert definition to standard C.
273 * scroll.c (do_direct_scrolling, scrolling_1):
274 * dispnew.c (allocate_matrices_for_frame_redisplay)
275 (mirrored_line_dance):
276 * coding.c (code_convert_string):
277 * charset.c (map_charset_chars):
278 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
279 (Fregister_ccl_program, Fregister_code_conversion_map):
280 * keyboard.c (kbd_buffer_nr_stored): Likewise.
281 (head_table): Make static and const.
282
e6cfa7c3
AS
2832010-07-12 Andreas Schwab <schwab@linux-m68k.org>
284
285 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
286 (PROFILING_LDFLAGS): Set from substitution.
287 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
288 CFLAGS last.
289
892dd565
KH
2902010-07-12 Kenichi Handa <handa@m17n.org>
291
6f2cdcd1
KH
292 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
293 (shortlisp): Likewise.
294
892dd565
KH
295 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
296
297 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
298 of FONT_ENTITY_INDEX.
299 (Ffont_get): If KEY is :otf and the font-object doesn't have the
300 property, get the property value dynamically.
301 (Ffont_put): Accept font-entity and font-object too.
302 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
303 return value changed.
304 (syms_of_font): Adjusted for the above change.
305
ae96d47a
AS
3062010-07-11 Andreas Schwab <schwab@linux-m68k.org>
307
c8fc18ee
AS
308 * blockinput.h: Remove obsolete comment.
309
89887d67
AS
310 * lisp.h: Include <stddef.h>.
311 (OFFSETOF): Don't define.
312 (VECSIZE): Use offsetof instead of OFFSETOF.
313 (PSEUDOVECSIZE): Likewise.
314 * process.c (conv_sockaddr_to_lisp): Likewise.
315 * alloc.c: Don't include <stddef.h>.
316 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
317
ae96d47a
AS
318 * process.c: Remove obsolete comment.
319
635c0aa1
CY
3202010-07-11 Chong Yidong <cyd@stupidchicken.com>
321
322 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
323
a64df650
AS
3242010-07-11 Andreas Schwab <schwab@linux-m68k.org>
325
8966b757
AS
326 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
327 index, rindex.
328 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
329 * editfns.c (Fuser_full_name, Fformat): Likewise.
330 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
331 * fileio.c (Ffile_symlink_p): Likewise.
332 * filelock.c (current_lock_owner): Likewise.
333 * font.c (font_parse_name, font_parse_family_registry): Likewise.
334 * fontset.c (fontset_pattern_regexp): Likewise.
335 * lread.c (read1): Likewise.
336 * sysdep.c (init_system_name): Likewise.
337 * xfns.c (select_visual): Likewise.
338 * s/hpux10-20.h (index, rindex): Don't define.
339 * s/ms-w32.h (index): Likewise.
340 * s/usg5-4.h: Likewise.
341
cf237e27
AS
342 * callproc.c (relocate_fd): Use F_DUPFD if defined.
343
a8fe7202
AS
344 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
345 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
346 (egetenv): Likewise.
347 * doprnt.c (doprnt): Likewise.
348 * editfns.c (set_time_zone_rule, format2): Likewise.
349 * emacs.c (decode_env_path): Likewise.
350 * eval.c (signal_error, error): Likewise.
351 * insdel.c (replace_range_2): Likewise.
352 * keyboard.c (cmd_error_internal): Likewise.
353 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
354 * print.c (write_string, write_string_1, print_error_message):
355 Likewise.
356 * vm-limit.c (warn_function, memory_warnings): Likewise.
357 * xdisp.c (message1, message1_nolog, message_with_string)
358 (vmessage, message, message_nolog): Likewise.
359 * emacs.c: Remove duplicate declaration.
360 * keyboard.h: Likewise.
361 * lisp.h: Update prototypes.
362
bb8e180f
AS
363 * eval.c: Fix indentation problem.
364
83380e65
AS
365 * keyboard.c: Include "process.h"
366
a64df650
AS
367 * eval.c: Remove obsolete noinline declaration.
368 * fns.c: Likewise.
369
6a8033e1
KR
3702010-07-11 Ken Raeburn <raeburn@raeburn.org>
371
372 * doprnt.c (doprnt): Take a va_list argument instead of count and
373 pointer.
374 * eval.c (error): Change to a standard-C variadic function.
375 * xdisp.c (vmessage): Renamed from message, made static, and
376 changed to take a va_list argument.
377 (message): New variadic wrapper.
378 (message_nolog): Now a variadic function, calling vmessage.
379 * lisp.h: Include stdarg.h for va_list.
380 (doprnt, error, message, message_nolog): Decls updated.
381
462aa963
EZ
3822010-07-11 Eli Zaretskii <eliz@gnu.org>
383
384 * process.c (syms_of_process) <delete-exited-processes>: Define
385 even if !subprocesses.
386 (delete_exited_processes): Ditto.
387
388 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
389 (delete_exited_processes): Don't define.
390
48104462
CY
3912010-07-10 Chong Yidong <cyd@stupidchicken.com>
392
393 * frame.c (make_frame): Initialize menu_bar_lines and
394 tool_bar_lines members.
395 (make_initial_frame, make_terminal_frame): Initialize
396 menu_bar_lines using value of menu-bar-mode.
397
398 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
399
f388c88a
EZ
4002010-07-10 Eli Zaretskii <eliz@gnu.org>
401
402 * process.c: Reshuffle #include's. Condition some of the global
403 and static variables on `subprocesses'.
404 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
405 Leave only one implementation.
406 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
407 (kill_buffer_processes, Flist_system_processes)
408 (Fprocess_attributes, init_process, syms_of_process): Unify the
409 implementations for with subprocesses and without them.
410
723f5a07
J
4112010-07-09 Jan Djärv <jan.h.d@swipnet.se>
412
413 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
414 correct size for Motif.
415 (free_frame_menubar): Call x_set_window_size to update frame size.
416
417 * xfns.c (x_window): Set borderWidth to 0 for pane and
418 EmacsFrame. Frame size calculation is wrong otherwise.
419
2536a4b7
MA
4202010-07-09 Michael Albinus <michael.albinus@gmx.de>
421
422 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
423 allows to suppress errors when polling in Emacs' main loop.
424 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
425 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
426 (Fdbus_method_error_internal, Fdbus_send_signal)
427 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
428 (Fdbus_register_method): Use it. (Bug#6579)
429
5842a27b
DN
4302010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
431
432 * alloc.c: Convert DEFUNs to standard C.
433 * buffer.c:
434 * bytecode.c:
435 * callint.c:
436 * callproc.c:
437 * casefiddle.c:
438 * casetab.c:
439 * category.c:
440 * character.c:
441 * charset.c:
442 * chartab.c:
443 * cmds.c:
444 * coding.c:
445 * composite.c:
446 * data.c:
447 * dbusbind.c:
448 * dired.c:
449 * dispnew.c:
450 * doc.c:
451 * dosfns.c:
452 * editfns.c:
453 * emacs.c:
454 * eval.c:
455 * fileio.c:
456 * filelock.c:
457 * floatfns.c:
458 * fns.c:
459 * font.c:
460 * fontset.c:
461 * frame.c:
462 * fringe.c:
463 * image.c:
464 * indent.c:
465 * insdel.c:
466 * keyboard.c:
467 * keymap.c:
468 * lread.c:
469 * macros.c:
470 * marker.c:
471 * menu.c:
472 * minibuf.c:
473 * msdos.c:
474 * nsfns.m:
475 * nsmenu.m:
476 * nsselect.m:
477 * print.c:
478 * process.c:
479 * search.c:
480 * sound.c:
481 * syntax.c:
482 * term.c:
483 * terminal.c:
484 * textprop.c:
485 * undo.c:
486 * w16select.c:
487 * w32console.c:
488 * w32fns.c:
489 * w32font.c:
490 * w32menu.c:
491 * w32proc.c:
492 * w32select.c:
493 * window.c:
494 * xdisp.c:
495 * xfaces.c:
496 * xfns.c:
497 * xmenu.c:
498 * xselect.c:
499 * xsettings.c:
500 * xsmfns.c: Likewise.
501
d568829b
EZ
5022010-07-08 Eli Zaretskii <eliz@gnu.org>
503
504 * process.c (kbd_is_on_hold, hold_keyboard_input)
505 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
506
52214050
J
5072010-07-08 Jan Djärv <jan.h.d@swipnet.se>
508
509 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
510 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
511 unless USE_LUCID.
512
313d9eb2
DN
5132010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
514
a628ad9d
JB
515 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
516 declaration.
d8825aa3 517
295d0d8f
DN
518 Clean up include guards.
519 * tparam.c: Remove include guards for config.h, string.h and code
520 that assumes #ifndef emacs.
521 * termcap.c:
522 * unexalpha.c:
523 * sysdep.c:
524 * filemode.c:
525 * filelock.c:
526 * bidi.c: Likewise.
527
49d9e6b0
DN
528 Remove prefix-args.c
529 * prefix-args.c: Remove file.
530 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
531 * Makefile.in (temacs${EXEEXT}): Remove references to
532 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
533 (mostlyclean): Remove reference to prefix-args.
534 (prefix-args): Remove.
535
313d9eb2
DN
536 Simplify cstart_of_data, start_of_code and related code.
537 * mem-limits.h: Remove !emacs and _LIBC conditional code.
538 (start_of_data): Merge into start_of_data function.
539 * sysdep.c (start_of_text): Remove. Move simplified versions of
540 it in the only users: unexaix.c and unexec.c.
541 (read_input_waiting): Remove local declaration of quit_char.
542 (start, etext): Remove declarations.
543 (start_of_data): Merge with the version in mem-limits.h and move
544 to vm-limits.c.
545 * vm-limit.c (start_of_data): Merged and simplified version of the
546 code formerly in mem-limits.h and sysdep.c.
547 * unexec.c (start): New declaration, moved from sysdep.c.
548 (start_of_text): Simplified version of the code formerly in sysdep.c.
549 * unexaix.c (start_of_text): Simplified version of the code
550 formerly in sysdep.c.
551 * m/alpha.h (HAVE_TEXT_START): Remove.
552 (TEXT_START): Move ...
553 * unexalpha.c (TEXT_START): ... here.
554 * s/hpux10-20.h (TEXT_START): Remove.
555 * s/darwin.h (TEXT_START):
556 * m/mips.h (TEXT_START):
557 * m/macppc.h (HAVE_TEXT_START):
558 * m/m68k.h (TEXT_START):
559 * m/iris4d.h (TEXT_START):
560 * m/intel386.h (TEXT_START):
561 * m/ibmrs6000.h (TEXT_START):
562 * m/ia64.h (HAVE_TEXT_START):
563 * s/msdos.h (TEXT_START): Likewise.
564
72af86bd
AS
5652010-07-07 Andreas Schwab <schwab@linux-m68k.org>
566
567 * alloc.c (overrun_check_malloc, overrun_check_realloc)
568 (overrun_check_free, xstrdup, allocate_string)
569 (allocate_string_data, compact_small_strings, Fmake_string)
570 (make_unibyte_string, make_multibyte_string)
571 (make_string_from_bytes, make_specified_string, make_float)
572 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
573 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
574 memcpy, memmove, memset, memcmp.
575 * atimer.c (start_atimer, set_alarm): Likewise.
576 * buffer.c (clone_per_buffer_values, report_overlay_modification)
577 (mmap_realloc, init_buffer_once): Likewise.
578 * callint.c (Fcall_interactively): Likewise.
579 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
580 (getenv_internal_1): Likewise.
581 * casefiddle.c (casify_object): Likewise.
582 * ccl.c (ccl_driver): Likewise.
583 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
584 * charset.c (load_charset_map_from_file)
585 (load_charset_map_from_file, load_charset_map_from_vector)
586 (Fdefine_charset_internal): Likewise.
587 * cm.c (Wcm_clear): Likewise.
588 * coding.c (decode_eol, decode_coding_object)
589 (Fset_coding_system_priority, make_subsidiaries): Likewise.
590 * data.c (Faset): Likewise.
591 * dired.c (directory_files_internal, file_name_completion_stat):
592 Likewise.
593 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
594 (clear_glyph_row, copy_row_except_pointers)
595 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
596 (save_current_matrix, restore_current_matrix)
597 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
598 (mirror_line_dance, scrolling_window): Likewise.
599 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
600 Likewise.
601 * doprnt.c (doprnt): Likewise.
602 * editfns.c (Fuser_full_name, make_buffer_string_both)
603 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
604 * emacs.c (sort_args): Likewise.
605 * eval.c (Fapply, Ffuncall): Likewise.
606 * fileio.c (Ffile_name_directory, make_temp_name)
607 (Fexpand_file_name, search_embedded_absfilename)
608 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
609 (auto_save_error): Likewise.
610 * fns.c (Fstring_equal, Fcopy_sequence, concat)
611 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
612 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
613 (Fmake_hash_table): Likewise.
614 * fringe.c (Fdefine_fringe_bitmap): Likewise.
615 * ftfont.c (ftfont_text_extents): Likewise.
616 * getloadavg.c (getloadavg): Likewise.
617 * image.c (define_image_type, make_image, make_image_cache)
618 (x_create_x_image_and_pixmap, xbm_image_p)
619 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
620 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
621 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
622 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
623 (tiff_image_p, tiff_read_from_memory, gif_image_p)
624 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
625 Likewise.
626 * indent.c (scan_for_column, compute_motion): Likewise.
627 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
628 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
629 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
630 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
631 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
632 (store_user_signal_events, menu_bar_items, tool_bar_items)
633 (process_tool_bar_item, append_tool_bar_item)
634 (read_char_minibuf_menu_prompt, read_key_sequence)
635 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
636 Likewise.
637 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
638 Likewise.
639 * lisp.h (STRING_COPYIN): Likewise.
640 * lread.c (Fload, read1, oblookup): Likewise.
641 * msdos.c (Frecent_doskeys): Likewise.
642 * nsfns.m (Fx_create_frame): Likewise.
643 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
644 Likewise.
645 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
646 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
647 Likewise.
648 * nsmenu.m (ns_update_menubar): Likewise.
649 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
650 * print.c (print_unwind, printchar, strout, print_string)
651 (print_error_message): Likewise.
652 * process.c (conv_lisp_to_sockaddr, set_socket_option)
653 (Fmake_network_process, Fnetwork_interface_list)
654 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
655 (init_process): Likewise.
656 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
657 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
658 Likewise.
659 * scroll.c (do_scrolling, do_direct_scrolling)
660 (scrolling_max_lines_saved): Likewise.
661 * search.c (search_buffer, wordify, Freplace_match): Likewise.
662 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
663 * syntax.c (skip_chars, skip_syntaxes): Likewise.
664 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
665 (emacs_set_tty): Likewise.
666 * term.c (encode_terminal_code, calculate_costs)
667 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
668 Likewise.
669 * termcap.c (tgetst1, gobble_line): Likewise.
670 * termhooks.h (EVENT_INIT): Likewise.
671 * tparam.c (tparam1): Likewise.
672 * unexalpha.c (unexec): Likewise.
673 * unexec.c (write_segment): Likewise.
674 * unexmacosx.c (unexec_write_zero): Likewise.
675 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
676 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
677 * w32font.c (w32font_list_family, w32font_text_extents)
678 (w32font_list_internal, w32font_match_internal)
679 (w32font_open_internal, compute_metrics, Fx_select_font):
680 Likewise.
681 * w32menu.c (set_frame_menubar, add_menu_item)
682 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
683 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
684 * w32uniscribe.c (uniscribe_list_family): Likewise.
685 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
686 * window.c (make_window, replace_window, set_window_buffer)
687 (Fsplit_window): Likewise.
688 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
689 (add_to_log, message3, x_consider_frame_title)
690 (append_space_for_newline, extend_face_to_end_of_line)
691 (decode_mode_spec_coding, init_glyph_string): Likewise.
692 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
693 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
694 (face_attr_equal_p, make_realized_face, make_face_cache)
695 (free_realized_faces, lookup_named_face, smaller_face)
696 (face_with_height, lookup_derived_face)
697 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
698 (Finternal_set_font_selection_order, realize_default_face)
699 (compute_char_face, face_at_buffer_position)
700 (face_for_overlay_string, face_at_string_position, merge_faces):
701 Likewise.
702 * xfns.c (xic_create_fontsetname, Fx_create_frame)
703 (Fx_window_property, x_create_tip_frame)
704 (Fx_backspace_delete_keys_p): Likewise.
705 * xfont.c (xfont_list, xfont_match, xfont_list_family)
706 (xfont_text_extents): Likewise.
707 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
708 * xrdb.c (magic_file_p, x_get_resource): Likewise.
709 * xselect.c (x_queue_event, x_get_window_property)
710 (receive_incremental_selection): Likewise.
711 * xsmfns.c (x_session_check_input): Likewise.
712 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
713 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
714 Likewise.
715 * character.h (BCOPY_SHORT): Removed.
716 * config.in: Regenerate.
717 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
718 * emacs.c (main) [PROFILING]: Don't declare
719 dump_opcode_frequencies.
720 * lisp.h (safe_bcopy): Remove declaration.
721 (memset) [!HAVE_MEMSET]: Declare.
722 (memcpy) [!HAVE_MEMCPY]: Likewise.
723 (memmove) [!HAVE_MEMMOVE]: Likewise.
724 (memcmp) [!HAVE_MEMCMP]: Likewise.
725 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
726 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
727 Don't define.
728 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
729 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
730 (BCOPY_DOWNWARD_SAFE): Don't define.
731 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
732 (memcpy) [!HAVE_MEMCPY]: Define.
733 (memmove) [!HAVE_MEMMOVE]: Define.
734 (memcmp) [!HAVE_MEMCMP]: Define.
735
cb768704
J
7362010-07-07 Jan Djärv <jan.h.d@swipnet.se>
737
738 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
739 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
740 New functions.
cb768704
J
741 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
742 select on empty input mask.
743 (init_process): Initialize kbd_is_on_hold to 0.
744
745 * process.h (hold_keyboard_input, unhold_keyboard_input)
746 (kbd_on_hold_p): Declare.
747
748 * keyboard.c (input_available_signal): Declare.
749 (kbd_buffer_nr_stored): New function.
750 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
751 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
752 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
753 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
754 (tty_read_avail_input): If input is on hold, return.
755 Don't read more that free slots in kbd_buffer (Bug#6571).
756
3a8ce822
EZ
7572010-07-07 Eli Zaretskii <eliz@gnu.org>
758
759 * msdos.h:
760 * msdos.c:
761 * dosfns.c:
762 * w16select.c: Convert function definitions to ANSI C.
763
a628ad9d
JB
764 * msdos.h (ctrl_break_func, install_ctrl_break_check):
765 Remove unused prototypes.
3a8ce822 766
cf84bb53
JB
7672010-07-07 Juanma Barranquero <lekktu@gmail.com>
768
769 * coding.c, sysdep.c: Convert some more functions to standard C.
770
1a4990fb
JB
7712010-07-07 Juanma Barranquero <lekktu@gmail.com>
772
773 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
774 (encode_coding_object): Use SPECPDL_INDEX.
775 (syms_of_coding): Use DOS_NT.
776
c0f2f16b
DN
7772010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
778
48fb6855
DN
779 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
780
c0f2f16b
DN
781 Make the function member of Lisp_Subr use standard C prototypes.
782 * lisp.h (struct Lisp_Subr): Use a union for the function member.
783 (DECL_ALIGN): Add a cast for the function.
784 * eval.c (Feval, Ffuncall): Use the proper type for each type
785 function call.
786
67aecef9
CY
7872010-07-06 Chong Yidong <cyd@stupidchicken.com>
788
789 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
790 fringe face id, so face-remapping-alist works (Bug#6091).
791
b56ceb92
JB
7922010-07-06 Juanma Barranquero <lekktu@gmail.com>
793
794 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
795 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
796 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
797
7af07b96
AS
7982010-07-06 Andreas Schwab <schwab@linux-m68k.org>
799
800 * xterm.c (x_get_keysym_name): Change type of parameter to int.
801 * lisp.h: Declare x_get_keysym_name.
802 * keyboard.c (modify_event_symbol): Don't declare
803 x_get_keysym_name here.
804
69e24e34
DN
8052010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
806
807 * ecrt0.c: Revert conversion to standard C.
808
d3da34e0 8092010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
810
811 * vm-limit.c (memory_warnings):
812 * keyboard.c (modify_event_symbol):
813 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
814 (round2, emacs_rint):
815 * process.c (send_process, old_sigpipe): Convert function
816 definitions and declarations to standard C.
817
8182010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
819
820 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
821 * xdisp.c: Convert function definitions to standard C.
822
823 * cm.c (cmputc): Arg C is now int, not char.
824 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
825
00be444c
J
8262010-07-05 James Cloos <cloos@jhcloos.com>
827
828 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
829
830 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
831 _NET_WM_ICON_NAME atoms.
832
833 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
834 and _NET_WM_ICON_NAME properties, too, matching what is
835 done in the Gtk+ case.
836
e4c8d29a
J
8372010-07-05 Jan Djärv <jan.h.d@swipnet.se>
838
ff919460
J
839 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
840
e4c8d29a
J
841 * xsmfns.c (SSDATA): New macro.
842 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
843 passed to strlen/strcpy/strcat.
844 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
845 7:th arg to XChangeProperty to (unsigned char *)
846
847 * xsettings.c (something_changedCB, parse_settings)
848 (apply_xft_settings): Reformat prototype.
849 (something_changedCB, init_gconf): Remove unused variable i.
850 (read_settings): Remove unused variable long_len.
851
852 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
853 (xg_get_image_for_pixmap, create_dialog)
854 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
855 (menuitem_highlight_callback, make_menu_item)
856 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
857 (xg_create_scroll_bar, xg_update_scrollbar_pos)
858 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
859 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
860 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
861 (xg_tool_bar_item_expose_callback): Reformat prototype.
862 (xg_update_menubar): GList *group => GSList *group.
863 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
864 before use.
865 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
866 to GTK_IMAGE (wimage).
867
dd4c5104
DN
8682010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
869
898b4c5c
DN
870 * atimer.c: Use "" instead of <> for local includes for
871 consistency with the rest of the code.
872
dd4c5104
DN
873 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
874 * xrdb.c (get_system_name):
875 * window.c (shrink_windows):
876 * syntax.c (forw_comment):
877 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
878 (ins_del_costs):
879 * mem-limits.h (start_of_data):
880 * lread.c (readevalloop):
881 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
882 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
883 * frame.c (x_get_focus_frame):
884 * floatfns.c (fmod_float):
885 * fileio.c (choose_write_coding_system):
886 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
887 (malloc_initialize_hook, sort_args, synchronize_locale):
888 * doprnt.c (doprnt):
889 * dired.c (compile_pattern):
890 * data.c (fmod_float):
891 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
892 (map_char_table_for_charset):
893 * charset.c (define_charset_internal):
894 * alloc.c (Fgarbage_collect): Convert declarations or definitions
895 to standard C.
896
9a39b306 8972010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 898 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
899
900 * lread.c (read1): Fix up last change to not mess up `c'.
901
e6cb2cbb
JB
9022010-07-04 Juanma Barranquero <lekktu@gmail.com>
903
904 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
905
438105ed
JB
9062010-07-04 Juanma Barranquero <lekktu@gmail.com>
907
908 Fix prototypes.
909
e5447b22 910 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 911 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
912 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
913 arg, as required by internal_condition_case_1.
dcc7404b 914 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
915 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
916 (analyse_first): Fix "const const".
e5447b22 917 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 918 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 919 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 920
971de7fb
DN
9212010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
922
923 * alloc.c: Convert function definitions to standard C.
924 * atimer.c:
925 * bidi.c:
926 * bytecode.c:
927 * callint.c:
928 * callproc.c:
929 * casefiddle.c:
930 * casetab.c:
931 * category.c:
932 * ccl.c:
933 * character.c:
934 * charset.c:
935 * chartab.c:
936 * cmds.c:
937 * coding.c:
938 * composite.c:
939 * data.c:
940 * dbusbind.c:
941 * dired.c:
942 * dispnew.c:
943 * doc.c:
944 * doprnt.c:
945 * ecrt0.c:
946 * editfns.c:
947 * fileio.c:
948 * filelock.c:
949 * filemode.c:
950 * fns.c:
951 * font.c:
952 * fontset.c:
953 * frame.c:
954 * fringe.c:
955 * ftfont.c:
956 * ftxfont.c:
957 * gtkutil.c:
958 * indent.c:
959 * insdel.c:
960 * intervals.c:
961 * keymap.c:
962 * lread.c:
963 * macros.c:
964 * marker.c:
965 * md5.c:
966 * menu.c:
967 * minibuf.c:
968 * prefix-args.c:
969 * print.c:
970 * ralloc.c:
971 * regex.c:
972 * region-cache.c:
973 * scroll.c:
974 * search.c:
975 * sound.c:
976 * strftime.c:
977 * syntax.c:
978 * sysdep.c:
979 * termcap.c:
980 * terminal.c:
981 * terminfo.c:
982 * textprop.c:
983 * tparam.c:
984 * undo.c:
985 * unexelf.c:
986 * window.c:
987 * xfaces.c:
988 * xfns.c:
989 * xfont.c:
990 * xftfont.c:
991 * xgselect.c:
992 * xmenu.c:
993 * xrdb.c:
994 * xselect.c:
995 * xsettings.c:
996 * xsmfns.c:
997 * xterm.c: Likewise.
998
ae492bec
EZ
9992010-07-03 Eli Zaretskii <eliz@gnu.org>
1000
76ea4cc9
EZ
1001 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1002 frames other than the initial one. Fix reversal of colors when
1003 `reverse' is specified in the frame parameters. Call
1004 update_face_from_frame_parameter instead of
1005 internal-set-lisp-face-attribute. Initialize screen colors from
1006 initial_screen_colors[] when f->default_face_done_p is zero,
1007 instead of depending on being called with default-frame-alist as
1008 the alist argument.
1009
1010 * xfaces.c (update_face_from_frame_parameter): Move out of
1011 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1012 with HAVE_WINDOW_SYSTEM.
1013
1e6255ae
EZ
1014 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1015 to menu-bar-mode, if not set in the frame parameters or in
1016 default-frame-alist.
1017
ae492bec
EZ
1018 * w32console.c (sys_tputs): Adjust argument list to prototype in
1019 term.c.
1020
3a35a84c
JB
10212010-07-03 Juanma Barranquero <lekktu@gmail.com>
1022
1023 * lisp.h (memory_warnings): Fix prototype.
1024
1025 * cm.h (evalcost): Fix prototype.
1026
1027 * cm.c (evalcost): Fix arg type.
1028
c532d349
DN
10292010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1030
1031 * term.c (term_clear_mouse_face, Fidentity):
1032 * syssignal.h (signal_handler_t):
1033 * lisp.h (memory_warnings):
1034 * coding.h (preferred_coding_system):
1035 * cm.h (evalcost):
1036 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1037
c0b36d46
EZ
10382010-07-02 Eli Zaretskii <eliz@gnu.org>
1039
1040 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1041 from prototypes.
1042
1043 * msdos.h (load_pixmap): Don't define away.
1044
383e0970
J
10452010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1046
f57e2426
J
1047 * lisp.h:
1048 * atimer.h: Remove define for P_.
1049
1050 * alloc.c: Remove __P and P_ from .c and .m files.
1051 * atimer.c:
1052 * buffer.c:
1053 * callint.c:
1054 * category.c:
1055 * charset.c:
1056 * chartab.c:
1057 * cm.c:
1058 * coding.c:
1059 * composite.c:
1060 * data.c:
1061 * dired.c:
1062 * dispnew.c:
1063 * doc.c:
1064 * editfns.c:
1065 * emacs.c:
1066 * eval.c:
1067 * fileio.c:
1068 * filelock.c:
1069 * fns.c:
1070 * font.c:
1071 * fontset.c:
1072 * frame.c:
1073 * ftfont.c:
1074 * ftxfont.c:
1075 * gmalloc.c:
1076 * gtkutil.c:
1077 * image.c:
1078 * indent.c:
1079 * intervals.c:
1080 * keyboard.c:
1081 * keymap.c:
1082 * lread.c:
1083 * marker.c:
1084 * menu.c:
1085 * minibuf.c:
1086 * print.c:
1087 * process.c:
1088 * scroll.c:
1089 * search.c:
1090 * sound.c:
1091 * strftime.c:
1092 * syntax.c:
1093 * sysdep.c:
1094 * term.c:
1095 * terminal.c:
1096 * textprop.c:
1097 * unexalpha.c:
1098 * w32console.c:
1099 * w32fns.c:
1100 * w32font.c:
1101 * w32menu.c:
1102 * w32term.c:
1103 * w32uniscribe.c:
1104 * window.c:
1105 * xdisp.c:
1106 * xfaces.c:
1107 * xfns.c:
1108 * xfont.c:
1109 * xftfont.c:
1110 * xmenu.c:
1111 * xselect.c:
1112 * xterm.c: Likewise.
1113
383e0970 1114 Remove P_ and __P macros.
f57e2426
J
1115 * atimer.h: Remove P_ and __P macros.
1116 * buffer.h:
383e0970
J
1117 * category.h:
1118 * ccl.h:
1119 * character.h:
1120 * charset.h:
1121 * cm.h:
1122 * coding.h:
1123 * composite.h:
1124 * dispextern.h:
1125 * disptab.h:
9e892c8d 1126 * dosfns.h:
383e0970
J
1127 * font.h:
1128 * fontset.h:
1129 * frame.h:
1130 * gtkutil.h:
1131 * indent.h:
1132 * intervals.h:
1133 * keyboard.h:
1134 * keymap.h:
1135 * lisp.h:
1136 * macros.h:
1137 * md5.h:
1138 * menu.h:
1139 * msdos.h:
1140 * nsterm.h:
1141 * puresize.h:
1142 * region-cache.h:
1143 * syntax.h:
1144 * syssignal.h:
1145 * systime.h:
1146 * termhooks.h:
9e892c8d 1147 * w32font.h:
383e0970
J
1148 * w32term.h:
1149 * widget.h:
1150 * window.h:
1151 * xgselect.h:
1152 * xsettings.h:
1153 * xterm.h: Likewise.
1154
98601119
DN
11552010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1156
d9170db5
DN
1157 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1158
98601119
DN
1159 Cleanup old code.
1160 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1161 * syssignal.h: Remove code for Lynx, not supported anymore.
1162 * vm-limit.c: Remove unused code the depends on emacs not being
1163 defined and NO_LIM_DATA being defined.
1164 * mem-limits.h: Remove dead code.
1165
1f984e12
J
11662010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1167
c49d071a
J
1168 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1169
9d5405ec
J
1170 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1171 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1172
7a18115b
J
1173 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1174 parameters, they are already absolute.
1175
a628ad9d
JB
1176 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1177 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1178
a628ad9d 1179 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1180
a628ad9d
JB
1181 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1182 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1183
a628ad9d
JB
1184 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1185 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1186
c1ef4455
CY
11872010-06-30 Chong Yidong <cyd@stupidchicken.com>
1188
1189 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1190 check default-frame-alist.
1191
ce8f5a9a
AS
11922010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1193
1194 * process.c (create_process): Avoid using invalid file descriptors.
1195
1196 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1197
bf935339
J
11982010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1199
1200 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1201 Improve documentation. Return font regardless of use_system_font.
1202 (syms_of_xsettings): Improve documentation for font-use-system-font.
1203
7c33a057
CY
12042010-07-10 Chong Yidong <cyd@stupidchicken.com>
1205
2ec1b5ee
CY
1206 * xfaces.c (realize_face): Garbage the frame if a face is removed
1207 (Bug#6593).
1208
12092010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1210
1211 * keyboard.c: Remove duplicate <setjmp.h>.
1212 (read_key_sequence): Remove volatile qualifiers.
1213
12142010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1215
1216 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1217 (struct glyph_row): New members left_fringe_offset and
1218 right_fringe_offset.
1219
1220 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1221 specially.
1222 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1223 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1224
1225 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1226 Take account of bitmap offset.
2ec1b5ee
CY
1227 (draw_window_fringes): Take account of window vscroll.
1228 (update_window_fringes): Likewise. Extend top-aligned top indicator
1229 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1230 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1231 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1232
12332010-07-04 Juanma Barranquero <lekktu@gmail.com>
1234
1235 * w32fns.c (Qtooltip): Declare.
1236 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1237
12382010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1239
1240 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1241 grab on just Press (Bug#6499).
1242
12432010-07-02 Chong Yidong <cyd@stupidchicken.com>
1244
1245 * frame.c (Qtooltip): New var.
1246 (delete_frame): Use it. Fix faulty if statement. Don't update
1247 mode line for tooltip frames. Suggested by Martin Rudalics.
1248
1249 * xfns.c (x_create_tip_frame):
1250 * w32fns.c (x_create_tip_frame): Use it.
1251
12522010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1253
1254 * xftfont.c (xftfont_open): Check font width one by one also when
1255 spacing is dual.
1256
1257 * ftfont.c (ftfont_open): Ditto.
1258
6259c2ec
GM
12592010-06-30 Glenn Morris <rgm@gnu.org>
1260
a46007e9
GM
1261 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1262
6259c2ec
GM
1263 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1264
1265 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1266 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1267 * s/darwin.h (SYSTEM_MALLOC):
1268 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1269
5d1d3d04
J
12702010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1271
1272 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1273 (ns_get_screen): Don't assign integer to f.
1274 (Fx_display_color_cells): Declarations before statements.
1275
e547b051
J
12762010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1277
5fc8e5bc
J
1278 * xfns.c (x_default_font_parameter): Remove got_from_system
1279 (Bug#6526).
1280
e547b051
J
1281 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1282 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1283 defines based on what configure finds.
1284
1285 * xterm.c (XTflash): Use gtk_widget_get_window.
1286 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1287 gtk_adjustment_get_page_size.
1288 (handle_one_xevent): Use gtk_widget_get_mapped.
1289 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1290 messages.
1291
1292 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1293
1294 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1295 HAVE_GTK_FILE_SELECTION_NEW.
1296
1297 * gtkutil.c (xg_display_open, xg_display_close): Remove
1298 HAVE_GTK_MULTIDISPLAY, it is always defined.
1299 (xg_display_open): Return type is void.
1300 (gtk_widget_set_has_window)
1301 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1302 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1303 (gtk_adjustment_set_page_increment)
1304 (gtk_adjustment_get_step_increment): #define these if not found
1305 by configure.
1306 (remove_submenu): New define based on Gtk+ version.
1307 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1308 gtk_widget_get_window.
1309 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1310 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1311 (create_dialog): Use gtk_dialog_get_action_area and
1312 gtk_dialog_get_content_area.
1313 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1314 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1315 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1316 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1317 g_object_ref and g_object_unref.
1318 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1319 gtk_widget_get_sensitive.
1320 (xg_update_submenu): Use remove_submenu.
1321 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1322 properties instead to get old x and y position.
1323 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1324 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1325 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1326 (xg_get_tool_bar_widgets): New function.
1327 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1328 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1329 (toolbar_set_orientation): New #define based on if configure
1330 finds gtk_orientable_set_orientation.
1331 (xg_create_tool_bar): Call toolbar_set_orientation.
1332 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1333 instead of gtk_box_pack_start_defaults.
1334
b9229673
CY
13352010-06-28 Chong Yidong <cyd@stupidchicken.com>
1336
1337 * cmds.c (Fdelete_backward_char): Move into Lisp.
1338
bbc803b0
DN
13392010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1340
1341 * s/freebsd.h (BSD4_2): Remove redundant definition.
1342 bsd-common.h defines it already.
1343
6431f2e6
CY
13442010-06-27 Chong Yidong <cyd@stupidchicken.com>
1345
1346 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1347 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1348 tool-bar-mode, which are now set using these X resources at
1349 startup, to determine the defaults (Bug#2249).
1350
1351 * w32fns.c (Fx_create_frame):
1352 * nsfns.m (Fx_create_frame): Likewise.
1353
1354 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1355
8c079ebb
JB
13562010-06-24 Juanma Barranquero <lekktu@gmail.com>
1357
1358 * gtkutil.c (xg_update_scrollbar_pos):
1359 Avoid C99 mid-block variable declaration.
1360
e9b7ab96
JD
13612010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1362
bc869eca
JD
1363 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1364
2b7e356a 1365 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1366
1367 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1368 if height is less than scroll bar min size.
1369 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1370
e9b7ab96
JD
1371 * xfns.c (x_default_font_parameter): Try to open font from system
1372 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1373
a628ad9d 13742010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
1375
1376 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1377
70c4cfbb
EZ
13782010-06-20 Eli Zaretskii <eliz@gnu.org>
1379
1380 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1381 most-positive-fixnum, be extra accurate when scrolling window
1382 start, to avoid missing the cursor line.
1383
ad5a12b5
EZ
13842010-06-19 Eli Zaretskii <eliz@gnu.org>
1385
1386 * xdisp.c (try_scrolling): Compute the limit for searching point
1387 in forward scroll from scroll_max, instead of an arbitrary limit
1388 of 10 screen lines. See
1389 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1390 and
1391 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1392 for details.
1393
2a64315a 13942010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1395
1396 * editfns.c (Fbyte_to_string): Pacify compiler.
1397
288cf4e9
SM
13982010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1399
1400 * lread.c (read1): Phase out old-style backquotes a bit more.
1401
6e6e5760
EZ
14022010-06-12 Eli Zaretskii <eliz@gnu.org>
1403
cbc4fd20
EZ
1404 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1405 bidimirror.h.
1406
1407 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1408
317fbf33
EZ
1409 * bidi.c (bidi_initialize): Remove explicit initialization of
1410 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1411 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1412 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1413
1414 * biditype.h: New file.
1415
cbc4fd20
EZ
1416 * bidimirror.h: New file.
1417
6e6e5760
EZ
1418 * window.c (syms_of_window): Doc fix (bug#6409).
1419
4176cba2
RF
14202010-06-12 Romain Francoise <romain@orebokech.com>
1421
1422 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1423 ediff-hook.
1424
cb4bfcb5
GM
14252010-06-10 Glenn Morris <rgm@gnu.org>
1426
64c60c2f
GM
1427 * editfns.c (Fbyte_to_string): Pacify compiler.
1428
cb4bfcb5
GM
1429 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1430
2ec1b5ee
CY
14312010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1432
1433 * alloc.c (Fmake_byte_code): Don't access undefined argument
1434 (Bug#6517).
1435
14362010-06-25 Chong Yidong <cyd@stupidchicken.com>
1437
1438 * xdisp.c (next_element_from_image): Ensure that after-strings are
1439 read the next time we hit handle_stop (Bug#1336).
1440
14412010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1442
1443 * lread.c (read1): Signal error if #s is not followed by paren.
1444
14452010-06-19 Chong Yidong <cyd@stupidchicken.com>
1446
1447 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1448
1449 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1450
14512010-06-15 Glenn Morris <rgm@gnu.org>
1452
1453 * editfns.c (Fbyte_to_string): Pacify compiler.
1454
e454a4a3
SM
14552010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1456
1457 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1458 Check `object's type before accessing its guts.
1459
c1b1acc2
DN
14602010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1461
1462 * s/usg5-4.h: Fix previous change.
1463 Suggested by Lawrence Mitchell <wence@gmx.li>
1464
657d4c0b
AS
14652010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1466
1467 * minibuf.c (Fall_completions): Add more checks.
1468
9b27fd9f
JB
14692010-06-08 Juanma Barranquero <lekktu@gmail.com>
1470
1471 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1472
a99ebb40
DN
14732010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1474
d7c5d87d
DN
1475 * lread.c (X_OK): Remove, unused.
1476
0263a941
DN
1477 * dispnew.c: Remove obsolete comment.
1478
a99ebb40
DN
1479 Remove INCLUDED_FCNTL.
1480 * xterm.c (INCLUDED_FCNTL):
1481 * callproc.c (INCLUDED_FCNTL):
1482 * alloc.c (INCLUDED_FCNTL):
1483 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1484 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1485
13b5221f
MR
14862010-06-07 Martin Rudalics <rudalics@gmx.at>
1487
1488 * window.c (Fselect_window): Move `record_buffer' up to the
1489 beginning of this function, so the buffer gets recorded
1490 even if the selected window does not change.
1491 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1492
5220357f
JB
14932010-06-07 Juanma Barranquero <lekktu@gmail.com>
1494
1495 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1496 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1497
3085237c
DN
14982010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1499
1500 Remove BSTRING related code, all platforms define it.
1501 * s/usg5-4.h (BSTRING): Remove definition.
1502 * s/template.h (BSTRING):
1503 * s/msdos.h (BSTRING):
1504 * s/ms-w32.h (BSTRING):
1505 * s/hpux10-20.h (BSTRING):
1506 * s/gnu-linux.h (BSTRING):
1507 * s/darwin.h (BSTRING):
1508 * s/cygwin.h (BSTRING):
1509 * s/bsd-common.h (BSTRING):
1510 * s/aix4-2.h (BSTRING): Likewise.
1511 * sysdep.c: Remove code depending on BSTRING not being defined.
1512
409f2919
JB
15132010-06-05 Juanma Barranquero <lekktu@gmail.com>
1514
1515 Remove obsolete macro BASE_LEADING_CODE_P.
1516 * character.h (BASE_LEADING_CODE_P): Remove.
1517 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1518 * buffer.c (Fset_buffer_multibyte):
1519 * indent.c (scan_for_column, compute_motion):
1520 * insdel.c (count_combining_before, count_combining_after):
1521 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1522
087fc47a
JB
15232010-06-04 Juanma Barranquero <lekktu@gmail.com>
1524
1525 Turn `directory-sep-char' into a noop.
1526
1527 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1528 (DIRECTORY_SEP): Define unconditionally.
1529
1530 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1531
1532 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1533 call dostounix_filename directly.
1534
1535 * fileio.c (CORRECT_DIR_SEPS): Remove.
1536 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1537 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1538 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1539 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1540
1541 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1542 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1543
0eb7675e
AS
15442010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1545
a628ad9d
JB
1546 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
1547 (Bug#6346)
0eb7675e 1548
78edd3b7
JB
15492010-06-03 Juanma Barranquero <lekktu@gmail.com>
1550
1551 * ccl.c (Fccl_program_p): Fix typo in docstring.
1552
eb697db5
DN
15532010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
1554
1555 Move UNEXEC definition to autoconf.
1556 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
1557 * s/sol2-10.h (UNEXEC):
1558 * s/irix6-5.h (UNEXEC):
1559 * s/hpux10-20.h (UNEXEC):
1560 * s/gnu-linux.h (UNEXEC):
1561 * s/darwin.h (UNEXEC):
1562 * s/cygwin.h (UNEXEC):
1563 * s/bsd-common.h (UNEXEC):
1564 * s/aix4-2.h (UNEXEC):
1565 * m/alpha.h (UNEXEC): Likewise.
1566 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
1567
aa3830c4
JB
15682010-06-03 Juanma Barranquero <lekktu@gmail.com>
1569
1570 Remove obsolete pre-unicode2 macros.
1571 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
1572 * composite.c (composition_reseat_it):
1573 * data.c (Faset):
1574 * fns.c (Ffillarray):
1575 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
1576 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
1577
d234d13e
JL
15782010-06-03 Juri Linkov <juri@jurta.org>
1579
1580 * buffer.c (Fother_buffer): Add CHECK_FRAME.
1581 (Fswitch_to_buffer): Remove unused variable `err'.
1582
0d4bcf4d
GM
15832010-06-03 Glenn Morris <rgm@gnu.org>
1584
e23dc1e2
GM
1585 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
1586
05b09564
GM
1587 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1588 now that AH_BOTTOM does it.
1589
824e2978
GM
1590 * m/hp800.h (HAVE_ALLOCA):
1591 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1592
0d4bcf4d
GM
1593 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1594 Remove NOT_C_CODE tests, it is always true now.
1595
c55d2abf
DN
15962010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1597
08a494a3
DN
1598 Fix config.h includes.
1599 * xsettings.c:
1600 * xgselect.c:
1601 * nsterm.m:
1602 * nsselect.m:
1603 * nsimage.m:
1604 * nsfont.m:
1605 * nsfns.m:
1606 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1607 other files do.
1608
75934b1d
DN
1609 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1610
9f32a766
DN
1611 * s/sol2-6.h: Remove obsolete comments.
1612
c55d2abf
DN
1613 Remove unnecessary alloca.h includes.
1614 * keymap.c: Do not include alloca.h, config.h does that.
1615 * sysdep.c: Likewise. Do not define fwrite, not used.
1616
06ac62b4
SM
16172010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1618
1619 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1620 the HAVE_TERMIO where it belongs (bug#6149).
1621
1ab8293c
SM
16222010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1623
1624 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1625 of bug#6305).
1626
6dcfd253
EZ
16272010-05-30 Eli Zaretskii <eliz@gnu.org>
1628
1629 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1630 state is always cached (bug#6306).
1631
6d26bbb2
EZ
16322010-05-29 Eli Zaretskii <eliz@gnu.org>
1633
06fa4a23
EZ
1634 Fix cursor motion in bidi-reordered continued lines.
1635 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1636 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
1637 over continuation lines in bidi-reordered buffers. Return
1638 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1639 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1640
f5783df3
MA
16412010-05-28 Michael Albinus <michael.albinus@gmx.de>
1642
1643 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1644
7d56b2dd
KH
16452010-05-28 Kenichi Handa <handa@m17n.org>
1646
1647 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1648 Don't sheck SPEC if it is nil.
1649 (font_list_entities): Call font_delete_unmatched if
b925d231 1650 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 1651
e58d4ff7
GM
16522010-05-28 Glenn Morris <rgm@gnu.org>
1653
1654 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1655
f1a5d776
CY
16562010-05-27 Chong Yidong <cyd@stupidchicken.com>
1657
1658 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1659 whether to trash.
1660 (internal_delete_file, Frename_file): Callers changed.
1661 (delete_by_moving_to_trash): Doc fix.
1662 (Fdelete_directory_internal): Don't move to trash.
1663
1664 * callproc.c (delete_temp_file):
1665 * buffer.c (Fkill_buffer): Callers changed.
1666
1667 * lisp.h: Update prototype.
1668
f44a59e6
CY
16692010-05-27 Chong Yidong <cyd@stupidchicken.com>
1670
1671 * xdisp.c (redisplay_window): After redisplay, check if point is
1672 still valid before setting it (Bug#6177).
1673
81ac4f35
GM
16742010-05-27 Glenn Morris <rgm@gnu.org>
1675
1676 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1677 Convert comments to Makefile format.
1678
1679 * Makefile.in (bootstrap-clean): No more Makefile.c.
1680
ccd89fb3
GM
16812010-05-26 Glenn Morris <rgm@gnu.org>
1682
90278cb6
GM
1683 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1684 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1685
ccd89fb3
GM
1686 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1687 Remove.
1688 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1689
b7050583
KH
16902010-05-26 Kenichi Handa <handa@m17n.org>
1691
1692 * composite.c (composition_compute_stop_pos): Fix condition for
1693 backward scanning.
1694
e5458003
GM
16952010-05-25 Glenn Morris <rgm@gnu.org>
1696
c345fe90
GM
1697 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1698 Move before TEMACS_LDFLAGS.
1699 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1700 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1701
2e0689ab
GM
1702 * Makefile.in (NOT_C_CODE): No longer define.
1703 (config.h): No longer include.
1704
8009a5e8
GM
1705 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
1706 variables it may reference.
1707
e5458003
GM
1708 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
1709 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
1710
10f72a37
KH
17112010-05-25 Kenichi Handa <handa@m17n.org>
1712
1713 * dispextern.h (struct composition_it): New members rule_idx and
1714 charpos.
1715
1716 * xdisp.c (set_iterator_to_next): While scanning backward, assume
1717 that the character positions of IT point the last character of the
1718 current grapheme cluster.
1719 (next_element_from_composition): Don't change character positions
1720 of IT.
1721 (append_composite_glyph): Set glyph->charpos to
1722 it->cmp_it.charpos.
1723
1724 * composite.c (autocmp_chars): Change the first argument to RULE,
1725 and try composition with RULE only.
1726 (composition_compute_stop_pos): Record the index number of the
1727 composition rule in CMP_IT->rule_idx.
1728 (composition_reseat_it): Call autocmp_chars repeatedly until the
1729 correct rule of the composition is found.
1730 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
1731 is at the last character of the current grapheme cluster when
1732 CMP_IT->reversed_p is nonzero.
1733
171eda53 17342010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 1735
171eda53
SM
1736 * editfns.c (Fbyte_to_string): New function.
1737
66a9f7f4
SM
17382010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1739
1740 * process.c (Fmake_network_process): Set :host to nil if it's not used.
1741 Suggested by Masatake YAMATO <yamato@redhat.com>.
1742
d8c315d1
EZ
17432010-05-23 Eli Zaretskii <eliz@gnu.org>
1744
171eda53 1745 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 1746
f5b416d2 17472010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1748
1749 * s/netbsd.h: If terminfo is found, use it in preference to
1750 termcap. (Bug#6190) [Backport from trunk]
1751
0416466c
EZ
17522010-05-19 Eli Zaretskii <eliz@gnu.org>
1753
11117830 1754 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
1755
1756 * dispextern.h (struct glyph_row): New members minpos and maxpos.
1757 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
1758 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
1759 and maxpos members instead of start.pos and end.pos, respectively.
1760
1761 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
1762 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
1763 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
1764 (try_window_reusing_current_matrix, try_window_id):
1765 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
1766 (init_from_display_pos, init_iterator): Use EMACS_INT for
1767 character and byte positions.
66a9f7f4 1768 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
1769 arguments for minimum and maximum buffer positions seen by
1770 display_line for this row. Don't use iterator to find the
1771 position following the maximum one; instead, increment the
11117830
EZ
1772 position found by display_line directly. Fix logic; eol_pos
1773 should be tested before the rest. Handle the case of characters
1774 delivered from display vector (bug#6036). Fix tests related to
1775 it->method. Handle the truncated_on_right_p rows.
1776 (RECORD_MAX_MIN_POS): New macro.
1777 (display_line): Use it to record the minimum and maximum buffer
1778 positions for glyphs in the row being assembled. Record the
1779 position of the newline that terminates the line. If word wrap is
1780 in effect, restore minimum and maximum positions seen up to the
1781 wrap point, when iterator returns to it.
1782 (try_window_reusing_current_matrix): Give up if in bidi-reordered
1783 row and cursor not already at point. Restore original pre-bidi
1784 code for unidirectional buffers.
d36fe237
EZ
1785
1786 * dispnew.c (increment_row_positions, check_matrix_invariants):
1787 Increment and check row->start.pos and row->end.pos, in addition
1788 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
1789
11117830
EZ
1790 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
1791 Display truncated_on_left_p and truncated_on_right_p flags.
1792 Formatting fixes.
1793 (pmtxrows): Display the ordinal number of each row. Don't display
1794 rows beyond the last one.
1795
1796 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
1797 it is not copied by bidi_copy_it.
1798
6e83d800
EZ
17992010-05-22 Eli Zaretskii <eliz@gnu.org>
1800
1801 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
1802 (Bug#6237)
1803
110683ad
CY
18042010-05-22 Chong Yidong <cyd@stupidchicken.com>
1805
1806 * image.c (Fimage_flush): Rename from image-refresh.
1807
98fe5161
CY
18082010-05-21 Chong Yidong <cyd@stupidchicken.com>
1809
1810 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
1811 just one window.
1812
1813 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
1814 (clear_image_cache): If the number of cached images is unusually
1815 large, decrease the cache eviction delay (Bug#6230).
1816
e8752c66
GM
18172010-05-21 Glenn Morris <rgm@gnu.org>
1818
66dbf213
GM
1819 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
1820 Move these rules to ns.mk.
1821 * ns.mk: New file.
1822
04384b2d
GM
1823 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
1824
e8752c66
GM
1825 * Makefile.in (CANNOT_DUMP): New, set by configure.
1826 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
1827
2e2bbddb
JL
18282010-05-20 Juri Linkov <juri@jurta.org>
1829
1830 * fileio.c (Fdelete_file): Change interative spec to use
1831 `read-file-name' like in `find-file-read-args' where the default
1832 value is `default-directory' instead of `buffer-file-name'.
1833 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
1834
31c4aaf6
KR
18352010-05-20 Kevin Ryde <user42@zip.com.au>
1836
1837 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1838 (Voverriding_terminal_local_map, Vsystem_key_alist)
1839 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1840
9d5cf9b6
GM
18412010-05-20 Glenn Morris <rgm@gnu.org>
1842
1843 * Makefile.in (DEPDIR): New constant.
1844 (DEPFLAGS): Set with configure, not cpp.
1845 (MKDEPDIR): New, set by configure.
1846 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
1847 (clean): Use $DEPDIR.
1848 (deps_frag): Include from configure.
1849 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1850 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1851
ead6f8f5
EZ
1852 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1853 reallocation of the cache. (Bug#6210)
1854
7f34aec3
GM
18552010-05-19 Glenn Morris <rgm@gnu.org>
1856
d494e8f2
GM
1857 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1858
c1d0dcfd
GM
1859 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1860 (GNULIB_VAR): Remove.
1861 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1862
1863 * m/ibms390x.h (LINKER):
1864 * m/macppc.h (LINKER) [GNU_LINUX]:
1865 * s/aix4-2.h (ORDINARY_LINK):
1866 * s/cygwin.h (LINKER):
1867 * s/darwin.h (ORDINARY_LINK):
1868 * s/gnu.h (ORDINARY_LINK):
1869 * s/netbsd.h (LINKER):
1870 * s/usg5-4.h (ORDINARY_LINK):
1871 Move to configure.
1872
7f34aec3
GM
1873 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1874
754790b6
CY
18752010-05-18 Chong Yidong <cyd@stupidchicken.com>
1876
1877 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1878 prevent stack overflow if number of arguments is too large
1879 (Bug#6214).
1880
161e44d1
JB
18812010-05-18 Juanma Barranquero <lekktu@gmail.com>
1882
1883 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1884
be4ff9da
GM
18852010-05-18 Glenn Morris <rgm@gnu.org>
1886
9539dc5d
GM
1887 * s/gnu-linux.h: Combine two conditionals.
1888
1889 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
1890 $(POST_ALLOC_OBJ).
1891
40dc6bf4
GM
1892 * Makefile.in (RALLOC_OBJ): New, set by configure.
1893 (rallocobj): Replace with the previous variable.
1894 (otherobj): Use $RALLOC_OBJ.
1895
1896 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1897 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1898
be4ff9da
GM
1899 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1900 (gmallocobj, vmlimitobj): Replace with previous two variables.
1901 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1902
16455a85
GM
19032010-05-17 Glenn Morris <rgm@gnu.org>
1904
1905 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1906 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1907
5fdb7468
GM
19082010-05-16 Glenn Morris <rgm@gnu.org>
1909
7ca1f3f9
GM
1910 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1911
7541dad5
GM
1912 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1913
da53fab9
GM
1914 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1915 trailing "/".
1916
b02a6645
GM
1917 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1918 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1919
8877ca0f
GM
1920 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1921 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1922 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1923 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1924 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1925
5fdb7468
GM
1926 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1927 Remove ${STARTFLAGS}, nothing ever sets it.
1928
95adb4b1
DN
19292010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1930
1931 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1932
676b6304
GM
19332010-05-16 Glenn Morris <rgm@gnu.org>
1934
9beab9ce
GM
1935 * Makefile.in (LIBX_BASE): Always define.
1936
8a95f0e7
GM
1937 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1938
676b6304
GM
1939 * Makefile.in (LIBXT): Always define.
1940
6e546d18
GM
19412010-05-15 Glenn Morris <rgm@gnu.org>
1942
4235ca47 1943 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 1944
6e546d18
GM
1945 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1946 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1947
8c5ff6dd
KR
19482010-05-15 Ken Raeburn <raeburn@raeburn.org>
1949
560bb7ae 1950 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
1951 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1952
8b4eb796
KR
1953 * emacs.c (main): Initialize initial-environment and
1954 process-environment before generating from env, not after.
1955
8c5ff6dd
KR
1956 Handle --version reasonably in CANNOT_DUMP configuration.
1957 * emacs.c (emacs_version, emacs_copyright): New string variables.
1958 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1959 (syms_of_emacs): Defvar them, and initialize them from the C
1960 string variables.
1961 (main): If initialization hasn't been done, print initial version
1962 info from the C strings, instead of starting an interactive session.
1963
dbd3f723
EZ
19642010-05-15 Eli Zaretskii <eliz@gnu.org>
1965
d20e1419
EZ
1966 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1967 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
1968 (bidi_paragraph_init): Remove redundant assertion that we are at
1969 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
1970
1971 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1972 (syms_of_xdisp): Defsubr it.
1973
d36fe237
EZ
1974 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1975
dbd3f723
EZ
1976 * Makefile.in: Fix MSDOS-related comments.
1977
02be533b
GM
19782010-05-15 Glenn Morris <rgm@gnu.org>
1979
1a82cca9
GM
1980 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1981 (really-lwlib, really-oldXMenu): Always define.
1982 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1983
3df7b338
GM
1984 * Makefile.in: Simplify cpp conditional.
1985
2b5f541b
GM
1986 * Makefile.in (${ns_appdir}): Simplify using umask.
1987
02be533b
GM
1988 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1989
4e2db1fe
SM
19902010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1991
1992 * eval.c (specbind): Remove left-over duplicate test.
1993 Disallow let-binding frame-local vars. Add comment.
1994
4b292a22
EZ
19952010-05-14 Eli Zaretskii <eliz@gnu.org>
1996
2fe72643 1997 Make the cache of bidi iterator states dynamically allocated.
1edbd309 1998 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
1999 (bidi_init_it): Call it.
2000 (bidi_cache_iterator_state): Enlarge the cache if needed.
2001
4e2db1fe 2002 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
2003 bidi_get_next_char_visually. All callers changed.
2004
82ebc97b
KH
20052010-05-14 Kenichi Handa <handa@m17n.org>
2006
2007 * dispextern.h (struct composition_it): New member reversed_p.
2008
2009 * composite.c (composition_compute_stop_pos): Search backward if
2010 ENDPOS < CHARPOS.
2011 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2012 Set CMP_IT->reversed_p.
b4b6e17e 2013 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 2014
4e2db1fe
SM
2015 * xdisp.c (set_iterator_to_next):
2016 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
2017 scanning backward. Call composition_compute_stop_pos if scan
2018 direction is changed.
2019 (next_element_from_buffer): Call composition_compute_stop_pos with
2020 negative ENDPOS if we are scanning backward.
2021 (next_element_from_composition): Pay attention to
2022 IT->cmp_it.reversed_p.
2023
0e5d7800
KH
20242010-05-14 Kenichi Handa <handa@m17n.org>
2025
560bb7ae 2026 * font.c (font_range): Return the range for the font found at first.
0e5d7800 2027
cb027b32
GM
20282010-05-14 Glenn Morris <rgm@gnu.org>
2029
177b0288
GM
2030 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2031
fbc00890
GM
2032 * Makefile.in (mktime, X11, register): Move undefs to configure.
2033
f14d1dfd
GM
2034 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2035 (MSDOS_X_OBJ): New variable.
2036 (MSDOS_SUPPORT_REAL): New constant.
2037 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2038 (obj): Use MSDOS_X_OBJ.
2039 (lisp): Use MSDOS_SUPPORT as a variable.
2040
11842bd8
GM
2041 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2042 (GPM_MOUSE_SUPPORT): Now it's a constant.
2043 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2044 not cpp.
2045
489d31a4 2046 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2047 (ns_appresdir): Remove, unused.
e20f1f07 2048
489d31a4
GM
2049 * Makefile.in (SHELL): Move outside cpp section.
2050
cb027b32
GM
2051 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2052
5a903aa9
GM
20532010-05-13 Glenn Morris <rgm@gnu.org>
2054
3369c79f
GM
2055 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2056 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2057
d5e982a6
GM
2058 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2059 HAVE_WINDOW_SYSTEM must be too.
2060
6192e163
GM
2061 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2062 (lisp): Remove WINNT_SUPPORT.
2063
472c5d6b
GM
2064 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2065 Let configure set these variables (to empty) in this case as well.
2066
0116466b
GM
2067 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2068 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2069
5a903aa9
GM
2070 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2071 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2072 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2073 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2074 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2075 the values output by configure.
5a903aa9
GM
2076 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2077
1a0d7c06
GM
20782010-05-12 Glenn Morris <rgm@gnu.org>
2079
b5457f14
GM
2080 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2081 (LINKER_WAS_SPECIFIED): Remove.
2082
1a0d7c06
GM
2083 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2084 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2085 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2086 * s/cygwin.h (LIB_GCC):
2087 * s/freebsd.h (LIB_GCC):
2088 * s/gnu-linux.h (LIB_GCC):
2089 * s/msdos.h (LIB_GCC):
2090 * s/netbsd.h (LIB_GCC):
2091 Move to configure.
2092
3ffd4615 20932010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2094
2095 * ftfont.c: Fix incorrect parentheses of #if condition for
2096 definining M17N_FLT_USE_NEW_FEATURE.
2097
acddf8ae
GM
20982010-05-11 Glenn Morris <rgm@gnu.org>
2099
2100 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2101 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2102
ae5e04fa
EZ
21032010-05-10 Eli Zaretskii <eliz@gnu.org>
2104
2105 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2106 unibyte buffers. See
2107 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2108
7490175b
GM
21092010-05-10 Glenn Morris <rgm@gnu.org>
2110
97efb629
GM
2111 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2112 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2113 (LIBES): Use LIBS_SYSTEM as a variable.
2114 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2115 * s/aix4-2.h (LIBS_SYSTEM):
2116 * s/freebsd.h (LIBS_SYSTEM):
2117 * s/hpux10-20.h (LIBS_SYSTEM):
2118 * s/sol2-6.h (LIBS_SYSTEM):
2119 * s/unixware.h (LIBS_SYSTEM):
2120 Move to configure.
2121
7490175b
GM
2122 * s/aix4-2.h (MAIL_USE_LOCKF):
2123 * s/bsd-common.h (MAIL_USE_FLOCK):
2124 * s/darwin.h (MAIL_USE_FLOCK):
2125 * s/gnu-linux.h (MAIL_USE_FLOCK):
2126 * s/irix6-5.h (MAIL_USE_FLOCK):
2127 * s/template.h (MAIL_USE_FLOCK):
2128 Move to configure.
2129
0235128c 21302010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2131
2132 * Version 23.2 released.
2133
0235128c 21342010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2135
2136 * composite.c (autocmp_chars): Save point as marker before calling
2137 auto-composition-function (Bug#5984).
2138
2139 * lisp.h (restore_point_unwind): Add prototype.
2140
2141 * fileio.c (restore_point_unwind): Remove static attribute.
2142
0235128c 21432010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2144
2145 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2146 new feature of libotf and m17n-flt.
0235128c
SM
2147 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2148 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2149 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2150 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2151 that OUT is NULL. Use OTF_drive_gsub_with_log and
2152 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2153 OTF_drive_gpos.
2154 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2155 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2156 Setup mflt_enable_new_feature and mflt_try_otf.
2157
4721152c
J
21582010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2159
2160 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2161
2162 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2163 box and toolbar (Bug #6139).
2164 (xg_create_tool_bar): Remove comment (Bug #6139).
2165 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2166 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2167
ee0a16cf
JB
21682010-05-08 Juanma Barranquero <lekktu@gmail.com>
2169
2170 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2171 Update dependencies.
2172
96d79611
EZ
21732010-05-08 Eli Zaretskii <eliz@gnu.org>
2174
2175 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2176 R2L lines.
2177
40c17879
GM
21782010-05-08 Glenn Morris <rgm@gnu.org>
2179
7b42b29f
GM
2180 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2181
40c17879
GM
2182 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2183 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2184 (termcapobj): Replace with TERMCAP_OBJ.
2185 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2186 (LIBES): Use LIBS_TERMCAP as a variable.
2187
2188 * s/freebsd.h (osreldate.h): No longer include, since this file
2189 does not use __FreeBSD_version any more.
2190
2191 * s/aix4-2.h (TERMINFO):
2192 * s/cygwin.h (TERMINFO):
2193 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2194 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2195 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2196 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2197 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2198 * s/irix6-5.h (TERMINFO):
2199 * s/netbsd.h (LIBS_TERMCAP):
2200 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2201 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2202 * s/usg5-4.h (TERMINFO):
2203 Move to configure.
2204
94b612ad
SM
22052010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2206
2207 * eval.c (unbind_to): Don't unbind a local binding into the global
2208 binding when the local binding disappeared. Inversely, don't unbind
2209 a global binding into a newly created local binding.
2210 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2211 can specify the frame to use, when applicable. Adjust callers.
2212
15e12598 22132010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2214 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2215
2216 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2217
f724825e
EZ
22182010-05-07 Eli Zaretskii <eliz@gnu.org>
2219
5cba3209
EZ
2220 * w32fns.c: Include w32.h.
2221 (Fw32_shell_execute): Decode the error message before passing it
2222 to `error'. (Bug#6126)
2223
d16bdfc3
EZ
2224 * msdos.c (dos_set_window_size):
2225 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2226 instead of `XSYMBOL (foo)->value'.
2227
59d93e87
EZ
22282010-05-07 Eli Zaretskii <eliz@gnu.org>
2229
9fdec8bc
EZ
2230 Fix the MS-DOS build, broken by autoconfiscation.
2231
2232 * Makefile.in: Don't use Make-style comments past the "start of
2233 cpp stuff" line.
2234 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2235
2236 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2237 edited directly by msdos/sed1v2.inp).
f724825e 2238
2f86b22b
GM
22392010-05-07 Glenn Morris <rgm@gnu.org>
2240
2241 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2242 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2243 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2244 move out of cpp section.
2245 * s/freebsd.h (LD_SWITCH_SYSTEM):
2246 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2247 * s/netbsd.h (LD_SWITCH_SYSTEM):
2248 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2249
49ebbd65
DN
22502010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2251
2252 Define LIB_STANDARD and START_FILES using autoconf.
2253 * s/usg5-4.h (LIB_STANDARD):
2254 * s/netbsd.h (START_FILES):
2255 * s/irix6-5.h (LIB_STANDARD):
2256 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2257 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2258 * s/freebsd.h (START_FILES):
2259 * s/darwin.h (START_FILES):
2260 * s/cygwin.h (START_FILES):
2261 * s/aix4-2.h (LIB_STANDARD):
2262 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2263 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2264 autoconf, not cpp.
2265
d43c06d6
DN
22662010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2267
28823648
DN
2268 Remove NEED_BSDTTY and NEED_UNISTD_H.
2269 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2270 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2271 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2272 <sys/ptyio.h> and <unistd.h>.
2273
aca00430
DN
2274 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2275
d43c06d6
DN
2276 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2277 * s/gnu.h (START_FILES): Remove empty definition.
2278
3e56b11d
JD
22792010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2280
2281 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2282
e3cf0cde
GM
22832010-05-06 Glenn Morris <rgm@gnu.org>
2284
2285 * Makefile.in (CPP, LN_S): Remove unused variables.
2286
774b9a60
SM
22872010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2288
2289 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2290
4ab92842
LM
22912010-05-05 Lawrence Mitchell <wence@gmx.li>
2292
2293 * m/sparc.h: Fix typo in earlier change.
2294
178f2507
SM
22952010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2296
2297 Misc tweaks.
2298 * eval.c (Fdefvaralias): Remove unintended nested if.
2299 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2300
80f00217 23012010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2302
2303 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2304
ef03a4e6
DN
23052010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2306
58eb6cf0
DN
2307 Remove BSD_PGRPS.
2308 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2309 * s/gnu-linux.h (BSD_PGRPS): Remove.
2310 * term.c (dissociate_if_controlling_tty):
2311 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2312 (init_sys_modes, reset_sys_modes):
2313 * emacs.c (main):
2314 * callproc.c (Fcall_process, child_setup): Remove code depending
2315 on BSD_PGRPS.
2316
ef03a4e6
DN
2317 Remove POSIX_SIGNALS.
2318 * s/usg5-4.h (POSIX_SIGNALS):
2319 * s/netbsd.h (POSIX_SIGNALS):
2320 * s/msdos.h (POSIX_SIGNALS):
2321 * s/ms-w32.h (POSIX_SIGNALS):
2322 * s/hpux11.h (POSIX_SIGNALS):
2323 * s/gnu.h (POSIX_SIGNALS):
2324 * s/gnu-linux.h (POSIX_SIGNALS):
2325 * s/freebsd.h (POSIX_SIGNALS):
2326 * s/darwin.h (POSIX_SIGNALS):
2327 * s/cygwin.h (POSIX_SIGNALS):
2328 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2329 * s/unixware.h:
2330 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2331 * process.c (create_process):
2332 * syssignal.h:
2333 * sysdep.c (wait_for_termination, init_signals):
2334 * process.c (create_process):
2335 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2336 remove all code that assumes the contrary.
2337
49628785
GM
23382010-05-04 Glenn Morris <rgm@gnu.org>
2339
27a2cdfc
GM
2340 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2341 variable.
2342 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2343 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2344 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2345 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2346 LD_SWITCH_SYSTEM_tmp.
2347 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2348 New variables, set by configure.
2349
eb21eab5
GM
2350 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2351 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2352 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2353 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2354 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2355
49628785
GM
2356 * s/aix4-2.h (C_SWITCH_SYSTEM):
2357 * m/alpha.h (C_SWITCH_MACHINE):
2358 Move to configure.in.
2359 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2360 New variables, set by configure.
2361 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2362 $c_switch_machine and $c_switch_system.
2363
7dff330b
DN
23642010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2365
2366 * s/hpux10-20.h (LIB_STANDARD): New definition.
2367 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2368 on it, not used anymore.
2369
53967e09
CY
23702010-05-03 Chong Yidong <cyd@stupidchicken.com>
2371
2372 * eval.c (internal_condition_case_n): Rename from
2373 internal_condition_case_2.
2374 (internal_condition_case_2): New function.
2375
2376 * xdisp.c (safe_call): Use internal_condition_case_n.
2377
2378 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2379 (internal_delete_file, Frename_file): Callers changed.
2380
2381 * buffer.c (Fkill_buffer):
2382 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2383
2384 * lisp.h: Update prototypes.
2385
3dee6fdb
GM
23862010-05-03 Glenn Morris <rgm@gnu.org>
2387
2388 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2389 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2390 (LIBXT): Set with configure, not cpp.
2391 (LIBX): Remove.
2392 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2393
a101e0fb
DN
23942010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2395
2396 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2397 The FreeBSD is not needed, the default works, Solaris version is
2398 not needed, and the remaining case is not supported by configure.
2399
f63d0028
JD
24002010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2401
2402 * xsmfns.c (CHDIR_OPT): New define.
2403 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2404 restarting emacs.
2405
2406 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2407 shut_down_emacs.
2408
2409 * emacs.c (USAGE1): Mention --chdir.
2410 (main): Handle --chdir.
2411 (standard_args): Add --chdir.
2412 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2413 #5552).
2414
e4814a9f
DN
24152010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2416
cd03c74a
DN
2417 Remove LD_SWITCH_MACHINE.
2418 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2419 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2420
c3a398a1
DN
2421 Clean up IRIX code.
2422 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2423 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2424
87e7285c
DN
2425 Clean up AIX code.
2426 * m/ibmrs6000.inp: Remove file, unused.
2427 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2428 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2429 definition ...
2430 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2431
80f00217
JB
2432 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2433 unused.
e4814a9f 2434
59ca28de
EZ
24352010-05-01 Eli Zaretskii <eliz@gnu.org>
2436
197daef4
EZ
2437 Emulate POSIX_SIGNALS on MS-Windows.
2438
2439 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2440 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
2441
2442 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2443 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2444 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2445
80f00217
JB
2446 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2447 New stubs.
197daef4 2448
af7c7572
EZ
2449 Miscellaneous fixes of bidi display.
2450
59ca28de
EZ
2451 * xdisp.c (find_row_end): New function, refactored from display_line.
2452 (display_line): Use it.
017ea819
EZ
2453 (extend_face_to_end_of_line): In almost-filled rows, extend only
2454 if the row is R2L and not continued.
166e930d 2455 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 2456 Preserve overlay and string info in row->end.
166e930d
EZ
2457 (insert_left_trunc_glyphs): Support addition of left truncation
2458 glyphs to R2L rows.
b47e0dcf 2459 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
2460 glyph between adjacent windows. Fix a crash when a display string
2461 is continued to the next line. Don't return zero if cursor was
2462 found by `cursor' property of a display string.
b47e0dcf
EZ
2463 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2464 test for that explicitly.
59ca28de 2465
7acac9f4
GM
24662010-05-01 Glenn Morris <rgm@gnu.org>
2467
2468 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2469 for clarity.
2470 (OTHER_OBJ): Remove.
2471 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2472 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2473
45841e65
KK
24742010-05-01 Karel Klíč <kklic@redhat.com>
2475
2476 * fileio.c (Ffile_selinux_context): Context functions may return null.
2477
afc61943
DN
24782010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2479
80f00217 2480 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 2481
5a1bb006
GM
24822010-04-30 Glenn Morris <rgm@gnu.org>
2483
2484 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2485 (OTHER_OBJ): Define as a separate variable, for clarity.
2486
210af043
J
24872010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2488
2489 * xsettings.c: include limits.h and update file comment.
2490
0a7df391
GM
24912010-04-30 Glenn Morris <rgm@gnu.org>
2492
d5096f16
GM
2493 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2494 Set with configure, not cpp.
2495 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2496
7eb1ac33
GM
2497 * Makefile.in (mallocobj): Remove.
2498 (otherobj): Simplify using @OTHER_OBJ@.
2499
517d086b
GM
2500 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2501 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2502 Don't bother making nsgui.h dependency platform-specific.
2503
0a7df391
GM
2504 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2505
d6d23852
SM
25062010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2507
d2630aef
SM
2508 * process.c (read_process_output, exec_sentinel): Don't burp if the
2509 sentinel/filter kills the current buffer (bug#6060).
2510
f9dddf52 2511 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
2512 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2513 Remove unused var `args'.
2514 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2515 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2516 * doc.c (store_function_docstring): Use XSETCAR.
2517
f1e3642a
GM
25182010-04-28 Glenn Morris <rgm@gnu.org>
2519
faf535f8
GM
2520 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2521 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2522
c40f9449
GM
2523 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2524
658f86ca
GM
2525 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2526 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2527
bc0b5f61
GM
2528 * Makefile.in (FONT_OBJ): New, set by configure.
2529 (FONT_DRIVERS): Use $FONT_OBJ.
2530
294c50a0
GM
2531 * Makefile.in (LIBXMU): Set with configure, not cpp.
2532 * s/aix4-2.h (LIBXMU):
2533 * s/hpux10-20.h (LIBXMU):
2534 Remove definition, now set in configure.
2535
e6ec4e99
GM
2536 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2537
f1e3642a
GM
2538 * m/amdx86-64.h [i386]: Move this test to configure.in.
2539
c6ea2936
GM
25402010-04-27 Glenn Morris <rgm@gnu.org>
2541
8fdac2c3
GM
2542 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2543 * s/unixware.h (NEED_LIBW): Remove definition.
2544
986fb647
GM
2545 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2546 (TOOLKIT_LIBW): New, set by configure.
2547 (@X_TOOLKIT_TYPE@): No longer define it.
2548
c6ea2936
GM
2549 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
2550 (MOTIF_LIBW): Set with configure, not cpp.
2551 * s/aix4-2.h (LIB_MOTIF):
2552 * s/gnu-linux.h (LIB_MOTIF):
2553 * s/unixware.h (LIB_MOTIF): Move to configure.in.
2554
aaa36002
DN
25552010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2556
2557 Reduce CPP usage.
2558 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
2559 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
2560 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
2561 definitions and undefs. Inline definitions in the only user.
2562 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 2563
b678dd8b
GM
25642010-04-27 Glenn Morris <rgm@gnu.org>
2565
76cda504
GM
2566 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
2567 since the defaults (set by the system file) are fine in most cases.
2568 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
2569 * m/ibms390x.h (START_FILES, LIB_STANDARD):
2570 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
2571 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
2572 Remove definitions, since they are set correctly in s/gnu-linux.h.
2573 * s/freebsd.h (START_FILES, LIB_STANDARD):
2574 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2575 * s/hpux10-20.h (START_FILES):
2576 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
2577 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
2578
b678dd8b
GM
2579 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
2580 (MOTIF_LIBW): Use $LIBXP.
2581 (otherobj): Use $WIDGET_OBJ.
2582
9452ded1
DN
25832010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2584
7e10844c
DN
2585 * Makefile.in (LIBS_MACHINE): Remove, unused.
2586
9452ded1
DN
2587 Use autoconf instead of cpp for LIB_MATH.
2588 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2589 * s/cygwin.h (LIB_MATH): Likewise.
2590 * Makefile.in (LIB_MATH): Do not define with cpp.
2591 (LIBES): Use autoconf for LIB_MATH.
2592
fcebfc6a
KH
25932010-04-26 Kenichi Handa <handa@m17n.org>
2594
2595 * composite.c (Ffind_composition_internal): Fix the return value
2596 for an automatic composition.
2597
39e2ad1b
DN
25982010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2599
2600 Remove all NO_ARG_ARRAY uses.
2601 * fns.c (concat2, concat3, nconc2):
2602 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2603 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2604 * m/xtensa.h (NO_ARG_ARRAY):
2605 * m/template.h (NO_ARG_ARRAY):
2606 * m/sparc.h (NO_ARG_ARRAY):
2607 * m/sh3.h (NO_ARG_ARRAY):
2608 * m/mips.h (NO_ARG_ARRAY):
2609 * m/macppc.h (NO_ARG_ARRAY):
2610 * m/iris4d.h (NO_ARG_ARRAY):
2611 * m/intel386.h (NO_ARG_ARRAY):
2612 * m/ibms390x.h (NO_ARG_ARRAY):
2613 * m/ibms390.h (NO_ARG_ARRAY):
2614 * m/ibmrs6000.h (NO_ARG_ARRAY):
2615 * m/ia64.h (NO_ARG_ARRAY):
2616 * m/hp800.h (NO_ARG_ARRAY):
2617 * m/arm.h (NO_ARG_ARRAY):
2618 * m/amdx86-64.h (NO_ARG_ARRAY):
2619 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2620
adf4f59c
EZ
26212010-04-25 Eli Zaretskii <eliz@gnu.org>
2622
6bdf5d65
EZ
2623 * xdisp.c (display_line): Don't assume 2nd call to
2624 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
2625 (iterate_out_of_display_property): New function, body from pop_it.
2626 (pop_it): Use it.
adf4f59c 2627
dfbbda83
GM
26282010-04-24 Glenn Morris <rgm@gnu.org>
2629
2630 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2631 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2632 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2633 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2634
2d4018aa
EZ
26352010-04-24 Eli Zaretskii <eliz@gnu.org>
2636
a49884a6
EZ
2637 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2638 use `get_next_display_element' and `set_iterator_to_next' to
2639 advance to the next character, when looking for the character that
2640 begins the next row.
2641
76db6fcc 2642 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
2643 definition of "struct Lisp_Symbol".
2644
70eab5c1
GM
26452010-04-24 Glenn Morris <rgm@gnu.org>
2646
2647 * Makefile.in (CRT_DIR): New variable, set by configure.
2648 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2649 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2650
1ad4cc3d
DN
26512010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2652
e769f484
DN
2653 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2654
4196ff33
DN
2655 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2656
879b0ee4
DN
2657 Remove redundant flags.
2658 * s/freebsd.h (C_SWITCH_SYSTEM):
2659 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2660 * s/netbsd.h (C_SWITCH_SYSTEM):
2661 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2662 of these.
2663
03cbbcb8
DN
2664 Simplify m/intel386.h.
2665 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2666 user: ecrt0.c.
2667 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2668 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2669 the only user: s/unixware.h.
2670 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2671 from m/intel386.h.
2672 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2673 moved here from m/intel386.h.
2674
1ad4cc3d
DN
2675 * m/mips.h: Remove #if 0 code.
2676
8785b888
EZ
26772010-04-23 Eli Zaretskii <eliz@gnu.org>
2678
728588cc
EZ
2679 Fix display of composed characters from L2R scripts in bidi buffers.
2680 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2681 After advancing IT past the composition, resync the bidi iterator
2682 with IT's position. (Bug#5977)
2683
a63f80b4
DN
26842010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2685
2686 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2687 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2688
ff5dec5c
SM
26892010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2690
2691 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
2692
8785b888
EZ
26932010-04-23 Eli Zaretskii <eliz@gnu.org>
2694
58ccf243 2695 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
2696 * xdisp.c (pop_it): When the stack is popped after displaying
2697 from a string, bidi-iterate to exit from the text portion covered
2698 by the `display' property or overlay. (Bug#5988, bug#5920)
2699
feeb1604
DN
27002010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2701
8e324eb6
DN
2702 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
2703 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
2704
809fcaba
DN
2705 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
2706 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
2707
ed710380
DN
2708 Simplify STARTFILES definition.
2709 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
2710 relying on Makefile.in to define it.
2711 * s/cygwin.h (START_FILES): Likewise.
2712 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
2713
feeb1604
DN
2714 Clean up Solaris code.
2715 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
2716 (LIB_MOTIF): Remove, configure takes care of this.
2717 (NOT_USING_MOTIF): Remove, unused.
2718 * xrdb.c: Remove #if 0-ed #include.
2719 (SYSV): Remove conditional for old SysV.
2720 * sysdep.c (closedir): Remove conditional code for Solaris,
2721 Solaris has closedir.
2722
a0d0b563
JD
27232010-04-22 Jan Djärv <jan.h.d@swipnet.se>
2724
2725 * xsettings.c (read_and_apply_settings): Check if current_font is
2726 NULL before strcmp (Bug#6001).
2727
56bae7c7
DN
27282010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
2729
2730 Clean up HP-UX files.
2731 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
2732 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
2733 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
2734 * s/hpux10-20.h: ... to the only user, here.
2735
372b7a95
EZ
27362010-04-21 Eli Zaretskii <eliz@gnu.org>
2737
2738 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
2739 use buffer-local values of paragraph-start and paragraph-separate.
2740 <paragraph_start_re, paragraph_separate_re>: Rename from
2741 fallback_paragraph_start_re and fallback_paragraph_separate_re.
2742 (Bug#5992)
2743
f904c0f9
JD
27442010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2745
2746 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
2747 current_tool_bar_style are new.
2748 (store_config_changed_event): Rename from store_font_changed_event.
2749 (XSETTINGS_TOOL_BAR_STYLE): New define.
2750 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
2751 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
2752 HAVE_XFT.
2753 (something_changedCB): store_font_changed_event is now
c4cc8b9a 2754 store_config_changed_event.
f904c0f9
JD
2755 (parse_settings): Rename from parse_xft_settings. Read
2756 non-xft xsettings outside #ifdef HAVE_XFT.
2757 (read_settings): Renamed from read_xft_settings.
2758 (apply_xft_settings): Take current settings as parameter. Do not
2759 call read_(xft)_settings.
2760 (read_and_apply_settings): New function.
2761 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
2762 read_and_apply_settings if there are settings to be read.
2763 (init_xsettings): Renamed from init_xfd_settings.
2764 Call read_and_apply_settings unconditionally.
2765 (xsettings_initialize): Call init_xsettings.
2766 (Ftool_bar_get_system_style): New function.
2767 (syms_of_xsettings): Define Qmonospace_font_name and
2768 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 2769 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 2770 dynamic-setting.
31a01b90 2771 Move misplaced HAVE_GCONF
f904c0f9
JD
2772
2773 * xsettings.h (Ftool_bar_get_system_style): Declare.
2774
2775 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
2776 Qtext, Qboth, Qboth_horiz are new.
2777 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
2778 Vtool_bar_style, tool_bar_max_label_size.
2779
2780 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
2781
2782 * keyboard.c: QClabel is new.
2783 (parse_tool_bar_item): Take out QClabel from tool bar items.
2784 Try to construct a label if ther is no QClabel.
2785 (syms_of_keyboard): Intern :label as QClabel.
2786
2787 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
2788 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
2789 New.
2790
2791 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
2792 dynamic-setting.el.
2793
2794 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
2795 (xg_make_tool_item, xg_show_toolbar_item): New function.
2796 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
2797 Call xg_make_tool_item to make a tool bar item.
2798 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
2799
2800 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
2801 into account for toolbars.
2802
c632dfda
JD
28032010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2804
2805 * data.c (make_blv): Declarations before code (Bug#5993).
2806
10efe302
GM
28072010-04-21 Glenn Morris <rgm@gnu.org>
2808
2809 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
2810 Define using autoconf, not cpp.
2811 (LIBXSM): New variable, set by autoconf.
2812 (LIBXT): Use $LIBXSM.
2813
4285ac5a
DN
28142010-04-21 Dan Nicolaescu <local_user@dannlt>
2815
3ec759e7
DN
2816 Remove NOMULTIPLEJOBS, unused.
2817 * s/template.h (NOMULTIPLEJOBS):
2818 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
2819
4285ac5a
DN
2820 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
2821 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
2822 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
2823 detects -znocombreloc and passes it to the linker
2824 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
2825
2807228d
GM
28262010-04-21 Glenn Morris <rgm@gnu.org>
2827
2828 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
2829
574c05e2
KK
28302010-04-21 Karel Klíč <kklic@redhat.com>
2831
2832 * Makefile.in (LIBSELINUX_LIBS): New.
2833 (LIBES): Add $LIBSELINUX_LIBS.
2834 * eval.c, lisp.h (call7): New function.
2835 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
2836 (Ffile_selinux_context, Fset_file_selinux_context):
2837 New functions.
2838 (Fcopy_file): New parameter preserve-selinux-context.
2839 (Frename_file): Preserve selinux context when renaming by copy-file.
2840
91eac4bb 28412010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 2842 Eli Zaretskii <eliz@gnu.org>
91eac4bb 2843
50426a04
JB
2844 Don't depend on cm.c or termcap.c on Windows, use stubs.
2845 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
2846 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
2847 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
2848 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
2849 (sys_tputs, sys_tgetstr): New stubs.
2850 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2851 (tputs, tgetstr): New; define to sys_*.
91eac4bb 2852
938efb77
JB
28532010-04-20 Juanma Barranquero <lekktu@gmail.com>
2854
2855 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2856
b4bf28b7
SM
28572010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2858
8b1e1112
SM
2859 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2860 Just signal a warning rather than an error when inside a let.
2861 (Fmake_variable_frame_local): Add the same test.
2862
933ac235
SM
2863 * font.c (syms_of_font): Make the style table vars read-only.
2864
b4bf28b7
SM
2865 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2866 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2867
2868 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2869
93d68d0c
EZ
28702010-04-20 Eli Zaretskii <eliz@gnu.org>
2871
2872 Fix R2L paragraph display on TTY.
2873
2874 * xdisp.c (unproduce_glyphs): New function.
2875 (display_line): Use it when produced glyphs are discarded from R2L
2876 glyph rows.
2877 (append_composite_glyph): In R2L rows, prepend the glyph rather
2878 than appending it.
2879
2880 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2881 rather than append it. Set up the resolved_level and bidi_type
2882 attributes of the appended glyph.
283ccc18
EZ
2883 (produce_special_glyphs): Mirror the backslash continuation
2884 character in R2L lines.
93d68d0c 2885
283ccc18 2886 Implement display of R2L paragraphs in GUI sessions.
26cdf528 2887
283ccc18
EZ
2888 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2889 append_stretch_glyph.
2890 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2891 off-by-one error in computing x at end of text in the row.
2892 (append_stretch_glyph): In reversed row, prepend the glyph rather
2893 than append it. Set resolved_level and bidi_type of the glyph.
2894 (extend_face_to_end_of_line): If the row is reversed, prepend a
2895 stretch glyph whose width is such that the rightmost glyph will be
2896 drawn at the right margin of the window. Fix off-by-one error on
2897 TTY frames in testing whether a line needs face extension. Fix
2898 face extension at ZV. If this is the last glyph row, use
2899 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2900 region face.
2901 (set_cursor_from_row, display_line): Use
26cdf528
EZ
2902 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2903 row->continuation_lines_width.
283ccc18
EZ
2904 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2905 are at ZV. Fixes a crash when reseated to ZV by
2906 try_window_reusing_current_matrix.
45903529
EZ
2907 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2908 which happens with R2L glyph rows. Fixes a crash when inserting a
2909 character at end of an R2L line.
283ccc18
EZ
2910 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2911 treat them as having zero-width characters. Improve comments.
2912 Don't reverse pos_before and pos_after for reversed glyph rows.
2913 Set cursor.x to negative value when the cursor might be on the
2914 left fringe.
2915 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2916 left fringe, not the right one.
f951a506
EZ
2917 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2918 (erase_phys_cursor): For reversed cursor_row, support cursor on
2919 the left fringe.
2920
283ccc18
EZ
2921 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2922 of continuation indicators on the fringes.
2923 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2924 left fringe.
2925
f951a506
EZ
2926 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2927 draw cursor on the left fringe.
2928
2929 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2930 cursor on the left fringe.
2931
f951a506
EZ
2932 * dispnew.c (update_text_area): Handle reversed desired rows when
2933 the cursor is on the left fringe.
2934 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2935 below, not by 0, for when the cursor is on the left fringe.
2936
3bb49aaf
JD
29372010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2938
2939 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2940 widget is a scrollbar.
2941
c0be27fd
KH
29422010-04-20 Kenichi Handa <handa@m17n.org>
2943
2944 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2945 only when the arg CHARSET_LIST is nil.
2946
ce5b453a
SM
29472010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2948
2949 Make variable forwarding explicit rather the using special values.
2950 Basically, this makes the structure of buffer-local values and object
2951 forwarding explicit in the type of Lisp_Symbols rather than use
2952 special Lisp_Objects for that. This tends to lead to slightly more
2953 verbose code, but is more C-like, simpler, and makes it easier to make
2954 sure we handled all cases, among other things by letting the compiler
2955 help us check it.
2956 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2957 Removing forwarding objects.
2958 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2959 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2960 explicit rather than hiding them inside Lisp_Object "values".
2961 (XFWDTYPE): New macro.
2962 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2963 (XBUFFER_LOCAL_VALUE): Remove.
2964 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2965 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2966 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2967 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2968 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2969 Remove the Lisp_Misc_* header.
2970 (struct Lisp_Buffer_Local_Value): Redefine.
2971 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2972 (struct Lisp_Misc_Any): Add filler to get the right size.
2973 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2974 Lisp_Intfwd.
2975 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2976 (DEFVAR_KBOARD): Allocate a forwarding object.
2977 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2978 (let_shadows_global_binding_p): New function.
2979 (union Lisp_Val_Fwd): New type.
2980 (make_blv): New function.
2981 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2982 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2983 (swap_in_symval_forwarding, find_symbol_value, Fset)
2984 (let_shadows_buffer_binding_p, set_internal, default_value)
2985 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2986 (Fkill_local_variable, Fmake_variable_frame_local)
2987 (Flocal_variable_p, Flocal_variable_if_set_p)
2988 (Fvariable_binding_locus):
2989 * xdisp.c (select_frame_for_redisplay):
2990 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2991 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2992 * frame.c (store_frame_param):
2993 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2994 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2995 value structure.
2996 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2997 (clone_per_buffer_values): Only adjust markers into the current buffer.
2998 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2999 (Fbuffer_local_value, set_buffer_internal_1)
3000 (swap_out_buffer_local_variables):
3001 Adapt to the new symbol value structure.
3002 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3003 (defvar_per_buffer): Take a new arg for the fwd object.
3004 (buffer_lisp_local_variables): Return a proper alist (different fix
3005 for bug#4138).
3006 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3007 (Fgarbage_collect): Don't handle buffer_defaults specially.
3008 (mark_object): Handle new symbol value structure rather than the old
3009 special Lisp_Misc_* objects.
3010 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3011 * term.c (set_tty_color_mode):
3012 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3013 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3014 a buffer_local_flags.
3015 * print.c (print_object): Get rid of impossible forwarding objects.
3016
fd3998ff
EZ
30172010-04-19 Eli Zaretskii <eliz@gnu.org>
3018
3019 * bidi.c (bidi_get_type, bidi_get_category)
3020 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
3021 (bidi_type_of_next_char, bidi_level_of_next_char):
3022 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 3023
e42cd1a7
JB
30242010-04-19 Juanma Barranquero <lekktu@gmail.com>
3025
3026 * dired.c (Ffile_attributes): Fix typo in docstring.
3027
6e104790 30282010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
3029
3030 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3031 NSInteger (Bug#5811).
3032
6e104790 30332010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
3034
3035 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3036 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3037
6e104790 30382010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3039
3040 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3041
6e104790
SM
30422010-04-19 Chong Yidong <cyd@stupidchicken.com>
3043
3044 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3045 terminal frames (Bug#5837).
3046
37dcfea0
EZ
30472010-04-19 Eli Zaretskii <eliz@gnu.org>
3048
d1da276f
EZ
3049 * .gdbinit (xsubchartable): New command.
3050
37dcfea0
EZ
30512010-04-19 Eli Zaretskii <eliz@gnu.org>
3052
3053 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3054 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3055 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3056 and
3057 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3058
e9515805
SM
30592010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3060
3061 * alloc.c (Fpurecopy): Hash-cons if requested.
3062 (syms_of_alloc): Update purify-flag docstring.
3063
22aa44a8
JD
30642010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3065
3066 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3067 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3068
ebb5722e
EZ
30692010-04-17 Eli Zaretskii <eliz@gnu.org>
3070
3071 Fix a crash when an NSM character is inserted at BEGV.
3072
3073 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3074 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3075 NEUTRAL_B or UNKNOWN_BT.
3076
0f4442ef
EZ
30772010-04-16 Eli Zaretskii <eliz@gnu.org>
3078
3079 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3080 other rows with cursor unless they are different from this row and
3081 this row is part of a continued line. (Bug#5943)
3082
7d4e45f8
DN
30832010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3084
3085 * s/freebsd.h: Restore osreldate.h include.
3086 Suggested by Naohiro Aota.
3087
5ba5ec85
J
30882010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3089
3090 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3091
20af301d
CY
30922010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3093
3094 * s/cygwin.h: Avoid linking against static libgcc.
3095
a4b000fb
JL
30962010-04-15 Juri Linkov <juri@jurta.org>
3097
3098 * window.c: Add Qscroll_command.
3099 Remove Vscroll_preserve_screen_position_commands.
3100 (window_scroll_pixel_based, window_scroll_line_based): Check the
3101 `scroll-command' property on the last command instead of searching
3102 the last command in Vscroll_preserve_screen_position_commands.
3103 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3104 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3105 (scroll-preserve-screen-position): Doc fix.
3106 (Vscroll_preserve_screen_position_commands): Remove variable.
3107
bc319ba4
DN
31082010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3109
6bb24457
DN
3110 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3111
19d4c244
DN
31122010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3113
3114 Reduce cpp use in Makefile.in.
3115 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3116 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3117 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3118 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3119 (CRT0_COMPILE): Remove, inline it in the only user.
3120
32129746
JL
31212010-04-14 Juri Linkov <juri@jurta.org>
3122
3123 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3124 `scroll-up-command' and `M-v' from `scroll-down' to
3125 `scroll-down-command'.
3126
9013a7f8
JL
31272010-04-14 Juri Linkov <juri@jurta.org>
3128
3129 * window.c (Vscroll_preserve_screen_position_commands): New variable
3130 with the default value as the list of Qscroll_down and Qscroll_up.
3131 (window_scroll_pixel_based, window_scroll_line_based): Search the
3132 last command in the list Vscroll_preserve_screen_position_commands
3133 instead of comparing with Qscroll_up and Qscroll_down.
3134
4bef8d26
JD
31352010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3136
92848133
JD
3137 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3138 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3139 does that.
3140
4bef8d26
JD
3141 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3142 to zero.
3143
58b963f7
SM
31442010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3145
84164a0d
SM
3146 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3147
2b0a91e7
SM
3148 Try to solve the problem of spurious EOF chars in long lines of text
3149 sent to interactive subprocesses.
3150 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3151 (system_process_attributes): Remove unused var `ttotal'.
3152 * process.c (send_process): Don't bother breaking long line with EOF
3153 chars when talking to ttys any more.
3154 (wait_reading_process_output): Output a warning when called in such
3155 a way that it could block without being interruptible.
3156
58b963f7
SM
3157 Try to detect file modification within the same second.
3158 * buffer.h (struct buffer): New field modtime_size.
3159 * buffer.c (reset_buffer): Initialize it.
3160 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3161 (Fverify_visited_file_modtime): Check it.
3162 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3163 (Fset_visited_file_modtime): Set (or clear) it.
3164
01f5787b
SM
31652010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3166
3167 * process.c (status_notify): Remove unused var `ro'.
3168
83725342
JD
31692010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3170
3171 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3172 more than one visual (Bug#5938).
3173
b9465836
DN
31742010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3175
50426a04
JB
3176 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3177 Undefine.
b9465836 3178
8d9c8ece
DN
31792010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3180
b1f52161
DN
3181 Remove C_SWITCH_SYSTEM_TEMACS.
3182 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3183 (malloc, realloc, free): Use emacs, not temacs for conditional
3184 definition.
3185
3186 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3187 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3188
8d9c8ece
DN
3189 Use autoconf, not cpp for some variables.
3190 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3191 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3192 (ALL_CFLAGS): Use them as make variables.
3193 (really-lwlib, really-oldXMenu): Do not pass them.
3194
1ecb2d3f
JD
31952010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3196
3197 * xmenu.c (apply_systemfont_to_dialog): New.
3198 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3199
3a4fa2f2
SM
32002010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3201
97e53006
SM
3202 * process.c (exec_sentinel): Preserve current-buffer.
3203
3a4fa2f2
SM
3204 * process.c (read_process_output): Move the save-current-buffer to
3205 apply to both the filter and the non-filter branches.
3206
88df7221
DN
32072010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3208
3209 * s/msdos.h (UNEXEC): New definition.
3210
5634ff85
YM
32112010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3212
6eff5c3d
YM
3213 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3214 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3215
3216 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3217 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3218 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3219 TRY_WINDOW_CHECK_MARGINS.
3220
3221 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3222 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3223 width only when it is for padding.
5634ff85 3224
b13aef54
J
32252010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3226
3227 * xfns.c (Fx_show_tip): Call try_window in a loop until
3228 fonts_changed_p is zero (Bug#2423).
3229
21d28484
EZ
32302010-04-08 Eli Zaretskii <eliz@gnu.org>
3231
3232 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3233 the end of TEXT_AREA. (Bug#5856)
3234
0269ef77
JD
32352010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3236
3237 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3238 HAVE_GCONF.
3239
5930fe97
EZ
32402010-04-08 Eli Zaretskii <eliz@gnu.org>
3241
3242 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3243 prev.orig_type, for resolving type of NSM. (Bug#5858)
3244
99852628
JD
32452010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3246
3247 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3248 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3249 in current_font.
3250 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3251 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3252 New functions.
3253 (syms_of_xsettings): Initialize current_font.
3254 defsubr Sfont_get_system_normal_font.
99852628
JD
3255
3256 * xsettings.h (Ffont_get_system_normal_font,
3257 xsettings_get_system_normal_font): Declare.
3258
3259 * xfns.c (extern xlwmenu_default_font): Remove.
3260 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3261 to xlwmenu.c.
3262
3263 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3264 menu items in UTF-8.
3265
3266 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3267 (apply_systemfont_to_menu): New function.
3268 (set_frame_menubar, create_and_show_popup_menu): Call
3269 apply_systemfont_to_menu.
3270
7fc874c4
J
32712010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3272
3273 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3274 FRAME_LINE_TO_PIXEL_Y.
3275
3276 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3277 pixelwidth/height.
3278
863bf481
DN
32792010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3280
5e5a3b92
DN
3281 Simplify code for HP machines.
3282 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3283 for GNU_LINUX, not needed.
3284 (UNEXEC, NEED_BSDTTY): Move definitions...
3285 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3286
863bf481
DN
3287 * m/iris4d.h (UNEXEC): Move definition ...
3288 * s/irix6-5.h (UNEXEC): ... here.
3289
3e6bec3b
JD
32902010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3291
3292 * xfns.c (set_machine_and_pid_properties): New function.
3293 (Fx_create_frame): Call set_machine_and_pid_properties.
3294
2912322b
SM
32952010-04-03 Eli Zaretskii <eliz@gnu.org>
3296
1502b819
EZ
3297 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3298 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3299 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3300
2912322b
SM
3301 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3302 in this function. (Bug#5703)
3303
33042010-04-03 Chong Yidong <cyd@stupidchicken.com>
3305
3306 * nsterm.h: Fix last change.
3307
c435b432
DN
33082010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3309
a568f507
DN
3310 * m/intel386.h (NO_REMAP): Move definition ...
3311 * s/msdos.h (NO_REMAP): ... here.
3312
4cd9f6c2
DN
3313 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3314
c435b432
DN
3315 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3316 used on those platforms.
3317
42a2c622
DN
33182010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3319
3320 Remove extern errno declarations.
3321 * xterm.c:
3322 * xrdb.c:
3323 * w32term.c:
3324 * unexec.c:
3325 * unexaix.c:
3326 * sysdep.c:
3327 * process.c:
3328 * lread.c:
3329 * keyboard.c:
3330 * floatfns.c:
3331 * filelock.c:
3332 * fileio.c:
3333 * emacs.c (main):
3334 * ecrt0.c:
3335 * dispnew.c:
3336 * callproc.c:
3337 * buffer.c: Remove errno extern declarations.
3338 * s/netbsd.h (NEED_ERRNO): Remove.
3339
8224f93d
DN
33402010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3341
3342 Remove all uses of LIBX11_SYSTEM.
3343 * Makefile.in (LIBX11_SYSTEM): Remove.
3344 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3345 instead.
3346
814062c7
EZ
33472010-04-01 Eli Zaretskii <eliz@gnu.org>
3348
ed68db4d
EZ
3349 Remove support for DJGPP v1.x (bug#5813).
3350
3351 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3352 * s/msdos.h:
3353 * unexec.c (make_hdr, copy_text_and_data):
3354 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3355 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3356 (IT_set_terminal_modes, __write, _rename, gethostname)
3357 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3358 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3359 the value of __DJGPP__.
ed68db4d
EZ
3360 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3361 compatibility code.
8224f93d
DN
3362 * lread.c:
3363 * gmalloc.c (memalign):
3364 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3365 * emacs.c (main):
3366 * dosfns.c (init_dosfns):
ed68db4d
EZ
3367 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3368
52f4d8d5
EZ
33692010-04-01 Eli Zaretskii <eliz@gnu.org>
3370
814062c7
EZ
3371 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3372 string with `cursor' property comes from an `after-string'
3373 overlay. (Bug#5816)
3374
0dc2e11d
GM
33752010-04-01 Glenn Morris <rgm@gnu.org>
3376
3377 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3378 Define as Makefile variables.
3379 (LIBX): Use above variables rather than directly using autoconf.
3380
1d29df59
DN
33812010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3382
3383 Clean up BSD_SYSTEM use.
3384 * xterm.c:
3385 * process.c:
3386 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3387 for including <sys/ioctl.h>.
3388 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3389 code is only used for MSDOS.
3390
1546c559
JL
33912010-03-31 Juri Linkov <juri@jurta.org>
3392
3393 * image.c: Add `Qextension_data'.
3394 (syms_of_image): Initialize and staticpro `Qextension_data'.
3395 (Fimage_metadata): Rename from `Fimage_extension_data'.
3396 (gif_load): Put GIF extension data to the property
3397 `Qextension_data'.
3398
6521c534
CY
33992010-03-31 Chong Yidong <cyd@stupidchicken.com>
3400
3401 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3402 * nsterm.h: Fix prototype.
3403
52c30783
EZ
34042010-03-31 Eli Zaretskii <eliz@gnu.org>
3405
3406 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3407 trailing whitespace in right-to-left rows.
3408
855a0da7
SM
34092010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3410
3411 Get rid of the direct_output optimizations.
3412 * keyboard.c (nonundocount): Remove extern declaration.
3413 (command_loop_1): Remove brittle optimisation for cheap and
3414 common operations.
3415 * xdisp.c (redisplay_internal): Don't bother checking
3416 redisplay_performed_directly_p any more.
3417 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3418 any more.
3419 * dispnew.c (redisplay_performed_directly_p)
3420 (direct_output_for_insert, direct_output_forward_char):
3421 * dispextern.h (redisplay_performed_directly_p)
3422 (direct_output_for_insert, direct_output_forward_char): Remove.
3423 * cmds.c (nonundocount): Make it static.
3424
85738751 34252010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3426
3427 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3428
85738751 34292010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3430
3431 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3432 invisible (Bug#5766).
3433
85738751 34342010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3435
855a0da7
SM
3436 * xdisp.c (x_consider_frame_title, update_window_cursor):
3437 Remove HAVE_NS conditionals.
194d44e7 3438 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
3439
3440 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3441 filename for the title.
3442 (ns_set_doc_edited): Do nothing if the selected window is a
3443 minibuffer window.
3444
3445 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3446 ns_set_doc_edited.
3447
3448 * nsterm.m: Remove unneeded prototype.
3449
85738751 34502010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
3451
3452 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3453 in the DOC file. (Bug#5336)
3454
85738751 34552010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
3456
3457 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3458
75d1428c
SM
34592010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3460
3461 * window.c (keys_of_window): Remove redundant/overridden bindings.
3462
82043cfb
EZ
34632010-03-30 Eli Zaretskii <eliz@gnu.org>
3464
3465 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3466 Restore original behavior when the iterator is not bidi_p.
3467
b5dd0ae7
DN
34682010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3469
3470 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3471
bd924a5d
EZ
34722010-03-30 Eli Zaretskii <eliz@gnu.org>
3473
3474 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3475 are outside the range of cached character positions.
3476
3580374b
JB
34772010-03-30 Juanma Barranquero <lekktu@gmail.com>
3478
3479 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3480
a7b02820
EZ
34812010-03-30 Eli Zaretskii <eliz@gnu.org>
3482
3483 Initial support for bidirectional editing.
3484
3485 * Makefile.in (obj): Include bidi.o.
3486 (bidi.o): New target.
3487
3488 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3489 ($(BLD)/bidi.$(O)): New target.
3490
3491 * bidi.c: New file.
3492
3493 * buffer.h (struct buffer): New members bidi_display_reordering
3494 and bidi_paragraph_direction.
3495
3496 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3497 and bidi_paragraph_direction.
3498 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3499 and bidi-paragraph-direction.
3500 (Fbuffer_swap_text): Swap the values of
3501 bidi_display_reordering and bidi_paragraph_direction.
3502
3503 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3504 (bidi_type_t, bidi_dir_t): New types.
3505 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3506 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3507 prev_stop, base_level_stop, and eol_pos.
3508 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3509 (IT_STACK_SIZE): Enlarge to 5.
3510 (struct glyph_row): New member reversed_p.
3511 <string_buffer_position>: Update prototype.
3512 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3513 glyph_row if bidi_it.paragraph_dir == R2L.
3514 (struct glyph): New members resolved_level and bidi_type.
3515
3516 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3517 processing or buffer's direction is right-to-left.
3518 (prepare_desired_row): Preserve the reversed_p flag.
3519 (row_equal_p): Compare the reversed_p attributes as well.
3520
3521 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3522 bidi_init_it and set it->paragraph_embedding from the current
3523 buffer's value of bidi_paragraph_direction.
3524 (reseat_1): Initialize bidi_it.first_elt.
3525 (set_iterator_to_next, next_element_from_buffer): Use the value of
3526 paragraph_embedding to determine the paragraph direction.
3527 (set_iterator_to_next): Under bidi reordering, call
3528 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3529 new_paragraph flag is set in the bidi iterator.
3530 (next_element_from_buffer): If bidi_it.first_elt is set,
3531 initialize paragraph direction and find the first character to
3532 display in the visual order. If reseated to a middle of a line,
3533 prime the bidi iterator starting at the line's beginning. Handle
3534 the situation where we overstepped stop_charpos due to
3535 non-linearity of the bidi iteration. Likewise for when we back up
3536 beyond the previous stop_charpos. When moving across stop_charpos,
3537 record it in prev_stop.
3538 (display_line): Set row->end and it->start for the next row to the
3539 next character in logical order. Always extend reversed_p rows to
3540 the end of line, even if they end at ZV. Copy the reversed_p flag
3541 to the next glyph row. Keep calling set_cursor_from_row for
3542 bidi-reordered rows even if we already have a possible candidate
3543 for cursor position. Set row_end after all the row's glyphs have
3544 been produced, by looping over the glyphs. Record the position
3545 after EOL in it->eol_pos, and use it to set end_pos of the last
3546 row produced for a continued line.
3547 <Qright_to_left, Qleft_to_right>: New variables.
3548 (syms_of_xdisp): Initialize and staticpro them.
3549 (string_buffer_position_lim): New function.
3550 (string_buffer_position): Most of code moved to
3551 string_buffer_position_lim. Last argument and return value are
3552 now EMACS_INT; all callers changed.
3553 (set_cursor_from_row): Rewritten to support bidirectional text and
3554 reversed glyph rows.
3555 (text_outside_line_unchanged_p, try_window_id): Disable
3556 optimizations if we are reordering bidirectional text and the
3557 paragraph direction can be affected by the change.
3558 (append_glyph, append_composite_glyph)
3559 (produce_image_glyph, append_stretch_glyph): Set the
3560 resolved_level and bidi_type members of each glyph.
3561 (append_glyph): If the glyph row is reversed, prepend the glyph
3562 rather than appending it.
3563 (handle_stop_backwards): New function.
3564 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
3565 (reseat): call handle_stop_backwards to recompute prev_stop and
3566 base_level_stop for the new position.
3567 (handle_invisible_prop): Under bidi iteration, skip invisible text
3568 using bidi_get_next_char_visually. If we are `reseat'ed, init the
3569 paragraph direction. Update IT->prev_stop after skipping
3570 invisible text.
3571 (move_it_in_display_line_to): New variables prev_method
3572 and prev_pos. Compare for strict equality in
3573 BUFFER_POS_REACHED_P.
3574 (try_cursor_movement): Examine all the candidate rows that occlude
3575 point, to return the best match. If rows are bidi-reordered
3576 and point moved backwards, back up to the row that is not a
3577 continuation line, and start looking for a suitable row from
3578 there.
3579
3580 * term.c (append_glyph): Reverse glyphs by pre-pending them,
3581 rather than appending, if the glyph_row's reversed_p flag is set.
3582 Set the resolved_level and bidi_type members of each glyph.
3583
3584 * .gdbinit (pbiditype): New command.
3585 (pgx): Use it to display bidi level and type of the glyph.
3586 (pitx): Display some bidi information about the iterator.
3587 (prowlims, pmtxrows): New commands.
3588
32a8894e
DN
35892010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3590
3591 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3592 * s/usg5-4.h (LIBS_DEBUG):
3593 * s/irix6-5.h (C_DEBUG_SWITCH):
3594 * s/gnu-linux.h (LIBS_DEBUG):
3595 * s/darwin.h (LIBS_DEBUG):
3596 * s/bsd-common.h (LIBS_DEBUG):
3597 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3598 * m/iris4d.h (LIBS_DEBUG):
3599 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3600
3601 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3602 (LIBS_DEBUG): Remove definition.
3603
649dbf36
CY
36042010-03-27 Chong Yidong <cyd@stupidchicken.com>
3605
3606 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3607 Windows.
3608
cad4261f
YM
36092010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3610
3611 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3612 `connect' (Bug#5723).
3613
cd591dbc
HE
36142010-03-25 Helmut Eller <eller.helmut@gmail.com>
3615
3616 * process.c (Fmake_network_process): Call `select' for interrupted
3617 `connect' rather than creating new socket (Bug#5173).
3618
e867cb5d 36192010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
3620
3621 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3622
3623 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3624
3625 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3626
e867cb5d 36272010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
3628
3629 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3630 XLoadQueryFont.
3631
e867cb5d 36322010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
3633
3634 * coding.c (decode_coding_ccl): Fix previous change for the
3635 multibyte case.
fb608df3
KH
3636 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3637 case that the output buffer is fullfilled.
3638 (encode_coding): Setup ccl program here.
fbdc1721 3639
5845f0ed
DN
36402010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3641
814fb708
DN
3642 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3643
5845f0ed
DN
3644 Simplify LIBS_MACHINE definitions.
3645 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3646 * m/iris4d.h (LIBS_MACHINE): Likewise.
3647 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3648 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 3649 * s/netbsd.h: Remove commented out code.
5845f0ed 3650
b7064064
DN
36512010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3652
df7734b2
DN
3653 Remove dead code dealing with POSIX_SIGNALS.
3654 * atimer.c (set_alarm): Remove dead code, all USG systems define
3655 POSIX_SIGNALS.
3656 * data.c (arith_error): Likewise.
3657 * keyboard.c (input_available_signal, handle_user_signal)
3658 (interrupt_signal): Likewise.
3659 * process.c (sigchld_handler): Likewise.
3660 (create_process): Remove if 0 code. Remove HPUX conditional when
3661 !defined (POSIX_SIGNALS), it cannot be true.
3662 * syssignal.h: Remove USG5_4 and USG conditionals when
3663 !POSIX_SIGNALS, they cannot be true.
3664
b7064064
DN
3665 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3666 NO_SOCK_SIGIO, not used anymore.
3667
55da5ee3
DN
36682010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3669
0be96e3a
DN
3670 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3671 support vax on BSDs.
3672
55da5ee3
DN
3673 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3674 * s/aix4-2.h (ORDINARY_LINK): ... here.
3675
c0282183
AS
36762010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3677
82c3d67a
AS
3678 * Makefile.in (abs_builddir): Define.
3679 (bootstrap_exe): Use it.
3680 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 3681
3613edce
SM
36822010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3683
3684 * Makefile.in (bootstrap_exe): Use an absolute name.
3685
7f110ddc
DN
36862010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3687
22e87574
DN
3688 Remove support for old GNU/Linux using libc version 5.
3689 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
3690 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
3691
05a670e6
DN
3692 Consolidate redundant definitions in s/bsd-common.h.
3693 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3694 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3695 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
3696 doing it in all files that include this one.
3697 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3698 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3699 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3700 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3701 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3702 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3703 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3704 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3705 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3706
2968f561
DN
3707 Consolidate redundant definitions.
3708 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
3709 it's undefined in all files that include this one.
3710 (POSIX_SIGNALS): Define here instead of doing it in all files that
3711 include this one.
3712 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3713 (POSIX_SIGNALS): Do not define.
3714 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3715 (POSIX_SIGNALS): Do not define.
3716 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3717 (POSIX_SIGNALS): Do not define.
3718
15d25dc0
DN
3719 Remove support for old UNIX System V systems.
3720 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
3721 * s/usg-5-4-2.h: Remove.
3722
07e339e4
DN
3723 Remove support for Solaris on PPC and for old versions.
3724 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
3725 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
3726 that cancel each other.
3727 * s/sol2-3.h:
3728 * s/sol2-4.h:
3729 * s/sol2-5.h: Remove.
3730 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
3731 (NO_REMAP): Remove, unused.
3732 (UNEXEC): Move definition ...
3733 * s/aix4-2.h (UNEXEC): ... here.
3734
7f110ddc
DN
3735 * s/openbsd.h: Remove support for non-ELF and for systems that do
3736 not support shared libraries.
3737 * s/netbsd.h:
3738 * s/freebsd.h: Likewise.
3739
605f35cd
DN
37402010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3741
3742 Remove non-working support for lynxos 3.0.
3743 * s/lynxos.h: Remove file.
3744
3745 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
3746 COFF_BSD_SYMBOLS, nothing defines it anymore.
3747
aed71cf4
DN
37482010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3749
3750 Remove obsolete uses of HAVE_SHM.
3751 * emacs.c (standard_args):
3752 (Fdump_emacs):
3753 (syms_of_emacs): Remove code depending on HAVE_SHM.
3754
3755 * alloc.c: Remove HAVE_SHM dependent definition.
3756
3757 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
3758
aded53ff
GM
37592010-03-18 Glenn Morris <rgm@gnu.org>
3760
17284745
GM
3761 * emacs.c (USAGE4): Hard-code bug address.
3762 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
3763 (bug_reporting_address): Remove.
3764 (main): Don't call bug_reporting_address.
3765
aded53ff
GM
3766 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
3767 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
3768
303500aa
CY
37692010-03-15 Chong Yidong <cyd@stupidchicken.com>
3770
3771 * xfns.c (Fx_create_frame):
3772 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
3773 on left.
3774
cef3058f
CY
37752010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
3776
3777 * editfns.c (Fformat): Account for string precision when computing
3778 field width (Bug#5710).
3779
a647d59d
CY
37802010-03-12 Chong Yidong <cyd@stupidchicken.com>
3781
4fa42018
CY
3782 * xfns.c (Fx_create_frame): Set default to Qright.
3783
a647d59d
CY
3784 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
3785 all window systems.
3786
6da23aaa
EZ
37872010-03-12 Eli Zaretskii <eliz@gnu.org>
3788
a96f6398 3789 These changes remove termcap.c from the build on Posix platforms.
83d02def 3790 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
3791 (MSDOS_OBJ): ...to here.
3792 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
3793 now identical to when LIBS_TERMCAP is defined.
3794
3795 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
3796
3797 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
3798
a96f6398 3799 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 3800
288f9fc0
CY
38012010-03-10 Chong Yidong <cyd@stupidchicken.com>
3802
3803 * Branch for 23.2.
3804
d48cd3f4
SM
38052010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3806
3807 Cleanup setup of gl_state in various parts of the code.
3808 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
3809 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
3810 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
3811 (skip_chars):
3812 * regex.c (regex_compile): Use it.
3813 (re_compile_pattern): Don't set gl_state.current_syntax_table since
3814 it's now set in regex_compile when/if we need it.
3815
618db430
SM
38162010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
3817
c0335e02
SM
3818 Make it possible to C-g in a tight bytecode loop again (bug#5680).
3819 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
3820 (QUIT): Use it to consolidate code and remove redundancy.
3821 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
3822
254c06a8
SM
3823 * regex.c (regex_compile): Setup gl_state as well.
3824
618db430
SM
3825 * syntax.c (skip_chars): Setup gl_state (bug#3823).
3826 (in_classes): Use CONSP before XCAR/XCDR.
3827
233f0c9f
CY
38282010-03-03 Chong Yidong <cyd@stupidchicken.com>
3829
3830 * keymap.c (Fwhere_is_internal): Use Fequal to compare
3831 definitions, so that keyboard macros are correctly handled
3832 (Bug#5481).
3833
75f80e63
EZ
38342010-03-02 Eli Zaretskii <eliz@gnu.org>
3835
3836 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
3837 text that could be relocated inside the call to emacs_mule_char.
3838 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
3839 (CODING_DECODE_CHAR): Add a comment describing its purpose.
3840
dcfb9bc4
KH
38412010-03-02 Kenichi Handa <handa@m17n.org>
3842
fc9a17bc
KH
3843 * character.c (parse_str_as_multibyte): Fix handling of the
3844 multibyte form of raw-bytes.
3845 (str_as_multibyte): Likewise.
3846
dcfb9bc4
KH
3847 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
3848 form of raw-bytes.
3849
412c01b6
CY
38502010-02-28 Chong Yidong <cyd@stupidchicken.com>
3851
3852 * charset.c (load_charset_map_from_file)
3853 (load_charset_map_from_vector): Zero out allocated
3854 charset_map_entries before using them.
3855
df7e1ea0
AS
38562010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3857
3858 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3859
fe69a722
CY
38602010-02-27 Chong Yidong <cyd@stupidchicken.com>
3861
4ed28cf4
CY
3862 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3863 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 3864
7379cfce
KH
38652010-02-26 Kenichi Handa <handa@m17n.org>
3866
f88cc4d6
KH
3867 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3868
7379cfce
KH
3869 * xdisp.c (reseat_to_string): Fix previous change.
3870
cf2fdcfb
CY
38712010-02-26 David Reitter <david.reitter@gmail.com>
3872
3873 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3874 Lisp_Object (Bug#4736).
3875
cc6c7c75
KH
38762010-02-25 Kenichi Handa <handa@m17n.org>
3877
3878 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3879
32e737d7
JD
38802010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3881
3882 * xterm.c (XTflash): Move declarations before statements.
3883
3884 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3885 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3886 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3887 (xg_create_tool_bar): Remove unused variables.
3888 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 3889 (xg_create_frame_widgets): Remove variable grav.
32e737d7 3890
676cae9f
CY
38912010-02-21 Chong Yidong <cyd@stupidchicken.com>
3892
3893 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3894
886cc2b8
SM
38952010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3896
3897 * term.c (fatal): Add a final \n if needed (bug#5596).
3898
ddb2d8e2
CY
38992010-02-18 Chong Yidong <cyd@stupidchicken.com>
3900
3901 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3902
2a4f8d3d
GM
39032010-02-18 Glenn Morris <rgm@gnu.org>
3904
3905 * callint.c (Finteractive): Doc fix.
3906
ebaf11b6
KH
39072010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3908
886cc2b8
SM
3909 * coding.c (record_conversion_result):
3910 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
3911 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3912 memory allocation error.
3913
d0396581
KH
39142010-02-17 Kenichi Handa <handa@m17n.org>
3915
886cc2b8
SM
3916 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3917 Fix for the case that the output buffer is fullfilled.
d0396581
KH
3918 (decode_coding): Setup ccl program here. Keep looping when the
3919 decoder stopped because the output buffer is
3920 fullfilled (bug#5534).
3921
3922 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3923
98599f74
JD
39242010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3925
471e4f04 3926 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 3927 bug #5571.
886cc2b8 3928 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 3929 overdrawn.
98599f74 3930
182659ae
JD
39312010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3932
3933 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3934 doing_interact here.
3935 (ice_connection_closed): New function.
3936 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3937 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3938 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3939 returns I/O error.
3940 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3941 bug #5512.
3942
9be32c4e 39432010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
3944
3945 * nsfont.m (nsfont_open): The system's value for the font descent
3946 is negative, so round it down to avoid clipping.
3947
a2f3eb19
CY
39482010-02-06 Chong Yidong <cyd@stupidchicken.com>
3949
3950 * charset.c (load_charset_map_from_file)
3951 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 3952 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 3953
3088147c
CY
39542010-02-05 Chong Yidong <cyd@stupidchicken.com>
3955
3956 * charset.c (load_charset_map_from_file): Allocate large
3957 charset_map_entries structure on the heap rather than the stack.
3958 (Bug#5526).
3959
b57d9029
KH
39602010-01-31 Kenichi Handa <handa@m17n.org>
3961
3962 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 3963 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 3964
c67d885b
CY
39652010-01-31 Chong Yidong <cyd@stupidchicken.com>
3966
3967 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3968 <deactivated@gmail.com> (Bug#3605).
3969
8fab2362
CY
39702010-01-31 David De La Harpe Golden <david@harpegolden.net>
3971
3972 * fileio.c (Frename_file): Correctly rename symlinks to
3973 directories (Bug#5496).
3974
cb2a62f2
CY
39752010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3976
3977 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3978
944c7a26
AS
39792010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3980
3981 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3982
c024ac08
CY
39832010-01-29 Chong Yidong <cyd@stupidchicken.com>
3984
3985 * frame.c (DEFAULT_ROWS): Change default to 35.
3986
3987 * xfns.c (x_default_font_parameter): Change default XFT font to
3988 monospace-10 (Bug#3643).
3989
af93af83
EZ
39902010-01-29 Eli Zaretskii <eliz@gnu.org>
3991
3992 * w32inevt.c (key_event): Remove unnecessary comparison of
3993 event->uChar.AsciiChar with 128.
3994
ca0eb708
CY
39952010-01-28 Chong Yidong <cyd@stupidchicken.com>
3996
b242dbfc
CY
3997 * fileio.c (Frename_file): Fix last change (Bug#5487).
3998
ca0eb708
CY
3999 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4000
4001 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4002
45d45af5
JD
40032010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4004
4005 * xfns.c (Fx_create_frame): Remove window size matching code from
4006 2010-01-15.
a73f9c9d 4007 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 4008
7e233730
JR
40092010-01-27 Jason Rumney <jasonr@gnu.org>
4010
4011 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 4012 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 4013
86e893e3
KH
40142010-01-27 Kenichi Handa <handa@m17n.org>
4015
4016 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 4017 pattern string (Bug#4209).
86e893e3 4018
8719abec
CY
40192010-01-27 David De La Harpe Golden <david@harpegolden.net>
4020
4021 * fileio.c (Frename_file): Call copy-directory and
4022 delete-directory for directories, in order to handle cross-device
4023 renaming (Bug#3353).
4024
844794c8
JD
40252010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4026
aa3e13b5 4027 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 4028 sizes 24 and 10. Bug #3643.
844794c8 4029
bd4b5750
SM
40302010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4031
8dc1adf6 4032 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
4033 * keymap.c (shadow_lookup): Add `remap' arg.
4034 (describe_map, describe_vector): Update calls to shadow_lookup.
4035 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4036 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4037 perform remapping during shadow_lookup check of remapped_sequences.
4038
285d07e2
CY
40392010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4040
4041 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4042 png_check_sig, which has been removed in libpng 1.4.
4043
c6d09b8d
CY
40442010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4045
4046 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4047 lacks this header file).
4048
3d782998
YM
40492010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4050
4051 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4052 as in Emacs 22.
4053
2aff7c53
YM
40542010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4055
4056 * lisp.h (make_pure_string): String pointer arg now points to const.
4057
4058 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4059 args now point to const.
4060
74327f7a
EZ
40612010-01-22 Eli Zaretskii <eliz@gnu.org>
4062
4063 * lread.c (Fload): Don't treat files without .elc extension as
4064 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4065 them. (bug#5303)
4066
4d1e6632
KH
40672010-01-20 Kenichi Handa <handa@m17n.org>
4068
4069 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4070 treat the source as actual byte sequence.
4071
1fdede8f
AM
40722010-01-19 Alan Mackenzie <acm@muc.de>
4073
4074 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4075 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4076 `signal_after_change_p' to `coherent_change_p', and make the
4077 invocation of `modify_region' conditional on it.
4078
67477f30
JD
40792010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4080
4081 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4082 for debug purpose.
4083 (syms_of_xsettings): Declare xft-settings.
4084
244b023e
CY
40852010-01-18 Chong Yidong <cyd@stupidchicken.com>
4086
4087 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4088
617364fe
CY
40892010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4090
4091 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4092
4fe22cdf
CY
40932010-01-16 Chong Yidong <cyd@stupidchicken.com>
4094
4095 * emacs.c (standard_args): Adjust arg priorities to reflect how
4096 they are processed in startup.el.
4097
e118d2be
AS
40982010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4099
4100 * Makefile.in (lisp, shortlisp): Update.
4101
523ae620
SM
41022010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4103
4104 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4105 code, link the new kboard into all_kboard before running Lisp code,
4106 and protect the new terminal with GCPRO (Bug#5365).
4107 (x_term_init): Remove unused var `atom'.
4108 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4109
f0d13888
JD
41102010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4111
4112 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4113 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4114 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4115 this. Bug #3643.
f0d13888 4116
cc320f07
KH
41172010-01-15 Kenichi Handa <handa@m17n.org>
4118
4119 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4120
7ffdf101
CY
41212010-01-15 Chong Yidong <cyd@stupidchicken.com>
4122
4123 * nsterm.m (Qnone): Define.
4124
4125 * nsfns.m (Qnone): Move definition to nsterm.m.
4126
d12bd917
KH
41272010-01-14 Kenichi Handa <handa@m17n.org>
4128
4129 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4130 systems.
4131
d9a7c140
KH
41322010-01-14 Kenichi Handa <handa@m17n.org>
4133
4134 Make auto-composition work on all buffers even if they are
4135 fundamental mode.
4136
4137 * composite.c (Vauto_composition_mode): New variable.
4138 (composition_compute_stop_pos): Check Vauto_composition_mode
4139 instead of Vauto_composition_function.
4140 (composition_adjust_point, Ffind_composition_internal): Likewise.
4141 (syms_of_composite): Declare Lisp variable
4142 "auto-composition-mode" here.
4143
63286bb2
CY
41442010-01-13 Chong Yidong <cyd@stupidchicken.com>
4145
4146 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4147 during call to vendor-specific-keysyms (Bug#5365).
4148
c2623ee7
YM
41492010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4150
4151 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4152 Call SIGNAL_THREAD_CHECK (Bug#5333).
4153
4154 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4155 Call SIGNAL_THREAD_CHECK.
4156
0b5397c2
SM
41572010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4158
4159 Try to fix bug#5314. This is probably not the final word, tho.
4160 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4161 recent-auto-save-p as a side-effect.
4162 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4163 * buffer.c (Fkill_buffer, reset_buffer):
4164 * editfns.c (Fsubst_char_in_region):
4165 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4166 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4167
dc954cb2
KH
41682010-01-13 Kenichi Handa <handa@m17n.org>
4169
4170 Display buffer name, etc. in mode line by composing correctly.
4171
4172 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4173 STRING is not nil.
0b5397c2 4174 (display_mode_element): Adjust for the change of
dc954cb2
KH
4175 decode_mode_spec and display_line.
4176 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4177 (display_string): Handle the case that STRING is non-null and
4178 LISP_STRING is not nil.
4179
0b5397c2
SM
4180 * xterm.c (x_draw_composite_glyph_string_foreground):
4181 Pay attention to s->face->overstrike.
dc954cb2
KH
4182
4183 * composite.c (composition_reseat_it): Don't check PT if STRING is
4184 non nil.
4185
4a00eaca
YM
41862010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4187
4188 * keyboard.c (read_char): Don't apply previous change when current
4189 buffer is unchanged by command execution.
4190
60abb287
JD
41912010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4192
4193 * keyboard.c (read_char): Return after executing from special map.
4194
893db5bc
GM
41952010-01-12 Glenn Morris <rgm@gnu.org>
4196
4197 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4198 bug-gnu-emacs rather than emacs-pretest-bug.
4199
4d03ece0
CY
42002010-01-11 Chong Yidong <cyd@stupidchicken.com>
4201
4202 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4203 initializing the Lisp variables that depend on them.
4204
1df47e38
YM
42052010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4206
4207 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4208 Clear areas that will not be updated after change of menu bar lines.
4209 Clear the menu bar window's current matrix when the window gets empty.
4210
2f1c6384
CY
42112010-01-09 Chong Yidong <cyd@stupidchicken.com>
4212
e398c61c
CY
4213 * intervals.h, textprop.c (extend_property_ranges): Return value
4214 and args changed. Discard properties that begin at or after the
4215 new end (Bug#5306).
4216
4217 * editfns.c (Fformat): Caller changed.
4218
e5a29a10
CY
4219 * nsterm.m (ns_set_default_prefs): Delete function.
4220 (syms_of_nsterm): Initialize ns_command_modifier,
4221 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4222 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4223
2f1c6384
CY
4224 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4225 position (Bug#4040).
4226
d427a9fa
EZ
42272010-01-09 Eli Zaretskii <eliz@gnu.org>
4228
4229 * editfns.c (Ffloat_time): Doc fix.
4230
21b9df2f
JD
42312010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4232
4233 * xfns.c (Fx_create_frame): Don't create frame larger than display
4234 by default bug#3643.
4235
4b00d3b1
YM
42362010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4237
4238 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4239 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4240 windows above internal border.
4241
4242 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4243 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4244 windows above internal border.
4245
4246 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4247 tool bar windows specially.
4248
4249 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4250
4251 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4252 specially.
4253 (XTflash): Take account of menu bar height.
4254
4255 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4256 specially.
4257
5075d853
JD
42582010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4259
ac146f82 4260 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4261 also be true before we can return early (bug #5339).
4262
474217c8
CY
42632010-01-06 David Reitter <david.reitter@gmail.com>
4264
4265 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4266 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4267 (Bug#3233).
4268
c0e6d47d
JD
42692010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4270
d0cf45b7
JD
4271 * font.c (font_open_entity): Enable chache and call cached_font_ok
4272 for the driver if defined.
4273 (QCuser_spec): New symbol.
4274 (font_spec_from_name): Save name as user-spec.
4275 (font_load_for_lface): Keep user-spec instead of name.
4276 (font_open_by_name): Save name as user-spec.
4277 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4278 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4279
4280 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4281 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4282 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4283
4284 * font.h (struct font_driver): Add cached_font_ok.
4285
c0e6d47d
JD
4286 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4287
7c583cd8
JD
42882010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4289
4290 * xterm.c (x_new_font): Move code for setting rows/cols before
4291 resizing ...
ac146f82 4292 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4293
4294 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4295 (xg_frame_resized, xg_frame_set_char_size):
4296 Call xg_clear_under_internal_border.
7c583cd8 4297 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4298
03f77f0a
CY
42992010-01-05 Chong Yidong <cyd@stupidchicken.com>
4300
4301 * keyboard.c (read_key_sequence): Catch keyboard switch after
4302 making a new tty frame (Bug#5095).
4303
2a1ef5be
KH
43042010-01-05 Kenichi Handa <handa@m17n.org>
4305
4306 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4307
e3eb1dae
SM
43082010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4309
4310 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4311 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4312 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4313
777013f2
MA
43142010-01-03 Michael Albinus <michael.albinus@gmx.de>
4315
4316 * dbusbind.c (xd_add_watch): Improve debug message.
4317 (xd_remove_watch): Improve debug message. If DATA is the session
4318 bus, unset D-Bus session environment.
4319 (Fdbus_init_bus): Pass the bus as argument to
4320 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4321
8932b1c2
CY
43222010-01-01 Chong Yidong <cyd@stupidchicken.com>
4323
87231e2c
CY
4324 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4325
4801c5fa
CY
4326 * lread.c (syms_of_lread): Make it clearer that these are the
4327 names of loaded files (Bug#5068).
4328
8932b1c2
CY
4329 * eval.c (run_hook_with_args): Handle the case where the global
4330 value has the obsolete single-function form (Bug#5026).
4331
11e3c684
CY
43322009-12-27 Chong Yidong <cyd@stupidchicken.com>
4333
4334 * minibuf.c (Fall_completions): Minor optimization.
4335
5b28ce35
EZ
43362009-12-26 Eli Zaretskii <eliz@gnu.org>
4337
5ce6e4f4
JB
4338 * .gdbinit (pgx): Fix display of composite glyphs.
4339 Display cmp.from and cmp.to as well.
4340 (pitx): Fix last change.
5b28ce35 4341
bcffff46
KH
43422009-12-25 Kenichi Handa <handa@m17n.org>
4343
4344 * composite.h (composition_adjust_point): Update prototype.
4345
4346 * composite.c (composition_reseat_it): Don't make a composition
4347 spanning over point.
4348 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4349 composable characters.
4350 (composition_adjust_point): New arg NEW_PT. Callers changed.
4351
4352 * keyboard.c (command_loop_1): Force redisplay if the last point
4353 was within a composition.
4354 (adjust_point_for_property): Don't adjust point for automatic
4355 composition when called after buffer modification.
4356
3f670e9a
EZ
43572009-12-19 Eli Zaretskii <eliz@gnu.org>
4358
5ce6e4f4
JB
4359 * .gdbinit (pitx): Don't use enum names, use their values.
4360 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4361 (pgx): Don't use enum names, use their values.
4362 (pitmethod): New helper command.
4363 (pitx): Use it to display iteration method.
4364 (pgrowit): New command.
4365
ad903955
EZ
4366 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4367
3f670e9a
EZ
4368 Update dependencies in Makefile.in.
4369
4370 * Makefile.in (alloc.o): Depend on termhooks.h.
4371 (atimer.o): Depend on blockinput.h.
4372 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4373 and frame.h.
4374 (callint.o): Depend on systime.h, coding.h, and composite.h.
4375 (callproc.o): Depend on buffer.h.
4376 (casefiddle.o): Don't depend on charset.h.
4377 (casetab.o): Depend on character.h.
4378 (ccl.o): Depend on composite.h.
4379 (chartab.o): Depend on ccl.h.
4380 (cm.o): Depend on dispextern.h.
4381 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4382 (coding.o): Don't depend on $(INTERVALS_H).
4383 (composite.o): Don't depend on dispextern.h explicitly (it's in
4384 $(INTERVALS_H)). Depend on ccl.h.
4385 (data.o): Depend on systime.h, coding.h, composite.h,
4386 dispextern.h, font.h, and ccl.h.
4387 (dired.o): Depend on composite.h.
4388 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4389 composite.h (it's in $(INTERVALS_H)).
4390 (doc.o): Depend on systime.h, coding.h, and composite.h.
4391 (editfns.o): Don't depend explicitly on dispextern.h.
4392 (emacs.o): Depend on frame.h and coding.h.
4393 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4394 (fileio.o): Depend on frame.h and commands.h. Don't depend
4395 explicitly on dispextern.h.
4396 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4397 composite.h.
4398 (fns.o): Don't depend on termhooks.h.
4399 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4400 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4401 coding.h, $(INTERVALS_H), window.h, xterm.h.
4402 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4403 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4404 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4405 fontset.h, ccl.h, and ftfont.h.
4406 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4407 (gtkutil.o): Depend on dispextern.h and composite.h.
4408 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4409 termhooks.h, and ccl.h.
4410 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4411 (intervals.o): Depend on systime.h and coding.h.
4412 (keyboard.o): Depend on composite.h and coding.h.
4413 (keymap.o): Depend on coding.h and frame.h.
4414 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4415 (macros.o): Depend on systime.h, coding.h, and composite.h.
4416 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4417 and atimer.h.
4418 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4419 dispextern.h explicitly.
0b5397c2
SM
4420 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4421 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4422 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4423 (regex.o): Don't depend on charset.h.
4424 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4425 (search.o): Don't depend explicitly on composite.h.
4426 (sound.o): Depend on atimer.h and systime.h.
4427 (syntax.o): Don't depend explicitly on composite.h.
4428 (sysdep.o): Depend on coding.h and composite.h.
4429 (term.o): Depend on xterm.h and buffer.h.
4430 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4431 (textprop.o): Don't depend on dispextern.h explicitly.
4432 (undo.o): Depend on dispextern.h.
4433 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4434 dispextern.h and composite.h explicitly.
4435 (xdisp.o): Depend on ccl.h.
4436 (xfaces.o): Depend on coding.h and ccl.h.
4437 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4438 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4439 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4440 ftfont.h.
4441 (xgselect.o): New dependency.
4442 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4443 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4444 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4445 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4446 (xsmfns.o): Depend on frame.h and dispextern.h.
4447 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4448 sysselect.h.
4449
7a6f7fea
AS
44502009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4451
4452 * font.c (Fclear_font_cache): Pass correct cache argument to
4453 font_clear_cache.
4454
f4c21026
AS
44552009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4456
4457 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4458 twice.
4459
f7ab0997
CY
44602009-12-15 Chong Yidong <cyd@stupidchicken.com>
4461
4462 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4463 calling file-remote-p. Reported by Jim Meyering.
4464
fa8e045a
MA
44652009-12-15 Michael Albinus <michael.albinus@gmx.de>
4466
4467 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 4468 avoid compiler warnings. (Bug #5217)
fa8e045a 4469
a63dba42
KH
44702009-12-14 Kenichi Handa <handa@m17n.org>
4471
4472 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4473 in 8-bit encoding.
4474
5ce6e4f4 44752009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
4476
4477 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4478 tooltip windows.
4479
223e5fc6
JD
44802009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4481
36acb2a7
JD
4482 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4483 Xatom_net_window_type.
4484
4485 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4486 Xatom_net_window_type.
4487
b8f00677
JD
4488 * xterm.c (my_log_handler): New function.
4489 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 4490 so we can filter out buggy messages. (Bug #5120).
b8f00677 4491
e5f0bc9a
JD
4492 * xterm.c (xg_scroll_callback): Parameter list changed,
4493 use parameter GtkScrollType to determine scroll/line/page.
4494 Only allow dragging if a button < 4 is grabbed (bug #5177).
4495 (xg_end_scroll_callback): New function.
4496 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4497 xg_create_scroll_bar.
4498
4499 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4500 (scroll_end_callback): Remove.
4501 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4502 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 4503 bug #5177.
e5f0bc9a
JD
4504 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4505 bug #5177.
4506
4507 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4508 (xg_create_scroll_bar): Add GCallback end_callback.
4509
223e5fc6
JD
4510 * xftfont.c (QClcdfilter): New variable.
4511 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4512 (syms_of_xftfont): Initialize QClcdfilter.
4513
3c055b77
JD
45142009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4515
4516 * xsettings.c (struct xsettings): Add member seen.
4517 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 4518 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
4519 (apply_xft_settings): Only update Xft settings with what member seen
4520 indicates as new.
4521
05fe33ff
EZ
45222009-12-12 Eli Zaretskii <eliz@gnu.org>
4523
c4cc8b9a 4524 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
4525 (struct glyph): Use EMACS_INT for charpos.
4526 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4527 region_beg_charpos, region_end_charpos,
4528 redisplay_end_trigger_charpos, and also for
4529 iterator_stack_entry.end_charpos and
4530 iterator_stack_entry.stop_charpos.
4531
e8d7886a
JD
45322009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4533
5ce6e4f4 4534 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
4535 (xg_create_scroll_bar): Call scroll_end_callback on button release
4536 event (bug #5177).
4537 (xg_event_is_for_scrollbar): != replaced with ==.
4538
d0db2ec8
KH
45392009-12-12 Kenichi Handa <handa@m17n.org>
4540
4541 * ftfont.c (struct ftfont_info): New member matrix.
4542 (ftfont_open): Setup xftfont_info->matrix.
4543 (MFLTFontFT): New member matrix.
4544 (FLOOR, CEIL, ROUND): New macros.
4545 (ftfont_get_metrics): Handle matrix transformation.
4546 (ftfont_shape_by_flt): New arg matrix. Callers changed.
4547
4548 * xftfont.c (struct xftfont_info): New member matrix.
4549 (xftfont_open): Setup xftfont_info->matrix.
4550
45512009-12-10 Kenichi Handa <handa@m17n.org>
4552
4553 * xdisp.c (append_space_for_newline): Consider face-remapping.
4554
2cc7b62f
AS
45552009-12-09 Andreas Schwab <schwab@linux-m68k.org>
4556
b87dd913
AS
4557 * xsettings.c: Include "keyboard.h".
4558
eba5eb94
AS
4559 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
4560
2cc7b62f
AS
4561 Fix implicit function declarations.
4562 * cmds.c: Include "frame.h".
4563 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
4564 * frame.h: Move declaration of delete_frame outside of
4565 HAVE_WINDOW_SYSTEM.
4566
a4ef73c8
CY
45672009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
4568
4569 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
4570
4571 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
4572 GTK builds.
4573
944a300c
AS
45742009-12-07 Andreas Schwab <schwab@linux-m68k.org>
4575
4576 * unexelf.c (unexec): Don't search for .data twice.
4577
022eef62
CY
45782009-12-05 Chong Yidong <cyd@stupidchicken.com>
4579
426ac949
CY
4580 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
4581 if push failed.
4582 (handle_line_prefix): Set avoid_cursor_p here. Check return value
4583 of push_display_prop (Bug#5000).
4584
022eef62
CY
4585 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
4586 value of font_list_entities (Bug#5085).
4587
be95bee9
JB
45882009-12-04 Juanma Barranquero <lekktu@gmail.com>
4589
4590 Fix `string-to-number' to deal consistently with integers and floats.
4591 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4592 trailing characters, not just whitespace.
4593 (read1): Pass new arg 0 to keep old behavior.
4594 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4595 trailing chars, as it is already done for integers. Doc fixes.
4596 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4597
24c2d7ce
EZ
45982009-12-04 Eli Zaretskii <eliz@gnu.org>
4599
0b5397c2
SM
4600 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4601 Delete unused enumeration value.
24c2d7ce 4602
7e694795
EZ
46032009-12-03 Eli Zaretskii <eliz@gnu.org>
4604
4605 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4606
84b31826
SM
46072009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4608
4609 * process.c (Fmake_network_process): Fix up the tests for
4610 "connectionless socket", so they DTRT for seqpacket sockets as well.
4611
f00c449b
SM
46122009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4613
4614 * process.c (Qseqpacket): New symbol.
4615 (HAVE_SEQPACKET): New macro.
4616 (Fmake_network_process): Accept new :type `seqpacket'.
4617 (init_process): Add `seqpacket' feature when applicable.
4618 (syms_of_process): Initialize Qseqpacket.
4619
8096a0ff
YM
46202009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4621
4622 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4623 if entity is Qnil.
4624
3e0de07f
SM
46252009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4626
4627 * print.c (print_preprocess): Preprocess the key_and_value table of
4628 hashtables, even tho they're "hidden" (bug#5082).
4629
abeafb2a
JD
46302009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4631
4632 * frame.c (frame_make_pointer_invisible)
4633 (frame_make_pointer_visible): Declare f before statements.
4634
4bf47195
EZ
46352009-11-28 Eli Zaretskii <eliz@gnu.org>
4636
4637 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4638 omitted dependencies on lisp.h.
4639
c525b3f2
JD
46402009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4641
ece2d4ed
JD
4642 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4643 is NULL.
4644
4645 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4646
4647 * frame.c (frame_make_pointer_invisible)
3e0de07f 4648 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
4649 frame.
4650
c525b3f2
JD
4651 * search.c (simple_search): Remove warning by making *p const.
4652
2f00e299
DN
46532009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4654
4655 * xdisp.c (power_letter): Remove duplicate const.
4656
084b049b
JD
46572009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4658
a1fadc6f
JD
4659 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4660
5ce6e4f4 4661 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
4662 defaults (bug #5025).
4663
28259cac
SM
46642009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4665
4666 * insdel.c (adjust_markers_for_delete): Move it in the
4667 right direction! (bug#4803)
4668
e8e14166
YM
46692009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4670
4671 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4672
4673 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4674
86677b58
GM
46752009-11-24 Glenn Morris <rgm@gnu.org>
4676
4677 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4678
581e51e8
JD
46792009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4680
cfc86c7a
JD
4681 * Makefile.in: Must create deps for ecrt0.o in its rule.
4682
581e51e8
JD
4683 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4684 because that is what Gtk+ font dialog understands.
4685
4686 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4687 of Fcopy_sequence.
4688 (font_open_by_name): Put name given into QCname for font-object returned.
4689
4690 * frame.c (x_set_font): Save original font name as frame parameter
4691 font-parameter.
4692
4693 * xsettings.c (set_default_xft_settings): New function.
4694 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
4695 is found.
4696
8b264ecb
AS
46972009-11-22 Andreas Schwab <schwab@linux-m68k.org>
4698
4699 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
4700 searching backwards through multibyte buffer.
4701
872870b2
JD
47022009-11-21 Jan Djärv <jan.h.d@swipnet.se>
4703
4704 * xterm.c: #include xgselect.h.
4705 (x_initialize): Call xgselect_initialize.
4706
4707 * xsettings.c (something_changedCB): C++ comments => C comments.
4708 (init_gconf): Do not deal with any GLib file descriptors, xg_select
4709 does that now.
4710
4711 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
4712 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
4713 (scroll_bar_button_cb): Remove.
5ce6e4f4 4714 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
4715 event.
4716 (xg_create_scroll_bar): Don't bind button-press-event and
4717 button-release-event.
4718
4719 * process.c: Include xgselect.h if defined (USE_GTK) ||
4720 defined (HAVE_GCONF).
4721 (wait_reading_process_output): Call xg_select for the same condition.
4722
4723 * xgselect.c (xg_select): New function to better integrate with
4724 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
4725
4726 * xgselect.h: New file, declare xg_select, xgselect_initialize.
4727
4728 * Makefile.in (XOBJ): Add xgselect.o.
4729
62a6e103
AS
47302009-11-21 Andreas Schwab <schwab@linux-m68k.org>
4731
0b5397c2
SM
4732 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
4733 Remove ignored second argument. All callers changed.
62a6e103
AS
4734 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
4735 (RE_STRING_CHAR_AND_LENGTH): Likewise.
4736 * xdisp.c (string_char_and_length): Likewise.
4737
b0ca0f33
DN
47382009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
4739
4740 * xterm.c (x_new_font):
4741 * print.c (print_object):
4742 * cmds.c (Fself_insert_command): Move declarations before statements.
4743
dd5a6279
CY
47442009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
4745
4746 * s/cygwin.h: Remove unneeded linker flags.
4747
4a8e097d
JD
47482009-11-20 Jan Djärv <jan.h.d@swipnet.se>
4749
0d1d0d26
JD
4750 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
4751
4752 * xsettings.h: Declare xsettings_get_system_font.
4753
4754 * xsettings.c (xsettings_get_system_font): New function.
4755 (init_gconf): No use initiating gconf unless we have Xft also.
4756 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
4757 HAVE_GCONF.
4758
4a8e097d
JD
4759 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
4760 add a blank entry so it doesn't collapse into nothing.
4761
8ab1650e
SM
47622009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4763
4764 * lread.c (Funintern): Comment out last change.
4765
82c602f0
RS
47662009-11-19 Richard Stallman <rms@gnu.org>
4767
4768 * lread.c (Funintern): Error if symbol is t or nil.
4769
87e32266
SM
47702009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4771
4772 * insdel.c (make_gap_larger): Don't make as many assumptions about the
4773 representation of Lisp integers.
4774 Reported by MJ Chan <mjchan.inbox@gmail.com>.
4775
1b9ac145
AS
47762009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4777
4778 * lisp.h: Remove declaration of Ffont_get_system_font.
4779 * xfns.c: Move include of "xsettings.h".
4780 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
4781
dfb3c4c6
JD
47822009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4783
87e32266
SM
4784 * xsettings.c (something_changedCB, Ffont_get_system_font):
4785 Check use_system_font.
dfb3c4c6
JD
4786 (syms_of_xsettings): DEFVAR font-use-system-font.
4787
9370c1d8
AS
47882009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4789
25fe851a
AS
4790 * xfns.c (x_default_font_parameter): Remove dead assignment.
4791
9370c1d8
AS
4792 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
4793
637fa988
JD
47942009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4795
87e32266 4796 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 4797 not have FC_LCD_*. #define them if not there.
a6eb20d8 4798
87e32266 4799 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 4800
637fa988
JD
4801 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
4802
4803 * xterm.c (handle_one_xevent): Call xft_settings_event for
4804 ClientMessage, PropertyNotify and DestroyNotify.
4805 (x_term_init): If we have XFT, get DPI from Xft.dpi.
4806 Call xsettings_initialize.
4807
4808 * xftfont.c (xftfont_fix_match): New function.
4809 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
4810 Call xftfont_fix_match after XftFontMatch.
4811
4812 * xfont.c (xfont_driver): Initialize all members.
4813
87e32266
SM
4814 * xfns.c (x_default_font_parameter):
4815 Try font from Ffont_get_system_font.
637fa988
JD
4816 Do not get font from x_default_parameter if we got one from
4817 Ffont_get_system_font.
87e32266 4818 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
4819
4820 * w32font.c (w32font_driver): Initialize all members.
4821
4822 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
4823
4824 * lisp.h: Declare syms_of_xsettings.
4825
87e32266
SM
4826 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
4827 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
4828
4829 * ftfont.c (ftfont_filter_properties): New function.
4830
4831 * frame.c (x_set_font): Remove unused variable lval.
4832
87e32266 4833 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
4834
4835 * font.c (font_put_extra): Don't return if val is nil, it means
4836 boolean option is off.
4837 (font_parse_fcname): Collect all extra properties in extra_props
4838 and call filter_properties for all drivers with extra_props and
4839 font as parameter.
87e32266
SM
4840 (font_open_entity): Do not use cache, it does not pick up new
4841 fontconfig settings like hinting.
637fa988
JD
4842 (font_load_for_lface): If spec had a name in it, store it in entity.
4843
a73f9c9d 4844 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
4845
4846 * config.in: HAVE_GCONF is new.
4847
4848 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
4849 xsettings.o is new.
4850
5a942932
KH
48512009-11-17 Kenichi Handa <handa@m17n.org>
4852
4853 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4854 back to the default font in case that no suitable font is found.
4855
b7c7a4d1
SM
48562009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4857
4858 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4859 Suggested by Chad Brown <yandros@mit.edu>.
4860 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4861
072f1e39
JD
48622009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4863
4864 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4865
5d1e70a2
AS
48662009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4867
87e32266 4868 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 4869
a53cfbe5
JD
48702009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4871
473a99b7
JD
4872 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4873 has a parent.
4874
a53cfbe5 4875 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 4876 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
4877
4878 * config.in: Generated (AUTO_DEPEND).
4879
f04bb9b2
MA
48802009-11-13 Michael Albinus <michael.albinus@gmx.de>
4881
b7c7a4d1 4882 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
4883 Vdbus_registered_functions_table, because it contains also
4884 properties. Fix docstring.
b7c7a4d1 4885 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 4886
8f11f7ec
SM
48872009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4888
4889 * alloc.c (mark_object): Don't reprocess marked strings.
4890 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4891 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4892
8a605fe8
KH
48932009-11-13 Kenichi Handa <handa@m17n.org>
4894
8f11f7ec 4895 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
4896 semantics of Vword_combining_categories.
4897 (Vword_combining_categories): Describe the slight change of the
4898 semantics.
4899
241c4680
EZ
49002009-11-13 Eli Zaretskii <eliz@gnu.org>
4901
4902 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4903
4904 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4905
5d58e44c
SM
49062009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4907
4908 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4909
5e13f9d3
JB
49102009-11-12 Juanma Barranquero <lekktu@gmail.com>
4911
4912 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4913
cf54c754
DR
49142009-11-11 David Reitter <david.reitter@gmail.com>
4915
4916 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4917 variables to fix 2009-11-09 change.
4918
a4ada374
DN
49192009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4920
91433552
DN
4921 * process.c (ifflag_def): Make flag_sym constant.
4922 (Fnetwork_interface_info): Use a constant pointer.
4923 (ifflag_table):
4924 * xfns.c (cursor_bits):
4925 * xdisp.c (power_letter):
4926 * termcap.c (speeds, esctab):
4927 * sysdep.c (baud_convert):
4928 * keyboard.c (lispy_accent_codes, modifier_names):
4929 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4930 (jpeg_format, tiff_format, gif_format, svg_format)
4931 (interlace_start, interlace_increment, gs_format):
4932 * gtkutil.c (separator_names):
4933 * fringe.c (swap_nibble):
4934 * fns.c (base64_value_to_char, base64_char_to_value):
4935 * fileio.c (make_temp_name_tbl):
4936 * coding.c (suffixes): Make constant.
4937
f4265f6c
DN
4938 * frame.c (make_initial_frame):
4939 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4940 build_string.
4941 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4942
04420943
DN
4943 * s/freebsd.h:
4944 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4945
0a5d24ae
DN
4946 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4947 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4948
a4ada374
DN
4949 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4950 * xterm.c (syms_of_xterm):
4951 * xfaces.c (syms_of_xfaces):
4952 * xdisp.c (syms_of_xdisp):
4953 * lread.c (syms_of_lread):
4954 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4955 build_string.
91433552 4956
a4ada374
DN
4957 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4958
af98fc7f
SM
49592009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4960
8ab1650e 4961 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 4962
e90292a9
JD
49632009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4964
4965 * keyboard.h: Declare timer_check.
4966
4967 * keyboard.c (timer_check_2): New function that does what the old
4968 timer_check did.
4969 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4970 returned, i.e. don't return -1 with timers pending.
4971
4972 * process.c: Remove extern declaration of timer_check.
4973
4974 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4975 even if timer_check returned -1.
4976
af98fc7f
SM
4977 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4978 xg_dialog_data.
e90292a9
JD
4979 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4980 the event loop.
4981 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4982 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4983 Destroy the dialog after xg_dialog_run.
4984
045b83c0
SM
49852009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4986
4987 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4988
1fb99a3a
JD
49892009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4990
4991 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4992
04e452cb
JB
49932009-11-09 Juanma Barranquero <lekktu@gmail.com>
4994
4995 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4996
ef7417fd
SM
49972009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4998
4999 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5000 w32menu.c, and nsmenu.m.
5001 Simplify the obsolete case where position is nil.
5002 (cleanup_popup_menu): New function, moved from nsmenu.m.
5003 (struct skp): Remove slot `notreal'.
5004 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5005 adjust callers.
5006 (single_menu_item): Adjust call to parse_menu_item.
5007 (syms_of_menu): Defsubr x-popup-menu.
5008 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5009 (keymap_panes): Don't export any more.
5010 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5011 (xmenu_show): Declare.
5012 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5013 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5014 * keyboard.h (parse_menu_item): Update declaration.
5015 * xmenu.c (Fx_popup_menu): Remove.
5016 (syms_of_xmenu): Don't defsubr x-popup-menu.
5017 * w32menu.c (Fx_popup_menu): Remove.
5018 (syms_of_w32menu): Don't defsubr x-popup-menu.
5019 * nsmenu.m (cleanup_popup_menu): Remove.
5020 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5021 moved to menu.c's Fx_popup_menu.
5022 (Fx_popup_menu): Remove.
5023 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5024 menu_items (it's done in menu.c already).
5025
424d6179
SM
50262009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5027
5028 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5029 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5030
c0df13a6 50312009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
5032
5033 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 5034 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
5035 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5036 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5037
2de9f71c
SM
50382009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5039
5040 Let integers use up 2 tags to give them one extra bit and thus double
5041 their range.
5042 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5043 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5044 New macros.
5045 (enum Lisp_Type): Use them. Give explicit values.
5046 (Lisp_Type_Limit): Remove.
5047 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5048 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5049 Pay attention to USE_2_TAGS_FOR_INTS.
5050 (INTEGERP): Use LISP_INT_TAG_P.
5051 * fns.c (internal_equal): Simplify the default case.
5052 (sxhash): Use case_Lisp_Int.
5053 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5054 any more.
5055 (Ftype_of): Use case_Lisp_Int.
5056 (store_symval_forwarding): Take into account the fact that Ints can
5057 now have more than one tag.
5058 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5059 buffer_slot_type_mismatch):
5060 * xfaces.c (face_attr_equal_p):
5061 * print.c (print_object):
5062 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5063 Use case_Lisp_Int.
5064
323637a2
EZ
50652009-11-06 Eli Zaretskii <eliz@gnu.org>
5066
7ac65b38
EZ
5067 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5068
323637a2
EZ
5069 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5070 warning.
5071
e511451f
JD
50722009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5073
5074 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5075
5076 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5077
5078 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5079 ButtonPressRelease and MotionNotify (bug#4870).
5080
5e2327cf
DN
50812009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5082
5adc433e
DN
5083 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5084
d67b4f80
DN
5085 * xterm.c (syms_of_xterm):
5086 * xselect.c (syms_of_xselect):
5087 * xmenu.c (syms_of_xmenu):
5088 * xfns.c (syms_of_xfns):
5089 * xfaces.c (syms_of_xfaces):
5090 * xdisp.c (syms_of_xdisp):
5091 * window.c (syms_of_window):
5092 * w32fns.c (syms_of_w32fns):
5093 * undo.c (syms_of_undo):
5094 * textprop.c (syms_of_textprop):
5095 * terminal.c (syms_of_terminal):
5096 * syntax.c (syms_of_syntax):
5097 * sound.c (syms_of_sound):
5098 * search.c (syms_of_search):
5099 * print.c (syms_of_print):
5100 * minibuf.c (syms_of_minibuf):
5101 * macros.c (syms_of_macros):
5102 * keymap.c (syms_of_keymap, initial_define_key)
5103 (initial_define_lispy_key):
5104 * keyboard.c (syms_of_keyboard):
5105 * insdel.c (syms_of_insdel):
5106 * image.c (syms_of_image):
5107 * fringe.c (syms_of_fringe):
5108 * frame.c (syms_of_frame):
5109 * fontset.c (syms_of_fontset):
5110 * fns.c (syms_of_fns):
5111 * fns.c (syms_of_fns):
5112 * fileio.c (syms_of_fileio):
5113 * fileio.c (syms_of_fileio):
5114 * eval.c (syms_of_eval):
5115 * doc.c (syms_of_doc):
5116 * dispnew.c (syms_of_display):
5117 * dired.c (syms_of_dired):
5118 * dbusbind.c (syms_of_dbusbind):
5119 * data.c (syms_of_data):
5120 * composite.c (syms_of_composite):
5121 * coding.c (syms_of_coding):
5122 * cmds.c (syms_of_cmds):
5123 * charset.c (define_charset_internal, syms_of_character):
5124 * ccl.c (syms_of_ccl):
5125 * category.c (syms_of_category, init_category_once):
5126 * casetab.c (syms_of_casetab):
5127 * casefiddle.c (syms_of_casefiddle):
5128 * callint.c (syms_of_callint):
5129 * bytecode.c (syms_of_bytecode):
5130 * buffer.c (keys_of_buffer, syms_of_buffer):
5131 * alloc.c (syms_of_alloc):
5132 * process.c (syms_of_process, init_process):
5133 * lread.c (syms_of_lread, init_obarray):
5134 * font.c (build_style_table):
5135 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5136 intern_c_string, calls to make_pure_string with
5137 make_pure_c_string. Use pure_cons instead of Fcons.
5138
5e2327cf
DN
5139 * process.c (socket_options): Make it const.
5140 (set_socket_option, init_process): Use a const pointer.
5141
5142 * lread.c (intern_c_string): New function.
5143 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5144 (defvar_int): Uset it. Make the name const char*.
5145
5146 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5147 (defvar_int): Update prototypes.
5148 (DEFUN, EXFUN): Support for prototypes is now required.
5149 (intern_c_string): New prototype.
5150 (struct Lisp_Subr): Make symbol_name constant.
5151
5152 * font.c (struct table_entry): Remove unused member. Make NAMES
5153 constant.
5154 (weight_table, slant_table, width_table): Make constant.
5155
5156 * emacs.c (struct standard_args): Make name and longname constant.
5157
5158 * character.h (DEFSYM): Use intern_c_string.
5159
a56eaaef
DN
51602009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5161
5162 * alloc.c (make_pure_c_string): New function.
5163
5164 * eval.c (Fautoload): Purecopy all arguments.
5165
f6a07420
KH
51662009-11-05 Kenichi Handa <handa@m17n.org>
5167
5168 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5169 the buffer in case of replace.
5170
5d28d4b1
DN
51712009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5172
5173 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5174
b349d111
SM
51752009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5176
d528b1ce
SM
5177 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5178 when applicable (bug#4851).
5179
b349d111
SM
5180 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5181 (P_): Support for prototypes is now required.
5182
c38eb027
CY
51832009-10-31 Chong Yidong <cyd@stupidchicken.com>
5184
5185 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5186 (Bug#4827).
5187
0405f8d9
EZ
51882009-10-30 Eli Zaretskii <eliz@gnu.org>
5189
d528b1ce 5190 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5191
ca0a881a
DN
51922009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5193
5194 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5195
d528b1ce
SM
5196 * lread.c (Fload): Purecopy the file name when building
5197 Vpreloaded_file_list.
ca0a881a 5198
47e0e0e4
JR
51992009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5200
5201 * w32fns.c (syms_of_w32fns): Change default value of
5202 w32-scroll-lock-modifier to nil. (Bug#2827)
5203
057bce6f
JB
52042009-10-26 Juanma Barranquero <lekktu@gmail.com>
5205
782a943e 5206 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5207
242bc74c
AS
52082009-10-26 Andreas Schwab <schwab@redhat.com>
5209
5210 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5211
522d013a
JB
52122009-10-26 Juanma Barranquero <lekktu@gmail.com>
5213
5214 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5215 For delta < 0, skip check that only makes sense when the mini-window
5216 is going to be enlarged. (Bug#4534)
5217
18060980
CY
52182009-10-25 Chong Yidong <cyd@stupidchicken.com>
5219
5220 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5221 string in menu maps (Bug#4471).
5222
fec8f0fe
CY
52232009-10-24 Chong Yidong <cyd@stupidchicken.com>
5224
5225 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5226 FRAME_NS_VIEW on terminal frames (Bug#4765).
5227
10d66ec0
AS
52282009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5229
1cae01f7
AS
5230 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5231 DBUS_TYPE_UINTnn separately to get proper sign extension.
5232
58a12889
AS
5233 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5234 can properly handle unsigned types.
d528b1ce 5235 (make_uid, make_gid): Remove.
58a12889 5236
987c9327
AS
5237 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5238 types again.
5239
522d013a 5240 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5241 (system_process_attributes): Likewise.
5242
905a9ed3
DN
52432009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5244
5245 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5246
5247 * eval.c (Fautoload): Purecopy the filename. Simplify.
5248
5249 * category.c (Fdefine_category): Purecopy docstring.
5250
a599b3e8
AS
52512009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5252
7b792fc9
AS
5253 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5254
a599b3e8
AS
5255 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5256
b35ac83e
CY
52572009-10-23 Chong Yidong <cyd@stupidchicken.com>
5258
5259 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5260 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5261 (Bug#4775).
5262
e8903e00
SM
52632009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5264
5265 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5266 (init_fileio_once):
5267 * lisp.h (init_fileio_once): Remove.
5268 * emacs.c (main): Don't call init_fileio_once.
5269
8f43cbf3
DN
52702009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5271
5272 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5273
26898943
AS
52742009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5275
5276 * doprnt.c (doprnt): Fix overflow check.
5277
5c646d5a
JD
52782009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5279
3132a7ea
JD
5280 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5281
5c646d5a
JD
5282 * xterm.h (x_wait_for_event): Declare it.
5283
5284 * xterm.c (pending_event_wait): New variable.
5285 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5286 see pending_event_wait.eventtype.
5287 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5288 (x_new_font): Call change_frame_size with new rows/columns before we
5289 try to resize the frame.
5c646d5a 5290 (x_wait_for_event): New function.
d528b1ce
SM
5291 (x_set_window_size_1): Don't change gravity unless change_gravity
5292 is set.
5c646d5a
JD
5293 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5294 don't change frame size, instead wait for the ConfigureNotify.
5295 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5296 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5297 (x_initialize): Initialize pending_event_wait.
5298
5299 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5300 size.
5301
5302 * widget.c (EmacsFrameSetValues): Add comment.
5303 (EmacsFrameSetCharSize): Just call x_set_window_size.
5304
5305 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5306 x_wait_for_event.
d528b1ce 5307 (flush_and_sync): Remove again.
5c646d5a
JD
5308 (xg_get_font_name): Suggest monospace if no previous font is known.
5309
e9c1637d
SM
53102009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5311
5312 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5313 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5314
5a72cccb
YM
53152009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5316
5317 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5318 processing pending events when event is filtered for input method.
ab04798f 5319 (Bug#3681)
5a72cccb 5320
2629aa37
JB
53212009-10-20 Juanma Barranquero <lekktu@gmail.com>
5322
5323 * fns.c: Add #endif accidentally removed in previous change.
5324
c3417a74
DN
53252009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5326
5327 * fns.c: Remove code for unsupported system: MAC_OS.
5328 * image.c: Likewise. Include setjmp.h.
5329
9685cef2
JD
53302009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5331
5332 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5333 pixel -1 (bug #4742).
5334
d7306fe6
DN
53352009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5336
019d2c4c
DN
5337 * process.c (create_pty): Remove conditionals for no longer
5338 supported systems: UNIPLUS and RTU.
5339
ee6bacd4
DN
5340 * xterm.c:
5341 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5342
d7306fe6
DN
5343 * alloc.c: Do not define struct catchtag.
5344 * eval.c: Move struct catchtag definition ...
5345 * lisp.h: ... here.
5346
5347 * image.c: Move png.h #include earlier to avoid warnings.
5348
5349 * xterm.c:
5350 * xsmfns.c:
5351 * xselect.c:
5352 * xrdb.c:
5353 * xmenu.c:
5354 * xftfont.c:
5355 * xfont.c:
5356 * xfns.c:
5357 * xfaces.c:
5358 * xdisp.c:
5359 * window.c:
5360 * widget.c:
5361 * w32xfns.c:
5362 * w32uniscribe.c:
5363 * w32term.c:
5364 * w32select.c:
5365 * w32reg.c:
5366 * w32proc.c:
5367 * w32menu.c:
5368 * w32inevt.c:
5369 * w32heap.c:
5370 * w32font.c:
5371 * w32fns.c:
5372 * w32console.c:
5373 * w32.c:
5374 * w16select.c:
5375 * vm-limit.c:
5376 * unexsol.c:
5377 * unexec.c:
5378 * unexcw.c:
5379 * unexaix.c:
5380 * undo.c:
5381 * tparam.c:
5382 * textprop.c:
5383 * terminfo.c:
5384 * terminal.c:
5385 * termcap.c:
5386 * term.c:
5387 * syntax.c:
5388 * sound.c:
5389 * sheap.c:
5390 * search.c:
5391 * scroll.c:
5392 * region-cache.c:
5393 * regex.c:
5394 * ralloc.c:
5395 * process.c:
5396 * print.c:
b024548b
DN
5397 * nsterm.m:
5398 * nsselect.m:
5399 * nsmenu.m:
5400 * nsimage.m:
5401 * nsfont.m:
5402 * nsfns.m:
d7306fe6
DN
5403 * msdos.c:
5404 * minibuf.c:
5405 * menu.c:
5406 * marker.c:
5407 * macros.c:
5408 * keymap.c:
5409 * keyboard.c:
5410 * intervals.c:
5411 * insdel.c:
5412 * indent.c:
5413 * gtkutil.c:
5414 * ftxfont.c:
5415 * ftfont.c:
5416 * fringe.c:
5417 * frame.c:
5418 * fontset.c:
5419 * font.c:
5420 * fns.c:
5421 * floatfns.c:
5422 * filelock.c:
5423 * fileio.c:
5424 * emacs.c:
5425 * editfns.c:
5426 * dosfns.c:
5427 * doprnt.c:
5428 * doc.c:
5429 * dispnew.c:
5430 * dired.c:
5431 * dbusbind.c:
5432 * data.c:
5433 * composite.c:
5434 * coding.c:
5435 * cmds.c:
5436 * cm.c:
5437 * chartab.c:
5438 * charset.c:
5439 * character.c:
5440 * ccl.c:
5441 * category.c:
5442 * casetab.c:
5443 * casefiddle.c:
5444 * callproc.c:
5445 * callint.c:
5446 * bytecode.c:
5447 * buffer.c:
5448 * atimer.c: Include setjmp.h. (Bug#4643)
5449
fd5f21e6
SM
54502009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5451
4c0354d7
SM
5452 Remove leftover table unibyte_to_multibyte_table.
5453 * character.c (unibyte_to_multibyte_table): Remove.
5454 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5455 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5456 * character.h (UNIBYTE_TO_CHAR): New macro.
5457 (MAKE_CHAR_MULTIBYTE): Use it.
5458 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5459 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5460 (message_dolog, set_message_1):
5461 * search.c (Freplace_match):
5462 * editfns.c (Fcompare_buffer_substrings):
5463 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5464 (concat):
5465 * insdel.c (copy_text, count_size_as_multibyte):
5466 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5467 * term.c (produce_glyphs):
5468 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5469 * regex.c (RE_CHAR_TO_MULTIBYTE):
5470 * cmds.c (internal_self_insert):
5471 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5472
fd5f21e6
SM
5473 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5474
4418646e
DN
54752009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5476
5477 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5478
35f5c1d2
JB
54792009-10-16 Juanma Barranquero <lekktu@gmail.com>
5480
5481 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5482
a0cd8f6b
AR
54832009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5484
5485 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5486 still needed under Tiger.
5487
5488 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5489
5490 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5491 __Apple__.
5492
5493 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5494
01a8d3fa
KH
54952009-10-15 Kenichi Handa <handa@m17n.org>
5496
5497 * print.c (print_object): Escape a symbol like "2E10" too.
5498
bf6c75c9 54992009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
5500
5501 Cleanups and changes for 64-bit compile under Snow Leopard.
5502 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
5503
5504 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5505
c5959062 5506 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
5507 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5508 cast argument.
5509 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 5510 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
5511
5512 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5513
5514 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5515 where appropriate.
5516
5517 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5518 where appropriate.
6e4780c5
JB
5519 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5520 Use stringWithUTF8String.
bf6c75c9
AR
5521 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5522
6e4780c5
JB
5523 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5524 Add formal protocol mention to inheritance.
bf6c75c9
AR
5525 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5526
6e4780c5
JB
5527 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5528 Fix printf format.
bf6c75c9
AR
5529 (ns_query_color): Use CGFloat where appropriate.
5530 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 5531 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
5532 argument.
5533
3d87f118
AR
5534 * config.in (NS_HAVE_NSINTEGER): Drop.
5535
a95c8102
AR
5536 * dbusbind.c (dbus-method-return-internal)
5537 (dbus-method-error-internal): Use long format in printf, and cast
5538 argument.
5539
5540 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5541 in printf, and cast argument.
5542
6873acca 5543 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
5544 cast argument.
5545
9ec6f100
GM
55462009-10-11 Glenn Morris <rgm@gnu.org>
5547
5548 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
5549
5be883cd
JD
55502009-10-08 Jan Djärv <jan.h.d@swipnet.se>
5551
5552 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
5553 menu bar with a small width so it doesn't enlarge the frame.
5554
d7a39b51
JB
55552009-10-08 Juanma Barranquero <lekktu@gmail.com>
5556
5557 * fontset.c (Fset_fontset_font): Fix typos in error messages.
5558
0c2b6f8e
GM
55592009-10-06 Glenn Morris <rgm@gnu.org>
5560
5561 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
5562 SOME_MACHINE_LISP (this enters indirectly via DOC).
5563
e02131a2
EZ
55642009-10-05 Eli Zaretskii <eliz@gnu.org>
5565
5566 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
5567
b4744254
EZ
55682009-10-04 Eli Zaretskii <eliz@gnu.org>
5569
5570 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
5571 Doc fix.
5572
dbf64827
JB
55732009-10-03 Martin Rudalics <rudalics@gmx.at>
5574
5575 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
5576
e9a0aef8
MA
55772009-10-02 Michael Albinus <michael.albinus@gmx.de>
5578
d528b1ce 5579 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
5580 used anymore outside fileio.c.
5581
5582 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
5583
64eb2b56
JB
55842009-10-01 Juanma Barranquero <lekktu@gmail.com>
5585
5586 * lisp.h (Qdelete_directory_internal):
5587 Declare, instead of Qdelete_directory.
5588
5589 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5590
9d28c33e
SM
55912009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5592
5593 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5594
9d8f3bd9
MA
55952009-10-01 Michael Albinus <michael.albinus@gmx.de>
5596
9d28c33e 5597 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
5598 Fdelete_directory. It is not a command anymore. It has no file
5599 name handler.
5600
9694740b
SM
56012009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5602
5603 * xdisp.c (get_next_display_element): Use an enum in last change.
5604
748e162f
KH
56052009-09-28 Kenichi Handa <handa@m17n.org>
5606
9694740b 5607 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
5608 unibyte_display_via_language_environment in handling
5609 Vnobreak_char_display.
5610
17efd58d
AR
56112009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5612
5613 * nsterm.h (ns_app_name): New extern variable.
5614
5615 * nsterm.m (ns_app_name): New variable.
5616 (ns_term_init): Set and use it.
5617 (ns_term_shutdown): Use it.
5618
5619 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5620 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5621
5622 * nsfns.m (ns_set_name_iconic, ns_set_name)
5623 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5624 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5625
9694740b
SM
5626 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5627 Remove double-casting in client_data comparison.
31c2d412 5628
3208cb35
YM
56292009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5630
5631 * keyboard.c (make_lispy_event): Remember last wheel direction.
5632 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5633
b7d552d6
GM
56342009-09-26 Glenn Morris <rgm@gnu.org>
5635
5636 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5637 internal.elc. Add term/pc-win.elc.
5638 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5639 term/x-win.elc.
5640 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5641 term/w32-win.elc.
5642 (NS_SUPPORT): New.
5643 (lisp): Add NS_SUPPORT.
5644 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5645
4ff670a8
DR
56462009-09-25 David Reitter <david.reitter@gmail.com>
5647
5648 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5649 on Mac OS X 10.6+ (bug#4513).
5650
feabfb6c
JB
56512009-09-24 Juanma Barranquero <lekktu@gmail.com>
5652
5653 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
5654 some parts of Emacs code (like font selection) don't grok them.
5655 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 5656
de59072a
AS
56572009-09-24 Andreas Schwab <schwab@redhat.com>
5658
5659 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5660
a489517b
JB
56612009-09-24 Juanma Barranquero <lekktu@gmail.com>
5662
5663 * dired.c (Fdirectory_files): Fix typo in docstring.
5664
0592970c
AR
56652009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5666
5667 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5668 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5669 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5670 under GNUstep.
5671 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5672
5673 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5674 glyph advancement.
5675
48e8a88b
AR
56762009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5677
5678 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 5679 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
5680
5681 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5682 deleted (bug #4492).
5683
e14f0a78
AR
5684 * nsfont.m (Vns_reg_to_script): New lisp variable.
5685 (syms_of_nsfont): Declare it.
5686 (ns_registry_to_script): New function.
5687 (ns_get_req_script): Call it.
5688 (ns_findfonts): Don't give up on non-unicode registry.
5689
5690 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
5691
5b650faa
SM
56922009-09-20 Tom Tromey <tromey@redhat.com>
5693
5694 * eval.c (find_handler_clause): Make stack-trace-on-error work in
5695 batch mode (bug#4228).
5696
a489517b 56972009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
5698
5699 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 5700 carefully. (Bug #4339)
0bae4e09 5701
fcfe06f3
CY
57022009-09-18 Chong Yidong <cyd@stupidchicken.com>
5703
d798ba87 5704 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 5705
31642728
AR
57062009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5707
5708 * emacs.c (inhibit_x_resources): Update doc string for NS.
5709 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 5710 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
5711
5712 * nsterm.h (ns_no_defaults): Remove.
5713
5714 * nsterm.m (ns_no_defaults): Remove.
5715 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
5716 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
5717 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
5718 don't update the NSWindow itself.
5719 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 5720 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
5721
5722 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
5723 ns_use_qd_smoothing.
5724
5725 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
5726 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 5727 (x-close-connection): Drop PSFlush() under OS X.
a489517b 5728 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 5729
8686ac71
JB
57302009-09-17 Juanma Barranquero <lekktu@gmail.com>
5731
5732 * emacs.c (inhibit_x_resources): New variable.
5733 (main) [HAVE_NS]: Don't process --quick command line option.
5734 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
5735
5736 * lisp.h (inhibit_x_resources): Declare it extern.
5737
5738 * w32reg.c (x_get_string_resource):
5739 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
5740
e227ba05
EZ
57412009-09-17 Eli Zaretskii <eliz@gnu.org>
5742
362654a6
JB
5743 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
5744 Add lisp/term/internal.elc.
e227ba05 5745
742d40e8
SM
57462009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5747
5748 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
5749 (bug#4461).
5750
005bd5a2
DN
57512009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
5752
5753 * puresize.h (BASE_PURESIZE): Increase to 1290000.
5754
5755 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
5756 (OBJECTS_MACHINE): Remove, unused.
5757
f9af9719
SM
57582009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
5759
5760 * frame.c (x_get_resource_string): Remove unused.
5761
0307c7d2
JD
57622009-09-15 Jan Djärv <jan.h.d@swipnet.se>
5763
5764 * xterm.c (x_new_font): Call change_frame_size before calling
5765 x_set_window_size, in case frame size won't change.
5766
5767 * frame.c (x_set_font): Remove dead code.
5768
428b13d6
SM
57692009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
5770
5771 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
5772
5766c380
SM
57732009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5774
5775 * lread.c (Fload): Don't output a message after loading an obsolete
5776 package any more (done in Lisp now).
5777
2fd0161b
CY
57782009-09-12 Chong Yidong <cyd@stupidchicken.com>
5779
5780 * fns.c (syms_of_fns): Doc fix (Bug#4227).
5781
bc5e75b6
SM
57822009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5783
5784 * keymap.c (Fwhere_is_internal): Use nconc2.
5785
c31c985e
AM
57862009-09-11 Alan Mackenzie <acm@muc.de>
5787
5788 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
5789 batch mode.
5790
78012bd2
AS
57912009-09-11 Andreas Schwab <schwab@linux-m68k.org>
5792
5793 * xdisp.c (display_mode_element): Detect cycles.
5794
9d889332
SM
57952009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5796
5797 * keymap.c (where_is_internal): Don't erroneously return nil right after
5798 filling the cache.
5799 (where_is_internal_1): Fix up typo.
5800
7ab5d780
GM
58012009-09-11 Glenn Morris <rgm@gnu.org>
5802
5803 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
5804 share a common doc-string.
5805
5238a749
SM
58062009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5807
66d77eda
SM
5808 * keymap.c (get_keymap): Return the actual keymap symbol rather than
5809 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
5810
5238a749
SM
5811 * keymap.c (QCadvertised_binding): New constant.
5812 (syms_of_keymap): Initialize it.
5813 (Fwhere_is_internal): Try and use bindings from :advertised-binding
5814 if applicable.
5815
19f48442
SM
58162009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
5817
50d4ba39
SM
5818 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
5819 (parse_menu_item): Streamline since bindings are recomputed all the
5820 time anyway. Don't bother checking Vdefine_key_rebound_commands any
5821 more and don't support lmenu's menu-alias any more either.
5822
a88a5372
SM
5823 * keymap.c (where_is_internal_data): Make noindirect a boolean.
5824 (where_is_internal): Strip it down to only traverse the keymaps.
5825 Move the cache handling from Fwhere_is_internal to here.
5826 (Fwhere_is_internal): Move the handling of remapping and the choice of
5827 the best binding from where_is_internal to here.
5828 Unify the cached/noncached paths, so remapping is also handled
5829 correctly when the cache is used, and so the cache can be used to
5830 speed up remap-handling when applicable.
5831 Give preference to non-remapped bindings.
5832 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
5833 non-remapped bindings.
5834 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
5835 command remapping.
5836
19f48442
SM
5837 * xdisp.c (display_mode_element): Move list length limit from 50 to
5838 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
5839
599498c3 58402009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
5841
5842 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
5843
f9b7b5ac
SM
58442009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
5845
a53af587
JB
5846 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
5847 (Bug#4334)
5848
f9b7b5ac
SM
5849 * keymap.c (where_is_internal): Filter out shadowed remappings.
5850 Assume that where_is_internal returns unshadowed bindings to simplify
5851 the code and get rid of the gotos. Use ASIZE.
5852
04f4b72d
JD
58532009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5854
4da146f2
JD
5855 * xterm.c (x_focus_changed): If we get a focusout and pointer
5856 is invisible, make it visible.
5857
04f4b72d
JD
5858 * xterm.h: Remove condition for declaration of
5859 x_*_window_to_frame.
5860
7cef7ce3
SM
58612009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5862
5863 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5864 initial terminal as well.
5865
a54fa5b7
JD
58662009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5867
5868 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 5869 x_menubar_window_to_frame.
a54fa5b7 5870
50426a04 5871 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
5872 (XTmouse_position): Do not return valid positions
5873 for clicks in the menubar and the toolbar for Gtk+.
5874
5875 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5876 if the widget for the event has the same top level as a frame,
5877 return the frame.
5878 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5879 internal windows, bug #4122.
5880 (x_non_menubar_window_to_frame): Remove.
5881
5a021dd0
GM
58822009-09-02 Glenn Morris <rgm@gnu.org>
5883
5884 * buffer.c (default-major-mode): Move most of the doc from here...
5885 (major-mode): ... to here.
5886
548fe2f3
NR
58872009-08-30 Nick Roberts <nickrob@snap.net.nz>
5888
5889 * process.c (wait_reading_process_output): Keep the descriptor
5890 when pty is used by a non-child process, e.g., in I/O buffer of
5891 GDB this allows inferior to be restarted.
5892
e0840eef
EZ
58932009-08-29 Eli Zaretskii <eliz@gnu.org>
5894
5895 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5896 both branches into one.
5897
82e98df4
SM
58982009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5899
5900 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5901 (main): Use enable-multibyte-characters rather than
5902 default-enable-multibyte-characters. Output a warning message when
5903 running a unibyte session.
5904
890617cb
YM
59052009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5906
5907 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5908 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5909 (copy_data_segment): Also copy __program_vars section.
5910 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5911 (dump_it) [LC_DYLD_INFO]: Use it.
5912
5913 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5914
e7adeadc
EZ
59152009-08-28 Eli Zaretskii <eliz@gnu.org>
5916
5917 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5918 $(SRC)/buildobj.h.
5919 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5920 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5921 $(SRC)/buildobj.h.
5922 (clean): Add buildobj.h.
5923
3ed8bbdc
TZ
59242009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5925
5926 * print.c (print_object): Set escapeflag to 1 when printing
5927 hashtable keys and values.
5928
155a6764
SM
59292009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5930
5931 * lread.c (read_integer): Use doubles (and potentially return a float
5932 number) as we do in string-to-number.
5933 (read1): Use strtol to read integers, signal errors on strtol's
5934 overflow and use floats if strtol's output is too large for
5935 Elisp integers.
5936
877610de
EZ
59372009-08-27 Eli Zaretskii <eliz@gnu.org>
5938
5939 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5940 (make-buildobj-SH): Fix last change.
5941 (SRC): Move to before where it's first used.
5942
ef73e7be
KH
59432009-08-27 Kenichi Handa <handa@m17n.org>
5944
550c8289
KH
5945 * process.c (send_process): Use encode_coding_object instead of
5946 encode_coding_string to perform eol-conversion even if the string
5947 is unibyte.
5948
60afa08d
KH
5949 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5950 character.
5951
ef73e7be 5952 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 5953 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 5954
7b3a82d7
DN
59552009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5956
5654bf63
DN
5957 * callproc.c (Fcall_process): Remove always true #if.
5958
7b3a82d7
DN
5959 * lisp.h: Replace #if 0 code for checking with text pointing to
5960 the --enable-checking configure flag.
5961
5962 * emacs.c (main): Mention the --enable-profiling configure flag
5963 instead of using CFLAGS.
5964
878bde49
KR
59652009-08-26 Ken Raeburn <raeburn@raeburn.org>
5966
5967 * Makefile.in (buildobj.h): New target.
5968 (doc.o): Depend on it.
5969 (temacs${EXEEXT}): Don't generate buildobj.lst.
5970 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5971 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5972 ($(BLD)/doc.$(O)): Depend on it.
5973 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5974 provided by Eli Zaretskii.)
5975 ($(TEMACS)): Don't generate buildobj.lst.
5976 * doc.c: Include buildobj.h.
5977 (buildobj): New static variable.
5978 (Fsnarf_documentation): Use it, instead of opening and reading
5979 buildobj.lst.
5980
1574224c
MA
59812009-08-25 Michael Albinus <michael.albinus@gmx.de>
5982
5983 * dbusbind.c (Fdbus_call_method)
5984 (Fdbus_call_method_asynchronously): Use English numeric format for
5985 timeout values in doc string.
5986
d9da2f45
KH
59872009-08-25 Kenichi Handa <handa@m17n.org>
5988
ef73e7be
KH
5989 * alloc.c (mark_char_table): New function.
5990 (mark_object): Use mark_char_table for a char-table.
5991
d9da2f45
KH
5992 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5993 (CHAR_TABLE_REF): Use it.
5994
c8edcc01
KR
59952009-08-23 Ken Raeburn <raeburn@raeburn.org>
5996
5997 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5998 before invoking the newly build emacs to check for load-path
5999 shadowing.
6000
7763401b
GM
60012009-08-22 Glenn Morris <rgm@gnu.org>
6002
6003 * Makefile.in (bootstrap_exe): New variable.
6004 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6005 Use ${bootstrap_exe}.
6006
729eadda
EZ
60072009-08-22 Eli Zaretskii <eliz@gnu.org>
6008
6009 * coding.h (encode_coding_string): Don't encode unibyte strings.
6010 (Bug#4047)
6011
eb4c6ace
MA
60122009-08-22 Michael Albinus <michael.albinus@gmx.de>
6013
6014 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6015
6016 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6017 intended as hotfix only.
6018 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6019
36e34d1b
AR
60202009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6021
6022 * nsterm.m (ns_get_color): Update documentation properly for last
6023 change, and clean up loose ends in the code left by it. Fix
6024 longstanding bug with 16-bit hex parsing, and add support for
6025 yet another X11 format (rgb:r/g/b) for compatibility.
6026 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6027 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6028
f983eb8a
SM
60292009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6030
6031 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6032
3f56d3c6
MA
60332009-08-20 Michael Albinus <michael.albinus@gmx.de>
6034
6035 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6036 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6037 (xd_initialize, xd_pending_messages): Check, whether
6038 $DBUS_SESSION_BUS_ADDRESS is set.
6039
fb641d68
YM
60402009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6041
6042 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6043
6044 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6045
cf59a374
GM
60462009-08-20 Glenn Morris <rgm@gnu.org>
6047
6048 * emacs.c (system-type): Doc fix.
6049
1373f3be
SM
60502009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6051
6052 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6053 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6054
058ed861
MA
60552009-08-18 Michael Albinus <michael.albinus@gmx.de>
6056
1373f3be
SM
6057 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6058 New functions.
058ed861
MA
6059 (xd_initialize): Revert change from 2009-08-16.
6060
563a866e 60612009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6062
6063 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6064 font-group vector, return nil.
5fc05db0 6065
e42bdf01
CY
60662009-08-17 Chong Yidong <cyd@stupidchicken.com>
6067
6068 * process.c (status_notify): Don't perform redisplay.
6069 (Fdelete_process, list_processes_1, process_send_signal):
6070 Expliticly perform redisplay.
6071 (wait_reading_process_output): Always check process status, but
6072 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6073
4230ab74
KR
60742009-08-17 Ken Raeburn <raeburn@raeburn.org>
6075
1373f3be 6076 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6077 (XFLOAT_INIT): New macro for storing a float value.
6078 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6079 * fns.c (sxhash): Copy out the value of a float in order to
6080 examine its bytes.
6081 * dbusbind.c (xd_append_arg): Likewise.
6082
4230ab74
KR
6083 * emacs.c (main): Don't call syms_of_data twice.
6084
a0645cdd
MA
60852009-08-16 Michael Albinus <michael.albinus@gmx.de>
6086
6087 * dbusbind.c (xd_initialize): Add connection file descriptor to
6088 input_wait_mask, in order to let select() detect, whether a new
6089 message has been arrived.
ca4f31ea 6090 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6091
485db0ba
MA
60922009-08-15 Michael Albinus <michael.albinus@gmx.de>
6093
1373f3be
SM
6094 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6095 New functions.
485db0ba
MA
6096
6097 * lisp.h (xd_pending_messages): Declare.
6098
6099 * keyboard.c (readable_events): Call xd_pending_messages.
6100
b5b98ff4
CY
61012009-08-15 Chong Yidong <cyd@stupidchicken.com>
6102
1373f3be 6103 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6104
f8354c6e
CY
6105 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6106
b5b98ff4
CY
6107 * buffer.c (set_buffer_internal_1)
6108 (swap_out_buffer_local_variables): Check for unbound local
6109 variables (Bug#4138).
6110
8b9fc636
EZ
61112009-08-14 Eli Zaretskii <eliz@gnu.org>
6112
6113 * process.c (create_pty): Fix last change.
6114
ce959360
CY
61152009-08-13 Chong Yidong <cyd@stupidchicken.com>
6116
6117 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6118 (xbm_load_image): Caller changed.
64b807c9 6119 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6120
c7baf7e9
NR
61212009-08-13 Nick Roberts <nickrob@snap.net.nz>
6122
6123 * process.c (create_pty): New function.
6124 (Fstart_process): Use it to allow Emacs to just associate a pty
6125 with the buffer. See associated change in gdb-mi.el.
6126 (list_processes_1): Deal with no program name.
6127 (start_process_unwind): Use pid == -2 to mean no process.
6128
1ac9108a
SM
61292009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6130
6131 * cmds.c (nonundocount): New global variable.
6132 (keys_of_cmds): Initialize it.
6133 (Fself_insert_command): Use it to combine upto 20 sequential chars
6134 into a single undo entry, just like the Qself_insert_command code in
6135 keyboard.c does.
6136 Call frame_make_pointer_invisible, also like the Qself_insert_command
6137 code in keyboard.c does.
6138 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6139 than its own local replacement for it.
6140
e267324c
KR
61412009-08-10 Ken Raeburn <raeburn@raeburn.org>
6142
1ac9108a 6143 * fns.c (concat): Don't re-set string length to its current value.
77437343 6144
1ac9108a
SM
6145 * coding.h (decode_coding_string, encode_coding_string):
6146 Use SBYTES macro.
f0bed503 6147
1ac9108a 6148 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6149 (doprnt): Merge with doprnt1, discarding lispstrings code.
6150 * lisp.h (doprnt_lisp): Don't declare.
6151
416e006d
JL
61522009-08-07 Juri Linkov <juri@jurta.org>
6153
6154 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6155
6f7d5780
DN
61562009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6157
6158 * print.c (syms_of_print): Undo previous change.
6159
f19a0f5b
TZ
61602009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6161
6162 * lread.c (read1, syms_of_lread): Read hashtables back from the
6163 readable format.
6164
6165 * print.c (print_preprocess, print_object): Print hashtables fully
6166 and readably.
6167 (syms_of_print): Provide 'hashtable-print-readable.
6168
b9173dc2
AR
61692009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6170
6171 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6172 no family set.
6173 (nsfont_open): Handle case when entity has no family.
6174
1586503c
AR
61752009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6176
6177 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6178 element, not a list, for match case.
6179
087048cd
KH
61802009-07-28 Kenichi Handa <handa@m17n.org>
6181
6182 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6183 rigidly.
6184
6185 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6186 font_parse_xlfd. Check font properties more rigidly.
6187
780c2506
DN
61882009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6189
31fd7c5c
JB
6190 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6191 bsd-common.h.
780c2506 6192
a8c0cc18
KH
61932009-07-27 Kenichi Handa <handa@m17n.org>
6194
6195 * xfaces.c (face_with_height): Call font_clear_prop.
6196
4fbe2306
CY
61972009-07-26 Chong Yidong <cyd@stupidchicken.com>
6198
111d9af3
CY
6199 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6200
6201 * xterm.c (x_term_init): Use Qx.
6202
4fbe2306
CY
6203 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6204
1ac9108a 6205 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6206 (ns_get_color): Revert 2009-07-16 change.
6207
beb0b7f9
EZ
62082009-07-25 Eli Zaretskii <eliz@gnu.org>
6209
6210 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6211 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6212
2baf5e76
KR
62132009-07-25 Ken Raeburn <raeburn@raeburn.org>
6214
1ac9108a
SM
6215 * coding.h (decode_coding_string, encode_coding_string):
6216 Use SCHARS macro.
8890e5f5 6217
2baf5e76 6218 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6219 (load_depth): Delete.
2baf5e76
KR
6220 (Qload_in_progress): New variable.
6221 (load_unwind): Don't reference load_depth or load_in_progress.
6222 (Fload): Likewise; specbind Qload_in_progress instead.
6223 (init_lread): Don't initialize load_depth.
6224 (syms_of_lread): Initialize and protect Qload_in_progress.
6225
1395c6f5
AR
62262009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6227
6228 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6229
4e2f36cf
AR
62302009-07-23 Yavor Doganov <yavor@gnu.org>
6231
6232 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6233
5dd9a6f7
AR
62342009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6235
6236 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6237 Bugs 3792, 3720, 2402.
6238 (ns_lookup_indexed_color): Check for bad index.
6239 (ns_index_color): Init unused slot to 0.
6240 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6241 Bug 3714, possibly 3082.
5dd9a6f7 6242
c902b920
JR
62432009-07-22 Jason Rumney <jasonr@gnu.org>
6244
1ac9108a
SM
6245 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6246 Position IME window at cursor (Bug#2570).
c902b920
JR
6247 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6248 (globals_of_w32fns): Dynamically load functions required above.
6249
6250 * w32term.c (w32_draw_window_cursor): Send message to reposition
6251 any IME window.
6252
090101cf
CY
62532009-07-21 Chong Yidong <cyd@stupidchicken.com>
6254
6255 * fileio.c: Revert 2009-07-16 changes.
6256 (Vauto_save_include_big_deletions): New variable.
6257 (Fdo_auto_save): Disable auto-save only if
6258 auto-save-include-big-deletions is nil.
6259
e6583e3d
CY
62602009-07-21 Chong Yidong <cyd@stupidchicken.com>
6261
6262 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6263 the overflowed pixels into account (Bug#3879).
6264
ece435a5
KR
62652009-07-21 Ken Raeburn <raeburn@raeburn.org>
6266
6267 * lread.c (load_depth): New variable.
6268 (Fload, load_unwind, init_lread): Set it to the load recursion
6269 depth; set load_in_progress as a simple boolean based on the
6270 current load_depth. (Bug#3892)
6271
40b2d973
AR
62722009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6273
6274 * nsfont.m (ns_has_attribute): Remove.
6275 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6276
10be7e0d
JL
62772009-07-18 Juri Linkov <juri@jurta.org>
6278
6279 * process.c (Fset_process_query_on_exit_flag): Mention killing
6280 a buffer in docstring.
6281
fa055055
KH
62822009-07-17 Kenichi Handa <handa@m17n.org>
6283
6284 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6285
042f7b69
YM
62862009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6287
6288 * nsfns.m (Fns_set_alpha): Remove function.
6289 (syms_of_nsfns): Don't defsubr it.
6290
6291 * nsterm.m (ns_get_color): Remove incompatible color formats.
6292 (ns_color_to_lisp): Generate #rrggbb color format string.
6293
4be941e3
RS
62942009-07-16 Richard Stallman <rms@gnu.org>
6295
6296 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6297 (Fset_buffer_auto_saved): Handle save_length = -2.
6298
4e6b227d
CY
62992009-07-16 Chong Yidong <cyd@stupidchicken.com>
6300
6301 * xterm.c (Qx_gtk_map_stock): New var.
6302
6303 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6304 of calling intern each time.
6305
a1856973
YM
63062009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6307
6308 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6309 does tiling.
6310
6311 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6312
497e54d8
KH
63132009-07-14 Kenichi Handa <handa@m17n.org>
6314
72d36834
KH
6315 * font.c (font_vconcat_entity_vectors): New function.
6316 (struct font_sort_data): New member font_driver_preference.
6317 (font_compare): Check font_driver_preference.
6318 (font_sort_entities): The format of the first argument changed.
6319 (font_delete_unmatched): Likewise.
6320 (font_list_entities): The return type changed.
6321 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6322 (font_find_for_lface): Adjuste for the above changes.
6323 Don't suppress the checking of C even if the repertory supports it.
6324 (Flist_fonts): Adjust for the above changes.
72d36834 6325
1ac9108a
SM
6326 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6327 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6328 Reject a font who has adstyle property that is different from a
6329 langname derived from registry property.
1ac9108a 6330 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6331
b6046155
EZ
63322009-07-13 Eli Zaretskii <eliz@gnu.org>
6333
6334 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6335 local copy of dirfilename.
6336
fb6b6049
KH
63372009-07-13 Kenichi Handa <handa@m17n.org>
6338
e2402a5e
KH
6339 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6340 against max_char.
6341
fb6b6049
KH
6342 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6343 calling XSYMBOL (sym).
6344
65156807
EZ
63452009-07-11 Eli Zaretskii <eliz@gnu.org>
6346
1ac9108a
SM
6347 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6348 New function.
6349 (directory_files_internal) [WINDOWSNT]:
6350 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6351 the filesystem of the directory is fast or slow.
6352
6353 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6354 file name.
6355 (is_slow_fs): New function.
6356 (stat): Use it to determine whether to issue more system calls to
6357 get accurate file attributes, when w32-get-true-file-attributes is
6358 `local'.
6359
e0ab5fcf
JD
63602009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6361
6362 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6363 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6364 parameter font-parameter as default to the font dialog.
6365
784ceded
KH
63662009-07-10 Kenichi Handa <handa@m17n.org>
6367
6368 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6369
fb8edc0b
EZ
63702009-07-09 Eli Zaretskii <eliz@gnu.org>
6371
1ac9108a 6372 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 6373
fb8edc0b
EZ
6374 * w32.c (stat): Treat UNC file names as residing on remote
6375 drives. (Bug#3542)
6376
635c75b1
KH
63772009-07-09 Kenichi Handa <handa@m17n.org>
6378
6379 * fontset.c (fontset_find_font): Fix previous change.
6380
c1d5ce94
MA
63812009-07-08 Michael Albinus <michael.albinus@gmx.de>
6382
6383 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6384 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6385 error flag.
6386
edb61b39
KH
63872009-07-08 Kenichi Handa <handa@m17n.org>
6388
374bf7e4
KH
6389 * fontset.c (fontset_find_font): Fix the logic of handling
6390 charset_matched.
6391 (font_for_char): Delete unused var.
6392 (generate_ascii_font_name): Delete it.
6393
edb61b39
KH
6394 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6395
6396 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6397 (encode_coding_sjis): Fix the code range check.
6398
0f3f018c
CY
63992009-07-07 Chong Yidong <cyd@stupidchicken.com>
6400
6401 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6402 (Fexpand_file_name): Copy string data properly (Bug#3772).
6403
fcaf6f3a
JD
64042009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6405
6406 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6407 first MapNotify.
6408
6809ca75
KH
64092009-07-07 Kenichi Handa <handa@m17n.org>
6410
6411 * character.h (unibyte_has_multibyte_table): Delete extern.
6412 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6413
6414 * charset.c (Fset_charset_priority): Update charset_unibyte.
6415 (syms_of_charset): Initialize charset_unibyte.
6416
6417 * character.c (unibyte_has_multibyte_table): Delete it.
6418 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6419 charset_unibyte.
6420 (multibyte_char_to_unibyte_safe): Likewise.
6421 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6422
1ac9108a 6423 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6424 (x_produce_glyphs): Likewise.
6425
6426 * .gdbinit (xcharset): Fix the treating $arg0.
6427
ad9e2d54
EZ
64282009-07-04 Eli Zaretskii <eliz@gnu.org>
6429
6430 Emulation of `getloadavg' on MS-Windows.
50426a04 6431 * w32.c: Include float.h.
ad9e2d54
EZ
6432 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6433 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6434 (get_native_system_info, get_system_times): New functions.
6435 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6436 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6437 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6438 g_b_init_get_system_times, and num_of_processors.
6439
0a3472c7
JR
64402009-07-03 Jason Rumney <jasonr@gnu.org>
6441
6442 * w32term.c (w32_initialize): Use standard types.
6443
80904120
EZ
64442009-07-03 Eli Zaretskii <eliz@gnu.org>
6445
6446 * dired.c (Ffile_attributes): Decode user and group names by the
6447 locale's encoding. (Bug#3443)
6448
6978862d
DN
64492009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6450
f8d23104
DN
6451 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6452 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6453
6454 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6455
6456 * term.c (init_tty): Remove spurious #ifdef.
6457
6978862d
DN
6458 * m/mips.h: Mention this file is also used for netbsd.
6459 * m/pmax.h: Remove file.
6460
e044e4fc
JD
64612009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6462
6463 * xterm.h (struct x_display_info): Add invisible_cursor.
6464 (struct x_output): Add current_cursor.
6465
6466 * xterm.c (XTtoggle_invisible_pointer): New function.
6467 (x_define_frame_cursor): Don't define cursor if invisible or the
6468 same as before. Set current_cursor.
6469 (x_create_terminal): Set toggle_invisible_pointer_hook.
6470
6471 * xfns.c (make_invisible_cursor): New function.
6472 (x_set_mouse_color): Call make_invisible_cursor.
6473 Set current_cursor.
6474 (x_window): Set current_cursor.
6475
6476 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6477
6478 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6479 inserting a character.
6480 (read_avail_input): Call frame_make_pointer_visible.
6481
6482 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
6483 (frame_make_pointer_invisible, frame_make_pointer_visible):
6484 New functions.
e044e4fc
JD
6485 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6486
6487 * frame.h: Declare frame_make_pointer_invisible and
6488 frame_make_pointer_visible.
6489 (struct frame): Add pointer_invisible.
6490
574c8efa
JD
64912009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6492
7b507248
JD
6493 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6494 frame isn't visible.
6495 (xg_frame_resized): If width/height is -1, get size of window
6496 from X server.
6497
6498 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6499 for MapNotify.
6500
835bdaa7 6501 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 6502 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 6503 (flush_and_sync): Reintroduce.
574c8efa 6504
3f1c6666 65052009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 6506
31fd7c5c 6507 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
6508
6509 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6510 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6511
6512 * frame.h: Declare Qsticky.
6513
cad9ef74
JD
6514 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6515
6516 * nsfns.m (ns_frame_parm_handlers): Ditto.
6517
6518 * frame.c: Declare Qsticky.
6519 (frame_parms): Add sticky.
6520
6521 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6522
6523 * xterm.h: Declare x_set_sticky.
6524
6525 * xterm.c (x_set_sticky): New function.
6526
69b16610
JD
6527 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6528 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6529 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
6530
6531 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6532
6533 * frame.c: Qmaximized is new.
6534 (x_set_frame_parameters): Do not handle fullscreen specially.
6535 Only set width and height if explicitly set.
6536 (x_set_fullscreen): Handle Qmaximized.
6537 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6538 (syms_of_frame): Initialize Qmaximized.
6539
1ac9108a
SM
6540 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6541 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
6542
6543 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
6544 for Expose event. Add call to x_check_fullscreen for MapNotify event.
6545 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
6546 set gravity to NorthWestGravity when USE_GTK.
6547 (set_wm_state): New function.
31fd7c5c 6548 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
6549 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
6550 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 6551 or the case when no window manager is running. That means remove calls
3f1c6666
JD
6552 to x_real_positions and x_fullscreen_adjust.
6553
6554 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
6555 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
6556 flush_and_sync.
6557 (xg_height_changed): New function.
6558 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
6559 and gtk_window_set_policy. Set frame gravity after parsing the
6560 geometry string.
3f1c6666
JD
6561 (xg_update_frame_menubar, free_frame_menubar)
6562 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6563 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
6564 Remove calls to xg_frame_set_char_size.
6565
fd503d99
KH
65662009-07-01 Kenichi Handa <handa@m17n.org>
6567
6568 * keyboard.c (decode_keyboard_code): New function.
6569 (tty_read_avail_input): Decode the input bytes if necessary.
6570
1ac9108a
SM
6571 * coding.c (setup_coding_system):
6572 Initialize coding->carryover_bytes to 0.
fd503d99
KH
6573 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
6574 use Qno_conversion.
6575
24ed93fb
YM
65762009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6577
6578 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
6579
99061dfc
CY
65802009-06-30 Chong Yidong <cyd@stupidchicken.com>
6581
1ac9108a 6582 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 6583
ff90fbde
JR
65842009-06-30 Jason Rumney <jasonr@gnu.org>
6585
6586 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6587 is already loaded.
6588 Set user model ID if supported (bug#1849).
6589
5f445726
JM
65902009-06-29 Jim Meyering <meyering@redhat.com>
6591
6592 Remove useless if-before-xfree test.
6593 * nsfont.m (nsfont_close): Remove useless test.
6594 * term.c (delete_tty): Likewise.
6595 * w32.c (system_process_attributes): Likewise.
6596 * w32font.c (w32font_close): Likewise.
6597 * xfaces.c (x_free_gc): Likewise.
6598 * xselect.c (buffer): Likewise.
6599
b9607587
AS
66002009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6601
6602 * process.c (send_process): Keep decoded string in a local
6603 variable and protect it from GC. (Bug#3521)
6604
89ba96f4
EZ
66052009-06-28 Eli Zaretskii <eliz@gnu.org>
6606
6607 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6608 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6609
098a1589
CY
66102009-06-28 Chong Yidong <cyd@stupidchicken.com>
6611
485422be
CY
6612 * xdisp.c (start_display, handle_face_prop)
6613 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
6614 (redisplay_window, try_window_id, produce_image_glyph):
6615 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 6616
098a1589
CY
6617 * xterm.c (x_update_window_begin, x_new_focus_frame)
6618 (x_scroll_bar_handle_click, handle_one_xevent)
6619 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6620 (x_make_frame_visible, x_make_frame_invisible)
6621 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6622 code chunks that are now obsolete.
6623
78c38319
MA
66242009-06-28 Michael Albinus <michael.albinus@gmx.de>
6625
6626 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6627 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6628 for hours, when optimzation is enabled.
6629 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6630 (xd_read_message): Make them static.
6631
4189ed40
CY
66322009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6633
6634 * term.c (turn_on_face): Allow simultaneously bold and dim
6635 terminal faces (Bug#3530).
6636
cd9b5e16
CY
66372009-06-27 Chong Yidong <cyd@stupidchicken.com>
6638
4e23bedb
CY
6639 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6640
cd9b5e16
CY
6641 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6642 truncation glyphs (Bug#3686).
6643
07cc3c35
GM
66442009-06-27 Glenn Morris <rgm@gnu.org>
6645
6646 * m/pmax.h: Restore file, with only netbsd portions.
6647
31fd7c5c 66482009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 6649
cd9b5e16 6650 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 6651
42d4a64f
KH
66522009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6653
6654 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6655 the arg FORCE_SYMBOL.
6656
930fe55b 66572009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
6658
6659 * fontset.c (fontset_find_font): When a usable rfont_def is found
6660 in a fallback font-group, make it the first element of the group.
6661
57ebc3fd
CY
66622009-06-24 Chong Yidong <cyd@stupidchicken.com>
6663
6664 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6665
f084f942
KH
66662009-06-24 Kenichi Handa <handa@m17n.org>
6667
6668 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6669 set for C.
6670 (fontset_font): Record the availability of a font for C both in
6671 the realized fontsets of the current one and the default one.
6672
2f686c87
DN
66732009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6674
6675 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6676 conditional, it is always defined on AIX.
6677
666e158e
MB
66782009-06-23 Miles Bader <miles@gnu.org>
6679
6680 * window.c (Vrecenter_redisplay): New variable.
6681 (syms_of_window): Initialize it.
6682 (Qtty): New extern declaration.
6683 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6684
c6da7cd2
JM
66852009-06-23 Jim Meyering <meyering@redhat.com>
6686
1ac9108a
SM
6687 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6688 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 6689 pointer dereferences are guaranteed to be valid.
c6da7cd2 6690
678dca3d
KH
66912009-06-23 Kenichi Handa <handa@m17n.org>
6692
74d75424
KH
6693 * emacs.c (main): Call init_font ().
6694
6695 * font.h (Vfont_log): Extern it.
6696 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
6697
6698 * font.c (font_sort_entities, font_list_entities)
6699 (font_matching_entity, font_open_entity)
6700 (font_close_object): Change font_add_log to FONT_ADD_LOG.
6701 (Vfont_log): Delete static.
6702 (font_log_env_checked): Delete this variable.
6703 (font_add_log): Don't check font_log_env_checked.
6704 (font_deferred_log): Check Vfont_log.
6705 (init_font): New function.
6706
678dca3d
KH
6707 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
6708
6709 * w32font.c: Change font_add_log to FONT_ADD_LOG.
6710
6711 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
6712
6713 * xfont.c: Change font_add_log to FONT_ADD_LOG.
6714
6715 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
6716 (face_for_char): Don't call font_deferred_log here.
6717 (font_for_char): Likewise.
6718
8a668709
CY
67192009-06-22 Chong Yidong <cyd@stupidchicken.com>
6720
9a01ee33
CY
6721 * w32term.c (x_draw_glyph_string): Use the glyph string's width
6722 rather than its background_width for drawing the overline and
6723 underline (Bug#489).
6724
6725 * xterm.c (x_draw_glyph_string): Use the glyph string's width
6726 rather than its background_width for drawing the overline and
6727 underline (Bug#489).
ec7c9926
CY
6728 (xg_default_icon_file): New variable.
6729 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
6730 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 6731
8a668709
CY
6732 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
6733 (load_overlay_strings): Remove externs.
6734 (fast_find_position): Function deleted.
6735 (mouse_face_from_buffer_pos): New function, based on
6736 fast_find_position. Correctly handle before-strings,
6737 display-strings, and after-strings (Bug#1220).
6738 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
6739
4d4c02d8
CY
67402009-06-21 Chong Yidong <cyd@stupidchicken.com>
6741
1ac9108a 6742 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
6743 (move_it_in_display_line_to, move_it_in_display_line_to)
6744 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
6745
70243478
CY
67462009-06-21 Chong Yidong <cyd@stupidchicken.com>
6747
6748 * Branch for 23.1.
6749
13087e59
JR
67502009-06-21 Jason Rumney <jasonr@gnu.org>
6751
6752 * w32term.c (keyboard_codepage): New static variable.
6753 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
6754 (w32_read_socket) [WM_CHAR]: Use it to decode character
6755 input (bug#3237).
6756 (w32_initialize): Initialize it.
6757 (codepage_for_locale): New function.
6758
4735b74e
KR
67592009-06-20 Ken Raeburn <raeburn@raeburn.org>
6760
6761 * process.c (status_message): Pass Faset index argument as a lisp
6762 object, so as to work with USE_LISP_UNION_TYPE.
6763
0e727afa
YM
67642009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6765
6766 * coding.c (Ffind_coding_systems_region_internal):
6767 Cache checked characters.
6768
cf299835
KH
67692009-06-18 Kenichi Handa <handa@m17n.org>
6770
1ac9108a 6771 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 6772
90f20d94
AS
67732009-06-18 Andreas Schwab <aschwab@redhat.com>
6774
6775 * xdisp.c (redisplay_internal): Check that the frame is still
6776 live after redisplay of its windows.
6777 (redisplay_windows): Check that the window is still live.
6778
7f1faf1c
KH
67792009-06-17 Andreas Schwab <schwab@linux-m68k.org>
6780
6781 * coding.c (detect_coding_utf_16): Fix previous change.
6782
cc13543e
KH
67832009-06-16 Kenichi Handa <handa@m17n.org>
6784
6785 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
6786 UTF-16 by checking the dispersion of Eth and Oth bytes.
6787
977b85f4
AS
67882009-06-15 Andreas Schwab <schwab@linux-m68k.org>
6789
6790 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
6791
66bd43d1
KH
67922009-06-15 Kenichi Handa <handa@m17n.org>
6793
6794 * process.c (status_message): Fix previous change. Be sure to
6795 decode a localized string.
6796
cb5ca9c5
YM
67972009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6798
6799 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
6800 add comment explaining why.
6801
ec7709ba 68022009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 6803
ec7709ba 6804 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 6805
4b7f335c
AR
68062009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
6807
6808 * nsfont.m (ns_attribute_value): Remove.
6809 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
6810 (ns_has_attribute): Shrink the normal range.
6811 (ns_findfonts): Don't worry about requested spec in determining
6812 need for synthItal.
e41820ee 6813 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 6814
73b26103
SZ
68152009-06-14 Seiji Zenitani <zenitani@mac.com>
6816
6817 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
6818
5753e4da
KH
68192009-06-11 Kenichi Handa <handa@m17n.org>
6820
6821 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6822 overhang for the static composition case.
6823
3561b671
KH
68242009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6825
5753e4da
KH
6826 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6827 overhang for the automatic composition case.
6828
3561b671
KH
6829 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
6830 composition case.
6831
852bbd41
CY
68322009-06-10 Chong Yidong <cyd@stupidchicken.com>
6833
6834 * xdisp.c (get_next_display_element): When handling wrap-prefix
6835 and line-prefix, treat \n as a control character (bug#3502).
6836
9903d1e6
KH
68372009-06-10 Kenichi Handa <handa@m17n.org>
6838
6839 * font.c (font_parse_family_registry): Fix for one-char foundry.
6840 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
6841
0bcbaaaa
CY
68422009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
6843
6844 * process.c (status_message): Fix handling of multibyte signal
6845 string (Bug#3499).
6846
40aa3f13
JM
68472009-06-09 Jim Meyering <meyering@redhat.com>
6848
1f80c7e2
CY
6849 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6850 color name is missing.
40aa3f13 6851
72d51285
KH
68522009-06-09 Kenichi Handa <handa@m17n.org>
6853
6854 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6855 FROM-CODE and TO-CODE are codepoints of CHARSET.
6856
c1d04d84
AR
68572009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6858
6859 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6860
68612009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6862
6863 Changes to support :script/:lang/:otf in NS font driver.
6864 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6865 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6866 indicate not part of font driver interface, and change callers.
6867 (ns_get_family): Remove pointless null check.
6868 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6869 ns_spec_to_descriptor, ns_descriptor_to_entity.
6870 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6871 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6872 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6873 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6874 (ns_get_req_script, ns_accumulate_script_ranges)
6875 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6876 New functions.
6877 (nsfont_list, nsfont_match): Use ns_findfonts.
6878 (nsfont_open): Use font descriptor instead of traits.
6879 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6880 (dump_glyphstring): Rename to ns_dump_glyphstring.
6881
c7eb9816
AR
6882 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6883
c1d04d84
AR
6884 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6885
6886 * fontset.c (fontset_from_font): Remove NS-specific code.
6887
ec7709ba 68882009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
6889
6890 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6891 nonactive windows.
6892
31fd7c5c 68932009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 6894
1ac9108a 6895 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 6896
68852c13 68972009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
6898
6899 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6900
6756cd1d
CY
69012009-06-07 Chong Yidong <cyd@stupidchicken.com>
6902
6903 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6904 account for the overflowing of newlines into the last glyph on the
6905 display line (Bug#3482).
6906
28bf482a
DR
69072009-06-05 David Reitter <david.reitter@gmail.com>
6908
ec7709ba
JB
6909 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6910 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
6911 Fns_selection_exists_p, Fns_selection_owner_p.
6912
fdb55376
JR
69132009-06-03 Jason Rumney <jasonr@gnu.org>
6914
6915 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6916 available. (Bug#3379)
6917
05129fbe
KH
69182009-05-29 Kenichi Handa <handa@m17n.org>
6919
1ac9108a
SM
6920 * coding.c (get_translation_table):
6921 Check Venable_character_translation.
05129fbe 6922
ec7709ba 69232009-05-26 David Reitter <david.reitter@gmail.com>
15891144 6924
ec7709ba
JB
6925 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6926 (x_make_frame_visible): Move frame to front rather than calling
15891144 6927 ns_raise_frame().
ec7709ba 6928 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 6929 isn't key window.
ec7709ba 6930 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
6931 drawRect may be called by NSView even if the frame is hidden.
6932
ec7709ba
JB
6933 * nsfns.m (Fx_create_frame): Follow other ports in
6934 determining visibility; default to t. Ensure async_visible is set.
15891144 6935
21f73755
EZ
69362009-05-23 Eli Zaretskii <eliz@gnu.org>
6937
6938 * dired.c (Ffile_attributes): Doc fix.
6939
34001e41
CY
69402009-05-22 Chong Yidong <cyd@stupidchicken.com>
6941
6942 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6943
46306a17
SM
69442009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6945
6946 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6947 and xfont_scratch_props.
6948 (syms_of_xfont): Do it here instead.
6949 (xfont_find_ccl_program): Delete, unused.
6950 (xfont_open): Delete unused var `i'.
6951
ef6e0694
KH
69522009-05-21 Kenichi Handa <handa@m17n.org>
6953
6954 * fontset.c (Qlatin): Don't make it static.
6955
46306a17
SM
6956 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6957 New functions.
ef6e0694
KH
6958 (xfont_scripts_cache, xfont_scratch_props): New variables.
6959 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
6960 (xfont_list_pattern): Argument changed. Callers changed.
6961 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
6962 (xfont_list): Don't reject a font spec with :script property.
6963 (xfont_has_char): Fix setting of encoding.
6964 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6965 xfont_scratch_props.
6966
69672009-05-19 Kenichi Handa <handa@m17n.org>
6968
46306a17 6969 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
6970 Callers changed.
6971
69722009-05-18 Kenichi Handa <handa@m17n.org>
6973
6974 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6975
ac71ced7
SM
69762009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6977
6978 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6979 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6980
1c6d1051
YM
69812009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6982
6983 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6984 (x_delete_terminal): Dissociate resource database from display and
6985 then call XrmDestroyDatabase before closing display.
6986
9b9b779c
AR
69872009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6988
6989 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
6990 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6991 whether selected frame is viable before raising it (based on patch
6992 by David Reitter), and improve commentary.
6993 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 6994
cccd42d5
KH
69952009-05-15 Kenichi Handa <handa@m17n.org>
6996
6997 * font.c (Ffont_spec): Check arguments.
6998
337fbd17
CY
69992009-05-14 Chong Yidong <cyd@stupidchicken.com>
7000
7001 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7002 weight when testing attributes (Bug#3282).
7003
47a6002f
JD
70042009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7005
7006 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7007 what we expect to get in the next ConfigureNotify event.
7008
9cb363db
YM
7009 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7010 before Xft one (Bug#1696).
7011
b9126609
CY
70122009-05-07 David Reitter <david.reitter@gmail.com>
7013
7014 * nsfns.m (Fx_display_planes): Compute bitplanes using
7015 NSBitsPerPixelFromDepth (Bug#3207).
7016
27a69fd9
CY
70172009-05-10 Chong Yidong <cyd@stupidchicken.com>
7018
7019 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7020
00f37552
TTN
70212009-05-10 Ulrich Mueller <ulm@gentoo.org>
7022
7023 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7024
2d82a920
DR
70252009-05-07 David Reitter <david.reitter@gmail.com>
7026
ec7709ba
JB
7027 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7028 Respect mouse face background.
2d82a920 7029
46b0d52d
DR
70302009-05-07 David Reitter <david.reitter@gmail.com>
7031
ec7709ba
JB
7032 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7033 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
7034 in ns_update_begin and ns_update_end.
7035
ce1b23bb
SM
70362009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7037
5996e1b7
SM
7038 * nsfns.m (ns_get_screen): Rewrite.
7039 Don't presume selected-frame is of type `ns'.
7040
ba98e3a0
SM
7041 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7042 all drivers.
7043
ce1b23bb
SM
7044 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7045
bcda200f
YM
70462009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7047
7048 * keyboard.h (add_user_signal): Fix typo in extern.
7049
7050 * lisp.h (add_user_signal): Remove extern.
7051
7052 * unexelf.c (unexec): Consider a section to precede the .bss section
7053 if its addresses overlap that of .bss.
7054 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7055 instead of dumping process.
7056
864660a2
SM
70572009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7058
7059 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7060
50da4e56
SM
70612009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7062
7063 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7064
51520a1a
DN
70652009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7066
7067 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7068 any statements.
7069
409ea3a1
AS
70702009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7071
59c4c60f
AS
7072 * process.c (read_process_output): Make sure the current buffer is
7073 always restored.
7074
409ea3a1
AS
7075 * coding.c (record_conversion_result): Don't modify
7076 Vlast_code_conversion_error for successful result.
7077 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7078
56f00ed2
KH
70792009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7080
7081 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7082 (load_charset_map): Remove unnecessary code.
56f00ed2 7083
4491c9d2
DR
70842009-04-30 David Reitter <david.reitter@gmail.com>
7085
35f5b128 7086 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7087 through f24.
7088
6970f632
CY
70892009-04-30 Chong Yidong <cyd@stupidchicken.com>
7090
7091 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7092
7093 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7094 face_at_buffer_position.
7095 (face_before_or_after_it_pos, get_next_display_element)
7096 (note_mouse_highlight): Update face_at_buffer_position call.
7097
7098 * term.c (term_mouse_highlight):
7099 * msdos.c (IT_note_mouse_highlight):
7100 * fontset.c (Finternal_char_font):
35f5b128 7101 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7102
7103 * dispextern.h (face_at_buffer_position): Update prototype.
7104
0c616f63
KH
71052009-04-30 Kenichi Handa <handa@m17n.org>
7106
35f5b128 7107 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7108
ad3aaf33
AS
71092009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7110
7111 * callproc.c (Fcall_process): Fix GC protection. Make sure
7112 current buffer is always restored.
7113
c3c963a0
YM
71142009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7115
7116 * atimer.c (init_atimer): Also clear stopped_atimers.
7117
7118 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7119
7e3386cb
YM
7120 * process.c (create_process): Clean up merger residues of
7121 2008-07-17 change.
7122
91f68422
CY
71232009-04-29 Ulrich Mueller <ulm@gentoo.org>
7124
7125 * lread.c (Vread_circle): New variable.
7126 (read1): Disable recursive read if Vread_circle is nil.
7127
24b34550
KH
71282009-04-29 Kenichi Handa <handa@m17n.org>
7129
7130 * fontset.h (set_default_ascii_font): Delete extern.
7131
7132 * fontset.c (set_default_ascii_font): Delete this unused function.
7133
7134 * frame.c (x_set_font): When ARG is a font-object, check if the
7135 font-object matches with the ASCII font-spec of the frame's
9c358bda 7136 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7137
77bf07e1
AS
71382009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7139
7140 * fns.c (Flocale_info): Protect vector from GC during decoding.
7141
7142 * process.c (Fstart_process): Protect argv strings from GC during
7143 encoding.
7144
2c55aacf
AS
71452009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7146
7147 * sysdep.c: Include <ctype.h>.
7148
b892d3c9
DR
71492009-04-27 David Reitter <david.reitter@gmail.com>
7150
35f5b128 7151 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7152 Remove commented-out code.
7153
9d0644c4
JB
71542009-04-26 Johan Bockgård <bojohan@gnu.org>
7155
7156 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7157
b7053016
JR
71582009-04-25 Jason Rumney <jasonr@gnu.org>
7159
7160 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7161
4e8231f3
YM
71622009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7163
7164 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7165 Swap bytes in short integer if fringe bitmap width > 8.
7166
493dcf2c
KH
71672009-04-23 Kenichi Handa <handa@m17n.org>
7168
7169 * xfaces.c (Fx_list_fonts): If a font size is specified in
7170 PATTERN, set it in returned scalable fonts.
7171
401e9e57
CY
71722009-04-22 Chong Yidong <cyd@stupidchicken.com>
7173
708e05dc
CY
7174 * keyboard.c (Fset_input_meta_mode): Doc fix.
7175
7176 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7177
1ac9108a 7178 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7179
7180 * coding.c (Fterminal_coding_system): Doc fix.
7181
7182 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7183 (Fx_display_pixel_height, Fx_display_planes)
7184 (Fx_display_color_cells, Fx_server_max_request_size)
7185 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7186 (Fx_display_mm_height, Fx_display_mm_width)
7187 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7188 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7189 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7190 (check_x_display_info): Handle terminal objects instead of
7191 terminal ids.
7192
401e9e57
CY
7193 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7194 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7195 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7196 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7197
df80c7f0
KH
71982009-04-21 Kenichi Handa <handa@m17n.org>
7199
5a8f12af 7200 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7201 (font_score): Check AVGWIDTH too.
908567ef 7202
df80c7f0
KH
7203 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7204 worst case.
1ac9108a
SM
7205 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7206 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7207
705af33f
JR
72082009-04-19 Jason Rumney <jasonr@gnu.org>
7209
7210 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7211 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7212
7213 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7214 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7215 get_phys_cursor_geometry.
7216
b71ac3dd 7217 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7218 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7219 using get_phys_cursor_geometry.
7220
7221 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7222 correctly calculated.
7223
dc2933eb
JD
72242009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7225
1ac9108a
SM
7226 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7227 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7228 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7229 is deprecated.
7230
973e7849
AS
72312009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7232
7233 * font.c (font_put_frame_data): Use xfree instead of free.
7234
314d66f4
JB
72352009-04-17 Juanma Barranquero <lekktu@gmail.com>
7236
7237 * w32font.c (Qja, Qko): Remove declarations.
7238 (syms_of_w32font): Don't DEFSYM them.
7239
cf702558
CY
72402009-04-17 Chong Yidong <cyd@stupidchicken.com>
7241
7242 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7243
7244 * font.h (Qja, Qko): Extern them.
7245
7246 * ftfont.c (Qja, Qko): Remove declarations.
7247
7248 * xfont.c (Qja, Qko): Remove declarations.
7249
b50504f5
KH
72502009-04-17 Kenichi Handa <handa@m17n.org>
7251
bde25748
KH
7252 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7253 string from a vector to handle Latin-1 characters correctly.
7254
b50504f5
KH
7255 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7256 entity even if the cache hits.
7257
f4646fff
AS
72582009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7259
7260 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7261 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7262
e7deaab0
AS
7263 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7264 * lisp.h: Adjust prototypes.
7265
0a0e7d49
CY
72662009-04-16 Chong Yidong <cyd@stupidchicken.com>
7267
7268 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7269 change (Bug#3003).
7270
3c908a57
KH
72712009-04-16 Kenichi Handa <handa@m17n.org>
7272
1ac9108a 7273 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7274
7275 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7276 adstyle.
7277
7278 * ftfont.c (Qja, Qko): Don't make them static.
7279 (enum ftfont_cache_for): New enum.
7280 (fc_charset_table): Undo the previous change.
7281 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7282 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7283 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7284 non-scarable font, try to get AVERAGE_WIDTH.
7285 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7286 Change ft_face_cache from a list of a hash-table. Don't check
7287 `ja' and `ko' adstyle here.
7288 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7289 FTFONT_CACHE_FOR_CHARET.
7290 (ftfont_get_charset): Undo the previous change.
1ac9108a 7291 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7292 (ftfont_close): Likewise.
7293 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7294
7295 * font.c (font_sort_entites): Change the meaning of the arg
7296 BEST-ONLY. Don't optimize for VEC of lenght 1.
7297 (font_select_entity): Just return the value of font_sort_entites.
7298
7299 * xfaces.c (merge_face_vectors): Reflect font properties in
7300 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7301 font_clear_prop if a face attribute doesn't change.
7302
3c908a57
KH
7303 * charset.h (charset_ksc5601): Extern it.
7304
7305 * charset.c (charset_ksc5601): New variable.
7306 (Fdefine_charset_internal): Set charset_ksc5601.
7307 (init_charset_once): Initialize charset_ksc5601 to -1.
7308
d65859c3
DN
73092009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7310
7311 * fileio.c (history_delete_duplicates): Remove unused declaration.
7312
7313 * callint.c (history_delete_duplicates): New declaration.
7314 (Fcall_interactively): Remove command history duplicates when
7315 history_delete_duplicates is true.
7316
3ba010e5
EZ
73172009-04-14 Eli Zaretskii <eliz@gnu.org>
7318
7319 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7320
06f19b91
KH
73212009-04-14 Kenichi Handa <handa@m17n.org>
7322
7323 * font.c (Ffont_info): Fix docstring. Fix the second element of
7324 the returned value (bug#2949).
7325
2cce8bfc
CY
73262009-04-14 Chong Yidong <cyd@stupidchicken.com>
7327
7328 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7329
d156542d
KH
73302009-04-14 Kenichi Handa <handa@m17n.org>
7331
7332 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7333 encoding charset is ascii_compatible.
7334
7335 * charset.c (Fdefine_charset_internal): Make charset
7336 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7337 code_offset is 0, and covers all ASCII characters.
7338
86fa089e
SM
73392009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7340
7341 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7342 (ns_string_to_pasteboard_internal):
7343 * nsmenu.m (process_dialog):
7344 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7345 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7346 * lisp.h (Fx_load_color_file): Declare.
7347
a8a3728b
KH
73482009-04-13 Kenichi Handa <handa@m17n.org>
7349
1ac9108a 7350 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7351 (font_select_entity): Suppress the code to optimize for the same
7352 kind of fonts.
7353 (font_load_for_lface): Get a font that supports at least ASCII
7354 characters.
7355
7356 * ftfont.c (Qja, Qko): New variables.
7357 (fc_charset_table): Delete uniquifier data for iso8859-1.
7358 (ftfont_get_latin1_charset): New function.
7359 (get_adstyle_property): New function.
7360 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7361 bitmap fonts.
7362 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7363 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7364 `ko' or `ja'.
7365 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7366 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
7367 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7368 property.
7369 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7370 (syms_of_ftfont): DEFSYM Qja and Qko.
7371
483670b5
KH
73722009-04-09 Kenichi Handa <handa@m17n.org>
7373
12b55765
KH
7374 * charset.c (map_charset_chars): For a charset of `superset'
7375 method, fix calculation of code range.
7376
483670b5
KH
7377 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7378 from the list of extra properties.
7379 (font_clear_prop): Be sure to delete `:name' font property.
7380
57d3b93b
KH
73812009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7382
b4b2c2ca
YM
7383 * dispnew.c (redraw_overlapping_rows): Fix detection of
7384 overlapping for topmost and bottommost rows.
7385
1ac9108a 7386 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 7387
472c3609
JR
73882009-04-06 Jason Rumney <jasonr@gnu.org>
7389
7390 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7391
ab193662
KH
73922009-04-06 Kenichi Handa <handa@m17n.org>
7393
7394 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7395
7396 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7397
0c26f026
KH
73982009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7399
7400 * ftfont.c (ftfont_open): Fix checking of the return value of
7401 FT_Load_Char. Fix setting font->underline_thickness.
7402
e173bbce
CY
74032009-04-04 Chong Yidong <cyd@stupidchicken.com>
7404
7405 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7406 (Fterminal_parameters, Fterminal_parameter)
7407 (Fset_terminal_parameter): In doc string, refer to terminal
7408 objects rather than terminal ids.
7409
693a2698
EZ
74102009-04-04 Eli Zaretskii <eliz@gnu.org>
7411
7412 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7413 ret_lim_data. (Bug#2867)
7414
d5221487
CY
74152009-04-03 Chong Yidong <cyd@stupidchicken.com>
7416
7417 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7418 so they don't get wider than the window, matching 2006-01-23
7419 change to the partner function in xdisp.c (Bug#2800).
7420
223509a3
KH
74212009-04-03 Kenichi Handa <handa@m17n.org>
7422
7423 * print.c (print_object): Make each lowest sub_char_table start a
7424 new line (Bug#2866).
7425
74fcd0b1
KH
74262009-04-02 Kenichi Handa <handa@m17n.org>
7427
7428 * fontset.c (fontset_font): Record no-font when a fontset
7429 explicitly tells not to try another font-specs.
7430
c542407d
SM
74312009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7432
7433 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7434
e3869731
KH
74352009-03-30 Kenichi Handa <handa@m17n.org>
7436
d8d2f142
KH
7437 * fontset.c (fontset_from_font): Specify only registry in a
7438 font-spec for all characters supported by that registry.
7439
e3869731
KH
7440 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7441 even if HAVE_M17N_FLT is not defined.
7442
5da5f805
CY
74432009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7444
7445 * ftfont.c: Conditionalize prototyping and use of
7446 ftfont_variation_glyphs.
7447
ab226c50
SM
74482009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7449
9628fed7
SM
7450 * frame.c (delete_frame): Work around compiler bug.
7451
7452 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7453 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7454 Some more EMACS_INT.
7455 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7456
7457 * xdisp.c (dump_glyph): Fix typo.
7458
ae19ba7c
SM
7459 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7460 (adjust_markers_gap_motion, adjust_markers_for_delete)
7461 (adjust_markers_for_insert, adjust_point)
7462 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7463 (make_gap, copy_text, count_size_as_multibyte, insert)
7464 (insert_and_inherit, insert_before_markers)
7465 (insert_before_markers_and_inherit, insert_1)
7466 (count_combining_before, count_combining_after, insert_1_both)
7467 (insert_from_string, insert_from_string_before_markers)
7468 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7469 (insert_from_buffer_1, adjust_after_replace)
7470 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7471 (replace_range_2, del_range, del_range_1, del_range_byte)
7472 (del_range_both, del_range_2, modify_region)
7473 (prepare_to_modify_buffer, signal_before_change)
7474 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7475 for buffer positions and sizes.
7476 * lisp.h: Adjust prototypes accordingly.
7477
7478 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7479 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7480 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7481
ab226c50
SM
7482 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7483
46dfb8fb
JD
74842009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7485
7486 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7487 lines and columns so we keep the same pixel height and width.
7488
7489 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7490 the property _NET_WM_STATE has changed.
46dfb8fb
JD
7491 (x_handle_net_wm_state): New function to update frame parameter
7492 fullscreen.
7493 (x_term_init): Initialize atoms for _NET_WM_STATE.
7494
7495 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7496
d347e494
SM
74972009-03-27 Kevin Ryde <user42@zip.com.au>
7498
7499 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7500 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7501 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7502 (Fgpm_mouse_stop): Pass that new parameter.
7503 * termhooks.h (close_gpm): Adjust prototype.
7504
84db11d6
SM
75052009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7506
c95a5008
SM
7507 * lisp.h (Fx_focus_frame): Declare.
7508
84db11d6
SM
7509 * callint.c (Fcall_interactively): For '^' just delegate the work to
7510 handle-shift-selection.
7511 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7512
0a1958d6
CY
75132009-03-24 Chong Yidong <cyd@stupidchicken.com>
7514
0bfdff23
CY
7515 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7516
0a1958d6
CY
7517 * data.c (Qinteractive_form): New variable.
7518 (Finteractive_form): Use it.
7519
7520 * eval.c (Fcommandp): Use Qinteractive_form.
7521
58aec0d6
JR
75222009-03-24 Jason Rumney <jasonr@gnu.org>
7523
7524 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7525 Calculate total size precisely. Decode environment variables
7526 before substituting. (Bug#38)
7527
553dd618
KH
75282009-03-24 Kenichi Handa <handa@m17n.org>
7529
7530 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 7531 encoding (Bug#2722).
553dd618 7532
c39ea606
JD
75332009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7534
7535 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7536 that gdpy is set.
7537
bc9b2b5e
AM
75382009-03-22 Alan Mackenzie <acm@muc.de>
7539
7540 * callint.c (Finteractive): Clarify the doc string - even
7541 promptless elements need \n separators.
7542
9f995a76
JR
75432009-03-22 Jason Rumney <jasonr@gnu.org>
7544
7545 * w32term.c (syms_of_w32term): Doc fix for
7546 x-use-underline-position-properties.
7547
22749e9a
EZ
75482009-03-21 Eli Zaretskii <eliz@gnu.org>
7549
7550 * w32.c (getpwuid): Change argument type to unsigned.
7551 (struct w32_id): Change type of `rid' member to unsigned.
7552 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
7553 argument ID to unsigned. All callers changed.
7554 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
7555
e00553bf
EZ
75562009-03-20 Eli Zaretskii <eliz@gnu.org>
7557
7558 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
7559 negative, produce a float value.
7560
7561 * dired.c (make_uid, make_gid): New functions.
7562 (Ffile_attributes): Use them to avoid negative UID and GID.
7563
f761d6b6
JB
75642009-03-20 Juanma Barranquero <lekktu@gmail.com>
7565
7566 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
7567 (syms_of_keyboard) <command-hook-internal, input-method-function>:
7568 Fix typos in docstrings.
7569
d507f8d7
KH
75702009-03-19 Kenichi Handa <handa@m17n.org>
7571
7572 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
7573 changed, use font_load_for_lface to get a new font object.
7574 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
7575
7576 * frame.c (x_set_font): Handle the case that ARG is a cons.
7577
c68845e0
GM
75782009-03-19 Glenn Morris <rgm@gnu.org>
7579
7580 * fileio.c (Fsubstitute_in_file_name): Doc fix.
7581
bfa49dd1
CY
75822009-03-19 Chong Yidong <cyd@stupidchicken.com>
7583
7584 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
7585
8458d4c1
KH
75862009-03-19 Kenichi Handa <handa@m17n.org>
7587
7588 * charset.c (load_charset_map_from_file): When a mapfile can't be
7589 loaded, signal an error.
7590
78e7d1fe
EZ
75912009-03-18 Eli Zaretskii <eliz@gnu.org>
7592
7593 * dired.c (Ffile_attributes): Make sure UID and GID are always
7594 positive, even if the value is too large for a positive EMACS_INT.
7595 Doc fix.
7596
7597 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7598
5da9fdfa
YM
75992009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7600
7601 * xmenu.c (xdialog_show): Move Fredisplay call ...
7602 (Fx_popup_dialog): ... here.
7603
7519c40d
SM
76042009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7605
7606 * dired.c (file_name_completion): Disable the first optimization just
7607 installed, since it is not implemented correctly.
7608
2cd298e2
SM
76092009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7610
7611 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 7612 only if the entry can affect bestmatch.
2cd298e2
SM
7613 Stop the search early, as Ftry_completion already does.
7614
48d37adf
CY
76152009-03-17 Chong Yidong <cyd@stupidchicken.com>
7616
e10c9c93 7617 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 7618
9286b16a
CY
76192009-03-15 Chong Yidong <cyd@stupidchicken.com>
7620
7621 * keyboard.c (parse_menu_item): Don't display remappings as menu
7622 equivalent bindings (Bug#788).
7623
f7b146dc
JR
76242009-03-15 Jason Rumney <jasonr@gnu.org>
7625
7626 * w32term.h (WM_EMACS_PAINT): New message.
7627 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7628 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7629 before passing to lisp thread. (Bug#950)
7630
f761d6b6 76312009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 7632
d93f9575
CY
7633 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7634 variable as it was never reset.
7635 (ns_term_init): Remove initialization of Lisp-settable defaults
7636 and ns_expand_space.
7637 (-setPanelFromDefaultValues): Remove ns_expand_space.
7638 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7639 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
7640 i.e. no additional spacing, similar to Carbon port.
7641
d93f9575
CY
7642 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7643 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 7644
305018ec
JD
76452009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7646
7647 * sound.c (alsa_configure): Remove call to deprecated
7648 snd_pcm_sw_params_set_xfer_align.
7649
f761d6b6 76502009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
7651
7652 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7653 after clicking in a detached tool bar.
7654 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7655
46e722a9
SM
76562009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7657
348db3dd
SM
7658 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7659 int/Lisp_Object mixup).
46e722a9 7660
a3d16f39
KH
76612009-03-13 Kenichi Handa <handa@m17n.org>
7662
7663 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 7664 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
7665 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7666 (set_fontset_font): Change ARG to a vector. Handle range_list in
7667 ARG correctly.
7668 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 7669 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
7670 the above change.
7671 (fontset_from_font): Fix previous change.
fe24f56a 7672 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
7673 entry. If FONTSET is the default fontset, don't set the extra
7674 slot of the returning char-table.
7675
b066e6b6
JB
76762009-03-12 Juanma Barranquero <lekktu@gmail.com>
7677
7678 * nsfns.m (Fx_close_connection): Doc fix.
7679 (Fns_do_applescript): Reflow docstring.
7680 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7681 (Fx_display_pixel_width, Fx_display_pixel_height)
7682 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7683 Fix typos in docstrings.
7684 (Fns_set_alpha): Fix typos in error messages.
7685
d472514e 76862009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 7687
d472514e 7688 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
7689 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
7690 were used for such events.
7691
d472514e
JB
7692 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
7693 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 7694
d472514e 7695 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
7696 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
7697
fb930676
KH
76982009-03-11 Kenichi Handa <handa@m17n.org>
7699
ff85581a
KH
7700 * font.h (font_open_by_spec): Extern it.
7701
c50b7e98
KH
7702 * font.c (font_open_by_spec): New function.
7703 (font_open_by_name): Use font_open_by_spec.
7704
fb930676
KH
7705 * frame.c (x_set_font): When ARG is a font-object, don't alter the
7706 fontset of the frame.
7707
7708 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
7709 modify the default font of frames that use this fontset.
7710 (num_auto_fontsets): New variable.
7711 (fontset_from_font): Use num_auto_fontsets to decide a fontset
7712 name. Be sure to set FONTSET_ASCII to the correct font name.
7713 (update_auto_fontset_alist): New function.
7714
df4e8455
JB
77152009-03-11 Juanma Barranquero <lekktu@gmail.com>
7716
7717 * makefile.w32-in: Update dependencies.
7718
0a375797
AR
77192009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7720
7721 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
7722
61313fa3
SM
77232009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7724
7725 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
7726
b55103fb
CY
77272009-03-10 Chong Yidong <cyd@stupidchicken.com>
7728
7729 * lread.c (Feval_buffer): Doc fix.
7730
dde2559c
KH
77312009-03-09 Kenichi Handa <handa@m17n.org>
7732
7733 * charset.c (Qfile_name_handler_alist): Extern it.
7734 (load_charset_map_from_file): Temporarily bind
7735 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
7736
df4e8455 77372009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 7738
47f588bb
GM
7739 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
7740 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 7741
4ddf94bd
AR
77422009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7743
4c9bdfc2
AR
7744 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
7745 (x_set_window_size): Change back to calculated method of setting
7746 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
7747 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
7748 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
7749
fe41ae9e
AR
7750 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
7751
4c9bdfc2
AR
7752 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
7753 accelerator in parens under GNUstep.
7754
825d0875
KH
77552009-03-06 Kenichi Handa <handa@m17n.org>
7756
7757 These changes are to detect incorrect composition sequence without
f3b3be74 7758 looking ahead the source. (Bug#2370)
825d0875
KH
7759
7760 * coding.h: Include "composite.h".
7761 (enum compisition_state): New enum.
7762 (struct compisition_status): New struct.
7763 (struct iso_2022_spec): New member cmp_status.
7764 (struct emacs_mule_spec): New struct.
7765 (struct coding_system): New members ctext_extended_segment_len and
7766 embedded_utf_8. Change the union member
7767 spec.emacs_mule_full_support to spec.emacs_mule.
7768
7769 * coding.c (CODING_ISO_CMP_STATUS): New macro.
7770 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 7771 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
7772 (ADD_COMPOSITION_DATA): New arg nbytes.
7773 (emacs_mule_char): New arg cmp_status.
7774 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
7775 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
7776 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
7777 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
7778 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
7779 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
7780 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
7781 (EMACS_MULE_COMPOSITION_END): New macro.
7782 (emacs_mule_finish_composition): New function.
7783 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
7784 (decode_coding_emacs_mule): Avoid long looking ahead while
7785 handling composition.
7786 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
7787 (ENCODE_COMPOSITION_RULE): New macro.
7788 (finish_composition): New function.
7789 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
7790 (DECODE_COMPOSITION_START): New implementation.
7791 (DECODE_COMPOSITION_END): Likewise.
7792 (STORE_COMPOSITION_RULE): New macro.
7793 (decode_coding_iso_2022): Avoid long looking ahead while handling
7794 composition, CTEXT extended segment, and embedded UTF-8.
7795 (setup_coding_system): For a coding of type iso-2022, reset
7796 CODING_ISO_EXTSEGMENT_LEN (coding) and
7797 CODING_ISO_EMBEDDED_UTF_8 (coding).
7798 (get_translation): Delete arguments last_block, from_nchars,
7799 to_nchars. Callers changed.
7800 (produce_chars): Don't modify charbuf. Adjusted for the change of
7801 get_translation.
98a326f7 7802 (produce_composition): Adjust for the new annotation sequence.
825d0875 7803 (handle_composition_annotation): Likewise.
98a326f7 7804 (consume_chars): Adjust for the change of get_translation.
825d0875 7805
ccbc4452
AR
78062009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
7807
4ddf94bd 7808 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 7809
988a7ddb
KH
78102009-03-05 Kenichi Handa <handa@m17n.org>
7811
7812 * font.c (font_select_entity): New function.
7813 (font_find_for_lface): Use font_select_entity to select a font.
7814
7815 * fontset.c (fontset_find_font): If a font found without
a8a3728b 7816 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
7817 font with C restriction.
7818
98a326f7 78192009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 7820
be1bce46 7821 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 7822
10ea2b82
JR
78232009-03-04 Jason Rumney <jasonr@gnu.org>
7824
2c93b248 7825 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 7826 characters that have already been read. (Bug#2569)
2c93b248 7827
10ea2b82
JR
7828 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
7829 Log an error message if check_image_size failed.
7830 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 7831 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 7832
71a0c011
EZ
78332009-03-02 Eli Zaretskii <eliz@gnu.org>
7834
7835 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
7836 when decoding process output.
7837
2f63bba8
RS
78382009-03-01 Richard M Stallman <rms@gnu.org>
7839
7840 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
7841
7842 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
7843
0a9564cb
EZ
78442009-02-28 Eli Zaretskii <eliz@gnu.org>
7845
7846 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
7847 (decode_coding_emacs_mule, decode_coding_iso_2022)
7848 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7849 (decode_coding_raw_text, decode_coding_charset)
7850 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7851 Honor inhibit-eol-conversion. (Bug #2186)
7852
449148b3
JR
78532009-02-28 Jason Rumney <jasonr@gnu.org>
7854
7855 * coding.c (detect_coding_charset): If not checking latin extra,
7856 fail on characters between 0x80 and 0xA0. (Bug#2354)
7857
a4aee864
EZ
78582009-02-28 Eli Zaretskii <eliz@gnu.org>
7859
7860 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 7861 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 7862
d88bee5a
GM
78632009-02-27 Glenn Morris <rgm@gnu.org>
7864
7865 * callint.c (Finteractive): Doc fix.
7866
a808f22d
KH
78672009-02-27 Kenichi Handa <handa@m17n.org>
7868
7869 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7870
caf8d60c
CY
78712009-02-27 Chong Yidong <cyd@stupidchicken.com>
7872
7873 * font.c (font_style_to_value): Set value for unknown symbols to
7874 100 instead of 255.
b61137ea
CY
7875 (weight_table, slant_table, width_table): Treat "unspecified" as
7876 the default value.
caf8d60c 7877
1a0de25c
JB
78782009-02-26 Juanma Barranquero <lekktu@gmail.com>
7879
7880 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7881
8fc45744
JB
78822009-02-25 Juanma Barranquero <lekktu@gmail.com>
7883
107bd7d1
JB
7884 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7885 error as soon as a recursive load is detected.
8fc45744 7886
f097e223
AR
78872009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7888
7889 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7890 before caching.
7891
8810a12f
KH
78922009-02-24 Kenichi Handa <handa@m17n.org>
7893
7894 * fontset.c (fontset_find_font): Fix the condition for checking
7895 unavailable font.
7896
2c7d1565
GM
78972009-02-24 Glenn Morris <rgm@gnu.org>
7898
7899 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7900 whitespace that confuses documentation.
7901
a20878b6
MB
79022009-02-23 Miles Bader <miles@gnu.org>
7903
7904 * process.c (Flist_system_processes, Fprocess_attributes)
7905 (syms_of_process): Rename `system-process-attributes' to
7906 `process-attributes'.
7907
b3b58c01
AS
79082009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7909
1b3b981b
AS
7910 * coding.h (struct coding_system): Make safe_charsets a pointer to
7911 unsigned char.
7912 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7913 being 255.
7914 (SAFE_CHARSET_P): Likewise.
7915 (setup_iso_safe_charsets): Properly setup safe_charsets.
7916 (Fdefine_coding_system_internal): Likewise.
7917 (setup_coding_system): Likewise. Remove unneeded casts.
7918 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7919 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7920 unneeded casts.
7921
b3b58c01
AS
7922 * insdel.c (del_range_2): Don't modify gap contents when called
7923 from decode_coding_object. (Bug#1809)
7924
0b6f228c
CY
79252009-02-21 Chong Yidong <cyd@stupidchicken.com>
7926
7927 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7928 Qfont_object.
7929 (Ftype_of): Recognize font objects.
7930
7931 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7932
7933 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7934 moved to data.c.
7935
52f8870b
AR
79362009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7937
7938 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7939 async_iconified. Based on a patch by Christian Lynbech
7940 <christian.lynbech@tieto.com>.
7941 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7942
7087d5e9
GM
79432009-02-20 Glenn Morris <rgm@gnu.org>
7944
7945 * syntax.c (Fskip_chars_forward): Fix doc typo.
7946
41d2ceef
CY
79472009-02-20 Chong Yidong <cyd@stupidchicken.com>
7948
7949 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7950
1a3b7ca6
CY
79512009-02-19 Chong Yidong <cyd@stupidchicken.com>
7952
7953 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7954
73cce38d
KH
79552009-02-19 Kenichi Handa <handa@m17n.org>
7956
7957 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 7958 Don't overflow coding->carryover. (Bug#2370)
73cce38d 7959
a51092ee
DN
79602009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7961
7962 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7963
c423ecca
KH
79642009-02-18 Kenichi Handa <handa@m17n.org>
7965
7966 * font.c (font_check_otf_features): Fix handling of `nil' element.
7967 (Ffont_spec): Describe :lang and :otf in the docstring.
7968
4c1958f4
AS
79692009-02-16 Andreas Schwab <schwab@suse.de>
7970
7971 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7972 string.
7973
5704f39a
KH
79742009-02-16 Kenichi Handa <handa@m17n.org>
7975
7976 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 7977 (Bug#1723)
5704f39a 7978
8f0085aa
CY
79792009-02-14 Chong Yidong <cyd@stupidchicken.com>
7980
a057d86a 7981 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
7982
7983 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7984 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7985
aff01dd9
EZ
79862009-02-14 Eli Zaretskii <eliz@gnu.org>
7987
7988 * msdos.c (MAX_SCREEN_BUF): New macro.
7989 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7990 Encode the entire run of glyphs sharing the same face, instead of
7991 doing that one glyph at a time (fixes a bug with displaying
7992 double-size characters).
7993
ba301db3
AR
79942009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7995
7996 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7997
7998 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7999 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 8000 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
8001
8002 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 8003 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 8004
51d861de
SM
80052009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8006
ac146f82 8007 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
8008 invisible areas.
8009
7fed8996
JR
80102009-02-12 Jason Rumney <jasonr@gnu.org>
8011
631ea4fb
JR
8012 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8013 (add_font_entity_to_list): Call check_face_name even when family
8014 is unspecified.
8015
cb4a3e42
JR
8016 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8017 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 8018 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 8019
7fed8996 8020 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 8021 raster fonts. (Bug#2219)
7fed8996 8022
895416e3
KH
80232009-02-12 Kenichi Handa <handa@m17n.org>
8024
8025 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8026 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8027 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 8028 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8029 (find_automatic_composition): While looking forward and backward,
8030 check static composition. Fix where to stop looking forward.
8031 (composition_adjust_point): Fix checking of static composition.
8032 (Fcomposition_get_gstring): Pay attention to
1dacf998 8033 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8034
8035 * lisp.h (fast_looking_at): Extern it.
8036
8037 * search.c (fast_looking_at): New function.
8038
51d861de 8039 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8040 <struct glyph>.u.cmp.to.
8041 (append_composite_glyph): Likewise.
8042
51d861de 8043 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8044 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8045 composition.
51d861de 8046 (append_composite_glyph): Adjust for the change of
895416e3
KH
8047 <strcut glyph>.u.cmp.to.
8048
8510724d
JB
80492009-02-11 Juanma Barranquero <lekktu@gmail.com>
8050
8051 * casetab.c (init_casetab_once):
8052 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8053 * font.c (font_update_lface):
8054 * fontset.c (Fnew_fontset):
8055 * ftfont.c (ftfont_drive_otf):
8056 * xfont.c (xfont_open):
8057 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8058
294fa707
SM
80592009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8060
8061 * fileio.c (Fwrite_region): !NILP -> CONSP.
8062
b5bfebec
AS
80632009-02-10 Andreas Schwab <schwab@suse.de>
8064
8065 * process.c (send_process): Properly relocate pointer into data
adab88bd 8066 when using encoded data. (Bug#2272)
b5bfebec 8067
cb84a2be
KH
80682009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8069
8070 * coding.c (detect_coding_charset): Fix previous change.
8071
89e09428
JR
80722009-02-08 Jason Rumney <jasonr@gnu.org>
8073
8074 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8075 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8076
4470a277
AS
80772009-02-07 Andreas Schwab <schwab@suse.de>
8078
8079 * unexelf.c (unexec): Fix error message.
8080
3175b12a
AR
80812009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8082
8083 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8084 when modal window is active. (Bug #2152)
3175b12a
AR
8085 (applicationShouldTerminate:): Remove now-unneeded while loop
8086 around NSRunAlertPanel.
8087
8088 * nsmenu.m (popupSession): New file-global variable.
8089 (pop_down_menu): End the popupSession before closing dialog.
8090 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8091 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8092 don't query NSApp for events (just sleep instead).
8093
8434d0b8
EZ
80942009-02-07 Eli Zaretskii <eliz@gnu.org>
8095
51d861de
SM
8096 * coding.c (syms_of_coding) <translation-table-for-input>:
8097 Modify doc string to discourage use for character code unification.
8434d0b8 8098
aa82edfd
CY
80992009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8100
8101 * atimer.c (run_timers): Update pending_atimers.
8102
2d283c7c
CY
81032009-02-06 Chong Yidong <cyd@stupidchicken.com>
8104
eb306cab
CY
8105 * image.c (svg_load_image): Fix last change.
8106
2d283c7c
CY
8107 * xfns.c (Fx_create_frame): Signal an error if no font is
8108 found (Bug#2147).
8109
4d8e170e
JB
81102009-02-05 Juanma Barranquero <lekktu@gmail.com>
8111
8112 * character.c (syms_of_character) <script-representative-chars>:
8113 Fix typo in docstring.
8114
c96169a0
AR
81152009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8116
8117 * nsmenu.m (pop_down_menu): New function.
8118 (ns_popup_dialog): Call it on unwind.
8119 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8120 call timer_check() (Bug#2154).
8121 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8122 handling_signal is set.
8123 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8124
31fd7c5c 8125 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8126
8127 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8128
8129 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8130
51d861de
SM
8131 * keyboard.c (poll_for_input_1, handle_async_input):
8132 Set handling_signal under HAVE_NS.
c96169a0 8133
aacd8ba1
GM
81342009-02-04 Glenn Morris <rgm@gnu.org>
8135
8136 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8137
4cb75c4b
KH
81382009-02-04 Kenichi Handa <handa@m17n.org>
8139
8140 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8141
8142 * charset.c (Fchar_charset): New optional arg restriction.
8143
8144 * coding.h (coding_system_charset_list): Extern it.
8145
8146 * coding.c (coding_system_charset_list): New function.
8147
8148 * composite.c: Include coding.h and termhooks.h.
8149 (composition_gstring_p): Fix for the terminal case.
8150 (composition_gstring_width): Likewise.
8151 (fill_gstring_body): Likewise.
8152 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8153 the frame.
8154 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8155 is within a composition.
867d4bb3 8156 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8157
8158 * term.c (encode_terminal_code): Fix handling of composition.
8159 (produce_composite_glyph): For static composition, get pixel_width
8160 from struct composition.
8161
826ba17e
AS
81622009-02-02 Andreas Schwab <schwab@suse.de>
8163
8164 * unexelf.c (unexec): Handle unaligned bss offset.
8165
8ad093db
AR
81662009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8167
8168 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8169 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8170
8ad093db
AR
8171 * keyboard.c (handle_interrupt): Don't call
8172 quit_throw_to_read_char() under NS.
d0a76a6e 8173
8ad093db
AR
8174 * blockinput.h: Remove NS-specific code.
8175
4d18a7a2
DN
81762009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8177
db878925
DN
8178 * dispnew.c (window_change_signal): Don't try to get the size of a
8179 suspended tty frame.
8180 * term.c (Fresume_tty): Resize if the size has changed while the
8181 tty was suspended.
8182
4d18a7a2
DN
8183 * alloc.c (mark_stack): Properly conditionalize previous change.
8184
8984df7c
JB
81852009-01-30 Juanma Barranquero <lekktu@gmail.com>
8186
8187 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8188 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8189 Remove; this code is not used on Windows.
8190
75f4f1ac
EZ
81912009-01-30 Eli Zaretskii <eliz@gnu.org>
8192
8193 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8194 EOLs that also has stray ^M characters.
8195
07a1e794
JB
81962009-01-30 Juanma Barranquero <lekktu@gmail.com>
8197
8198 * atimer.c (run_timers, alarm_signal_handler):
8199 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8200 * w32inevt.c (w32_console_read_socket):
8201 * w32term.c (w32_read_socket):
8202 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8203
a8b11cc9
CY
82042009-01-30 Chong Yidong <cyd@stupidchicken.com>
8205
8206 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8207 Initialize it as a relative filename pattern.
8208 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8209 (Fcall_process_region): Simplify temp file creation using
8210 temporary-file-directory.
8211
c279587b
EZ
82122009-01-29 Eli Zaretskii <eliz@gnu.org>
8213
8214 * msdos.c: Rename pending_signals to msdos_pending_signals.
8215 (sig_suspender, sigprocmask): Adjust.
8216
a8fe3242
CY
82172009-01-29 Chong Yidong <cyd@stupidchicken.com>
8218
8219 * keyboard.c (pending_signals): New var.
8220 (poll_for_input, input_available_signal, init_keyboard): Set it.
8221 (process_pending_signals): New function.
8222
8223 * lisp.h (QUIT): Check pending_signals instead of
8224 interrupt_input_pending. Use process_pending_signals.
8225
51d861de 8226 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8227
51d861de 8228 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8229
8230 * sysdep.c (emacs_write): Use process_pending_signals.
8231
8232 * xterm.c (XTread_socket): Update pending_signals.
8233
8234 * w32term.c (w32_read_socket): Update pending_signals.
8235
8236 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8237
6570a1c4
KH
82382009-01-29 Kenichi Handa <handa@m17n.org>
8239
8240 * xftfont.c (xftfont_has_char): New function.
8241 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8242
d72a4afa
AR
82432009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8244
8245 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8246 under GNUstep.
8247 (ns_query_color): New declaration.
8248
8249 * nsterm.m (ns_confirm_quit): New variable.
8250 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8251 (EmacsApp-applicationShouldTerminate:): Use it.
8252 (EmacsPrefsController): Let user set it.
8253 (ns_query_color): New function.
8254 (ns_defined_color): Use it.
8255 (ns_initialize): Drop.
8256 (ns_term_init): Add two lines from ns_initialize(), and set
8257 input_interrupt_mode to nil.
8258
8259 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8260 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8261
9fe78804
KH
82622009-01-28 Kenichi Handa <handa@m17n.org>
8263
8264 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8265 (fontset_get_font_group): Remember that no font-group is specified
8266 for C.
9fe78804 8267
fa57de36
CY
82682009-01-27 Chong Yidong <cyd@stupidchicken.com>
8269
930600e9
CY
8270 * fns.c (concat): Check for string overflow (bug#1787).
8271
fa57de36
CY
8272 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8273 Quadruple undo limits (bug#1501).
8274
7179ce7b
KH
82752009-01-27 Kenichi Handa <handa@m17n.org>
8276
8277 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8278 directly use GT_Get_Char_index.
8279
8280 * xftfont.c (struct xftfont_info): New member `index'.
8281
8282 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8283 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8284
5be8fcc0
CY
82852009-01-26 Kenichi Handa <handa@m17n.org>
8286
8287 * fontset.c (fontset_find_font): Fix handling of non-cons return
8288 value of fontset_get_font_group.
8289 (fontset_font): Revert last change.
8290
19ae3e61
JR
82912009-01-26 Jason Rumney <jasonr@gnu.org>
8292
8293 * w32font.c (w32font_list_internal): Return quickly if registry is
8294 unknown. Simplify final return.
8295 (add_font_entity_to_list): Break complex logic down into more
8296 manageable chunks. Move unknown registry check to
8297 w32font_list_internal.
8298
8612b71a
AR
82992009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8300
8301 Changes to remove Feval calls from GUI under NS.
8302
d8038940
JB
8303 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8304 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8305 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8306
8307 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8308 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8309 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8310 instead of NON_ASCII_KEYSTROKE_EVENT.
8311 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8312 (EmacsApp-applicationShouldTerminate:): Query user.
8313 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8314 instead of Feval.
8315
8316 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8317
8318 * keyboard.c (kbd_buffer_get_event): Check for it.
8319 (keys_of_keyboard): Define lispy keys for
8320 ns-put/unput-working-text.
8321
8322 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8323 versions.
8324 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8325
6288ae55
CY
83262009-01-25 Chong Yidong <cyd@stupidchicken.com>
8327
8328 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8329 setting current_buffer directly. (Bug#2044)
6288ae55 8330
289e7f8f
CY
83312009-01-24 Chong Yidong <cyd@stupidchicken.com>
8332
5ce87308 8333 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8334 any work. (Bug#1952, bug#1990).
5ce87308 8335
64cc3cf6 8336 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8337
b3243e6f
AR
83382009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8339
8340 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8341 (ns_no_defaults): New declaration.
8342 (main): Use it.
e0d2e69a 8343
d900b2af 8344 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8345
d900b2af 8346 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8347
d900b2af
AR
8348 * nsterm.m (ns_no_defaults): New variable.
8349 (ns_initialize): Don't read defaults when ns_no_defaults.
8350 (EmacsView-readSelectionFromPasteboard:)
8351 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8352 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8353 (ns_dumpglyphs_stretch): New function.
8354 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8355 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8356
e0d2e69a
AR
8357 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8358
3ac71f5d
CY
83592009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8360
8361 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8362 call for Sparc64.
8363
3fe53a83
AR
83642009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8365
8366 * nsfns.m:
8367 * nsgui.h:
8368 * nsmenu.m:
8369 * nsselect.m:
8370 * nsterm.h:
8371 * nsterm.m: Remove '23' comments that indicated code added during
8372 update from emacs-20 -> emacs-23.
8373
10f87c6f 83742009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
8375
8376 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 8377 ns_alternate_modifier. (Bug#1217)
a3b53a85 8378
c7cef62d
AR
8379 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8380 Display all shortcuts, including those w/o super modifier.
8381
575fb8bd
AR
8382 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8383
918b848b
CY
83842009-01-22 Chong Yidong <cyd@stupidchicken.com>
8385
8386 * fileio.c (Vwrite_region_post_annotation_function)
8387 (Vwrite_region_annotation_buffers): New vars.
8388 (build_annotations_unwind): Just reset
8389 Vwrite_region_annotation_buffers.
8390 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8391 Call write-region-post-annotation-function.
8392 (build_annotations): Add to Vwrite_region_annotation_buffers if
8393 buffer changes.
8394
a39e2539
AR
83952009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8396
8397 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8398 Tiger.
51d861de
SM
8399 * nsfns.m (ns_do_applescript):
8400 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8401
35ed44db
AR
84022009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8403
8404 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8405
cbe0b5bf
AR
84062009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8407
8408 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8409
6049d3a0
AR
8410 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8411
8412 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8413 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8414 handle Ctrl-tab. (Bug#1841)
8415 (ns_get_color): Use unsigned long long for scanned hex string value.
8416 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8417 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8418 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8419 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8420 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8421 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8422 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8423
d3810c21 8424 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8425 DPI. (Bug#1316)
d3810c21
AR
8426 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8427 values in onTiger section.
4c7077c3 8428
e301e634
CY
84292009-01-19 Chong Yidong <cyd@stupidchicken.com>
8430
7f82490b
CY
8431 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8432 Check return value of font_spec_from_name.
64cc3cf6 8433 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8434
8435 * font.c (font_spec_from_name): Return Qnil if font name could not
8436 be parsed.
8437 (font_parse_name): Treat a `?' character as part of an XLFD.
8438
e301e634
CY
8439 * fns.c (Fsubstring): Doc fix.
8440
1c0db158
KH
84412009-01-19 Kenichi Handa <handa@m17n.org>
8442
51d861de 8443 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
8444 (ftfont_list): Likewise.
8445
acf20901
JB
84462009-01-18 Juanma Barranquero <lekktu@gmail.com>
8447
fff4e459
JB
8448 * dbusbind.c (Fdbus_register_signal):
8449 * process.c (conv_sockaddr_to_lisp):
8450 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8451
acf20901
JB
8452 * callproc.c (Fgetenv_internal): Doc fix.
8453
e7abcdfb
CY
84542009-01-16 Chong Yidong <cyd@stupidchicken.com>
8455
8456 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8457 it is not even used.
8458
b60861e6
GM
84592009-01-16 Glenn Morris <rgm@gnu.org>
8460
8461 * font.c (Ffont_variation_glyphs): Silence compiler.
8462
8db52afe
JB
84632009-01-15 Juanma Barranquero <lekktu@gmail.com>
8464
8465 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8466 Reported by David Robinow <drobinow@gmail.com>.
8467
4cddb209
KH
84682009-01-15 Kenichi Handa <handa@m17n.org>
8469
51d861de 8470 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 8471
f247f67b
JR
84722009-01-14 Jason Rumney <jasonr@gnu.org>
8473
8474 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 8475 never a fontset. (Bug#1562)
f247f67b 8476
f56a4450
KH
84772009-01-14 Kenichi Handa <handa@m17n.org>
8478
8479 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 8480 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 8481
4e99855e
CY
84822009-01-13 Chong Yidong <cyd@stupidchicken.com>
8483
8484 * font.c (font_clear_prop): If clearing the family, clear the font
8485 width index too.
8486
fff4e459 8487 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 8488
24f01470
JB
84892009-01-12 Juanma Barranquero <lekktu@gmail.com>
8490
8491 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8492 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8493 functions, use sizeof.
8494
a41240a3
MR
84952009-01-12 Martin Rudalics <rudalics@gmx.at>
8496
8497 * keyboard.c (read_char): Fix case where last_nonmenu_event
8498 returned a bad value with submenus. (Bug#447)
8499
944636b8
CY
85002009-01-12 Chong Yidong <cyd@stupidchicken.com>
8501
8502 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8503 family, clear the font width index too.
8504
0dad7c6f
JR
85052009-01-11 Jason Rumney <jasonr@gnu.org>
8506
8507 * keyboard.c (cmd_error_internal): Exit when errors occur before
8508 frame creation and not in daemon mode. (Bug#1836)
8509
7c2363af
CY
85102009-01-10 Chong Yidong <cyd@stupidchicken.com>
8511
8512 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8513 of a display vector, backtrack.
8514 (try_window_reusing_current_matrix): Check glyph type before
8515 referencing charpos member.
8516
97b1b294
EZ
85172009-01-10 Eli Zaretskii <eliz@gnu.org>
8518
8519 Fix Bug #876:
8520
8521 * coding.c (inhibit_null_byte_detection): New variable.
8522 (detect_coding, detect_coding_system): Don't pay attention to null
8523 bytes if inhibit_null_byte_detection is non-zero.
51d861de 8524 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
8525 <inhibit-iso-escape-detection>: Doc fix.
8526
4624b6e3
JR
85272009-01-09 Jason Rumney <jasonr@gnu.org>
8528
8529 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 8530 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
8531 Only report Unicode Plane 2 fonts as unicode-sip.
8532
323b840c
CY
85332009-01-09 Chong Yidong <cyd@stupidchicken.com>
8534
51d861de
SM
8535 * xfaces.c (Fx_font_family_list): Delete function.
8536 Move compatibility version to faces.el.
323b840c 8537
51d861de 8538 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 8539
eba7400d
MR
85402009-01-09 Martin Rudalics <rudalics@gmx.at>
8541
8542 * frame.c (x_set_frame_parameters): Remember requested value for
8543 fullscreen before it's reset by the parameter handler.
8544
4b09796d
GM
85452009-01-09 Glenn Morris <rgm@gnu.org>
8546
8547 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 8548 (last_command_event): ... and update all users.
4b09796d
GM
8549 (last_input_char): For clarity, rename to...
8550 (last_input_event): ... and update all users.
8551 (last-command-char, last-input-char): Move to subr.el as aliases.
8552 * cmds.c, commands.h: Update for last_command_char rename.
8553
14ccea62
CY
85542009-01-08 Chong Yidong <cyd@stupidchicken.com>
8555
51d861de 8556 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 8557
5f004711
JR
85582009-01-08 Jason Rumney <jasonr@gnu.org>
8559
8560 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
8561 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
8562 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
8563 Don't declare.
fff4e459 8564 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
8565 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
8566
b71f6f73
KH
85672009-01-07 Kenichi Handa <handa@m17n.org>
8568
50b06221 8569 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 8570 remember the coding system used for decoding in
50b06221
KH
8571 coding_system (Bug#1039).
8572
b71f6f73 8573 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 8574 breaking the loop. (Bug#870)
b71f6f73
KH
8575 (decode_coding_utf_16, decode_coding_emacs_mule)
8576 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8577 (decode_coding_charset): Likewise.
8578
56f668f7
MR
85792009-01-05 Martin Rudalics <rudalics@gmx.at>
8580
8581 * frame.c (x_set_frame_parameters): Make sure height (width) get
8582 applied when fullwidth (fullheight) is set. (Bug#1522)
8583
5da9424d
JB
85842009-01-04 Juanma Barranquero <lekktu@gmail.com>
8585
8586 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8587 (utc_base): Declare as ULONGLONG, not long double.
8588 (convert_time_raw): Delete.
8589 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8590 (initialize_utc_base): New function.
8591 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8592 (convert_from_time_t): Use initialize_utc_base; compute result with
8593 64-bit arithmetic.
8594 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8595
c4605e09
EZ
85962009-01-03 Eli Zaretskii <eliz@gnu.org>
8597
9acef61c 8598 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
8599 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8600 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8601 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8602 [!subprocesses]: Define.
8603 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8604 (Flist_system_processes, Fsystem_process_attributes)
8605 [!subprocesses]: Call list_system_processes and
8606 system_process_attributes instead of returning Qnil.
8607
9acef61c
JB
8608 * dosfns.c (system_process_attributes, list_system_processes):
8609 New functions.
c4605e09
EZ
8610
8611 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8612
8613 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8614 Don't use the default (no-op) implementation.
8615
8b7d0a16
JR
86162009-01-03 Jason Rumney <jasonr@gnu.org>
8617
a6d46bc1
JR
8618 * keyboard.c (parse_modifiers_uncached): Wheel events are
8619 clicks (bug#687).
8620
8b7d0a16
JR
8621 * w32term.c (x_query_colors, x_query_color): New functions.
8622
8623 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8624 (svg_load_image): Cast returned pointers from dynamically loaded
8625 functions. Eliminate W32 specific code.
8626
bfe11752
DN
86272009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8628
89e2438a
DN
8629 * nsfns.m (x_set_foreground_color, x_set_background_color)
8630 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8631 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8632 x_ prefix instead of ns_. Update references.
8633 (syms_of_nsfns): Add a FIXME comment.
8634
8635 * nsterm.m (x_set_cursor_type): New prototype.
8636 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8637
bfe11752
DN
8638 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8639 for Solaris instead of incorrectly providing Qutime and Qcutime.
8640
031da700
EZ
86412009-01-02 Eli Zaretskii <eliz@gnu.org>
8642
8643 * w32.c (process_times): Compute sum of utime and stime.
8644 (system_process_attributes): Add Qtime to the alist.
8645
8646 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8647 and add them to the alist.
8648
8649 * process.c (top level) <Qtime, Qctime>: New variables.
8650 (syms_of_process): staticpro them.
8651 (Fsystem_process_attributes): Add their documentation to the doc
8652 string.
8653
8654 * process.h: Declare Qtime and Qctime.
8655
df23bf08
JR
86562009-01-02 Jason Rumney <jasonr@gnu.org>
8657
9acef61c 8658 * image.c (Qgobject): New symbol.
df23bf08
JR
8659 (syms_of_image): Initialize it.
8660 (init_svg_functions): Load some functions from gobject library.
8661
5bbdf7aa
DN
86622009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8663
8664 * frame.c (make_terminal_frame): Remove redundant code and useless
8665 block.
8666
63136da6
AS
86672009-01-01 Andreas Schwab <schwab@suse.de>
8668
8669 * process.c (conv_sockaddr_to_lisp): Add workaround for
8670 getsockname bug on BSD.
8671
9ef69046
CY
86722009-01-01 Chong Yidong <cyd@stupidchicken.com>
8673
d6fafbe0
CY
8674 * xfns.c (x_create_tip_frame): Set border width of the X window.
8675
51d861de 8676 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 8677
f9c34147
JR
86782009-01-01 Jason Rumney <jasonr@gnu.org>
8679
9acef61c 8680 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
8681 Don't block input, as per earlier xterm.c changes.
8682
f5497e45
AR
86832008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8684
8685 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8686 (ns_appkit_version_int): New function.
8687 (x-server-version): Use ns_appkit_version_int and follow 21+
8688 convention of returning 3 integers.
8689
c19cab20
KH
86902008-12-30 Kenichi Handa <handa@m17n.org>
8691
8692 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
8693 (CHAR_SURROGATE_PAIR_P): New macro.
8694
8695 * font.h (struct font_driver): New member get_variation_glyphs.
8696
9acef61c 8697 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
8698 (Ffont_variation_glyphs): New function.
8699 (syms_of_font): Defsubr it.
8700
8701 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
8702 ftfont_variation_glyphs.
8703 (setup_otf_gstring): New function.
8704 (ftfont_drive_otf): Use it.
8705 (ftfont_shape_by_flt): Handle variation selector.
8706 (ftfont_variation_glyphs): New function.
8707
28cd591f
MR
87082008-12-30 Martin Rudalics <rudalics@gmx.at>
8709
8710 * frame.c (Vemacs_iconified): Remove.
8711
7f714baf
JR
87122008-12-30 Jason Rumney <jasonr@gnu.org>
8713
8714 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 8715 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 8716
9d2d22ab
CY
87172008-12-30 Chong Yidong <cyd@stupidchicken.com>
8718
8719 * indent.c (Fvertical_motion): Don't advance iterator if we have
8720 reseated to the desired position.
8721
8722 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
8723 checking for pos match.
8724
545312c2
KH
87252008-12-30 Kenichi Handa <handa@m17n.org>
8726
1ede3eb6
KH
8727 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
8728 just get the low 8-bit of the code.
8729
545312c2
KH
8730 * font.c (font_intern_prop): Validate str as multibyte.
8731
bd7bbf29
DN
87322008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8733
31e0750e
DN
8734 * dispextern.h (struct face): Move lface and hash from the middle
8735 of bitfields.
8736
bd7bbf29
DN
8737 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
8738
b5672e7c
DN
87392008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8740
8741 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
8742 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
8743 instead of intervals.h.
8744
d704470f
AS
87452008-12-26 Andreas Schwab <schwab@suse.de>
8746
8747 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
8748 cons.
8749
54b33868
MR
87502008-12-26 Martin Rudalics <rudalics@gmx.at>
8751
8752 * textprop.c (Qminibuffer_prompt): New variable.
8753 (syms_of_textprop): Initialize it.
8754 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
8755 in minibuffer-prompt face. (Bug#1662)
8756
40b615d6
JR
87572008-12-25 Jason Rumney <jasonr@gnu.org>
8758
8759 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
8760
baae5c2d
JR
87612008-12-24 Jason Rumney <jasonr@gnu.org>
8762
8763 * ralloc.c (r_alloc_reset_variable): New function.
8764
8765 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 8766 record of what points where. (Bug#716)
baae5c2d 8767
a9051c88
DN
87682008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
8769
8770 * minibuf.c (read_minibuf): Follow the non-interactive case when
8771 running as a daemon, before detaching.
8772
8b146312
AS
87732008-12-22 Andreas Schwab <schwab@suse.de>
8774
8775 * buffer.c (init_buffer): Use realloc instead of xrealloc.
8776 * gtkutil.c (free_widget_value): Use xfree instead of free.
8777
56f2de10
MR
87782008-12-22 Martin Rudalics <rudalics@gmx.at>
8779
8780 * frame.c (delete_frame): New function derived from
8781 Fdelete_frame to handle Qnoelisp value for FORCE argument.
8782 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
8783 (Fdelete_frame): Call delete_frame. Remove line from doc-string
8784 saying that FORCE non-nil doesn't run `delete-frame-functions'.
8785 * frame.h: Extern delete_frame.
8786 * window.c (window_loop):
8787 * terminal.c (delete_terminal):
8788 * xterm.c (x_connection_closed):
8789 * xfns.c (Fx_hide_tip):
9acef61c 8790 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 8791
1fc200d6
JR
87922008-12-21 Jason Rumney <jasonr@gnu.org>
8793
8794 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
8795 when character maps to .notdef character.
8796
5e252df2
SM
87972008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
8798
8799 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
8800
99b72cc4
JR
88012008-12-20 Jason Rumney <jasonr@gnu.org>
8802
8803 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 8804 a graphical frame on Windows. (Bug#1325)
99b72cc4 8805
acc49a52
JD
88062008-12-20 Jan Djärv <jan.h.d@swipnet.se>
8807
8808 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
8809
6ea15123
CY
88102008-12-20 Chong Yidong <cyd@stupidchicken.com>
8811
8812 * minibuf.c (Fread_buffer): Doc fix.
8813
b2dab6c8
JR
88142008-12-20 Jason Rumney <jasonr@gnu.org>
8815
54ea0c87 8816 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 8817 server name in UNC paths. (Bug#719)
54ea0c87 8818
b2dab6c8 8819 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 8820 charbuf. (Bug#1035)
b2dab6c8 8821
6d1921be
DN
88222008-12-19 Daniel Engeler <engeler@gmail.com>
8823
8824 * sysdep.c (serial_configure): Fix typo.
8825
53934c98
DN
88262008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8827
8828 * sysdep.c: Include alloca.h.
f4f634e8
DN
8829 (system_process_attributes): Add implementation for Solaris.
8830
8831 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 8832
06e111a6
DN
88332008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8834
8835 Reorganize implementation of Flist_system_processes and
8836 Fsystem_process_attributes. No functional changes.
8837 * process.c: Don't #include pwd.h, grp.h and limits.h.
8838 (Flist_system_processes): Just call list_system_processes.
8839 (Fsystem_process_attributes): Just call system_process_attributes.
8840 (procfs_list_system_processes, time_from_jiffies)
8841 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8842 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
8843
8844 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
8845 (list_system_processes): Rename from
8846 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
8847 Provide a do nothing implementation.
8848 (system_process_attributes): Rename from
8849 procfs_list_system_processes.
8850 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 8851 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
8852
8853 * w32.c (list_system_processes): Rename from
8854 w32_list_system_processes.
8855 (system_process_attributes): Rename from
8856 w32_system_process_attributes.
8857
8858 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8859
8860 * process.h (w32_list_system_processes)
8861 (w32_system_process_attributes): Remove.
362654a6
JB
8862 (list_system_processes, system_process_attributes):
8863 New prototypes.
06e111a6 8864
6a705b23
KH
88652008-12-19 Kenichi Handa <handa@m17n.org>
8866
8867 * xfont.c (xfont_decode_coding_xlfd): New function.
8868 (xfont_encode_coding_xlfd): New function.
8869 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8870 (xfont_list): Decode and encode XLFD by iso-8859-1.
8871 (xfont_match): Likewise.
8872 (xfont_list_family): Likewise.
8873 (xfont_open): Likewise.
8874
d66c0241 8875 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
8876 names are utf-8.
8877
d66c0241 8878 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
8879 names are utf-8.
8880
5a130941
JD
88812008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8882
8883 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8884 changed.
bfd20325
JD
8885 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8886 clicked on a detached tool bar button.
5a130941 8887
fd95644b
DN
88882008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8889
8890 * emacs.c (main): Print and error and exit when no data is read
8891 from the pipe.
8892
e6eee6ae
JR
88932008-12-17 Jason Rumney <jasonr@gnu.org>
8894
8895 * w32font.c (w32font_has_char): Always return -1.
8896
a35dd56b
KH
88972008-12-16 Kenichi Handa <handa@m17n.org>
8898
8899 * font.c (font_open_entity): Fix previous change.
8900
0e3635c2
DN
89012008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8902
8903 * process.c: Include <limits.h>.
8904
d4835507 89052008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
8906
8907 * font.c (font_update_drivers): Fix mistake in reconstructing the
8908 driver list.
8909
89102008-12-16 Chong Yidong <cyd@stupidchicken.com>
8911
8912 * font.c (font_clear_cache): Fix format of font cache data.
8913
e2cbc401
CY
89142008-12-15 Chong Yidong <cyd@stupidchicken.com>
8915
8916 * xftfont.c (xftfont_open): Free Xft font pattern if
8917 XftFontOpenPattern fails.
8918
8919 * xterm.c (x_free_frame_resources): Remove extraneous call to
8920 free_frame_faces.
8921
b131d535
CY
89222008-12-13 Chong Yidong <cyd@stupidchicken.com>
8923
8924 * xterm.c (x_delete_display): Move xim_close_dpy call to
8925 x_delete_terminal.
8926 (x_delete_terminal): Call xim_close_dpy.
8927
e6df5336
JR
89282008-12-13 Jason Rumney <jasonr@gnu.org>
8929
8930 * w32font.c (intern_font_name): New function.
8931 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8932 (w32font_open_internal, Fx_select_font): Decode font name.
8933 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8934
8935 * w32font.h (intern_font_name): Declare new function.
8936
8937 * w32uniscribe.c (add_opentype_font_name_to_list):
8938 Use intern_font_name.
8939
20d68145
CY
89402008-12-13 Chong Yidong <cyd@stupidchicken.com>
8941
9f2554de
CY
8942 * frame.c (Fdelete_frame): Call free_font_driver_list.
8943
3d9bec9a
CY
8944 * font.c (free_font_driver_list): Implement missing function.
8945
20d68145
CY
8946 * w32term.c (w32_term_init): Don't initialize the image cache
8947 here; it will be done in init_frame_faces.
8948
8949 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8950 (struct x_display_info): Remove unused member null_pixel. New
8951 member xim_callback_data.
8952
8953 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8954 (xim_initialize): Save pointer to callback function data.
8955 (xim_close_dpy): Free callback function data. Call XCloseIM,
8956 reverting 2008-11-04 change by David Smith.
8957 (x_term_init): Don't initialize the image cache here; it will be
8958 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8959 (x_delete_display): Free x_dnd_atoms member.
8960
96f9306b
KH
89612008-12-13 Kenichi Handa <handa@m17n.org>
8962
6dec9044
JB
8963 * font.c (font_rescale_ratio): Moved from xfaces.c.
8964 Argument type changed. Handle a font-spec too.
96f9306b 8965 (font_score): Check Vface_font_rescale_alist.
6dec9044 8966 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
8967
8968 * xfaces.c (font_rescale_ratio): Moved to font.c.
8969
8d5b4964
CY
89702008-12-13 Chong Yidong <cyd@stupidchicken.com>
8971
8972 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8973
e6df5336
JR
89742008-12-12 Jason Rumney <jasonr@gnu.org>
8975
8976 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8977 Vwindow_system_version to the real w32 major version.
8978
97c6058a
DN
89792008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8980
8981 * term.c (init_tty): Move setting the terminal name before the
8982 potential user: maybe_fatal.
8983
ec4e88d7
CY
89842008-12-11 Chong Yidong <cyd@stupidchicken.com>
8985
d4835507
JB
8986 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8987 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 8988
b4233ec9
JR
89892008-12-11 Jason Rumney <jasonr@gnu.org>
8990
8ec71e23 8991 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 8992 SYMBOL_CHARSET. (Bug#547)
8ec71e23 8993
b4233ec9 8994 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 8995 size for surrogates. (Bug#1096, bug#872)
b4233ec9 8996
011a0143
JB
89972008-12-11 Juanma Barranquero <lekktu@gmail.com>
8998
8999 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9000
3c309f34
JB
90012008-12-11 Juanma Barranquero <lekktu@gmail.com>
9002
9003 * process.c (Fsystem_process_attributes, syms_of_process):
9004 Fix typo in name of Ssystem_process_attributes.
9005 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9006
fedc6ab5
JB
90072008-12-11 Juanma Barranquero <lekktu@gmail.com>
9008
9009 * syntax.c (Fmodify_syntax_entry): Doc fix.
9010
ba3de0e8
JB
90112008-12-10 Juanma Barranquero <lekktu@gmail.com>
9012
9013 * font.c (Ffont_spec): Move usage to end of docstring.
9014
174f1c74
JR
90152008-12-10 Jason Rumney <jasonr@gnu.org>
9016
9017 * w32font.c (Qcham): New symbol.
9018 (font_supported_scripts): Add cham, and comments for other new
9019 scripts in bitfield from OpenType spec.
9d32f818
JR
9020 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9021 contain characters beyond the bmp.
174f1c74 9022
7b649478
KH
90232008-12-10 Kenichi Handa <handa@m17n.org>
9024
9025 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 9026 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
9027 Qunicode_sip.
9028
2133e2d1
JB
90292008-12-10 Juanma Barranquero <lekktu@gmail.com>
9030
9031 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9032 (Fcoding_system_put): Use QCdefault_char.
9033 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9034
9af886ee
CY
90352008-12-09 Chong Yidong <cyd@stupidchicken.com>
9036
74d819eb
CY
9037 * xftfont.c (syms_of_xftfont): Fix typo.
9038
4ccfa1c0 9039 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9040
7c19d3ae
DN
90412008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9042
9043 * emacs.c (main): Close daemon_pipe on exec.
9044
567826bb
CY
90452008-12-08 Chong Yidong <cyd@stupidchicken.com>
9046
9047 * termchar.h (struct tty): New members termcap_term_buffer and
9048 termcap_strings_buffer.
9049
9050 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9051 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9052 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9053 All callers changed.
9054 (init_tty): Store termcap data and string buffers in new struct
9055 tty members termcap_term_buffer and termcap_strings_buffer.
9056 (delete_tty): Free them.
4ccfa1c0 9057 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9058
aa96c42b
SZ
90592008-12-07 Seiji Zenitani <zenitani@mac.com>
9060
9061 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9062 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9063
b7e1d896
CY
90642008-12-06 Chong Yidong <cyd@stupidchicken.com>
9065
9066 * coding.c (make_conversion_work_buffer): Disable buffer
9067 modification hooks in the work buffer.
9068
b5ec91a5
EZ
90692008-12-05 Eli Zaretskii <eliz@gnu.org>
9070
9071 * process.c (procfs_system_process_attributes): If `nread' has a
9072 negative value, assign zero to it.
9073
a5d2a52b
CY
90742008-12-05 Chong Yidong <cyd@stupidchicken.com>
9075
68c5540b 9076 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9077
7bf1bb21
KH
90782008-12-05 Kenichi Handa <handa@m17n.org>
9079
9080 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9081 second character is a combining character.
9082
2fdc7d00
EZ
90832008-12-05 Eli Zaretskii <eliz@gnu.org>
9084
9085 * process.c (procfs_system_process_attributes): Don't use cmd,
9086 cmdsize, and q without initializing them first.
9087
bf6bfba8
JR
90882008-12-04 Jason Rumney <jasonr@gnu.org>
9089
9090 * w32font.c (w32font_draw): Initialize orig_clip before getting
9091 it, and delete it when finished.
9092
a3b1a468
DN
90932008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9094
9095 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9096 case when running as a daemon before detaching.
9097
8b8be8eb
JB
90982008-12-03 Juanma Barranquero <lekktu@gmail.com>
9099
805f2638 9100 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9101
b1bde622
KH
91022008-12-03 Kenichi Handa <handa@m17n.org>
9103
e500c47d
KH
9104 * font.c (font_at): Set `multibyte' at first.
9105
ca516334
KH
9106 * coding.c (decode_coding_charset): Check type of an element of
9107 vector VALIDS.
7bf1bb21 9108 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9109
4ccfa1c0 9110 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9111 (font_for_char): Likewise.
9112
1e5ecd37
CY
91132008-12-03 Chong Yidong <cyd@stupidchicken.com>
9114
d5b01609 9115 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9116 (font_update_lface): Handle fonts with corrupted size specs,
9117 i.e. non-int and non-float.
d5b01609 9118
11e3a6e4 9119 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9120 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9121 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9122
ab06788b
CY
9123 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9124
1e5ecd37 9125 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9126 underline_minimum_offset for underline position.
1e5ecd37 9127
63c125ab
DN
91282008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9129
9130 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9131
9132 * character.c (c_string_width): Specify the type for LEN.
9133
3a8406e1
KH
91342008-12-03 Kenichi Handa <handa@m17n.org>
9135
4ccfa1c0 9136 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9137 (decode_coding_utf_8): Likewise.
4ccfa1c0 9138 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9139 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9140
651df7d9
CY
91412008-12-02 Chong Yidong <cyd@stupidchicken.com>
9142
9143 * keyboard.c (make_lispy_position): Only use PT if the selected
9144 window is current.
9145
1f625c6c
AS
91462008-12-02 Andreas Schwab <schwab@suse.de>
9147
f7741ce9
AS
9148 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9149
1f625c6c
AS
9150 * doprnt.c (doprnt1): Fix size of charbuf.
9151
92bc2678
CY
91522008-12-02 Chong Yidong <cyd@stupidchicken.com>
9153
9154 * keyboard.c (timer_check): Revert last change.
9155
93b9e8cc
JB
91562008-12-02 Juanma Barranquero <lekktu@gmail.com>
9157
9158 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9159
fd7a37d5
JB
91602008-12-01 Juanma Barranquero <lekktu@gmail.com>
9161
9162 * makefile.w32-in: Update dependencies.
9163 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9164
c115043b
AS
91652008-12-01 Andreas Schwab <schwab@suse.de>
9166
9167 * font.c (register_font_driver): Use xmalloc.
9168 (font_put_frame_data): Likewise.
9169
f5668d2a
CY
91702008-12-01 Chong Yidong <cyd@stupidchicken.com>
9171
860d96be
CY
9172 * xfaces.c (realize_x_face): Make abort condition clearer.
9173
f5668d2a
CY
9174 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9175
379c17e7
CY
91762008-11-30 Chong Yidong <cyd@stupidchicken.com>
9177
9178 * keyboard.c (timer_check): After a timer runs, ensure that the
9179 selected window's buffer is current.
9180
35f36d65
JB
91812008-11-30 Juanma Barranquero <lekktu@gmail.com>
9182
f952c61c
JB
9183 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9184 It was accidentally restored by the Unicode merge.
9185
35f36d65
JB
9186 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9187
b23077df
JB
91882008-11-29 Juanma Barranquero <lekktu@gmail.com>
9189
9190 * w32proc.c: Include "coding.h".
9191 (Fw32_short_file_name): Encode filename passed to Windows API.
9192 (Fw32_long_file_name): Encode filename passed to Windows API and
9193 decode back the result. (Bug#1433)
9194
b8ebe9dd
KH
91952008-11-29 Kenichi Handa <handa@m17n.org>
9196
8cc53f96
KH
9197 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9198 not before accessing it.
9199
b8ebe9dd
KH
9200 * charset.c (Fdefine_charset_internal): After calculating
9201 min_char, max_char, and fastmap, copy the charset structure again.
9202 (encode_char): Fix the previous change.
9203
59bc82c0
SZ
92042008-11-28 Seiji Zenitani <zenitani@mac.com>
9205
9206 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9207
9208 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9209
9210 * nsterm.m (x_set_frame_alpha): New function.
9211
32247e3d
EZ
92122008-11-27 Eli Zaretskii <eliz@gnu.org>
9213
9214 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9215
b003e5ff
JB
92162008-11-27 Juanma Barranquero <lekktu@gmail.com>
9217
9218 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9219 pointer to check_face_name.
9220
708550f5
KH
92212008-11-27 Kenichi Handa <handa@m17n.org>
9222
9223 * category.h (SET_CATEGORY_SET): Call set_category_set.
9224 (set_category_set): Extern it.
9225
9226 * category.c (hash_get_category_set): New function.
9227 (Fmodify_category_entry): Adjusted for the change of
9228 char_table_ref_and_range. Call hash_get_category_set to get a
9229 category set to store in the table.
9230
9231 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9232 Funify_charset.
9233
2ae37cf0 9234 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9235 (DECODE_CHAR): Check if the decoder vector is ready.
9236 (ENCODE_CHAR): Check if the encoder char-table is ready.
9237 (maybe_unify_char): Extern it.
9238
9239 * charset.c (Vchar_unified_charset_table): Delete it.
9240 (inhibit_load_charset_map): New variable.
9241 (temp_charset_work): New variable.
9242 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9243 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9244 New macros.
9245 (load_charset_map): Meaning of control_flag changed. If
9246 inhibit_load_charset_map is nonzero, setup a table in
9247 temp_charset_work.
9248 (load_charset): New argument control_flag.
9249 (map_charset_for_dump): New function.
9250 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9251 map_charset_for_dump.
9252 (Fdefine_charset_internal): If the charset method is MAP, load
9253 mapping tables by calling load_charset.
9254 (Funify_charset): Don't load a mapping table but directly set
9255 Vchar_unify_table.
9256 (maybe_unify_char): New function.
9257 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9258 Handle the case of inhibit_load_charset_map being nonzero.
9259 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9260 Handle the case of inhibit_load_charset_map being nonzero.
9261 (Fclear_charset_maps): Just free temp_charset_work.
9262 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9263 variable.
9264
9265 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9266 change of char_table_ref_and_range.
9267 (char_table_ref_and_range): Change the meaning of argument FROM
9268 and TO. Now the caller must provide initial values for *FROM
9269 and *TO.
9270
9271 * fontset.c (fontset_add): Adjusted for the change of
9272 char_table_ref_and_range.
9273 (fontset_get_font_group): Likewise.
9274 (Ffontset_info): Likewise.
9275
9276 * keymap.c (describe_vector): Adjusted for the change of
9277 char_table_ref_and_range. For char-table, put boundary between
9278 non-ASCII and 8-bit characters.
9279
9280 * print.c (print_object): For bool-vector, delete unnecessary
9281 check of ASCII_BYTE_P.
9282
9196133b
JR
92832008-11-26 Jason Rumney <jasonr@gnu.org>
9284
9285 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9286 leading in font height. (Bug#879)
9196133b 9287
9f688acf
GM
92882008-11-26 Glenn Morris <rgm@gnu.org>
9289
9290 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9291 redefinition with ifdef. (Bug#1383)
9292
90d19aff
AR
92932008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9294
9295 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9296
4ccfa1c0 92972008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9298
9299 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9300 New EmacsView methods.
9301 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9302 Fixes bug #1048,1357,1414.
9303
93042008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9305
9306 Fix bug #1362.
9307 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9308 is not an indexed color.
9309 * nsterm.m (free_indexed_color): Add argument checking.
9310 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9311
e7d5ecb3
CY
93122008-11-24 Chong Yidong <cyd@stupidchicken.com>
9313
9314 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9315 Document confirm-after-completion value for
9316 minibuffer-completion-confirm.
9317
c285743c
JR
93182008-11-24 Jason Rumney <jasonr@gnu.org>
9319
9320 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9321 warning.
9322
b0857706
JR
93232008-11-23 Jason Rumney <jasonr@gnu.org>
9324
9325 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9326 restored before returning.
9327
9328 * w32font.c (check_face_name): New function.
9329 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9330 fonts. (Bug#642)
b0857706 9331
ee50ff07
MR
93322008-11-22 Martin Rudalics <rudalics@gmx.at>
9333
9334 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9335 confirm-nonexistent-file-or-buffer in doc-string.
9336
b8ff72fa
SM
93372008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9338
9339 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9340 Fix copy/paste typo. Add checks.
9341
cee53ed4
KH
93422008-11-21 Kenichi Handa <handa@m17n.org>
9343
9344 * coding.c (detect_coding_iso_2022): Reject invalid composition
9345 sequence.
9346 (DECODE_COMPOSITION_START): If the current source is the last
9347 block, and the current composition doesn't end, regard this
9348 sequence as invalid.
9349 (decode_coding_iso_2022): Handle invalid composition sequence.
9350
f6ef1e65
MR
93512008-11-20 Martin Rudalics <rudalics@gmx.at>
9352
9353 * window.c (coordinates_in_window): Don't return
9354 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9355 line when the window is not the rightmost one. (Bug#1372)
9356
e08b1705
MR
93572008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9358
9359 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9360
ad98e89f
EZ
93612008-11-15 Eli Zaretskii <eliz@gnu.org>
9362
9363 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9364 and bright_bg if noninteractive is non-zero.
9365
fb098a4b
CY
93662008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9367
9368 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9369 x_draw_glyph_string_background.
9370
9371 * w32term.c (x_draw_glyph_string): Likewise.
9372
ce952b6e
CY
93732008-11-15 Chong Yidong <cyd@stupidchicken.com>
9374
9375 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9376 the next glyph string once past the overhang width.
9377
9378 * nsterm.m (ns_draw_glyph_string): Likewise.
9379
9380 * w32term.c (x_draw_glyph_string): Likewise.
9381
26ea7079
CY
93822008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9383
9384 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9385 double file close.
9386
1c33c906
MR
93872008-11-14 Martin Rudalics <rudalics@gmx.at>
9388
9389 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9390 dedicated status of window before attempting to display another
9391 buffer in it.
9392
8fc29035
JB
93932008-11-14 Juanma Barranquero <lekktu@gmail.com>
9394
9395 * msdos.c (Fmsdos_long_file_names):
9396 (syms_of_msdos) <dos-unsupported-char-glyph>:
9397 * dosfns.c (Fint86): Fix typos in docstrings.
9398
55fb4286
EZ
93992008-11-14 Eli Zaretskii <eliz@gnu.org>
9400
9401 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9402
3fda0315
KY
94032008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9404
9405 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9406
7e849c17
CY
94072008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9408
9409 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9410
9411 * frame.h: Negative alpha means "don't touch".
9412
9413 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9414
9415 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9416
b9fd67bd
DN
94172008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9418
9419 * hftctl.c:
9420 * chpdef.h:
9421 * acldef.h: Remove files used only for systems no longer supported.
9422
9423 * Makefile.in: Fix .o alphabetical ordering.
9424 (hftctl.o): Remove dependency, file removed.
9425 (keymap.o, print.o): Depend on charset.h.
9426
d5998e03
KH
94272008-11-10 Kenichi Handa <handa@m17n.org>
9428
2ae37cf0 9429 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9430
be70e183
CY
94312008-11-08 Chong Yidong <cyd@stupidchicken.com>
9432
9433 * dired.c (file_name_completion): If completion_ignore_case is
9434 enabled, ignore case when checking completion-regexp-list.
9435
7cf94eac
EZ
94362008-11-08 Eli Zaretskii <eliz@gnu.org>
9437
9438 * vm-limit.c (get_lim_data): Fix last change.
9439
ee107a89
KH
94402008-11-08 Kenichi Handa <handa@m17n.org>
9441
9442 * character.c (Fget_byte): New function.
9443 (syms_of_character): Defsubr Fget_byte.
9444
5fd15622
CY
94452008-11-07 Chong Yidong <cyd@stupidchicken.com>
9446
9447 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9448 cursor position is valid after scrolling.
9449
13d62fad
JB
94502008-11-06 Juanma Barranquero <lekktu@gmail.com>
9451
9452 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9453
a1dd2936
GM
94542008-11-06 Glenn Morris <rgm@gnu.org>
9455
9456 * xterm.c (handle_one_xevent): Don't let popup menus cause
9457 mouse-autoselect-window related window switching. (Bug#1261)
9458
860cd236
CY
94592008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9460
9461 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9462
653a3150
AS
94632008-11-04 Andreas Schwab <schwab@suse.de>
9464
9465 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9466
870f5cac
CY
94672008-11-03 Chong Yidong <cyd@stupidchicken.com>
9468
9469 * xfns.c (Fx_wm_set_size_hint): New function.
9470
1e02f3cb
MR
94712008-11-03 Martin Rudalics <rudalics@gmx.at>
9472
9473 * textprop.c (Fprevious_single_char_property_change): Return 0
9474 when there's no change in a string. (Bug#1301)
9475
e630dfc6
MR
94762008-11-02 Martin Rudalics <rudalics@gmx.at>
9477
9478 * frame.c (do_switch_frame): New argument NORECORD passed to
9479 Fselect_window.
9480 (Fselect_frame): New argument NORECORD passed to
9481 do_switch_frame.
9482 (Fset_frame_selected_window): New argument NORECORD passed to
9483 Fselect_frame.
9484 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9485 in call of do_switch_frame.
9486 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9487 Handle NORECORD argument in call of Fselect_frame.
9488 * lisp.h (do_switch_frame, Fselect_frame)
9489 (Fset_frame_selected_window): Adjust declarations.
9490 * window.c (select_frame_norecord): New function.
9491 (run_window_configuration_change_hook): Use it and call
9492 Fselect_frame with NORECORD set.
9493 (Fselect_window): Pass NORECORD to Fselect_frame.
9494 (Fset_window_configuration): Handle NORECORD argument in call of
9495 do_switch_frame.
9496 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9497 Fset_frame_selected_window.
9498 * keyboard.c (command_loop_1): Handle NORECORD in call of
9499 Fselect_frame (currently ifdefd).
9500
9020b223
GM
95012008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9502
9503 * emacs.c (USAGE2): Untabify.
9504
793ffee8
SM
95052008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9506
9507 * composite.c (fill_gstring_header): Fix copy/paste typo.
9508
ab6d1131
MR
95092008-10-31 Martin Rudalics <rudalics@gmx.at>
9510
9511 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9512 (Fother_window): Rename argument and rewrite doc-string.
9513 (select_window_norecord): Fix return value. (Bug#1276)
9514
601a9cf1
JB
95152008-10-30 Juanma Barranquero <lekktu@gmail.com>
9516
9517 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9518 new frames overriding foreground for tooltips. Based on similar patch
9519 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9520
813b0652
CY
95212008-10-29 Chong Yidong <cyd@stupidchicken.com>
9522
9523 * emacs.c (Fdaemon_initialized): Initialize nfd.
9524
4414f58f
MR
95252008-10-29 Martin Rudalics <rudalics@gmx.at>
9526
9527 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9528 (Fwindow_text_height): Clarify doc-strings.
9529 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9530 doc-string of window-scroll-functions.
9531
ecdcaa09
RS
95322008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9533
9534 * category.c (syms_of_category): Fix typo in docstring.
9535
23fe745a
JB
95362008-10-28 Juanma Barranquero <lekktu@gmail.com>
9537
9538 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9539 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9540 Fix typos in docstrings.
9541
ff808935
DN
95422008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9543
9544 * emacs.c (daemon_pipe): Make non-static.
9545 (IS_DAEMON): Move definition ...
9546 * lisp.h (IS_DAEMON): ... here.
9547 (daemon_pipe): Declare.
9548 (is_daemon): Remove.
9549 * dispnew.c (init_display): Use IS_DAEMON.
9550
fc012771
SM
95512008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9552
9553 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
9554 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
9555
9556 * emacs.c (is_daemon): Remove.
9557 (main): Don't set is_daemon.
9558 (IS_DAEMON): New macro.
9559 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 9560 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
9561 parent exits.
9562 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
9563
d8bdbe6f
CY
95642008-10-27 Chong Yidong <cyd@stupidchicken.com>
9565
d1a072bf
CY
9566 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
9567 over-sized glyph, draw it with the default glyph width.
9568
e2e325aa
CY
9569 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9570 glyph, draw it with the default glyph width.
9571
9572 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9573 glyph, draw it with the default glyph width.
9574
d8bdbe6f
CY
9575 * xdisp.c (try_scrolling): When computing the distance from the
9576 scroll margin to PT, try moving some distance past the window
9577 bottom before giving up.
9578
7bfac547
MR
95792008-10-27 Martin Rudalics <rudalics@gmx.at>
9580
9581 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
9582 (Fset_window_buffer): Explain in doc-string that a window can be
9583 "strongly" dedicated to its buffer.
9584
4ff029f6
DN
95852008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
9586
9587 * emacs.c (daemon_name): New variable.
9588 (main): Deal with --daemon=SERVER_NAME.
9589 (Fdaemonp): Return a name if one was passed to --daemon.
9590
5790ef40
DN
95912008-10-26 Romain Francoise <romain@orebokech.com>
9592
f9bd0df9 9593 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
9594 (main): Create a pipe before forking, make the parent exit only after
9595 the child has closed its end of the pipe. Move closing the
9596 descriptors ...
9597 (Fdaemon_initialized): ... here. New function.
9598
f5385255
SM
95992008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9600
4d632321
SM
9601 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9602 the previous unoptimized table.
9603
f5385255
SM
9604 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9605 the distinction between non-nil and non-t value of `dedicated'.
9606
6c56a0f3
CY
96072008-10-25 Chong Yidong <cyd@stupidchicken.com>
9608
9609 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 9610 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 9611
fec89261
MR
96122008-10-25 Martin Rudalics <rudalics@gmx.at>
9613
9614 * window.c (Fget_buffer_window, Fdelete_windows_on)
9615 (Freplace_buffer_in_windows): Make buffer argument optional and
9616 rename to buffer_or_name.
9617
34fcddd0
CY
96182008-10-24 Chong Yidong <cyd@stupidchicken.com>
9619
f5385255
SM
9620 * xdisp.c (handle_single_display_spec, handle_display_prop):
9621 Undo 2005-05-16 change.
34fcddd0
CY
9622 (handle_stop): Pop iterator if it's loaded with an empty string.
9623 (get_overlay_strings_1): Don't save iterator if it's loaded with
9624 an empty string (bug#1201).
9625
064766f2
KH
96262008-10-24 Kenichi Handa <handa@m17n.org>
9627
9628 * ftfont.c (ftfont_otf_features): Fix previous change.
9629 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9630 calling ftfont_otf_features.
9631
f9bd0df9 96322008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
9633
9634 * font.c (font_match_p): Fix for the case that a vector of
9635 characters is in script-representative-chars.
9636
1dae9197
MA
96372008-10-24 Michael Albinus <michael.albinus@gmx.de>
9638
9639 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 9640 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
9641 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9642 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 9643 macro. (Bug#1186)
1dae9197 9644
f9bd0df9 96452008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
9646
9647 * s/sol2-10.h: New file.
9648
878a4584
JB
96492008-10-23 Juanma Barranquero <lekktu@gmail.com>
9650
9651 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9652 poor beast has survived 9+ years and the jump from xterm.c!).
9653
cd265ca6
MR
96542008-10-23 Martin Rudalics <rudalics@gmx.at>
9655
9656 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9657 Reword doc-string.
f5385255 9658 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 9659
472a4dc9
JB
96602008-10-23 Juanma Barranquero <lekktu@gmail.com>
9661
9662 * character.c (syms_of_character) <script-representative-chars>:
9663 <unicode-category-table>: Doc fixes.
9664
159bd5a2
NF
96652008-10-23 Noah Friedman <friedman@splode.com>
9666
9667 * coding.c (make_conversion_work_buffer): Check that
9668 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9669 Fget_buffer_create.
9670
49f9c344
KH
96712008-10-23 Kenichi Handa <handa@m17n.org>
9672
9673 * font.c (font_add_log): Check the values of extra properties.
9674
12bb3111
MR
96752008-10-22 Martin Rudalics <rudalics@gmx.at>
9676
9677 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9678 Reword doc-string.
9679 (Fset_window_parameter): Use NILP.
9680 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 9681 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 9682
bbeb4e99
JB
96832008-10-22 Juanma Barranquero <lekktu@gmail.com>
9684
9685 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9686
96872008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
9688
9689 * nsfns.m (ns_appkit_version): New function.
9690 (x-server-version): Use it.
9691 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
9692 (x-server-vendor): Don't check_ns().
9693
9694 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
9695
a9b555d3
JB
96962008-10-22 Juanma Barranquero <lekktu@gmail.com>
9697
9698 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9699 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
9700
4626499f
KH
97012008-10-22 Kenichi Handa <handa@m17n.org>
9702
e3681952
KH
9703 * syntax.c (scan_words): Call word_boundary_p instead of comparing
9704 scripts.
9705
4626499f
KH
9706 * category.c (word_boundary_p): Check scripts instead of charset.
9707 Handle nil value in word-separating-categories and
9708 word-combining-categories.
9709 (syms_of_category): Fix docstrings of word-separating-categories
9710 and word-combining-categories.
9711
1560f91a
EZ
97122008-10-21 Eli Zaretskii <eliz@gnu.org>
9713
9714 * coding.c (Fencode_coding_region, Fdecode_coding_region)
9715 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
9716
f4668441
MR
97172008-10-21 Martin Rudalics <rudalics@gmx.at>
9718
9719 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
9720 Rename arg "buffer" to "buffer_or_name".
9721 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
9722 it optional.
9723 (no_switch_window): Remove since the return value is not used.
a9b555d3 9724 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
9725 Consider window as dedicated when Fwindow_dedicated_p returns a
9726 non-nil value.
9727 * lisp.h: Remove prototype for no_switch_window.
9728
fd75ddb2
JD
97292008-10-21 Jan Djärv <jan.h.d@swipnet.se>
9730
9731 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 9732 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 9733
07295713
KH
97342008-10-21 Kenichi Handa <handa@m17n.org>
9735
9736 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
9737 check Vlatin_extra_code_table.
9738
712adc82
EZ
97392008-10-20 Eli Zaretskii <eliz@gnu.org>
9740
9741 * fileio.c (Fset_file_modes): Doc fix.
9742
f549eb0b
MA
97432008-10-19 Michael Albinus <michael.albinus@gmx.de>
9744
9745 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
9746 in arrays.
9747
aac0c6e3
MR
97482008-10-19 Martin Rudalics <rudalics@gmx.at>
9749
9750 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9751 Mention kill-buffer in doc-string.
9752 (Fset_window_buffer): Reinsert tem check removed in last commit.
9753 (Fenlarge_window, Fshrink_window): Have argument names and
9754 doc-string follow Elisp manual more closely.
9755
97562008-10-18 Eli Zaretskii <eliz@gnu.org>
9757
9758 * fileio.c (Fset_file_modes): Doc fix.
9759
97602008-10-18 Martin Rudalics <rudalics@gmx.at>
9761
9762 * window.c (Fwindow_width, Fset_window_start)
9763 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
9764 (Fdelete_windows_on, Freplace_buffer_in_windows):
9765 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
9766 (Fwindow_dedicated_p): Make window argument optional.
9767 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
9768 (Fset_window_buffer): Respect any non-nil dedicated value for
9769 window. Rename "buffer" argument to "buffer_or_name".
9770
97712008-10-18 Ulrich Mueller <ulm@gentoo.org>
9772
9773 * m/sh3.h: New file, machine description for SuperH.
9774
97752008-10-17 Martin Rudalics <rudalics@gmx.at>
9776
9777 * window.c (Fsplit_window): Rename arg horflag to horizontal.
9778
97792008-10-17 Kenichi Handa <handa@m17n.org>
9780
9781 * ftfont.c (ftfont_otf_features): Fix indexing
9782 gsub_gpos->FeatureList.Feature. Check the validity of indices.
9783
97842008-10-16 Magnus Henoch <mange@freemail.hu>
9785
9786 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
9787 (Fdbus_call_method_asynchronously): Ditto.
9788 This change makes C-h f display the argument list.
9789
97902008-10-16 Chong Yidong <cyd@stupidchicken.com>
9791
9792 * fileio.c (Fexpand_file_name): Doc fix.
9793
9794 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
9795 of :foreground and :background equivalent to unspecified (20.x
9796 compatibility).
9797
97982008-10-15 Eli Zaretskii <eliz@gnu.org>
9799
9800 * buffer.c (syms_of_buffer): Doc fix.
9801
98022008-10-14 Kenichi Handa <handa@m17n.org>
9803
9804 * font.c (font_clear_prop): When clearing font width, clear the
9805 average width field too.
9806
98072008-10-12 Andreas Schwab <schwab@suse.de>
9808
9809 * ftfont.c (ftfont_shape_by_flt): Make static.
9810 * ftfont.h (ftfont_shape_by_flt): Don't declare.
9811
9812 * font.c: Don't include <m17n-flt.h>.
9813
98142008-10-10 Eli Zaretskii <eliz@gnu.org>
9815
9816 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
9817
98182008-10-09 Eli Zaretskii <eliz@gnu.org>
9819
9820 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
9821 away code.
9822
98232008-10-09 Chong Yidong <cyd@stupidchicken.com>
9824
9825 * dispnew.c (update_text_area): Avoid looping due to large glyph
9826 overhangs (bug#1070).
9827
98282008-10-09 Kenichi Handa <handa@m17n.org>
9829
9830 * fontset.c (face_for_char): If face->fontset is negative, just
9831 return ascii_face.
9832
f5385255
SM
9833 * font.c (font_delete_unmatched): Fix previous change.
9834 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
9835
98362008-10-09 Martin Rudalics <rudalics@gmx.at>
9837
9838 * frame.c (Fraise_frame): On text-only terminals select frame in
9839 order to make it visible. (Bug#1061)
9840
98412008-10-08 Chong Yidong <cyd@stupidchicken.com>
9842
9843 * fontset.c (fontset_find_font): Check frame validity.
9844
98452008-10-07 Chong Yidong <cyd@stupidchicken.com>
9846
a9b555d3 9847 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
9848 (xg_display_close): Allow Emacs to close all displays (bug#985).
9849
98502008-10-06 Andreas Schwab <schwab@suse.de>
9851
f5385255 9852 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
9853
98542008-10-06 Chong Yidong <cyd@stupidchicken.com>
9855
f5385255 9856 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 9857
a9b555d3 9858 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
9859
9860 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9861 during initialization.
9862
98632008-10-04 Eli Zaretskii <eliz@gnu.org>
9864
9865 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9866 whole thing on MSDOS frames as well as on a TTY.
9867
9868 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9869 well as for TTY.
9870 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9871 well as on a TTY.
9872
9873 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9874 as well as for TTY.
9875
9876 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9877
9878 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9879 MSDOS frames as well.
9880
98812008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9882
9883 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9884 correct arguments.
b71ac3dd 9885 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
9886
98872008-10-03 Glenn Morris <rgm@gnu.org>
9888
9889 * emacs.c (USAGE1): Add --daemon.
9890
98912008-10-02 Eli Zaretskii <eliz@gnu.org>
9892
9893 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9894 100, so it's in percents as advertised.
9895
98962008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9897
9898 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9899 (ns_output.current_cursor, ns_output.desired_cursor)
9900 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9901 (FRAME_NEW_CURSOR_COLOR): Remove.
9902
9903 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 9904 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
9905 enumeration (HOLLOW_BOX_CURSOR, etc.).
9906
9907 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9908 (draw_window_cursor): Simplify code.
f5385255
SM
9909 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9910 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 9911 updates manually.
a9b555d3
JB
9912 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9913 Use core Emacs cursor types.
aac0c6e3 9914
b8ff72fa 9915 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
9916
99172008-10-02 Martin Rudalics <rudalics@gmx.at>
9918
9919 * process.c (Faccept_process_output): Fix doc-string.
9920
99212008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9922
9923 * gmalloc.c (__sbrk): Also define for uClibc.
9924
9925 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9926 for uClibc.
9927
99282008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9929
9930 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9931 styles.
9932 (nsfont_open): Reenable the cache.
9933
99342008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9935
9936 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9937 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9938
99392008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9940
9941 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9942 a suspended terminal.
9943
99442008-09-30 Michael Albinus <michael.albinus@gmx.de>
9945
9946 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9947
99482008-09-30 Eli Zaretskii <eliz@gnu.org>
9949
9950 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9951
99522008-09-30 Chong Yidong <cyd@stupidchicken.com>
9953
9954 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9955 in a continued line coincides with a line beginning.
9956
99572008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9958
9959 * nsfont.m (nsfont_trait_distance): Fix bug.
9960 (nsfont_list): Return a list rather than a vector (syncs with Handa
9961 changes of 2008-05-14).
9962 (nsfont_open): Improve logging.
9963
99642008-09-29 Andreas Schwab <schwab@suse.de>
9965
9966 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9967
99682008-09-28 Martin Rudalics <rudalics@gmx.at>
9969
9970 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9971 name as char-resolve-modifiers.
9972 Reported by: Markus Triska <markus.triska@gmx.at>
9973
99742008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9975
9976 * dispnew.c (init_display): Return earlier when running as a daemon.
9977
99782008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9979
9980 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9981
99822008-09-27 Eli Zaretskii <eliz@gnu.org>
9983
9984 * composite.c (Fcomposition_get_gstring)
9985 (Fcompose_region_internal, Fcompose_string_internal)
9986 (Ffind_composition_internal): Doc fix.
9987 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9988 (syms_of_composite) <auto-composition-function>: Doc fix.
9989 (syms_of_composite) <composition-function-table>: Doc fix.
9990
99912008-09-25 Chong Yidong <cyd@stupidchicken.com>
9992
9993 * search.c (wordify): New argument for lax word-ends.
9994 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9995
99962008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9997
9998 * lisp.h (is_daemon): Declare.
9999 * dispnew.c (init_display): Do not try to initialize the terminal
10000 when running as a daemon.
10001
100022008-09-22 Chong Yidong <cyd@stupidchicken.com>
10003
10004 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10005 x_display_pixel_height.
10006
100072008-09-22 Martin Rudalics <rudalics@gmx.at>
10008
10009 * undo.c (record_point): Don't call Fundo_boundary for first
10010 change. (Bug#731)
10011
100122008-09-22 Juanma Barranquero <lekktu@gmail.com>
10013
10014 * emacs.c (Fdaemonp): Doc fix.
10015
100162008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10017
10018 * emacs.c (main): Place #ifdef in the proper place.
10019
100202008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10021
10022 * emacs.c (standard_args): Add --daemon.
10023 (main): Disconnect from the terminal when --daemon is passed.
10024 (is_daemon): New variable.
10025 (Fdaemonp): New function.
10026 (syms_of_emacs): Defsubr it.
10027
100282008-09-20 Chong Yidong <cyd@stupidchicken.com>
10029
10030 * xdisp.c (get_next_display_element): Handle string display
10031 correctly when checking for the end of a box run.
10032
100332008-09-20 Glenn Morris <rgm@gnu.org>
10034
10035 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10036 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10037 (Frename_file): Avoid copying to trash if a rename involves
10038 a delete. (Bug#964).
10039
100402008-09-20 Eli Zaretskii <eliz@gnu.org>
10041
10042 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10043 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10044 frames as well as termcap frames.
10045 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10046 get_named_tty.
10047
100482008-09-19 Eli Zaretskii <eliz@gnu.org>
10049
10050 * process.c (procfs_system_process_attributes): Fix cmdline in
10051 case /proc/PID/cmdline is empty.
10052
10053 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10054 x_display_pixel_height.
10055
100562008-09-19 Juanma Barranquero <lekktu@gmail.com>
10057
10058 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10059
10060 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10061 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10062
100632008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10064
10065 * dispextern.h (struct it): Move line_wrap away from the middle of
10066 bitfields. Move voffset in struct iterator_stack_entry after the
10067 bitfields. Move tab_width near after another short.
10068
100692008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10070
10071 * frame.h (struct frame): Move alpha from the middle of bitfields.
10072
10073 * window.h (struct window): Move frozen_window_start_p after the
10074 rest of the bitfields to reduce padding.
10075
100762008-09-18 Chong Yidong <cyd@stupidchicken.com>
10077
10078 * xterm.h (x_display_info): Remove `height' and `width' members.
10079
10080 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10081
10082 * w32term.h (w32_display_info): Remove `height', `width',
10083 `height_in', and `width_in' members.
10084
b8ff72fa
SM
10085 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10086 New functions.
aac0c6e3
MR
10087 (x_calc_absolute_position): Use them.
10088 (x_term_init): Omit removed `height' and `width' members.
10089
b8ff72fa
SM
10090 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10091 New functions.
aac0c6e3
MR
10092 (w32_read_socket, x_calc_absolute_position): Use them.
10093 (w32_initialize_display_info, w32_term_init): Omit removed members
10094 of w32_display_info.
10095
b8ff72fa
SM
10096 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10097 New functions.
10098 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10099
b8ff72fa
SM
10100 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10101 New functions.
aac0c6e3
MR
10102 (x_calc_absolute_position): Use them.
10103 (x_term_init): Omit removed `height' and `width' members.
10104
10105 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10106 (compute_tip_xy):
10107 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10108 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10109 x_display_pixel_width.
10110
101112008-09-18 Kenichi Handa <handa@m17n.org>
10112
10113 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10114 (composition_compute_stop_pos): Fix handling of static composition.
10115 (Fcomposition_get_gstring): Check FROM and TO at first.
10116
101172008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10118
46e722a9 10119 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10120 mixup (YAILOM).
10121
101222008-09-17 Chong Yidong <cyd@stupidchicken.com>
10123
10124 * indent.c (Fvertical_motion): Use position reported by iterator
10125 instead of PT for determining screen motion (bug#943).
10126
101272008-09-17 Romain Francoise <romain@orebokech.com>
10128
10129 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10130
101312008-09-17 Kenichi Handa <handa@m17n.org>
10132
10133 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10134
10135 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10136 if necessary.
10137
101382008-09-16 Kenichi Handa <handa@m17n.org>
10139
10140 * coding.c (make_conversion_work_buffer): Avoid calling
10141 Fget_buffer_create if it is not necessary.
10142
101432008-09-15 Martin Rudalics <rudalics@gmx.at>
10144
10145 * window.c (Fselect_window): Don't update window_select_count and
10146 use_time when norecord is not nil.
10147
101482008-09-14 Kenichi Handa <handa@m17n.org>
10149
10150 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10151 specpdl_ptr.
10152
101532008-09-12 Kenichi Handa <handa@m17n.org>
10154
10155 * indent.c (scan_for_column): Don't handle automatic composition
10156 if the current buffer is not associated with a window.
10157
10158 * composite.c (composition_reseat_it): If the current buffer is
10159 not associated with a window, ignore the automatic composition.
10160 (find_automatic_composition): Likewise.
10161
101622008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10163
10164 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10165 (Fgpm_mouse_stop): Use it.
10166 * termhooks.h (close_gpm): Declare.
10167 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10168 connection if Gpm_GetEvent fails.
10169
10170 * window.c (set_window_buffer): Always preserve current-buffer.
10171
101722008-09-12 Glenn Morris <rgm@gnu.org>
10173
10174 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10175
101762008-09-11 Glenn Morris <rgm@gnu.org>
10177
10178 * charset.c (charset-map-path): Doc fix.
10179
101802008-09-10 Kenichi Handa <handa@m17n.org>
10181
10182 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10183
10184 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10185 compose a grapheme cluster with the preceding base glyph.
10186
10187 * composite.c (composition_compute_stop_pos): Fix previous change.
10188 Reset cmp_it->id to -1 at first.
10189
101902008-09-10 Glenn Morris <rgm@gnu.org>
10191
10192 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10193
101942008-09-09 Chong Yidong <cyd@stupidchicken.com>
10195
10196 * keyboard.c (read_key_sequence): Reapply translation maps when
10197 switching keyboards.
10198
101992008-09-09 Kenichi Handa <handa@m17n.org>
10200
10201 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10202 characters.
10203
10204 * composite.c (FORWARD_CHAR): Fix calculation
10205 of (POSITION).pos_byte.
10206 (composition_compute_stop_pos): Limit the search of composition to
10207 at most 500 characters ahead. If we reach the limit or find a
10208 newline, set cmp_it->ch to -2 and return 0.
10209 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10210
102112008-09-08 Kenichi Handa <handa@m17n.org>
10212
10213 * indent.c (Fvertical_motion): Be sure to set
10214 it_overshoot_expected if it.cmp_it.id is non-negative.
10215
102162008-09-07 Andreas Schwab <schwab@suse.de>
10217
10218 * callproc.c (Fcall_process): Don't hold references to string data
10219 across garbage collection. Move initialisation of new_argv down
10220 to avoid compiler bug.
10221
102222008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10223
10224 * process.c (Fsystem_process_attributes): Doc fix.
10225
102262008-09-07 Chong Yidong <cyd@stupidchicken.com>
10227
10228 * callproc.c (Fcall_process): Canonicalize current directory name.
10229
10230 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10231 iterator advances to the next line if the current line ends in a
10232 continued tab.
10233
102342008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10235
10236 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10237 member to point to cmp_from.
10238
10239 * xdisp.c: Doc fix for references to gidx data member.
10240
102412008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10242
10243 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10244
102452008-09-07 Kenichi Handa <handa@m17n.org>
10246
10247 * composite.c (FORWARD_CHAR): Check STOP after
10248 incrementing (POSITION).pos.
10249
102502008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10251
10252 * process.c (Fsystem_process_attributes): Doc fix.
10253
102542008-09-06 Chong Yidong <cyd@stupidchicken.com>
10255
10256 * keyboard.c (Ftop_level): Doc fix.
10257
102582008-09-06 Eli Zaretskii <eliz@gnu.org>
10259
10260 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10261 minibuffer, don't let lower part of menu invade the echo area.
10262
10263 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10264 "char *q" to access menu text and advance through it. Revert the
10265 change that displayed ">" instead of ASCII character 0x10.
10266
102672008-09-05 Eli Zaretskii <eliz@gnu.org>
10268
10269 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10270 toggle boxes and radio buttons on MS-DOS as well.
10271
102722008-09-05 Kenichi Handa <handa@m17n.org>
10273
10274 * composite.c (autocmp_chars): Check lookback count.
10275 (composition_compute_stop_pos): Set cmp_it->lookback.
10276 (composition_reseat_it): Check lookback count.
10277 (struct position_record): New struct.
10278 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10279 (find_automatic_composition): New function.
10280 (composition_adjust_point): Use find_automatic_composition.
10281
10282 * dispextern.h (struct composition_it): New member lookback.
10283
102842008-09-02 Chong Yidong <cyd@stupidchicken.com>
10285
10286 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10287 if moving by a single line.
10288
102892008-09-02 Andreas Schwab <schwab@suse.de>
10290
10291 * xterm.c (x_delete_display): Fix merge error.
10292
10293 * fileio.c (Fexpand_file_name): Remove unused variables.
10294
102952008-09-02 Eli Zaretskii <eliz@gnu.org>
10296
10297 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10298 storage on all platforms, not just on DOS_NT.
10299
103002008-09-02 Jason Rumney <jasonr@gnu.org>
10301
b8ff72fa
SM
10302 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10303 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10304
103052008-09-01 Chong Yidong <cyd@stupidchicken.com>
10306
10307 * xfaces.c (Finternal_set_alternative_font_family_alist)
10308 (Finternal_set_alternative_font_registry_alist): Properly copy
10309 entire alist structure.
10310
103112008-09-01 Kenichi Handa <handa@m17n.org>
10312
d66c0241 10313 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10314 representative chars of the script is a vector.
d66c0241
JB
10315 (ftfont_list): Handle the case where the representative chars of
10316 the script is a vector.
aac0c6e3
MR
10317
10318 * character.c (syms_of_character): Docstring of
10319 script-representative-chars fixed.
10320
103212008-08-31 Eli Zaretskii <eliz@gnu.org>
10322
10323 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10324 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10325 the menu. Allocate larger buffer for `text', to account for
10326 possible ^C characters.
10327
103282008-08-31 Martin Rudalics <rudalics@gmx.at>
10329
10330 * xdisp.c (prepare_menu_bars): Don't call
10331 Vwindow_size_change_functions with arg Qt.
10332
103332008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10334
10335 * font.h (font_range):
10336 * fileio.c (report_file_error):
46e722a9
SM
10337 * composite.c (composition_update_it): Yet another int/Lisp_Object
10338 mixup (YAILOM).
aac0c6e3
MR
10339
103402008-08-30 Glenn Morris <rgm@gnu.org>
10341
10342 * data.c (Fmake_variable_frame_local): Doc fix.
10343
10344 * frame.c (Fmodify_frame_parameters): Doc fix.
10345
103462008-08-30 Eli Zaretskii <eliz@gnu.org>
10347
10348 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10349 needed by GetTokenInformation.
10350 (w32_system_process_attributes): Check return values of all system
10351 APIs.
10352
10353 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10354 only when the state changes.
10355 (IT_update_begin, IT_update_end): Add termscript trace.
10356
10357 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10358 clipboard is unavailable. Set dst to NULL if it doesn't point to
10359 malloc'ed data.
10360 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10361 passing random values to xfree.
10362
10363 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10364 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10365
103662008-08-29 Jason Rumney <jasonr@gnu.org>
10367
10368 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10369
103702008-08-29 Eli Zaretskii <eliz@gnu.org>
10371
10372 * composite.c (fill_gstring_body): Avoid compiler warnings.
10373
10374 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10375 LGLYPH_SET_CODE to avoid compiler warnings.
10376
2ae37cf0 10377 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
10378
10379 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10380
10381 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10382 LGLYPH_SET_CODE.
10383
103842008-08-29 Kenichi Handa <handa@m17n.org>
10385
10386 * fileio.c (report_file_error): Don't downcase the first character
10387 of errstring if it is still unibyte.
10388
103892008-08-29 Kenichi Handa <handa@m17n.org>
10390
10391 These changes are to re-implement the automatic composition so
10392 that it doesn't use text properties.
10393
10394 * Makefile.in (ftfont.o): Depend on composite.h.
10395 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10396
10397 * character.h (Vunicode_category_table): Extern it.
10398
10399 * character.c (Vunicode_category_table): New variable.
10400 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10401
10402 * chartab.c (optimize_sub_char_table): Perform more greedy
10403 optimization.
10404
b8ff72fa
SM
10405 * composite.h (enum composition_method):
10406 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10407 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10408 (Vcomposition_function_table): Extern it.
10409 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10410 (composition_gstring_put_cache, composition_gstring_from_id)
10411 (composition_gstring_p, composition_gstring_width)
10412 (composition_compute_stop_pos, composition_reseat_it)
10413 (composition_update_it, composition_adjust_point): Extern them.
10414 (Fcomposition_get_gstring): EXFUN it.
10415
d66c0241 10416 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10417 (Vcomposition_function_table)
10418 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10419 (gstring_hash_table, gstring_work, gstring_work_headers):
10420 New variables.
aac0c6e3
MR
10421 (gstring_lookup_cache, composition_gstring_put_cache)
10422 (composition_gstring_from_id, composition_gstring_p)
10423 (composition_gstring_width, fill_gstring_header)
10424 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10425 (composition_reseat_it, composition_update_it)
b8ff72fa 10426 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10427 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10428 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10429 Defsubr composition_get_gstring.
aac0c6e3
MR
10430
10431 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10432 cmp_id.
10433 (struct glyph_string): Delete the member gidx. New members
10434 cmp_id, cmp_from, and cmp_to.
10435 (enum it_method): Delete GET_FROM_COMPOSITION.
10436 (struct composition_it): New struct.
10437 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10438 Delete c, len, cmp_id, cmp_len in u.comp.
10439
10440 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 10441 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 10442 (enum lglyph_indices): Likewise.
b8ff72fa 10443 (font_range): Adjust extern.
aac0c6e3
MR
10444 (font_fill_lglyph_metrics): Extern it.
10445
10446 * font.c (QCf): New variable.
10447 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10448 (font_prepare_composition): Delete this function.
10449 (font_range): Type and arguments changed.
10450 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10451 (font_fill_lglyph_metrics): New function.
b8ff72fa 10452 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 10453 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
10454 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10455 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
10456
10457 * fontset.h (font_for_char): Extern it.
10458
10459 * fontset.c (font_for_char): New function.
10460
10461 * ftfont.c: Include composite.h.
10462 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 10463 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
10464
10465 * indent.c: Include composite.h and dispextern.h.
10466 (check_composition): Delete this function.
10467 (scan_for_column): Handle composition by
10468 composition_compute_stop_pos, composition_reseat_it, and
10469 composition_update_it.
10470 (compute_motion): Likewise.
10471 (Fvertical_motion): Fix checking of composition.
10472
10473 * keyboard.c (adjust_point_for_property): Check composition by
10474 composition_adjust_point.
10475
b8ff72fa 10476 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
10477 struct glyph_string.
10478
b8ff72fa
SM
10479 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10480 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
10481 struct glyph.
10482 (produce_composite_glyph): Likewise.
10483
b8ff72fa
SM
10484 * w32term.c (x_draw_composite_glyph_string_foreground):
10485 Adjust for the change of struct glyph_string.
aac0c6e3
MR
10486 (x_draw_glyph_string): Likewise.
10487
10488 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10489 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10490
10491 * xdisp.c: Include font.h.
10492 (it_props): Delete the entry for Qauto_composed.
10493 (init_iterator): Initialize it->cmp_it.id to -1.
10494 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 10495 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
10496 (handle_auto_composed_prop): Delete it.
10497 (handle_composition_prop): Handle only static composition.
10498 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10499 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 10500 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
10501 (pop_it): Likewise.
10502 (get_next_element): Delete next_element_from_composition.
10503 (CHAR_COMPOSED_P): New macro.
10504 (get_next_display_element): For automatic composition, get a face
10505 from the font in the glyph-string.
10506 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 10507 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
10508 (next_element_from_string): Check if the character at the current
10509 position is composed by CHAR_COMPOSED_P.
10510 (next_element_from_buffer): Likewise.
d66c0241
JB
10511 (next_element_from_composition): Adjust for the change of struct it.
10512 Update it->cmp_it.
b8ff72fa
SM
10513 (dump_glyph): Adjust for the change of struct glyph.
10514 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
10515 it and struct glyph. Don't handle automatic composition here.
10516 (fill_gstring_glyph_string): New function.
10517 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 10518 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
10519 (BUILD_GSTRING_GLYPH_STRING): New macro.
10520 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10521 automatic composition.
b8ff72fa 10522 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 10523 struct glyph.
b8ff72fa 10524 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 10525
b8ff72fa 10526 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
10527 the change of struct glyph_string.
10528 (x_draw_glyph_string): Likewise.
10529
105302008-08-29 Glenn Morris <rgm@gnu.org>
10531
10532 * buffer.c (word-wrap): Doc fix.
10533 * xdisp.c (truncate-partial-width-windows): Doc fix.
10534 Increase default to 50.
10535
105362008-08-29 Chong Yidong <cyd@stupidchicken.com>
10537
10538 * xdisp.c (update_tool_bar_unwind): New function.
10539 (update_tool_bar): Temporarily set selected frame before building
10540 tool-bar items.
10541
105422008-08-28 Michael Albinus <michael.albinus@gmx.de>
10543
10544 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10545 snprintf, respectively.
10546 (xd_append_arg): Convert strings with Fstring_make_unibyte.
10547
105482008-08-28 Chong Yidong <cyd@stupidchicken.com>
10549
10550 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
10551 LDFLAGS to GNUstep CC invocation.
10552
105532008-08-27 Chong Yidong <cyd@stupidchicken.com>
10554
10555 * indent.c (Fvertical_motion): Revert last change. Handle the
10556 general case where we are moving forward, and PT spans multiple
10557 screen lines.
10558
10559 * eval.c (find_handler_clause): Temporarily increase
10560 max-lisp-eval-depth while printing the backtrace buffer, to
10561 guarantee that help-mode code can run.
10562
105632008-08-27 Eli Zaretskii <eliz@gnu.org>
10564
10565 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
10566 colors under -rv.
10567 (IT_set_frame_parameters): Don't swap foreground and background
10568 colors if `(reverse . t)' is present in the frame properties.
10569 (internal_terminal_init): Call init_frame_faces only for the
10570 initial frame.
10571
105722008-08-27 Andreas Schwab <schwab@suse.de>
10573
10574 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
10575
105762008-08-27 Andreas Schwab <schwab@suse.de>
10577
10578 * search.c (search_buffer): Set char_base to zero only at the end.
10579
105802008-08-27 Kenichi Handa <handa@m17n.org>
10581
b8ff72fa 10582 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
10583
105842008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
10585
10586 * xterm.c (x_term_init): Temporarily hide the partially
10587 initialized terminal while calling vendor-specific-keysyms.
10588
105892008-08-26 Eli Zaretskii <eliz@gnu.org>
10590
10591 * msdos.c (internal_terminal_init): Most initializations done only
10592 once, especially initial_screen_colors[] and termscript open.
10593
105942008-08-26 Chong Yidong <cyd@stupidchicken.com>
10595
10596 * eval.c (Fcondition_case): Doc fix.
10597
10598 * widgetprv.h (EmacsFramePart): Change font member to the new font
10599 struct.
10600
10601 * widget.c: Include character.h and font.h for XSETFONT.
10602 (setup_frame_gcs): Compute X font id from font struct, just once.
10603
106042008-08-26 Eli Zaretskii <eliz@gnu.org>
10605
10606 * term.c (get_named_tty): Fix last change.
10607
106082008-08-26 Chong Yidong <cyd@stupidchicken.com>
10609
10610 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 10611 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
10612
106132008-08-25 Eli Zaretskii <eliz@gnu.org>
10614
10615 * frame.c (do_switch_frame): Mark previously displayed frame as
10616 obscured for FRAME_MSDOS_P frames as well.
10617
106182008-08-24 Eli Zaretskii <eliz@gnu.org>
10619
10620 * frame.c (make_terminal_frame): Initialize f->terminal,
10621 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10622 Set the top frame to newly created frame.
10623 (Fmake_terminal_frame): Reuse the_only_display_info.
10624
10625 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10626 estimating available memory.
10627
b97439ce 106282008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
10629
10630 * nsterm.m (ns_draw_window_cursor): Don't call
10631 NSDisableScreenUpdates and NSEnableScreenUpdates on
10632 non-NS_IMPL_COCOA systems.
10633
106342008-08-23 Andreas Schwab <schwab@suse.de>
10635
10636 * process.c (procfs_system_process_attributes): Fix use of
10637 uninitialized variables.
10638
106392008-08-23 Eli Zaretskii <eliz@gnu.org>
10640
10641 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10642
10643 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10644 calling tty-set-up-initial-frame-faces.
10645
b8ff72fa
SM
10646 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10647 Allow MSDOS frames along with X frames.
aac0c6e3
MR
10648
10649 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10650 addition to output_termcap.
10651
10652 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10653
10654 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10655 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10656 highlight.
10657
10658 * process.c [!subprocesses]: Define QCname.
10659 (syms_of_process): Intern and staticpro it.
10660
10661 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
10662 Adjust for changes in encoding/decoding routines.
10663 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
10664 encode_coding and decode_coding.
10665
b8ff72fa 10666 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
10667
10668 * dosfns.c: Include frame.h before termhooks.h.
10669 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10670 variable termscript.
10671
10672 * s/msdos.h (USER_FULL_NAME): Define.
10673 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10674
10675 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10676 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10677 pw->pw_gecos.
10678
10679 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10680 SELECTED_FRAME as additional (1st) argument.
10681 (tty_read_avail_input): Handle output_msdos_raw in
10682 addition to output_termcap.
10683
10684 * msdos.c: Include frame.h before termhooks.h.
10685 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10686 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10687 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10688 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10689 (IT_set_terminal_modes, IT_reset_terminal_modes)
10690 (IT_set_frame_parameters): Use tty->termscript instead of a global
10691 variable termscript.
10692 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
10693 global variable terminal_coding. Don't refer to
10694 Vnonascii_translation_table.
10695 (internal_terminal_init): Set Vwindow_system in current_kboard.
10696 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
10697 Announce date and time of session start, if termscript is open.
10698 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
10699 term.c:init_tty). Open termscript only of not already open.
10700 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
10701 here instead of dos_ttraw. Don't initialize display if this is an
10702 initial tty. Don't set FRAME_FONT.
10703 (Vwindow_system_version): Bump to 23.
10704 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
10705 is available, set up mouse_position_hook.
10706 (dos_ttraw, IT_set_terminal_modes): If called with initial
10707 terminal, do nothing.
10708 (IT_set_frame_parameters): Handle the Qtty_type frame
10709 parameter by calling internal_terminal_init.
10710 (dos_set_window_size, show_mouse_face)
10711 (clear_mouse_face, IT_note_mode_line_highlight)
10712 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
10713 (dos_rawgetc): Use tty_display_info instead of x_display_info.
10714 (initialize_msdos_display): New function.
10715 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
10716 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
10717 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
10718 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 10719 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
10720 (request_sigio, unrequest_sigio): Don't define, now defined on
10721 sysdep.c.
10722 (IT_write_glyphs): Rewrite to use encode_terminal_code.
10723
10724 * term.c [MSDOS]: Include msdos.h.
10725 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
10726 conditional to DOS_NT. Allow only one call to this function in a
10727 session. Don't allocate a new struct tty_display_info; instead,
10728 reuse the_only_display_info. Call get_tty_size to get screen
10729 dimensions. Call init_baud_rate to set bad_rate.
10730 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
10731 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 10732 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
10733 (get_tty_terminal, get_named_tty, Ftty_type)
10734 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
10735 output_termcap.
b8ff72fa
SM
10736 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
10737 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 10738 only when subprocesses are supported.
aac0c6e3
MR
10739
10740 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
10741 f->output_data.x.
10742 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
10743 terminal devices.
10744
5582fbc7 10745 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
10746 x_output.
10747 (FRAME_FONT): Use output_data.tty.
10748 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
10749 (struct x_display_info): Rename from display_info. Update all users in
10750 msdos.c.
aac0c6e3 10751 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 10752 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
10753 (dos_ttraw): Update prototype.
10754
10755 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
10756 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
10757
107582008-08-23 Jason Rumney <jasonr@gnu.org>
10759
10760 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
10761 (fn_TIFFSetDirectory): New library function used.
10762 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
10763 (tiff_load): Use :index to select among multiple images. Set count
10764 property when multiple images exist.
10765 (gif_format): Use :index, not :image.
10766
107672008-08-23 Chong Yidong <cyd@stupidchicken.com>
10768
10769 * xdisp.c (try_scrolling): Check INT_MAX instead of
10770 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
10771 to obtain INT_MAX.
10772
107732008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
10774
10775 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
10776
107772008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
10778
10779 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
10780 GNUstep library location.
10781
107822008-08-21 Chong Yidong <cyd@stupidchicken.com>
10783
10784 * xfaces.c (x_update_menu_appearance): Check validity of menu font
10785 before using it.
10786
10787 * puresize.h (BASE_PURESIZE): Increase to 1250000.
10788
107892008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10790
10791 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
10792 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
10793 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
10794 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
10795 (EmacsApp-cursor_blink_handler): Remove declaration.
10796 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
10797 match 01 Feb 2008 changes in xterm.c.
10798 (ns_read_socket): Add cast to avoid warning.
10799 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
10800 GNUstep.
10801
108022008-08-20 Chong Yidong <cyd@stupidchicken.com>
10803
10804 * xselect.c (x_get_foreign_selection): Return nil if desired
10805 selection could not be obtained, instead of signalling an error.
10806
108072008-08-20 David Reitter <david.reitter@gmail.com>
10808
10809 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
10810 * nsterm.m: Remove ns-specific code for cursor blinking.
10811 (ns_draw_window_cursor): Clear cursor properly rather than
10812 redrawing the area. Respect width of bar cursors.
10813 These changes enable the use of generic blink-cursor-mode and
10814 generic cursor types in NS and support smooth cursor movements (do
10815 not blink off after command).
10816 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
10817 Nextstep, too.
10818
108192008-08-19 Kenichi Handa <handa@m17n.org>
10820
10821 * font.c (Vfont_log_deferred): New variable.
10822 (font_add_log): Check Vfont_log_deferred.
10823 (font_deferred_log): New function.
10824
10825 * font.h (font_deferred_log): Extern it.
10826
10827 * fontset.c (reorder_font_vector): Use encoding charset of fonts
10828 for sorting.
10829 (face_for_char): Use deferred log.
10830
108312008-08-18 Kenichi Handa <handa@m17n.org>
10832
10833 * fontset.c (face_for_char): Add font log.
10834
10835 * font.c (font_add_log): Add the font properties :script, :lang,
10836 and :otf in the log.
10837
108382008-08-17 Chong Yidong <cyd@stupidchicken.com>
10839
10840 * xdisp.c: Remove dead code.
10841 (handle_invisible_prop, next_overlay_string): Defer call to
10842 setup_for_ellipsis.
10843 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
10844
108452008-08-15 Chong Yidong <cyd@stupidchicken.com>
10846
10847 * xfaces.c (lookup_derived_face): Properly handle possible zero
10848 return value of get_lface_attributes.
10849 (merge_faces): Don't tell lookup_derived_face to signal an error
10850 if face is not found.
10851
10852 * dired.c (Fdirectory_files): Doc fix.
10853
10854 * process.c (make_process): Initialize kill_without_query struct
10855 member.
10856
108572008-08-15 Eli Zaretskii <eliz@gnu.org>
10858
10859 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10860 Alternative calculation of totphys for Visual Studio 6.
10861
10862 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10863
10864 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10865 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10866 All users changed.
10867 (stat): Only root directory passed to GetDriveType. Allow RAM
10868 disk as well as local fixed disk when w32-get-true-file-attributes
10869 is set to `local'.
10870 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10871 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10872 (w32_cached_id, w32_add_to_cache): New functions.
10873 (get_name_and_id): Look account names in the cache before calling
10874 lookup_account_sid.
10875 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10876 New initialization flags.
10877 (globals_of_w32): Initialize them to zero.
10878 (w32_system_process_attributes): Use w32_cached_id and
10879 w32_add_to_cache.
10880
108812008-08-14 Lawrence Mitchell <wence@gmx.li>
10882
10883 * lread.c (Fread_char, Fread_char_exclusive): If no character
10884 event is read before timeout is reached, return nil, rather than
10885 converting to a number.
10886
108872008-08-14 Chong Yidong <cyd@stupidchicken.com>
10888
10889 * fns.c (use_dialog_box): Doc fix.
10890
10891 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10892 on OS X.
10893
108942008-08-13 Chong Yidong <cyd@stupidchicken.com>
10895
10896 * frame.c (Qns_parse_geometry): New var.
10897 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10898
108992008-08-11 Chong Yidong <cyd@stupidchicken.com>
10900
10901 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10902 space character in calculating tabs.
10903
109042008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10905
10906 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10907
109082008-08-10 Glenn Morris <rgm@gnu.org>
10909
10910 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10911 silence gcc "limited range of data type" warnings in some
10912 make_fixnum_or_float calls.
10913
109142008-08-09 Eli Zaretskii <eliz@gnu.org>
10915
10916 * w32.c (w32_system_process_attributes): If the process does not
10917 exist, return nil.
10918
10919 * w32.c: Include thelp32.h, psapi.h and coding.h.
10920 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10921 declarations.
10922 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10923 (Process32Next_Proc): New typedefs.
10924 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10925 (g_b_init_process32_next, g_b_init_open_thread_token)
10926 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10927 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10928 (g_b_init_get_process_working_set_size)
10929 (g_b_init_global_memory_status_ex): New static variables.
10930 (globals_of_w32): Initialize them.
10931 (create_toolhelp32_snapshot, process32_first, process32_next)
10932 (open_thread_token, impersonate_self, revert_to_self)
10933 (get_process_memory_info, get_process_working_set_size)
10934 (global_memory_status, global_memory_status_ex): New wrapper
10935 functions.
10936 (w32_list_system_processes, w32_system_process_attributes)
10937 (enable_privilege, restore_privilege, ltime, process_times):
10938 New functions.
10939 (convert_time_raw): New function.
10940 (convert_time): Remove conversion of FILETIME into time in 100
10941 nsec units, call convert_time_raw instead.
10942
10943 * process.h (w32_list_system_processes, w32_system_process_attributes):
10944 Add prototypes.
10945 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10946 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10947 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10948 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10949
10950 * process.c (Fsystem_process_attributes): Doc fix.
10951
109522008-08-08 Chong Yidong <cyd@stupidchicken.com>
10953
10954 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10955 a continued multi-char glyph; if so, advance to the actual glyph.
10956
109572008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10958
10959 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10960
10961 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10962 (.m.o): Use it.
10963 * config.in: Regenerate.
10964
109652008-08-07 Chong Yidong <cyd@stupidchicken.com>
10966
10967 * xdisp.c (redisplay_window): Revert last change.
10968 (try_window): Check bottom scroll margin too.
10969
109702008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10971
10972 * config.in: Regenerate.
10973
10974 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10975 -list-load-path-shadows'.
10976 (nsgui.h): Reduce number of things depending on it.
10977
109782008-08-06 Chong Yidong <cyd@stupidchicken.com>
10979
10980 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10981 instead of window-end which does the wrong thing at eob.
10982 (try_cursor_movement): Minor optimization.
10983 (redisplay_window): If scroll margin is defined, don't assume
10984 window doesn't need scrolling.
10985
109862008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10987
10988 * config.in: Regenerate.
10989
10990 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10991 (mostlyclean): Don't delete *.d under NS.
10992
10993 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10994
109952008-08-06 Kenichi Handa <handa@m17n.org>
10996
10997 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10998
109992008-08-06 Andreas Schwab <schwab@suse.de>
11000
11001 * config.in: Regenerate.
11002
110032008-08-05 Chong Yidong <cyd@stupidchicken.com>
11004
11005 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11006 forcing a window start.
11007
11008 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11009 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11010
110112008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11012
11013 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11014 argument.
11015
110162008-08-05 Juanma Barranquero <lekktu@gmail.com>
11017
11018 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11019 <scroll-down-aggressively, before-change-functions>:
11020 <after-change-functions>: Reflow docstrings.
11021
110222008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 11023 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
11024
11025 Dock menu customization, based on a patch by Ken Raeburn, plus some
11026 other fixes.
11027 * nsmenu.m (dockMenu): New variable.
11028 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11029
11030 * nsterm.h (dockMenu): Declare.
11031
11032 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11033 (ns_term_init): Initialize dockMenu.
11034 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11035 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11036 left.
11037
11038 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11039
110402008-08-04 Chong Yidong <cyd@stupidchicken.com>
11041
11042 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11043
11044 * config.in: Regenerate.
11045
110462008-08-04 Seiji Zenitani <zenitani@mac.com>
11047
11048 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11049
110502008-08-04 Chong Yidong <cyd@stupidchicken.com>
11051
11052 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11053
110542008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11055
11056 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11057
11058 * keyboard.h: Comment an #endif.
11059
11060 * lisp.h (have_menus_p): Adjust comment.
11061
11062 * menu.c (find_and_return_menu_selection): Fix comparison with
11063 client_data.
11064
11065 * nsmenu.m (popup_activated_flag): New variable.
11066 (popup_activated): New function.
11067 (menu-or-popup-active-p): New exported lisp definition.
11068 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11069 when popup done.
11070 (ns_popup_dialog): Set popup_activated_flag.
11071
11072 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11073 version for GNUstep (handled by conditional typedef in nsterm.m).
11074 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11075 in rgb.txt).
11076
11077 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11078
11079 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11080
11081 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11082
11083 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11084 shortcircuit if popup_activated like GTK and X toolkit.
11085
11086 * m/inter386.h: Change DARWIN to DARWIN_OS.
11087
11088 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11089 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11090 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11091 comment on NO_SOCK_SIGIO.
11092
110932008-08-03 Chong Yidong <cyd@stupidchicken.com>
11094
11095 * nsterm.m (windowDidResize): Remove stopModal call.
11096
110972008-08-03 Andreas Schwab <schwab@suse.de>
11098
11099 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11100 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11101
111022008-08-02 Chong Yidong <cyd@stupidchicken.com>
11103
11104 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11105 Don't use uninitialized pointer variable when using getrlimit.
11106
111072008-08-02 Jason Rumney <jasonr@gnu.org>
11108
11109 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11110
111112008-08-02 Eli Zaretskii <eliz@gnu.org>
11112
11113 * alloc.c (NSTATICS): Bump to 0x640.
11114
11115 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11116
11117 * lisp.h: Add prototype for directory_files_internal.
11118
11119 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11120 New functions.
11121 (syms_of_process): Defsubr them. Add initializations for various
11122 Q* symbols used in procfs_system_process_attributes.
11123 (procfs_list_system_processes, procfs_system_process_attributes)
11124 [HAVE_PROCFS]: New functions.
11125 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11126 (procfs_get_total_memory): New functions.
11127
111282008-08-01 Juanma Barranquero <lekktu@gmail.com>
11129
11130 * xfaces.c (Fx_load_color_file): Fix previous change;
11131 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11132
111332008-08-01 Michael Albinus <michael.albinus@gmx.de>
11134
11135 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11136
111372008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11138
11139 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11140
111412008-08-01 Chong Yidong <cyd@stupidchicken.com>
11142
11143 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11144
11145 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11146 define NSApplicationDelegateReplySuccess.
11147 (EmacsView -converstationIdentifier): Use long instead of
11148 NSInteger for GNUstep, since it doesn't have NSInteger.
11149
11150 * xmenu.c: Revert last change.
11151
11152 * keyboard.h: Fix last change.
11153
111542008-08-01 Juanma Barranquero <lekktu@gmail.com>
11155
11156 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11157 on Windows.
11158
111592008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11160
11161 Warning clearing and clean-up in NS port.
11162 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11163 Add prototypes.
11164 * nsgui.h (FACE_DEFAULT): Remove, unused.
11165 (XGCValues): Change colors to unsigned long.
11166 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11167 nsterm.m.
11168 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11169 (ns_list_fonts): Remove, unused.
11170 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11171 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11172 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11173 (nsfont_draw): Compare face colors to 0, not nil.
11174 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11175 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11176 (-addSubmenuWithTitle:): Use NSMenuItem class.
11177 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11178 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11179 (ns_clip_to_row): Make gc arg a BOOL.
11180 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11181 ns_clip_to_row() call.
11182 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11183 used). Cast FRAME_FONT assignments.
11184 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11185 (ns_string_to_lispmod): Change arg to const char.
11186 (ns_term_init): Use NSMenuItem class.
11187 (EmacsApp -openFile:): Move to different section of file.
11188 (EmacsApp -application:openFiles:): Don't return a value, call
11189 -replyToOpenOrPrint:.
11190 (EmacsView -keyDown:): Fix up cast.
11191 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11192 (EmacsView -menuDown:): Cast tag in call to
11193 find_and_call_menu_selection().
11194 (ns_list_fonts): Remove, unused.
11195 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11196 (ns_fontname_to_xlfd): Make static.
11197 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11198 Remove prototypes (now in keyboard.h).
11199 (next_menubar_widget_id): Remove, unused.
11200 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11201 Remove prototypes (now in keyboard.h).
11202 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11203
112042008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11205
11206 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11207 (floatfns.o): Depend on syssignal.h.
11208 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11209
11210 * systty.h: Fix previous change that removed BSD_TERMIOS.
11211 Add comments to #ifdefs.
11212
112132008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11214
11215 * w32fns.c (w32-load-color-file): Remove.
11216 (x-open-connection): Use renamed Fx_load_color_file.
11217 * xfaces.c (x-load-color-file): Add.
11218 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11219 Emacs.clr.
11220 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11221
112222008-07-31 Michael Albinus <michael.albinus@gmx.de>
11223
11224 * dbusbind.c (Fdbus_call_method_asynchronously)
11225 (Fdbus_method_error_internal): New defuns.
11226 (xd_read_message): Handle also reply messages.
11227 (Vdbus_registered_functions_table): Extend docstring.
11228
112292008-07-31 Juanma Barranquero <lekktu@gmail.com>
11230
11231 * keyboard.c (gobble_input): Fix previous change.
11232
112332008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11234
11235 * bitmaps/README:
11236 * xfns.c:
11237 * termcap.c:
11238 * term.c:
11239 * syswait.h:
11240 * systty.h:
11241 * systime.h:
11242 * syssignal.h:
11243 * sysdep.c:
11244 * process.h:
11245 * process.c:
11246 * print.c:
11247 * ndir.h:
11248 * lread.c:
11249 * keyboard.c:
11250 * getpagesize.h:
11251 * floatfns.c:
11252 * fileio.c:
11253 * emacs.c:
11254 * doc.c:
11255 * dispnew.c:
11256 * dired.c:
11257 * data.c:
11258 * callproc.c:
11259 * buffer.c:
11260 * README:
11261 * Makefile.in:
11262 * s/template.h:
11263 * s/msdos.h:
11264 * m/vax.h: Remove VMS support.
11265 * s/vms.h:
11266 * vlimit.h:
11267 * uaf.h:
11268 * temacs.opt:
11269 * param.h:
11270 * ioctl.h: Remove file.
11271
112722008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11273
11274 * s/ms-w32.h (MULTI_KBOARD): Remove.
11275 * xterm.c:
11276 * xselect.c:
11277 * xfns.c:
11278 * window.c:
11279 * w32term.c:
11280 * w32fns.c:
11281 * terminal.c:
11282 * termhooks.h:
11283 * term.c:
11284 * sysdep.c:
11285 * keyboard.h:
11286 * keyboard.c:
11287 * frame.h:
11288 * frame.c:
11289 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11290 * config.in: Regenerate.
11291
112922008-07-30 Jason Rumney <jasonr@gnu.org>
11293
11294 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11295
11296 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11297 (w32font_open_internal): Get unicode version of textmetrics.
11298 Don't enable or disable glyph indices here.
11299 (w32font_open): Disable use of glyph indices.
11300
11301 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11302
113032008-07-30 Chong Yidong <cyd@stupidchicken.com>
11304
11305 * minibuf.c (Vread_buffer_function): Doc fix.
11306
113072008-07-30 John Paul Wallington <jpw@pobox.com>
11308
11309 * minibuf.c (read_buffer_completion_ignore_case): New var.
11310 (Fread_buffer): Use it.
11311
113122008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11313
11314 * systty.h (sensemode): Remove empty #if. Remove reference to
11315 BSD_TERMIOS, unused.
11316
11317 * sysdep.c: Remove reference to DGUX.
11318 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11319
11320 * config.in: Regenerate.
11321
113222008-07-30 Jason Rumney <jasonr@gnu.org>
11323
11324 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11325
113262008-07-29 Jason Rumney <jasonr@gnu.org>
11327
11328 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11329 is populated.
11330 (uniscribe_encode_char): Always use uniscribe.
11331 Avoid using context if cache is populated.
11332
113332008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11334
11335 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11336 open menu.
11337
11338 * gtkutil.c (menu_nav_ended): Remove.
11339 (create_menus): Remove signal connect for menu_nav_ended.
11340
113412008-07-28 Chong Yidong <cyd@stupidchicken.com>
11342
11343 * xdisp.c (redisplay_window): Check return value of
11344 compute_window_start_on_continuation_line before forcing a window
11345 start.
11346
113472008-07-28 Jason Rumney <jasonr@gnu.org>
11348
11349 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11350
11351 * w32term.c (w32_enable_unicode_output, cleartype_active):
11352 Remove obsolete display options.
11353 (x_draw_glyph_string_background): Don't use old cleartype_active
11354 workaround.
11355 (w32_initialize): Remove cleartype_active initialization.
11356 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11357
113582008-07-28 Andreas Schwab <schwab@suse.de>
11359
11360 * lisp.h (init_weak_hash_tables, syms_of_font)
11361 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11362 (remove_hash_entry): Don't declare.
11363 * eval.c (maybe_call_debugger): Make static and move before use.
11364 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11365 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11366 * xterm.h (x_set_frame_alpha): Declare.
11367
113682008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11369
11370 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11371 (create_menus): Connect selection-done to menu_nav_ended.
11372
113732008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11374
11375 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11376 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11377 parameter with read of 'alpha' one.
11378 (Qns_frame_parameter): Remove.
5582fbc7 11379 * nsselect.m (selection-coding-system)
aac0c6e3
MR
11380 (next-selection-coding-system, Vselection_coding_system)
11381 (Vnext_selection_coding_system): Drop.
11382
113832008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11384
11385 * nsfns.m (do-applescript, do_applescript): Rename to
11386 ns-do-applescript, ns_do_applescript, and move within file.
11387
113882008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11389
11390 Remove support for Mac Carbon.
11391 * mactoolbox.c:
11392 * macterm.h:
11393 * macterm.c:
11394 * macselect.c:
11395 * macmenu.c:
11396 * macgui.h:
11397 * macfns.c:
11398 * mac.c: Remove file.
11399 * s/darwin.h:
11400 * m/intel386.h:
11401 * xfaces.c:
11402 * xdisp.c:
11403 * window.c:
11404 * tparam.c:
11405 * termhooks.h:
11406 * termcap.c:
11407 * term.c:
11408 * syssignal.h:
11409 * sysselect.h:
11410 * sysdep.c:
11411 * process.c:
11412 * lread.c:
11413 * lisp.h:
11414 * keyboard.c:
11415 * image.c:
11416 * fringe.c:
11417 * frame.h:
11418 * frame.c:
11419 * fontset.c:
11420 * font.h:
11421 * font.c:
11422 * fns.c:
11423 * fileio.c:
11424 * emacs.c:
11425 * dispnew.c:
11426 * dispextern.h:
11427 * config.in:
11428 * atimer.c:
2ae37cf0 11429 * Makefile.in: Remove code for Carbon.
aac0c6e3 11430
f0131492 114312008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11432
11433 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11434
114352008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11436
11437 * macterm.h (kCGBitmapByteOrder32Host): New define for
11438 non-universal SDKs.
11439
11440 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11441 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11442
11443 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11444 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11445
114462008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11447
11448 * w32inevt.c: Include dispextern.h.
11449
114502008-07-26 Andreas Schwab <schwab@suse.de>
11451
11452 * print.c (print_object): Fix off-by-one in last change.
11453
114542008-07-25 Juanma Barranquero <lekktu@gmail.com>
11455
11456 * term.c (syms_of_term): Don't initialize default_orig_pair,
11457 default_set_foreground and default_set_background on Windows.
11458
114592008-07-25 Jason Rumney <jasonr@gnu.org>
11460
11461 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11462 ScriptItemize. Clean up return value checking. Remove unused
11463 variables.
11464 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11465 shaping engine.
11466
11467 * w32font.c (w32font_has_char): Handle the case where we can't
11468 determine the script for a character.
11469
114702008-07-25 Chong Yidong <cyd@stupidchicken.com>
11471
11472 * term.c (syms_of_term): Initialize default_orig_pair,
11473 default_set_foreground, and default_set_background.
11474
11475 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11476 clash (bug#86).
11477 (getloadavg): Callers changed.
11478
11479 * image.c (svg_load_image): Fix last change.
11480 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11481 image size is valid. Use g_object_unref instead of deprecated
11482 rsvg_handle_free to free rsvg handle.
11483 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11484
114852008-07-25 Jason Rumney <jasonr@gnu.org>
11486
11487 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11488 surrogates before looking up glyph index.
11489 (w32font_text_extents): Encode as surrogates if falling back to
11490 functions that need UTF-16 wide chars.
11491
11492 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11493 BMP as surrogates before looking up glyph index.
11494
114952008-07-25 Chong Yidong <cyd@stupidchicken.com>
11496
11497 * image.c (svg_load_image): Check for failure in return value of
11498 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11499
115002008-07-25 Jason Rumney <jasonr@gnu.org>
11501
11502 * w32font.c (Fx_select_font): Reverse sense of second arg.
11503
115042008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11505
11506 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11507 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11508
11509 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11510 (PURESIZE): Use it.
11511
115122008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11513
11514 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11515 * m/alpha.h (TEXT_END):
11516 * m/ibmrs6000.h (TEXT_END):
11517 * m/macppc.h (TEXT_END):
11518 * s/darwin.h (TEXT_END):
11519 * s/msdos.h (TEXT_END): Remove, unused.
11520 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11521 * s/cygwin.h: Remove comment.
11522
11523 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11524 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11525 * m/intel386.h (DOT_GLOBAL_START):
11526 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11527 (USG): Remove, file not used on USG platforms.
11528
11529 * Makefile.in (HAVE_X11): Remove empty #else.
11530
115312008-07-24 Andreas Schwab <schwab@suse.de>
11532
11533 * fileio.c (Finsert_file_contents): Properly adjust undo list
11534 after format conversion.
11535
115362008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11537
11538 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11539 (menu_nav_ended): Remove.
11540 (create_menus): Remove signal connect for menu_nav_ended.
11541 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11542 create_menus.
11543 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11544
115452008-07-23 Jason Rumney <jasonr@gnu.org>
11546
11547 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
11548 with opened font.
11549 (w32font_open): Set font type to gdi.
11550
11551 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
11552
115532008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
11554
11555 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
11556 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
11557 defines it.
11558 * unexec.c (ADDR_CORRECT): Define unconditionally.
11559
11560 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
11561
11562 * unexec.c: Remove code depending on !COFF and USG, the file is
11563 not used for such systems.
11564
11565 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
11566 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
11567 (LD_SWITCH_SYSTEM_1): Remove, update users.
11568
11569 * s/darwin.h (DATA_END):
11570 * m/intel386.h (DATA_END):
11571 * m/ibmrs6000.h (DATA_END):
11572 * m/alpha.h (DATA_END): Remove, unused.
11573
11574 * config.in: Regenerate.
11575 * s/ms-w32.h (subprocesses): Define unconditionally.
11576 * s/template.h (subprocesses): Update comment.
11577 * s/vms.h (subprocesses):
11578 * s/usg5-4.h (subprocesses):
11579 * s/hpux10-20.h (subprocesses):
11580 * s/gnu-linux.h (subprocesses):
11581 * s/cygwin.h (subprocesses):
11582 * s/bsd-common.h (subprocesses):
11583 * s/aix4-2.h (subprocesses):
11584 * s/darwin.h (subprocesses): Do not define, defined by default now.
11585
11586 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11587 Remove all references.
11588 (temacs): Add GNUstep specific ld flags.
11589
11590 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11591 similarly to what X does.
11592
115932008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11594
11595 * nsfns.m (x-list-fonts): Remove.
11596 (syms_of_nsfns): Drop the x-list-fonts declaration.
11597 * nsterm.m: Get rid of remaining "//" comments.
11598
115992008-07-22 Chong Yidong <cyd@stupidchicken.com>
11600
11601 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11602
11603 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11604 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11605 (Fns_own_selection_internal, Fx_disown_selection_internal)
11606 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11607
11608 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11609 ... */' style of docstrings. Doc fixes.
11610
116112008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11612
11613 * terminfo.c (UP, BC, PC): Undo previous change.
11614
11615 * nsfns.m: Rename ns prefixed functions/variables to the
11616 corresponding x versions. Update references.
11617
116182008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11619
11620 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11621
116222008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11623
11624 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11625 Remove forwarding functions.
11626 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11627 non-static.
11628 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11629 non-static.
11630 (ns_frame_parm_handlers): Use the new names.
11631 (syms_of_nsfns): Move to the end of file.
11632
11633 * nsterm.m (syms_of_nsterm): Move to the end of file.
11634
11635 * dispnew.c (init_display): Remove code for X10.
11636
116372008-07-22 Jason Rumney <jasonr@gnu.org>
11638
11639 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11640 bare drive.
11641
116422008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11643
11644 * nsterm.m (syms_of_nsterm): Remove debugging println.
11645
116462008-07-22 David Reitter <david.reitter@gmail.com>
11647
11648 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11649 Carbon implementation of the same functionality: execute arbitrary
11650 AppleScript code.
11651
116522008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11653
11654 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11655 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11656 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11657 (Fx_display_mm_height, Fx_display_mm_width)
11658 (Fx_display_backing_store, Fx_display_visual_class)
11659 (Fx_display_save_under, Fx_open_connection)
11660 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11661 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11662 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11663 (Fx_display_pixel_width, Fx_display_pixel_height)
11664 (Fx_display_usable_bounds, Fx_display_planes)
11665 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11666 ... */' style of docstrings.
11667
116682008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11669
11670 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11671 on this platform.
11672 (mips):
11673 * m/iris4d.h (mips): Do not define.
11674 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11675
11676 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11677
11678 * image.c:
11679 * nsfns.m:
11680 * nsselect.m:
11681 * nsterm.h:
11682 * nsterm.m: Rename ns prefixed functions/variables to the
11683 corresponding x versions. Update references.
11684
11685 * m/ibms390x.h (NO_REMAP): Do not undefine.
11686
11687 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11688
116892008-07-21 Chong Yidong <cyd@stupidchicken.com>
11690
11691 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
11692 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
11693 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
11694 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
11695 (Fns_display_mm_height, Fns_display_mm_width)
11696 (Fns_display_backing_store, Fns_display_visual_class)
11697 (Fns_display_save_under, Fns_open_connection)
11698 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
11699 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
11700 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11701 (Fns_display_pixel_width, Fns_display_pixel_height)
11702 (Fns_display_usable_bounds, Fx_display_planes)
11703 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
11704
117052008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
11706
11707 * print.c (print_object): Check print_depth before searching for
11708 circularities.
11709
117102008-07-21 Michael Albinus <michael.albinus@gmx.de>
11711
11712 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
11713 only sprintf.
11714
117152008-07-21 Kenichi Handa <handa@m17n.org>
11716
11717 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
11718
117192008-07-20 Andreas Schwab <schwab@suse.de>
11720
11721 * syntax.c (find_start_pos, find_start_value)
11722 (find_start_value_byte, find_start_begv, find_defun_start)
11723 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
11724
117252008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11726
11727 * s/sol2-3.h: Insert contents of s/sol2.h.
11728 (LD_SWITCH_SYSTEM): Remove redundant definition.
11729 * s/sol2.h: Remove, unused.
11730
117312008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11732
11733 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
11734
117352008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11736
11737 * Makefile.in (ns_appdir): Fix typo in find command.
11738
117392008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11740
11741 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
11742
11743 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
11744 added not supported anymore.
11745
11746 * s/usg5-4-2.h (LIBS_SYSTEM):
11747 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
11748
11749 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11750 * s/lynxos.h (GETPGRP_NO_ARG):
11751 * s/hpux10-20.h (NO_SIOCTL_H):
11752 * s/gnu.h (GETPGRP_NO_ARG):
11753 * s/gnu-linux.h (NO_SIOCTL_H):
11754 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11755 * s/cygwin.h (GETPGRP_NO_ARG):
11756 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
11757 (C_DEBUG_SWITCH): Remove duplicate definition.
11758
11759 * m/ibms390.h: Remove boilerplate comments.
11760
11761 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
11762
11763 * process.c (HAVE_SERIAL): Consolidate ifdefs.
11764 (wait_reading_process_output): Remove code for SunOS, platform not
11765 supported anymore. Use SOLARIS2 instead of sun.
11766
117672008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11768
11769 * font.c (font_open_by_name): Under NS, default lface height to zero.
11770 (font_open_for_lface): Under NS, set size based on frame fontsize.
11771 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
11772 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
11773
117742008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11775
11776 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
11777 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
11778 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
11779 YES/NO.
11780 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
11781 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
11782 * Makefile.in (clean): Clear out build destination dir.
11783
117842008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11785
11786 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
11787 xterm, xselect.
11788 * lisp.h: Remove declaration of hash_remove.
11789 * nsgui.h: Remove redefinitions of hash_remove.
11790 * fns.c (hash_remove): Rename to hash_remove_from_table.
11791
117922008-07-19 Seiji Zenitani <zenitani@mac.com>
11793
11794 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
11795 strdup() the family UTF8String before modifying it.
11796
117972008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11798
11799 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
11800 NS_FACE_BACKGROUND with 0 instead of nil.
11801 * nsfont.m (nsfont_draw): Same.
11802
118032008-07-19 Chong Yidong <cyd@stupidchicken.com>
11804
11805 * nsfns.m (ns_set_background_color): Fix crash.
11806
118072008-07-18 Chong Yidong <cyd@stupidchicken.com>
11808
11809 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
11810
118112008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
11812
11813 * puresize.h (BASE_PURESIZE): Increase to 1240000.
11814
118152008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11816
11817 * gtkutil.c: Include <config.h> instead of "config.h".
11818
11819 * lisp.h (Foverlay_buffer): Add EXFUN.
11820
11821 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
11822 child process to complete child_setup. Undo 2005-09-21 change.
11823
11824 * s/darwin.h: Mention setsid after vfork.
11825
118262008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11827
11828 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
11829 Depend on macgui.h.
11830
11831 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
11832 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
11833
11834 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
11835 and f19.
11836 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
11837
11838 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
11839 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
11840 Remove enumerators.
11841
11842 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
11843 Check if FACE_FROM_ID returns NULL.
11844
118452008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
11846
11847 * w32inevt.c (change_frame_size): Remove extern declaration.
11848 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
11849 change_frame_size.
11850
118512008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11852
11853 * getloadavg.c: Revert last change (2008-07-15).
11854
118552008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11856
11857 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 11858 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
11859 from configure.
11860
118612008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11862
11863 * s/sol2.h:
11864 * s/sol2-4.h: Reorganize conditionals.
11865
11866 * ecrt0.c: Remove code depending on m68000, not used anymore.
11867
11868 * fns.c (hash_remove): Make static.
11869 * lisp.h (hash_remove): Don't prototype.
11870
11871 * m/ibmrs6000.h:
11872 * m/ibms390x.h:
11873 * m/macppc.h: Remove boilerplate comments.
11874
11875 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11876 Solaris, which does not need them.
11877
11878 * m/vax.h: Remove comments about unsupported systems.
11879
11880 * s/darwin.h: Reorganize ifdefs.
11881
118822008-07-17 Andreas Schwab <schwab@suse.de>
11883
11884 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11885
118862008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11887
11888 Use SDATA. Follow coding convention of placing operators at
11889 beginning of next line rather than end of previous line, and placing
11890 spaces around infix operators.
11891
11892 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11893 in case it was defined already.
11894 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11895 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11896 ns_default.
11897 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11898 Lisp_Objects.
11899 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11900 (ns_defined_color, ns_color_to_lisp): Declare.
11901 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11902 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11903 it's accepted even with USE_LISP_UNION_TYPE.
11904 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11905 (update_frame_tool_bar): Remove apparently obsolete tests for
11906 non-integerness of f->tool_bar_lines.
11907 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11908 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11909 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11910 (nsfont_open): Don't confuse NULL for Qnil.
11911 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11912 * menu.h (find_and_call_menu_selection):
11913 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11914 (find_and_return_menu_selection): Always return something.
11915 * frame.h: Include dispextern.h for Display_Info.
11916 (display_x_get_resource): Declare.
11917
119182008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11919
11920 * syntax.c: Remove stdio.h include accidentally introduced in
11921 Emacs.app commit.
11922 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11923 NS_IMPL_COCOA.
11924 * keyboard.c (handle_async_input, input_available_signal): Remove
11925 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11926
119272008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11928
11929 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11930 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11931 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11932 Use SDATA.
11933
11934 * keymap.c: Remove all NS-specific code.
11935 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11936 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11937 where_is_preferred_modifier, return a different value depending on how
11938 preferred is the binding.
11939 (where_is_internal): Adjust accordingly.
11940 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11941 Adjust to new preferred_sequence_p.
11942 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11943 * keyboard.c (parse_solitary_modifier): Not static any more.
11944 * keyboard.h (parse_solitary_modifier): Declare.
11945
119462008-07-16 Andreas Schwab <schwab@suse.de>
11947
11948 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11949 of easymenu.
11950
119512008-07-16 Chong Yidong <cyd@stupidchicken.com>
11952
11953 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11954 that we don't move off the line.
11955
119562008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11957
11958 * keyboard.c (Qsuper): Remove.
11959 (parse_menu_item): Don't call where_is_internal specially for NS.
11960
119612008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11962
11963 * s/gnu-linux.h: Remove boilerplate comments.
11964
11965 * m/alpha.h (__ELF__): Consolidate conditions.
11966
11967 * m/m68k.h (linux): Use GNU_LINUX instead.
11968 Remove boilerplate comments.
11969
11970 * m/intel386.h: Undo refactoring from previous change.
11971 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11972 too, remove dead code.
11973 (linux): Use GNU_LINUX instead.
11974
119752008-07-16 Jason Rumney <jasonr@gnu.org>
11976
11977 * w32gui.h: Repeat 26 June changes lost by last change.
11978
119792008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11980
11981 * systty.h: Remove code for Aix on 386, unsupported platform.
11982
11983 * s/ms-w32.h: Remove boilerplate comments.
11984 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11985
11986 * s/gnu-linux.h (TERM): Remove support.
11987 (HAVE_SYSVIPC): Remove, unused.
11988 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11989 for this system.
11990
11991 * process.c: Remove support for IRIS, unused.
11992 Remove support for TERM, not relevant anymore.
11993
11994 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11995 used with the definition.
11996
11997 * s/aix4-2.h (static): Do not undef.
11998
11999 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12000 only used on Aix.
12001 (HAVE_SYSVIPC): Remove, unused.
12002
12003 * m/hp800.h (CANNOT_DUMP): Do not undef.
12004
12005 * m/alpha.h: Fix comment.
12006
12007 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12008 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12009 used by this configuration.
12010 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12011 * unexec.c: Remove code depending on HPUX and
12012 USG_SHARED_LIBRARIES, not used with this file. Remove code
12013 depending on IRIS, unused. Remove if 0-ed code.
12014
12015 * s/template.h: Remove comments about static.
12016
12017 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12018 Remove if 0-ed code.
12019 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12020 were the same as the default.
12021 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12022 Remove boilerplate comments.
12023 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12024 (HAVE_SYSVIPC): Remove, unused.
12025 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12026
12027 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12028 Remove boilerplate comments.
12029 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12030 Remove boilerplate comments.
12031 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12032 Remove boilerplate comments.
12033 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12034
12035 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12036 USG systems which do not use DATA_SEG_BITS.
12037 Refactor code. Remove boilerplate comments.
12038
12039 * m/ibms390.h:
12040 * m/m68k.h:
12041 * s/bsd-common.h:
12042 * s/cygwin.h:
12043 * s/darwin.h:
12044 * s/freebsd.h:
12045 * s/gnu.h:
12046 * s/msdos.h: Remove boilerplate comments.
12047
12048 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12049 do not use this file.
aac0c6e3
MR
12050 (IRIS_4D): Remove, unused.
12051
12052 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12053 do not use this file.
aac0c6e3
MR
12054 (SIGN_EXTEND_CHAR):
12055 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12056 * unexmips.c: Remove file, unused.
12057
12058 * editfns.c (Fuser_full_name): Replace the only use of
12059 USER_FULL_NAME with its value.
12060 * config.in: Regenerate.
12061
120622008-07-16 David Reitter <david.reitter@gmail.com>
12063
12064 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12065 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12066
120672008-07-16 Glenn Morris <rgm@gnu.org>
12068
12069 * emacs.c (system-type): Doc fix.
12070
120712008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12072
12073 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12074 If the cache doesn't work, let's fix it, rather than work around it.
12075
120762008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12077
12078 * Makefile.in: Correct additions for nsfont.o in last commit.
12079 * nsfont.m: New file (forgot last commit).
12080
120812008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12082
12083 * callproc.c (set_initial_environment): Initialize
12084 Vprocess_environment under CANNOT_DUMP (fixes crash when
12085 batch-compiling for bootstrap).
12086
120872008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12088 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 12089
c4cc8b9a
JB
12090 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12091 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
12092
120932008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12094
12095 Changes and additions for NeXTstep windowing system (Cocoa and
12096 GNUstep) support.
12097
12098 * Makefile.in:
12099 * config.in: Support defines and build commands for NS port.
12100 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12101 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12102 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12103 windowing.
12104 (struct face): Add synth_ital field.
12105 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12106 (init_display): Initialize Vinitial_window_system to "ns" when so
12107 compiled.
12108 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12109 (display_arg): Use under NS.
12110 (main): Under NS, allocate autorelease pool and handle command line
12111 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12112 (standard_args): Add NS-specific args.
12113 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12114 * font.c (DEFAULT_ENCODING): New variable.
12115 (font_find_for_lface): Use it.
12116 (syms_of_font): Load syms_of_nsfont under NS.
12117 * font.h: Declare nsfont_driver when compiled under NS.
12118 * fontset.c: When compiling under NS, include nsterm.h.
12119 (fontset_from_font): Autoconstruct fontset under NS.
12120 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12121 symbol, document and use it.
12122 (do_switch_frame): When for_deletion under Cocoa, add
12123 Fraise_frame(Qnil).
12124 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12125 (x_get_arg): Allow "yes" and "no" as boolean values.
12126 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12127 Qright under Cocoa.
12128 (focus-follows-mouse): Default to 0 under NS.
12129 * frame.h (enum output_method): Add output_ns.
12130 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12131 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12132 (FRAME_WINDOW_P): NS-specific definition.
12133 * fringe.c (max_used_fringe_bitmap): Make public.
12134 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12135 (getloadavg): Use NeXT code under descendant OS's.
12136 * image.c (includes and header section, x_create_bitmap_from_data)
12137 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12138 (image_background_transparent, x_clear_image_1)
12139 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12140 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12141 (x_to_xcolors, x_from_xcolors, x_disable_image)
12142 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12143 other GUIs, including XPM support using code originally written for
12144 Carbon GUI.
12145 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12146 using NS API.
12147 (image_ascent): Use font metrics macros instead of direct struct field
12148 access.
12149 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12150 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12151 Also, handle NS as GTK for menu bar purposes.
12152 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12153 toolkit where they differ.
12154 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12155 use cachelist, still needed under NS.
12156 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12157 (struct widget_value): Define it here for menu.c.
12158 * keymap.c (includes): Include modifier internals.
12159 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12160 NS.
12161 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12162 support for preferring sequences using certain modifiers, specified by
12163 the FIRSTONLY argument.
12164 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12165 under NS GNUstep implementation.
12166 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12167 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12168 * menu.c: Include nsterm.h under NS.
12169 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12170 (free_menubar_widget_tree_value, update_submenu_strings)
12171 (find_and_call_menu_selection): Treat NS as X and NT.
12172 (find_and_return_menu_selection): New function, used for popup menus.
12173 * nsgui.h:
12174 * nsterm.h:
12175 * nsfns.m:
12176 * nsimage.m:
12177 * nsmenu.m:
12178 * nsselect.m:
12179 * nsterm.m: New files.
12180 * process.c (wait_reading_process_output): Under NS, call ns_select()
12181 instead of plain select().
12182 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12183 beginning of buffer.
12184 * sysselect.h (init_process): Rename when compiling under Cocoa to
12185 avoid name conflict.
12186 * termhooks.h (display_info): Add ns_display_info to union.
12187 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12188 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12189 COCOA environment.
12190 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12191 unexec() signature. (Note, this will dump, but the resulting file
12192 crashes; unexosx is used instead; keeping around for reference and
12193 possible aid in getting dump working under GNUstep.)
12194 * w32gui.h (button_type, widget_value): Remove definitions (now in
12195 keyboard.h).
12196 * window.c: Include nsterm.h when compiling under NS.
12197 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12198 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12199 other GUI windowing systems.
12200 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12201 GTK.
12202 (x_consider_frame_title): Under NS, set icon type and frame
12203 modified-state indicator; use ns_set_name_as_filename() when using
12204 formatted title.
12205 (update_window_cursor): Make public when compiling under NS.
12206 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12207 (hourglass_atimer, Vhourglass_delay
12208 * xfaces.c (header section, init_frame_faces, clear_font_table)
12209 (defined_color, unload_color, x_face_list_fonts)
12210 (prepare_face_for_display): Add NS support parallel to other GUIs.
12211 Emulate GCs like other non-X GUIs.
12212 (split_font_name): Don't lowercase font name under NS.
12213 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12214 under NS.
12215 * s/darwin.h: Add support for compilation under NS.
12216
122172008-07-15 Jason Rumney <jasonr@gnu.org>
12218
12219 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12220 (w32_show_hourglass): Rename from show_hourglass.
12221 (w32_hide_hourglass): Rename from hide_hourglass.
12222 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12223 (Vhourglass_delay): Declare extern.
12224 (hourglass_started): Remove.
12225
12226 * xdisp.c (Vhourglass_delay): Remove static.
12227 (hourglass_started, start_hourglass, cancel_hourglass):
12228 Don't include these versions on WINDOWSNT.
12229
122302008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12231
12232 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12233 variables (formerly in xfns.c).
12234 (show_hourglass, hide_hourglass): New prototypes (same).
12235 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12236 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12237 in xfns.c).
12238 (syms_of_xdisp): Declare/initialize display-hourglass,
12239 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12240 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12241 formerly in xfns.c.
12242 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12243 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12244 (start_hourglass, cancel_hourglass): Remove.
12245 (show_hourglass, hide_hourglass): Remove prototypes and static
12246 modifiers.
12247 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12248 hourglass_atimer, hourglass_shown_p declaration/initialization.
12249 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12250 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12251 (start_hourglass, cancel_hourglass): Remove.
12252 (show_hourglass, hide_hourglass): Remove prototypes and static
12253 modifiers.
12254 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12255 hourglass_atimer, hourglass_shown_p declaration/initialization.
12256 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12257 (DEFAULT_HOURGLASS_DELAY): Remove.
12258 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12259 hourglass_shown_p declaration/initialization.
12260
122612008-07-14 Jason Rumney <jasonr@gnu.org>
12262
12263 * w32fns.c (w32_get_arg): Remove wrapper function.
12264 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12265 directly.
12266 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12267
122682008-07-14 Kenichi Handa <handa@m17n.org>
12269
12270 * xfont.c (xfont_open): Add workaround for X's bug.
12271
122722008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12273
12274 * fontset.c: Include <stdio.h> unconditionally.
12275
122762008-07-13 Michael Albinus <michael.albinus@gmx.de>
12277
12278 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12279 for filtering.
12280
122812008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12282
12283 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12284
12285 * m/macppc.h:
12286 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12287
c4cc8b9a 12288 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
12289 (SPECIAL_EMACS_INT):
12290 * m/ia64.h (SPECIAL_EMACS_INT):
12291 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12292 * s/gnu.h (NLIST_STRUCT):
12293 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12294 * s/gnu-linux.h (LINUX):
12295 * s/msdos.h (HAVE_FACES):
12296 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12297
12298 * systty.h:
12299 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12300 anymore.
12301
123022008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12303
12304 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12305 always defined as int.
12306
12307 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12308 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12309 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12310 * s/freebsd.h (HAVE_WAIT_HEADER):
12311 * s/bsd-common.h (HAVE_UNION_WAIT):
12312 * s/aix4-2.h (HAVE_WAIT_HEADER):
12313 * m/mips.h (HAVE_UNION_WAIT):
12314 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12315 (COFF, static): Do not define, they are undefined later in the file.
12316
12317 * process.c (update_status): Don't use a union.
12318 (status_convert):
12319 (sigchld_handler): Use int instead of WAITTYPE.
12320
123212008-07-12 Chong Yidong <cyd@stupidchicken.com>
12322
12323 * indent.c (Fvertical_motion): Restore hscroll before moving to
12324 goal column.
12325
123262008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12327
12328 * lisp.h: Remove left over code.
12329
123302008-07-11 Andreas Schwab <schwab@suse.de>
12331
12332 * lisp.h: Fix logic in last change.
12333
12334 * menu.h: New file.
12335 * menu.c: Include it.
12336 * xmenu.c: Likewise.
12337 * Makefile.in: Update dependencies.
12338
123392008-07-11 Kenichi Handa <handa@m17n.org>
12340
12341 * fontset.c (fontset_from_font): Cancel the previous change.
12342
123432008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12344
12345 * lisp.h:
12346 * w32heap.c:
12347 * emacs.c:
12348 * alloc.c: Replace all references of NO_UNION_TYPE with
12349 USE_LISP_UNION_TYPE.
12350
12351 * m/xtensa.h (NO_UNION_TYPE):
12352 * m/vax.h (NO_UNION_TYPE):
12353 * m/template.h (NO_UNION_TYPE):
12354 * m/sparc.h (NO_UNION_TYPE):
12355 * m/mips.h (NO_UNION_TYPE):
12356 * m/macppc.h (NO_UNION_TYPE):
12357 * m/m68k.h (NO_UNION_TYPE):
12358 * m/iris4d.h (NO_UNION_TYPE):
12359 * m/intel386.h (NO_UNION_TYPE):
12360 * m/ibms390x.h (NO_UNION_TYPE):
12361 * m/ibms390.h (NO_UNION_TYPE):
12362 * m/ibmrs6000.h (NO_UNION_TYPE):
12363 * m/ia64.h (NO_UNION_TYPE):
12364 * m/hp800.h (NO_UNION_TYPE):
12365 * m/arm.h (NO_UNION_TYPE):
12366 * m/amdx86-64.h (NO_UNION_TYPE):
12367 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12368 defining it the same.
12369
123702008-07-10 Chong Yidong <cyd@stupidchicken.com>
12371
12372 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12373
123742008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12375
12376 * fileio.c:
50426a04 12377 * sysdep.c:
aac0c6e3
MR
12378 * systty.h:
12379 * m/ibmrs6000.h:
12380 * m/iris4d.h:
12381 * s/aix4-2.h:
12382 * s/freebsd.h:
12383 * s/gnu-linux.h:
12384 * s/hpux10-20.h:
12385 * s/hpux11.h:
12386 * s/netbsd.h:
12387 * s/sol2-3.h:
12388 * s/sol2-4.h:
12389 * s/sol2.h:
12390 * s/usg5-4.h:
12391 * s/vms.h: Remove references to unused variables.
12392
123932008-07-10 Andreas Schwab <schwab@suse.de>
12394
12395 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12396 pattern before matching the generic family.
12397
123982008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12399
12400 * unexec.c:
12401 * s/vms.h:
12402 * s/usg5-4-2.h:
12403 * s/sol2-5.h:
12404 * s/freebsd.h:
12405 * s/darwin.h: Remove dead code.
12406
12407 * m/template.h:
12408 * m/sparc.h:
12409 * m/mips.h:
12410 * m/m68k.h:
12411 * m/iris4d.h:
12412 * m/intel386.h:
12413 * m/ibms390x.h:
12414 * m/ibms390.h:
12415 * m/ia64.h:
12416 * m/hp800.h:
12417 * m/arm.h:
12418 * m/amdx86-64.h: Remove dead code and references to unused
12419 and compiler defined symbols.
12420
12421 * unexmips.c:
12422 * unexelf.c: Remove references to desupported systems.
12423
12424 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12425
12426 * m/powermac.h: Remove boilerplate comments.
12427 (NO_REMAP): Remove unused definition.
12428
12429 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12430 define them.
12431
124322008-07-10 Kenichi Handa <handa@m17n.org>
12433
12434 * xfont.c (xfont_open): Log the reason of failure.
12435
124362008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12437
12438 * fontset.c (fontset_get_font_group):
12439 * font.c (font_check_otf): Specify argument types.
12440
124412008-07-09 Kenichi Handa <handa@m17n.org>
12442
12443 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12444 non-ASCII char is found.
12445
12446 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12447 (reorder_font_vector): Change the arg preferred_family to font.
12448 Prefer the spec matching with font.
12449 (fontset_get_font_group): New function.
12450 (fontset_find_font): Change the format of an element of a realized
12451 fontset. Use fontset_get_font_group.
12452 (fontset_font): Try the current fontset, the default fontset, the
12453 fallbacks of the current fontset, and the fallbacks of the default
12454 fontset in this order.
12455 (face_for_char): Delete the shortcut to use the current font.
12456 (fontset_from_font): Don't set fonts for Latin in the fontset.
12457
12458 * font.h (font_make_object, font_match_p): Adjust prototypes.
12459
12460 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12461
12462 * font.c (font_make_object): New arg entity and pixelsize.
12463 (font_check_otf_features, font_check_otf): New functions.
12464 (font_match_p): Check :lang, :script, and :otf properties.
12465
12466 * xfont.c (xfont_open): Adjust it for the change of
12467 font_make_object.
12468 (xfont_text_extents): Fix initial setting of metrics.
12469
12470 * ftfont.c (struct ftfont_info): New member index, delete member
12471 fc_charset_idx. Make the member order compatible with struct
12472 xftfont_info.
12473 (fc_charset_table): Change charset names to registry names.
12474 (ftfont_pattern_entity): Delete the args registry and
12475 fc_charset_idx. Change the value of :font-entity property
12476 to (FONTNAME . INDEX). Always set :registry property to
12477 `iso10646-1'.
12478 (struct ftfont_cache_data): New struct.
12479 (ftfont_lookup_cache): New arg for_face.
12480 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12481 (ftfont_driver): Set the member otf_capability.
12482 (ftfont_get_charset): Adjust it for the change of
12483 fc_charset_table.
12484 (OTF_TAG_SYM): New macro.
12485 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12486 for the change of fc_charset_table.
12487 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12488 ftfont_pattern_entity. Add FC_INDEX to objset.
12489 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12490 and ftfont_pattern_entity.
12491 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12492 font_make_object, struct ftfont_info.
12493 (ftfont_has_char): Use ftfont_get_fc_charset.
12494 (ftfont_otf_features, ftfont_otf_capability): New functions.
12495 (ftfont_shape): Use ftfont_get_otf.
12496 (ftfont_text_extents): Fix initial setting of metrics.
12497
12498 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12499 member order compatible with struct ftfont_info.
12500 (xftfont_open): Add FC_CHARSET to the pattern. Set
12501 xftfont_info->ft_size. Don't unlock the face. Check BDF
12502 properties if appropriate.
12503 (xftfont_close): Unlock the face.
12504 (xftfont_anchor_point, xftfont_shape): Deleted.
12505 (syms_of_xftfont): Don't set members anchor_point and shape of
12506 xftfont_driver.
12507
12508 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12509 font_make_object.
12510
12511 * w32font.c (w32font_open): Adjust it for the change of
12512 font_make_object.
12513 (w32font_open_internal): Don't set properties of font_object here.
12514
125152008-07-08 Chong Yidong <cyd@stupidchicken.com>
12516
12517 * macfns.c (x_create_tip_frame):
12518 * w32fns.c (x_create_tip_frame):
12519 * xfns.c (x_create_tip_frame): Pass parameter argument to
12520 face-set-after-frame-default.
12521
12522 * xfaces.c (Finternal_merge_in_global_face): Save merged
12523 attributes for the default face back into the face vector.
12524
125252008-07-08 Andreas Schwab <schwab@suse.de>
12526
12527 * fontset.h: Declare fontset_from_font. Don't declare
12528 new_fontset_from_font and fontset_from_font_name.
12529 * xterm.c: Include "fontset.h".
12530 * Makefile.in (xterm.o): Update dependencies.
12531
125322008-07-08 Glenn Morris <rgm@gnu.org>
12533
12534 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12535 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12536
125372008-07-07 Chong Yidong <cyd@stupidchicken.com>
12538
12539 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12540 (x_set_frame_parameters): Don't bind it.
12541
125422008-07-07 Juanma Barranquero <lekktu@gmail.com>
12543
12544 * w32fns.c (map_w32_filename): Declare extern.
12545
125462008-07-07 Jason Rumney <jasonr@gnu.org>
12547
12548 * w32term.c (WS_EX_LAYERED): Define if not already.
12549
125502008-07-06 Chong Yidong <cyd@stupidchicken.com>
12551
12552 * xfaces.c (set_font_frame_param): Don't try to set the font
12553 parameter if it is still unspecified in the lface.
12554
125552008-07-05 Chong Yidong <cyd@stupidchicken.com>
12556
12557 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
12558 face if it didn't already exist.
12559
12560 * xdisp.c (try_window_id): Give up if word-wrapping is on.
12561
125622008-07-05 Andreas Schwab <schwab@suse.de>
12563
12564 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
12565
125662008-07-05 Chong Yidong <cyd@stupidchicken.com>
12567
12568 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
12569 word-wrapping.
12570 (IT_DISPLAYING_WHITESPACE): New macro.
12571 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
12572 when word-wrapping. Simplify word-wrapping logic. Use correct
12573 pixel positions when saving copies of the iterator.
12574 (display_line): Use proper wrap point if the last character on a
12575 line was preceded by whitespace.
12576
125772008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
12578
12579 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
12580
125812008-07-04 Kenichi Handa <handa@m17n.org>
12582
12583 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
12584
12585 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
12586
125872008-07-02 Jason Rumney <jasonr@gnu.org>
12588
12589 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 12590 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
12591
12592 * xdisp.c (next_element_from_display_vector): Move assignment out
12593 of if statement.
12594
125952008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12596
12597 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12598
12599 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12600 (syms_of_fileio): Initialize and export them.
12601 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12602
12603 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12604 (Fsystem_move_file_to_trash): New function.
12605 (syms_of_w32fns): Export it to lisp.
12606
126072008-07-01 Jason Rumney <jasonr@gnu.org>
12608
12609 * w32font.c (w32font_text_extents): Don't count overhang as part
12610 of width.
12611
126122008-06-30 Miles Bader <miles@gnu.org>
12613
12614 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12615 Add `avoid_cursor_p' field.
12616
12617 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12618 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12619 (append_glyph, append_composite_glyph, produce_image_glyph)
12620 (append_stretch_glyph): Initialize avoid_cursor_p.
12621 (get_it_property): Rename from `get_line_height_property'.
12622 (x_produce_glyphs): Use get_it_property.
12623 (handle_line_prefix, push_display_prop): New functions.
12624 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12625 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12626 New variables.
12627 (syms_of_xdisp): Initialize them.
12628
126292008-06-30 Kenichi Handa <handa@m17n.org>
12630
12631 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12632 XftDefaultSubstitute (they are called in XftFontMatch).
12633 (xftfont_open): Fix args to ftfont_font_format.
12634
12635 * ftfont.c (fc_charset_table): New member lang.
12636 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 12637 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
12638 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12639 (ftfont_open): Fix args to ftfont_font_format.
12640 (ftfont_font_format): New arg filename.
12641
126422008-06-30 Chong Yidong <cyd@stupidchicken.com>
12643
12644 * xfaces.c (Finternal_merge_in_global_face): If default face was
12645 modified, realize it again. Update the font face attribute.
12646
126472008-06-29 Jason Rumney <jasonr@gnu.org>
12648
12649 * w32term.c (x_set_frame_alpha): Fix logic.
12650
126512008-06-29 Kenichi Handa <handa@m17n.org>
12652
12653 * fontset.c (Finternal_char_font): Return font-object instead of
12654 font-name.
12655
12656 * composite.c (get_composition_id): Fix the width calculation for TAB.
12657
126582008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12659
12660 * indent.c (Fvertical_motion): Properly handle float column arg.
12661
126622008-06-28 Jason Rumney <jasonr@gnu.org>
12663
12664 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12665 (pfnSetLayeredWindowAttributes): New function pointer.
12666 (w32_initialize): Initialize it when supported.
12667 (x_set_frame_alpha): New function.
12668
12669 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12670 (w32_frame_parm_handlers): Set alpha handler.
12671
12672 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12673
126742008-06-27 Jason Rumney <jasonr@gnu.org>
12675
12676 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12677 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12678 (w32_to_x_charset, x_to_w32_charset)
12679 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12680 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12681 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12682 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12683 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12684 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12685 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12686 (Qw32_charset_unicode): Remove.
12687 (syms_of_w32fns): Update for above changes.
12688
12689 * w32font.c (w32_to_x_charset, x_to_w32_charset)
12690 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12691 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12692 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12693 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12694 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12695 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12696 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
12697 (syms_of_w32font): Update for above changes.
12698
126992008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
12700
12701 * s/usg5-4.h: Fix previous change: keep the correct branch of a
12702 removed #if.
12703 (USG_SHARED_LIBRARIES): Remove duplicate definition.
12704
127052008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 12706 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
12707
12708 * makefile.w32-in (LOCAL_FLAGS):
12709 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
12710
12711 * sysdep.c (_spawnlp, _getpid):
12712 Declare with explicit _cdecl instead of _CRTAPI1.
12713
12714 * editfns.c (Fget_internal_run_time):
12715 Check for WINDOWSNT with #ifdef, not #if.
12716
127172008-06-26 Jason Rumney <jasonr@gnu.org>
12718
12719 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
12720
12721 * w32term.c (x_draw_glyph_string_foreground)
12722 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
12723 Use FONT_HANDLE macro.
12724 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
12725
12726 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12727 (uniscribe_encode_char): Use FONT_HANDLE macro.
12728
12729 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
12730 (w32font_text_extents): Use precast w32_font.
12731 (w32font_close): Free cached metrics.
12732 (w32font_open_internal): Allocate space for name on stack.
12733
127342008-06-26 Chong Yidong <cyd@stupidchicken.com>
12735
12736 * xdisp.c (extend_face_to_end_of_line): Fix last change.
12737
127382008-06-26 Jason Rumney <jasonr@gnu.org>
12739
12740 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
12741 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
12742
127432008-06-26 Juanma Barranquero <lekktu@gmail.com>
12744
12745 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
12746
127472008-06-26 Jason Rumney <jasonr@gnu.org>
12748
12749 * w32bdf.c, w32bdf.h: Remove obsolete files.
12750
12751 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
12752
12753 * w32gui.h: Don't include w32bdf.h.
12754 (XCharStruct, enum w32_char_font_type, W32FontStruct):
12755 Remove obsolete font support.
12756
12757 * w32font.h (struct w32font_info): Remove compat_w32_font.
12758 Add hfont member.
12759 (FONT_COMPAT): Remove obsolete macro.
12760
12761 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
12762 (w32font_encode_char, w32font_text_extents): Use new hfont member.
12763 (w32font_open_internal): Remove compat code. Set new hfont member.
12764 (Fx_select_font): Use new hfont member.
12765
12766 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12767 (uniscribe_encode_char): Use new hfont member.
12768
12769 * w32term.c (x_draw_glyph_string_foreground)
12770 (x_draw_composite_glyph_string_foreground): Use new hfont member.
12771 (x_draw_glyph_string): Use metrics in w32font_info.
12772
127732008-06-26 Kenichi Handa <handa@m17n.org>
12774
12775 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
12776
127772008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
12778
12779 * unexnext.c:
12780 * m/ews4800.h:
12781 * m/hp9000s300.h:
12782 * m/ibm370aix.h:
12783 * m/mips-siemens.h:
12784 * m/ncr386.h:
12785 * m/next.h:
12786 * m/pmax.h:
12787 * m/powerpcle.h:
12788 * m/tandem-s2.h:
12789 * s/386bsd.h:
12790 * s/bsd386.h:
12791 * s/bsd4-1.h:
12792 * s/bsd4-2.h:
12793 * s/bsdos2-1.h:
12794 * s/bsdos2.h:
12795 * s/bsdos3.h:
12796 * s/bsdos4.h:
12797 * s/nextstep.h:
12798 * s/ultrix4-3.h:
12799 * s/usg5-0.h:
12800 * s/usg5-2-2.h:
12801 * s/usg5-2.h:
12802 * s/usg5-4-3.h:
12803 * s/ux4800.h:
12804 * s/uxpds.h:
12805 * s/uxpv.h: Remove support for obsolete systems.
12806 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 12807 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
12808 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
12809 Remove, insert contents in s/aix4-2.h.
12810 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
12811 * s/bsd4-3.h: Rename to ...
12812 * s/bsd-common.h: ... this.
12813 * data.c:
12814 * doc.c:
12815 * ecrt0.c:
12816 * emacs.c:
12817 * fileio.c:
12818 * floatfns.c:
12819 * keyboard.c:
12820 * mem-limits.h:
12821 * print.c:
12822 * process.c:
12823 * sysdep.c:
12824 * syssignal.h:
12825 * systty.h:
12826 * syswait.h:
12827 * term.c:
12828 * unexec.c:
12829 * unexelf.c:
12830 * unexhp9k800.c:
12831 * m/hp800.h:
12832 * m/ibmrs6000.h:
12833 * m/mips.h:
12834 * m/vax.h:
12835 * s/darwin.h:
12836 * s/freebsd.h:
12837 * s/gnu.h:
12838 * s/ms-w32.h:
12839 * s/msdos.h:
12840 * s/netbsd.h:
12841 * s/template.h: Remove references to obsolete variables.
12842
12843 * Makefile.in: Add dependencies for all unexec files.
12844 (admindir): Remove unused variable.
12845 (UNEXEC_SRC): Remove references.
12846
128472008-06-25 Chong Yidong <cyd@stupidchicken.com>
12848
12849 * xfns.c (x_default_font_parameter): If Xft is available, first
12850 try Monospace-12 for the default font.
12851
128522008-06-25 Jason Rumney <jasonr@gnu.org>
12853
12854 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12855
128562008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12857
12858 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12859
12860 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12861
128622008-06-25 Juanma Barranquero <lekktu@gmail.com>
12863
12864 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12865 <scroll-conservatively>: Fix typo in docstring.
12866
12867 * xselect.c (Fx_send_client_event): Doc fix.
12868
128692008-06-25 Kenichi Handa <handa@m17n.org>
12870
12871 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12872
12873 * font.c (font_parse_fcname): Remove unused variables.
12874 (font_sort_entites): Delete the arg SPEC. Caller changed.
12875 Fix for the case of ! best_only.
12876 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12877
12878 * lisp.h (Fstring_to_unibyte): EXFUN it.
12879
12880 * character.h (str_to_unibyte): Extern it.
12881
12882 * character.c (str_to_unibyte): New function.
12883
12884 * fns.c (Fstring_to_unibyte): New function.
12885 (syms_of_fns): Defsubr it.
12886
128872008-06-24 Kenichi Handa <handa@m17n.org>
12888
12889 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12890 DPI too.
12891 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12892
128932008-06-24 Andreas Schwab <schwab@suse.de>
12894
12895 * Makefile.in (${lispsource}loaddefs.el): Rename from
12896 ../lisp/loaddefs.el.
12897 (bootstrap-clean): Do what distclean does but don't remove
12898 Makefile.
12899 (distclean): Depend on bootstrap-clean and remove Makefile.
12900
129012008-06-24 Chong Yidong <cyd@stupidchicken.com>
12902
12903 * buffer.h (struct buffer): New member word_wrap.
12904
12905 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12906 word-wrap.
12907 (init_buffer_once): Initialize them.
12908
12909 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12910 line_wrap enum possessing three possible values.
12911
12912 * termopts.h: Replace truncate_partial_width_windows with
12913 Vtruncate_partial_width_windows.
12914
12915 * dispnew.c (direct_output_for_insert): Avoid direct output when
12916 inserting a space with word wrap on.
12917
12918 * indent.c (compute_motion): Obey integer values of
12919 truncate-partial-width-windows.
12920
12921 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12922 replacing truncate_partial_width_windows.
12923 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12924 truncate only if the window width is below that integer.
12925 (start_display, resize_mini_window, produce_stretch_glyph)
12926 (display_string, move_it_in_display_line_to): Use line_wrap.
12927 (back_to_previous_visible_line_start, reseat_1): Reset
12928 string_from_display_prop_p.
12929 (display_line): Extend default face to end of line when wrapping.
12930
129312008-06-24 Kim F. Storm <storm@cua.dk>
12932
12933 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12934 to wrap continued lines at word boundaries.
12935
129362008-06-24 Jason Rumney <jasonr@gnu.org>
12937
12938 * font.c (Ffont_face_attributes): Multiply pixel size before point
12939 conversion to avoid multiplying rounding error.
12940
129412008-06-23 Jason Rumney <jasonr@gnu.org>
12942
12943 * w32term.c (x_draw_glyph_string_background)
12944 (x_draw_glyph_string): Remove old bdf font code.
12945
12946 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12947
129482008-06-22 Kenichi Handa <handa@m17n.org>
12949
12950 * font.c (font_find_for_lface): Try the adstyle specified in
12951 the property of LFACE_FONT of LFACE (if any).
12952
129532008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12954 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12955
12956 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12957
129582008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12959
12960 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12961 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12962 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12963 (witness-emacs): Remove.
12964 (lisp, shortlisp): Move loaddefs.el earlier.
12965 (mostlyclean): Forget about witness-emacs.
12966
129672008-06-22 Glenn Morris <rgm@gnu.org>
12968
12969 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12970 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12971
129722008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12973
12974 * Makefile.in (PRECOMP): Remove.
12975 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12976 (witness-emacs): Run `compile-first'.
12977 (.el.elc): Use the new compile-onefile target.
12978
129792008-06-21 Kenichi Handa <handa@m17n.org>
12980
12981 * xftfont.c (xftfont_open): Handle QCembolden only when
12982 FC_EMBOLDEN is defined.
12983
129842008-06-21 Andreas Schwab <schwab@suse.de>
12985
12986 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12987 (.el.elc): Likewise.
12988
129892008-06-21 Miles Bader <miles@gnu.org>
12990
12991 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12992 build dir, not the lisp source dir.
12993
129942008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12995
12996 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12997 (bootstrapclean): Remove.
12998 (.el.elc): New rule.
12999 (PRECOMP): New var.
13000 (../lisp/subdirs.el): Remove.
13001 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13002 (witness-emacs): New target.
13003 (mostlyclean): Remove witness-emacs as well.
13004 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13005 Add witness-emacs dependency.
13006
130072008-06-20 Chong Yidong <cyd@stupidchicken.com>
13008
13009 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13010 defined by the font.
13011
130122008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13013
13014 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13015 (bootstrap-clean): New target that keeps TAGS around.
13016 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13017 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13018
130192008-06-20 Jason Rumney <jasonr@gnu.org>
13020
13021 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13022 Remove obsolete font code.
13023
13024 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13025 to determine language support.
13026
130272008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13028
13029 * sysdep.c (cfsetspeed): New fun extracted from the code.
13030 (cfmakeraw): Move before first use.
13031
130322008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13033
13034 * sysdep.c (cfmakeraw): Provide fallback implementation.
13035 (serial_configure): Provide fallback implementation of cfsetspeed.
13036
130372008-06-20 Kenichi Handa <handa@m17n.org>
13038
13039 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13040 the pattern.
13041
13042 * fontset.c (fontset_from_font): Copy font_spec before changing
13043 the elements.
13044
13045 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13046
130472008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13048
13049 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13050 for explicit `font' parameters.
13051
13052 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13053
130542008-06-19 Kenichi Handa <handa@m17n.org>
13055
13056 * frame.c: Include <ctype.h>.
13057 (x_set_font_backend): Allow spacing characters in the X resource
13058 for FontBackend.
13059
130602008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13061
13062 * w32fns.c, xfns.c (Qfont_param): New var.
13063 (syms_of_w32fns): Initialize it.
13064 (x_default_font_parameter): Record explicit `font' into
13065 `font-parameter'.
13066
130672008-06-18 Kenichi Handa <handa@m17n.org>
13068
13069 * font.c (font_parse_xlfd): Fix previous change.
13070 (font_parse_fcname): Don't use :fc-unknown-spec.
13071 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13072 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13073 (font_add_log): Prepend the driver name to the resulting fonts.
13074
13075 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13076 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13077 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13078
13079 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13080 (QCembolden): New variables.
13081 (syms_of_xftfont): DEFSYM them.
13082 (xftfont_open): Call XftFontMatch. Don't trust the result of
13083 XftTextExtents8 if the pixel_size is less than 5.
13084
130852008-06-18 Andreas Schwab <schwab@suse.de>
13086
13087 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13088 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13089
130902008-06-18 Jason Rumney <jasonr@gnu.org>
13091
13092 * w32font.c (w32font_list, w32font_match): Add logging.
13093
13094 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13095
130962008-06-17 Chong Yidong <cyd@stupidchicken.com>
13097
13098 * font.c (font_parse_fcname): Store divider characters for
13099 unknown-spec list. For known key symbols, intern using correct
13100 symbol name.
13101
131022008-06-17 Kenichi Handa <handa@m17n.org>
13103
13104 * xfaces.c (realize_default_face): If the frame is not on window
13105 system, set the fontset of face to nil.
13106
131072008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13108
13109 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13110
131112008-06-16 Juanma Barranquero <lekktu@gmail.com>
13112
13113 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13114 (build_font_name_from_vector): Delete externs.
13115
13116 * xfaces.c (struct font_name): Don't declare.
13117
131182008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13119
13120 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13121
131222008-06-16 Chong Yidong <cyd@stupidchicken.com>
13123
13124 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13125
131262008-06-16 Juanma Barranquero <lekktu@gmail.com>
13127
13128 * font.c (Ffont_spec): Fix usage in docstring.
13129 (Ffont_face_attributes): Doc fix.
13130
131312008-06-16 Andreas Schwab <schwab@suse.de>
13132
13133 * font.c (Ffont_face_attributes): Fix definition.
13134
131352008-06-16 Jason Rumney <jasonr@gnu.org>
13136
13137 * font.h (font_style_symbolic_from_value): Remove.
13138
13139 * font.c (font_style_symbolic_from_value): Remove.
13140 (font_style_symbolic): Revert to pre 2008-06-13 version.
13141
13142 * w32font.c (w32_to_fc_weight): New function.
13143 (w32font_full_name, logfont_to_fcname): Use it.
13144
131452008-06-16 Kenichi Handa <handa@m17n.org>
13146
13147 * font.c (font_check_object): Delete it.
13148 (font_clear_cache): Check if a font-object is alive.
13149 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13150 font-object to nil.
13151 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13152 (font_at): Don't call font_check_object.
13153 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13154
131552008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13156
13157 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13158
131592008-06-16 Chong Yidong <cyd@stupidchicken.com>
13160
13161 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13162
131632008-06-15 Chong Yidong <cyd@stupidchicken.com>
13164
13165 * font.c (font_parse_fcname): Only one decimal point.
13166 (font_unparse_fcname): Handle data in family and foundry indices
13167 as symbols, not strings.
13168 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13169
13170 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13171
13172 * font.h (font_unparse_gtkname): Add prototype.
13173
131742008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13175
13176 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13177
131782008-06-15 Andreas Schwab <schwab@suse.de>
13179
13180 * font.c (font_update_drivers): Fix crash when no drivers match.
13181
131822008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13183
13184 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13185 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13186
131872008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13188
13189 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13190
131912008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13192
13193 * process.c (Fserial_process_configure, Fprocess_send_eof):
13194 Use EQ to compare Lisp_Objects.
13195
131962008-06-13 Jason Rumney <jasonr@gnu.org>
13197
13198 * w32fns.c (Fw32_select_font): Remove old font API function.
13199
13200 * w32font.c (logfont_to_fcname): New function.
13201 (Fx_select_font): New font dialog function compatible with
13202 GTK/fontconfig version.
13203
13204 * font.c (font_style_symbolic_from_value): New function.
13205 (font_style_symbolic): Use it.
13206
13207 * font.h (font_style_symbolic_from_value): Declare new function.
13208
132092008-06-13 Juanma Barranquero <lekktu@gmail.com>
13210
13211 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13212 <font-width-table>: Fix typos in docstrings.
13213
132142008-06-13 Daniel Engeler <engeler@gmail.com>
13215
13216 These changes add serial port access.
13217 * process.c: Add HAVE_SERIAL.
13218 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13219 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13220 (list_processes_1, select_wrapper, Fstop_process)
13221 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13222 (status_notify): Modify to handle serial processes.
13223 [HAVE_SERIAL] (Fserial_process_configure)
13224 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13225 New functions.
13226 * process.h (struct Lisp_Process): Add `type'.
13227 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13228 New functions.
13229 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13230 serial ports.
b71ac3dd 13231 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13232 * w32.h: Add FILE_SERIAL.
13233 (struct _child_process): Add ovl_read, ovl_write.
13234
132352008-06-13 Kenichi Handa <handa@m17n.org>
13236
13237 * dispextern.h (enum lface_attribute_index): New member
13238 LFACE_FOUNDRY_INDEX.
13239
13240 * font.c (font_score): Delete arg alternate_families. Check only
13241 weight, slant, width, and size. Ignore the difference of alias
13242 style symbols.
13243 (font_sort_entites): Adjust for the above change. Reflect the
13244 order of font-driver to scores.
13245 (font_list_entities): Don't check alternate_familes here.
13246 (font_clear_prop): Handle foundry.
13247 (font_update_lface): Don't parse "foundry-family" form here.
13248 Handle FONT_FOUNDRY_INDEX.
13249 (font_find_for_lface): Likewise. Handle alternate families here.
13250 If registry is nil, try iso8859-1 and ascii-0.
13251 (font_open_for_lface): Pay attention to size in ENTITY.
13252 (font_open_by_name): Simplify by calling font_load_for_lface.
13253 (free_font_driver_list): Delete it.
13254 (font_update_drivers): Preserve the order of backends.
13255 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13256 of font_score and font_sort_entites.
13257 (font_update_sort_order): Likewise.
13258
13259 * xfaces.c (LFACE_FOUNDRY): New macro.
13260 (check_lface_attrs): Check foundry.
13261 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13262 (merge_face_vectors): Check foundry.
13263 (merge_face_ref): Likewise.
13264 (Finternal_set_lisp_face_attribute): Likewise.
13265 (x_update_menu_appearance): Likewise.
13266 (Finternal_get_lisp_face_attribute): Likewise.
13267 (lface_hash): Likewise.
13268 (lface_same_font_attributes_p): Likewise.
13269 (x_supports_face_attributes_p): Likewise.
13270 (tty_supports_face_attributes_p): Likewise.
13271 (Finternal_set_alternative_font_family_alist): Intern strings.
13272 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13273 (realize_default_face): Set LFACE_FOUNDRY (lface).
13274
13275 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13276 font-driver at first.
13277
13278 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13279
132802008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13281
13282 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13283
132842008-06-12 Jim Meyering <meyering@redhat.com>
13285
13286 Make unexec_free handle NULL the same way free does.
13287 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13288
132892008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13290
13291 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13292 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13293 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13294 (WEAK_ALIAS): Simplify.
13295 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13296 when searching a unibyte buffer.
13297
132982008-06-12 Chong Yidong <cyd@stupidchicken.com>
13299
13300 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13301
133022008-06-12 Juanma Barranquero <lekktu@gmail.com>
13303
13304 * w32font.c: Include ctype.h.
13305
133062008-06-11 Jason Rumney <jasonr@gnu.org>
13307
13308 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13309 misreported as space.
13310 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13311 as aliases for registry iso10646-1.
13312
133132008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13314
13315 * buffer.c (clone_per_buffer_values): Skip `name'.
13316
133172008-06-11 Chong Yidong <cyd@stupidchicken.com>
13318
13319 * font.c (font_parse_fcname): Fix last change; accept decimal
13320 points in font size.
13321
133222008-06-10 Jason Rumney <jasonr@gnu.org>
13323
13324 * w32uniscribe.c (add_opentype_font_name_to_list):
13325 Skip non unicode fonts.
13326
133272008-06-10 Chong Yidong <cyd@stupidchicken.com>
13328
13329 * xfns.c (Fx_font_dialog): New function.
13330
13331 * gtkutil.c (xg_dialog_response_cb): Rename from
13332 xg_file_response_callback.
13333 (pop_down_dialog): Rename from pop_down_file_dialog.
13334 (xg_get_file_name): Callers changed.
13335 (xg_get_font_name): New function.
13336
13337 * gtkutil.h (xg_get_font_name): Insert prototype.
13338
133392008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13340
13341 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13342 x_underline_minimum_display_offset.
13343 (syms_of_xdisp): Declare it here rather than in xterm.c.
13344 * dispextern.h (underline_minimum_offset): Declare it.
13345 * w32term.c (x_draw_glyph_string): Use it.
13346 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13347 (syms_of_xterm): Don't declare it any more.
13348 (x_draw_glyph_string): Adjust to the new name.
13349
8719abec 133502008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13351
13352 * xterm.c (x_underline_minimum_display_offset): New var.
13353 (x_draw_glyph_string): Use it.
13354 (syms_of_xterm): Declare it.
13355
133562008-06-10 Chong Yidong <cyd@stupidchicken.com>
13357
13358 * font.c (font_parse_fcname): Accept GTK-style font names too.
13359
133602008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13361
13362 * dired.c (file_name_completion): Don't return t if the match is exact
13363 but with different capitalization.
13364 * minibuf.c (Ftry_completion): Simplify.
13365
13366 * window.c (Vwindow_point_insertion_type): New var.
13367 (set_window_buffer): Use it.
13368 (syms_of_window): Init and export it to Lisp.
13369
133702008-06-10 Kenichi Handa <handa@m17n.org>
13371
13372 * font.h (font_intern_prop): Prototype adjusted.
13373
13374 * font.c (font_intern_prop): New arg force_symbol.
13375 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13376 Adjust for the change of font_intern_prop.
13377
13378 * ftfont.c (ftfont_pattern_entity):
13379 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13380 (w32_registry):
13381 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13382 the change of font_intern_prop.
13383
133842008-06-09 Juanma Barranquero <lekktu@gmail.com>
13385
13386 * w32menu.c (digest_single_submenu): Declare extern.
13387
133882008-06-09 Jason Rumney <jasonr@gnu.org>
13389
13390 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13391
13392 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13393 (parse_single_submenu): Remove.
13394 (digest_single_submenu): Remove.
13395 (syms_of_w32menu): Don't initialise variables that have moved
13396 to menu.c.
13397 (set_frame_menubar): Sync with version in xmenu.c.
13398 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13399
13400 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13401 Make static again.
13402
134032008-06-09 Jason Rumney <jasonr@gnu.org>
13404
13405 Changes to w32 files related to the move of common menu code
13406 to menu.c on 2008-06-08 by Chong Yidong.
13407
13408 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13409 defs to w32gui.h.
13410 (single_keymap_panes, push_menu_item, push_menu_pane):
13411 Make globally visible.
13412
13413 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13414 (local_free, malloc_widget_value, free_widget_value)
13415 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13416 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13417 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13418 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13419 (menu_items, menu_items_allocated, menu_items_used)
13420 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13421 (init_menu_items, finish_menu_items, discard_menu_items)
13422 (grow_menu_items, push_submenu_start, push_submenu_end)
13423 (push_left_right_boundary, push_menu_pane, push_menu_item)
13424 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13425 (free_menubar_widget_tree_value, parse_single_submenu)
13426 (update_submenu_strings): Remove functions.
13427 (xmalloc_widget_value): Remove and declare extern.
13428
13429 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13430 (OBJ1): Build it.
13431
13432 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13433 (local_heap, local_alloc, local_free, malloc_widget_value)
13434 (free_widget_value): Define here.
13435
134362008-06-09 Kenichi Handa <handa@m17n.org>
13437
13438 * font.h (Qascii_0): Extern it.
13439
13440 * font.c (Qascii_0): New variable.
13441 (syms_of_font): DEFSYM it.
13442 (font_open_by_name): If the registry "iso8859-1" fails, try also
13443 "ascii-0".
13444
13445 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13446
134472008-06-08 Kenichi Handa <handa@m17n.org>
13448
13449 * .gdbinit (xfont): New command.
13450
134512008-06-08 Andreas Schwab <schwab@suse.de>
13452
13453 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13454 * Makefile.in (menu.o): Update dependencies.
13455
13456 * Makefile.in (obj): Always add menu.o.
13457 * emacs.c (main): Always call syms_of_menu.
13458 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13459
134602008-06-08 Chong Yidong <cyd@stupidchicken.com>
13461
13462 * Makefile.in: Compile menu.c.
13463
13464 * lisp.h: Declare syms_of_menu.
13465
13466 * emacs.c (main): Call syms_of_menu.
13467
13468 * keyboard.h: Relocate platform-independent menu definitions from
13469 xmenu.c.
13470
13471 * menu.c: New file. Relocate platform-independent menu
13472 definitions from xmenu.c. Suggested by Adrian Robert.
13473
13474 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 13475 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
13476 (menu_items_used, menu_items_n_panes)
13477 (menu_items_submenu_depth): Move to keyboard.h.
13478 (init_menu_items, finish_menu_items, unuse_menu_items)
13479 (discard_menu_items, restore_menu_items, save_menu_items)
13480 (grow_menu_items, push_submenu_start, push_submenu_end)
13481 (push_left_right_boundary, push_menu_pane, push_menu_item)
13482 (keymap_panes, single_keymap_panes, single_menu_item)
13483 (list_of_panes, list_of_items, find_and_call_menu_selection)
13484 (xmalloc_widget_value, free_menubar_widget_value_tree)
13485 (parse_single_submenu, digest_single_submenu)
13486 (update_submenu_strings): Move to menu.c.
13487
134882008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13489
13490 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13491
134922008-06-06 Miles Bader <miles@gnu.org>
13493
13494 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13495 face, not frame default.
13496
134972008-06-05 Martin Rudalics <rudalics@gmx.at>
13498
13499 * window.c (pop_up_windows, pop_up_frames)
13500 (display_buffer_reuse_frames, Vpop_up_frame_function)
13501 (Vdisplay_buffer_function, Veven_window_heights)
13502 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13503 (Vspecial_display_function, Vsame_window_buffer_names)
13504 (Vsame_window_regexps, split_height_threshold)
13505 (Vsplit_window_preferred_function): Move those vars to window.el.
13506 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13507 (Fdisplay_buffer): Move those functions to window.el.
13508 (syms_of_window): Remove corresponding declarations.
13509 (display_buffer): New function.
13510 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13511 * dispnew.c (Flast_nonminibuf_frame): New function.
13512 * buffer.c (Fpop_to_buffer): Move to window.el.
13513
135142008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13515
13516 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13517
135182008-06-05 Kenichi Handa <handa@m17n.org>
13519
13520 * coding.c (detect_coding): Fix previous change.
13521 (detect_coding_system): Likewise.
13522
135232008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13524
13525 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13526
13527 * keymap.c (Vminibuffer_local_filename_must_match_map):
13528 Rename from Vminibuffer_local_must_match_filename_map.
13529 (syms_of_keymap):
13530 * minibuf.c (Fcompleting_read): Adjust accordingly.
13531 * commands.h: Rename declaration as well.
13532
135332008-06-05 Kenichi Handa <handa@m17n.org>
13534
13535 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13536 family name.
13537 (Ffont_put): Likewise.
13538
13539 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13540 current font-spec.
13541
13542 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13543 is unspecified.
13544
13545 * xfaces.c (realize_x_face): If the font-related face attributes
13546 are the same as those of default face, realize a new fontset from
13547 default->fontset.
13548 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
13549
135502008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13551
13552 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
13553 (move_it_in_display_line): New wrapper.
13554
13555 * window.c (window_scroll_pixel_based_preserve_x)
13556 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
13557 (window_scroll_pixel_based, window_scroll_line_based):
13558 Use them to preserve column positions.
13559 (syms_of_window): Initialize them.
13560
13561 * indent.c (Fvertical_motion): Extend first arg to allow passing an
13562 (HPOS . VPOS) pair.
13563
13564 * dispextern.h (move_it_in_display_line): Declare.
13565
135662008-06-05 Juanma Barranquero <lekktu@gmail.com>
13567
13568 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
13569 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
13570 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
13571
135722008-06-04 Juanma Barranquero <lekktu@gmail.com>
13573
13574 * window.c (Fset_window_parameter): Doc fix.
13575 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
13576
135772008-06-04 Joakim Verona <joakim@verona.se>
13578
13579 * window.h (struct window): Add new member window_parameters.
13580
13581 * window.c (Fwindow_parameters, Fwindow_parameter)
13582 (Fset_window_parameter): New defuns.
13583 (syms_of_window): Defsubr the new defuns.
13584 (make_window): Initialize window_parameters to nil.
13585
135862008-06-04 John Paul Wallington <jpw@pobox.com>
13587
13588 * eval.c (Fdefmacro): Doc fix.
13589
135902008-06-04 Kenichi Handa <handa@m17n.org>
13591
13592 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13593 Be sure to call setup_coding_system when we find a proper coding system.
13594 (detect_coding_system): Fix handling of coding->head_ascii.
13595
135962008-06-03 Andreas Schwab <schwab@suse.de>
13597
13598 * font.c (font_prop_validate_spacing): Fix last change.
13599
136002008-06-03 Kenichi Handa <handa@m17n.org>
13601
13602 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13603 (font_parse_fcname): Fix handling of unknown key.
13604
13605 * xfont.c (xfont_list): Try an alias.
13606
13607 * charset.c (char_charset): Return NULL if the arg charset_list is
13608 specified and C doesn't belong to any of them.
13609
136102008-06-02 Chip Coldwell <coldwell@redhat.com>
13611
13612 * font.c (font_pixel_size): Don't take cdr of an integer.
13613
136142008-06-02 Jim Meyering <meyering@redhat.com>
13615
13616 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13617 * alloc.c (xfree): Return right away for a NULL arg.
13618 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13619 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13620 * mac.c (create_apple_event_from_event_ref): Likewise.
13621 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13622 Likewise.
13623 * doprnt.c (doprnt1): Likewise.
13624 * frame.c (frame): Likewise.
13625 * keyboard.c (wipe_kboard): Likewise.
13626 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13627 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13628 * term.c (tty_default_color_capabilities, maybe_fatal)
13629 (delete_tty): Likewise.
13630 * w16select.c (string): Likewise.
13631 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13632 * w32bdf.c (w32_free_bdf_font): Likewise.
13633 * w32fns.c (w32_unload_font): Likewise.
13634 * w32font.c (w32font_close): Likewise.
13635 * window.c (size_window): Likewise.
13636 * xselect.c (receive_incremental_selection): Likewise.
13637 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13638 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13639 * w32.c (stat): Likewise.
13640
13641 Remove useless if-before-free tests.
13642 * editfns.c (Fset_time_zone_rule): Likewise.
13643 * lread.c (nosuffix): Likewise.
13644 * ralloc.c (get_bloc): Likewise.
13645 * regex.c (reg_free): Likewise.
13646 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13647 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13648 * xsmfns.c (smc_save_yourself_CB): Likewise.
13649
136502008-06-02 Kenichi Handa <handa@m17n.org>
13651
13652 * font.c (font_find_for_lface): Handle float font size.
13653 (font_open_for_lface): Likewise.
13654
13655 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13656 comparing the properties.
13657
136582008-06-01 Jason Rumney <jasonr@gnu.org>
13659
13660 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13661 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13662 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13663 Don't add empty script list.
13664 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13665
136662008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13667
13668 * Makefile.in (dot, dotdot): Remove, update users.
13669 ".." has been used elsewhere in the file for a long time.
13670 (LIBXT_STATIC): Remove conditional based on unused variable.
13671
136722008-06-01 Miles Bader <miles@gnu.org>
13673
13674 * xfaces.c (Vface_remapping_alist): New variable.
13675 (syms_of_xfaces): Initialize it.
13676 (enum named_merge_point_kind): New type.
13677 (struct named_merge_point): Add `named_merge_point_kind' field.
13678 (push_named_merge_point): Make cycle detection respect different
13679 named-merge-point kinds.
13680 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13681 Remove face-name alias resolution.
13682 (lface_from_face_name): New definition using
13683 `lface_from_face_name_no_resolve'.
13684 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13685 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13686 (get_lface_attributes): New definition that layers face-remapping on
13687 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13688 (lookup_basic_face): New function.
13689 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
13690 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
13691 `get_lface_attributes'.
13692 (face_at_buffer_position): Use `lookup_basic_face' to lookup
13693 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
13694 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
13695
13696 * xdisp.c (init_iterator): Pass base_face_id through
13697 `lookup_basic_face' when we actually use it as a face-id.
13698 (handle_single_display_prop): Use `lookup_basic_face' to lookup
13699 DEFAULT_FACE_ID.
13700
13701 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
13702 lookup the initial face-id.
13703
13704 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
13705
137062008-06-01 Juanma Barranquero <lekktu@gmail.com>
13707
13708 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
13709 (Fremove_text_properties): Fix typos in docstrings.
13710
137112008-05-31 Kenichi Handa <handa@m17n.org>
13712
13713 * font.c (font_list_entities): Fix the car part of data to be
13714 stored in the cache.
13715
13716 * ftfont.c (ftfont_font_format): Don't use strcasestr.
13717
137182008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13719
13720 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
13721 Add a `test' argument so another predicate than `equal' can be used.
13722 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
13723 (map_char_table): Remove unused vars `c' and `i'.
13724 * lisp.h (Foptimize_char_table): Adjust declaration.
13725 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
13726
137272008-05-30 Kenichi Handa <handa@m17n.org>
13728
13729 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
13730 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
13731 defined.
13732
137332008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13734
13735 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13736 (Fmake_variable_frame_local): Disallow mixing buffer-local and
13737 frame-local settings for the same variable.
13738
137392008-05-30 Kenichi Handa <handa@m17n.org>
13740
13741 * fontset.c (Ffont_info): Move to font.c.
13742 (syms_of_fontset): Delete defsubr of Sfont_info.
13743
13744 * font.c (font_style_to_value, font_score): Delete casting of the
13745 args to xstcasecmp.
13746 (register_font_driver): Increment num_font_drivers only when
13747 registering the driver globally.
13748 (Ffont_info): Move from fontset.c. Handle a font object too.
13749 (syms_of_font): Defsubr Sfont_info.
13750
137512008-05-29 Kenichi Handa <handa@m17n.org>
13752
13753 * coding.h (enum define_coding_utf8_arg_index): New enum.
13754 (enum coding_attr_index): Change coding_attr_utf_16_bom to
13755 coding_attr_utf_bom.
13756 (enum utf_bom_type): Rename from utf_16_bom_type.
13757 (struct utf_16_spec): Adjust for the above change.
13758 (struct coding_system): Add utf_8_bom in `spec' union.
13759
13760 * coding.c (CODING_UTF_8_BOM): New macro.
13761 (enum coding_category): Delete coding_category_utf_8, add
13762 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
13763 coding_category_utf_8_sig.
13764 (CATEGORY_MASK_UTF_8): Delete it.
13765 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
13766 (CATEGORY_MASK_UTF_8_SIG): New macros.
13767 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
13768 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
13769 CATEGORY_MASK_UTF_8_SIG.
13770 (CATEGORY_MASK_UTF_8): New macro.
13771 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
13772 (detect_coding_utf_8): Check BOM.
13773 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
13774 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
13775 (encode_coding_utf_16): Likewise.
13776 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
13777 (detect_coding, detect_coding_system): Handle utf-8-auto.
13778 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
13779 (syms_of_coding): Fix setting up of Vcoding_category_table.
13780
137812008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
13782
13783 * process.c (Faccept_process_output): If `millisec' is non-nil,
13784 `seconds' default to 0.
13785 (wait_reading_process_output): Also return non-nil if we read output
13786 from a non-running process.
13787
137882008-05-29 Jason Rumney <jasonr@gnu.org>
13789
13790 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
13791 `raster' specified.
13792 (add_font_entity_to_list): Allow non-opentype truetype fonts back
13793 in the uniscribe backend, but disallow any font that has no
13794 unicode subrange support.
13795
137962008-05-29 Juanma Barranquero <lekktu@gmail.com>
13797
13798 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
13799 Fix typos in docstrings.
13800
138012008-05-29 Kenichi Handa <handa@m17n.org>
13802
13803 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
13804 (Fx_family_fonts): Set frame correctly.
13805
138062008-05-28 Jason Rumney <jasonr@gnu.org>
13807
13808 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
13809
138102008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13811
13812 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
13813 calling build_annotations.
13814
138152008-05-28 Juanma Barranquero <lekktu@gmail.com>
13816
13817 * coding.c (Fdecode_coding_region, Fencode_coding_region)
13818 (Fencode_coding_string):
13819 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
13820 <latin-extra-code-table>: Fix typos in docstrings.
13821 (syms_of_coding) <coding-system-alist>: Doc fix.
13822 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
13823
138242008-05-28 Kenichi Handa <handa@m17n.org>
13825
13826 * fontset.c (Ffont_info): Don't call font_close_object.
13827
13828 * font.c (font_parse_family_registry): Use Ffont_put to validate
13829 foundry and family.
13830 (font_delete_unmatched): Don't check spacing.
13831 (font_list_entities): Add spacing to the spec to list fonts.
13832
13833 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
13834 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
13835
13836 * coding.c (encode_coding_raw_text): Fix previous change.
13837 (encode_coding_object): When the dst_object is a buffer and is
13838 different from src_object, move gap to PT.
13839
138402008-05-27 Chong Yidong <cyd@stupidchicken.com>
13841
13842 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
13843
138442008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13845
13846 * coding.c (encode_coding_raw_text): Set coding->produced_char for
13847 all branches. Compute it differently.
13848
13849 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13850
138512008-05-27 Juanma Barranquero <lekktu@gmail.com>
13852
13853 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13854 into "else if () ... else ...".
13855
138562008-05-27 Jason Rumney <jasonr@gnu.org>
13857
13858 * w32font.c (w32font_open_internal): Determine if glyph indices
13859 are likely to work here.
13860
138612008-05-27 Chong Yidong <cyd@stupidchicken.com>
13862
13863 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13864 draw overlap glyphs with appropriate highlighting.
13865
138662008-05-27 Kenichi Handa <handa@m17n.org>
13867
13868 * xfont.c (xfont_open): Fix calculation of font->average_width.
13869
138702008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13871
13872 * casefiddle.c (casify_object): Try to guess better whether the
13873 argument is a byte or a char.
13874
138752008-05-26 Andreas Schwab <schwab@suse.de>
13876
13877 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13878 Always send multiples of format size.
13879
13880 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13881
138822008-05-26 Jason Rumney <jasonr@gnu.org>
13883
13884 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13885 (compute_metrics): Don't set failure if we just cleared the cache.
13886 (w32_weight_table): Remove unused variable.
13887 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13888 backwards compatibility.
13889
138902008-05-25 Kenichi Handa <handa@m17n.org>
13891
13892 * w32term.c (x_draw_glyph_string):
13893 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13894
13895 * xfaces.c: Delete unused function prototypes.
13896 (xstrlwr, font_frame): Delete them.
13897 (clear_face_cache): Delete unused variable.
13898
13899 * xftfont.c (xftfont_open): Delete unused variable.
13900 If underline_thickness is not 1, adjust underline_position.
13901
13902 * ftxfont.c (ftxfont_open): Delete unused variable.
13903
13904 * fontset.c (face_for_char): Optimize for the case of no charset
13905 property.
13906
13907 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13908 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13909 (otf_open, font_otf_capability, generate_otf_features)
13910 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13911 Comment out by surrounding "#if 0" and "#endif" for the moment.
13912 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13913 (syms_of_font): Codes for accessing above commented out.
13914
139152008-05-24 Eli Zaretskii <eliz@gnu.org>
13916
13917 * w32proc.c: Include dispextern.h.
13918
13919 * w32.c: Include dispextern.h.
13920
139212008-05-23 Juanma Barranquero <lekktu@gmail.com>
13922
13923 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13924 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13925 Fix typos in docstrings.
13926
139272008-05-23 Jason Rumney <jasonr@gnu.org>
13928
13929 * xsmfns.c: Remove includes that are already included by config.h.
13930
139312008-05-23 Kenichi Handa <handa@m17n.org>
13932
13933 * charset.c (Qemacs, charset_emacs): New variables.
13934 (char_charset): Fix for non-Unicode characters.
13935 (syms_of_charset): Define charset_emacs.
13936
13937 * w32term.c (x_draw_glyph_string): Be sure to update
13938 s->underline_thickness and s->underline_position. Be sure to draw
13939 underline within the current line area.
13940
13941 * xterm.c (x_draw_glyph_string): Be sure to update
13942 s->underline_thickness and s->underline_position. Be sure to draw
13943 underline within the current line area.
13944
13945 * fontset.c: Delete unused variables and add casting for char *
13946 throughout the file.
13947 (fontset_font): Try the fallback fonts of the current fontset
13948 before consulting the default fontset.
13949
13950 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13951
13952 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13953
139542008-05-22 Jason Rumney <jasonr@gnu.org>
13955
13956 * font.c: Don't include strings.h.
13957
13958 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13959
13960 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13961 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13962 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13963 to call xstrcasecmp.
13964
13965 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13966
13967 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13968
13969 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13970
13971 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13972
139732008-05-22 Kenichi Handa <handa@m17n.org>
13974
13975 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13976
13977 * font.c (font_prop_validate_style): Adjust for the format
13978 change of font_style_table.
13979
13980 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13981 two args.
13982
13983 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13984 two args.
13985
139862008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13987
13988 * minibuf.c (keys_of_minibuf): Delete.
13989 * lisp.h (keys_of_minibuf): Delete.
13990 * emacs.c (main): Don't call keys_of_minibuf.
13991
139922008-05-22 Kenichi Handa <handa@m17n.org>
13993
13994 * ftfont.c (ftfont_resolve_generic_family): Rename from
13995 ftfont_list_generic_family. Return a single family for each
13996 generic family.
13997 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13998 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13999 Call font_add_log.
14000 (ftfont_match): Call font_add_log.
14001
14002 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14003 (FONT_DEBUG): Define it.
14004 (font_add_log): Extern it.
14005 (font_assert): Rename from xassert.
14006
14007 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14008 (xfont_list_family): Call font_add_log.
14009 (xfont_match): Likewise.
14010 (memq_no_quit): Delete.
14011
14012 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14013 call of Ffont_xlfd_name.
14014
14015 * xfaces.c (struct table_entry, slant_table, weight_table)
14016 (swidth_table): Move to font.c.
14017
14018 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14019 xassert are changed to font_assert. Delete many unused variables.
14020 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14021 New variables.
14022 (struct table_entry): Move from xfaces.c and modified.
14023 (weight_table, slant_table, width_table): Move from xfaces.c and
14024 contents adjusted for the change of struct table_entry.
14025 (font_style_to_value, font_style_symbolic): Adjust for the
14026 format change of font_style_table.
14027 (font_parse_family_registry): Don't overwrite existing foundry and
14028 family of font_spec.
14029 (font_score): Fix calculation of diff for sizes.
14030 (font_sort_entites): Call font_add_log.
14031 (font_delete_unmatched): Return a newly created list.
14032 (font_list_entities): Fix previous change. Call font_add_log.
14033 (font_matching_entity, font_open_entity, font_close_entity):
14034 Call font_add_log.
14035 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14036 (Finternal_set_font_style_table): Delete.
14037 (BUILD_STYLE_TABLE): New macro.
14038 (build_style_table): New function.
14039 (Vfont_log, font_log_env_checked): New variables.
14040 (font_add_log): New function.
14041 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14042 Declare Lisp variables "font-weight-table", "font-slant-table",
14043 "font-width-table", and "font-log". Initialize font_style_table.
14044
140452008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14046
14047 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14048
140492008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14050 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14051
14052 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14053 (Vframe_alpha_lower_limit): New variable.
14054 (x_set_alpha): New function.
14055
14056 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14057
14058 * xfns.c (x-create-frame, Qalpha):
14059 Initialize the frame parameter `alpha'.
14060 * xterm.c (OPAQUE, OPACITY): New.
14061 (x_set_frame_alpha): New function.
14062 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14063
14064 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14065 * w32fns.c (w32_frame_parm_handlers): Likewise.
14066
140672008-05-20 Jason Rumney <jasonr@gnu.org>
14068
14069 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14070 truetype fonts to opentype list.
14071
140722008-05-20 Juanma Barranquero <lekktu@gmail.com>
14073
14074 * fontset.c (Ffontset_info): Doc fix.
14075 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14076 <ignore-relative-composition>: Fix typos in docstrings.
14077
14078 * font.c (syms-of-font) <font-encoding-alist>:
14079 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14080 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14081 (Ffont_otf_alternates): Doc fixes.
14082
140832008-05-20 Kenichi Handa <handa@m17n.org>
14084
14085 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14086 font.h through out the file.
14087 (FONT_DRIVERS): Rename from FONTOBJ.
14088 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14089 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14090
14091 * emacs.c (main): Call syms_of_font unconditionally.
14092
14093 * font.h (find_font_encoding): Extern it.
14094
14095 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14096 fontset.c.
194d44e7 14097 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14098 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14099 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14100 only when HAVE_WINDOW_SYSTEM is defined.
14101 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14102 when HAVE_WINDOW_SYSTEM is defined.
14103
14104 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14105 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14106
14107 * xfaces.c: Include font.h unconditionally.
14108 (merge_face_ref, merge_face_vectors)
14109 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14110
141112008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14112
14113 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14114 indirect_variable.
14115 * eval.c (lisp_indirect_variable): New fun.
14116 (Fuser_variable_p): Use it.
14117
141182008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14119
14120 * lisp.h (indirect_variable):
14121 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14122 Use Lisp_Symbol pointers rather than Lisp_Object.
14123 Adjust callers.
14124 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14125 To this end, change calling-convention.
14126
14127 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14128 if some non-hidden buffers are selected by string&pred.
14129
141302008-05-19 Chong Yidong <cyd@stupidchicken.com>
14131
14132 * process.c (wait_reading_process_output): Always check status
14133 when in batch mode.
14134
141352008-05-19 Kenichi Handa <handa@m17n.org>
14136
14137 * font.c (font_list_entities): Fix handling of cache.
14138 (font_matching_entity): Likewise.
14139
14140 * ftfont.c (cs_iso8859_1): Delete.
14141 (ft_face_cache): New variable.
14142 (struct ftfont_info): New member fc_charset_idx.
14143 (ftfont_build_basic_charsets): Delete.
14144 (fc_charset_table): New variable.
14145 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14146 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14147 Callers changed.
14148 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14149 (ftfont_spec_pattern): New argument fc_charset_idx.
14150 Check registry more rigidly. Change callers.
14151 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14152 change of :font-entity property of the font.
14153
14154 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14155 property of the font.
14156
141572008-05-18 Juanma Barranquero <lekktu@gmail.com>
14158
14159 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14160 (Funencodable_char_position, Fcheck_coding_systems_region)
14161 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14162 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14163 (Ffind_operation_coding_system, Fset_coding_system_priority)
14164 (Fcoding_system_eol_type): Doc fixes.
14165
141662008-05-17 Glenn Morris <rgm@gnu.org>
14167
14168 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14169
141702008-05-16 Eli Zaretskii <eliz@gnu.org>
14171
14172 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14173 and st_gid.
14174
14175 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14176 HAVE_WINDOW_SYSTEM is not defined.
14177
14178 * xfaces.c (merge_face_ref, merge_face_vectors)
14179 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14180 HAVE_WINDOW_SYSTEM is defined.
14181 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14182
141832008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14184
14185 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14186
141872008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14188
14189 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14190
141912008-05-15 Kenichi Handa <handa@m17n.org>
14192
14193 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14194 preference.
14195
141962008-05-15 Glenn Morris <rgm@gnu.org>
14197
14198 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14199
142002008-05-15 Chong Yidong <cyd@stupidchicken.com>
14201
14202 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14203 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14204
14205 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14206
142072008-05-15 Kenichi Handa <handa@m17n.org>
14208
14209 * ftfont.c (ftfont_list): Downcase family name to check generic
14210 families.
14211
14212 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14213 font-spec for QCfont value.
14214
14215 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14216 buffer. Check the return value of it.
14217
142182008-05-14 Jason Rumney <jasonr@gnu.org>
14219
14220 * w32term.c (w32_get_glyph_overhangs): Remove.
14221 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14222
142232008-05-14 Kenichi Handa <handa@m17n.org>
14224
14225 * font.c (font_prop_validate): Make nil a valid value.
14226 (font_clear_cache): Check if the cached vector of entities is nil
14227 or not.
14228
142292008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14230
14231 * emacs.c (main_thread): Conditionalize on
14232 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14233 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14234
14235 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14236 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14237 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14238
142392008-05-14 Kenichi Handa <handa@m17n.org>
14240
14241 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14242 has no corresponding coding system.
14243
142442008-05-14 Jason Rumney <jasonr@gnu.org>
14245
14246 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14247
14248 * w32font.h (w32font_open_internal): Update declaration.
14249
14250 * w32font.c (w32font_open_internal): Change last argument from
14251 w32font_info struct to font object. Fill in font object from
14252 font_entity. Get Outline metrics if possible. Use them to
14253 calculate underline position and thickness. Use xlfd name as name
14254 property. Don't set codepage.
14255 (w32font_open): Pass font_object to w32font_open_internal. Don't
14256 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14257 (w32font_draw): Use s->font.
14258 (clear_cached_metrics): Don't clear non-existent blocks.
14259
14260 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14261 font was not found.
14262 (x_draw_glyph_string): Use underline position and thickness from font.
14263
14264 * w32uniscribe.c (uniscribe_open): Pass font_object to
14265 w32font_open_internal.
14266
142672008-05-14 Kenichi Handa <handa@m17n.org>
14268
14269 These changes are to delete all legacy font-handling codes, and
14270 make Emacs use only font-backends.
14271
14272 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14273 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14274
14275 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14276
14277 * charset.h (Vcharset_non_preferred_head)
14278 (Vcurrent_iso639_language): Extern them.
14279
14280 * charset.c (Vcharset_non_preferred_head): New variable.
14281 (Vcurrent_iso639_language): New variable.
14282 (syms_of_charset): Declare it as a Lisp variable.
14283 (char_charset): Don't check non preferred charsets. As a last
14284 resort, return charset_unicode.
14285 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14286
14287 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14288 conditionals. Don't check enable_font_backend. Delete all codes
14289 used only when USE_FONT_BACKEND is not defined.
14290
14291 * dispextern.h (struct glyph_string): Change type of `font' to
14292 `struct font *'.
14293 (struct glyph_string): New member underline_position and
14294 underline_thickness.
14295 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14296 (struct face): Change type of `font' to `struct font *'. Remove
14297 members `font_name', `font_info_id'.
14298 (per_char_metric, encode_char): Delete externs.
14299 (calc_pixel_width_or_height): Adjust the prototype.
14300
14301 * emacs.c (enable_font_backend): Delete extern.
14302 (main): Don't set enable_font_backend. Don't check the command
14303 line argument "-disable-font-backend".
14304
14305 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14306 (enum font_property_index): New members FONT_DPI_INDEX,
14307 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14308 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14309 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14310 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14311 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14312 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14313 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14314 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14315 (struct font_spec, struct font_entity): New structs.
14316 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14317 (struct font): Many members from old "struct font_info" moved to
14318 here. Members font and entity deleted.
14319 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14320 the new font-related objects.
14321 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14322 (CHECK_FONT_GET_OBJECT): Likewise.
14323 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14324 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14325 (struct font_driver): New members case_sensitive anc check. Type
14326 of the member list and open changed.
14327 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14328 (font_symbolic_width, font_find_object, font_get_spec)
14329 (font_set_lface_from_name): Delete extern.
14330 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14331
14332 * font.c: Include <strings.h>.
14333 (enable_font_backend): Delete it.
14334 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14335 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14336 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14337 (null_string): Delete it.
14338 (null_vector): Make it static.
14339 (font_family_alist): Delete it.
14340 (Qnormal): Extern it.
14341 (QCextra, QClanguage): Delete it.
14342 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14343 (font_make_spec, font_make_entity, font_make_object)
14344 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14345 the string. Callers changed.
14346 (font_pixel_size): Adjusted for the format change of font-related
14347 objects.
14348 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14349 (font_style_to_value, font_style_symbolic): New function.
14350 (build_font_family_alist): Delete it.
14351 (font_registry_charsets): Use Fassoc_string instead of
14352 assq_no_quit.
14353 (font_prop_validate_symbol): Don't return null_string.
14354 (font_prop_validate_style): Adjusted for the change of
14355 style-related values in a font vector.
14356 (font_property_table): Delete entries for QClanguage and
14357 QCantialias, add entries for QCavgwidth.
14358 (get_font_prop_index): Delete the 2nd argument FROM.
14359 (font_prop_validate): Arguments changed.
14360 (font_put_extra): Adjusted for the change of font-related objects.
14361 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14362 (font_parse_fcname, font_unparse_fcname)
14363 (font_prepare_composition): Likewise.
14364 (font_parse_family_registry): Renamed from font_merge_old_spec.
14365 (otf_open): Delete the 1st arg entity.
14366 (font_otf_capability): Adjusted for the above change.
14367 (font_score): New arg alternate_families. Adjusted for the change
14368 of font-related objects.
14369 (font_sort_entites): New arg best_only.
14370 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14371 Delete them.
14372 (font_match_p): Check alternate families.
14373 (font_find_object): Delete it.
14374 (font_check_object): New function.
14375 (font_clear_cache): Adjusted for the change of font-related objects.
14376 (font_delete_unmatched): New arg.
14377 (font_list_entities): Call font_driver->list with a spec that
14378 doesn't specify style-related properties.
14379 (font_matching_entity): Arguments changed. Caller changed.
14380 (font_open_entity): Adjusted for the change of font-related objects.
14381 (font_close_object, font_has_char, font_encode_char)
14382 (font_get_name, font_get_spec): Likewise.
14383 (font_spec_from_name, font_clear_prop, font_update_lface):
14384 New functions.
14385 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14386 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14387 (font_at): Adjusted for the change of font-related objects.
14388 (font_range): New function.
14389 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14390 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14391 (Fcopy_font_spec, Fmerge_font_spec): New function.
14392 (Ffont_family_list): Renamed from list-families.
14393 (Finternal_set_font_style_table): Arguments changed.
14394 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14395 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14396 change of font-related objects.
14397 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14398
14399 * fontset.h (struct font_info): Delete it. Most members go to
14400 struct font.
14401 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14402 (enum FONT_SPEC_INDEX): Delete it.
14403 (font_info, list_fonts_func, load_font_func, query_font_func)
14404 (set_frame_fontset_func, find_ccl_program_func)
14405 (get_font_repertory_func, new_fontset_from_font_name): Delete
14406 externs.
14407 (fontset_from_font_name): Extern it.
14408 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14409 (FONT_INFO_FROM_FACE): Deleted.
14410 (face_for_font): Adjust prototype.
14411
14412 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14413 conditionals. Don't check enable_font_backend. Delete all codes
14414 used only when USE_FONT_BACKEND is not defined.
14415 (get_font_info_func, list_font_func, load_font_func)
14416 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14417 (get_font_repertory_func): Delete them.
14418 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14419 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14420 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14421 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14422 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14423 (fontset_compare_rfontdef): New function.
14424 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14425 rfont-defs by qsort. Adjusted for the change of font-group vector.
14426 (load_font_get_repertory): Deleted.
14427 (fontset_find_font): Use new macros to ref/set elements of
14428 font-def and rfont-def.
14429 (fontset_font): Fix the timing of remembering that no font for C.
14430 (free_face_fontset): Do nothing if the face has no fontset.
14431 (face_suitable_for_char_p): Use new macros to ref/set elements of
14432 rfont-def.
14433 (face_for_char): Likewise. Call face_for_char with font_object.
14434 (fs_load_font): Delete. Delete #pragma surrounding it.
14435 (fs_query_fontset): Use strcasecmp instead of strcmp.
14436 (generate_ascii_font_name): Adjusted for the format change of
14437 font-spec.
14438 (Fset_fontset_font): Likewise. Use new macros to set elements of
14439 font-def.
14440 (Fnew_fontset): Use font_unparse_xlfd to generate
14441 FONTSET_ASCII (fontset).
14442 (new_fontset_from_font_name): Deleted.
14443 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14444 a fontset is already created for the font. FIx updating of
14445 Vfontset_alias_alist.
14446 (fontset_ascii_font): Deleted.
14447 (Ffont_info): Adjusted for the format change of font-spec.
14448 (Finternal_char_font): Likewise.
14449 (Ffontset_info): Likewise.
14450 (syms_of_fontset): Don't check load_font_func.
14451
14452 * fns.c (internal_equal): Handle PREV_FONT.
14453
14454 * frame.h: Delete USE_FONT_BACKEND conditional.
14455
14456 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14457 conditionals. Don't check enable_font_backend. Delete all codes
14458 used only when USE_FONT_BACKEND is not defined.
14459 (x_set_font): Call x_new_font, not x_new_fontset2.
14460 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14461 already set for the frame.
14462
14463 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14464 a font-entity by font_make_entity. Use font_intern_prop instead
14465 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14466 font property. If a font is scalable, set avgwidth property to 0.
14467 Set font-entity property by font_put_extra.
14468 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14469 (ffont_driver): Adjusted for the change of struct font_driver.
14470 (ftfont_spec_pattern): New function.
14471 (ftfont_list): Return a list, not vector.
14472 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14473 (ftfont_list_family): Don't downcase names.
14474 (ftfont_free_entity): Deleted.
14475 (ftfont_open): Return a font-object. Adjusted for the change of
14476 struct font. Get underline_thickness and underline_position from
14477 font property. Don't update dpyinfo->smallest_font_height and
14478 dpyinfo->smallest_char_width.
14479 (ftfont_close): Don't free `struct font'.
14480 (ftfont_has_char): Adjusted for the format change of font-entity.
14481 (ftfont_encode_char, ftfont_text_extents): Likewise.
14482
14483 * ftxfont.c (ftxfont_list): Return a list, not vector.
14484 (ftxfont_open): Return a font-object. Adjusted for the change of
14485 struct font. Get underline_thickness and underline_position from
14486 font property. Don't update dpyinfo->smallest_font_height and
14487 dpyinfo->smallest_char_width.
14488 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14489 (ftxfont_draw): Adjusted for the change of struct font.
14490
14491 * image.c (image_ascent): Don't include "charset.h". Include
14492 "character.h" and "font.h".
14493
14494 * lisp.h (enum pvec_type): New member PREV_FONT.
14495 (Fassoc_string): EXFUN it.
14496
14497 * print.c: Include font.h.
14498 (print_object): Handle font-related objects.
14499
14500 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14501 conditionals. Don't check enable_font_backend. Delete all codes
14502 used only when USE_FONT_BACKEND is not defined.
14503 (handle_auto_composed_prop): Do nothing if it->f is not on a
14504 window system. Check how many following characters can be
14505 displayed by the same font.
14506 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14507 'struct font *'.
14508 (get_char_face_and_encoding): Assign the whole encoding task to
14509 the `encode-char' method of a font driver.
14510 (fill_composite_glyph_string): Adjusted for the change of `struct
14511 face' and `struct glyph_string'.
14512 (fill_glyph_string): Likewise.
14513 (get_per_char_metric): Arguments changed.
14514 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14515 and `struct glyph_string'.
14516 (produce_stretch_glyph, calc_line_height_property)
14517 (x_produce_glyphs): Likewise.
14518
14519 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14520 conditionals. Don't check enable_font_backend. Delete all codes
14521 used only when USE_FONT_BACKEND is not defined. Use
14522 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14523 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14524 (Qp): Extern them.
14525 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14526 Deleted.
14527 (struct font_name): Deleted.
14528 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14529 (compare_fonts_by_sort_order): New function.
14530 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14531 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14532 Deleted.
14533 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14534 compare_fonts_by_sort_order.
14535 (Fx_font_family_list): Call Ffont_family_list.
14536 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14537 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14538 (face_symbolic_slant, face_symbolic_swidth)
14539 (split_font_name_into_vector, build_font_name_from_vector)
14540 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14541 (font_rescale_ratio, split_font_name, build_font_name)
14542 (free_font_names, sort_fonts, x_face_list_fonts)
14543 (face_font_available_p, sorted_font_list, cmp_font_names)
14544 (font_list_1, concat_font_list, font_list, remove_duplicates):
14545 Deleted.
14546 (Fx_list_fonts): Use Ffont_list.
14547 (LFACE_AVGWIDTH): Deleted.
14548 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
14549 by FONTP.
14550 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
14551 (set_lface_from_font_name): Delete it.
14552 (set_lface_from_font): Renamed from
14553 set_lface_from_font_and_fontset. Caller changed. Don't set
14554 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
14555 for face.
14556 (merge_face_vectors): Copy font-spec if necessary.
14557 Clear properties of the font-spec if necessary.
14558 (merge_face_ref): Clear properties of the font-spec if necessary.
14559 (Finternal_set_lisp_face_attribute): Likewise.
14560 (set_font_frame_param): Use font_load_for_lface to load a
14561 font-object, and call Fmodify_frame_parameters with it.
14562 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
14563 font name by Ffont_xlfd_name.
14564 (Finternal_lisp_face_attribute_values): Don't check QCweight,
14565 QCslant, and QCwidth.
14566 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
14567 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
14568 Compare fonts by EQ.
14569 (lookup_non_ascii_face): Deleted.
14570 (face_for_font): The 2nd argument changed.
14571 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
14572 Check atomic font properties by case insensitive.
14573 (realize_non_ascii_face): Set face->overstrike correctly.
14574 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
14575 (dump_realized_face): Get font name from
14576 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
14577
14578 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
14579 conditionals. Don't check enable_font_backend. Delete all codes
14580 used only when USE_FONT_BACKEND is not defined.
14581 (xic_create_xfontset): Original code deleted and renamed from
14582 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
14583 (x_make_gc): Don't set GCFont in GCs.
14584 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
14585 opened by "fixed".
14586 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14587 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14588 get_font_repertory_func.
14589
14590 * xfont.c: Include <stdlib.h> and "ccl.h".
14591 (struct xfont_info): New structure.
14592 (xfont_query_font): Deleted.
14593 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14594 moved from xterm.c.
14595 (xfont_driver): Adjusted for the change of struct font_driver.
14596 (compare_font_names): New function.
14597 (xfont_list_pattern): Sort font names case insensitively. Make
14598 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14599 (xfont_list): Return a list, not vector.
14600 (xfont_match): If the font doesn't have QCname property, generate
14601 a name from the other font properties.
14602 (xfont_open): Return a font-object. Adjusted for the change of
14603 struct font. Get underline_thickness and underline_position from
14604 font property. Don't update dpyinfo->smallest_font_height and
14605 dpyinfo->smallest_char_width.
14606 (xfont_close): Don't free struct font.
14607 (xfont_prepare_face): Adjusted for the change of struct font.
14608 (xfont_done_face): Deleted.
14609 (xfont_has_char): Adjusted for the change of struct font.
14610 (xfont_encode_char, xfont_draw): Likewise.
14611 (xfont_check): New function.
14612
14613 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14614 callback function.
14615 (xftfont_match): Adjusted for the format change of font-entity.
14616 (xftfont_open): Adjusted for the format change of font-entity and
14617 font-object. Adjusted for the change of struct font. Return a
14618 font-object. Don't update dpyinfo->smallest_font_height and
14619 dpyinfo->smallest_char_width.
14620 (xftfont_close): Block input while calling XftFontClose.
14621 (xftfont_prepare_face): Don't block input while calling
14622 xftfont_get_colors. Adjusted for the change of struct font.
14623 (xftfont_shape): Return value of error case fixed.
14624
14625 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14626
14627 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14628 conditionals.
14629 (FONT_WIDTH): Return (f)->max_width.
14630 (struct x_display_info): Delete member `font'.
14631 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14632 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14633 (struct x_output): Change type of `font' to `struct font *'.
14634
14635 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14636 conditionals. Don't check enable_font_backend. Delete all codes
14637 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14638 (x_per_char_metric, x_encode_char): Deleted.
14639 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14640 (x_compute_glyph_string_overhangs): Adjusted for the change of
14641 `struct face'.
14642 (x_draw_glyph_string_foreground)
14643 (x_draw_composite_glyph_string_foreground): Likewise.
14644 (x_draw_glyph_string): Likewise. Use font->underline_position and
14645 font->underline_thickness.
14646 (x_new_font): Renamed from x_new_fontset2.
14647 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14648 (x_check_font): Call `check' method of a font driver.
14649 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14650 (x_query_font, x_get_font_repertory): Deleted.
14651 (x_find_ccl_program): Renamed and moved to xfont.c.
14652 (x_redisplay_interface): Adjusted for the change of `struct
14653 redisplay_interface'.
14654
14655 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14656 conditionals. Don't check enable_font_backend. Delete all codes
14657 used only when USE_FONT_BACKEND is not defined. Surround non-used
14658 code by "#ifdef OLD_FONT" and "endif".
14659 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14660
14661 * w32font.h (struct w32font_info): New member.
14662 (FONT_COMPAT): New macro.
14663 (w32font_open_internal): Prototype adjusted.
14664
14665 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14666 OLD_FONT" and "endif".
14667
14668 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14669 conditionals. Don't check enable_font_backend. Delete all codes
14670 used only when USE_FONT_BACKEND is not defined.
14671 (w32font_open): Return a font-object. Make a font-object by
14672 font_make_object. Adjusted for the change of struct w32font_info.
14673 (w32font_close): Don't free struct font. Adjusted for the change
14674 of struct w32font_info.
14675 (w32font_encode_char, w32font_text_extents, w32font_draw):
14676 Adjusted for the change of struct w32font_info.
14677 (w32font_draw): Likewise.
14678 (w32font_list_internal): Return a list, not vector.
14679 (w32font_open_internal): Change the 4th arg to font-object.
14680 Adjusted for the change of struct w32font_info and font-object format.
14681 (add_font_name_to_list): Don't downcase names.
14682 (w32_enumfont_pattern_entity): Make a font-entity by
14683 font_make_entity. Adjusted for the format change of font-entity.
14684 Use FONT_SET_STYLE to set a style-related font property. If a
14685 font is scalable, set avgwidth property to 0. Set font-entity
14686 property by font_put_extra.
14687 (font_matches_spec): Adjusted for the format change of font-entity.
14688 (w32_weight_table, w32_decode_weight): New variables.
14689 (w32_encode_weight): New function.
14690 (fill_in_logfont): Adjusted for the format change of font-spec.
14691 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
14692 weight value.
14693 (w32font_driver): Adjusted for the change of struct font_driver.
14694
14695 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
14696 conditionals. Don't check enable_font_backend. Surround non-used
14697 code by "#ifdef OLD_FONT" and "endif".
14698 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
14699 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
14700
14701 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
14702 conditionals. Don't check enable_font_backend. Delete all codes
14703 used only when USE_FONT_BACKEND is not defined. Surround non-used
14704 code by "#ifdef OLD_FONT" and "endif".
14705
14706 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
14707 (uniscribe_open): Return value changed to font-object.
14708 Adjusted for the format change of font-object.
14709 (uniscribe_otf_capability): Adjusted for the change of struct font.
14710 (add_opentype_font_name_to_list): Don't downcase names.
14711 (uniscribe_font_driver): Adjusted for the change of struct
14712 font_driver.
14713
147142008-05-13 Chong Yidong <cyd@stupidchicken.com>
14715
14716 * dispnew.c (update_frame_1): Check if tty output is still valid
14717 before flushing it.
14718
147192008-05-13 Jan Djärv <jan.h.d@swipnet.se>
14720
14721 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
14722 to Gtk+ menus.
14723
147242008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14725
14726 * dired.c (file_name_completion): Tweak the code so as to always do it
14727 in a single pass. Tighten the scope of some variables.
14728
14729 * dired.c (Qdefault_directory): New var.
14730 (file_name_completion): Use it instead of Fexpand_file_name.
14731 (syms_of_dired): Initialize it.
14732
147332008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
14734
14735 * fileio.c (double_dollars): Remove dead code.
14736
147372008-05-10 Eli Zaretskii <eliz@gnu.org>
14738
14739 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
14740 Mention w32-get-true-file-attributes in doc string.
14741
14742 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
14743
147442008-05-09 Glenn Morris <rgm@gnu.org>
14745
14746 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
14747 2008-04-23.
14748
147492008-05-09 Eli Zaretskii <eliz@gnu.org>
14750
14751 Support for reporting owner and group of each file on MS-Windows:
14752 * dired.c (stat_uname, stat_gname): New functions, with special
14753 implementation for w32.
14754 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
14755
14756 * w32.c: Rename the_passwd_* to dflt_passwd_*.
14757 (dflt_group_name): New static variable.
14758 (dflt_group): Rename from the_group.
14759 (init_user_info): Init dflt_group fields. Get user's group name
14760 from LookupAccountSid.
14761 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
14762 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
14763 New initialization states.
14764 (globals_of_w32): Initialize them to zero. Initialize the default
14765 group name to "None".
14766 (GetFileSecurity_Name): New global var, the name of the function
14767 to call for GetFileSecurity.
14768 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
14769 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
14770 (get_file_security, get_security_descriptor_owner)
14771 (get_security_descriptor_group, is_valid_sid)
14772 (get_file_security_desc, get_rid, get_name_and_id)
14773 (get_file_owner_and_group): New functions.
14774 (stat): Use get_file_security_desc and get_file_owner_and_group to
14775 report the owner and primary group of each file. Don't ignore the
14776 high 32 bits of file's size, now that st_size is 64-bit wide.
14777 Fix test when to get true file attributes.
14778 (init_user_info): Use get_rid instead of equivalent inline code.
14779 (fstat): Don't ignore the high 32 bits of file's size.
14780
147812008-05-09 Chong Yidong <cyd@stupidchicken.com>
14782
14783 * image.c (png_load): Use correct bit-depth for setting background
14784 color.
14785
147862008-05-08 Eli Zaretskii <eliz@gnu.org>
14787
14788 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
14789 epa-hook.elc.
14790
147912008-05-08 Juanma Barranquero <lekktu@gmail.com>
14792
14793 * font.c (Ffont_match_p): Don't use `iff' in docstring.
14794
147952008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
14796
14797 * macfns.c (Fx_create_frame): Make a copy of frame parameters
14798 because the original parameters are in pure storage now.
14799 (mac_window): Remove unused params. Update callers.
14800
148012008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14802
14803 * lread.c (substitute_object_recurse): Use lower-level primitives.
14804 Don't signal errors when traversing sub-char-tables.
14805 Don't loop over all the possible characters when traversing char-tables.
14806
14807 * print.c (print_preprocess): Add sub-char-tables to the print-table,
14808 just like we do in print.c.
14809
148102008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
14811
14812 * minibuf.c (Ftry_completion): Remove code left over from when we used
14813 scmp instead of Fcompare_strings.
14814
148152008-05-04 Juanma Barranquero <lekktu@gmail.com>
14816
14817 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
14818
148192008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14820
14821 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
14822 Create bitmap context in native byte order.
14823
14824 * macterm.c (XDrawLine)
14825 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
14826 context in native byte order.
14827
148282008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14829
14830 * config.in: Regenerate.
14831
14832 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
14833 New definitions for Image I/O support.
14834 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14835 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
14836 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14837 (mac_data_provider_release_data, image_load_image_io)
14838 [USE_MAC_IMAGE_IO]: New functions.
14839 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
14840 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
14841 (init_image_func_pointer) [MAC_OSX]: Remove function.
14842 (image_load_quartz2d) [MAC_OSX]: Check availability of
14843 CGImageCreateWithPNGDataProvider at compile time.
14844 Use lowercase `false' for boolean constant.
14845 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
14846 Use image_load_image_io.
14847 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
14848 Don't check MyCGImageCreateWithPNGDataProvider.
14849 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14850 Don't call init_image_func_pointer.
14851
14852 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14853
14854 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14855 Make variable non-static.
14856 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14857 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14858
14859 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14860 (RED_FROM_ULONG): Mask off higher bits.
14861 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14862
14863 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14864 Include AvailabilityMacros.h.
14865 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14866 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14867
148682008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14869
14870 * chartab.c (Fset_char_table_range): If range is t, really set all
14871 chars to that value.
14872
148732008-05-03 Eli Zaretskii <eliz@gnu.org>
14874
14875 * dired.c (Ffile_attributes): Don't allow the device number become
14876 negative.
14877
148782008-05-02 Daiki Ueno <ueno@unixuser.org>
14879
14880 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14881
148822008-05-02 Juri Linkov <juri@jurta.org>
14883
14884 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14885 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14886 DEFAULT argument as a list of default values in docstrings.
14887
148882008-05-01 Chong Yidong <cyd@stupidchicken.com>
14889
14890 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14891
148922008-05-01 Martin Rudalics <rudalics@gmx.at>
14893
14894 * dispnew.c (change_frame_size_1): Preserve small windows when
14895 shrinking frames by calling set_window_height|width with third
14896 arg 2.
14897
14898 * window.h (struct window): Replace field too_small_ok by field
14899 resize_proportionally.
14900
14901 * window.c (make_window): Initialize resize_proportionally.
14902 (enlarge_window): Temporarily set resize_proportionally to make
14903 sure that shrink_windows does scale the window proportionally.
14904 (shrink_windows): When window has resize_proportionally set try
14905 to shrink it proportionally by stealing from other windows.
14906 (struct saved_window, Fset_window_configuration)
14907 (compare_window_configurations): Handle resize_proportionally.
14908 (WINDOW_TOTAL_SIZE): New macro.
14909 (window_min_size, shrink_windows, size_window): Use it.
14910 (check_min_window_sizes): Remove. Invalid values of
14911 window-min-height|width are handled by window_min_size_2 now.
14912 (size_window, Fsplit_window, enlarge_window)
14913 (adjust_window_trailing_edge, grow_mini_window): Don't call
14914 check_min_window_sizes.
14915 (window_min_size_2, window_min_size_1, window_min_size):
14916 New argument safe_p for retrieving "safe" minimum sizes.
14917 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14918 (adjust_window_trailing_edge, grow_mini_window):
14919 Adjust arguments of window_min_size... functions.
14920 (shrink_windows): Argument min_size removed. New argument
14921 safe_p allows shrinking windows to their safe minimum sizes.
14922 Calculate minimum size and decide whether a window shall be
14923 deleted for each window individually.
14924 (size_window): When nodelete_p equals 2, tell shrink_windows to
14925 delete windows only if their new minimum size is no more safe.
14926 (shrink_window_lowest_first): Call window_min_size_1 to make
14927 sure to preserve modeline of bottom-most window when resizing
14928 the minibuffer.
14929 (Fset_window_configuration, Fcurrent_window_configuration)
14930 (compare_window_configurations): Do not handle
14931 window-min-height|width any more.
14932 (syms_of_window): Clarify window-min-height|width doc-strings.
14933
149342008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14935
14936 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14937 some more. Copy some of the code from Ftry_completions.
14938 Remove special case code that dates back to initial revision when the
14939 slash was only added when necessary and that can't trigger nowadays.
14940
149412008-04-27 Kenichi Handa <handa@m17n.org>
14942
14943 * font.c (font_prop_validate): Signal `error' instead of `font'.
14944
149452008-04-29 Jason Rumney <jasonr@gnu.org>
14946
14947 * w32fns.c (Fw32_battery_status): New defun.
14948 (syms_of_w32fns): Defsubr it.
14949
149502008-04-28 Andreas Schwab <schwab@suse.de>
14951
14952 * dired.c (file_name_completion): Fix another mixing of encoded
14953 and decoded names.
14954
149552008-04-28 Juanma Barranquero <lekktu@gmail.com>
14956
14957 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14958
149592008-04-27 Juanma Barranquero <lekktu@gmail.com>
14960
14961 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14962
149632008-04-27 Andreas Schwab <schwab@suse.de>
14964
14965 * dired.c (file_name_completion): Fix inappropriate mixing of
14966 encoded and decoded names.
14967
14968 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14969
14970 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14971
149722008-04-26 Eli Zaretskii <eliz@gnu.org>
14973
14974 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14975 2008-03-31, it's not needed anymore with `struct stat' definition
14976 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14977 for the same reasons.
14978
149792008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14980
14981 * m/sparc.h: Additional redefinitions for GNU/Linux.
14982
149832008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14984
14985 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14986 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14987 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14988 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14989 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14990 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14991 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14992 Likewise.
14993
14994 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14995 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14996 (mac_ax_number_of_characters): Add externs.
14997 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14998 [USE_MAC_TSM]: Likewise.
14999 (mac_handle_text_input_event) [MAC_OSX]:
15000 Handle kEventTextInputOffsetToPos for no active input area case.
15001 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15002 (mac_handle_document_access_event)
15003 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15004 (install_application_handler) [MAC_OSX]: Register handlers for
15005 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15006 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15007 Register mac_handle_document_access_event.
15008
15009 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15010 Make functions non-static.
15011
150122008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15013
15014 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15015 (read_file_name_completion_ignore_case, insert_default_directory)
15016 (Qdefault_directory): Move to minibuffer.el.
15017 (Fread_file_name): Call the new `read-file-name' instead.
15018
150192008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15020
15021 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15022 Make function non-static.
15023 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15024 Remove function.
15025 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15026 Move to mactoolbox.c.
15027 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15028
15029 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15030 (mac_rect_make): New macro.
15031
15032 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15033 instead of float.
15034 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15035 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15036 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15037 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15038 CGRectMake.
15039 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15040 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15041 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15042 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15043 instead of WindowRef in argument type.
15044 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15045 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15046 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15047 instead of DISPLAY. All uses changed.
15048 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15049 (x_calc_absolute_position): Simplify so as not to use
15050 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15051
15052 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15053 instead of WindowRef in argument type.
15054 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15055 [TARGET_API_MAC_CARBON]: Remove externs.
15056 (create_apple_event, mac_event_parameters_to_lisp)
15057 [TARGET_API_MAC_CARBON]: Add externs.
15058
15059 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15060 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15061 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15062 is clicked.
15063 (x_activate_menubar): Remove extern for saved_menu_event_location.
15064 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15065 Move from mac.c.
15066
150672008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15068
15069 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15070 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15071
150722008-04-23 Jason Rumney <jasonr@gnu.org>
15073
15074 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15075 attributes only for local files.
15076
15077 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15078 default to Qlocal.
15079
150802008-04-22 Juri Linkov <juri@jurta.org>
15081
15082 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15083 read-buffer-to-switch instead of using the letter "B".
15084
150852008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15086
15087 * fileio.c (Qdefault_directory): New variable.
15088 (Fread_file_name): Use it to pass `dir' to the completion functions.
15089
150902008-04-20 Chong Yidong <cyd@stupidchicken.com>
15091
15092 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15093
150942008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15095
15096 * keyboard.c (Vpre_help_message): Remove.
15097 (show_help_echo): Remove default C code.
15098
15099 * dired.c (directory_files_internal, file_name_completion):
15100 Only call ENCODE_FILE if the string is indeed decoded.
15101
151022008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15103
15104 * Makefile.in (TOOLKIT_DEFINES): Remove.
15105 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15106
151072008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15108
15109 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15110 (mactoolbox.o): New target.
15111
15112 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15113 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15114
15115 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15116 Use mac_set_frame_window_background instead of XSetWindowBackground.
15117 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15118 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15119 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15120 instead of SetWindowTitleWithCFString.
15121 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15122 Move function to mactoolbox.c.
15123 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15124 Use mac_set_window_modified instead of SetWindowModified.
15125 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15126 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15127 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15128 FrontNonFloatingWindow. Use mac_activate_window instead of
15129 ActivateWindow. Use mac_active_non_floating_window instead of
15130 ActiveNonFloatingWindow.
15131 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15132 Use mac_show_hourglass and mac_hide_hourglass.
15133 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15134 instead of GetGlobalMouse.
15135 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15136 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15137 Use mac_bring_window_to_front instead of BringToFront.
15138 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15139 mactoolbox.c.
15140 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15141 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15142 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15143 mactoolbox.c.
15144
15145 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15146 (XtPointer): Move typedef from macmenu.c.
15147 (enum button_type): Move enum from macmenu.c.
15148 (widget_value): Move typedef from macmenu.c.
15149 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15150 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15151 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15152 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15153 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15154 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15155 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15156 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15157 (Selection): Move typedef from macselect.c.
15158 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15159 macterm.c.
15160 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15161 (mac_is_window_collapsed, mac_bring_window_to_front)
15162 (mac_send_window_behind, mac_hide_window, mac_show_window)
15163 (mac_collapse_window, mac_front_non_floating_window)
15164 (mac_active_non_floating_window, mac_activate_window)
15165 (mac_move_window_structure, mac_move_window, mac_size_window)
15166 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15167
15168 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15169 (enum mac_menu_kind): Move enum to mactoolbox.c.
15170 (min_menu_id): Move variable to mactoolbox.c.
15171 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15172 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15173 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15174 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15175 [TARGET_API_MAC_CARBON]: Likewise.
15176 (XtPointer): Move typedef to macgui.h.
15177 (enum button_type): Move enum to macgui.h.
15178 (widget_value): Move typedef to macgui.h.
15179 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15180 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15181 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15182 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15183 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15184 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15185 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15186 (popup_activated_flag): Make variable non-static.
15187 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15188 (add_menu_item, fill_menu, dispose_menus):
15189 Move functions to mactoolbox.c.
15190 (restore_show_help_function, menu_target_item_handler)
15191 (install_menu_target_item_handler, mac_handle_dialog_event)
15192 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15193 [TARGET_API_MAC_CARBON]: Likewise.
15194 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15195 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15196 (find_and_call_menu_selection, name_is_separator): Make function
15197 non-static.
15198 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15199 to mactoolbox.c.
15200 (set_frame_menubar): Don't call install_menu_quit_handler.
15201 (menu_item_selection): New variable.
15202 (mac_menu_show): Use create_and_show_popup_menu.
15203 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15204 selection but set variable menu_item_selection. All uses changed.
15205 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15206 Call install_menu_quit_handler. Move to mactoolbox.c.
15207
15208 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15209 (Selection): Move typedef to macgui.h.
15210 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15211 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15212 Make variables non-static.
15213 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15214 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15215 Make functions non-static.
15216 (Vmac_service_selection) [MAC_OSX]: Likewise.
15217 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15218 (mac_valid_selection_target_p, mac_clear_selection)
15219 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15220 (mac_put_selection_value, mac_selection_has_target_p)
15221 (mac_get_selection_value, mac_get_selection_target_list)
15222 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15223 Move functions to mactoolbox.c.
15224 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15225 Likewise.
15226 (copy_scrap_flavor_data, mac_handle_service_event)
15227 (install_service_handler) [MAC_OSX]: Likewise.
15228 (syms_of_macselect) <Vmac_dnd_known_types>:
15229 Use mac_dnd_default_known_types.
15230
15231 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15232 Move to mactoolbox.c.
15233 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15234 (Fx_selection_owner_p): Add EXFUN.
15235 (install_window_handler, remove_window_handler, XSetWindowBackground):
15236 Remove externs.
15237 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15238 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15239 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15240 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15241 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15242 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15243 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15244 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15245 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15246 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15247 (mac_valid_selection_target_p, mac_clear_selection)
15248 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15249 (mac_put_selection_value, mac_selection_has_target_p)
15250 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15251 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15252 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15253 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15254 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15255 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15256 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15257 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15258 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15259
15260 * mactoolbox.c: New file.
15261
152622008-04-18 Jason Rumney <jasonr@gnu.org>
15263
15264 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15265
152662008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15267
15268 * character.c (Fmultibyte_char_to_unibyte):
15269 Return latin1 chars unchanged.
15270
15271 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15272 relocated if it points to `name'.
15273
152742008-04-17 Kenichi Handa <handa@m17n.org>
15275
15276 * data.c (Faset): Allow setting a multibyte character in an
15277 ASCII-only unibyte string.
15278
15279 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15280
152812008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15282
15283 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15284 done in config.h.
15285
152862008-04-16 Juanma Barranquero <lekktu@gmail.com>
15287
15288 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15289 (Fchar_direction): Add usage in the docstring.
15290
152912008-04-15 Chong Yidong <cyd@stupidchicken.com>
15292
15293 * keyboard.c (read_key_sequence): Remove always-true checks.
15294
152952008-04-14 Jason Rumney <jasonr@gnu.org>
15296
15297 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15298 compatibility struct, for better underline positioning.
15299
153002008-04-13 David Hansen <david.hansen@gmx.net>
15301
15302 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15303 string.
15304
153052008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15306
15307 * m/hp800.h (XUINT, XSET): Remove.
15308
153092008-04-12 Juanma Barranquero <lekktu@gmail.com>
15310
15311 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15312 previous change.
15313
153142008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15315
15316 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15317 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15318
153192008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15320
15321 * keymap.h (map_keymap_canonical): Declare.
15322 * xmenu.c (single_keymap_panes): Use it.
15323
153242008-04-11 Glenn Morris <rgm@gnu.org>
15325
15326 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15327 set the target's value to that of the alias.
15328
153292008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15330
15331 * term.c (set_tty_color_mode): Left over typo.
15332
153332008-04-10 Michael Albinus <michael.albinus@gmx.de>
15334
15335 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15336 only after check for file name handler functions. Signal, when
15337 native functionality is not supported.
15338 (syms_of_fileio): Declare it unconditionally.
15339
153402008-04-10 Jason Rumney <jasonr@gnu.org>
15341
15342 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15343 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15344
15345 * w32.c (logon_network_drive): Also logon to remote drives that
15346 are mapped to drive letters.
15347
153482008-04-10 Glenn Morris <rgm@gnu.org>
15349
15350 * xdisp.c (truncate-partial-width-windows): Doc fix.
15351
153522008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15353
15354 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15355 Move functions to minibuffer.el.
15356 (syms_of_fileio): Don't declare them.
15357
153582008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15359
15360 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15361 (syms_of_minibuf): Remove its initialization.
15362
15363 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15364
153652008-04-09 Juanma Barranquero <lekktu@gmail.com>
15366
15367 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15368
153692008-04-09 Jason Rumney <jasonr@gnu.org>
15370
15371 * makefile.w32-in (distclean): Delete makefile too.
15372 (maintainer-clean): New target.
15373
15374 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15375
15376 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15377 for new font backend and composite cases.
15378
153792008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15380
15381 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15382 Most of the code moved to run_timers.
15383 (do_pending_atimers): Call run_timers.
15384 (run_timers): New function.
15385
15386 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15387 run atimers.
15388
15389 * process.c (wait_reading_process_output): The same as above.
15390
153912008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15392
15393 * minibuf.c (last_exact_completion): Remove variable.
15394 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15395 (complete_and_exit_1, complete_and_exit_2)
15396 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15397 (Fdisplay_completion_list, display_completion_list_1)
15398 (Fminibuffer_completion_help, Fself_insert_and_exit)
15399 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15400 minibuffer.el.
15401 (syms_of_minibuf): Remove corresponding initializations.
15402
15403 * keyboard.c (Qdeactivate_mark): New var.
15404 (command_loop_1): Use it to call `deactivate-mark'.
15405 (syms_of_keyboard): Initialize it.
15406
15407 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15408 to another frame.
15409 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15410 Don't call set_tty_color_mode.
15411 (store_frame_param): Reset previous_frame rather than call
15412 set_tty_color_mode.
15413 * term.c (set_tty_color_mode): Rewrite.
15414 * dispextern.h (set_tty_color_mode): New type.
15415 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15416
154172008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15418
15419 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15420 for generic chars, which do not exist any more in emacs-unicode.
15421
154222008-04-08 Michael Albinus <michael.albinus@gmx.de>
15423
15424 * coding.c (detect_coding_emacs_mule)
15425 (Ffind_operation_coding_system): Fix typo.
15426
154272008-04-08 Jason Rumney <jasonr@gnu.org>
15428
15429 * w32uniscribe.c (SNAME): Extract only symbol name.
15430
15431 * w32font.h (struct w32_metric_cache): New struct.
15432 (w32font_info): Use it.
15433 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15434 (CACHE_BLOCKSIZE): New constants.
15435
15436 * w32font.c (Qja, Qko, Qzh): New symbols.
15437 (syms_of_w32font): Initialise them.
15438 (font_matches_spec): Use them to filter by language.
15439 (recompute_cached_metrics): Remove function.
15440 (compute_metrics, clear_cached_metrics): New functions.
15441 (w32font_encode_char): Use them to manage metric cache.
15442 (w32font_text_extents): Cache metrics for all glyphs on demand.
15443 Delay converting glyph indices to WORD until needed.
15444 (w32font_open_internal): Initialize metric cache to empty.
15445 (registry_to_w32_charset): Charset should always be a symbol.
15446 (fill_in_logfont, list_all_matching_fonts): Family should
15447 always be a symbol.
15448
154492008-04-06 Jason Rumney <jasonr@gnu.org>
15450
15451 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15452 Give up if glyph indices not supported. Use uniscribe obtained
15453 ABC widths for individual metrics. Map glyph clusters back to
15454 characters using fClusterStart flag. Return number of glyphs
15455 produced, not chars processed.
15456 (uniscribe_shape): Map char at FROM to current glyph.
15457
154582008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15459
15460 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15461 Use SetMenuItemHierarchicalMenu.
15462
154632008-04-05 Jason Rumney <jasonr@gnu.org>
15464
15465 * image.c (pbm_load): Allow color values up to 65535.
15466 Throw an error if max_color_idx is outside the supported range.
15467 Report an error when image size is invalid.
15468 Read two bytes at a time when raw images have max_color_idx above 255.
15469
aac0c6e3
MR
154702008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15471
15472 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15473 append "CCL: Quitted" when the CCL program is quitted.
15474 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15475
15476 * ccl.h (struct ccl_program): New member quit_silently.
15477
154782008-04-05 Chong Yidong <cyd@stupidchicken.com>
15479
15480 * search.c (compile_pattern_1): Treat non-nil and non-string of
15481 search-spaces-regexp as nil.
15482
15483 * minibuf.c (Fassoc_string): Tweak docstring.
15484
154852008-04-05 Eli Zaretskii <eliz@gnu.org>
15486
15487 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15488 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15489 2008-03-14 to force inode be positive.
15490
15491 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15492 _S_* ones, since we now use our own sys/stat.h.
15493 (stat, fstat): Don't mangle the inode number.
15494 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15495
154962008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15497
15498 * frame.h (struct frame): Give one more bit to `visible' since we use
15499 values larger than 1 to indicate obscured frames on ttys.
15500
15501 * keymap.c (Qkeymap_canonicalize): New var.
15502 (Fmap_keymap_internal): New fun.
15503 (describe_map): Use keymap-canonicalize.
15504
15505 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15506 (Fundo_boundary): Set them.
15507 (syms_of_undo): Initialize them.
15508 (record_point): Use them instead of last_point_position*.
15509 (last_undo_buffer): Change type.
15510
155112008-04-04 Jason Rumney <jasonr@gnu.org>
15512
15513 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15514 (recompute_cached_metrics): Don't set ascent and descent per char.
15515
15516 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15517 (uniscribe_check_otf): Add GC protection before consing.
15518 Rearrange loop for counting features.
15519
155202008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15521
15522 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15523 buffer with byte-size of source buffer.
15524
155252008-04-03 Chong Yidong <cyd@stupidchicken.com>
15526
15527 * callint.c (Fcall_interactively): Handle temporary region even
15528 when shift-select-mode is off.
15529
155302008-04-03 Jason Rumney <jasonr@gnu.org>
15531
15532 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15533
155342008-04-03 Kenichi Handa <handa@m17n.org>
15535
15536 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15537 (CATEGORY_MASK_UTF_16): Likewise.
15538 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15539 binary file.
15540 (detect_coding): Add null-byte detection for a binary file.
15541 (detect_coding_system): Likewise.
15542
155432008-04-03 Jason Rumney <jasonr@gnu.org>
15544
15545 * w32uniscribe.c: New file.
15546
15547 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
15548
15549 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
15550
15551 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
15552 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
15553 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
15554 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
15555 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
15556 (Qphonetic): New symbols.
15557 (syms_of_w32font): Initialize them.
15558 (font_supported_scripts): Use them.
15559 (w32font_list_family): List all charsets.
15560 (w32font_text_extents, recompute_cached_metrics): Fix metric
15561 calculations.
15562 (w32_enumfont_pattern_entity): Make full_type a DWORD.
15563 Give opentype fonts their own format.
15564 (font_matches_spec): New arguments backend and logfont.
15565 Handle :otf spec for uniscribe backend.
15566 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
15567 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
15568
15569 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
15570 font backend.
15571 (globals_of_w32fns): Initialize uniscribe font backend.
15572
15573 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
15574 dependencies.
15575 (w32uniscribe.$(O)): New file to build.
15576 (FONT_OBJ): Include w32uniscribe.$(O).
15577 (LIBS): Add uniscribe libraries.
15578
15579 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
15580
155812008-04-02 Chong Yidong <cyd@stupidchicken.com>
15582
15583 * callint.c (Vshift_select_mode): New var.
15584 (Finteractive): Document new ^ spec.
15585 (Fcall_interactively): Call handle-shift-selection if the ^ spec
15586 is present.
15587
15588 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15589 (command_loop_1): Avoid running the direct display versions of
15590 forward-char and backward-char if shift-selection may occur.
15591 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15592 shift-translation takes place.
15593
15594 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15595 avoid clobbering by define-minor-mode.
15596
15597 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15598 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15599
15600 * syntax.c (Fforward_word): Add ^ interactive spec.
15601
15602 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15603 (Fscroll_right): Add ^ interactive spec.
15604
156052008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15606
15607 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15608
15609 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15610
15611 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15612
156132008-03-31 Juri Linkov <juri@jurta.org>
15614
15615 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15616
156172008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15618
15619 * gtkutil.c (xg_set_geometry): Fix indentation.
15620 (xg_resize_outer_widget): Remove.
15621 (x_wm_size_hint_off): Fix indentation.
15622 (xg_frame_set_char_size): Call flush_and_sync after
15623 gtk_window_resize.
15624 (x_wm_set_size_hint): Pass NULL as geometry window to
15625 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15626 Add menu bar and tool bar height to base height.
15627 (xg_update_frame_menubar, free_frame_menubar)
15628 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15629 (update_frame_tool_bar, free_frame_tool_bar):
15630 Change xg_resize_outer_widget to xg_frame_set_char_size.
15631
156322008-03-30 Michael Albinus <michael.albinus@gmx.de>
15633
15634 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15635 (Fdbus_call_method): New parameter TIMEOUT.
15636 (dbus-send-signal): Optimize UNGCPRO call.
15637
156382008-03-29 Juri Linkov <juri@jurta.org>
15639
15640 * window.c (Fdisplay_buffer): Move call to
15641 Vsplit_window_preferred_function out of conditions that check
15642 if window is eligible for vertical splitting.
15643 When Vsplit_window_preferred_function is non-nil, call it and use
15644 its non-nil return value as window. Otherwise, continue doing
15645 vertical splitting using Fsplit_window with arg horflag=nil.
15646 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15647 default value from `split-window' to nil.
15648
156492008-03-29 Juri Linkov <juri@jurta.org>
15650
15651 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15652 for interactive code letters 'b' and 'B'.
15653
156542008-03-29 Eli Zaretskii <eliz@gnu.org>
15655
15656 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15657 multibyte string.
15658
156592008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15660
15661 * keyboard.c (pending_funcalls): New var.
15662 (timer_check): Run it.
15663 (syms_of_keyboard): Initialize it.
15664 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15665 (Vdelete_terminal_functions): New vars.
15666 (syms_of_terminal): Initialize them.
15667 (Fdelete_terminal): Run delete-terminal-functions.
15668 * xdisp.c (safe_eval): Rewrite.
15669 (safe_call2): New fun.
15670 * frame.c (Qdelete_frame_functions): New var.
15671 (syms_of_frame): Initialize it.
15672 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15673 * lisp.h (safe_call2, pending_funcalls): Declare.
15674
156752008-03-28 Andreas Schwab <schwab@suse.de>
15676
15677 * indent.c (Fmove_to_column): Move declaration before statements.
15678
156792008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15680
15681 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15682 (struct frame): Use bit fields for boolean vars.
15683
15684 * process.c (server_accept_connection): Simplify naming.
15685 (emacs_get_tty_pgrp): Use SDATA.
15686
15687 * coding.c (decode_coding_object): Fix last change.
15688
156892008-03-27 Jason Rumney <jasonr@gnu.org>
15690
15691 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
15692
156932008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
15694
15695 * charset.c (Fdefine_charset_internal): Change the way of
15696 registering charsets in Vcharset_order_list.
15697 (syms_of_charset): Make the charset `eight-bit' supplementary.
15698
156992008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
15700
15701 * regex.c (EXTEND_BUFFER): Change order of pointer addition
15702 operations, to avoid having the difference between pointers
15703 overflow.
15704
157052008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
15706
15707 * indent.c (check_display_width): New fun.
15708 (scan_for_column): Use it.
15709
15710 * data.c (syms_of_data): Mark most-positive-fixnum and
15711 most-negative-fixnum as constants.
15712
15713 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
15714
15715 * indent.c (scan_for_column): Extract from current_column_1.
15716 Merge with the same code from Fmove_to_column.
15717 (current_column_1, Fmove_to_column): Use it.
15718
157192008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
15720
15721 * keymap.c (map_keymap_internal): New fun.
15722 (map_keymap): Use it.
15723 (Fmap_keymap_internal): New fun.
15724 (Fmap_keymap): Remove left-out test from before make_save_value.
15725
15726 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
15727
15728 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
15729 Use XCAR/XCDR.
15730
15731 * process.h (struct Lisp_Process): Remove filter_multibyte.
15732 * process.c (QCfilter_multibyte): Remove.
15733 (setup_process_coding_systems): Don't use filter_multibyte.
15734 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
15735 (read_process_output): Don't adjust multibyteness to filter_multibyte.
15736 (Fset_process_filter_multibyte): Change the coding-system to
15737 approximate the previous behavior.
15738 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
15739 coding-system.
15740
15741 * coding.c (decode_coding_object): When not decoding into a buffer,
15742 obey the coding system's preference of (uni|multi)byte.
15743
157442008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
15745
15746 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
15747 every char is changed and has a different byte-length.
15748 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
15749 Fix int -> EMACS_INT.
15750
157512008-03-23 David Hansen <david.hansen@gmx.net>
15752
15753 * dbusbind.c (xd_read_message): Remove extra copying of message
15754 strings. Check for NULL `interface' or `member'.
15755
157562008-03-22 Eli Zaretskii <eliz@gnu.org>
15757
15758 * w32.c (readdir): If FindFirstFile/FindNextFile return in
15759 cFileName a file name that includes `?' characters, use the 8+3
15760 alias in cAlternateFileName instead.
15761
157622008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
15763
15764 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
15765
157662008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15767
15768 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
15769 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
15770 work on current_buffer only instead (that was already the case
15771 for some of the code anyway).
15772 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
15773 (temp_set_point, temp_set_point_both): Use EMACS_INT.
15774 (SET_PT, SET_PT_BOTH): Adjust.
15775 * intervals.h (set_point, temp_set_point, set_point_both)
15776 (temp_set_point_both): Remove redundant declarations.
15777
157782008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15779
15780 * fileio.c (Finsert_file_contents):
15781 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
15782 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
15783 when buffer != current_buffer anyway.
15784
157852008-03-20 Andreas Schwab <schwab@suse.de>
15786
15787 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
15788 as default.
15789
157902008-03-19 Jason Rumney <jasonr@gnu.org>
15791
15792 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
15793 (syms_of_w32fns): Initialize them.
15794 (HOURGLASS_ID): New constant.
15795 (x_window_to_frame): Don't check hourglass_window.
15796 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
15797 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
15798 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
15799 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
15800 Only change the cursor if hourglass is not active.
15801 (Fx_create_frame): Initialize frame's current_cursor.
15802 (hourglass_atimer): Remove.
15803 (hourglass_started): New function.
15804 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
15805 (show_hourglass): Adapt to w32, changing argument to frame.
15806
15807 * w32term.h (struct w32_output): Remove hourglass_window.
15808 Add current_cursor.
15809
15810 * eval.c (call_debugger, Fsignal):
15811 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
15812 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
15813 (Fexecute_extended_command, cancel_hourglass_unwind):
15814 * minibuf.c (read_minibuf):
15815 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
15816
158172008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
15818
15819 * window.c (run_funs): New fun.
15820 (run_window_configuration_change_hook): Use it to run the buffer-local
15821 and the global part of the hook.
15822
15823 * xdisp.c (format_mode_line_unwind_data): Add window argument.
15824 (unwind_format_mode_line): Restore selected window.
15825 (x_consider_frame_title, Fformat_mode_line): Set selected window.
15826
158272008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15828
15829 * editfns.c (Fchar_equal): Check they are valid characters.
15830
15831 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
15832
158332008-03-17 Andreas Schwab <schwab@suse.de>
15834
15835 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
15836 against a charset.
15837
15838 * lisp.h (Fbuffer_list): Declare.
15839
158402008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 15841
aac0c6e3
MR
15842 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
15843 handlebox_widget is != 0.
15844
158452008-03-16 Juri Linkov <juri@jurta.org>
15846
15847 * callint.c (Fcall_interactively): For interactive code letters
15848 'b' and 'B' put the buffer list into the list of default "future"
15849 values of the minibuffer.
15850
158512008-03-16 Andreas Schwab <schwab@suse.de>
15852
15853 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15854 modifiers.
15855
15856 * regex.c (re_match_2_internal): Correct matching of a charset
15857 against latin-1 characters.
15858
158592008-03-16 Kenichi Handa <handa@m17n.org>
15860
15861 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15862 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15863 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15864 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15865 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15866 CHAR_STRING_ADVANCE.
15867 (produce_chars): Fix for the case that the source and the
15868 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15869 instead of CHAR_STRING_ADVANCE.
15870 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15871 STRING_CHAR_ADVANCE.
15872
158732008-03-15 Andreas Schwab <schwab@suse.de>
15874
15875 * regex.c (re_match_2_internal): Correct matching of eight bit
15876 characters in unibyte strings.
15877
158782008-03-15 Martin Rudalics <rudalics@gmx.at>
15879
15880 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15881 at end of range when it coincides with the end of the buffer.
15882
158832008-03-14 Eli Zaretskii <eliz@gnu.org>
15884
15885 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15886
15887 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15888
158892008-03-14 Jason Rumney <jasonr@gnu.org>
15890
15891 * editfns.c (initial_tz): New variable.
15892 (syms_of_editfns): Initialize it.
15893 (Fset_time_zone_rule): Set it when first called.
15894 Use it when TZSTRING is nil.
15895
15896 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15897 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15898 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15899 (globals_of_w32fns): Initialize them.
15900 (compute_tip_xy): Use them to position tooltips.
15901
159022008-03-14 Glenn Morris <rgm@gnu.org>
15903
15904 * emacs.c (main): Revert previous change.
15905 (standard_args): Revert -internal-script back to -scriptload,
15906 and remove the long-option form.
15907
159082008-03-13 Glenn Morris <rgm@gnu.org>
15909
15910 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15911 Remove option -enable-font-backend.
15912
159132008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15914
15915 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15916
159172008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15918
15919 * xterm.c (x_connection_closed): For GTK: If this is the last
15920 terminal just exit without closing the display.
15921
159222008-03-11 Jason Rumney <jasonr@gnu.org>
15923
15924 * w32font.c (w32font_full_name): Use floor to round.
15925
f0131492 159262008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
15927
15928 * sound.c (alsa_configure): Declare vol at beginning of block.
15929
15930 * fontset.c (Ffontset_info): Remove extra semicolon.
15931
159322008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15933
15934 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15935 size of resulting string.
15936
159372008-03-10 Jason Rumney <jasonr@gnu.org>
15938
15939 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15940
159412008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15942
15943 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15944 Don't pretend as if characters with display property haven't been
15945 consumed for string-replacing-string case.
15946
159472008-03-08 Kim F. Storm <storm@cua.dk>
15948
15949 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15950 (get_next_display_element, next_element_from_string)
15951 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15952
159532008-03-08 Andreas Schwab <schwab@suse.de>
15954
15955 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15956
159572008-03-06 Jason Rumney <jasonr@gnu.org>
15958
15959 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15960 when charset not specified. Only translate ANSI to unicode when
15961 font_type is truetype.
15962 (w32font_coverage_ok): New function.
15963 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15964
159652008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15966
15967 * lread.c (Fread_char): Resolve modifiers.
15968 (Fread_char_exclusive): Likewise.
15969
15970 * character.c (char_resolve_modifier_mask): New function.
15971 (char_string): Use char_resolve_modifier_mask.
15972 (Fchar_resolve_modifiers): New function.
15973 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15974 function.
15975
159762008-03-04 Jason Rumney <jasonr@gnu.org>
15977
15978 * makefile.w32-in: Always include w32font.c in the build.
15979 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15980
159812008-03-04 Andreas Schwab <schwab@suse.de>
15982
15983 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15984 (versionclean): Likewise.
15985
159862008-03-04 Juanma Barranquero <lekktu@gmail.com>
15987
15988 * .cvsignore: Add oo.
15989
159902008-03-03 Andreas Schwab <schwab@suse.de>
15991
15992 * coding.c (decode_coding_object): Inhibit gap shrinking while
15993 decoding in place.
15994
159952008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15996
15997 * w32term.c: Remove unused include "gnu.h".
15998 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15999
16000 * gnu.h: Rename to ...
16001 * emacs-icon.h: ... this.
16002 * xterm.c: Use emacs-icon.h instead of gnu.h.
16003 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16004
160052008-03-03 Juanma Barranquero <lekktu@gmail.com>
16006
16007 * w32font.c: Include math.h.
16008
160092008-03-03 Jason Rumney <jasonr@gnu.org>
16010
16011 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16012 Compute options separately.
16013 (w32font_open_internal): Set glyph_idx before caching metrics.
16014
16015 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16016 Define if system headers don't.
16017 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16018 (w32font_encode_char): Don't declare here.
16019
16020 * w32font.c (Quniscribe, QCformat): New symbols.
16021 (syms_of_w32font): Define them.
16022 (w32font_has_char): Indicate uncertainty.
16023 (w32font_encode_char): Encode as glyph point. Make static.
16024 (recompute_cached_metrics): New function.
16025 (w32font_open_internal): Use it. Set font to use glyph points
16026 initially. Set format based on type of font.
16027 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16028 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16029 on it. Set format based on information available here.
16030 (add_font_entity_to_list): Identify backend based on opentype_only.
16031
160322008-03-02 Andreas Schwab <schwab@suse.de>
16033
16034 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16035
16036 * coding.c (decode_coding_big5, produce_chars):
16037 Fix typos in last change.
16038
160392008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16040
16041 * gnu.h: New icon.
16042
160432008-03-02 Kenichi Handa <handa@m17n.org>
16044
16045 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16046 `dos', don't decode '\r' if that is the last in the source.
16047 (decode_coding_utf_16, decode_coding_emacs_mule)
16048 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16049 (decode_coding_raw_text, decode_coding_charset): Likewise.
16050 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16051
160522008-03-01 Jason Rumney <jasonr@gnu.org>
16053
16054 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16055
160562008-03-01 Kim F. Storm <storm@cua.dk>
16057
16058 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16059
160602008-03-01 Jason Rumney <jasonr@gnu.org>
16061
16062 * w32font.c (w32font_full_name): New function.
16063 (w32font_open_internal): Use it.
16064
160652008-03-01 Kim F. Storm <storm@cua.dk>
16066
16067 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16068
160692008-03-01 Jason Rumney <jasonr@gnu.org>
16070
16071 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16072
160732008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16074
16075 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16076 xg_frame_resized when the event is for the edit widget.
16077
16078 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16079
16080 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16081 set_char_size.
16082 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16083 operations on widgets here. Just set frame size if needed.
16084 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16085 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16086 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16087 the whole frame.
16088 (xg_create_tool_bar): Move attachment of the tool bar to
16089 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16090 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16091
160922008-03-01 Jason Rumney <jasonr@gnu.org>
16093
16094 * w32fns.c (w32_msg_pump): Disable debug code.
16095
160962008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16097
16098 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16099
161002008-02-29 Chong Yidong <cyd@stupidchicken.com>
16101
16102 * xdisp.c (next_overlay_string): Don't set
16103 overlay_strings_at_end_processed_p if we're currently reading from
16104 a display string.
16105
161062008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16107
16108 * xdisp.c (get_overlay_strings_1): Fix typo.
16109
161102008-02-29 Chong Yidong <cyd@stupidchicken.com>
16111
16112 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16113
161142008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16115
16116 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16117
16118 * xdisp.c (display_mode_element): Cancel the previous change.
16119 (decode_mode_spec): Likewise.
16120 (handle_auto_composed_prop): Don't make composition if it->string
16121 is a string.
16122
161232008-02-27 Kim F. Storm <storm@cua.dk>
16124
16125 * lisp.h (GLYPH): Change type from int to struct with separate char
16126 and face_id members.
16127 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16128 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16129 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16130 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16131 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16132 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16133 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16134 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16135 handle new Lisp glyph code encoding, either an integer or a cons.
16136
16137 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16138 (GLYPH_ALIAS): Delete.
16139 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16140 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16141 (GLYPH_FROM_CHAR): Replace macro by ...
16142 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16143
16144 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16145 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16146 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16147 (GLYPH_INVALID_P): New macro.
16148 (spec_glyph_lookup_face): Update prototype.
16149
16150 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16151 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16152 new glyph code encoding.
16153 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16154 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16155
16156 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16157 Adapt to new glyph type and new glyph code encoding.
16158
16159 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16160
16161 * indent.c (current_column, current_column_1, Fmove_to_column)
16162 (compute_motion): Adapt to new glyph code encoding.
16163
16164 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16165
161662008-02-27 Chong Yidong <cyd@stupidchicken.com>
16167
16168 * process.c (wait_reading_process_output): Check for window
16169 changes caused by timers.
16170 Suggested by Johan Bockgård.
16171
161722008-02-27 Glenn Morris <rgm@gnu.org>
16173
16174 * emacs.c (USAGE1): Add `--disable-font-backend'.
16175
161762008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16177
16178 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16179 is made to the buffer.
16180
161812008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16182
16183 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16184 (face_at_string_position):
16185 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16186 (face_at_string_position):
16187 * xdisp.c (display_string, next_overlay_change):
16188 * buffer.h (overlays_at):
16189 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16190 Update callers.
16191
161922008-02-26 Chong Yidong <cyd@stupidchicken.com>
16193
16194 * editfns.c (Fformat): Doc fix.
16195
161962008-02-26 Juanma Barranquero <lekktu@gmail.com>
16197
16198 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16199 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16200 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16201
162022008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16203
16204 * buffer.c (Fbuffer_swap_text): New function.
16205 (syms_of_buffer): Defsubr it.
16206
162072008-02-25 Chong Yidong <cyd@stupidchicken.com>
16208
16209 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16210
162112008-02-25 Jason Rumney <jasonr@gnu.org>
16212
16213 * w32font.c (w32font_draw): Draw one character at a time when padding.
16214
162152008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16216
16217 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16218 Handle a nil arg. Use run_window_configuration_change_hook.
16219 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16220 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16221 Use run_window_configuration_change_hook.
16222
162232008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16224
16225 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16226 1-pixel width.
16227
162282008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16229
16230 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16231 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16232 if the glyph in the font is zero pixel with.
16233
16234 * dispextern.h (struct glyph_string): New member padding_p.
16235
16236 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16237
16238 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16239
16240 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16241
16242 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16243
16244 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16245
162462008-02-25 Jason Rumney <jasonr@gnu.org>
16247
16248 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16249
162502008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16251
16252 Allow fine-grained image-cache flushing.
16253 * dispextern.h (struct image): Add `dependencies' field.
16254 (clear_image_caches): Change arg to Lisp_Object.
16255 * image.c (make_image): Initialize `dependencies' field.
16256 (clear_image_cache): Change arg to allow fine-grained flushing.
16257 Perform the flush even if image-cache-eviction-delay is nil.
16258 (clear_image_caches): Change arg to Lisp_Object.
16259 (Fclear_image_cache): Expand meaning of the argument.
16260 (mark_image): Mark `dependencies' field.
16261 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16262 (lface_hash): Use XHASH rather than XFASTINT.
16263 (face_at_buffer_position): Fix int -> EMACS_INT position.
16264 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16265 (select_frame_for_redisplay): Remove code duplication.
16266 (redisplay_internal): Adapt arg to call to clear_image_caches.
16267
162682008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16269
16270 * s/vms4-0.h:
16271 * s/vms4-2.h:
16272 * s/vms4-4.h:
16273 * s/vms5-5.h: Remove, unused.
16274
16275 * s/irix5-2.h:
16276 * s/irix6-0.h:
16277 * s/riscos5.h:
16278 * s/mach-bsd4-3.h:
16279 * m/mips4.h: Remove files for obsolete systems.
16280
16281 * Makefile.in:
16282 * filelock.c:
16283 * unexmips.c:
16284 * m/hp9000s300.h:
16285 * m/iris4d.h:
16286 * s/aix3-1.h:
16287 * s/hpux.h:
16288 * s/msdos.h:
16289 * s/usg5-0.h:
16290 * s/usg5-2-2.h:
16291 * s/usg5-2.h:
16292 * s/usg5-3.h: Remove references to obsolete variables.
16293
16294 * s/irix5-0.h: Remove, move all the contents ...
16295 * s/irix6-5.h: ... here. Simplify.
16296 * config.in: Regenerate.
16297
162982008-02-24 Jason Rumney <jasonr@gnu.org>
16299
16300 * w32term.c (x_draw_glyph_string_background): Clear the background
16301 manually when cleartype is in use.
16302 (x_draw_glyph_string_foreground): Draw text transparently when
16303 cleartype is in use.
16304
16305 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16306 a font into it unless we have to.
16307
163082008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16309
16310 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16311 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16312
aac0c6e3
MR
163132008-02-18 Jason Rumney <jasonr@gnu.org>
16314
16315 * w32fns.c (Fw32_shell_execute): Encode parameters.
16316
163172008-02-09 Eli Zaretskii <eliz@gnu.org>
16318
16319 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16320
163212008-02-05 Juanma Barranquero <lekktu@gmail.com>
16322
16323 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16324
163252008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16326
16327 * xterm.c (x_set_offset): Don't change the gravity if
16328 CHANGE_GRAVITY is -1.
16329
163302008-02-23 Chong Yidong <cyd@stupidchicken.com>
16331
16332 * fileio.c (auto_save_error_occurred): New var.
16333 (auto_save_error): Set it.
16334 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16335 error occurred.
16336
163372008-02-23 Eli Zaretskii <eliz@gnu.org>
16338
16339 * w32.c (globals_of_w32): Add initializations for
16340 g_b_init_get_sid_sub_authority and
16341 g_b_init_get_sid_sub_authority_count.
16342
163432008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16344
16345 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16346 (font_parse_xlfd): Use them for sanity check.
16347 (Finternal_set_font_style_table): Make sure the table is bijective.
16348
16349 Consolidate the image_cache to the terminal struct.
16350 * termhooks.h (P_): Remove redundant def.
16351 (struct terminal): New field `image_cache'.
16352 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16353 of FRAME_X_IMAGE_CACHE.
16354 * xterm.h (struct x_display_info): Remove image_cache field.
16355 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16356 * w32term.h (struct w32_display_info): Remove image_cache field.
16357 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16358 * macterm.h (struct mac_display_info): Remove image_cache field.
16359 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16360 * xterm.c (x_term_init):
16361 * w32term.c (w32_term_init):
16362 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16363 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16364 Remove declarations.
16365 (clear_image_caches, mark_image_cache): New declarations.
16366 * xfaces.c (clear_face_cache):
16367 * xdisp.c (redisplay_internal): Use clear_image_caches.
16368 * image.c (clear_image_cache): Don't check that a frame is on
16369 a window-system before checking if it shares the same cache.
16370 (clear_image_caches): New function.
16371 (Fclear_image_cache): Use it.
16372 (mark_image): Move from allo.c.
16373 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16374 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16375 (mark_object): Don't call mark_image_cache for frames.
16376 (mark_terminals): Call mark_image_cache.
16377
16378 * lisp.h (Fdelete_terminal): Declare.
16379
16380 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16381 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16382 wrong_type_argument.
16383
163842008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16385
16386 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16387 malayalam.el, and tamil.el. Add sinhala.el.
16388
163892008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16390
16391 * xterm.c (x_connection_closed): Consolidate identical tests.
16392 (x_delete_terminal): Don't crash if called via x_connection_closed.
16393
163942008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16395
16396 * xdisp.c (decode_mode_spec): New arg string.
16397 (display_mode_element): Adjust for the above change.
16398
163992008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16400
16401 * callint.c (Fcall_interactively): Use AREF.
16402
164032008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16404
16405 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16406
164072008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16408
16409 * xfns.c (Fx_show_tip): Set string to " " if empty.
16410
164112008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16412
16413 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16414 with Qt.
16415
164162008-02-17 Kenichi Handa <handa@m17n.org>
16417
16418 * ftfont.c (ftfont_shape): Return Lispy number.
16419
16420 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16421 for GCs.
16422 (Finternal_set_font_selection_order): Call font_update_sort_order
16423 only when enable_font_backend is set.
16424 (realize_x_face): Set face->font_info to that of default face only
16425 when enable_font_backend is set.
16426
16427 * xdisp.c (handle_composition_prop): Set it->c to the fist
16428 character of the composed region.
16429 (fill_composite_glyph_string): Set base_face->font_info to
16430 s->font_info. Get a face for ascii from base_face->ascii_face.
16431 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16432 with a face already decided.
16433 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16434 non-negative.
16435 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16436 call font_prepare_composition unconditionally.
16437
16438 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16439
16440 * xterm.h (struct x_display_info): New member font.
16441
16442 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16443 (x_set_mouse_face_gc, x_new_font): Likewise.
16444 (x_term_init): Setup display_info->font.
16445 (x_delete_terminal): Free display_info->font.
16446
16447 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16448
16449 * ftxfont.c (ftxfont_default_fid): Delete it.
16450 (ftxfont_open): Set xfont->fid to 0.
16451 (ftxfont_end_for_frame): Clear data specific to the frame and the
16452 font-driver.
16453
16454 * xftfont.c (xftfont_default_fid): Delete it.
16455 (xftfont_open): Set xfont->fid to 0.
16456
16457 * fontset.c (FONTSET_OBJLIST): New macro.
16458 (fontset_find_font): Update font-object list of the fontset.
16459 (free_realized_fontset): New function.
16460 (free_face_fontset): Call free_realized_fontset.
16461 (Ffont_info): Call font_close_object only when enable_font_backend
16462 is set.
16463
16464 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16465 [HAVE_NTGUI]: Include w32term.h.
16466 [MAC_OS]: Include macterm.ch.
16467 (font_otf_ValueRecord): Use make_number.
16468 (font_finish_cache): Fix handling of reference count.
16469 (font_clear_cache): Update num_fonts.
16470 (font_open_entity): Update smallest_char_width and
16471 smallest_font_height of the frame.
16472 (font_close_object): Update num_fonts.
16473 (Fclear_font_cache): Fix finding the target cache data.
16474
164752008-02-16 Glenn Morris <rgm@gnu.org>
16476
16477 * fontset.c (Finternal_char_font): Fix compilation warning.
16478
164792008-02-16 Eli Zaretskii <eliz@gnu.org>
16480
16481 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16482 instead of char arrays. Enlarge the size of array passed to
16483 get_token_information.
16484
16485 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16486 warnings.
16487
164882008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16489
16490 * .gdbinit: Don't set `args', it breaks gdb --args.
16491
164922008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16493
16494 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16495 within a narrowed buffer.
16496
164972008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16498
16499 * coding.c (decode_coding_object, encode_coding_object):
16500 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16501
165022008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16503
16504 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16505 hardcoding 1.
16506 (detect_coding_system):
16507 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16508 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16509 * insdel.c (insert_from_gap):
16510 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16511 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16512 (string_to_multibyte):
16513 * character.c (chars_in_text, multibyte_chars_in_text):
16514 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16515
16516 * character.h (FETCH_STRING_CHAR_ADVANCE)
16517 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16518 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16519 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16520
16521 * casefiddle.c (casify_region): Only call after-change and composition
16522 functions on the part of the region that was changed.
16523
16524 * keyboard.c (read_avail_input):
16525 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16526
165272008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16528
16529 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16530 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16531
165322008-02-11 Juanma Barranquero <lekktu@gmail.com>
16533
16534 * w32menu.c (push_submenu_start, push_submenu_end)
16535 (push_left_right_boundary, push_menu_pane, push_menu_item):
16536 * keyboard.c (read_key_sequence): Don't pass args with side effects
16537 to AREF, it fails when compiling with -DENABLE_CHECKING.
16538
165392008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16540
16541 * Makefile.in (${lispsource}international/charprop.el):
16542 Delete this target.
16543
16544 * search.c (boyer_moore): Fix incorrect synching of the trunk and
16545 emacs-unicode-2.
16546
165472008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16548
16549 * terminal.c (Fdelete_terminal): Clean up the `force' path.
16550
165512008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16552
16553 * frame.c (Qnoelisp): New symbol.
16554 (syms_of_frame): Initialize it.
16555 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
16556 harmless Elisp code, from a strong `force' from x_connection_closed.
16557 * frame.h (Qnoelisp): Declare.
16558 * xterm.c (x_connection_closed): Pass `noelisp'.
16559
16560 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
16561 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
16562 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
16563 rather than `int' for the type of `type'.
16564
165652008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
16566
16567 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
16568
16569 * Makefile.in (GNUC): Remove support for gcc-1.x.
16570
165712008-02-10 Richard Stallman <rms@gnu.org>
16572
16573 * lisp.h (ASET): Use AREF, not ASLOT.
16574
165752008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16576
16577 * lisp.h (ASET): Check bounds.
16578
165792008-02-10 Glenn Morris <rgm@gnu.org>
16580
16581 * buffer.c (mode-name): Doc fix.
16582
165832008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16584
16585 * Makefile.in:
16586 * emacs.c:
16587 * gmalloc.c:
16588 * keyboard.c:
16589 * lisp.h:
16590 * m/ibm370aix.h:
16591 * process.c:
16592 * regex.c:
16593 * s/hpux.h:
16594 * sysdep.c:
16595 * sysselect.h:
16596 * systty.h:
16597 * unexec.c:
16598 * w32term.c:
16599 * xsmfns.c:
16600 * xterm.c: Remove code that deals with obsolete variables.
16601
16602 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16603
16604 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16605 nothing else needs it anymore.
16606
166072008-02-09 Eli Zaretskii <eliz@gnu.org>
16608
16609 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16610 instead of unibyte_char_to_multibyte.
16611
166122008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16613
16614 * s/gnu-linux.h: Remove commented out code.
16615
16616 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16617
16618 * Makefile.in: Update what RMS says about using autoconf.
16619 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16620 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16621 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16622 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16623
166242008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16625
16626 * keymap.c (Fkey_description): Move side effect outside of macro call.
16627
16628 * xfaces.c (Finternal_make_lisp_face):
16629 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16630
16631 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16632 (syms_of_fontset): Use ASET.
16633
16634 * fns.c (concat): Move side effect outside of macro call.
16635 (hash_clear): Use ASET.
16636
166372008-02-08 Richard Stallman <rms@gnu.org>
16638
16639 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16640 If FORCE, and frame has a surrogate minibuffer for another frame,
16641 delete the other frame first.
16642
166432008-02-07 Timo Savola <timo.savola@iki.fi>
16644
16645 * xterm.c (x_detect_focus_change): Handle embed client message.
16646 (handle_one_xevent): Ditto.
16647 (handle_one_xevent): If embedded and we get a button press/release,
16648 request focus.
16649 (xembed_set_info, xembed_send_message): New functions.
16650 (x_make_frame_visible): Call xembed_set_info if embedded.
16651 (x_make_frame_invisible): Call xembed_set_info if embedded.
16652 (x_term_init): Initialize Xatom_XEMBED.
16653 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16654 (x_iconify_frame): Ditto.
16655
16656 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16657 (enum xembed_info, enum xembed_message, enum xembed_focus)
16658 (enum xembed_modifier, enum xembed_accelerator): New.
16659 (xembed_set_info, xembed_send_message): Declare.
16660 (FRAME_X_EMBEDDED_P): New.
16661
16662 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16663 gtk_plug_new.
16664
16665 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16666 window ID of a frame.
16667 (x_window): Reparent frame if embedded.
16668 (Fx_create_frame): Don't set border width if embedded.
16669
16670 * emacs.c (USAGE3): Add --parent-id.
16671 (standard_args): Ditto.
16672
166732008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16674
16675 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16676
166772008-02-07 Jim Meyering <meyering@redhat.com>
16678
16679 Use "do...while (0)", not "if (1)...else" in macro definitions.
16680 The latter provokes a warning from gcc about the empty else, when
16681 followed by ";". Also, without that trailing semicolon, it would
16682 silently swallow up any following statement.
16683 * syntax.h (SETUP_SYNTAX_TABLE)
16684 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16685 * buffer.h (DECODE_POSITION): Likewise.
16686 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16687 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16688 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16689 (FETCH_CHAR_ADVANCE): Likewise.
16690 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
16691
166922008-02-07 Jim Meyering <meyering@redhat.com>
16693
16694 * lread.c [lint]: Don't include <sys/inode.h>.
16695
166962008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
16697
16698 * xselect.c (x_handle_dnd_message):
16699 * xmenu.c (digest_single_submenu, xmenu_show):
16700 * xdisp.c (with_echo_area_buffer_unwind_data)
16701 (format_mode_line_unwind_data, unwind_format_mode_line)
16702 (display_menu_bar):
16703 * eval.c (Ffetch_bytecode):
16704 * doc.c (store_function_docstring):
16705 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
16706 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
16707 * buffer.c (add_overlay_mod_hooklist): Use ASET.
16708
167092008-02-07 Kenichi Handa <handa@m17n.org>
16710
16711 * ftxfont.c (ftxfont_open): Don't set
16712 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
16713
16714 * ftfont.c (ftfont_open): Fix previous change.
16715
167162008-02-06 Jason Rumney <jasonr@gnu.org>
16717
16718 * w32font.c (w32font_text_extents): Fill in lbearing metric.
16719 Use cached metrics for ASCII characters.
16720 (w32font_open_internal): Don't set font's owning_frame.
16721 Cache metrics for ASCII characters.
16722
16723 * w32font.h (struct w32font_info): Add ascii_metrics.
16724 Remove owning_frame.
16725
167262008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
16727
16728 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
16729 to negative value.
16730
16731 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
16732
16733 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
16734
16735 * charset.c (syms_of_charset): Set QCtest and Qeq.
16736
167372008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
16738
16739 * process.c (Fstart_process):
16740 * callproc.c (Fcall_process): Handle the case where
16741 Funhandled_file_name_directory returns nil.
16742
16743 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
16744 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
16745 * font.c (check_gstring): Use them and AREF to access the vector before
16746 we know it's really a gstring.
16747 (Ffont_shape_text): Fix typo.
46e722a9 16748 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
16749
16750 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
16751 Declare.
16752
16753 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
16754
167552008-02-05 Jason Rumney <jasonr@gnu.org>
16756
16757 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
16758 Set smallest_font_height and smallest_char_width in display info.
16759
167602008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
16761
16762 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
16763
167642008-02-05 Miles Bader <miles@gnu.org>
16765
16766 * xfaces.c (get_lface_attributes, merge_named_face)
16767 (lookup_named_face, lookup_derived_face, realize_named_face):
16768 Revert 2008-02-01 change by cyd@stupidchicken.com.
16769
167702008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
16771
16772 * fontset.c (Ffontset_info): Handle the case of inhibitting the
16773 fallback fonts.
16774 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
16775
167762008-02-04 Jason Rumney <jasonr@gnu.org>
16777
16778 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
16779 set full_name.
16780 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
16781
167822008-02-03 Jason Rumney <jasonr@gnu.org>
16783
16784 * makefile.w32-in (OBJ1): Include font.o here.
16785 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
16786
167872008-02-02 Jason Rumney <jasonr@gnu.org>
16788
16789 * makefile.w32-in (temacs): Bump EMHEAP to 21.
16790
167912008-02-01 Jason Rumney <jasonr@gnu.org>
16792
16793 * s/cygwin.h: Define VIRT_ADDR_VARIES.
16794
16795 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
16796
167972008-02-01 Andreas Schwab <schwab@suse.de>
16798
16799 * Makefile.in (shortlisp, lisp): Update for rename of
16800 ../lisp/language/myanmar.el.
16801
168022008-02-01 Chong Yidong <cyd@stupidchicken.com>
16803
16804 * xfaces.c (get_lface_attributes): Delete function.
16805 (merge_named_face, lookup_named_face, lookup_derived_face)
16806 (realize_named_face): Call lface_from_face_name directly, and use
16807 the fact that merge_face_vectors does not alter its FROM argument.
16808
168092008-02-01 Jason Rumney <jasonr@gnu.org>
16810
16811 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
16812 input in the default locale. Handle non-Unicode multibyte input.
16813
168142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16815
16816 * fontset.c (reorder_font_vector): Exclude nil elements from the
16817 font group. Don't try multiple fonts.
16818 (fontset_font): Adjust for the above change.
16819 (Finternal_char_font): Return nil if the found font doesn't
16820 contain the character ch.
16821
16822 * Makefile.in (lisp, shortlisp): Add cham.el.
16823
168242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16825
16826 * font.h (FONTP): Make it return 1 also for a font-object.
16827
16828 * .gdbinit (xfontset): New function.
16829
16830 * font.c (font_find_for_lface): Check if the character C is
16831 supported or not only for the first font.
16832
16833 * fontset.c (reorder_font_vector): Fix typo.
16834 (fontset_find_font): Don't add a font-spec specifying a script.
16835 Use 0 (not Qt) for the indication of empty font-group. Change the
16836 format of RFONT-DEF. Return Qt if no font in the font-group
16837 support the character.
16838 (fontset_font): Adjust for the above change. If no font was
16839 found the character, remember that.
16840 (face_for_char): Adjust for the change of RFONT-DEF.
16841 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
16842 no font for the target.
16843 (Finternal_char_font): Adjust for the change of RFONT-DEF.
16844
168452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16846
16847 * font.c (font_load_for_face): Handle the case that the font in
16848 face->lface is a string.
16849
168502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16851
16852 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16853
168542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16855
16856 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16857 Fix previous change. If the frame is not on a window system,
16858 signal an error.
16859
168602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16861
16862 * coding.c (decode_coding_object, encode_coding_object): Adjust
16863 marker positions after conversion.
16864
16865 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16866
168672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16868
16869 * font.c (font_find_for_lface): Fix the handling of the return
16870 value of font_has_char.
16871 (Ffont_shape_text): Fix previous change.
16872
16873 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16874 (fontset_ref_and_range): Delete it.
16875 (fontset_find_font): Call char_table_ref_and_range instead of
16876 FONTSET_REF_AND_RANGE.
16877 (make_fontset): Don't setup font groups of Latin here.
16878 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16879 (new_fontset_from_font): Make the specified font the default for
16880 all Latin characters.
16881
168822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16883
16884 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16885 is on a window system before accessing the fontset of the frame.
16886
168872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16888
16889 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16890
16891 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16892 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16893
16894 * font.c (Ffont_shape_text): If the font driver doesn't have a
16895 shaper function, make zero-width glyphs to have at least one-pixel
16896 width. Fix setting of `to' field of glyphs.
16897
168982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16899
16900 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16901 glyphs.
16902
16903 * font.h (struct font_driver): Improve docstring of member `shape'.
16904
169052008-02-01 Kenichi Handa <handa@m17n.org>
16906
16907 * composite.c (syms_of_composite): Fix docstring of
16908 auto-composition-function.
16909
16910 * font.h (LGLYPH_SIZE): New macro.
16911
16912 * font.c (Ffont_fill_gstring): Stop filling when a character not
16913 supported by the font is found.
16914 (Ffont_shape_text): When a shape callback function returns nil,
16915 try at most two more times with larger gstring.
16916 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16917
16918 * xdisp.c (handle_auto_composed_prop): Change the argument to
16919 auto-composition-function.
16920
16921 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16922 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16923 Lispy glyph and store it in the lgstring.
16924
16925 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16926
16927 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16928
169292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16930
16931 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16932
16933 * fontset.c (Vfont_encoding_charset_alist): New variable.
16934 (syms_of_fontset): DEFVAR it.
16935 (reorder_font_vector, fontset_find_font): Optimize for the case of
16936 no need of reordering.
16937 (face_for_char): Map the charset property by
16938 Vfont_encoding_charset_alist.
16939
169402008-02-01 Jason Rumney <jasonr@gnu.org>
16941
16942 * w32font.c (logfonts_match): Don't check adstyle here.
16943 (font_matches_spec): Check here against physical font instead.
16944 (add_font_entity_to_list): Avoid some substitutions.
16945
16946 * font.c (font_parse_fcname): Default weight and slant to normal.
16947 (font_score): Prefer normal fonts if weight or slant unspecified.
16948 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16949 match freetype scores.
16950
169512008-02-01 Jason Rumney <jasonr@gnu.org>
16952
16953 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16954 font, as it may have been deleted.
16955 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16956 most common hyphenless variation.
16957 (logfonts_match): Check generic family.
16958 (font_matches_spec): Don't check generic family here.
16959 (fill_in_logfont): Set generic family based on adstyle.
16960
16961 * w32font.h (w32font_get_cache): Update declaration.
16962
169632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16964
16965 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16966
16967 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16968 If none of the new drivers are available, call font_update_drivers
16969 with the old drivers.
16970
16971 * w32font.c (w32font_get_cache): Adjust the argument type.
16972
16973 * xfont.c (xfont_get_cache): Adjust the argument type.
16974
16975 * font.h (struct font_driver): Change argument type of get_cache.
16976
16977 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16978
16979 * font.c (Ffont_get): Fix arguments to Fassoc.
16980 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16981 (font_clear_cache): New function.
16982 (font_list_entities, font_matching_entity): Use font_get_cache.
16983 (font_update_drivers): Call font_clear_cache when finishing a driver.
16984
16985 * fontset.c (fontset_find_font): Fix previous change.
16986
169872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16988
16989 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16990 dpyinfo->font_table.
16991 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16992 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16993
16994 * font.c (font_at): Handle the case that the arg C is negative.
16995 Handle the unibyte case.
16996 (Ffont_at): Call font_at with the arg C -1.
16997
16998 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16999 the position here, and call font_at with the arg C -1.
17000 Don't check the range of the existing composition at the point.
17001
170022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17003
17004 * fontset.c (fontset_add): New args charset_id and family.
17005 Change caller.
17006 (load_font_get_repertory, fontset_find_font): Assume that
17007 font_spec is always a font-spec object.
17008 (Fset_fontset_font): Always store a font-spec object in a fontset.
17009
17010 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17011 instead of get_property_and_range.
17012
170132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17014
17015 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17016 (xftfont_open): Don't keep locking face.
17017 (xftfont_close): Don't unlock face.
17018 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17019
17020 * fontset.c (fontset_find_font): Don't prefer a font of
17021 supplementary charset.
17022
170232008-02-01 Kenichi Handa <handa@m17n.org>
17024
17025 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17026 script, langsys_tag to langsys, new member script.
17027 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 17028 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
17029 listing to the script specified in that property. Fix arg to
17030 OTF_check_features.
17031
170322008-02-01 Jason Rumney <jasonr@gnu.org>
17033
17034 * w32font.h: New file.
17035
17036 * w32font.c: Include it.
17037 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17038 (w32font_open): Set owning_frame.
17039 (w32font_text_extents): Use owning_frame.
17040 (struct font_callback_data): Add opentype_only field.
17041 (add_font_entity_to_list): Use it to filter fonts.
17042 Don't check against full name.
17043 (w32font_list_internal): New function.
17044 (w32font_list): Use it.
17045 (w32font_match_internal): New function.
17046 (w32font_match): Use it.
17047 (w32font_open_internal): New function.
17048 (w32font_open): Use it.
17049 (w32font_get_cache, w32font_close, w32font_has_char)
17050 (w32font_encode_char, w32font_text_extents, w32font_draw):
17051 Make non-static.
17052
17053 * makefile.w32-in (w32font.o): Depend on w32font.h.
17054
170552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17056
17057 * charset.c (Fdefine_charset_internal): Record a supplementary
17058 charset at the tail of Vcharset_order_list.
17059
17060 * font.c (Ffont_shape_text): Fix the return value.
17061
17062 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17063
17064 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17065
170662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17067
17068 * ftfont.c (struct OpenTypeSpec): New struct.
17069 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17070 (ftfont_get_open_type_spec): New function.
17071 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17072
17073 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17074
170752008-02-01 Jason Rumney <jasonr@gnu.org>
17076
17077 * w32font.c (add_font_entity_to_list): Compare only the beginning
17078 of full name.
17079
170802008-02-01 Kenichi Handa <handa@m17n.org>
17081
17082 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17083 Never return HANDLED_RECOMPUTE_PROPS.
17084
170852008-02-01 Kenichi Handa <handa@m17n.org>
17086
17087 * font.c (font_gstring_produce): Delete it.
17088
17089 * composite.h (COMPOSITION_METHOD):
17090 Handle COMPOSITION_WITH_GLYPH_STRING.
17091
170922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17093
17094 * xfont.c (Qx): Delete.
17095 (syms_of_xfont): Don't initialize Qx.
17096
17097 * composite.h (enum composition_method):
17098 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17099
171002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17101
17102 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17103 (choose_face_font): Accept new form of font-spec.
17104
17105 * frame.h (font_driver_list): Declare it unconditionally.
17106 (struct frame): Define members font_driver_list and font_data_list
17107 unconditionally.
17108
17109 * fontset.c: Include "font.h" unconditionally.
17110 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17111 (Fset_fontset_font): Accept a font-spec object.
17112
17113 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17114 PIXEL_SIZE part a wild card.
17115
17116 * dispextern.h (struct glyph_string): Define members clip and
17117 num_clips unconditionally.
17118 (struct face): Define members font_info and extra unconditionally.
17119
17120 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17121 ftfont_info only when HAVE_LIBOTF is defined.
17122
171232008-02-01 Andreas Schwab <schwab@suse.de>
17124
17125 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17126 and end.
17127
171282008-02-01 Jason Rumney <jasonr@gnu.org>
17129
17130 * w32font.c (w32font_driver): Add new fields.
17131
171322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17133
17134 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17135 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17136 (LIBES): Add @M17N_FLT_CFLAGS@.
17137
17138 * composite.c (compose_text): Don't treat the new style
17139 composition specially.
17140
17141 * emacs.c (main): Call syms_of_font unconditionally.
17142
17143 * font.h (FONT_ENTITY_NOT_LOADABLE)
17144 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17145 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17146 (struct font_driver): New member shape.
17147 (font_registry_charsets): Extern it.
17148 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17149 (font_otf_capability, font_drive_otf): Delete their externs.
17150
17151 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17152 (font_charset_alist, font_registry_charsets): Move from xfont.c
17153 and rename.
17154 (font_prop_validate_otf): New function.
17155 (font_property_table): Register it for QCotf.
17156 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17157 (font_drive_otf): Delete.
17158 (font_prepare_composition): New arg F. Adjust for the change of
17159 lispy gstring.
17160 (font_find_for_lface): New arg C.
17161 (font_load_for_face): Adjust for the change of font_find_for_lface.
17162 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17163 lispy gstring.
17164 (Ffont_shape_text): New function.
17165 (Fopen_font): If the font size is not given, use 12-pixel.
17166 (Ffont_at): New arg STRING.
17167 (syms_of_font): Initalize font_charset_alist.
17168 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17169 conditionally.
17170
17171 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17172 fonts of the same font-spec. Change the format of RFONT-DEF.
17173 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17174 Adjust for the change of RFONT-DEF.
17175 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17176
17177 * ftfont.h: New file.
17178
17179 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17180 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17181 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17182 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17183 font_otf_capability and font_drive_otf, set ftfont_shape.
17184 (ftfont_list): Adjust for the change of :otf property value.
17185 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17186 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17187 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17188 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17189 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17190 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17191
17192 * w32term.c (x_draw_composite_glyph_string_foreground):
17193 Adjust for the change of lispy gstring.
17194
17195 * xdisp.c (handle_composition_prop): Adjust for the change of
17196 lispy gstring. Call a function for auto-composition with the
17197 third arg it->window.
17198 (fill_composite_glyph_string): Adjust for the change of lispy string.
17199 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17200
17201 * xfaces.c (set_font_frame_param): Adjust for the change of
17202 font_find_for_lface.
17203
17204 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17205 (xfont_registry_charsets): Likewise. Change caller.
17206 (syms_of_xfont): Don't handle x_font_charset_alist.
17207
17208 * xftfont.c: Include "ftfont.h".
17209 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17210 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17211 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17212 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17213 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17214 Set xftfont_driver.shape to xftfont_shape.
17215
17216 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17217 the change of lispy gstring.
17218
172192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17220
17221 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17222
172232008-02-01 Jason Rumney <jasonr@gnu.org>
17224
17225 * w32font.c (w32font_draw): Fill background manually.
17226
172272008-02-01 Jason Rumney <jasonr@gnu.org>
17228
17229 * font.c (Qfontp): Remove unused symbol.
17230 (QCantialias): New symbol.
17231 (syms_of_font): Define it.
17232 (font_property_table): Set a validator for QCantialias.
17233
17234 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17235 Define if not already.
17236 (QCfamily): Share with xfaces.c.
17237 (Qstandard, Qsubpixel, Qnatural): New symbols.
17238 (syms_of_w32font): Define them. Don't define QCfamily here.
17239 (w32_antialias_type, lispy_antialias_type): New functions.
17240 (w32_enumfont_pattern_entity): New arg requested_font.
17241 Set antialias parameter if non-default was requested.
17242 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17243
172442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17245
17246 * lread.c (read1): Undo the previous change.
17247
172482008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17249
17250 * frame.c (Fdelete_frame): Call font_update_drivers only when
17251 USE_FONT_BACKEND is defined.
17252
172532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17254
17255 * font.h (struct font_bitmap): New member bits_per_pixel.
17256 (struct font_driver): New members start_for_frame and end_for_frame.
17257 (struct font_data_list): New struct.
17258 (font_put_frame_data, font_get_frame_data): Extern them.
17259
17260 * frame.h (struct frame): New member font_data_list.
17261
17262 * font.c (font_update_drivers): Call driver->start_for_frame and
17263 driver->end_for_frame at proper timings.
17264 (font_put_frame_data, font_get_frame_data): New functions.
17265 (Ffont_spec): Add usage in the docstring.
17266
17267 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17268 (Fdelete_frame): Call font_update_drivers.
17269
17270 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17271 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17272 (xftfont_get_xft_draw): New function.
17273 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17274 (xftfont_end_for_frame): New function.
17275 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17276
17277 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17278 Change argument. Cache GCs in the per-frame data.
17279 (struct ftxfont_frame_data): New struct.
17280 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17281 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17282 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17283 (ftxfont_end_for_frame): New function.
17284 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17285
17286 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17287
172882008-02-01 Kenichi Handa <handa@m17n.org>
17289
17290 * xselect.c (Vselection_coding_system)
17291 (Vnext_selection_coding_system): Delete them.
17292 (syms_of_xselect): Don't declare selection-coding-system and
17293 next-selection-coding-system. They are declared in select.el.
17294
172952008-02-01 Jason Rumney <jasonr@gnu.org>
17296
17297 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17298
17299 * w32fns.c: Include imm.h.
17300 (get_composition_string_fn, get_ime_context_fn): New optional
17301 system functions.
17302 (globals_of_w32fns): Load them from imm32.dll.
17303 (ignore_ime_char): New flag.
17304 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17305 WM_IME_ENDCOMPOSITION messages.
17306
17307 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17308 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17309
173102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17311
17312 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17313 (READCHAR_REPORT_MULTIBYTE): New macro.
17314 (readchar): New 2nd arg MULTIBYTE.
17315 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17316 Make symbol's name multibyte according to the multibyteness of the
17317 source.
17318
173192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17320
17321 * xfaces.c (face_for_overlay_string): Call lookup_face with
17322 correct arguments (fix of synching with the trunk).
17323
173242008-02-01 Kenichi Handa <handa@m17n.org>
17325
17326 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17327 (font_prop_validate_non_neg, font_prop_validate_spacing):
17328 Delete argument prop_index.
17329 (font_property_table): Change arguments to validater. Change Callers.
17330 (font_lispy_object): Delete.
17331 (font_at): Use font_find_object instead fo font_lispy_object.
17332
173332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17334
17335 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17336 and file names.
17337
173382008-02-01 Jason Rumney <jasonr@gnu.org>
17339
17340 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17341 (font_matches_spec): Remove debug output.
17342 (add_font_entity_to_list): Avoid using substituted fonts.
17343
173442008-02-01 Jason Rumney <jasonr@gnu.org>
17345
17346 * doc.c (Fsnarf_documentation):
17347 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17348
173492008-02-01 Miles Bader <miles@gnu.org>
17350
17351 * dispextern.h (struct glyph_row): Only define "clip" field if
17352 HAVE_WINDOW_SYSTEM is defined.
17353
173542008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17355
17356 Fix up multi-tty merge.
17357
17358 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17359 and indentation.
17360
17361 * xfaces.c (free_realized_face, clear_face_gcs):
17362 Include font_done_for_face in the input_blocked section, just in case.
17363
17364 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17365 (get_char_face_and_encoding): Undo last change and remove the *other*
17366 duplicate definition (i.e. keep the one that's better scoped and that
17367 includes code for the font-backend).
17368
17369 * terminal.c (create_terminal): Default keyboard_coding to
17370 `no-conversion' and terminal_coding to `undecided'.
17371
17372 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17373
17374 * fontset.c (free_realized_fontsets): Check that the table entry does
17375 contain a fontset before trying to compare it to `base'.
17376
17377 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17378 syms_of_charset, and syms_of_coding earlier because init_window_once
17379 now needs Vcoding_system_hash_table to be setup.
17380
17381 * coding.h (default_buffer_file_coding): Remove.
17382
17383 * coding.c (default_buffer_file_coding): Remove.
17384 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17385 than ->symbol, and use the terminal-local coding system.
17386 (syms_of_coding): Don't setup the coding-systems that are not
17387 terminal-local.
17388 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17389
17390 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17391 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17392
17393 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17394 in chartab.c and were re-added here by mistake.
17395 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17396
17397 * doc.c (Fsnarf_documentation):
17398 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17399 src to etc.
17400
17401 * ChangeLog.10: Add mistakenly removed entry.
17402
174032008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17404
17405 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17406
174072008-02-01 Miles Bader <miles@gnu.org>
17408
17409 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17410 Add extra args to FACE_FOR_CHAR.
17411
174122008-02-01 Kenichi Handa <handa@m17n.org>
17413
17414 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17415 in sequence.
17416
17417 * chartab.c (map_sub_char_table, map_char_table): If the range
17418 contains just one character, call the function with that character
17419 even if the depth is not 3.
17420
174212008-02-01 Jason Rumney <jasonr@gnu.org>
17422
17423 * w32font.c (w32font_text_extents): Calculate metrics for the
17424 whole string.
17425
174262008-02-01 Jason Rumney <jasonr@gnu.org>
17427
17428 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17429
174302008-02-01 Jason Rumney <jasonr@gnu.org>
17431
17432 * w32term.c (x_set_glyph_string_clipping): Use
17433 get_glyph_string_clip_rects.
17434 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17435 Adjust for the change of struct glyph_string.
17436
17437 * w32font.c (w32font_draw): Do clipping here.
17438
174392008-02-01 Kenichi Handa <handa@m17n.org>
17440
17441 * xftfont.c (xftfont_draw): Adjust for the change of struct
17442 glyph_string.
17443
17444 * xterm.c (x_set_glyph_string_clipping): Use
17445 get_glyph_string_clip_rects.
17446 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17447 Adjust for the change of struct glyph_string.
17448
17449 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17450 the resulting clip(s}.
17451 (expose_overlaps): Add arg r. Change callers. Set it to
17452 row->clip temporarily.
17453 (expose_window): Redraw rows overlapping the exposed area.
17454
17455 * dispextern.h (struct glyph_row): New member clip.
17456 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17457 clip_height, new member clip, and num_clips.
17458
174592008-02-01 Kenichi Handa <handa@m17n.org>
17460
17461 * data.c (Fchar_or_string_p): Fix docstring.
17462
174632008-02-01 Kenichi Handa <handa@m17n.org>
17464
17465 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17466 create a temporary XftDraw object.
17467
174682008-02-01 Kenichi Handa <handa@m17n.org>
17469
17470 * font.c (Ffontp): Fix docstring.
17471
17472 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17473 strong evidence of ISO-2022.
17474
174752008-02-01 Kenichi Handa <handa@m17n.org>
17476
17477 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17478 SYNTAX_ENTRY_FOLLOW_PARENT.
17479
174802008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17481
17482 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17483 its type.
17484 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17485 Update to the new type of weak_hash_tables and next_weak.
17486
17487 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17488 a plain C pointer to Lisp_Hash_Table.
17489
17490 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17491 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17492 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17493 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17494 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17495 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17496 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17497 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17498 (GC_EQ): Remove since they've been identical to their non-GC_
17499 alter-egos ever since the markbit was eradicated.
17500
17501 * alloc.c:
17502 * buffer.c:
17503 * buffer.h:
17504 * data.c:
17505 * fileio.c:
17506 * filelock.c:
17507 * fns.c:
17508 * frame.h:
17509 * lisp.h:
17510 * macterm.c:
17511 * print.c:
17512 * process.c:
17513 * w32fns.c:
17514 * w32menu.c:
17515 * w32term.c:
17516 * xfns.c:
17517 * xmenu.c:
17518 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17519
175202008-02-01 Kenichi Handa <handa@m17n.org>
17521
17522 * chartab.c (map_sub_char_table): Make it work for the top-level
17523 char-table. Fix handling of parent char-table.
17524 (map_char_table): Adjust for the above change.
17525
175262008-02-01 Jason Rumney <jasonr@gnu.org>
17527
17528 * w32font.c (Qgdi): Rename from Qw32.
17529
175302008-02-01 Jason Rumney <jasonr@gnu.org>
17531
17532 * w32bdf.c (get_quoted_string): Make function static.
17533
175342008-02-01 Kenichi Handa <handa@m17n.org>
17535
17536 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17537 bigger ascent and descent than those of the font, use them as
17538 font's ascent and descent.
17539
175402008-02-01 Kenichi Handa <handa@m17n.org>
17541
17542 * Makefile.in (${lispsource}international/charprop.el): Move this
17543 target within "#ifdef HAVE_UNIDATA" and "#endif".
17544
175452008-02-01 Kenichi Handa <handa@m17n.org>
17546
17547 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
17548 (shortlisp): Add ../lisp/language/tai-viet.el.
17549
175502008-02-01 Ulrich Mueller <ulm@gentoo.org>
17551
17552 * Makefile.in (${lispsource}international/charprop.el): Depend on
17553 temacs${EXEEXT}.
17554
175552008-02-01 Jason Rumney <jasonr@gnu.org>
17556
17557 * w32font.c (w32font_close): Delete the GDI font object.
17558
17559 * w32menu.c: Include character.h.
17560
17561 * w32proc.c: Likewise.
17562
17563 * w32select.c: Likewise.
17564
17565 * makefile.w32-in (w32proc.o): Depend on character.h.
17566
175672008-02-01 Jason Rumney <jasonr@gnu.org>
17568
17569 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
17570
17571 * w32menu.c (syms_of_w32menu): Likewise.
17572
17573 * w32proc.c (syms_of_ntproc): Likewise.
17574
17575 * w32select.c (syms_of_w32select): Likewise.
17576
17577 * w32term.c (syms_of_w32term): Likewise.
17578
175792008-02-01 Jason Rumney <jasonr@gnu.org>
17580
17581 * w32font.c (w32font_draw): Delete brush after using it.
17582
175832008-02-01 Jason Rumney <jasonr@gnu.org>
17584
17585 * w32font.c (w32font_open): Don't set font_idx.
17586 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17587 to font settings.
17588 (w32font_draw): Fill background explicitly.
17589
175902008-02-01 Jason Rumney <jasonr@gnu.org>
17591
17592 * w32term.c (w32_initialize): Don't call w32font_initialize.
17593
17594 * w32font.c (w32font_info): Remove subranges.
17595 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17596 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17597 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17598 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17599 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17600 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17601 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17602 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17603 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17604 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17605 New symbols.
17606 (font_callback_data): New struct.
17607 (w32font_list, w32font_match): Use it.
17608 (w32font_open): Don't populate subranges.
17609 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17610 (w32font_encode_char): Always return unicode code-point as-is.
17611 (w32font_text_extents): Supply a transformation matrix to
17612 GetGlyphOutline. Never look up by glyph index. Avoid looping
17613 twice. Use unicode version of GetTexExtentPoint32 instead of
17614 glyph index version.
17615 (set_fonts_frame): Remove.
17616 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17617 set frame parameter. Use backward compatible fake foundries.
17618 Save generic family in extra slot under QCfamily. Make width slot
17619 constant. Save QCspacing value. Save list of scripts instead of
17620 binary subranges.
17621 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17622 (add_font_entity_to_list): Use font_callback_data struct. Filter
17623 unwanted fonts.
17624 (add_one_font_entity_to_list): Use font_callback_data struct.
17625 (w32_registry): Default to iso10646_1.
17626 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17627 string font registries. Don't fill in font name if it is a generic
17628 family name, fill family instead. Use spacing, family and script
17629 extra info to fill pitch, family and charset fields.
17630 (list_all_matching_fonts): Use font_callback_data struct.
17631 (unicode_range_for_char): Remove.
17632 (font_supported_scripts): New function.
17633 (w32font_initialize): Remove.
17634 (syms_of_w32font): Update which symbols are defined.
17635
176362008-02-01 Jason Rumney <jasonr@gnu.org>
17637
17638 * font.c (font_pixel_size): Reverse assq_no_quit args.
17639
17640 * w32term.h (FONT_WIDTH): Report max width, not average.
17641 (FONT_MAX_WIDTH): Remove.
17642 (FONT_AVG_WIDTH): New macro.
17643
17644 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17645 redefinition of FONT_WIDTH.
17646
17647 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17648 (w32_cache_char_metrics): Use FONT_WIDTH.
17649
17650 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17651
176522008-02-01 Jason Rumney <jasonr@gnu.org>
17653
17654 * w32font.c (w32font_open): Make lfHeight negative.
17655
17656 * w32fns.c (x_default_font_parameter): Use new style font name.
17657 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17658
176592008-02-01 Jason Rumney <jasonr@gnu.org>
17660
17661 * w32font.c (QCsubranges): New symbol.
17662 (w32font_open, w32font_has_char): Get subranges from subproperty
17663 of extra.
17664 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17665 (syms_of_w32font): Define :subranges symbol.
17666
17667 * font.c (font_put_extra): Expose externally.
17668
17669 * font.h (font_put_extra): Move declaration from font.c.
17670
17671 * font.c (Ffont_get): Use font driver to determine otf capability.
17672 (adjust_anchor): Check if driver defines anchor_point before using.
17673
17674 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17675 (w32font_draw): Use options.
17676 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17677 Fix detection of truetype fonts.
17678 (registry_to_w32_charset): Handle charsets other than iso8859-1
17679 expressed as lisp symbols.
17680 (w32_registry): Express charset as lisp symbol.
17681 (fill_in_logfont): Reverse pixel and point height logic.
17682 Don't set width here. Set quality to default.
17683
17684 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17685 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17686
17687 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17688 Remove redundant loop and allocation.
17689
17690 * makefile.w32-in (font.o, w32font.o): New objects.
17691 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
17692 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
17693
17694 * xdisp.c (fill_composite_glyph_string): Make the first arg to
17695 STORE_XCHARB a valid l-value.
17696
17697 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
17698 calculations for non-Truetype fonts.
17699 (x_draw_glyph_string): Sync with xterm.c.
17700 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17701 Remove redundant code.
17702 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
17703
17704 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
17705 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
17706
17707 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
17708 (x_to_w32_charset, w32_to_x_charset): Expose externally.
17709
17710 * w32font.c: New file for w32 font backend.
17711
177122008-02-01 Kenichi Handa <handa@m17n.org>
17713
17714 * term.c: Don't include "buffer.h" twice.
17715
177162008-02-01 Kenichi Handa <handa@m17n.org>
17717
17718 * character.c (Funibyte_string): New function.
17719 (syms_of_character): Defsubr it.
17720
177212008-02-01 Jason Rumney <jasonr@gnu.org>
17722
17723 * w32term.c [USE_FONT_BACKEND]:
17724 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
17725 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
17726 (x_draw_glyph_string, x_draw_glyph_string_foreground)
17727 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
17728 (x_free_frame_resources): Sync with xterm.c.
17729
177302008-02-01 Andreas Schwab <schwab@suse.de>
17731
17732 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
17733 char-table size.
17734
177352008-02-01 Kenichi Handa <handa@m17n.org>
17736
17737 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
17738
177392008-02-01 Kenichi Handa <handa@m17n.org>
17740
17741 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
17742 font_otf_gpos, add font_drive_otf.
17743
17744 * fontset.c (fontset_find_font): Pay attention to font size
17745 specified for a font.
17746 (reorder_font_vector): Check contents of font_def.
17747
17748 * font.c (struct otf_list): Delete it.
17749 (otf_list): Make it a lisp variable.
17750 (otf_open): Use lispy otf_list.
17751 (generate_otf_features): Rename from parse_gsub_gpos_spec.
17752 (check_otf_features): New function.
17753 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17754 New functions.
17755 (font_drive_otf): New function merging font_otf_gsub and
17756 font_otf_gpos.
17757 (font_open_for_lface): New arg spec. Change argument order.
17758 (font_load_for_face): Adjust for the change of font_open_for_lface.
17759 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
17760 Ffont_otf_gpos.
17761 (syms_of_font): Staticpro otf_list. Delete defsubr of
17762 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
17763
17764 * xfaces.c (set_font_frame_param): Adjust for the change of
17765 font_open_for_lface.
17766
17767 * font.h (font_open_for_lface): Adjust prototype.
17768 (struct font_driver): Delete members otf_gsub and otf_gpos, add
17769 member otf_drive.
17770 (font_otf_gsub, font_otf_gpos): Delete externs.
17771 (font_drive_otf): Extern it.
17772
177732008-02-01 Kenichi Handa <handa@m17n.org>
17774
17775 * font.c (font_at): If the window W is not on a window system,
17776 return Qnil.
17777
17778 * coding.c (produce_chars, encode_coding): Don't call
17779 insert_from_gap if no characters to produce.
17780
177812008-02-01 Kenichi Handa <handa@m17n.org>
17782
17783 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
17784 Fclear_face_cache.
17785
17786 * xfaces.c (face_for_font): Check also face->font==font->font.font.
17787
177882008-02-01 Miles Bader <miles@gnu.org>
17789
17790 * emacs.c (main): Change default value of `enable_font_backend' to 1.
17791 Parse "--disable-font-backend" option.
17792 (standard_args): Add "--disable-font-backend" option.
17793
177942008-02-01 Kenichi Handa <handa@m17n.org>
17795
17796 * fontset.c (fontset_find_font): New function.
17797 (fontset_font): Use fontset_find_font.
17798 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
17799 Register the specified font for all Latin characters.
17800 (new_fontset_from_font): Register the specified font for all Latin
17801 characters.
17802 (dump_fontset): For a realized fontset, include the base fontset
17803 name in the returned vector.
17804
178052008-02-01 Kenichi Handa <handa@m17n.org>
17806
17807 * character.h (CHAR_STRING): Cast C to unsigned on calling
17808 char_string.
17809
17810 * character.c (char_string): Type of arg C changed to unsigned.
17811 Signal an error if C is an invalid character code.
17812
17813 * editfns.c (general_insert_function, Fchar_to_string):
17814 Use CHARACTERP, not INTEGERP.
17815
178162008-02-01 Kenichi Handa <handa@m17n.org>
17817
17818 * character.h (MIN_MULTIBYTE_LEADING_CODE)
17819 (MAX_MULTIBYTE_LEADING_CODE): New macros.
17820
17821 * regex.c (analyse_first): Fix for multibyte characters in "case
17822 charset:" and "case categoryspec:".
17823
178242008-02-01 Andreas Schwab <schwab@suse.de>
17825
17826 * Makefile.in (LIBES): Move standard libraries to the end.
17827
178282008-02-01 Kenichi Handa <handa@m17n.org>
17829
17830 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
17831 nonzero, don't shrink the buffer nextb.
17832
17833 * buffer.h (struct buffer_text): New member inhibit_shrinking.
17834
17835 * coding.c (coding_alloc_by_making_gap): New arg offset.
17836 (alloc_destination): Call coding_alloc_by_making_gap with the arg
17837 offset.
17838 (decode_coding_iso_2022): Update coding->safe_charsets.
17839 (decode_coding_gap): Temporarily set
17840 current_buffer->text->inhibit_shrinking to 1.
17841
178422008-02-01 Kenichi Handa <handa@m17n.org>
17843
17844 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
17845 indexing into elements of s->cmp and s->char2b.
17846
178472008-02-01 Juanma Barranquero <lekktu@gmail.com>
17848
17849 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17850
178512008-02-01 Kenichi Handa <handa@m17n.org>
17852
17853 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17854 target_multibyte instead of multibyte.
17855 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17856 (bcmp_translate): Change the argument name from multibyte to
17857 target_multibyte.
17858
178592008-02-01 Kenichi Handa <handa@m17n.org>
17860
17861 These changes are to compile a regexp into a pattern that can be
17862 used both for multibyte and unibyte targets.
17863
17864 * Makefile.in (search.o): Depend on charset.h.
17865
17866 * character.c (multibyte_char_to_unibyte_safe): New function.
17867
17868 * search.c: Include "charset.h".
17869 (compile_pattern_1): Delete argument multibyte. Don't set
17870 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17871 (compile_pattern): Don't compare cp->buf.target_multibyte.
17872 Compare cp->buf.charset_unibyte.
17873 (compile_pattern): Set cp->buf.target_multibyte.
17874
17875 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17876
17877 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17878
17879 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17880 multibyte. Change callers.
17881 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17882 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17883 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17884 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17885 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17886 (regex_compile): Make the compiled pattern usable both for
17887 multibyte and unibyte targets.
17888 (analyse_first): Make the fastmap usable both for multibyte and
17889 unibyte targets.
17890 (TRANSLATE_VIA_MULTIBYTE): Delete.
17891 (re_match_2_internal): Pay attention to the case that the
17892 multibyteness of bufp and target may be different.
17893
178942008-02-01 Kenichi Handa <handa@m17n.org>
17895
17896 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17897 empty box occupy at least one column width.
17898
178992008-02-01 Miles Bader <miles@gnu.org>
17900
17901 * Makefile.in: Remove redundant HAVE_XFT clause.
17902
179032008-02-01 Kenichi Handa <handa@m17n.org>
17904
17905 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17906
179072008-02-01 Kenichi Handa <handa@m17n.org>
17908
17909 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17910 being nil.
17911
179122008-02-01 Kenichi Handa <handa@m17n.org>
17913
17914 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17915
179162008-02-01 Kenichi Handa <handa@m17n.org>
17917
17918 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17919
179202008-02-01 Kenichi Handa <handa@m17n.org>
17921
17922 * search.c (simple_search): Fix previous change.
17923
179242008-02-01 Kenichi Handa <handa@m17n.org>
17925
17926 * xftfont.c (ftfont_font_format): Extern declaration.
17927
17928 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17929
17930 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17931 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17932
17933 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17934 (ftfont_font_format): Fix previous change.
17935
17936 * font.h (Ffont_xlfd_name): EXFUN it.
17937
17938 * font.c (font_parse_xlfd): Fix the array size of `f'.
17939 (register_font_driver): Use EQ to compare driver->type.
17940
17941 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17942 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17943 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17944
179452008-02-01 Kenichi Handa <handa@m17n.org>
17946
17947 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17948 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17949
179502008-02-01 Kenichi Handa <handa@m17n.org>
17951
17952 * xfont.c (xfont_open): Set font->format.
17953
17954 * xftfont.c (xftfont_open): Set font->format.
17955
17956 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17957 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17958 (ftfont_open): Set font->format.
17959 (ftfont_font_format): New function.
17960
17961 * font.h (struct font): New member format.
17962
17963 * font.c (Qopentype): New variable.
17964 (syms_of_font): Defsym it.
17965 (Fquery_font): Change the format of the last element of the return
17966 value.
17967
179682008-02-01 Kenichi Handa <handa@m17n.org>
17969
17970 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17971 last resort.
17972
179732008-02-01 Kenichi Handa <handa@m17n.org>
17974
17975 * coding.c (detect_coding_charset): Fix detection of multi-byte
17976 charset.
17977
179782008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17979
17980 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17981
179822008-02-01 Kenichi Handa <handa@m17n.org>
17983
17984 * xdisp.c (get_next_display_element): Set it->face_id for the
17985 first component of a composition.
17986 (x_produce_glyphs): Check if the font is changed or not for composition.
17987
179882008-02-01 Kenichi Handa <handa@m17n.org>
17989
17990 * fontset.c (Qlatin): New variable.
17991 (syms_of_fontset): Define it as a lisp symbol.
17992 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17993
179942008-02-01 Kenichi Handa <handa@m17n.org>
17995
17996 * font.c (font_unparse_fcname): Pay attention to the case that
17997 some of font property is a null string.
17998
179992008-02-01 Kenichi Handa <handa@m17n.org>
18000
18001 * term.c: Include "composite.h".
18002 (encode_terminal_code): Output all components of composition.
18003 Check the size of encode_terminal_src.
18004 (produce_glyphs): For composition, call produce_composite_glyph.
18005 (append_composite_glyph, produce_composite_glyph): New functions.
18006
18007 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18008 is not found, get font_info from the current ascii face.
18009
180102008-02-01 Kenichi Handa <handa@m17n.org>
18011
18012 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18013 buffer-file-name to Qnil before calling insert_from_buffer.
18014
18015 * font.c (font_unparse_fcname): Pay attention to the case that
18016 foundry is a null string.
18017
180182008-02-01 Kenichi Handa <handa@m17n.org>
18019
18020 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18021
18022 * font.c (Qunicode_sip): New variable.
18023 (syms_of_font): Declare it as a Lisp symbol.
18024
18025 * font.h (Qunicode_sip): Extern it.
18026
180272008-02-01 Kenichi Handa <handa@m17n.org>
18028
18029 * composite.c (get_composition_id): Pay attention to TAB component.
18030
18031 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18032 TAB. Adjust for the change of s->char2b which always points to
18033 the first element of allocated memory.
18034
18035 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18036
18037 * xdisp.c (handle_composition_prop): Set it->c to the first
18038 non-TAB component.
18039 (fill_composite_glyph_string): Change argument.
18040 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18041 (x_produce_glyphs): Fix handling of left/right padding.
18042
180432008-02-01 Kenichi Handa <handa@m17n.org>
18044
18045 * coding.c (detect_coding_system): Fix for handling off
18046 inhibit_iso_escape_detection. Fix for the case that no coding
18047 system is defined for a specific coding category.
18048
180492008-02-01 Kenichi Handa <handa@m17n.org>
18050
18051 * font.c (font_matching_entity): Delete unused local var.
18052
18053 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18054 opening a font.
18055
18056 * fileio.c (Finsert_file_contents): On recovering a file, assume
18057 Unix-like eol.
18058 (choose_write_coding_system): On auto-saving a file, force
18059 Unix-like eol.
18060
18061 * coding.c (setup_coding_system): Fix setting of
18062 coding->common_flags based on eol_type.
18063 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18064 inherit from it.
18065
180662008-02-01 Kenichi Handa <handa@m17n.org>
18067
18068 * alloc.c (NSTATICS): Increas to 0x600.
18069
180702008-02-01 Kenichi Handa <handa@m17n.org>
18071
18072 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18073 (ftfont_list): Don't check :name property.
18074 (ftfont_match): New function.
18075 (ftfont_pattern_entity): If the pattern doesn't contain
18076 FC_SPACING, don't assume FC_MONO.
18077
18078 * font.h (struct font_driver): New member `match'.
18079 (font_update_drivers): Adjust prototype.
18080
18081 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18082 property of FONT.
18083 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18084 them unconditionally.
18085 (font_matching_entity): New function.
18086 (font_open_by_name): Try font_matching_entity if exact match is
18087 not found.
18088 (font_update_drivers): Delete the arg FONT. Return a list of
18089 actually used backends. Don't free faces, font caches here.
18090 Don't store data in frame parameters. Don't call x_set_font.
18091 (Ffont_spec): Store :name property as is.
18092 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18093 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18094 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18095 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18096 Call font->driver->otf_gsub instead of font_otf_gsub.
18097
18098 * frame.c (x_set_font_backend): Do more works that were done in
18099 font_update_drivers before.
18100
18101 * xfont.c (xfont_match): New function.
18102 (xfont_driver): Set xfont_driver.match to xfont_match.
18103 (xfont_draw): Set font in GC if necessary.
18104
18105 * ftxfont.c (ftxfont_match): New function.
18106 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18107
18108 * xftfont.c (xftfont_match): New function.
18109 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18110
181112008-02-01 Kenichi Handa <handa@m17n.org>
18112
18113 * font.h (struct font): New member scalable.
18114 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18115 (font_otf_gsub): Adjust prototype.
18116
18117 * font.c (font_otf_capability): Fix handling of the default langsys.
18118 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18119 Check the contents of SPEC.
18120 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18121 (check_gstring): New function.
18122 (REPLACEMENT_CHARACTER): New macro.
18123 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18124 glyph codes of GSTRING.
18125 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18126 (font_prepare_composition): Set cmp->glyph_len.
18127 (font_open_entity): Set font->scalable.
18128 (Ffont_get): Handle :otf property.
18129 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18130 functions.
18131 (Fquery_font): Use font->font.full_name.
18132 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18133 Sfont_otf_alternates.
18134
18135 * ftfont.c (ftfont_open): Set font->font.full_name and
18136 font->font.name properly. Fix calculation of font->font.height
18137 and font->min_width.
18138
18139 * ftxfont.c (ftxfont_create_gcs): New function.
18140 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18141 (ftxfont_draw_backgrond): Fix filling region.
18142 (ftxfont_default_fid): New function.
18143 (ftxfont_open): Set xfont->fid to the return value of
18144 ftxfont_default_fid.
18145 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18146 (ftxfont_done_face): Free only GCs that are created by
18147 ftxfont_create_gcs.
18148 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18149
18150 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18151 Clip to src->width, etc (not src->clip_XXX).
18152
18153 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18154 FontBackend frame parameter.
18155
181562008-02-01 Kenichi Handa <handa@m17n.org>
18157
18158 * font.h (struct font_driver_list): New member `on'.
18159 (Fclear_font_cache): EXFUN it.
18160 (font_update_drivers): Extern it.
18161
18162 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18163 (font_list_entities): Check driver_list->on.
18164 (register_font_driver): Initalize `on' member to 0.
18165 (font_update_drivers): New function.
18166 (Fclear_font_cache): Check driver_list->on.
18167
18168 * frame.h (Qfont_backend): Extern it.
18169 (x_set_font_backend): Extern it.
18170
18171 * frame.c (Qfont_backend): New variable.
18172 (frame_parms): New element for font-backend.
18173 (x_set_font_backend): New function.
18174
18175 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18176 FontBackend frame parameter.
18177 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18178 x_set_font_backend.
18179
18180 * xfont.c (xfont_list): Don't try listing by :name property if the
18181 name is not for XLFD.
18182
181832008-02-01 Kenichi Handa <handa@m17n.org>
18184
18185 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18186 (LGLYPH_SET_TO): New macros.
18187 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18188 element of G is vector or not.
18189 (font_at): Extern it.
18190
18191 * font.c: Include window.h.
18192 (font_lispy_object): New function.
18193 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18194 end of valid glyph.
18195 (font_close_object): Fix getting (struct font *).
18196 (font_at): New function.
18197 (Ffont_get): If FONT is a font-object, get entity from it.
18198 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18199 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18200 range check.
18201 (Ffont_at): New function.
18202 (syms_of_font): Defsubr Sfont_at.
18203
18204 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18205 before the entry for Qcomposition.
18206 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18207 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18208 the font in gstring.
18209 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18210 LGLYPH_FORM (g) to detect the end of valid glyph.
18211 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18212 we are composing with gstring.
18213
18214 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18215 Check if adjustment is vector or not.
18216
18217 * Makefile.in (font.o): Make it depends on window.h.
18218
182192008-02-01 Kenichi Handa <handa@m17n.org>
18220
18221 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18222 adjustment is vector or not.
18223
182242008-02-01 Miles Bader <miles@gnu.org>
18225
18226 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18227
182282008-02-01 Kenichi Handa <handa@m17n.org>
18229
18230 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18231 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18232 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18233
18234 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18235 (DEVICE_DELTA): Fix typo.
18236 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18237 LGLYPH format.
18238
18239 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18240 the change of LGLYPH format.
18241
182422008-02-01 Kenichi Handa <handa@m17n.org>
18243
18244 * ftfont.c (ftfont_list): Fix typo.
18245 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18246
182472008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18248
18249 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18250
18251 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18252 xftface_info is non-NULL.
18253
182542008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18255
18256 * ftfont.c (ftfont_list): Move misplaced #endif.
18257
182582008-02-01 Kenichi Handa <handa@m17n.org>
18259
18260 * ftfont.c (ftfont_list): Pay attention to the case that
18261 FC_CAPABILITY is not defined.
18262
182632008-02-01 Kenichi Handa <handa@m17n.org>
18264
18265 * xftfont.c (xftfont_open): Set charset related members to -1.
18266
18267 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18268 QCname.
18269 (ftfont_open): Set charset related members to -1.
18270
18271 * fontset.c (Votf_script_alist): New variable.
18272 (syms_of_fontset): Initialize it.
18273 (fontset_font): Delete unused variable.
18274
18275 * fontset.h (Votf_script_alist): Extern it.
18276
18277 * font.c (font_find_for_lface): Optimize code.
18278
18279 * font.h (font_close_object, font_merge_old_spec): Extern them.
18280
182812008-02-01 Kenichi Handa <handa@m17n.org>
18282
18283 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18284 (syms_of_font): Initialize them.
18285 (font_pixel_size): Allow float value in dpi.
18286 (font_prop_validate_type): Delete.
18287 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18288 Change caller.
18289 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18290 (font_prop_validate_extra): Delete.
18291 (font_prop_validate_spacing): New function.
18292 (font_property_table): Add elements for all known properties.
18293 (get_font_prop_index): Rename from check_font_prop_name. New
18294 argument FROM. Change caller.
18295 (font_prop_validate): Validate all known properties.
18296 (font_put_extra): Delete argument force. Change caller.
18297 (font_expand_wildcards): Make it static. Fix the way of shrinking
18298 the possible range.
18299 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18300 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18301 Change caller.
18302 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18303 (font_parse_fcname): Delete argument merge. Fix parsing of point
18304 size. Don't validate properties values here. Change caller.
18305 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18306 (font_open_by_name): Delete unused variable.
18307 (Ffont_spec): Likewise. Validate property values.
18308 (Ffont_match_p): New function.
18309
18310 * font.h (QCscalable): Extern it.
18311 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18312
18313 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18314
18315 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18316 (xfont_list_pattern): New function.
18317 (xfont_list): Use xfont_list_pattern.
18318
183192008-02-01 Kenichi Handa <handa@m17n.org>
18320
18321 * font.h (Flist_fonts): EXFUN it.
18322
183232008-02-01 Jason Rumney <jasonr@gnu.org>
18324
18325 * w32term.c (w32_initialize): Add back smoothing_type and
18326 smoothing_enabled definitions.
18327
183282008-02-01 Kenichi Handa <handa@m17n.org>
18329
18330 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18331 s->face->font on determining underline position.
18332
183332008-02-01 Kenichi Handa <handa@m17n.org>
18334
18335 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18336 (font_has_char): Accept font-object too.
18337 (font_find_for_lface): Try at first with a size specified in face.
18338
183392008-02-01 Kenichi Handa <handa@m17n.org>
18340
18341 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18342 font_open_by_name.
18343
183442008-02-01 Kenichi Handa <handa@m17n.org>
18345
18346 * font.h (QCspacing, QCdpi): Extern them.
18347 (enum font_spacing): New enum.
18348 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18349
18350 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18351 (QCspacing, QCdpi): New variables.
18352 (syms_of_font): Initialize them.
18353 (font_pixel_size): New function.
18354 (font_put_extra): New function.
18355 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18356 in FONT_EXTRA.
18357 (font_parse_fcname): Handle enumerated values (e.g. bold).
18358 Fix handling font size. Add QCname property that contains only
18359 unknown properties.
18360 (font_score): Change argument. Change caller. Pay attention to
18361 FONT_PIXEL_SIZE_QUANTUM.
18362 (font_sort_entites, font_list_entities, font_find_for_lface)
18363 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18364 (Ffont_spec): Add QCname property that contains only unknown properties.
18365
18366 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18367 include weight in listing pattern, instead check weight of each
18368 listed font. Don't include scalable in pattern. Pay attention to
18369 FONT_PIXEL_SIZE_QUANTUM.
18370
183712008-02-01 Kenichi Handa <handa@m17n.org>
18372
18373 * font.c (font_parse_fcname): Fix parsing of point-size.
18374 (font_unparse_fcname): Produce symbolic names for style properties.
18375 (font_list_entities): Handle float size correctly.
18376 (font_open_by_name): Prefer `normal' property values if the name
18377 doesn't specify them.
18378
18379 * fontset.c (Finternal_char_font): Use font_get_name, not
18380 Ffont_xlfd_name.
18381
18382 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18383 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18384 pattern. Don't force scalable.
18385
18386 * xftfont.c (xftfont_open): For generating a name, start from
18387 96-byte buffer.
18388
183892008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18390
18391 * frame.h (x_new_fontset2): Fix prototype.
18392
183932008-02-01 Kenichi Handa <handa@m17n.org>
18394
18395 * font.h (struct font_driver): Delete member parse_name.
18396 (font_match_p, font_get_spec, font_parse_fcname)
18397 (font_unparse_fcname): Extern them.
18398 (font_get_name): Adjust prototype.
18399
18400 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18401 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18402 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18403 unnecessary checks for weight, slant, and swidth.
18404 (font_parse_fcname): New function.
18405 (font_unparse_fcname): New function.
18406 (font_parse_name): New function.
18407 (font_match_p): New function.
18408 (font_get_name): Change return value to Lisp string.
18409 (font_get_spec): New function.
18410 (Qunspecified, Qignore_defface): Don't extern them.
18411 (font_find_for_lface): Assume that LFACE is fully specified.
18412 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18413 object, use it for FACE.
18414 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18415 driver->parse_name.
18416 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18417
18418 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18419 prototype.
18420
18421 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18422 argument F. Don't call Fnew_fontset. Instead, directly call
18423 make_fontset.
18424
18425 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18426
18427 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18428 of x_new_fontset2.
18429
18430 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18431 (Qsans__serif): New variables.
18432 (ftfont_generic_family_list): New variable.
18433 (syms_of_ftfont): Initialize the above variables.
18434 (ftfont_pattern_entity): Delete argument NAME.
18435 (ftfont_list_generic_family): New function.
18436 (ftfont_parse_name): Delete this function.
18437 (ftfont_list): Try generic family only when FcFontList found no font.
18438 (ftfont_list_family): Fix args to FcObjectSetBuild.
18439
18440 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18441 object in attrs[LFACE_FONT_INDEX].
18442 (set_lface_from_font_name): Cancel all changes for font-backend.
18443 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18444 function.
18445 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18446 font object in QCfont attribute.
18447 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18448 (realize_default_face) [USE_FONT_BACKEND]: Call
18449 set_lface_from_font_and_fontset.
18450
18451 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18452 "fixed", and signal error here if no suitable font was found.
18453
18454 * xfont.c (xfont_parse_name): Delete this function.
18455
18456 * xftfont.c (xftfont_open): Change coding style of error
18457 handling. Generate fontconfig's fontname pattern.
18458
18459 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18460 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18461
18462 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18463 Both args FONTSET and FONT_OBJECT must be existing ones.
18464
184652008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18466
18467 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18468
184692008-02-01 Kenichi Handa <handa@m17n.org>
18470
18471 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18472
18473 * font.h (struct font): Fix typo.
18474
18475 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18476 XLFD_XXX_INDEX.
18477 (enum xlfd_field_mask): New enum.
18478 (intern_font_field): Changed argument. Change caller. If digits
18479 are followed by non-digits, return a symbol.
18480 (font_expand_wildcards): New function.
18481 (font_parse_xlfd): Fix wildcard handling.
18482 (Ffont_spec): If :name is specified, reflect the info in the other
18483 properties.
18484
18485 * ftfont.c (ftfont_pattern_entity): Fix typo.
18486 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18487 locale.
18488
184892008-02-01 Kenichi Handa <handa@m17n.org>
18490
18491 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18492
18493 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18494 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18495 registry doesn't specify encoding part.
18496 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18497 (font_open_by_name): At first try parsing the name.
18498 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18499 as Lisp symbols.
18500
18501 * fontset.c (reorder_font_vector): Pay attention to the case that
18502 the 3rd element of font_def is nil.
18503 (fontset_font): For the default fontset, append one more fontset
18504 elements for a script-based font specification. Don't add script
18505 attribute on finding a font.
18506 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18507 font name.
18508 (fontset_ascii_font): If a font can't be opened, return nil.
18509
18510 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18511 (ftfont_pattern_entity): New function.
18512 (ftfont_get_cache): Assume that freetype_font_cache is already
18513 initialized.
18514 (ftfont_list): Handle the case that a file is specified in font
18515 name. Use ftfont_pattern_entity to generate entities.
18516 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18517 (syms_of_ftfont): Initialize freetype_font_cache.
18518
18519 * xftfont.c (xftfont_open): Make the font name fontconfig's
18520 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18521 (xftfont_close): Free font->font.name if not NULL.
18522
18523 * xfont.c (xfont_list): If script is specified for a font, return
18524 null_vector.
18525 (xfont_list_family): Declare argument type.
18526
18527 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18528 name, set LFACE_FONT (lface) to nil.
18529
18530 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18531 return Qnil.
18532
185332008-02-01 Kenichi Handa <handa@m17n.org>
18534
18535 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18536 (standard_args): Add "-enable-font-backend".
18537
185382008-02-01 Kenichi Handa <handa@m17n.org>
18539
18540 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18541 (struct xftdraw_list, xftdraw_list): Delete them.
18542 (register_xftdraw, check_xftdraw): Delete them.
18543 (xftfont_prepare_face): Don't call register_xftdraw.
18544 (xftfont_done_face): Don't call check_xftdraw.
18545 (xftfont_draw): Get background color only when with_background is
18546 nonzero.
18547
18548 * xfont.c (xfont_encode_char): Fix calculation of char2b.
18549
185502008-02-01 Kenichi Handa <handa@m17n.org>
18551
18552 These changes are for the new font handling codes.
18553
18554 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
18555 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
18556 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
18557 (FONTSRC, FONTOBJ): New variables.
18558 (obj): Add $(FONTOBJ).
18559 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
18560 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
18561 @LIBOTF_LIBS@.
18562 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
18563 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
18564
18565 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
18566
18567 * character.h (Vscript_representative_chars): Extern it.
18568
18569 * character.c (Vscript_representative_chars): New variable.
18570 (syms_of_character): Declare it as a Lisp variable.
18571
18572 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
18573 enable_font_backend is nonzero, accept the composition method
18574 COMPOSITION_WITH_GLYPH_STRING.
18575
18576 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
18577 enumeration COMPOSITION_WITH_GLYPH_STRING.
18578
18579 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
18580 members clip_x, clip_y, clip_width, and clip_height.
18581 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
18582
18583 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
18584 --enable-font-backend. Call syms_of_font.
18585
18586 * fns.c (assoc_no_quit): New function.
18587
18588 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18589 (face_for_font, new_fontset_from_font)
18590 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18591
18592 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18593 (fontset_font, fontset_ascii, face_for_char)
18594 (make_fontset_for_ascii_face, Ffont_info)
18595 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18596 is nonzero, use font-backend mechanism.
18597 (find_font_encoding): Make it non-static.
18598 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18599 New functions.
18600
18601 * frame.h (struct frame): New members resx and resy.
18602 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18603 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18604
18605 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18606 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18607
18608 * lisp.h (assoc_no_quit): Extern it.
18609
18610 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18611 Through out the file, use FONT_INFO_FROM_FACE instead of
18612 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18613 rif->per_char_metric.
18614 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18615 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18616 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18617 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18618 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18619 nonzero, use font-backend mechanism.
18620 (get_per_char_metric): New function.
18621
18622 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18623 (set_lface_from_font_name)
18624 (set_font_frame_param, free_realized_face)
18625 (prepare_face_for_display, clear_face_gcs)
18626 (Finternal_set_font_selection_order, realize_x_face)
18627 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18628 font-backend mechanism.
18629 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18630 (load_face_font) [USE_FONT_BACKEND]: Abort.
18631 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18632 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18633
18634 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18635 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18636 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18637 nonzero, register all available font drivers. Call
18638 x_default_font_parameter for deciding a font.
18639 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18640
18641 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18642 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18643 (x_set_glyph_string_clipping_exactly)
18644 (x_compute_glyph_string_overhangs)
18645 (x_draw_glyph_string_foreground)
18646 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18647 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18648 enable_font_backend is nonzero, use font-backend mechanism.
18649 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18650
186512008-02-01 Kenichi Handa <handa@m17n.org>
18652
18653 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18654 system_eol_type.
18655 (syms_of_coding): Initialize system_eol_type.
18656
18657 * process.c (Fset_process_coding_system): Inherit system's eol
18658 format if necessary.
18659
186602008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18661
18662 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18663
186642008-02-01 Kenichi Handa <handa@m17n.org>
18665
18666 * coding.c (decode_eol): Pay attention to buffer relocation in
18667 del_range_2.
18668 (decode_coding): Call decode_eol before restoring undo_list.
18669
186702008-02-01 Kenichi Handa <handa@m17n.org>
18671
18672 * charset.c (Fdefine_charset_internal): Fix setting of
18673 emacs_mule_bytes.
18674
186752008-02-01 Kenichi Handa <handa@m17n.org>
18676
18677 * keyboard.c (read_char): Check if C is a character or not before
18678 looking up Vkeyboard_translate_table.
18679
186802008-02-01 Kenichi Handa <handa@m17n.org>
18681
18682 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18683 condition to terminate the loop.
18684
186852008-02-01 Kenichi Handa <handa@m17n.org>
18686
18687 * coding.c (produce_composition): Compare charbuf[i] instead of
18688 args[i] against 0.
18689 (Fterminal_coding_system): Use EQ to compare Lisp objects.
18690
186912008-02-01 Kenichi Handa <handa@m17n.org>
18692
18693 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
18694 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
18695 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
18696 detect_coding.
18697 (emacs_mule_char): Handle old style (Emacs 20) component character
18698 of a composition.
18699 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
18700 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
18701 composition rule.
18702 (decode_coding_emacs_mule): Handle invalid bytes correctly.
18703
187042008-02-01 Kenichi Handa <handa@m17n.org>
18705
18706 * coding.c (encode_coding_ccl): Allocate destination dynamically
18707 when necessary.
18708
187092008-02-01 Kenichi Handa <handa@m17n.org>
18710
18711 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
18712 the loop. When quitted, show a proper error message.
18713
187142008-02-01 Kenichi Handa <handa@m17n.org>
18715
18716 * xterm.c (x_set_glyph_string_clipping_exactly): Set
18717 src->clip_head and src->clip_tail temporarily instead of src->hl.
18718
18719 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
18720 character sequence.
18721 (Fccl_execute_on_string): Use ASET, not XSET.
18722
187232008-02-01 Kenichi Handa <handa@m17n.org>
18724
18725 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
18726
187272008-02-01 Kenichi Handa <handa@m17n.org>
18728
18729 * coding.c (decode_coding): Fix the condition of terminating the
18730 decoding loop.
18731
187322008-02-01 Kenichi Handa <handa@m17n.org>
18733
18734 * data.c (Faset): On setting a character bigger than 255 in a
18735 unibyte string, signal an error instead of make the string multibyte.
18736
187372008-02-01 Kenichi Handa <handa@m17n.org>
18738
18739 * charset.c (map_charset_chars): Fix for ascii-compatible charset
18740 made by a mapping table.
18741
187422008-02-01 Kenichi Handa <handa@m17n.org>
18743
18744 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
18745 not.
18746 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
18747 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
18748
18749 * xterm.c (x_draw_composite_glyph_string_foreground): Check
18750 s->face is NULL or not.
18751
187522008-02-01 Kenichi Handa <handa@m17n.org>
18753
18754 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
18755 (x_draw_glyph_string): Fix drawing of right_overhang and
18756 left_overhang around/on cursor.
18757
18758 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
18759
187602008-02-01 Kenichi Handa <handa@m17n.org>
18761
18762 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
18763
187642008-02-01 Kenichi Handa <handa@m17n.org>
18765
18766 * coding.c (Fdefine_coding_system_internal)
18767 (Fdefine_coding_system_alias): Avoid a duplicated element in
18768 Vcoding_system_alist.
18769
187702008-02-01 Kenichi Handa <handa@m17n.org>
18771
18772 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
18773
18774 * coding.c (Qcoding_system_define_form): New variable.
18775 (syms_of_coding): Intern and staticpro it.
18776 (Fcoding_system_p): Check Qcoding_system_define_form.
18777 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
18778
18779 * coding.h (CODING_SYSTEM_P): If ID is not available, call
18780 Fcoding_system_p.
18781 (CHECK_CODING_SYSTEM): If ID is not available, call
18782 Fcheck_coding_system.
18783 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
18784 Try also Fcheck_coding_system.
18785
187862008-02-01 Kenichi Handa <handa@m17n.org>
18787
18788 * coding.c (code_conversion_restore): GCPRO arg.
18789
187902008-02-01 Kenichi Handa <handa@m17n.org>
18791
18792 * character.c (lisp_string_width): Check multibyteness of STRING.
18793
187942008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18795
18796 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
18797 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
18798 (decode_mac_font_name): Use decode_coding_c_string instead of
18799 decode_coding.
18800 (x_load_font): Initialize fontp->fontset to -1. Set
18801 fontp->encoding_type.
18802
188032008-02-01 Kenichi Handa <handa@m17n.org>
18804
18805 * search.c (search_buffer): Give up BM search on case-fold-search
18806 if one of a target character has a case-equivalence of different
18807 byte length even if that target charcter is an ASCII.
18808 (simple_search): Fix calculation of byte length of matched text.
18809 (boyer_moore): Fix handling of case-equivalent multibyte characters.
18810
188112008-02-01 Kenichi Handa <handa@m17n.org>
18812
18813 * coding.c (decode_coding): Fix handling of invalid bytes.
18814
188152008-02-01 Kenichi Handa <handa@m17n.org>
18816
18817 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
18818 Unicode characters.
18819
188202008-02-01 Kenichi Handa <handa@m17n.org>
18821
18822 * coding.c (encode_coding_object): If a pre-write-conversion
18823 function makes a new buffer, kill it.
18824
188252008-02-01 Kenichi Handa <handa@m17n.org>
18826
18827 * coding.c (QCascii_compatible_p): New variable.
18828 (syms_of_coding): Initialize it.
18829 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
18830 calling string_char.
18831 (record_conversion_result): Add `default:' case.
18832 (coding_charset_list): Delete unused variable `coding_type'.
18833 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
18834 property in the plist of the coding system.
18835 (Fcoding_system_put): Check QCascii_compatible_p.
18836
188372008-02-01 Miles Bader <miles@gnu.org>
18838
18839 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
18840 removed calculation of frame `f', as it's now used.
18841
188422008-02-01 Kenichi Handa <handa@m17n.org>
18843
18844 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
18845 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
18846 (UNIDATA): New variable.
18847 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
18848 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
18849 $(RUN_TEMACS) unconditionally.
18850
188512008-02-01 Kenichi Handa <handa@m17n.org>
18852
18853 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18854 (admindir): New variable.
18855 ($(lispsource)international/charprop.el): New target.
18856
188572008-02-01 Miles Bader <miles@gnu.org>
18858
18859 * character.c (chars-in-region): Remove obsolete function.
18860 (syms_of_character): Remove its initialization.
18861
188622008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18863
18864 * w32select.c (validate_coding_system)
18865 (setup_windows_coding_system): New functions.
18866 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18867 setup_windows_coding_system.
18868 (setup_config, Fw32_get_clipboard_data): Use
18869 validate_coding_system.
18870 (Fx_selection_exists): Move call to setup_config to a place
18871 where signals are allowed.
18872
18873 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18874 (Fcheck_coding_system): Add declarations.
18875
188762008-02-01 Kenichi Handa <handa@m17n.org>
18877
18878 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18879
188802008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18881
18882 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18883 string as the second argument for x_new_fontset.
18884
188852008-02-01 Kenichi Handa <handa@m17n.org>
18886
18887 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18888 (encode_coding_object): Use safe_call instead of call2.
18889
188902008-02-01 Kenichi Handa <handa@m17n.org>
18891
18892 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18893
18894 * Makefile.in (lisp): Include charprop.el.
18895
188962008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18897
18898 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18899 Not sure if it's unnecessary.
18900
189012008-02-01 Steven Tamm <steventamm@mac.com>
18902
18903 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18904 some possibly unnecessary fontset checking code that crashed
18905 when creating a new frame.
18906
189072008-02-01 Kenichi Handa <handa@m17n.org>
18908
18909 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18910 lookup_face.
18911
18912 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18913
18914 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18915
189162008-02-01 Kenichi Handa <handa@m17n.org>
18917
18918 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18919 (coding_charset_list): New function.
18920
18921 * coding.h (coding_charset_list): Extern it.
18922
189232008-02-01 Kenichi Handa <handa@m17n.org>
18924
18925 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18926 concatenation of family and registry.
18927
189282008-02-01 Kenichi Handa <handa@m17n.org>
18929
18930 * character.h (BYTE8_STRING): Fix typo.
18931
18932 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18933 string to multibyte (sync to HEAD).
18934
18935 * casefiddle.c (casify_region): Handle changes in byte-length
18936 using replace_range_2 (sync to HEAD).
18937
189382008-02-01 Andreas Schwab <schwab@suse.de>
18939
18940 * chartab.c (map_char_table): GCPRO table and arg.
18941
189422008-02-01 Kenichi Handa <handa@m17n.org>
18943
18944 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18945 already at limit.
18946
189472008-02-01 Kenichi Handa <handa@m17n.org>
18948
18949 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18950 instead of fast_c_string_match_ignore_case.
18951 (find_font_encoding): Change argument to Lisp_Object. Use
18952 fast_string_match_ignore_case instead of
18953 fast_c_string_match_ignore_case. Change caller.
18954
189552008-02-01 Kenichi Handa <handa@m17n.org>
18956
18957 * xdisp.c (get_next_display_element): In unibyte case, decide to
18958 display in octal form by checking a character by
18959 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18960
18961 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18962
18963 * character.c (unibyte_has_multibyte_table): New variable.
18964
18965 * character.h (unibyte_has_multibyte_table): Extern it.
18966 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18967
189682008-02-01 Kenichi Handa <handa@m17n.org>
18969
18970 * coding.c (encode_coding_iso_2022): Fix handling of charset
18971 annotation.
18972
189732008-02-01 Kenichi Handa <handa@m17n.org>
18974
18975 * coding.c (setup_coding_system): If coding_system is nil, use
18976 Qundecided.
18977 (Fterminal_coding_system): Return nil if terminal coding system is
18978 `undecided'.
18979 (syms_of_coding): Define coding-system `undecided' here. Setup
18980 terminal_coding as `undecided'.
18981
189822008-02-01 Kenichi Handa <handa@m17n.org>
18983
18984 * xdisp.c (message_dolog, set_message_1): Call
18985 unibyte_char_to_multibyte with arg type int.
18986
18987 * lread.c (read1): Fix reading of a char-table.
18988
18989 * print.c (print_object): Include sub char-table in circularities
18990 detection.
18991
189922008-02-01 Kenichi Handa <handa@m17n.org>
18993
18994 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18995 Append the found sequences in car of ARGS instead of prepending.
18996
189972008-02-01 Kenichi Handa <handa@m17n.org>
18998
18999 * fileio.c (report_file_error): Make a unibyte string from
19000 strerror (errorno).
19001 (Fsubstitute_in_file_name): Fix the arg to
19002 unibyte_char_to_multibyte. It is evaluated twice.
19003
190042008-02-01 Kenichi Handa <handa@m17n.org>
19005
19006 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19007
190082008-02-01 Kenichi Handa <handa@m17n.org>
19009
19010 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19011 BOM is not found.
19012 (detect_coding, detect_coding_system): Optimization for ISO-2022
19013 when no 8-bit data is found.
19014
190152008-02-01 Jason Rumney <jasonr@gnu.org>
19016
19017 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19018
190192008-02-01 Kenichi Handa <handa@m17n.org>
19020
19021 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19022 CHARS.
19023
190242008-02-01 Steven Tamm <steventamm@mac.com>
19025
19026 * macterm.c (mac_encode_char): Add charset argument and update
19027 to use encoding_type.
19028 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19029 switch to pure fontset.
19030 (decode_mac_font_name): Temporarily remove decoding.
19031 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19032 (x_load_font): Temporarily remove encoding.
19033
190342008-02-01 Kenichi Handa <handa@m17n.org>
19035
19036 * xfaces.c (Fface_font): If frame is not on a window system,
19037 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19038 refer to face->font.
19039 (split_font_name_into_vector, build_font_name_from_vector)
19040 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19041 when HAVE_WINDOW_SYSTEM is defined.
19042
190432008-02-01 Kenichi Handa <handa@m17n.org>
19044
19045 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19046 (x_produce_glyphs): Fix setting of members of cmp in case
19047 cmp->glyph_len is zero.
19048
19049 * fontset.c (Fset_fontset_font): Fix docstring.
19050 (Ffontset_info): Make it backward compatible. New arg ALL.
19051
190522008-02-01 Kim F. Storm <storm@cua.dk>
19053
19054 * process.c (read_process_output): Grow decoding_buf when needed;
19055 this could cause a crash in allocate_string and compact_small_strings.
19056
190572008-02-01 Kenichi Handa <handa@m17n.org>
19058
19059 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19060
190612008-02-01 Kenichi Handa <handa@m17n.org>
19062
19063 * coding.c (setup_coding_system): Set coding->common_flags
19064 correctly for raw-text.
19065 (consume_chars): On encoding unibyte text by raw-text, don't check
19066 multibyte form.
19067 (encode_coding): On encoding by raw-text, never use translation tables.
19068
19069 * fileio.c (e_write): Short cut for the case of no encoding.
19070
190712008-02-01 Kenichi Handa <handa@m17n.org>
19072
19073 * coding.c (detect_coding, detect_coding_system): Delete unused
19074 variables.
19075
190762008-02-01 Kenichi Handa <handa@m17n.org>
19077
19078 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19079 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19080
190812008-02-01 Kenichi Handa <handa@m17n.org>
19082
19083 * coding.c (Ffind_coding_systems_region_internal): Include
19084 raw-text and no-conversion in the result.
19085
190862008-02-01 Kenichi Handa <handa@m17n.org>
19087
19088 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19089 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19090 FONT_DEF.
19091 (font_def_arg, add_arg, from_arg, to_arg): New args.
19092 (set_fontset_font): Change argument.
19093 (Fset_fontset_font): Fix for the case that TARGET is a script
19094 name and charset name.
19095 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19096
190972008-02-01 Kenichi Handa <handa@m17n.org>
19098
19099 * fontset.c (fontset_font): Rename from fontset_face. Change return
19100 value.
19101 (face_suitable_for_char_p, face_for_char): Adjust for the change
19102 of fontset_font.
19103 (make_fontset_for_ascii_face): Fix setting of the fontset element
19104 for ASCII.
19105 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19106 to get a font name.
19107 (Ffontset_info): Adjust for the change of fontset_font.
19108
19109 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19110
19111 * character.h (LEADING_CODE_LATIN_1_MIN)
19112 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19113
191142008-02-01 Kenichi Handa <handa@m17n.org>
19115
19116 * editfns.c (check_translation): New function.
19117 (Ftranslate_region_internal): Handle M:N mapping.
19118
191192008-02-01 Kenichi Handa <handa@m17n.org>
19120
19121 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19122
191232008-02-01 Kenichi Handa <handa@m17n.org>
19124
19125 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19126 goto invalid_code.
19127 (decode_coding_iso_2022): Fix handling of invalid designation.
19128
19129 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19130 after calling code_conversion_save.
19131
191322008-02-01 Kenichi Handa <handa@m17n.org>
19133
19134 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19135
19136 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19137
19138 * fontset.c: Include "intervals.h".
19139 (fontset_face): Fix comparing of Lisp_Objects.
19140 (free_face_fontset, new_fontset_from_font_name): Fix
19141 Lisp_Object/int mixup.
19142
19143 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19144
19145 * coding.c: Add many prototypes for static functions.
19146 (get_translation_table): Allow max_lookup to be NULL.
19147 (decode_coding, Ffind_coding_systems_region_internal)
19148 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19149 get_translation_table with max_lookup NULL.
19150
191512008-02-01 Kenichi Handa <handa@m17n.org>
19152
19153 * coding.c (get_translation_table): Declare it as Lisp_Object.
19154 (LOOKUP_TRANSLATION_TABLE): New macro.
19155 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19156 instead of CHAR_TABLE_REF.
19157
191582008-02-01 Kenichi Handa <handa@m17n.org>
19159
19160 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19161 annotation data format.
19162 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19163 Change arguments FROM and TO to single argument NCHARS. Change caller.
19164 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19165 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19166 (decode_coding_ccl, decode_coding_charset): Pay attention to
19167 coding->charbuf_used.
19168 (get_translation): New function.
19169 (produce_chars): New arguments translation_table and last_block.
19170 Translate characters here. Return number of carryover chars.
19171 Change caller.
19172 (produce_composition): New argument pos. Change caller.
19173 Adjust for the change of annotation data format.
19174 (produce_charset, produce_annotation): Likewise.
19175 (decode_coding, encode_coding): Don't call translate_chars.
19176 (consume_chars): New arg translation_table. Change caller.
19177 (translate_chars): Delete.
19178 (syms_of_coding): Make translation-table's number of extra slots 2.
19179
191802008-02-01 Kenichi Handa <handa@m17n.org>
19181
19182 * search.c (simple_search): Fix setting this_pos_byte in backward
19183 search.
19184
19185 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19186 byte sequence.
19187 (detect_coding_ccl): Fix setting of the variable valids.
19188
191892008-02-01 Kenichi Handa <handa@m17n.org>
19190
19191 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19192
19193 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19194
19195 * editfns.c (Ftranslate_region_internal): Rename from
19196 Ftranslate_region. Accept a char-table in TABLE.
19197 (syms_of_editfns): Defsubr Stranslate_region_internal.
19198
19199 * xfaces.c (set_lface_from_font_name): If a font is specified for
19200 a frame, generate a fontset from the font.
19201 (build_scalable_font_name): If the scalable font is requested for
19202 a specific size, don't change that size.
19203 (try_font_list): Try a scalable font also in the case that a
19204 pattern string is specified.
19205
192062008-02-01 Kenichi Handa <handa@m17n.org>
19207
19208 * xfaces.c (Fface_font): New optional arg CHARACTER.
19209
192102008-02-01 Kenichi Handa <handa@m17n.org>
19211
19212 * charset.h (CHARSET_OFFSET): New macro.
19213
192142008-02-01 Kenichi Handa <handa@m17n.org>
19215
19216 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19217
19218 * fontset.c (fontset_face): Handle the case that repertory is a
19219 char-table.
19220 (find_font_encoding): Return nil for unknown encoding.
19221 (Fset_fontset_font): Ignore a font of unknown encoding.
19222
192232008-02-01 Kenichi Handa <handa@m17n.org>
19224
19225 * keymap.c (describe_vector): Handle default value of a char table.
19226
19227 * fontset.c (fontset_face): Handle fallback fonts correctly.
19228 (Ffontset_info): Return infomation about fallback fonts.
19229
192302008-02-01 Kenichi Handa <handa@m17n.org>
19231
19232 * fontset.c (FONTSET_DEFAULT): New macro.
19233 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19234 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19235 the case that it is nil.
19236 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19237 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19238
19239 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19240 subset or superset.
19241
192422008-02-01 Kenichi Handa <handa@m17n.org>
19243
19244 * emacs.c (main): Call init_charset after syms_of_XXX.
19245
19246 * charset.c (Vcharset_map_directory): Delete.
19247 (Vcharset_map_path): New variable.
19248 (load_charset_map_from_file): Use Vcharset_map_path instead.
19249 (init_charset): Initialize Vcharset_map_path.
19250 (syms_of_charset): Delete declaration of "charset-map-directory",
19251 add declaration of "charset-map-path".
19252
192532008-02-01 Kenichi Handa <handa@m17n.org>
19254
19255 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19256 ASCII only string.
19257
19258 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19259
19260 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19261 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19262
192632008-02-01 Kenichi Handa <handa@m17n.org>
19264
19265 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19266
19267 * coding.c (QCmnemonic, QCdefalut_char)
19268 (QCdecode_translation_table, QCencode_translation_table)
19269 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19270 (get_translation_table): Return a list of translation tables if
19271 necessary.
19272 (decode_coding): Call get_translation_table with ENCODEP 0.
19273 (char_encodable_p): If translation_table is non-nil, always call
19274 translate_char.
19275 (Fdefine_coding_system_internal): Accept list of translation
19276 tables as :encode-translation-table and :decode-translation-table.
19277 (Fcoding_system_put): New function.
19278 (syms_of_coding): Declare new symbols. Defsubr
19279 Scoding_system_put.
19280 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19281 typically JISX0212.
19282
19283 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19284 when the charset is superset type.
19285
19286 * character.c (translate_char): Accept list of translation tables.
19287
192882008-02-01 Kenichi Handa <handa@m17n.org>
19289
19290 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19291 (CODING_ATTR_TRANS_TBL): New macro.
19292
19293 * coding.c (get_translation_table): New function.
19294 (translate_chars): Fix the bug of skipping annotation data.
19295 (decode_coding, encode_coding): Utilize get_translation_table.
19296 (char_encodable_p, Funencodable_char_position): Translate char if
19297 necessary.
19298 (Ffind_coding_systems_region_internal)
19299 (Fcheck_coding_systems_region): Setup translation table for encode
19300 in a coding system attribute vector in advance.
19301 (Fdefine_coding_system_internal): Allow a symbol as translation
19302 table. For shift-jis type coding system, allow 4th charset.
19303
193042008-02-01 Kenichi Handa <handa@m17n.org>
19305
19306 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19307
19308 * xdisp.c (get_next_display_element): Pass -1 as POS to
19309 FACE_FOR_CHAR if displaying a C-string.
19310
193112008-02-01 Kenichi Handa <handa@m17n.org>
19312
19313 * composite.c (get_composition_id): Handle xoff and yoff in a
19314 composition rule.
19315
19316 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19317 (struct composition): New member lbearing and rbearing.
19318
19319 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19320 (x_get_glyph_overhangs): Handle a composition glyph.
19321 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19322
19323 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19324 composition glyph.
19325
193262008-02-01 Kenichi Handa <handa@m17n.org>
19327
19328 * print.c: Include charset.h.
19329 (Vprint_charset_text_property): New variable.
19330 (Qdefault): Extern it.
19331 (PRINT_STRING_NON_CHARSET_FOUND)
19332 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19333 (print_check_string_result): New variable.
19334 (print_check_string_charset_prop): New function.
19335 (print_prune_charset_plist): New variable.
19336 (print_prune_string_charset): New function.
19337 (print_object): Call print_prune_string_charset if
19338 Vprint_charset_text_property is not t.
19339 (print_interval): Print nothing if interval->plist is nil.
19340 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19341 variable. Init and staticpro print_prune_charset_plist.
19342
193432008-02-01 Kenichi Handa <handa@m17n.org>
19344
19345 * fontset.c (new_fontset_from_font_name): Use the specified font
19346 for all characters in the new fontset.
19347
19348 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19349 OBJECT args.
19350
19351 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19352 OBJECT args for composition too.
19353
19354 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19355 OBJECT args.
19356
193572008-02-01 Kenichi Handa <handa@m17n.org>
19358
19359 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19360
19361 * fontset.c (reorder_font_vector): Adjust for the change of
19362 FONT_DEF format.
19363 (fontset_face): New arg id. Change caller.
19364 (face_for_char): New args pos and object.
19365 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19366 (fs_query_fontset): Check NAME by Fassoc too.
19367 (Fset_fontset_font): Allow non-XLFD font name.
19368 (Ffontset_info): Adjust for the change of FONT_DEF format.
19369
19370 * fontset.h (face_for_char): Adjust prototype.
19371
19372 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19373 (append_space, extend_face_to_end_of_line)
19374 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19375 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19376
19377 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19378 POS and OBJECT args.
19379
19380 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19381 POS and OBJECT args.
19382
193832008-02-01 Jason Rumney <jasonr@gnu.org>
19384
19385 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19386 of GlobalAlloc'ed memory.
19387
193882008-02-01 Kenichi Handa <handa@m17n.org>
19389
19390 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19391
19392 * charset.h (charset_table_used): Delete extern.
19393
19394 * charset.c (charset_table_used): Make it static.
19395 (map_charset_chars): Fix args to c_function with.
19396
19397 * chartab.c (map_sub_char_table_for_charset): Fix args to
19398 c_function with.
19399
19400 * coding.h (enum coding_result_code): Delete
19401 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19402
19403 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19404 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19405 (Vlast_code_conversion_error): New variables.
19406 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19407 (ONE_MORE_BYTE): Record error if any instead of signaling an
19408 error. If non-ASCII multibyte char is found, return the negative
19409 value of the code. All callers changed to check it.
19410 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19411 (record_conversion_result): New function. Change all codes setting
19412 coding->result to call this function.
19413 (detect_coding_utf_8, decode_coding_utf_8)
19414 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19415 Don't use the local variable incomplete.
19416 (emacs_mule_char): Change the second arg to `const'.
19417 (decode_coding): Fix of flushing out unprocessed data.
19418 (make_conversion_work_buffer): Fix making of a work buffer.
19419 (decode_coding_object): Return coding->dst_object.
19420
19421 * fontset.c (set_fontset_font): Fix args.
19422
19423 * lisp.h (CHARACTERBITS): Define as 22.
19424
19425 * process.c (send_process): Be sure to set coding->src_multibyte.
19426
19427 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19428
194292008-02-01 Kenichi Handa <handa@m17n.org>
19430
19431 * xdisp.c (handle_auto_composed_prop): Give limit to
19432 Fnext_single_char_property_change.
19433
194342008-02-01 Kenichi Handa <handa@m17n.org>
19435
19436 * composite.c (syms_of_composite): Don't make the composition hash
19437 table weak.
19438
19439 * fontset.c (Fset_fontset_font): Fix docstring.
19440
19441 * lisp.h (detect_coding_system): Adjust prototype.
19442
19443 * fileio.c (kill_workbuf_unwind): Delete this function.
19444 (Finsert_file_contents): Adjust the call of detect_coding_system.
19445 Get conversion_buffer by code_conversion_save. Use the macro
19446 CODING_MAY_REQUIRE_DECODING. After decoding, update
19447 coding_system.
19448
19449 * coding.h (make_conversion_work_buffer): Delete extern.
19450 (code_conversion_save): Extern it.
19451
19452 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19453 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19454 (decode_coding_utf_8): Don't do eol converion.
19455 (detect_coding_utf_16): Check coding->src_chars, not
19456 coding->src_bytes. Add heuristics for those that have no signature.
19457 (decode_coding_emacs_mule, decode_coding_iso_2022)
19458 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19459 Don't do eol converion.
19460 (adjust_coding_eol_type): Return a new coding system.
19461 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19462 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19463 each change.
19464 (decode_coding): Pay attention to undo_list. Do eol conversion for
19465 all types of coding-systems (if necessary).
19466 (Vcode_conversion_work_buf_list): Delete it.
19467 (Vcode_conversion_reused_workbuf): Rename from
19468 Vcode_conversion_reused_work_buf.
19469 (Vcode_conversion_workbuf_name): New variable.
19470 (reused_workbuf_in_use): New variable.
19471 (make_conversion_work_buffer): Delete the arg DEPTH.
19472 (code_conversion_restore): Change argument to cons.
19473 (code_conversion_save): Delete the argument BUFFER. Change callers.
19474 (detect_coding_system): New argument src_chars. Change callers.
19475 Fix for utf-16 detection.
19476 (init_coding_once): Don't use ISO_carriage_return.
19477 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19478 reused_workbuf_in_use.
19479
194802008-02-01 Kenichi Handa <handa@m17n.org>
19481
19482 * keymap.c (store_in_keymap): Pay attention to the case that idx
19483 is a cons specifying a character range.
19484
194852008-02-01 Kenichi Handa <handa@m17n.org>
19486
19487 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19488 HANDLED_RECOMPUTE_PROPS.
19489
19490 * coding.c (Fdefine_coding_system_internal): Fix checking of
19491 ascii compatibility.
19492
194932008-02-01 Kenichi Handa <handa@m17n.org>
19494
19495 * charset.c (find_charsets_in_text): Delete unused locale variable.
19496 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19497
19498 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19499 Resync charset_list to Vemacs_mule_charset_list.
19500
19501 * keymap.c (store_in_keymap): Pay attention to the case that idx
19502 is a cons specifying a character range.
19503
195042008-02-01 Kenichi Handa <handa@m17n.org>
19505
19506 * composite.c (update_compositions): Bind inhibit-read-only, etc
19507 to t before calling remove-list-of-text-properties.
19508
19509 * print.c (print_object): Always print ASCII chars as is.
19510
195112008-02-01 Kenichi Handa <handa@m17n.org>
19512
19513 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19514
19515 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19516 is a char table.
19517
195182008-02-01 Kenichi Handa <handa@m17n.org>
19519
19520 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19521
195222008-02-01 Kenichi Handa <handa@m17n.org>
19523
19524 * xfaces.c (set_lface_from_font_name): Fix for the case that
19525 FONTNAME is not fontset name.
19526
195272008-02-01 Kenichi Handa <handa@m17n.org>
19528
19529 * fns.c (base64_encode_1): Fix previous change.
19530
195312008-02-01 Kenichi Handa <handa@m17n.org>
19532
19533 * fontset.c (set_fontset_font): New function.
19534 (Fset_fontset_font): If a font is specified for a charset, use
19535 map_charset_chars to store the font spec in a fontset.
19536
195372008-02-01 Kenichi Handa <handa@m17n.org>
19538
19539 * fontset.c (fontset_face): Create a fallback fontset on demand.
19540 (make_fontset): Don't create a fallback fontset here.
19541 (free_face_fontset): Free a fallback fontset (if any) too.
19542 (n_auto_fontsets): Delete this variable.
19543 (auto_fontset_alist): New variable.
19544 (new_fontset_from_font_name): Check auto_fontset_alist.
19545 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19546 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
19547 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
19548 Defsubr Sfontset_list_all.
19549
195502008-02-01 Kenichi Handa <handa@m17n.org>
19551
19552 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
19553
195542008-02-01 Kenichi Handa <handa@m17n.org>
19555
19556 * fontset.c (Fnew_fontset): Check NAME more rigidly.
19557
195582008-02-01 Kenichi Handa <handa@m17n.org>
19559
19560 * editfns.c (Fgoto_char): Fix docstring.
19561
195622008-02-01 Kenichi Handa <handa@m17n.org>
19563
19564 * insdel.c (insert_from_gap): Adjust intervals correctly.
19565
195662008-02-01 Jason Rumney <jasonr@gnu.org>
19567
19568 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
19569 (pfnGetFontUnicodeRanges): New dynamically loaded function.
19570 (w32_initialize): Try to load it.
19571 (x_get_font_repertory): Use it if available.
19572 (w32_encode_char): Add shortcut for unicode output.
19573
19574 * w32fns.c (w32_load_system_font): Default charset to -1.
19575 (x_to_w32_charset): Match all fonts for unicode.
19576 (w32_to_x_charset): New parameter matching. Don't return partial
19577 or wildcard charsets.
19578 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
19579 (w32_codepage_for_font): Return CP_UNICODE for unicode.
19580 (w32_to_x_font): Match charset to real charset.
19581 (enum_font_cb2): Always list unicode versions.
19582
19583 * makefile.w32-in (temacs): Increase EMHEAP.
19584
195852008-02-01 Jason Rumney <jasonr@gnu.org>
19586
19587 * w32term.c (w32_encode_char): New charset parameter.
19588 font_info.encoding becomes encoding_type.
19589 (x_get_font_repertory): New function. Warning: stub only!
19590 (x_new_font): Return quickly if font already set.
19591 (x_new_fontset): fontsetname parameter is Lisp_Object.
19592 Use new fs_query_fontset. Try new_fontset_from_font_name.
19593 Use fontset_name for return value.
19594
19595 * w32term.h: Declare x_get_font_repertory.
19596
19597 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19598 place of find_charset_in_text. Use encode_coding_object in place
19599 of encode_coding.
19600 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19601 decode_coding.
19602
19603 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19604 of x_new_fontset.
19605 (w32_load_system_font): Initialize charset as unicode.
19606 font_info.encoding becomes encoding_type.
19607 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19608 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19609 (syms_of_w32fns): Set get_font_repertory_func.
19610
19611 * w32console.c: Include character.h. Use terminal_encode_buffer
19612 from term.c.
19613 (write_glyphs): Use new version of encode_terminal_code. Use
19614 encode_coding_object in place of encode_coding.
19615
19616 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19617 encoding becomes encoding_type.
19618
19619 * term.c (terminal_encode_buffer): Make externally visible.
19620
19621 * makefile.w32-in: Add character.h dependancies.
19622 (character.o, chartab.o): New targets.
19623
196242008-02-01 Kenichi Handa <handa@m17n.org>
19625
19626 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19627 CODING_ID_EOL_TYPE.
19628
196292008-02-01 Andreas Schwab <schwab@suse.de>
19630
19631 * coding.c (produce_chars): Revert last change.
19632
196332008-02-01 Kenichi Handa <handa@m17n.org>
19634
19635 * charset.h (charset_unicode): Extern it.
19636
19637 * charset.c (string_xstring_p): Check by (C >= 0x100).
19638 (find_charsets_in_text): Change format of the arc CHARSETS. New
19639 arg MULTIBYTE.
19640 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19641 change of find_charsets_in_text.
19642 (Fsplit_char): Fix doc. Never return unknown.
19643
19644 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19645
19646 * coding.c (Fdefine_coding_system_alias): Update
19647 Vcoding_system_list.
19648
19649 * fontset.c (load_font_get_repertory): Pay attention to the case
19650 that ENCODING of a font is specified by a char-table.
19651
19652 * xterm.c (x_get_font_repertory): Handle the case that the
19653 encoding of font is other than Unicode.
19654
196552008-02-01 Kenichi Handa <handa@m17n.org>
19656
19657 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19658 if a character is encodable by the terminal coding system. If
19659 not, produces proper number of `?'s. Update
19660 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19661 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19662
196632008-02-01 Kenichi Handa <handa@m17n.org>
19664
19665 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19666 variables.
19667 (encode_terminal_code): Change argument. Encode multiple
19668 characters at once. Store the result of encoding in
19669 terminal_encode_buffer.
19670 (write_glyphs, insert_glyphs): Adjust for the change of
19671 encode_terminal_code.
19672 (term_init): Initialize terminal_encode_buffer and
19673 terminal_encode_buf_size.
19674
19675 * coding.c (consume_chars): If coding->src_object is nil, don't
19676 check annotation.
19677
196782008-02-01 Kenichi Handa <handa@m17n.org>
19679
19680 * character.c (char_string): Use ASCII_CHAR_P instead of
19681 SINGLE_BYTE_CHAR_P.
19682
196832008-02-01 Kenichi Handa <handa@m17n.org>
19684
19685 * xdisp.c (handle_auto_composed_prop): Check if the last
19686 characters of auto-composed region is newly composed with the
19687 following characters.
19688 (handle_composition_prop): Fix checking of point being inside
19689 composition.
19690
196912008-02-01 Kenichi Handa <handa@m17n.org>
19692
19693 * fns.c (concat): Don't change multibyteness of the result by
19694 concatenating an 8-bit character.
19695
19696 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
19697 multibyteness of the result when newelt is an 8-bit character.
19698
196992008-02-01 Dave Love <fx@gnu.org>
19700
19701 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
19702 EMACS_INT.
19703
19704 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
19705
19706 * xfaces.c (face_numeric_value): Declare dim size_t.
19707 (Finternal_lisp_face_equal_p): Remove unused f.
19708
19709 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
19710 (MATRIX_ROW): Remove unused vars.
19711 (draw_glyphs, x_insert_glyphs, fast_find_position)
19712 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
19713 byte/char counts.
19714
19715 * regex.c (regex_compile): Remove unused var.
19716
19717 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19718
19719 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19720 (Faccessible_keymaps, where_is_internal): Remove unused vars.
19721
19722 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
19723
19724 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
19725
19726 * fileio.c (Fwrite_region): Remove unused var.
19727
19728 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
19729 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
19730
19731 * composite.c (Fremove_list_of_text_properties): Declare.
19732
19733 * coding.c (inhibit_pre_post_conversion): Remove (unused).
19734 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
19735 (coding_inherit_eol_type): Remove unused attrs.
19736 (detect_coding): Cast arg of detect_eol.
19737
19738 * charset.c (syms_of_charset): Remove unused var p.
19739 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
19740 byte/char counts.
19741
19742 * casetab.c (set_case_table): Remove unused var.
19743
19744 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
19745 unused vars.
19746
197472008-02-01 Dave Love <fx@gnu.org>
19748
19749 * xterm.c (x_bitmap_mask): Declare.
19750
197512008-02-01 Dave Love <fx@gnu.org>
19752
19753 * xterm.c (x_term_init): Fix type error.
19754
19755 * lisp.h: Add Funibyte_char_to_multibyte.
19756
19757 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
19758 (Fset_coding_system_priority): Doc fix.
19759
19760 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
19761
19762 * indent.c (check_composition): Make start and end EMACS_INT.
19763
19764 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
19765
19766 * xdisp.c (handle_composition_prop, check_point_in_composition):
19767 Make buffer positions EMACS_INT.
19768
19769 * composite.c (find_composition, run_composition_function)
19770 (update_compositions, Ffind_composition_internal): Make buffer
19771 positions EMACS_INT.
19772
19773 * composite.h (find_composition, update_compositions): Make
19774 position args EMACS_INT.
19775
19776 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
19777
19778 * intervals.c (get_property_and_range):
19779 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
19780
19781 * unexalpha.c: Don't include varargs.h.
19782
197832008-02-01 Dave Love <fx@gnu.org>
19784
19785 * coding.h (ENCODE_UTF_8): New.
19786
19787 * Makefile.in (gtkutil.o): Depend on coding.h.
19788
19789 * coding.c (Fset_coding_system_priority): Doc fix.
19790
197912008-02-01 Kenichi Handa <handa@m17n.org>
19792
19793 * fileio.c (Finsert_file_contents): Call setup_coding_system in
19794 the case of auto saving.
19795
197962008-02-01 Andreas Schwab <schwab@suse.de>
19797
19798 * chartab.c (map_char_table, map_char_table_for_charset): Protect
19799 `range' from GC.
19800
198012008-02-01 Kenichi Handa <handa@m17n.org>
19802
19803 * coding.c (decode_coding_sjis): Check bytes more rigidly.
19804
198052008-02-01 Kenichi Handa <handa@m17n.org>
19806
19807 * fileio.c (choose_write_coding_system): Return a decided coding system.
19808 (Fwrite_region): Set Vlast_coding_system_used to the return value
19809 of choose_write_coding_system.
19810
198112008-02-01 Kenichi Handa <handa@m17n.org>
19812
19813 * charset.c (Fset_charset_priority): Pay attention to duplicated
19814 arguments.
19815
19816 * coding.c (QCcategory): New variable.
19817 (syms_of_coding): Defsym it. Set all elements of
19818 Vcoding_category_table and their symbol values.
19819 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
19820 coding-category-XXX, and coding-category-list.
19821 (Fdefine_coding_system_internal): Add category in the plist.
19822
198232008-02-01 Kenichi Handa <handa@m17n.org>
19824
19825 * callproc.c (Fcall_process): Handle carryover correctly.
19826
19827 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
19828 (raw_text_coding_system): Check NILP (coding_system).
19829 (coding_inherit_eol_type): Check NILP (coding_system) and
19830 NILP (parent).
19831 (consume_chars): Fix for the case of raw-text.
19832
19833 * process.c (read_process_output): Handle carryover correctly.
19834
198352008-02-01 Dave Love <fx@gnu.org>
19836
19837 * regex.c (re_search_2): Fix last change.
19838
198392008-02-01 Kenichi Handa <handa@m17n.org>
19840
19841 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
19842 target_multibyte. Even in a unibyte case, return a converted
19843 multibyte char.
19844 (GET_CHAR_AFTER): New macro.
19845 (PATFETCH): Translate via multibyte char.
19846 (HANDLE_UNIBYTE_RANGE): Delete this macro.
19847 (SETUP_MULTIBYTE_RANGE): New macro.
19848 (regex_compile): Setup compiled code so that its multibyteness
19849 matches that of a target. Fix the handling of "[X-YZ]" using
19850 SETUP_MULTIBYTE_RANGE.
19851 (analyse_first) <charset>: For filling fastmap for all multibyte
19852 characters, don't check by BASE_LEADING_CODE_P.
19853 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19854 the same as RE_MULTIBYTE_P (bufp) now.
19855 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19856 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19857 (TRANSLATE_VIA_MULTIBYTE): New macro.
19858 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19859 It is the same as RE_MULTIBYTE_P (bufp) now.
19860 <exactn>: Translate via multibyte.
19861 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19862 translate it.
19863 <charset, charset_not>: Fetch a character by
19864 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19865 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19866 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19867 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19868 by GET_CHAR_AFTER.
19869 (bcmp_translate): Likewise.
19870
19871 * search.c (compile_pattern): Check the member target_multibyte,
19872 not the member multibyte of buf.
19873
19874 * lread.c (read1): While reading a string, set force_singlebyte
19875 and force_multibyte correctly.
19876
19877 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19878 up of unibyte_to_multibyte_table.
19879
198802008-02-01 Kenichi Handa <handa@m17n.org>
19881
19882 * coding.c (setup_coding_system): If coding has
19883 post-read-conversion or pre-write-conversion, set
19884 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19885 respectively.
19886 (decode_coding_gap): Run post-read-conversion if any.
19887
19888 * fileio.c (Finsert_file_contents): Even if we read into a
19889 unibyte buffer, check if we must decode the result or not.
19890
198912008-02-01 Kenichi Handa <handa@m17n.org>
19892
19893 * coding.c (make_conversion_work_buffer): Change the work buffer
19894 name to the same one as that of Emacs 21.
19895
198962008-02-01 Kenichi Handa <handa@m17n.org>
19897
19898 * coding.h (make_conversion_work_buffer): Adjust prototype.
19899 (code_conversion_restore): Don't extern it.
19900
19901 * coding.c (detected_mask): Delete unused variable.
19902 (decode_coding_iso_2022): Pay attention to the byte sequence of
19903 CTEXT extended segment, and retain those bytes as is.
19904 (decode_coding_ccl): Delete unused variable `valids'.
19905 (setup_coding_system): Delete unused variable `category'.
19906 (consume_chars): Delete unused variable `category'. Make it work
19907 for non-multibyte case.
19908 (make_conversion_work_buffer): Change argument.
19909 (saved_coding): Delete unused variable.
19910 (code_conversion_restore): Don't check saved_coding->destination.
19911 (code_conversion_save): New function.
19912 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19913 instead of record_unwind_protect.
19914 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19915 (detect_coding_system): Delete unused variable `mask'.
19916 (Fdefine_coding_system_internal): Delete unused variable id.
19917
19918 * fileio.c (kill_workbuf_unwind): New function.
19919 (Finsert_file_contents): On replacing, call
19920 make_conversion_work_buffer with correct args, and call
19921 record_unwind_protect with the first arg kill_workbuf_unwind.
19922
19923 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19924
199252008-02-01 Kenichi Handa <handa@m17n.org>
19926
19927 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19928 (fontset_add): Fix for the case that TO is less than TO1.
19929 (Ffontset_info): Don't use fallback fontset on checking the
19930 default fontset.
19931 (dump_fontset): New function for debugging.
19932
19933 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19934 coding_type is Qcharset.
19935
199362008-02-01 Kenichi Handa <handa@m17n.org>
19937
19938 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19939 (map_char_table): Don't inherit the value from the parent on
19940 initializing VAL. Adjust for the above change.
19941
199422008-02-01 Kenichi Handa <handa@m17n.org>
19943
19944 * coding.c (Qsignature, Qendian): Delete these variables.
19945 (syms_of_coding): Don't initialize them.
19946 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19947 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19948 detect_info->found.
19949 (decode_coding_utf_16): Don't detect BOM here.
19950 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19951 is NOT utf_16_without_bom.
19952 (setup_coding_system): For a coding system of type utf-16, check
19953 if the attribute :endian is Qbig or not (not nil or not), and set
19954 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19955 (detect_coding): If coding type is utf-16 and BOM detection is
19956 required, detect it.
19957 (Fdefine_coding_system_internal): For a coding system of type
19958 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19959
199602008-02-01 Kenichi Handa <handa@m17n.org>
19961
19962 * coding.c (coding_set_source): Fix for the case that the current
19963 buffer is different from coding->src_object.
19964 (decode_coding_object): Don't use the conversion work buffer if
19965 DST_OBJECT is a buffer.
19966
199672008-02-01 Dave Love <fx@gnu.org>
19968
19969 * lread.c (read_emacs_mule_char) [len==2]: Index
19970 emacs_mule_charset correctly.
19971
199722008-02-01 Dave Love <fx@gnu.org>
19973
19974 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19975 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19976 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19977 treated specially.)
19978 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19979 (detected_mask): Remove Big5 bits.
19980
199812008-02-01 Kenichi Handa <handa@m17n.org>
19982
19983 The following changes are to make the font rescaling facility
19984 compatible with Emacs 21.
19985
19986 * xfaces.c (Vface_font_rescale_alist): Rename from
19987 Vface_resizing_fonts.
19988 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19989 (font_rescale_ratio): Rename from font_resizing_ratio.
19990 (split_font_name): Set font->rescale_ratio.
19991 (better_font_p): Pay attention to font->rescale_ratio.
19992 (build_scalable_font_name): Likewise. Change RESX, and RESY
19993 fields.
19994 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19995
199962008-02-01 Kenichi Handa <handa@m17n.org>
19997
19998 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19999 (Qutf_16_le): Remove these variables.
20000 (syms_of_coding): Don't DEFSYM them.
20001 (decode_coding_utf_16): Fix handling of BOM.
20002 (encode_coding_utf_16): Fix handling of BOM.
20003
200042008-02-01 Kenichi Handa <handa@m17n.org>
20005
20006 * fileio.c (Finsert_file_contents): On replacing, before decoding
20007 the file into the work buffer, set point of the work buffer to the end.
20008
200092008-02-01 Dave Love <fx@gnu.org>
20010
20011 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20012
200132008-02-01 Dave Love <fx@gnu.org>
20014
20015 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20016 and fix C types.
20017
200182008-02-01 Kenichi Handa <handa@m17n.org>
20019
20020 * xdisp.c (SKIP_GLYPHS): New macro.
20021 (set_cursor_from_row): Pay attention to string display properties.
20022
20023 * category.c (copy_category_entry): Fix for the case that RANGE
20024 is an integer.
20025
20026 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20027
20028 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20029
200302008-02-01 Kenichi Handa <handa@m17n.org>
20031
20032 * charset.c (Fcharset_id_internal): New function.
20033 (syms_of_charset): Defsubr it.
20034
20035 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20036 with the last arg charset_list acquired from coding.
20037 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20038 the attribute coding_attr_ccl_valids.
20039
20040 * coding.h (enum define_coding_ccl_arg_index): Set the first
20041 member coding_arg_ccl_decoder to coding_arg_max.
20042
20043 * ccl.h (ccl_driver): Adjust prototype.
20044
20045 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20046 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20047 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20048 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20049 last arg Qnil.
20050
200512008-02-01 Kenichi Handa <handa@m17n.org>
20052
20053 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20054 call encode_char.
20055
20056 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20057
200582008-02-01 Dave Love <fx@gnu.org>
20059
20060 * composite.c (syms_of_composite): Make composition_hash_table weak.
20061
200622008-02-01 Kenichi Handa <handa@m17n.org>
20063
20064 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20065 (font_name_registry): Don't extern them.
20066 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20067
20068 * fontset.h (Qfontset): Don't extern it.
20069 (new_fontset_from_font_name): Extern it.
20070
20071 * fontset.c: Give 8 extra slots to fontset objects.
20072 (Qfontset_info): New variable.
20073 (syms_of_fontset): Defsym it.
20074 (FONTSET_FALLBACK): New macro.
20075 (fontset_face): Try also the default fontset.
20076 (make_fontset): Realize a fallback fontset from the default fontset.
20077 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20078 using split_font_name_into_vector and build_font_name_from_vector.
20079 (Fset_fontset_font): Access the elements of font_spec by enum
20080 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20081 name by using split_font_name_into_vector.
20082 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20083 generate a proper font name from the fontset name. Update
20084 Vfontset_alias_alist.
20085 (n_auto_fontsets): New variable.
20086 (new_fontset_from_font_name): New function.
20087 (Ffont_info): Store the information about fonts generated from the
20088 default fontset in the first extra slot of the returned char-table.
20089
20090 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20091 (font_name_registry): Delete function.
20092 (split_font_name_into_vector): New function.
20093 (build_font_name_from_vector): New function.
20094 (font_list): The argument REGISTRY is now a list of registry names.
20095 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20096 specifies an explicit font name, return the name as is. Make a
20097 list of registy names.
20098
20099 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20100 of x_new_fontset.
20101 (Fx_create_frame): Don't call x_new_fontset here. Just use
20102 x_list_fonts to check the existence of fonts.
20103
20104 * xterm.h (x_new_fontset): Adjust prototype.
20105
20106 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20107 string. Use new_fontset_from_font_name to create a fontset from a
20108 font name.
20109
201102008-02-01 Kenichi Handa <handa@m17n.org>
20111
20112 * syntax.c (Vfind_word_boundary_function_table): New name for
20113 Vnext_word_boundary_function_table.
20114 (find-word-boundary-function-table): New name for
20115 next-word-boundary-function-table.
20116
201172008-02-01 Dave Love <fx@gnu.org>
20118
20119 * Makefile.in: Fix some dependencies.
20120
20121 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20122 set it to nil before returning.
20123
20124 * composite.c (update_compositions): Fix type error.
20125
20126 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20127
201282008-02-01 Kenichi Handa <handa@m17n.org>
20129
20130 * xterm.c (x_new_font): Optimize for the case that the font is
20131 already set for the frame.
20132
201332008-02-01 Kenichi Handa <handa@m17n.org>
20134
20135 * chartab.c (char_table_ascii): Check if the char table contents
20136 is sub-char-table or not.
20137 (char_table_set, char_table_set_range): Fix argument to
20138 char_table_ascii.
20139
20140 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20141 (detect_coding_utf_8, detect_coding_utf_16)
20142 (detect_coding_emacs_mule, detect_coding_iso_2022)
20143 (detect_coding_sjis, detect_coding_big5)
20144 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20145 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20146 sequence is valid in this coding system. Change callers.
20147 (MAX_ANNOTATION_LENGTH): New macro.
20148 (ADD_ANNOTATION_DATA): New macro.
20149 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20150 ADD_ANNOTATION_DATA. Change the format of annotation data.
20151 (ADD_CHARSET_DATA): New macro.
20152 (emacs_mule_char): New argument ID. Change callers.
20153 (decode_coding_emacs_mule, decode_coding_iso_2022)
20154 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20155 Produce charset annotation data in coding->charbuf.
20156 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20157 to charset annotation data in coding->charbuf.
20158 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20159 coding->common_flags if the coding system is iso-2022 based and
20160 uses designation.
20161 (produce_composition): Adjust for the new annotation data format.
20162 (produce_charset): New function.
20163 (produce_annotation): Handle charset annotation.
20164 (handle_composition_annotation, handle_charset_annotation): New
20165 functions.
20166 (consume_chars): Handle charset annotation. Utilize the above two
20167 functions.
20168 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20169 buffer, get the deleted text as a string and set
20170 coding->src_object to that string.
20171 (detect_coding, detect_coding_system): Use the new struct
20172 coding_detection_info.
20173
20174 * coding.h (struct coding_detection_info): New structure.
20175 (struct coding_system): Adjust prototype of the member `detector'.
20176 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20177
201782008-02-01 Kenichi Handa <handa@m17n.org>
20179
20180 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20181
201822008-02-01 Dave Love <fx@gnu.org>
20183
20184 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20185 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20186 to new local and nullify apropos_accumulate before returning.
20187 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20188
201892008-02-01 Kenichi Handa <handa@m17n.org>
20190
20191 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20192 correctly.
e3eea1fc 20193
aac0c6e3
MR
201942008-02-01 Dave Love <fx@gnu.org>
20195
20196 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20197
201982008-02-01 Kenichi Handa <handa@m17n.org>
20199
20200 The following changes are to make character composition happen
20201 automatically on displaying.
20202
20203 * Makefile.in (lisp, shortlisp): Add composite.elc.
20204
20205 * composite.h (Qauto_composed, Vauto_composition_function)
20206 (Qauto_composition_function): Extern them.
20207
20208 * composite.c (Vcomposition_function_table)
20209 (Qcomposition_function_table): Delete variables.
20210 (Qauto_composed, Vauto_composition_function)
20211 (Qauto_composition_function): New variables.
20212 (run_composition_function): Don't call
20213 compose-chars-after-function.
20214 (update_compositions): Clear `auto-composed' text property.
20215 (compose_chars_in_text): Delete this function.
20216 (syms_of_composite): Staticpro Qauto_composed and
20217 Qauto_composition_function. Declare Vauto_composition_function as
20218 a Lisp variable.
20219
20220 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20221
20222 * xdisp.c (it_props): Add an entry for Qauto_composed.
20223 (handle_auto_composed_prop): New function.
20224
20225 * xselect.c (selection_data_to_lisp_data): Don't call
20226 compose_chars_in_text.
20227
202282008-02-01 Dave Love <fx@gnu.org>
20229
20230 * keyboard.c (read_char): Modify checking around use of
20231 Vkeyboard_translate_table.
20232
20233 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20234 and fix C types.
20235
202362008-02-01 Kenichi Handa <handa@m17n.org>
20237
20238 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20239 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20240 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20241 the case that the last byte is '\r' correctly.
20242 (decode_coding): Flush out the unprocessed data correctly.
20243 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20244
202452008-02-01 Dave Love <fx@gnu.org>
20246
20247 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20248 Add XK_ISO... case.
20249 (xaw_scroll_callback): Revert last change.
20250
202512008-02-01 Kenichi Handa <handa@m17n.org>
20252
20253 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20254
202552008-02-01 Kenichi Handa <handa@m17n.org>
20256
20257 * xfaces.c (Vface_resizing_fonts): New variable.
20258 (struct font_name): New member `resizing_ratio'.
20259 (font_resizing_ratio): New function.
20260 (split_font_name): Set font->resizing_ratio.
20261 (better_font_p): Pay attention to font->resizing_ratio.
20262 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20263 RESX, and RESY fields.
20264 (try_alternative_families): Try scalable fonts if
20265 Vscalable_fonts_allowed is not Qt.
20266 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20267
202682008-02-01 Dave Love <fx@gnu.org>
20269
20270 * xterm.c (xaw_scroll_callback): Cast correctly.
20271
202722008-02-01 Dave Love <fx@gnu.org>
20273
20274 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20275 (lispy_kana_keys): Comment out.
20276 (make_lispy_event) [XK_kana_A]: Comment out.
20277
20278 * xterm.c (xaw_scroll_callback): Cast call_data.
20279 (XTread_socket): Deal with ASCII keysyms.
20280 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20281
202822008-02-01 Dave Love <fx@gnu.org>
20283
20284 * xterm.c (Vx_keysym_table): New.
20285 (syms_of_xterm): Initialize it.
20286 (XTread_socket): Use it.
20287 From head: Eliminate incorrect optimization that tried to avoid
20288 decoding the output of X*LookupString.
20289 (x_get_font_repertory): Delete charset declaration.
20290
202912008-02-01 Kenichi Handa <handa@m17n.org>
20292
20293 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20294 return 0.
20295 (Fdefine_coding_system_internal): Setup
20296 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20297
202982008-02-01 Dave Love <fx@gnu.org>
20299
20300 * coding.c (Fcheck_coding_system): Doc fix.
20301
20302 * editfns.c (Finsert_byte): Return a proper value.
20303
203042008-02-01 Kenichi Handa <handa@m17n.org>
20305
20306 * coding.c (decode_coding): Fix args to translate_chars. Pay
20307 attention to Vstandard_translation_table_for_decode.
20308 (encode_coding): Fix args to translate_chars. Pay attention to
20309 Vstandard_translation_table_for_encode.
20310
20311 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20312 SINGLE_BYTE_CHAR_P.
20313
20314 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20315 not by SINGLE_BYTE_CHAR_P.
20316
20317 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20318 SINGLE_BYTE_CHAR_P.
20319
20320 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20321 SINGLE_BYTE_CHAR_P.
20322
20323 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20324 by SINGLE_BYTE_CHAR_P.
20325
20326 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20327 SINGLE_BYTE_CHAR_P.
20328
203292008-02-01 Dave Love <fx@gnu.org>
20330
20331 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20332
203332008-02-01 Dave Love <fx@gnu.org>
20334
20335 * fns.c (Flanginfo): Fix typo.
20336
20337 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20338
203392008-02-01 Kenichi Handa <handa@m17n.org>
20340
20341 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20342 (detect_coding_emacs_mule, detect_coding_iso_2022)
20343 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20344 incomplete byte sequence. Don't update *mask when correctly detected.
20345 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20346 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20347 (detect_coding, detect_coding_system): Adjust for the changes above.
20348
203492008-02-01 Kenichi Handa <handa@m17n.org>
20350
20351 * character.c (char_string): Rename from
20352 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20353 (string_char): Rename from string_char.
20354
20355 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20356 if C is greater than MAX_3_BYTE_CHAR.
20357 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20358 string_char instead of string_char_with_unification.
20359
203602008-02-01 Dave Love <fx@gnu.org>
20361
20362 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20363
203642008-02-01 Kenichi Handa <handa@m17n.org>
20365
20366 * keymap.c (push_key_description): Pay attention to force_multibyte.
20367
20368 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20369
203702008-02-01 Dave Love <fx@gnu.org>
20371
20372 * charset.c (define_charset_internal): Rename `supprementary'.
20373
20374 * Makefile.in (lisp, shortlisp): Remove latin-N.
20375
203762008-02-01 Dave Love <fx@gnu.org>
20377
20378 * xfns.c (x_window, x_window): Use use_xim.
20379
20380 * xterm.c (use_xim): Initialize.
20381 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20382 (x_term_init): Maybe set use_xim.
20383
20384 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20385
203862008-02-01 Kenichi Handa <handa@m17n.org>
20387
20388 * search.c (search_buffer): Fix case-fold-search of multibyte
20389 characters.
20390 (boyer_moore): Rename the last argument to char_high_bits.
20391
203922008-02-01 Kenichi Handa <handa@m17n.org>
20393
20394 * xdisp.c (display_string): Fix for the case of zero width glyph.
20395
20396 * xfns.c (x_set_font): Change the error message of the case that
20397 x_new_fontset returns Qt.
20398
20399 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20400 (Finternal_set_lisp_face_attribute): Use signal_error for the
20401 error of invalid fontset.
20402
20403 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20404 fontset, return Qt.
20405
204062008-02-01 Dave Love <fx@gnu.org>
20407
20408 * unexelf.c (unexec): Make .got handling not SGI-specific.
20409
20410 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20411
20412 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20413
20414 * keyboard.c (read_key_sequence): Fix type error.
20415
20416 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20417 type error.
20418
20419 * fontset.c (fontset_add): Return Lisp_Object.
20420
204212008-02-01 Dave Love <fx@gnu.org>
20422
20423 * charset.h (charset_ordered_list_tick): Declare extern.
20424
204252008-02-01 Kenichi Handa <handa@m17n.org>
20426
20427 The following changes (and some of 2008-02-01 changes of mine) are
20428 for handling syntax, category, and case conversion for unibyte
20429 characters by converting them to multibyte on the fly. With these
20430 changes, we don't have to setup syntax and case tables for unibyte
20431 characters in each language environment.
20432
20433 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20434 multibyte if necessary.
20435
20436 * bytecode.c (Fbyte_code): Likewise.
20437
20438 * character.h (LEADING_CODE_LATIN_1_MIN)
20439 (LEADING_CODE_LATIN_1_MAX): New macros.
20440 (unibyte_to_multibyte_table): Extern it.
20441 (unibyte_char_to_multibyte): New macro.
20442 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20443 (CHAR_LEADING_CODE): New macro.
20444 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20445
20446 * character.c (unibyte_to_multibyte_table): New variable.
20447 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20448 (multibyte_char_to_unibyte): If C is an eight-bit character,
20449 convert it to the corresponding byte value.
20450
20451 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20452 not 1, signals an error. Update the elements of
20453 unibyte_to_multibyte_table.
20454 (init_charset_once): Initialize unibyte_to_multibyte_table.
20455 (syms_of_charset): Define the charset `iso-8859-1'.
20456
20457 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20458 as is without converting it to unibyte. In a unibyte buffer,
20459 convert C to multibyte before checking the syntax.
20460
20461 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20462
20463 * minibuf.c (Fminibuffer_complete_word): Use the macro
20464 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20465
20466 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20467
20468 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20469 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20470 that is zero, convert an eight-bit char to multibyte.
20471 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20472 non-emacs case.
20473 (PATFETCH): Convert an eight-bit char to multibyte.
20474 (HANDLE_UNIBYTE_RANGE): New macro.
20475 (regex_compile): Setup the compiled pattern for multibyte chars
20476 even if the given regex string is unibyte. Use PATFETCH_RAW
20477 instead of PATFETCH in many places. To handle `charset'
20478 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20479 only for ASCII chars.
20480 (analyse_first) <exactn>: Simplify because the compiled pattern
20481 is multibyte.
20482 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20483 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20484 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20485 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20486 multibyte always 1.
20487 (re_search_2): In emacs, set the locale variable multibyte to 1,
20488 otherwise to 0. New local variable target_multibyte. Check it
20489 to decide the multibyteness of STR1 and STR2. If
20490 target_multibyte is zero, convert unibyte chars to multibyte
20491 before translating and checking fastmap.
20492 (TARGET_CHAR_AND_LENGTH): New macro.
20493 (re_match_2_internal): In emacs, set the locale variable multibyte
20494 to 1, otherwise to 0. New local variable target_multibyte. Check
20495 it to decide the multibyteness of STR1 and STR2. Use
20496 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20497 <charset, charset_not>: If multibyte is nonzero, check fastmap
20498 only for ASCII chars. Call bcmp_translate with
20499 target_multibyte, not with multibyte.
20500 <begline>: Declare the local variable C as `unsigned'.
20501 (bcmp_translate): Change the last arg name to target_multibyte.
20502
20503 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20504 the regexp pattern and the matching target. Set cp->buf.multibyte
20505 to the multibyteness of the regexp pattern. Set
20506 cp->but.target_multibyte to the multibyteness of the matching target.
20507 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20508 FETCH_STRING_CHAR_ADVANCE.
20509 (Freplace_match): Convert unibyte chars to multibyte.
20510
20511 * syntax.c (char_quoted, back_comment, scan_words)
20512 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20513 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20514 unibyte chars to multibyte.
20515 (skip_chars): Delete the arg syntaxp, and move the code for
20516 handling syntaxes to skip_syntaxes. Change callers.
20517 Fix the case that the multibyteness of STRING and the current
20518 buffer doesn't match.
20519 (skip_syntaxes): New function.
20520 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20521 SINGLE_BYTE_CHAR_P.
20522
205232008-02-01 Kenichi Handa <handa@m17n.org>
20524
20525 * xfaces.c (QCfontset): New variable.
20526 (LFACE_FONTSET): New macro.
20527 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20528 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20529 (Finternal_set_lisp_face_attribute)
20530 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20531 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20532 check also LFACE_FONTSET_INDEX.
20533 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20534 attrs[LFACE_FONT_INDEX].
20535 (syms_of_xfaces): Intern and staticpro QCfontset.
20536
20537 * dispextern.h (enum lface_attribute_index): New member
20538 LFACE_FONTSET_INDEX.
20539
20540 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20541
205422008-02-01 Kenichi Handa <handa@m17n.org>
20543
20544 * coding.c (coding_set_destination): Fix coding->destination for
20545 the case converting a region.
20546 (encode_coding_utf_8): Encode eight-bit chars as single byte.
20547 (encode_coding_object): Fix coding->dst_pos and
20548 coding->dst_pos_byte for the case converting a region.
20549
20550 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
20551
20552 * character.h (BYTE8_STRING): New macro.
20553
20554 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
20555
205562008-02-01 Kenichi Handa <handa@m17n.org>
20557
20558 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
20559 characters by octal form.
20560
20561 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20562
20563 * buffer.h (_fetch_multibyte_char_len): Delete extern.
20564 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
20565 _fetch_multibyte_char_len.
20566 (FETCH_CHAR_AS_MULTIBYTE): New macro.
20567
20568 * casetab.c (set_canon, set_identity, shuffle): Simplify.
20569
20570 * casefiddle.c (casify_object): Simplify. Handle the case that
20571 the case conversion change the byte length.
20572 (casify_region): Likewise.
20573
20574 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
20575
20576 * character.c (_fetch_multibyte_char_len): Delete this variable.
20577 (syms_of_character): Setup Vprintable_chars.
20578
20579 * editfns.c (Fchar_equal): Fix for the unibyte case.
20580 (Finsert_byte): New function.
20581 (syms_of_editfns): Defsubr it.
20582
20583 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
20584 of direct code 0x3ffff.
20585
20586 * search.c (Freplace_match): Fix for the unibyte case.
20587
205882008-02-01 Kenichi Handa <handa@m17n.org>
20589
20590 * lread.c (safe_to_load_p): Fix the logic.
20591
20592 * syntax.c (scan_words): Don't treat characters belonging to
20593 different scripts as constituting a word.
20594
20595 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20596
20597 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20598
20599 * emacs.c (main): In the case of --unibyte, instead of aborting on
20600 finding non-empty buffer, make it unibyte.
20601
206022008-02-01 Kenichi Handa <handa@m17n.org>
20603
20604 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20605 to create a fontset.
20606
206072008-02-01 Dave Love <fx@gnu.org>
20608
20609 * character.c (Funibyte_char_to_multibyte): Doc fix.
20610
20611 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20612
206132008-02-01 Kenichi Handa <handa@m17n.org>
20614
20615 * fontset.c (fontset_add): Make the type `int'.
20616 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20617
20618 * character.c (unibyte_char_to_multibyte)
20619 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20620 charset_unibyte, not charset_primary.
20621
20622 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20623
20624 * charset.c (charset_unibyte): Rename from charset_primary.
20625 (Funibyte_charset): Rename from Fprimary_charset.
20626 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20627 (syms_of_charset): Adjust for the above changes.
20628
20629 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20630 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20631 it->multibyte_p is zero.
20632
20633 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20634 Delete extern.
20635
206362008-02-01 Kenichi Handa <handa@m17n.org>
20637
20638 * coding.c (Fdefine_coding_system_internal): Fix category setting
20639 for a coding system of type iso-2022.
20640
206412008-02-01 Kenichi Handa <handa@m17n.org>
20642
20643 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20644
206452008-02-01 Kenichi Handa <handa@m17n.org>
20646
20647 * syntax.c (Vnext_word_boundary_function_table): New variable.
20648 (next-word-boundary-function-table): Declare it as a Lisp variable
20649 in syms_of_syntax.
20650 (scan_words): Call functions in Vnext_word_boundary_function_table
20651 if any.
20652
20653 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20654
20655 * fontset.c (fs_load_font): If fontp->charset is not negative,
20656 return fontp without setting its members.
20657
206582008-02-01 Dave Love <fx@gnu.org>
20659
20660 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20661
20662 * m/sparc.h (HAVE_ALLOCA): Delete.
20663
20664 * s/irix6-5.h: Don't include strings.h.
20665 (bcopy, bzero, bcmp): Don't undef.
20666
20667 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20668
20669 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20670 (TIOCSIGSEND): Don't test IRIX6.
20671 (bcopy, bzero, bcmp): Define conditionally.
20672
206732008-02-01 Kenichi Handa <handa@m17n.org>
20674
20675 * buffer.c (Qas, Qmake, Qto): New variables.
20676 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20677 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20678
20679 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20680 we are inserting a process output into a multibyte buffer.
20681
20682 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20683 multibyte_char_to_unibyte.
20684
20685 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20686 by the primary charset, make it eight-bit char.
20687 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20688
20689 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
20690 (charset_8_bit__control, charset_8_bit_graphic)
20691 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
20692 (define_charset_internal): New function.
20693 (syms_of_charset): Call define_charset_internal for pre-defined
20694 charsets.
20695
20696 * charset.h (charset_8_bit): Extern it.
20697
20698 * coding.c (make_conversion_work_buffer): Adjust for the change
20699 of Fset_buffer_multibyte.
20700 (encode_coding_raw_text): Increment p0 in the loop.
20701
20702 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
20703
20704 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
20705 for the change of Fset_buffer_multibyte.
20706
20707 * fns.c (Fstring_to_multibyte): New function.
20708 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
20709
207102008-02-01 Dave Love <fx@gnu.org>
20711
20712 * xfns.c (x_put_x_image): Declare args.
20713
20714 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
20715 (try_font_list): Declare an arg.
20716
20717 * xdisp.c (message2_nolog, set_message): Declare an arg.
20718
20719 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
20720
20721 * syntax.c (scan_sexps_forward): Declare an arg.
20722
20723 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20724 Declare an arg.
20725
20726 * lisp.h (Fnew_fontset): Declare.
20727
20728 * keymap.c (push_key_description): Call CHARACTERP correctly.
20729
20730 * fontset.c (fontset_add): Declare args. Call make_number correctly.
20731 (face_for_char): Delete unused vars.
20732 (Fset_fontset_font): Doc fix. Delete unused vars.
20733
20734 * doc.c (Fsubstitute_command_keys): Delete unused vars.
20735
20736 * composite.c (update_compositions): Declare arg.
20737
20738 * cm.c (calccost, cmgoto): Declare args.
20739
20740 * charset.c: Remove `emacs' conditional. Doc fixes.
20741 (map_char_table_for_charset): Declare.
20742
20743 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
20744
20745 * ccl.c: Remove `emacs' conditional.
20746
207472008-02-01 Kenichi Handa <handa@m17n.org>
20748
20749 The following changes are to allow specifying multiple font
20750 patterns for a character range (specified by script or charset).
20751
20752 * Makefile.in (abbrev.o): Depend on syntax.h.
20753 (xfaces.o): Depend on charset.h.
20754
20755 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
20756 SINGLE_BYTE_CHAR_P.
20757
20758 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
20759
20760 * character.h (Vchar_script_table): Extern it.
20761
20762 * character.c (Vscript_alist): Delete.
20763 (Vchar_script_table, Qchar_script_table): New variable.
20764 (syms_of_character): Declare Vchar_script_table as a lisp variable
20765 and initialize it.
20766
20767 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
20768 have property char-table-extra-slots, make no extra slot.
20769
20770 * dispextern.h (struct face): Delete member `charset'.
20771 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
20772 SINGLE_BYTE_CHAR_P.
20773 (choose_face_font, lookup_non_ascii_face, font_name_registry):
20774 Add prototypes.
20775 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
20776 (generate_ascii_font_name): Rename from generate_ascii_font.
20777
20778 * fontset.h (get_font_repertory_func): New prototype.
20779 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
20780 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
20781
20782 * fontset.c (Qprepend, Qappend): New variables.
20783 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
20784 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
20785 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
20786 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
20787 (fontset_ref_and_range, fontset_add, reorder_font_vector)
20788 (load_font_get_repertory): New functions.
20789 (fontset_set): Delete.
20790 (fontset_face): New arg FACE. Return face ID, not face.
20791 Complete re-write to handle new fontset structure. Change caller.
20792 (free_face_fontset): Use ASET istead of AREF (X) = Y.
20793 (face_for_char): Don't call lookup_face.
20794 (make_fontset_for_ascii_face): New arg FACE.
20795 (fs_load_font): New arg CHARSET_ID. Don't check
20796 Vfont_encoding_alist here.
20797 (find_font_encoding): New function.
20798 (list_fontsets): Use STRINGP, not ! NILP.
20799 (accumulate_script_ranges): New function.
20800 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
20801 re-written to handle new fontset structure.
20802 (Ffontset_font): Return a copy of element.
20803 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
20804 docstring of font-encoding-alist.
20805
20806 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
20807 (Fset_fotset_font): Fix arguments to 5.
20808
20809 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
20810
20811 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
20812 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20813 (highlight_trailing_whitespace): Adjust for the change of
20814 lookup_named_face.
20815
20816 * xfaces.c: Include charset.h.
20817 (load_face_font): Delete argument C. Change caller.
20818 (generate_ascii_font_name): Rename from generate_ascii_font.
20819 (font_name_registry): New function.
20820 (cache_face): Store ascii faces before non-ascii faces in buckets.
20821 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
20822 Lookup only ascii faces.
20823 (lookup_non_ascii_face): New function.
20824 (lookup_named_face): Delete argument C. Change caller.
20825 (lookup_derived_face): Delete argument C. Change caller.
20826 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
20827 a string, just call font_list with it.
20828 (choose_face_font): Delete arguments FACE and C. New arg
20829 FONT_SPEC. Change caller.
20830 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
20831 Change caller.
20832 (realize_non_ascii_face): New function.
20833 (realize_x_face): Call load_face_font here.
20834 (realize_tty_face): Delete argument C. Change caller.
20835 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
20836 get a face ID.
20837 (dump_realized_face): Don't print charset of FACE.
20838
20839 * xfns.c (x_set_font): Always call x_new_fontset and
20840 store_frame_parameter.
20841 (Fx_create_frame): Call x_new_fontset, not x_new_font.
20842 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
20843
20844 * xterm.h (x_get_font_repertory): Extern it.
20845
20846 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20847 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20848 it->multibyte_p is zero.
20849 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20850 (x_new_fontset): If FONTSETNAME doesn't match any existing
20851 fontsets, create a new one.
20852 (x_get_font_repertory): New function.
20853
208542008-02-01 Kenichi Handa <handa@m17n.org>
20855
20856 * coding.c (Ffind_coding_systems_region_internal): Detect an
20857 ASCII only string correctly.
20858
20859 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20860 version is 0.
20861
208622008-02-01 Kenichi Handa <handa@m17n.org>
20863
20864 * lread.c: Include "coding.h".
20865 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20866 (load_each_byte, unread_char): New variables.
20867 (readchar_backlog): Delete.
20868 (readchar): Return a character unless load_each_byte is nonzero.
20869 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20870 cons. If unread_char is not -1, simply return it.
20871 (unreadchar): Handle the case that readcharfun is
20872 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20873 (read_multibyte): Delete.
20874 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20875 (read_emacs_mule_char): New functions.
20876 (Fload): Even if the file doesn't have the extension ".elc", if
20877 safe_to_load_p returns a positive version number, assume that the
20878 file contains bytecompiled code. If the version is less than 22,
20879 load the file while decoding multibyte sequences by emacs-mule.
20880 (readevalloop): Don't use readchar_backlog.
20881 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20882 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20883 (read_escape): Delete the arg BYTEREP.
20884 (read1): Set load_each_byte to 1 temporarily while handling
20885 #@NUMBER. Don't call read_multibyte.
20886 (read_vector): Call Fread with a cons. If readcharfun is
20887 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20888 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20889 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20890 and Qload_force_doc_strings.
20891
208922008-02-01 Kenichi Handa <handa@m17n.org>
20893
20894 * xdisp.c (face_before_or_after_it_pos): Call
20895 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20896
208972008-02-01 Kenichi Handa <handa@m17n.org>
20898
20899 * character.h (TRAILING_CODE_P): New macro.
20900 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20901 (string_char_with_unification): Fix prototype.
20902 (Vscript_alist): Extern it.
20903
20904 * character.c (Vscript_alist): New variable.
20905 (string_char_with_unification, str_as_unibyte)
20906 (string_escape_byte8): Add `const' to local variables.
20907 (syms_of_character): Declare script-alist as a Lisp variable.
20908
20909 * charset.h (Vcharset_ordered_list): Extern it.
20910 (charset_ordered_list_tick): Extern it.
20911 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20912 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20913 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20914 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20915 (Funify_charset): Adjust for the change of Funify_charset.
20916
20917 * charset.c (charset_ordered_list_tick): New variable.
20918 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20919 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20920 deunify intead of unify a charset.
20921 (string_xstring_p): Add `const' to local variables.
20922 (find_charsets_in_text): Add `const' to arguments and local variables.
20923 (encode_char): Adjust for the change of Funify_charset. Fix
20924 detecting of invalid code.
20925 (Fset_charset_priority): Increment charset_ordered_list_tick.
20926 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20927 and TO_CODE.
20928
20929 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20930 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20931 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20932 (decode_coding_ccl, consume_chars)
20933 (Ffind_coding_systems_region_internal)
20934 (Fcheck_coding_systems_region): Add `const' to local variables.
20935
20936 * print.c (print_object): Use octal form for printing the
20937 contents of a bool vector.
20938
209392008-02-01 Dave Love <fx@gnu.org>
20940
20941 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20942 <version == 20>: Refuse to load.
20943
209442008-02-01 Dave Love <fx@gnu.org>
20945
20946 * fns.c: Move coding.h.
20947 (Qcodeset, Qdays, Qmonths): New.
20948 (concat): Use CHARACTERP instead of INTEGERP.
20949 (Flocale_codeset): Delete.
20950 (Flanginfo): New function.
20951 (syms_of_fns): Change accordingly.
20952
20953 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20954
209552008-02-01 Dave Love <fx@gnu.org>
20956
20957 * casetab.c (init_casetab_once, init_casetab_once): Fix
20958 CHAR_TABLE_SET call.
20959
20960 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20961
20962 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20963
20964 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20965 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20966 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20967
20968 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20969
20970 * coding.c (ENCODE_DESIGNATION, decode_eol)
20971 (make_conversion_work_buffer, code_conversion_restore)
20972 (Fdefine_coding_system_internal): Convert Lisp types.
20973 (code_conversion_restore): Use EQ, not ==.
20974 (Fencode_coding_string): Fix code_convert_string call.
20975
20976 * coding.h (code_convert_region): Fix prototype.
20977
20978 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20979
20980 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20981 (Ffontset_info): Convert Lisp types.
20982
20983 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20984
20985 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20986
20987 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20988
20989 * chartab.c: Include "...h", not <...h> in some cases.
20990
20991 * callproc.c (Fcall_process): Remove unused variables.
20992
209932008-02-01 Dave Love <fx@gnu.org>
20994
20995 * coding.c (Fset_coding_system_priority): Allow null arg list.
20996
209972008-02-01 Dave Love <fx@gnu.org>
20998
20999 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21000 (Fself_insert_and_exit): Use CHARACTERP.
21001
21002 * callproc.c (Fcall_process): Remove unused vars.
21003
21004 * xterm.c (XTread_socket): Add extra dead keysyms.
21005
21006 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21007
21008 * dispextern.h: Remove prototypes for redraw_frame,
21009 redraw_garbaged_frames.
21010
21011 * cmds.c (Fself_insert_command): Use CHARACTERP.
21012
21013 * chartab.c (make_sub_char_table): Remove unused var.
21014 (Fset_char_table_default, Fmap_char_table): Doc fix.
21015
21016 * keymap.c (access_keymap): Remove generic char code.
21017 (push_key_description): Use CHARACTERP.
21018
210192008-02-01 Dave Love <fx@gnu.org>
21020
21021 * charset.c: Doc fixes.
21022 (Funify_charset): Extra checking.
21023
210242008-02-01 Dave Love <fx@gnu.org>
21025
21026 * lread.c: Remove some unused variables.
21027 (safe_to_load_p): If safe, return the magic number version byte.
21028 (Fload): Maybe use load-with-code-conversion.
21029
210302008-02-01 Kenichi Handa <handa@m17n.org>
21031
21032 * category.c (Fmodify_category_entry): Don't modify the contents
21033 of category_set for characters out of the range. Avoid
21034 unnecessary modification.
21035
21036 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21037 Vchar_unify_table. The default value of the table is now nil.
21038
21039 * character.c (syms_of_character): Setup Vchar_width_table for
21040 eight-bit-control and raw-byte chars.
21041
21042 * charset.h (enum define_charset_arg_index): Delete
21043 charset_arg_parents and add charset_arg_subset and
21044 charset_arg_superset.
21045 (enum charset_attr_index): Delete charset_parents and add
21046 charset_subset and charset_superset.
21047 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21048 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21049 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21050 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21051 (CHARSET_SUPERSET): New macros.
21052 (charset_work): Extern it.
21053 (ENCODE_CHAR): Use charset_work.
21054 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21055 (map_charset_chars): Extern it.
21056
21057 * charset.c (load_charset_map): Set the default value of encoder
21058 and deunifier char-tables to nil.
21059 (map_charset_chars): Change argument. Change callers. Use
21060 map_char_table_for_charset instead of map_char_table.
21061 (Fmap_charset_chars): New optional args from_code and to_code.
21062 (Fdefine_charset_internal): Adjust for the change of
21063 `define-charset' (:parents -> :subset or :superset).
21064 (charset_work): New variable.
21065 (encode_char, syms_of_charset): Adjust for the change of
21066 Fdefine_charset_internal.
21067 (Ffind_charset_string): Setup the vector `charsets' correctly.
21068
21069 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21070 the previous change.
21071 (char_table_ref_and_range): Adjust for the above change.
21072 (map_sub_char_table_for_charset): New function.
21073 (map_char_table_for_charset): New function.
21074
21075 * keymap.c (describe_vector): Handle a char-table directly here.
21076 (describe_char_table): Delete.
21077
21078 * lisp.h (map_charset_chars): Delete.
21079
210802008-02-01 Dave Love <fx@gnu.org>
21081
21082 * fns.c (count_combining): Comment out (unused).
21083 (Flocale_codeset): New.
21084 (syms_of_fns): Defsubr it.
21085
21086 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21087 (size_t): Remove.
21088
210892008-02-01 Dave Love <fx@gnu.org>
21090
21091 * Makefile.in (chartab.o): Depend on charset.h.
21092
210932008-02-01 Kenichi Handa <handa@m17n.org>
21094
21095 * character.c (syms_of_character): Set the default value of
21096 Vprintable_chars to Qnil.
21097
210982008-02-01 Dave Love <fx@gnu.org>
21099
21100 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21101
211022008-02-01 Kenichi Handa <handa@m17n.org>
21103
21104 * charset.c (load_charset_map): Handle the case that from < to
21105 correctly.
21106
21107 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21108 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21109 Pay attention to raw-8-bit chars.
21110
211112008-02-01 Kenichi Handa <handa@m17n.org>
21112
21113 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21114 It is not bytecompiled now.
21115
21116 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21117 (charset_jisx0208): New variables.
21118 (Fdefine_charset_internal): Setup them if appropriate.
21119 (init_charset_once): Initialize them to -1.
21120
21121 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21122 (charset_jisx0208): Extern them.
21123
21124 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21125 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21126 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21127 (setup_iso_safe_charsets): Fix arguments to Fassq.
21128 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21129 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21130 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21131 (encode_coding_iso_2022): Change the 1st arg to
21132 ENCODE_ISO_CHARACTER to a variable.
21133
211342008-02-01 Kenichi Handa <handa@m17n.org>
21135
21136 * charset.h (enum define_charset_arg_index): New enums
21137 charset_arg_min_code and charset_arg_max_code.
21138 (struct charset): New member char_index_offset.
21139
21140 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21141 Take charset->char_index_offset into account.
21142 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21143 args[charset_arg_max_code]. Setup charset.char_index_offset.
21144 (syms_of_charset): Fix args to Fdefine_charset_internal.
21145
211462008-02-01 Dave Love <fx@gnu.org>
21147
21148 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21149
211502008-02-01 Dave Love <fx@gnu.org>
21151
21152 * coding.c: Doc fixes.
21153 (Fcoding_system_aliases): Fix return value.
21154 (Qmac): Remove (duplicated) definition.
21155
211562008-02-01 Dave Love <fx@gnu.org>
21157
362654a6
JB
21158 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21159 New functions.
aac0c6e3
MR
21160
21161 * character.c (Fstring): Doc fix.
21162
21163 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21164
362654a6 21165 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21166 (font-encoding-alist): Doc fix.
21167
211682008-02-01 Dave Love <fx@gnu.org>
21169
21170 * term.c (costs_set): Declare static, non-initialized for pcc.
21171 (encode_terminal_code): Remove unused var.
21172
21173 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21174 for K&R.
21175
21176 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21177
21178 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21179 (suffixes): Move out of make_subsidiaries for K&R.
21180
21181 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21182
21183 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21184
211852008-02-01 Dave Love <fx@gnu.org>
21186
21187 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21188
21189 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21190
211912008-02-01 Yong Lu <lyongu@asia-infonet.com>
21192
21193 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21194
21195 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21196
211972008-02-01 Kenichi Handa <handa@m17n.org>
21198
21199 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21200 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21201
212022008-02-01 Kenichi Handa <handa@m17n.org>
21203
21204 * coding.c (decode_coding_charset): Adjust for the change of
21205 Fdefine_coding_system_internal.
21206 (Fdefine_coding_system_internal): For a coding system of
21207 `charset' type, store a list of charset IDs in
21208 `charset_attr_charset_valids' element of coding attributes.
21209
212102008-02-01 Kenichi Handa <handa@m17n.org>
21211
21212 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21213 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21214 caller. Handle 2-byte and 3-byte charsets correctly.
21215 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21216 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21217 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21218 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21219 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21220 sequence.
21221 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21222 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21223 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21224 and alt&rule composition.
21225 (decode_coding_iso_2022): Handle composition correctly.
21226 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21227
21228 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21229 re-defining a charset. If the charset has :emacs-mule-id, setup
21230 emacs_mule_bytes.
21231 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21232
212332008-02-01 Kenichi Handa <handa@m17n.org>
21234
21235 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21236 (encode_coding_big5, encode_coding_charset): If coding requires safe
21237 encoding, produce a character specified by
21238 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21239
212402008-02-01 Dave Love <fx@gnu.org>
21241
21242 * xterm.c (XSetIMValues): Declare.
21243
21244 * process.c: Conditionally include sys/wait.h, pty.h.
21245
21246 * print.c (print_object): Fix print format for 64-bit systems.
21247
21248 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21249
21250 * buffer.c (emacs_strerror): Declare.
21251
21252 * fontset.c (Fclear_face_cache): Declare.
21253 (accumulate_font_info): Comment-out (unused).
21254 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21255 variables.
21256
21257 * character.h (string_escape_byte8): Declare.
21258
21259 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21260 unused vars.
21261 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21262 (Fmap_charset_chars): Doc fix.
21263
21264 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21265 (Fset_coding_system_priority, Fset_coding_system_priority)
21266 (Fdefine_coding_system_internal): Doc fix.
21267
212682008-02-01 Dave Love <fx@gnu.org>
21269
21270 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21271
212722008-02-01 Kenichi Handa <handa@m17n.org>
21273
21274 * character.c (string_escape_byte8): Make multibyte string with
21275 correct size.
21276
21277 * charset.c (Fmake_char): Delete unnecessary code.
21278
212792008-02-01 Kenichi Handa <handa@m17n.org>
21280
21281 * xfns.c (x_encode_text): Allocate coding.destination here, and
21282 call encode_coding_object with dst_object Qnil.
21283
21284 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21285 multibyte form correctly.
21286
21287 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21288 against Vfont_encoding_alist.
21289
21290 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21291 handling of charset list.
21292 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21293 (decode_coding_object): Move point to coding->dst_pos before
21294 calling post-read-conversion function.
21295 (encode_coding_object): Give correct arguments to
21296 pre-write-conversion. Ignore the return value of
21297 pre-write-conversion function. Pay attention to the case that
21298 pre-write-conversion changes the current buffer. If dst_object is
21299 Qt, even if coding->src_bytes is zero, allocate at least one byte
21300 to coding->destination.
21301
21302 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21303
21304 * charset.c (Fmake_char): Make it more backward compatible.
21305 (Fmap_charset_chars): Fix docstring.
21306
213072008-02-01 Dave Love <fx@gnu.org>
21308
21309 * coding.c: Doc fixes.
21310 (Fdefine_coding_system_alias): Use names, not symbols, in
21311 coding-system-alist.
21312
213132008-02-01 Kenichi Handa <handa@m17n.org>
21314
21315 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21316 of calling free_realized_face.
21317
213182008-02-01 Yong Lu <lyongu@asia-infonet.com>
21319
21320 * charset.c (read_hex): Don't treat SPC as a comment starter.
21321 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21322 (Fdecode_char): Fix typo.
21323
213242008-02-01 Kenichi Handa <handa@m17n.org>
21325
21326 * charset.h (struct charset): New member `code_space_mask'.
21327
21328 * coding.c (coding_set_source): Delete the local variable beg_byte.
21329 (encode_coding_charset, Fdefine_coding_system_internal):
21330 Delete the local variable charset.
21331 (Fdefine_coding_system_internal): Setup
21332 attrs[coding_attr_charset_valids] correctly.
21333
21334 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21335 member to check if CODE is valid or not.
21336 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21337 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21338 is within the range of charset->min_code and carset->max_code.
21339
213402008-02-01 Dave Love <fx@gnu.org>
21341
21342 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21343
21344 * dispextern.h (generate_ascii_font): Fix return type.
21345
21346 * xfaces.c (generate_ascii_font): Fix arg declaration.
21347
21348 * coding.c (coding_inherit_eol_type)
21349 (Fset_terminal_coding_system_internal)
21350 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21351
213522008-02-01 Kenichi Handa <handa@m17n.org>
21353
21354 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21355 multiple charsets correctly.
21356
213572008-02-01 Kenichi Handa <handa@m17n.org>
21358
21359 * search.c (boyer_moore): Fix handling of multibyte character
21360 translation.
21361
21362 * xdisp.c (display_mode_element): When the variable `elt' is
21363 changed, update `this' and `lisp_string'.
21364
213652008-02-01 Kenichi Handa <handa@m17n.org>
21366
21367 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21368
21369 * callproc.c (Fcall_process): Be sure to give the current buffer
21370 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21371
21372 * charset.c (struct charset_map_entries): New struct.
21373 (load_charset_map): Rename from parse_charset_map. New args
21374 entries and n_entries. Change caller.
21375 (load_charset_map_from_file): Rename from load_charset_map.
21376 Change caller. New arg control_flag. Call load_charset_map at
21377 the tail.
21378 (load_charset_map_from_vector): New function.
21379 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21380 (encode_char): If the charset is compact, change a character index
21381 to a code point.
21382
21383 * coding.c (coding_alloc_by_making_gap): Check the case that the
21384 source and destination are the same correctly.
21385 (decode_coding_raw_text): Set coding->consumed_char and
21386 coding->consumed to 0.
21387 (produce_chars): If coding->chars_at_source is nonzero, update
21388 coding->consumed_char and coding->consumed before calling
21389 alloc_destination.
21390 (Fdefine_coding_system_alias): Register ALIAS in
21391 Vcoding_system_alist.
21392 (syms_of_coding): Define `no-conversion' coding system at the tail.
21393
21394 * fileio.c (Finsert_file_contents): Set coding_system instead of
21395 val. If the current buffer is multibyte, always call
21396 decode_coding_gap.
21397
21398 * xfaces.c (try_font_list): Give higher priority to fontset's
21399 family than face's family.
21400
214012008-02-01 Kenichi Handa <handa@m17n.org>
21402
21403 * callproc.c (Fcall_process): Be sure to give the current buffer
21404 to decode_coding_c_string.
21405
21406 * xfaces.c (try_font_list): Give a family specified in a fontset
21407 higher priority than a family specified in a face.
21408
214092008-02-01 Kenichi Handa <handa@m17n.org>
21410
21411 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21412 Fix arguments to insert_from_buffer.
21413
21414 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21415
214162008-02-01 Kenichi Handa <handa@m17n.org>
21417
21418 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21419 (decode_coding_gap): Set coding->dst_multibyte correctly.
21420
214212008-02-01 Kenichi Handa <handa@m17n.org>
21422
21423 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21424 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21425 (encode_coding_utf_16): Substitute coding->default_char for
21426 non-Unicode characters.
21427 (decode_coding): Don't call record_insert here.
21428 (setup_coding_system): Initialize `surrogate' of
21429 coding->spec.utf_16 to 0.
21430 (EMIT_ONE_BYTE): Fix for multibyte case.
21431
21432 * insdel.c (insert_from_gap): Call record_insert.
21433
214342008-02-01 Kenichi Handa <handa@m17n.org>
21435
21436 * casefiddle.c (casify_region): Fix multibyte case.
21437
21438 * character.c (c_string_width): Add return type `int'.
21439 (char_string_with_unification): Delete arg ADVANCED.
21440
21441 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21442 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21443 (CHAR_STRING_ADVANCE): Make it do-while statement.
21444
21445 * chartab.c (sub_char_table_set_range): Optimize for the case
21446 DEPTH == 3. Add workaround code for a GCC optimization bug.
21447
21448 * charset.c (parse_charset_map): Remove an unused variable.
21449
21450 * coding.c: Delete unused variables.
21451
21452 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21453 earlier. If inserted is zero and the coding system doesn't
21454 require flushing, don't call decode_coding_gap.
21455
21456 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21457
214582008-02-01 Kenichi Handa <handa@m17n.org>
21459
21460 The following changes are for using Unicode as an internal
21461 character model, and use UTF-8 format for buffer/string
21462 representation.
21463
21464 * .gdbinit (xchartable): Adjust for the change of char table structure.
21465 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21466
21467 * Makefile.in (obj): Add character.o and chartab.o.
21468 (lisp, shortlisp): Remove utf-8.elc.
21469 (*.o): For many files, change dependency on charset.h to
21470 character.h, and add dependency on character.h.
21471 (character.o, chartab.o): New targets.
21472
21473 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21474 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21475 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21476 of "charset.h".
21477
21478 * dired.c, filelock.c: Include "character.h".
21479
21480 * alloc.c: Include "character.h" instead of "charset.h".
21481 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21482 (syms_of_alloc): Remove defsubr for Smake_char_table.
21483
21484 * buffer.c: Include "character.h" instead of "charset.h", don't
21485 include "coding.h".
21486 (Fset_buffer_multibyte): Adjust for UTF-8.
21487
21488 * buffer.h: EXFUN Fbuffer_live_p.
21489
21490 * callproc.c: Include "character.h" instead of "charset.h".
21491 (Fcall_process): Big change for the new code-conversion APIs.
21492
21493 * casetab.c: Include "character.h" instead of "charset.h".
21494 (set_canon, set_identity, shuffle): Adjust for the new
21495 map_char_table spec.
21496 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21497 accessing the char table structure.
21498
21499 * chartab.c: New file that implements char table.
21500
21501 * category.c: Include "character.h".
21502 (copy_category_entry): New function.
21503 (copy_category_table): Call map_char_table and copy_category_entry.
21504 (Fmake_category_table): Initialize all top-level slots.
21505 (char_category_set): New function.
21506 (modify_lower_category_set): Delete.
21507 (Fmodify_category_entry): Call char_table_ref_and_range.
21508
21509 * category.h (CATEGORY_SET): Just call char_category_set.
21510
21511 * ccl.c: Include "character.h".
21512 (Qccl, Qcclp): New variables.
21513 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21514 it's less than 256.
21515 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21516 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21517 and DST type.
21518 (ccl_driver): Change types of argument, adjust code accordingly.
21519 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21520 ccl_driver.
21521 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21522
21523 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21524 New members src_multibyte, dst_multibyte, consumed, and produced.
21525 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21526 (CODING_SPEC_CCL_PROGRAM): New macro.
21527 (ccl_driver): Update prototype.
21528 (Qccl, Qcclp, Fccl_program_p): Extern them.
21529 (CHECK_CCL_PROGRAM): New macro.
21530
21531 * character.c, character.h, chartab.c: New files.
21532
21533 * charset.c: Mostly re-written. Move character and multibyte sequence
21534 handling codes to character.c.
21535
21536 * charset.h: Mostly re-written. Move character and multibyte sequence
21537 handling codes to character.h.
21538
21539 * coding.c, coding.h: Mostly re-written.
21540
21541 * composite.c: Include "character.h" instead of "charset.h".
21542 (CHAR_WIDTH): Move to character.h.
21543 (HASH_KEY, HASH_VALUE): Delete.
21544
21545 * composite.h (enum composition_method): Change order of enumeration
21546 symbols.
21547
21548 * data.c: Include "character.h" instead of "charset.h".
21549 (Faref): Call CHAR_TABLE_REF for a char table.
21550 (Faset): Call CHAR_TABLE_SET for a char table.
21551
21552 * dispextern.h (free_realized_face, check_face_attribytes)
21553 (generate_ascii_font): Extern them.
21554 (free_realized_multibyte_face): Delete extern.
21555
21556 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
21557 table structure.
21558
21559 * editfns.c: Include "character.h" instead of "charset.h".
21560 (Fchar_to_string): Always call CHAR_STRING.
21561
21562 * emacs.c (main): Call init_charset_once, init_charset,
21563 syms_of_chartab, and syms_of_character.
21564
21565 * fileio.c: Include "character.h" instead of "charset.h".
21566 (Finsert_file_contents): Big change for the new code-conversion API.
21567 (choose_write_coding_system, Fwrite_region): Likewise.
21568 (build_annotations_2): Delete.
21569 (e_write): Big change for the new code-conversion API.
21570
21571 * fns.c: Include "character.h" instead of "charset.h".
21572 (copy_sub_char_table): Move to chartab.c.
21573 (Fcopy_sequence): Call copy_char_table for a char table.
21574 (concat): Delete codes calling count_multibyte.
21575 (string_char_to_byte, string_byte_to_char): Adjust for the new
21576 multibyte form.
21577 (internal_equal): Adjust for the change of char table structure.
21578 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
21579 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
21580 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
21581 (char_table_translate, optimize_sub_char_table)
21582 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
21583 chartab.c.
21584 (char_table_ref_and_index): Delete.
21585 (HASH_KEY, HASH_VALUE): Move to lisp.h.
21586 (Fmd5): Call preferred_coding_system instead of accessing
21587 Vcoding_category_list. Adjust for the new code-conversion API.
21588 (syms_of_fns): Move defsubr for char table related functions to
21589 chartab.c.
21590
21591 * fontset.c: Mostly re-written.
21592
21593 * fontset.h (struct font_info): Change type of the member encoding_type.
21594 (enum FONT_SPEC_INDEX): New enum.
21595 (fontset_font_pattern, fs_load_font): Update prototype.
21596 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21597
21598 * indent.c: Include "character.h" instead of "charset.h".
21599 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21600
21601 * insdel.c: Include "character.h" instead of "charset.h".
21602 (copy_text): Don't refer to Vnonascii_translation_table.
21603 (insert_from_gap): New function.
21604
21605 * keyboard.c: Include "character.h" instead of "charset.h".
21606 (command_loop_1): Never call direct_output_forward_char before
21607 a non-ASCII character.
21608 (read_char): If Vkeyboard_translate_table is a char table, always
21609 translate a character.
21610
21611 * keymap.c: Include "character.h".
21612 (store_in_keymap): Handle the case that IDX is a cons.
21613 (Fdefine_key): Handle the case that KEY is a cons and the car part
21614 is also a cons (range).
21615 (push_key_description): Adjust for the new character code.
21616 (describe_vector): Call describe_char_table for a char table.
21617 (describe_char_table): New function.
21618
21619 * keymap.h (describe_char_table): Extern it.
21620
21621 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21622 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21623 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21624 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21625 Delete.
21626 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21627 structure.
21628 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21629 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21630 (CHARTAB_SIZE_BITS_3): New macros.
21631 (chartab_size): Extern it.
21632 (struct Lisp_Char_Table): Re-design.
21633 (struct Lisp_Sub_Char_Table): New structure.
21634 (HASH_KEY, HASH_VALUE): Move from fns.c.
21635 (CHARACTERBITS): Define as 22.
21636 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21637 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21638 (GC_SUB_CHAR_TABLE_P): New macro.
21639 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21640 (code_convert_string_norecord): Deleted extern.
21641 (init_character_once, syms_of_character, init_charset)
21642 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21643
21644 * lread.c: Include "character.h".
21645 (read_multibyte): New arg NBYTES.
21646 (read_escape): Change the meaning of returned *BYTEREP.
21647 (to_multibyte): Delete.
21648 (read1): Adjust the handling of char table and string.
21649
21650 * print.c: Include "character.h" instead of "charset.h".
21651 (print_string): Convert 8-bit raw bytes to octal form by
21652 string_escape_byte8.
21653 (print_object): Adjust for the new multibyte form. Print 8-bit
21654 raw bytes always in octal form. Handle sub char table correctly.
21655
21656 * process.c: Include "character.h" instead of "charset.h".
21657 (read_process_output, send_process): Adjust for the new
21658 code-conversion API.
21659
21660 * puresize.h (BASE_PURESIZE): Increase.
21661
21662 * regex.c: Include "character.h" instead of "charset.h".
21663 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21664 (regex_compile): Accept a range whose starting and ending
21665 character have different leading bytes.
21666 (analyse_first): Adjust for the above change.
21667
21668 * search.c: Include "character.h" instead of "charset.h".
21669 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21670 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21671
21672 * syntax.c: Include "character.h" instead of "charset.h".
21673 (syntax_parent_lookup): Delete.
21674 (Fmodify_syntax_entry): Accept a cons as CHAR.
21675 (skip_chars): Adjust for the new multibyte form.
21676 (init_syntax_once): Call char_table_set_range instead of directly
21677 accessing the structure of a char table.
21678
21679 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21680 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21681 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21682 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21683
21684 * term.c: Include "buffer.h" and "character.h".
21685 (encode_terminal_code, write_glyphs): Adjust for the new
21686 code-conversion API.
21687 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21688
21689 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
21690
21691 * xdisp.c: Include "character.h".
21692 (get_next_display_element): Adjust for the new multibyte form.
21693 (disp_char_vector): Adjust for the new char table structure.
21694 (decode_mode_spec_coding): Adjust for the new structure of
21695 coding system.
21696 (decode_mode_spec): Adjust for the new code-conversion API.
21697
21698 * xfaces.c: Include "character.h" instead of "charset.h".
21699 (load_face_font): Adjust for the change of choose_face_font and
21700 FS_LOAD_FONT.
21701 (generate_ascii_font): New function.
21702 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
21703 (set_font_frame_param): Adjust for the change of choose_face_font.
21704 (free_realized_face): Make it public.
21705 (free_realized_faces_for_fontset): Rename from
21706 free_realized_multibyte_face. Free also faces realized for ASCII.
21707 (choose_face_font): Change arguments. Adjust for the change of
21708 fontset_font_pattern and FS_LOAD_FONT.
21709
21710 * xfns.c: Include "character.h".
21711 (x_encode_text): Adjust for the new code-conversion API.
21712
21713 * xselect.c: Don't include "charset.h".
21714 (selection_data_to_lisp_data): Adjust for the new code conversion API.
21715
21716 * xterm.c: Include "character.h".
21717 (x_encode_char): New argument CHARSET. Change caller.
21718 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
21719 Call ENCODE_CHAR instead of SPLIT_CHAR.
21720 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
21721 CHAR_WIDTH instead of CHARSET_WIDTH.
21722 (XTread_socket): Adjust for the new code-conversion API.
21723 (x_new_font): Adjust for the change of FS_LOAD_FONT.
21724 (x_load_font): Adjust for the change of struct font.
21725
217262008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21727
21728 * xfaces.c (face_at_buffer_position): Remove unused vars.
21729
217302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21731
21732 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
21733 Fix overflow checking.
21734
217352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21736
21737 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
21738 Cancel previous change.
21739
217402008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21741
21742 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
21743 ccl->eight_bit_control. Fix check for buffer overflow.
21744 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
21745 (ccl_driver): Initialize extra_bytes to 0.
21746
217472008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21748
21749 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
21750 return it ORed with ctrl_modifier.
21751
217522008-01-29 Miles Bader <miles@gnu.org>
21753
21754 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
21755
217562008-01-28 Jason Rumney <jasonr@gnu.org>
21757
21758 * w32.c (stat): Don't double check for networked drive.
21759
217602008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
21761
21762 * window.c (run_window_configuration_change_hook): New function.
21763 Code extracted from set_window_buffer. Set the selected frame.
21764 (set_window_buffer): Use it.
21765 * window.h (run_window_configuration_change_hook): Declare.
21766 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
21767
21768 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
21769
217702008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
21771
21772 * Makefile.in: Remove references to unused macros.
21773
217742008-01-26 Eli Zaretskii <eliz@gnu.org>
21775
21776 * w32.c (g_b_init_get_sid_sub_authority)
21777 (g_b_init_get_sid_sub_authority_count): New static variables.
21778 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
21779 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
21780 (init_user_info): Use them to retrieve uid and gid.
21781 Use 500/513, the Windows defaults, as Administrator's uid/gid.
21782 (fstat): Use pw_uid and pw_gid from the_passwd structure for
21783 st_uid and st_gid of the file.
21784
217852008-01-26 Jason Rumney <jasonr@gnu.org>
21786
21787 * w32.c (logon_network_drive): New function.
21788 (stat): Use it.
21789
217902008-01-26 Chong Yidong <cyd@stupidchicken.com>
21791
21792 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
21793 invisible text covered with an ellipsis.
21794
217952008-01-25 Richard Stallman <rms@gnu.org>
21796
21797 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
21798 jump back to beginning. Move some other initializations after that.
21799 (Qwindow_text_change_functions, Vwindow_text_change_functions):
21800 New variables.
21801 (syms_of_xdisp): Init them.
21802
21803 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
21804
21805 * buffer.c (reset_buffer_local_variables):
21806 Implement `permanent-local-hook'.
21807 (Qpermanent_local_hook): New variable.
21808 (syms_of_buffer): Init and staticpro it.
21809
218102008-01-25 Michael Albinus <michael.albinus@gmx.de>
21811
21812 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
21813
218142008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
21815
21816 * fns.c (Fclrhash): Return TABLE.
21817
218182008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21819
21820 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
21821 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
21822 is set even without positional changes.
21823 (x_scroll_bar_clear): Set bar->redraw_needed_p.
21824
21825 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
21826
218272008-01-23 Jason Rumney <jasonr@gnu.org>
21828
21829 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
21830
21831 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
21832 the unicode range available in MULE by locale-coding-system.
21833 Improve dbcs lead byte detection. Set event timestamp and modifiers
21834 earlier.
21835
218362008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21837
21838 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
21839 [MAC_OSX] (init_mac_osx_environment): Initialize it.
21840 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
21841 when used on child processes.
21842
218432008-01-21 Michael Albinus <michael.albinus@gmx.de>
21844
21845 * dbusbind.c (Fdbus_method_return_internal): Rename from
21846 Fdbus_method_return.
21847 (Fdbus_unregister_object): Move to dbus.el.
21848 (Fdbus_call_method, Fdbus_method_return_internal)
21849 (Fdbus_send_signal): Improve debug messages.
21850
218512008-01-20 Martin Rudalics <rudalics@gmx.at>
21852
21853 * undo.c (undo_inhibit_record_point): New variable.
21854 (syms_of_undo): Initialize it.
21855 (record_point): Don't record point when undo_inhibit_record_point
21856 is set.
21857
218582008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21859
21860 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21861
21862 * xdisp.c (Qauto_hscroll_mode): New var.
21863 (syms_of_xdisp): Initialize it.
21864 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21865 window's buffer.
21866 (hscroll_windows): Don't check automatic_hscrolling_p here.
21867
21868 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21869 vscroll if we're setting window-buffer to the value it already has.
21870
218712008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21872
21873 * m/intel386.h: Remove references to XENIX.
21874
218752008-01-17 Andreas Schwab <schwab@suse.de>
21876
21877 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21878 instead of HAVE_X86_64_LIB64_DIR.
21879 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21880
218812008-01-17 Glenn Morris <rgm@gnu.org>
21882
21883 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21884 to HAVE_X86_64_LIB64_DIR.
21885
218862008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21887
21888 * s/irix3-3.h:
21889 * s/irix4-0.h:
21890 * s/386-ix.h:
21891 * s/domain.h:
21892 * s/hpux9-x11r4.h:
21893 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21894
21895 * sysdep.c: Remove code containing references to symbols defined
21896 by unsupported systems.
21897
218982008-01-16 Glenn Morris <rgm@gnu.org>
21899
21900 * coding.c (select-safe-coding-system-function): Doc fix.
21901
219022008-01-15 Glenn Morris <rgm@gnu.org>
21903
21904 * config.in: Revert 2008-01-13 change: this is a generated file.
21905
219062008-01-13 Tom Tromey <tromey@redhat.com>
21907
21908 * lisp.h: Fix typo.
21909
219102008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21911
21912 * m/sequent-ptx.h:
21913 * m/sequent.h:
21914 * s/ptx.h:
21915 * s/ptx4-2.h:
21916 * s/ptx4.h: Remove files for systems no longer supported.
21917
21918 * callproc.c (Fcall_process): Fix previous change.
21919
219202008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21921
21922 * unexsunos4.c: Remove file, system not supported anymore.
21923
21924 * m/mips.h:
21925 * m/intel386.h:
21926 * callproc.c:
21927 * config.in:
21928 * ecrt0.c:
21929 * emacs.c:
21930 * fileio.c:
21931 * frame.c:
21932 * getpagesize.h:
21933 * keyboard.c:
21934 * lread.c:
21935 * process.c:
21936 * puresize.h:
21937 * sysdep.c:
21938 * systty.h:
21939 * syswait.h:
21940 * unexec.c:
21941 * xdisp.c:
21942 * alloc.c: Remove code containing references to symbols defined by
21943 unsupported systems.
21944
219452008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21946
21947 * coding.c (detect_coding_mask): Fix previous change.
21948
219492008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21950
21951 * coding.c (detect_coding_iso2022): New arg
21952 latin_extra_code_state. Allow Latin extra codes only
21953 when *latin_extra_code_state is nonzero.
21954 (detect_coding_mask): If there is a NULL byte, detect the encoding
21955 as UTF-16 or binary. If Latin extra codes exist, detect the
21956 encoding as ISO-2022 only when there's no other proper encoding is
21957 found.
21958
219592008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21960
21961 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21962 #ifdef MAC_OS.
21963
219642008-01-08 Richard Stallman <rms@gnu.org>
21965
21966 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21967
219682008-01-06 Nick Roberts <nickrob@snap.net.nz>
21969
21970 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21971 menu bar in parentheses.
21972
219732008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21974
21975 * m/7300.h:
21976 * m/acorn.h:
21977 * m/alliant-2800.h:
21978 * m/alliant.h:
21979 * m/alliant1.h:
21980 * m/alliant4.h:
21981 * m/altos.h:
21982 * m/amdahl.h:
21983 * m/apollo.h:
21984 * m/att3b.h:
21985 * m/aviion-intel.h:
21986 * m/aviion.h:
21987 * m/celerity.h:
21988 * m/clipper.h:
21989 * m/cnvrgnt.h:
21990 * m/convex.h:
21991 * m/cydra5.h:
21992 * m/delta88k.h:
21993 * m/dpx2.h:
21994 * m/dual.h:
21995 * m/elxsi.h:
21996 * m/f301.h:
21997 * m/gould-np1.h:
21998 * m/gould.h:
21999 * m/i860.h:
22000 * m/ibmps2-aix.h:
22001 * m/ibmrt-aix.h:
22002 * m/ibmrt.h:
22003 * m/irist.h:
22004 * m/is386.h:
22005 * m/isi-ov.h:
22006 * m/mega68.h:
22007 * m/mg1.h:
22008 * m/news-r6.h:
22009 * m/news-risc.h:
22010 * m/news.h:
22011 * m/nh3000.h:
22012 * m/nh4000.h:
22013 * m/ns16000.h:
22014 * m/ns32000.h:
22015 * m/nu.h:
22016 * m/orion.h:
22017 * m/orion105.h:
22018 * m/paragon.h:
22019 * m/pfa50.h:
22020 * m/plexus.h:
22021 * m/pyramid.h:
22022 * m/pyrmips.h:
22023 * m/sh3el.h:
22024 * m/sps7.h:
22025 * m/sr2k.h:
22026 * m/stride.h:
22027 * m/sun1.h:
22028 * m/sun2.h:
22029 * m/sun3-68881.h:
22030 * m/sun3-fpa.h:
22031 * m/sun3-soft.h:
22032 * m/sun3.h:
22033 * m/sun386.h:
22034 * m/symmetry.h:
22035 * m/tad68k.h:
22036 * m/tahoe.h:
22037 * m/targon31.h:
22038 * m/tek4300.h:
22039 * m/tekxd88.h:
22040 * m/tower32.h:
22041 * m/tower32v3.h:
22042 * m/ustation.h:
22043 * m/wicat.h:
22044 * m/xps100.h:
22045 * s/cxux.h:
22046 * s/cxux7.h:
22047 * s/dgux.h:
22048 * s/dgux4.h:
22049 * s/dgux5-4-3.h:
22050 * s/dgux5-4r2.h:
22051 * s/esix.h:
22052 * s/esix5r4.h:
22053 * s/hiuxmpp.h:
22054 * s/hiuxwe2.h:
22055 * s/iris3-5.h:
22056 * s/iris3-6.h:
22057 * s/isc2-2.h:
22058 * s/isc3-0.h:
22059 * s/isc4-0.h:
22060 * s/isc4-1.h:
22061 * s/newsos5.h:
22062 * s/newsos6.h:
22063 * s/osf1.h:
22064 * s/osf5-0.h:
22065 * s/riscix1-1.h:
22066 * s/riscix12.h:
22067 * s/sco4.h:
22068 * s/sco5.h:
22069 * s/sunos4-0.h:
22070 * s/sunos4-1.h:
22071 * s/sunos413.h:
22072 * s/sunos4shr.h:
22073 * s/umax.h:
22074 * s/unipl5-2.h:
22075 * s/xenix.h:
22076 * cxux-crt0.s:
22077 * unexapollo.c:
22078 * unexconvex.c:
22079 * unexenix.c:
22080 * unexsni.c: Remove files for systems no longer supported.
22081
22082 * m/intel386.h: Remove references to unsupported systems.
22083
22084 * w32.c (get_emacs_configuration): Remove reference to i860.
22085
22086 * sysdep.c: Remove dead code.
22087
220882008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22089
22090 * s/rtu.h:
22091 * m/masscomp.h: Remove files. Platform is obsolete.
22092
220932008-01-04 Michael Albinus <michael.albinus@gmx.de>
22094
22095 * dbusbind.c (Fdbus_method_return): New function.
22096 (xd_read_message): Add the serial number to the event.
22097 (Fdbus_register_method): Activate the function.
22098
220992008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22100
22101 * keyboard.c (read_key_sequence): Fix typo.
22102
221032008-01-03 Michael Albinus <michael.albinus@gmx.de>
22104
22105 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22106 (xd_signature, xd_append_arg): Handle element type detection for
22107 empty arrays.
22108 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22109 SDATA () calls; this must be solved more general.
22110 (Fdbus_register_signal): Use SBYTES instead of strlen.
22111
221122008-01-03 Magnus Henoch <magnus@zemdatav>
22113
22114 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22115 unsigned int for byte values (necessary for big-endian platform).
22116 (Fdbus_call_method): Handle the case of no returned arguments.
22117
221182007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22119
22120 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22121
221222007-12-31 Magnus Henoch <mange@freemail.hu>
22123
22124 * dbusbind.c (xd_signature): Signature of variant is just "v".
22125
221262007-12-30 Michael Albinus <michael.albinus@gmx.de>
22127
22128 * dbusbind.c: Fix several errors and compiler warnings.
22129 Reported by Tom Tromey <tromey@redhat.com>.
22130 (XD_ERROR, XD_DEBUG_MESSAGE)
22131 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22132 (xd_append_arg): Part for basic D-Bus types rewritten.
22133 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22134 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22135 appropriate.
22136 (xd_read_message): Return Qnil. Don't signal an error; it is not
22137 useful during event reading.
22138 (Fdbus_register_signal): Signal an error if the check for
22139 FUNCTIONP fails.
22140 (Fdbus_register_method): New function. The implementation is not
22141 complete, the call of the function signals an error therefore.
22142 (Fdbus_unregister_object): New function, renamed from
22143 Fdbus_unregister_signal. The initial check signals an error, if
22144 the object is not well formed.
22145
221462007-12-30 Richard Stallman <rms@gnu.org>
22147
22148 * textprop.c (get_char_property_and_overlay):
22149 Signal error if POSITION is out of range in a buffer.
22150
221512007-12-29 Martin Rudalics <rudalics@gmx.at>
22152
22153 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22154 because the original parameters are in pure storage now.
22155
221562007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22157
22158 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22159
221602007-12-22 Eli Zaretskii <eliz@gnu.org>
22161
22162 * callint.c (syms_of_callint) <command-history>: Add reference to
22163 history-length in the doc string.
22164
221652007-12-17 Jason Rumney <jasonr@gnu.org>
22166
22167 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22168 before passing as wParam.
22169
221702007-12-22 Michael Albinus <michael.albinus@gmx.de>
22171
22172 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22173 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22174 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22175 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22176 as number.
22177 (Fdbus_call_method): Fix docstring.
22178
221792007-12-21 Michael Albinus <michael.albinus@gmx.de>
22180
22181 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22182 New macros.
22183 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22184 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22185 Simplify.
22186 (xd_signature): New function.
22187 (xd_append_arg): Compute also signatures. Major rewrite.
22188 (xd_retrieve_arg): Make debug messages friendly.
22189 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22190 Check for signatures of arguments.
22191
221922007-12-19 Michael Albinus <michael.albinus@gmx.de>
22193
22194 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22195 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22196 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22197 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22198 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22199 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22200 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22201 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22202 (xd_retrieve_value): Remove. Functionality included in ...
22203 (xd_append_arg): New function.
22204 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22205
222062007-12-16 Michael Albinus <michael.albinus@gmx.de>
22207
22208 * dbusbind.c (top): Include <stdio.h>.
22209 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22210 dbus_message_new_method_call and dbus_message_new_signal.
22211 (Fdbus_register_signal): Rename unique_name to uname.
22212 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22213 non-existing unique name. Fix typos in matching rule. Return an
22214 object which is useful in Fdbus_unregister_signal.
22215 (Fdbus_unregister_signal): Reimplementation, in order to remove
22216 only the corresponding entry.
22217 (Vdbus_registered_functions_table): Change the order of entries.
22218 Apply these changes in xd_read_message and Fdbus_register_signal.
22219
222202007-12-16 Andreas Schwab <schwab@suse.de>
22221
22222 * fileio.c (Finsert_file_contents): Fix overflow check to not
22223 depend on undefined integer overflow.
22224
222252007-12-14 Jason Rumney <jasonr@gnu.org>
22226
22227 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22228 for characters above 127.
22229
222302007-12-13 Jason Rumney <jasonr@gnu.org>
22231
22232 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22233 before dereferencing array.
22234 (lookup_vk_code): Remove zero comparison.
22235
222362007-12-14 Michael Albinus <michael.albinus@gmx.de>
22237
22238 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22239 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22240 Use `unsigned int' instead of `uint'.
22241 (xd_read_message, Fdbus_register_signal): Split expressions into
22242 multiple lines before operators "&&" and "||", according to the
22243 GNU Coding Standards.
22244
222452007-12-14 Eli Zaretskii <eliz@gnu.org>
22246
22247 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22248
222492007-12-12 Juri Linkov <juri@jurta.org>
22250
22251 * buffer.c (Frename_buffer): In interactive spec replace
22252 `read-buffer' with `read-string' that uses `buffer-name-history'
22253 as history, and the current buffer's name as default.
22254
222552007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22256
22257 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22258 manipulating the backtrace manually.
22259 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22260 (struct backtrace, backtrace_list): Remove.
22261 (command_loop_1): Remove dead var `no_direct'.
22262
22263 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22264 preserve non-built-in buffer-local variables.
22265 (Fkill_all_local_variables): Don't re-create&re-set permanent
22266 buffer-local variables.
22267
222682007-12-09 Juri Linkov <juri@jurta.org>
22269
22270 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22271 Lisp code that uses `read-buffer' with current buffer as default.
22272
222732007-12-08 Michael Albinus <michael.albinus@gmx.de>
22274
22275 * dbusbind.c (xd_read_message): Generate an event for every
22276 registered handler. There might be several handlers registered
22277 for the same signal.
22278 (Fdbus_register_signal): Don't overwrite a registration for the
22279 same signal. Add a new registration if handlers are different.
22280 (Vdbus_registered_functions_table): Rework doc string.
22281
222822007-12-07 Michael Albinus <michael.albinus@gmx.de>
22283
22284 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22285 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22286 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22287 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22288 Unify argument lists.
22289 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22290 arguments and hash table keys. Use unique name for service.
22291 (Fdbus_unregister_signal): Remove checks.
22292 (Vdbus_registered_functions_table): Fix doc string.
22293
222942007-12-05 Magnus Henoch <mange@freemail.hu>
22295
22296 * process.c (make_process): Initialize pty_flag to 0.
22297
222982007-12-05 Jason Rumney <jasonr@gnu.org>
22299
22300 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22301 specified XBMs.
22302
223032007-12-05 Richard Stallman <rms@gnu.org>
22304
22305 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22306
223072007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22308
22309 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22310 New variable.
22311 (mac_try_close_socket) [MAC_OSX]: New function.
22312 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22313 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22314
22315 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22316 Use mac_try_close_socket.
22317
223182007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22319
22320 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22321 reloc_base.
22322 (copy_dysymtab): Compute relocation base here.
22323 (rebase_reloc_address) [__ppc64__]: New function.
22324 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22325 changed.
22326
223272007-12-05 Jason Rumney <jasonr@gnu.org>
22328
22329 * w32proc.c (sys_spawnve): Quote args with wildcards.
22330
223312007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22332
22333 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22334 __objc_* sections.
22335 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22336
223372007-12-05 Michael Albinus <michael.albinus@gmx.de>
22338
22339 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22340 Move check for Vdbus_registered_functions_table to
22341 xd_read_queued_messages.
22342 (xd_read_queued_messages): Protect xd_read_message calls by
22343 internal_condition_case_1.
22344
223452007-12-04 Michael Albinus <michael.albinus@gmx.de>
22346
22347 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22348 Qdbus_system_bus and Qdbus_session_bus, respectively.
22349 (Vdbus_intern_symbols): Remove.
22350 (Vdbus_registered_functions_table): New hash table.
22351 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22352 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22353 Rewrite in order to manage registered functions by hash table
22354 Vdbus_registered_functions_table.
22355
223562007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22357
22358 * xterm.c: Update URL to Window Manager Specification in comment.
22359
223602007-12-02 Michael Albinus <michael.albinus@gmx.de>
22361
22362 * config.in (HAVE_DBUS): Add.
22363
22364 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22365 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22366 (obj): Add $(DBUS_OBJ).
22367 (LIBES): Add $(DBUS_LIBS).
22368 (dbusbind.o): New target.
22369
22370 * dbusbind.c: New file.
22371
22372 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22373
22374 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22375 (Qdbus_event): New Lisp symbol.
22376 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22377 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 22378 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
22379
22380 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22381
223822007-12-01 Richard Stallman <rms@gnu.org>
22383
22384 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22385
223862007-11-30 Jason Rumney <jasonr@gnu.org>
22387
22388 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22389 (w32con_reset_terminal_modes): Clear screen buffer.
22390 (w32_face_attributes): Don't use color indexes that are out of range.
22391 Only reverse the default colors.
22392
22393 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22394 WINDOWSNT.
22395
22396 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22397
223982007-11-29 Jason Rumney <jasonr@gnu.org>
22399
22400 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22401 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22402 if the terminal colors are initialized.
22403 (unspecified_fg, unspecified_bg): Remove unused declarations.
22404
224052007-11-29 Andreas Schwab <schwab@suse.de>
22406
22407 * keyboard.c (apply_modifiers): Fix typo.
22408
224092007-11-29 Richard Stallman <rms@gnu.org>
22410
22411 * keymap.c (Fcurrent_local_map): Doc fix.
22412
224132007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22414
22415 * s/gnu-kfreebsd.h: New file.
22416
224172007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22418
22419 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22420 Don't cast redundantly.
22421
22422 * keyboard.c (KEY_TO_CHAR): New macro.
22423 (parse_modifiers, apply_modifiers): Accept integer arguments.
22424 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22425 for chars and symbol keys.
22426 After doing such remapping, apply function-key-map again.
22427
224282007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22429
22430 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22431 compiled anymore.
22432
224332007-11-26 Andreas Schwab <schwab@suse.de>
22434
22435 * process.c (list_processes_1): Fix indentation level of the
22436 command column.
22437
224382007-11-23 Andreas Schwab <schwab@suse.de>
22439
22440 * editfns.c (Fformat): Handle %c specially since it requires the
22441 argument to be of type int.
22442
224432007-11-23 Markus Triska <markus.triska@gmx.at>
22444
22445 * emacs.c (main): Call init_editfns before init_process, since
22446 init_process sets Vprocess_connection_type depending on OS release.
22447
224482007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22449
22450 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22451 (find_symbol_value): Use do_symval_forwarding.
22452
22453 * data.c (set_internal): Set the value in the `cons-cell' (for
22454 Buffer_Local_values) not only for frame-local variables.
22455
224562007-11-22 Andreas Schwab <schwab@suse.de>
22457
22458 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22459 values to sprintf.
22460 * keymap.c (Fsingle_key_description): Likewise.
22461 * print.c (print_object): Likewise.
22462
224632007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22464
22465 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22466 file for image is nil.
22467
224682007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22469
22470 * term.c: Include stdarg.h.
22471 (fatal): Implement using varargs.
22472 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22473
224742007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22475
22476 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22477 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22478 Update call to buffer_slot_type_mismatch.
22479 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22480 (buffer_slot_type_mismatch): Update.
22481 * buffer.c (buffer_local_types): Remove.
22482 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22483 (defvar_per_buffer): Set the type in the buffer_objfwd.
22484
224852007-11-21 Jason Rumney <jasonr@gnu.org>
22486
22487 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22488 CreateFileMapping returns NULL on failure.
22489
224902007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22491
22492 * search.c (Fset_match_data): Remove the `evaporate' feature.
22493 (unwind_set_match_data): Don't use the `evaporate' feature.
22494
224952007-11-21 Jason Rumney <jasonr@gnu.org>
22496
22497 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22498
22499 * w32console.c (w32con_write_glyphs): Remove unused variables.
22500
225012007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22502
22503 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22504
22505 * s/darwin.h (MULTI_KBOARD): Remove.
22506
22507 * macfns.c (x_create_tip_frame, Fx_create_frame)
22508 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22509
225102007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22511
22512 * buffer.c (Fbuffer_local_value): Remove redundant test.
22513 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22514 than in `current-buffer' to match the comment.
22515 Do the swap using swap_in_global_binding.
22516
22517 * data.c (store_symval_forwarding, set_internal):
22518 * eval.c (specbind): Remove dead code.
22519
22520 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22521 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22522 Since we do not want to see internal Lisp_*fwd objects here.
22523
225242007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22525
22526 * sysdep.c (init_system_name): Use getaddrinfo if available.
22527
22528 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22529 (x_scroll_bar_note_movement): start, end, with, height in struct
22530 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22531
225322007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22533
22534 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22535
225362007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22537
22538 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22539 This undoes Richard's change of 14-Oct-2002.
22540
22541 * alloc.c (allocate_other_vector):
22542 * lisp.h (allocate_other_vector): Remove.
22543
22544 * window.c (struct save_window_data): Move non-lisp data to the end
22545 and make it `int' rather than Lisp_Object.
22546 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
22547 Done wrap/unwrap integer values.
22548 (Fset_window_configuration, compare_window_configurations):
22549 Update use of fields to their new types.
22550
22551 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
22552 Turn integer fields into `int'. Merge x_window_low and x_window_high.
22553 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
22554 (SET_SCROLL_BAR_X_WINDOW): Remove.
22555 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
22556 Access the new x_window field directly.
22557 * xterm.c (x_scroll_bar_create): Use a pseudovector.
22558 Don't wrap/unwrap integers into Lisp_Objects.
22559 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
22560 (x_scroll_bar_report_motion):
22561 Don't wrap/unwrap integers into Lisp_Objects.
22562 (x_term_init): Use SDATA.
22563 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
22564 (x_scroll_bar_set_handle, x_scroll_bar_remove)
22565 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
22566 (x_scroll_bar_report_motion, x_scroll_bar_clear):
22567 * xfns.c (x_set_background_color):
22568 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
22569 Access the new x_window field directly.
22570
22571 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
22572 (allocate_pseudovector): Make non-static.
22573
22574 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
22575 (allocate_pseudovector): Declare.
22576 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
22577
225782007-11-15 Andreas Schwab <schwab@suse.de>
22579
22580 * editfns.c (Fformat): Correctly format EMACS_INT values.
22581 Also take precision into account when formatting an integer.
22582
22583 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
22584
225852007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
22586
22587 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22588 (syms_of_keyboard): Defsubr it.
22589
22590 * data.c (swap_in_global_binding): Fix longstanding bug where
22591 store_symval_forwarding was not called with the right second argument,
22592 thus causing objfwd-ing from being dropped.
22593
225942007-11-14 Juanma Barranquero <lekktu@gmail.com>
22595
22596 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
22597 (Fx_display_pixel_height, Fx_display_planes)
22598 (Fx_display_color_cells, Fx_server_max_request_size)
22599 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22600 (Fx_display_visual_class, Fx_display_save_under):
22601 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
22602 (Fx_display_pixel_height, Fx_display_planes)
22603 (Fx_display_color_cells, Fx_server_max_request_size)
22604 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
22605 (Fx_display_mm_height, Fx_display_mm_width)
22606 (Fx_display_backing_store, Fx_display_visual_class)
22607 (Fw32_select_font, Fx_display_save_under):
22608 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
22609 (Fx_display_pixel_height, Fx_display_planes)
22610 (Fx_display_color_cells, Fx_server_max_request_size)
22611 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22612 (Fx_display_save_under): Fix typos in docstrings.
22613
226142007-11-14 Juanma Barranquero <lekktu@gmail.com>
22615
22616 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22617 corresponding to deleted entries; they are an implementation detail.
22618 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22619 Remove variables.
22620 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22621 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22622 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22623 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22624 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22625 (Fw32_define_rgb_color, Fw32_load_color_file)
22626 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22627 Fix typos in docstrings.
22628 (Fx_server_version): Reflow docstring.
22629 (Fw32_shell_execute): Doc fixes.
22630
226312007-11-13 Juanma Barranquero <lekktu@gmail.com>
22632
22633 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22634 if w32_parse_hot_key returned nil.
22635
226362007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22637
22638 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22639
226402007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 22641
aac0c6e3
MR
22642 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22643
22644 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22645
22646 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22647 Remove W32_SCROLL_BAR_CLICK_EVENT.
22648
22649 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22650 Add MULTIMEDIA_KEY_EVENT.
22651
22652 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22653 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22654 (make_lispy_event) [WINDOWSNT]: Use it to translate
22655 MULTIMEDIA_KEY_EVENT.
22656
22657 * w32term.h (WM_APPCOMMAND): Define if not already.
22658 (GET_APPCOMMAND_LPARAM): Likewise.
22659
22660 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22661 WM_APPCOMMAND.
22662
22663 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22664 (syms_of_w32fns): Export and initialize it.
22665 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22666
226672007-11-09 Chong Yidong <cyd@stupidchicken.com>
22668
22669 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22670 twice.
22671
22672 * xdisp.c (handle_face_prop): Fix last change.
22673
226742007-11-09 Richard Stallman <rms@gnu.org>
22675
22676 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22677 not just for after-strings and before-strings.
22678 Call face_for_overlay_string and pass the overlay to it.
22679 (handle_display_prop): Determine whether property came from an overlay.
22680 Pass OVERLAY arg to handle_single_display_spec.
22681 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22682 (load_overlay_strings): Fill in it->string_overlays.
22683 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22684
22685 * xfaces.c (face_for_overlay_string): Function renamed from
22686 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22687
22688 * dispextern.h (struct it): New elt string_overlays.
22689 New elt from_overlay, also in stack.
22690 Rearrange a few elements.
22691 (face_for_overlay_string): Decl renamed from
22692 face_at_buffer_position_no_overlays, and add argument.
22693
226942007-11-09 Richard Stallman <rms@gnu.org>
22695
22696 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
22697 to get the base face for an overlay string.
22698
22699 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
22700
22701 * xfaces.c (face_at_buffer_position_no_overlays): New function.
22702
22703 * xdisp.c (handle_stop): Move some code out of loop.
22704
227052007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22706
22707 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
22708 Fix conversion from Lisp object to ATSUFontID.
22709
227102007-11-09 Jason Rumney <jasonr@gnu.org>
22711
22712 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
22713
227142007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22715
22716 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
22717 Don't assume regions are aligned to page boundary.
22718 (print_load_command_name): Add LC_UUID if defined.
22719
227202007-11-09 Richard Stallman <rms@gnu.org>
22721
22722 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
22723
227242007-11-07 Jason Rumney <jasonr@gnu.org>
22725
22726 * s/windows95.h: Remove.
22727
227282007-11-06 Jan Djärv <jan.h.d@swipnet.se>
22729
22730 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
22731 abort with a message on unhandled store_type values.
22732
227332007-11-01 Jan Djärv <jan.h.d@swipnet.se>
22734
22735 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
22736 Remove HAVE_X11R5 and HAVE_X11R4.
22737
227382007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22739
22740 * Makefile.in: Remove references to sunfns.c and sunfns.o.
22741
227422007-11-01 Johan Bockgård <bojohan@gnu.org>
22743
22744 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
22745 Don't set s->stippled_p here, since it has already been set by
22746 x_set_glyph_string_gc from x_draw_glyph_string.
22747
227482007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22749
22750 * sunfns.c: Remove file.
22751
22752 * m/sun386.h:
22753 * m/sun2.h:
22754 * m/sparc.h: Remove Sun windows code.
22755
227562007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
22757
22758 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
22759 (init_keyboard): Set current_kboard's window-system to nil.
22760 (tty_read_avail_input): Typo.
22761 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
22762
227632007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
22764
22765 * s/usg5-4.h:
22766 * s/usg5-3.h:
22767 * s/ptx.h:
22768 * m/is386.h:
22769 * m/ibmps2-aix.h:
22770 * Makefile.in: Remove all mentions of X10.
22771
22772 * dispnew.c (syms_of_display): Don't mention version 10.
22773
227742007-10-28 Juanma Barranquero <lekktu@gmail.com>
22775
22776 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
22777 ($(BLD)/abbrev.$(O)): Remove.
22778
227792007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
22780
22781 Rewrite abbrev.c in Elisp.
22782 * image.c (Qcount): Don't declare as extern.
22783 (syms_of_image): Initialize and staticpro `Qcount'.
22784 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
22785 * emacs.c (main): Don't call syms_of_abbrev.
22786 * Makefile.in (obj): Remove abbrev.o.
22787 (abbrev.o): Remove.
22788 * abbrev.c: Remove.
22789
227902007-10-26 Martin Rudalics <rudalics@gmx.at>
22791
22792 * window.c (window_min_size_2): Don't count header-line.
22793
227942007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
22795
22796 * frame.h (struct frame): Move all bit fields after the first bit
22797 field to take advantage of the available space. Group all the
22798 chars together to reduce wasted space due to padding.
22799
228002007-10-26 Juanma Barranquero <lekktu@gmail.com>
22801
22802 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
22803
22804 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
22805 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
22806 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
22807 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
22808 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
22809 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
22810 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
22811 (last_marked, mark_object_loop_halt): Make static.
22812
22813 * frame.c (syms_of_frame) <delete-frame-functions>:
22814 Fix typo in docstring.
22815
228162007-10-25 Juanma Barranquero <lekktu@gmail.com>
22817
22818 * w32.c (init_environment): Fix tiny memory leak.
22819 (w32_get_resource): Remove unused variable `ok'.
22820
228212007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
22822
22823 Make `window-system' into a keyboard-local variable (rather than
22824 frame-local as done originally by multi-tty).
22825
22826 * keyboard.h (struct kboard): Add Vwindow_system.
22827 * keyboard.c (init_kboard): Set a default for Vwindow_system.
22828 (mark_kboards): Mark Vwindow_system.
22829
22830 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
22831 (init_display): Don't set the obsolete `window-system' frame-param.
22832
22833 * xterm.c (x_term_init):
22834 * w32term.c (w32_create_terminal):
22835 * term.c (init_tty): Set Vwindow_system.
22836 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
22837 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
22838
22839 * xfns.c (Fx_create_frame, x_create_tip_frame):
22840 * w32fns.c (Fx_create_frame, x_create_tip_frame):
22841 * macfns.c (Fx_create_frame):
22842 Don't set the obsolete `window-system' frame-param.
22843
22844 * frame.h (Qwindow_system): Remove.
22845 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
22846 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
22847
228482007-10-24 Richard Stallman <rms@gnu.org>
22849
22850 * frame.c (x_figure_window_size): For fullscreen case,
22851 set USPosition | PPosition without clobbering rest of window_prompting.
22852
22853 * keyboard.c (Fcurrent_idle_time): Doc fix.
22854
22855 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22856
228572007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22858
22859 * process.c (unwind_request_sigio): Only define if __ultrix__.
22860
22861 * callproc.c (child_setup): Remove spurious *.
22862
22863 * lisp.h (Fget_text_property): Declare.
22864 (have_menus_p): Declare it here rather than in sys-dep header files.
22865 * macterm.h (have_menus_p):
22866 * msdos.h (have_menus_p):
22867 * xterm.h (have_menus_p): Remove.
22868
22869 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22870 (Fmake_variable_frame_local): Just check the variable's const-ness
22871 rather than checking nil or t.
22872
228732007-10-22 Jason Rumney <jasonr@gnu.org>
22874
22875 * w32fns.c: Include math.h.
22876 (w32_abort): Declaration moved to nt/config.nt.
22877
22878 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22879 (abort): Redefinition moved to nt/config.nt.
22880
22881 * m/windowsnt.h: Remove.
22882
228832007-10-22 Juanma Barranquero <lekktu@gmail.com>
22884
22885 * emacs.c (Fdump_emacs): Fix typo in message.
22886 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22887 <installation-directory>: Reflow docstring.
22888
228892007-10-22 Juri Linkov <juri@jurta.org>
22890
22891 * minibuf.c: Allow minibuffer default to be a list of default values.
22892 With empty input use the first element of this list as returned default.
22893 (string_to_object)
22894 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22895 (read_minibuf): If defalt is cons, set histstring to its car.
22896 (Fread_string): If default_value is cons, set val to its car.
22897 (Fread_buffer): If def is cons, use its car.
22898 (Fcompleting_read): If defalt is cons, set val to its car.
22899
229002007-10-21 Michael Albinus <michael.albinus@gmx.de>
22901
22902 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22903
229042007-10-20 Juanma Barranquero <lekktu@gmail.com>
22905
22906 * doc.c (Fdocumentation): Check for advice in all cases.
22907
229082007-10-19 Chong Yidong <cyd@stupidchicken.com>
22909
22910 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22911
229122007-10-19 Richard Stallman <rms@gnu.org>
22913
22914 * doc.c (Fdocumentation): Check for and handle an advised function.
22915
229162007-10-19 Juanma Barranquero <lekktu@gmail.com>
22917
22918 * process.c (Fset_process_filter): Doc fix.
22919
229202007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22921
22922 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22923 which caused key-translation-map to applied repeatedly (thus breaking
22924 double-mode).
22925
229262007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22927
22928 * xselect.c (x_own_selection, x_handle_selection_clear)
22929 (x_clear_frame_selections):
22930 * w32menu.c (list_of_panes, list_of_items):
22931 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22932 * textprop.c (validate_plist, interval_has_all_properties)
22933 (interval_has_some_properties, interval_has_some_properties_list)
22934 (add_properties, text_property_list):
22935 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22936 * minibuf.c (Fassoc_string):
22937 * macselect.c (x_own_selection, x_clear_frame_selections)
22938 (Fx_disown_selection_internal):
22939 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22940 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22941
229422007-10-17 Chong Yidong <cyd@stupidchicken.com>
22943
22944 * process.c: Link to libs for calling res_init() if available.
22945 (Fmake_network_process): Call res_init() before getaddrinfo or
22946 gethostbyname, if possible.
22947
229482007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22949
22950 * lread.c (read1): Set pvectype for char_tables.
22951
22952 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22953 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22954 Add type checks.
22955 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22956
22957 * alloc.c (free_misc): Use XMISCTYPE.
22958 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22959
229602007-10-17 Glenn Morris <rgm@gnu.org>
22961
22962 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22963 (syms_of_minibuf): Add Qcompletion_ignore_case.
22964 * dired.c (Qcompletion_ignore_case): Change to external.
22965 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22966 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22967 (Fread_file_name): Use it rather than intern'ing.
22968
22969 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22970 (Fread_coding_system): Ignore case of user input.
22971
229722007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22973
22974 * xdisp.c (handle_display_prop): Ignore display specs after
22975 replacing one when string text is being replaced.
22976 (handle_single_display_spec): Pretend as if characters with display
22977 property haven't been consumed only when buffer text is being replaced.
22978
229792007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22980
22981 * xfns.c (Fx_create_frame, Fx_display_list):
22982 * window.c (window_fixed_size_p, enlarge_window)
22983 (shrink_window_lowest_first):
22984 * macterm.c (init_font_name_table):
22985 * macfns.c (Fx_create_frame, Fx_display_list):
22986 * lread.c (close_load_descs):
22987 * keyboard.c (read_char_x_menu_prompt):
22988 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22989 * coding.c (code_convert_region_unwind): Test the type of an object
22990 rather than just !NILP before extracting data from it.
22991
22992 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22993
22994 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22995 (XMISCANY): New macro.
22996 (XMISCTYPE): Use it.
22997 (struct Lisp_Misc_Any): New type.
22998 (union Lisp_Misc): Use it.
22999 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23000 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23001 (find_symbol_value, set_internal, default_value, Fset_default)
23002 (Fmake_variable_buffer_local, Fmake_local_variable)
23003 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23004 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23005 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23006 * alloc.c (allocate_buffer): Set the size and tag.
23007 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23008 Use XMISCANY.
23009 (die): Follow the GNU convention for error messages.
23010 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23011 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23012 tag any more.
23013 (set_buffer_internal_1):
23014 * frame.c (store_frame_param):
23015 * eval.c (specbind):
23016 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23017
23018 * doc.c (Fsnarf_documentation): Simplify.
23019
230202007-10-14 Juanma Barranquero <lekktu@gmail.com>
23021
23022 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23023 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23024
230252007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23026
23027 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23028
230292007-10-14 Juanma Barranquero <lekktu@gmail.com>
23030
23031 * eval.c (do_autoload): Don't save autoloads.
23032
23033 * data.c (Ffset): Save autoload of the function being set.
23034
230352007-10-07 John Paul Wallington <jpw@pobox.com>
23036
23037 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23038 parameter before setting up faces.
23039
230402007-10-13 Eli Zaretskii <eliz@gnu.org>
23041
23042 * ccl.c (Fregister_code_conversion_map):
23043 * keyboard.c (append_tool_bar_item): Reformat last change.
23044
23045 * lisp.h (eabs): Rename from `abs'. All callers changed.
23046
230472007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23048
23049 * buffer.c (add_overlay_mod_hooklist):
23050 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23051 * fontset.c (make_fontset):
23052 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23053 (append_tool_bar_item):
23054 * macmenu.c (grow_menu_items):
23055 * w32menu.c (grow_menu_items):
23056 * xmenu.c (grow_menu_items): Use larger_vector.
23057
230582007-10-13 Eli Zaretskii <eliz@gnu.org>
23059
23060 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23061 selected frame'' on MSDOS).
23062
230632007-10-12 Martin Rudalics <rudalics@gmx.at>
23064
23065 * frame.c (Qexplicit_name): New variable.
23066 (x_report_frame_params): Report it in parameter alist.
23067 (syms_of_frame): Intern and staticpro it.
23068
230692007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23070
23071 * macfns.c (x_create_tip_frame): Set terminal for frame.
23072
230732007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23074
23075 * frame.c (Qenvironment): Remove.
23076 (syms_of_frame) <Qenvironment>: Don't initialize.
23077 (Fdelete_frame): Don't treat the `environment' param specially.
23078 * frame.h (Qenvironment): Don't declare.
23079 * callproc.c (set_initial_environment): Don't set unused frame param.
23080
23081 * frame.c (Fframe_with_environment): Remove.
23082 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23083
23084 * lisp.h (Fframe_with_environment): Don't declare.
23085
230862007-10-10 Juanma Barranquero <lekktu@gmail.com>
23087
23088 * indent.c (indent_tabs_mode, last_known_column)
23089 (last_known_column_modified): Make static.
23090 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23091
230922007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23093
23094 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23095
230962007-10-09 Jason Rumney <jasonr@gnu.org>
23097
23098 * w32term.c (x_set_window_size): Disable code that attempts to tell
23099 Lisp code about a size change before it actually happens.
23100
231012007-10-09 Richard Stallman <rms@gnu.org>
23102
23103 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23104 return HANDLED_RETURN.
23105
231062007-10-08 Martin Rudalics <rudalics@gmx.at>
23107
23108 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23109 when there's an unread command event.
23110
23111 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23112 window autoselection act appropriately when leaving selected frame.
23113 (syms_of_frame): Initialize focus_follows_mouse.
23114 * frame.h (focus_follows_mouse): Extern it.
23115 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23116 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23117 * msdos.c (dos_rawgetc): Likewise.
23118 * w32term.c (w32_read_socket): Likewise.
23119 * xterm.c (handle_one_xevent): Likewise.
23120 * xdisp.c (syms_of_xdisp): In doc-string of
23121 mouse-autoselect-window mention focus-follows-mouse.
23122
231232007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23124
23125 * macterm.c (mac_load_query_font): Fix missing return value.
23126 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23127 Add BLOCK_INPUT.
23128
231292007-10-08 Richard Stallman <rms@gnu.org>
23130
23131 * xdisp.c (get_window_cursor_type): Implement documented behavior
23132 for cursor-in-non-selected-windows = t.
23133
231342007-10-08 Jason Rumney <jasonr@gnu.org>
23135
23136 * w32.c (w32_get_resource): Always close registry keys.
23137
231382007-10-08 Jason Rumney <jasonr@gnu.org>
23139
23140 * makefile.w32-in (LIBS): Add COMCTL32.
23141
23142 * w32fns.c (globals_of_w32fns): Init common controls.
23143
231442007-10-08 Richard Stallman <rms@gnu.org>
23145
23146 * image.c (our_memory_buffer): Rename from omfib_buffer.
23147
231482007-10-08 Richard Stallman <rms@gnu.org>
23149
23150 * buffer.c (Foverlays_at): Doc fix.
23151
231522007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23153
23154 * fns.c (Fplist_put): Preserve uneven tail data.
23155
231562007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23157
23158 * termhooks.h (enum event_kind): Remove trailing comma.
23159
23160 * frame.h (enum): Remove trailing comma.
23161
231622007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23163
23164 * w32proc.c (delete_child): Don't terminate threads of zombies.
23165
231662007-10-08 Martin Rudalics <rudalics@gmx.at>
23167
23168 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23169
23170 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23171 last-repeatable-command.
23172 (init_kboard): Initialize Vlast_repeatable_command.
23173 (command_loop_1): Set it to real_this_command unless that was
23174 bound to an input event.
23175 (mark_kboards): Mark it.
23176
231772007-10-08 Richard Stallman <rms@gnu.org>
23178
23179 * eval.c (condition-case): Doc fix.
23180
231812007-10-08 Masatake YAMATO <jet@gyve.org>
23182
23183 * xfaces.c (tty_supports_face_attributes_p): Fix code
23184 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23185 was copied and not edited.
23186
231872007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23188
23189 Add new `input-decode-map' keymap and use it for terminal
23190 escape sequences.
23191 * keyboard.h (struct kboard): Add Vinput_decode_map.
23192 Remove Vlocal_key_translation_map.
23193 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23194 (init_kboard): Init input-decode-map.
23195 Replace local-key-translation-map back with key-translation-map.
23196 (syms_of_keyboard): Declare input-decode-map.
23197 Remove local-key-translation-map. Update docstrings.
23198 (mark_kboards): Mark Vinput_decode_map.
23199 Don't mark Vlocal_key_translation_map.
23200 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23201 Replace local-key-translation-map back with key-translation-map.
23202 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23203 Bind in input-decode-map rather than function-key-map.
23204
23205 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23206 This was made redundant by the previous introduction of XSETPVECTYPE.
23207
232082007-10-09 Richard Stallman <rms@gnu.org>
23209
23210 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23211
232122007-09-29 Richard Stallman <rms@gnu.org>
23213
23214 * eval.c (internal_condition_case_2, internal_condition_case_1)
23215 (internal_condition_case): Reenable abort if x_catching_errors ()
23216 to see if that really happens and why.
23217
232182007-10-06 Andreas Schwab <schwab@suse.de>
23219
23220 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23221
232222007-10-04 Juanma Barranquero <lekktu@gmail.com>
23223
23224 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23225
232262007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23227
23228 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23229
232302007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23231
23232 * window.h (struct window):
23233 * window.c (struct save_window_data, struct saved_window):
23234 * termhooks.h (struct terminal):
23235 * process.h (struct Lisp_Process):
23236 * frame.h (struct frame):
23237 * buffer.h (struct buffer):
23238 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23239 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23240 The size field of (pseudo)vectors is now unsigned.
23241 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23242
23243 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23244 Turn `count' into an integer.
23245
23246 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23247 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23248 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23249 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23250 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23251
23252 * alloc.c (allocate_pseudovector): New fun.
23253 (ALLOCATE_PSEUDOVECTOR): New macro.
23254 (allocate_window, allocate_terminal, allocate_frame)
23255 (allocate_process): Use it.
23256 (mark_vectorlike): New function.
23257 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23258 (mark_terminals): Use it.
23259 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23260 (Fmake_byte_code): Use XSETPVECTYPE.
23261
23262 * frame.c (Fframe_parameters): Minor simplification.
23263
23264 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23265
23266 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23267
23268 * buffer.c (Fget_buffer_create, init_buffer_once):
23269 * lread.c (defsubr):
23270 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23271
23272 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23273 defined differently in the m/*.h files.
23274 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23275 (XSETPVECTYPE): New macro.
23276 (XSETPSEUDOVECTOR): Use it.
23277
23278 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23279 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23280
23281 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23282 * lread.c (defvar_per_buffer):
23283 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23284
23285 * window.c (candidate_window_p): Only consider as visible frames that
23286 are on the same terminal.
23287
23288 * m/ibms390x.h (MARKBIT): Remove unused macro.
23289
232902007-10-01 Juanma Barranquero <lekktu@gmail.com>
23291
23292 * lread.c (Fload): Fix typo in docstring.
23293
232942007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23295
23296 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23297 of a non-zero value can't yield zero.
23298
232992007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23300
23301 * term.c (term_clear_mouse_face, term_mouse_highlight)
23302 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23303
23304 * print.c (safe_debug_print): Use XHASH.
23305
23306 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23307 Lisp elements such as tags.
23308 (XHASH): New macro.
23309 (EQ): Use it.
23310 (SREF, SSET, STRING_COPYIN): Use SDATA.
23311 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23312
23313 * alloc.c (mark_terminal): Remove left-over declaration.
23314 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23315 (allocate_vectorlike): Remove type argument. Adjust callers.
23316 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23317 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23318
23319 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23320 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23321 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23322 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23323 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23324 Use them.
23325
23326 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23327 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23328 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23329
233302007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23331
23332 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23333 loaded by default.
23334
233352007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23336
23337 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23338 on this tty.
23339 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23340
23341 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23342 Update all users.
23343 (handle_one_term_event): Use Gpm_DrawPointer.
23344 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23345 Signal errors instead of returning nil. Always return nil.
23346 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23347 Make it a noop if gpm-mouse was not activated.
23348 (syms_of_term): Update names.
23349
233502007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23351
23352 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23353 (init_sys_modes): Check that gpm_tty is the current tty.
23354
23355 * alloc.c (allocate_terminal): Set the vector size to only count the
23356 lisp fields. Initialize those to nil.
23357 (mark_object): Don't treat terminals specially.
23358 (mark_terminal): Remove.
23359 (mark_terminals): Use mark_object instead.
23360
23361 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23362 the GC to the beginning.
23363
23364 * indent.h:
23365 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23366
23367 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23368
233692007-09-25 Jason Rumney <jasonr@gnu.org>
23370
23371 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23372
23373 * w32console.c (create_w32cons_output): Remove.
23374
23375 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23376
23377 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23378 (reset_sys_modes): Use reset_terminal_modes_hook.
23379
233802007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23381
23382 * eval.c (do_autoload): Don't output any message.
23383
233842007-09-24 Juri Linkov <juri@jurta.org>
23385
23386 * emacs.c (standard_args): Change priority of "--no-splash"
23387 from 40 to 3. Add "--no-desktop" with the same priority.
23388
233892007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23390
23391 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23392 and optimize the case where they are all 1.
23393
233942007-09-23 Johannes Weiner <hannes@saeurebad.de>
23395
23396 * lisp.h (abs): Define if not defined.
23397 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23398 Don't define `abs', since it's defined in lisp.h.
23399
234002007-09-22 Eli Zaretskii <eliz@gnu.org>
23401
23402 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23403 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23404 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23405 (init_tty): Use DEV_TTY instead of "/dev/tty".
23406 [WINDOWSNT]: No need to protect from NAME arg being null.
23407
234082007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23409
23410 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23411 up the tty state.
23412
234132007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23414
23415 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23416 (gpm_tty): Change its type.
23417 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23418 (gpm_tty): Change its type and initialize it.
23419 (Fterm_open_connection): Check the frame is indeed a tty.
23420 Use the new gpm_tty.
23421 (Fterm_close_connection): Use the new gpm_tty.
23422 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23423 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23424
234252007-09-21 Juanma Barranquero <lekktu@gmail.com>
23426
23427 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23428 underline_color, to draw strike-through.
23429
234302007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23431
23432 * lisp.h (allocate_terminal): Declare.
23433
23434 * window.c (candidate_window_p): Consider frames that are being placed
23435 by the user as somewhere between visible and iconified.
23436 (window_loop): Prefer windows on the current frame.
23437 (Fselect_window): Move the use of select-frame to the beginning so we
23438 can just delegate all the work (it'll call us back anyway).
23439
23440 * frame.c (Qdisplay_environment_variable):
23441 * frame.h (Qdisplay_environment_variable): Delete.
23442
23443 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23444 of the first arg, since that value may be a union.
23445
23446 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23447 parameter rather than Qdisplay_environment_variable. If all else
23448 fails, look for DISPLAY in initial-environment.
23449
234502007-09-21 Glenn Morris <rgm@gnu.org>
23451
23452 * Makefile.in (emacstool): Remove target.
23453 (lisp, shortlisp): Remove termdev.elc.
23454
234552007-09-21 Markus Triska <markus.triska@gmx.at>
23456
23457 * xterm.c (x_delete_display): Compile session management conditionally.
23458
234592007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23460
23461 * callproc.c (getenv_internal_1): New function.
23462 (getenv_internal): Use it.
23463 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23464
23465 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23466 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23467 (Fset_terminal_parameter): Work with dead terminals as well.
23468 (Fmodify_terminal_parameters): Remove.
23469
23470 * terminal.c (get_terminal): Handle terminals.
23471 Make sure the terminal returned is live.
23472 (create_terminal): Use allocate_terminal.
23473 (mark_terminals): Move to alloc.c.
23474 (delete_terminal): Use terminal->name as liveness status.
23475 NULL out fields after freeing their contents.
23476 Don't deallocate the object.
23477 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23478 rather than an int.
23479 (Fterminal_live_p): Accept non-integer arguments.
23480 (Fterminal_list): Return terminal objects rather than an ints.
23481
23482 * alloc.c (enum mem_type): New member for `terminal' objects.
23483 (allocate_terminal): New function.
23484 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23485 Handle terminals.
23486 (mark_terminal): New fun.
23487 (mark_terminals): Move from terminal.c.
23488
23489 * term.c (get_tty_terminal): Don't treat output_initial specially.
23490 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23491 (delete_tty): Use terminal->name as liveness status.
23492
23493 * termhooks.h (struct terminal): Make it into a pseudovector.
23494 Remove `deleted' replaced by checking `name's nullness.
23495
23496 * print.c (print_object): Handle terminals.
23497
23498 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23499 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23500
23501 * frame.c (make_terminal_frame):
23502 * keyboard.c (tty_read_avail_input):
23503 * w32term.c (x_delete_terminal):
23504 * xfns.c (Fx_create_frame, x_create_tip_frame):
23505 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23506
235072007-09-20 Glenn Morris <rgm@gnu.org>
23508
23509 * process.c (Fmake_network_process): Doc fix.
23510
235112007-09-19 Jason Rumney <jasonr@gnu.org>
23512
23513 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23514
235152007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23516
23517 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23518 Fix a C warning regarding variable constness.
23519
23520 * xterm.c (handle_one_xevent): Fix a C warning.
23521
235222007-09-18 Jason Rumney <jasonr@gnu.org>
23523
23524 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23525
235262007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23527
23528 * gtkutil.c (gdpy_def): New variable.
23529 (xg_initialize): Initialize gdpy_def.
23530 (xg_display_close): If no other display exists, set gdpy_def to a
23531 new connection.
23532
235332007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23534
23535 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23536 when we have no file name for the icon.
23537 (xg_tool_bar_expose_callback): Remove.
23538 (xg_create_tool_bar): Don't connect expose signal to
23539 xg_tool_bar_expose_callback.
23540 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23541
235422007-09-16 Andreas Schwab <schwab@suse.de>
23543
23544 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23545 values instead of zapping them.
23546
235472007-09-14 Glenn Morris <rgm@gnu.org>
23548
23549 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
23550 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
23551 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
23552 scope and rename to omfib_buffer for clarity.
23553 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
23554
235552007-09-14 Kenichi Handa <handa@m17n.org>
23556
23557 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
23558
235592007-09-13 Jason Rumney <jasonr@gnu.org>
23560
23561 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
23562
23563 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
23564
23565 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
23566 (mac_term_init): Call here instead, passing rif.
23567
235682007-09-13 Glenn Morris <rgm@gnu.org>
23569
23570 * s/hpux.h: No longer define `static' as nothing.
23571
235722007-09-13 Johan Bockgård <bojohan@gnu.org>
23573
23574 * callint.c (Fcall_interactively): Remove unused var `fun'.
23575
235762007-09-12 Romain Francoise <romain@orebokech.com>
23577
23578 * window.c (prefer_window_split_horizontally, display_buffer):
23579 Revert 2007-09-08 change.
23580
235812007-09-12 Glenn Morris <rgm@gnu.org>
23582
23583 * alloca.c: Remove file.
23584 * Makefile.in (alloca): Do not undef.
23585 (allocaobj, alloca.o): Remove.
23586 (otherobj): Remove allocaobj.
23587 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23588 * regex.c (C_ALLOCA): Remove all references and code that was only
23589 used when this was defined.
23590 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23591 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23592 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23593
23594 * Makefile.in (SOURCES, unlock, relock): Delete.
23595
23596 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23597 (menu_grab_callback): All uses changed.
23598
23599 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23600 (x_reply_selection_request): All uses changed.
23601
236022007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23603
23604 * lread.c (load_warn_old_style_backquotes): Change message to look
23605 better when it appears in the middle of byte-compiler messages.
23606
236072007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23608
23609 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23610
23611 * xterm.c (x_create_terminal): Add comment.
23612
23613 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23614
236152007-09-10 Richard Stallman <rms@gnu.org>
23616
23617 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23618
236192007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23620
23621 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23622 (DEFUN): Document `intspec', use it instead of `prompt'.
23623
23624 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23625
23626 * data.c (Finteractive_form): If the interactive specification starts
23627 with a `(', use it as a Lisp form.
23628
23629 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23630 name and file modes.
23631
23632 * callint.c (Fcall_interactively): Comment fixes.
23633
236342007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23635
23636 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23637 and compiled functions.
23638
236392007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23640
23641 * window.c (prefer_window_split_horizontally): New variable.
23642 (display_buffer): Consider splitting window horizontally depending
23643 on prefer_window_split_horizontally.
23644
236452007-09-08 Eli Zaretskii <eliz@gnu.org>
23646
23647 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23648
236492007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23650
23651 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23652
23653 * frame.c (x_set_frame_parameters): Check number is positive before
23654 using XFASTINT.
23655
23656 * window.c (freeze_window_start): Don't presume selected_window holds
23657 a window object.
23658 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23659
236602007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23661
23662 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23663
236642007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23665
23666 * window.c (Vsplit_window_preferred_function): New var.
23667 (Fdisplay_buffer): Use it.
23668 (syms_of_window): Export, and initialize it.
23669
236702007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23671
23672 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23673
236742007-09-06 Glenn Morris <rgm@gnu.org>
23675
23676 * gtkutil.c (menu_grab_callback) <cnt>:
23677 * xselect.c (x_reply_selection_request) <cnt>: Move static
23678 variable to file scope.
23679
236802007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23681
23682 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23683 consistent values of selected_frame and selected_window.
23684
236852007-09-04 Jason Rumney <jasonr@gnu.org>
23686
23687 * w32console.c (initialize_w32_display): Zero unused hooks.
23688
236892007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23690
23691 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
23692 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
23693
236942007-09-04 Jason Rumney <jasonr@gnu.org>
23695
23696 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
23697 in w32console.c. Set up input. Remove XXX comments that have been
23698 confirmed as correct.
23699
23700 * s/ms-w32.h (MULTI_KBOARD): Define.
23701
23702 * w32console.c (one_and_only_w32cons): Remove.
23703 (initialize_w32_display): Take terminal argument.
23704
23705 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
23706 initialize_w32_display.
23707 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
23708
23709 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
23710
23711 * keyboard.c (discard_mouse_events): Discard it.
23712 (make_lispy_event): Translate it to a lisp event.
23713 (lispy_wheel_names): Add wheel-left and right events.
23714 (syms_of_keyboard): Enlarge wheel_syms.
23715
23716 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
23717 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
23718
23719 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
23720
23721 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
23722 from WM_MOUSEHWHEEL.
23723 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
23724
23725 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
23726 terminal.
23727
23728 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
23729 keyboard for the terminal.
23730
237312007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23732
23733 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
23734 (Vresume_tty_hook): Rename from Vresume_tty_functions.
23735 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
23736 and resume-tty-function to resume-tty-hook.
23737 (Fsuspend_tty, Fresume_tty): Use new names.
23738
237392007-09-02 Jan Djärv <jan.h.d@swipnet.se>
23740
23741 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
23742 if it starts with "n:".
23743
237442007-08-31 Jan Djärv <jan.h.d@swipnet.se>
23745
23746 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
23747
237482007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
23749
23750 * frame.h:
23751 * frame.c (Qterm_environment_variable): Remove.
23752 (syms_of_frame): Don't init and staticpro it.
23753
23754 * callproc.c (getenv_internal): Remove special case for $TERM.
23755
23756 * callproc.c (Vinitial_environment): New variable.
23757 (set_initial_environment): Initialize it.
23758 (syms_of_callproc): Declare it.
23759 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
23760 TERM under which a process runs is never related to the TERM in which
23761 Emacs is running.
23762
237632007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23764
23765 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
23766 * s/darwin.h: ... do it here.
23767
237682007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
23769
23770 * lisp.h (set_initial_environment): Rename from set_global_environment.
23771
23772 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
23773 removed by mistake on the multi-tty branch.
23774
23775 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
23776 (Fmodify_frame_parameters): Return a value.
23777
23778 * image.c (png_load): Comment-out var only used in commented-out code.
23779
23780 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
23781 before passing it to mark_object.
23782
23783 * xfaces.c (internal_resolve_face_name): Return a value.
23784 (internal_resolve_face_name, resolve_face_name_error): Comment out.
23785
23786 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
23787 (x_icon): Comment-out var only used in commented-out code.
23788
237892007-08-29 Romain Francoise <romain@orebokech.com>
23790
23791 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
23792 QUIT hasn't been provided.
23793
237942007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23795
23796 * callproc.c (child_setup, getenv_internal): Use the
23797 display-environment-variable and term-environment-variable frame params.
23798 (set_initial_environment): Initialise Vprocess_environment.
23799
23800 * config.in: Disable multi-keyboard support on a mac.
23801
23802 * frame.c (Qterm_environment_variable)
23803 (Qdisplay_environment_variable): New variables.
23804 (syms_of_frame): Intern and staticpro them.
23805 (Fmake_terminal_frame): Disable output method test.
23806
23807 * frame.h: Declare them here.
23808
23809 * macfns.c (x_set_mouse_color): Get rif from the frame.
23810 (x_set_tool_bar_lines): Don't use updating_frame.
23811 (mac_window): Add 2 new parameters for consistency with other systems.
23812 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
23813 frame parameters following what is done in X11 and w32. Don't use
23814 FRAME_MAC_DISPLAY_INFO.
23815 (Fx_open_connection, start_hourglass): Remove window-system check.
23816 (x_create_tip_frame): Get the keyboard from the terminal.
23817
23818 * macmenu.c: Reorder includes.
23819 (Fx_popup_menu): Use terminal specific mouse_position_hook.
23820
23821 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
23822 terminal parameter.
23823 (x_clear_frame): Add a frame parameter.
23824 (note_mouse_movement): Get rif from the frame.
23825 (mac_term_init): Initialize the terminal.
23826 (mac_initialize): Make static and move terminal initialization ...
23827 (mac_create_terminal): ... to this new function.
23828
23829 * macterm.h (struct mac_display_info): Add terminal.
23830 (mac_initialize): Delete declaration.
23831
23832 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
23833
23834 * sysdep.c: Comment out text after #endif.
23835
23836 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
23837 is defined. Better initialize ttys in windows. Use terminal
23838 specific mouse_position_hook.
23839
23840 * termhooks.h (union display_info): Add mac_display_info.
23841
23842 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
23843 Set the default minibuffer frame, window_system and the rest of the
23844 frame parameters following what is done in X11.
23845
23846 * w32term.c (w32_initialize): Make static.
23847
23848 * xselect.c (x_handle_selection_clear): Only access
23849 terminal->kboard when MULTI_KBOARD is defined.
23850
23851 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23852 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23853
238542007-08-29 Jason Rumney <jasonr@gnu.org>
23855
23856 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23857 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23858
23859 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23860 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23861
23862 * keyboard.c (restore_kboard_configuration): Only define when
23863 MULTI_KBOARD defined.
23864
23865 * makefile.w32-in: Update dependancies from Makefile.in.
23866 (OBJ1): Add terminal.$(O)
23867
23868 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23869 Don't define function body.
23870 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23871
23872 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23873
23874 * w32.c (request_sigio, unrequest_sigio): Remove.
23875
23876 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23877 (w32con_clear_frame, w32con_clear_end_of_line)
23878 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23879 (w32con_delete_glyphs, w32con_set_terminal_window)
23880 (scroll_line, w32_sys_ring_bell): Add frame arg.
23881 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23882 Add terminal arg.
23883 (PICK_FRAME): Remove.
23884 (w32con_write_glyphs): Use frame specific terminal coding.
23885 (one_and_only_w32cons): New global variable.
23886 (initialize_w32_display): Use it for storing hooks.
23887 (create_w32cons_output): New function.
23888
23889 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23890 arg a frame.
23891
23892 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23893 Set window_system.
23894 (x_set_tool_bar_lines): Don't use updating_frame.
23895 (Fx_create_frame): Set terminal and ref count.
23896 (Fx_open_connection): Remove window-system check.
23897
23898 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23899
23900 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23901 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23902 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23903 Add frame arg.
23904 (x_delete_terminal, w32_create_terminal): New functions.
23905 (w32_term_init): Create a terminal.
23906 (w32_initialize): Move terminal specific initialization to
23907 w32_create_terminal.
23908
23909 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23910 (w32_clear_rect, w32_clear_area): Use background from frame.
23911 (w32_display_info): Add terminal.
23912 (w32_sys_ring_bell, x_delete_display): Declare here.
23913
23914 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23915
23916 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23917
239182007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23919
23920 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23921 Fix get_named_tty calls for the controlling tty.
23922
239232007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23924
194d44e7 23925 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
23926
239272007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23928
23929 * term.c (tty_insert_glyphs): Add missing first parameter.
23930
239312007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23932
23933 * buffer.c (Fbuffer_list, Fbury_buffer):
23934 Take frame->buried_buffer_list into account.
23935
23936 * cm.c (current_tty): New variable, for cmputc().
23937 (cmputc): Use it.
23938 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23939 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23940 (cmgoto): Add tty parameter. Pass it on to calccost().
23941 Use emacs_tputs() instead of tputs().
23942
23943 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23944 tputs().
23945 (current_tty): New variable, for cmputc().
23946 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23947
23948 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23949 (internal_condition_case, internal_condition_case_1)
23950 (internal_condition_case_2): Don't abort when x_catching_errors.
23951
23952 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23953 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23954 prevent crashes caused by bogus longjmps in read_char.
23955
23956 * keymap.h (Fset_keymap_parent): Add EXFUN.
23957
23958 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23959 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23960 Remove redundant definition.
23961
23962 * macfns.c (x_set_mouse_color, x_make_gc):
23963 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23964
23965 * w32term.c (x_free_frame_resources):
23966 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23967 (w32_initialize): Use the accessor macros for terminal characteristics.
23968
23969 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23970 Use the accessor macros for terminal characteristics.
23971 * msdos.c (internal_terminal_init): Use the accessor macros for
23972 terminal characteristics.
23973 (ScreenVisualBell, internal_terminal_init):
23974 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23975
23976 * termopts.h (no_redraw_on_reenter): Declare.
23977
23978 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23979 (mark_terminals, mark_ttys): Declare.
23980 (Fgarbage_collect): Call them.
23981 (mark_object): Mark buried_buffer_list.
23982
23983 * prefix-args.c: Include stdlib.h for exit.
23984
23985 * syssignal.h: Add comment.
23986
23987 * indent.c: Include stdio.h.
23988
23989 * window.h (Vinitial_window_system): Declare.
23990 (Vwindow_system): Delete declaration.
23991
23992 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23993
23994 * image.c (lookup_image): Don't initialize `c' until the xasserts
23995 have been run.
23996
23997 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23998 FRAME_FOREGROUND_PIXEL.
23999
24000 * print.c (print_preprocess): Don't lose print_depth levels while
24001 iterating.
24002
24003 * widget.c (update_from_various_frame_slots):
24004 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24005
24006 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24007 frames.
24008 (window_internal_height): Remove bogus make_number call.
24009 (init_window_once): Call make_terminal_frame with two zero parameters.
24010
24011 * fileio.c (Fread_file_name): Update comment.
24012
24013 * callint.c (Fcall_interactively):
24014 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24015 Make sure it is correctly unwound.
24016
24017 * xsmfns.c (x_session_close): New function.
24018
24019 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24020 Delete declarations.
24021
24022 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24023 (x_output): Remove background_pixel and foreground_pixel fields.
24024 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24025 (x_delete_device, x_session_close): Declare.
24026
24027 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24028 (read_filtered_event): Call `read_char' with a local
24029 `wrong_kboard_jmpbuf'.
24030
24031 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24032 Don't call single_kboard_state. Use FRAME_RIF.
24033
24034 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24035 systems.
24036
24037 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24038 (Fframe_with_environment, Fset_input_meta_mode)
24039 (Fset_quit_char): EXFUN.
24040 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24041 (init_sys_modes, reset_sys_modes): Update prototypes.
24042 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24043
24044 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24045 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24046 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24047 Delete declarations.
24048 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24049 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24050 New declarations.
24051
24052 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24053 already does that during init_display(). Call syms_of_keymap
24054 before syms_of_keyboard. Call `syms_of_terminal'.
24055 Call set_initial_environment, not set_process_environment.
24056 (shut_down_emacs): Call reset_all_sys_modes() instead of
24057 reset_sys_modes().
24058
24059 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24060 (internal_resolve_face_name, resolve_face_name_error): New functions.
24061 (resolve_face_name): Protect against loops and errors thrown by Fget.
24062 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24063 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24064
24065 * scroll.c: Replace CURTTY() with local variables throughout the
24066 file (where applicable).
24067 (calculate_scrolling, calculate_direct_scrolling)
24068 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24069 characteristics.
24070
24071 * keymap.c (Vfunction_key_map): Remove.
24072 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24073 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24074 (Vkey_translation_map): Remove.
24075 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24076 (Fdescribe_buffer_bindings)
24077 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24078 Update for terminal-local key-translation-map.
24079
24080 * Makefile.in (callproc.o): Update dependencies.
24081 (lisp, shortlisp): Add termdev.elc.
24082 (obj): Add terminal.o.
24083 (terminal.o): Add dependencies.
24084 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24085 (data.o, fns.o): Add termhooks.h dependency.
24086 (SOME_MACHINE_LISP): Add dnd.elc.
24087 (minibuf.o): Fix typo.
24088 Update dependencies.
24089
24090 * data.c (do_symval_forwarding, store_symval_forwarding)
24091 (find_symbol_value): Use the selected frame's keyboard, not
24092 current_kboard.
24093
24094 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24095 Vwindow_system.
24096
24097 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24098 Fmenu_bar_open.
24099 (syms_of_xmenu): Update defsubr.
24100 (mouse_position_for_popup, Fx_popup_menu)
24101 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24102 (set_frame_menubar, free_frame_menubar)
b97439ce 24103 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24104 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24105 an X frame.
24106
24107 * xselect.c (x_own_selection): Abort if not an X frame.
24108 (some_frame_on_display): Check if it is an X frame.
24109 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24110
24111 * coding.c: Include frame.h and termhooks.h.
24112 (terminal_coding, keyboard_coding): Delete.
24113 (Fset_terminal_coding_system_internal)
24114 (Fset_keyboard_coding_system_internal)
24115 (Fkeyboard_coding_system)
24116 (Fterminal_coding_system): Add a terminal parameter.
24117 Get terminal_coding from the terminal.
24118 (init_coding_once): Don't call setup_coding_system here.
24119
24120 * dispextern.h (set_scroll_region, turn_off_insert)
24121 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24122 (tty_clear_end_of_line, tty_setup_colors)
24123 (delete_tty, updating_frame)
24124 (produce_special_glyphs, produce_glyphs, write_glyphs)
24125 (insert_glyphs): Remove.
24126 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24127 (tty_turn_off_highlight, get_tty_size): Add declaration.
24128 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24129
24130 * frame.h (enum output_method): Add output_initial.
24131 (struct x_output): Delete.
24132 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24133 Access foreground_pixel and background_pixel directly from the frame.
24134 (tty_display): Delete.
24135 (struct frame): Add buried_buffer_list, foreground_pixel,
24136 background_pixel and terminal. Delete kboard.
24137 (union output_data): Add tty.
24138 (FRAME_KBOARD): Get the kboard from the terminal.
24139 (FRAME_INITIAL_P): New macro.
24140 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24141 (Qterm_environment_variable, Qdisplay_environment_variable)
24142 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24143 New declarations.
24144
24145 * termchar.h (tty_output, tty_display_info): New structures.
24146 (tty_list): Declare.
24147 (FRAME_TTY, CURTTY): New macros.
24148 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24149 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24150 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24151 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24152
24153 * callproc.c: Include frame.h and termhooks.h, for terminal
24154 parameters.
24155 (add_env): New function.
24156 (child_setup): Use it.
24157 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24158 (getenv_internal): Fix get_terminal_param call.
24159 (Fgetenv_internal, egetenv): Update doc.
24160 (syms_of_callproc): Initialize Vprocess_environment to nil.
24161 Register and initialize them. Remove obsolete defvars. Update doc
24162 strings.
24163 (child_setup): Handle Vlocal_environment_variables.
24164 (getenv_internal): Add terminal parameter.
24165 Handle Vlocal_environment_variables.
24166 (Fgetenv_internal): Add terminal parameter.
24167 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24168 environment in a frame (not terminal) parameter. Update doc strings.
24169 (set_initial_environment): Rename from set_global_environment.
24170 Store Emacs environment in initial frame parameter.
24171
24172 * xdisp.c (redisplay_internal): Update references to
24173 `previous_terminal_frame'.
24174 (display_mode_line, Fformat_mode_line): Replace calls to
24175 `push_frame_kboard' with `push_kboard'.
24176 (get_glyph_string_clip_rects): Add extra parentheses and
24177 braces to prevent compiler warnings.
24178 (calc_pixel_width_or_height): Add xassert to check that the
24179 frame is alive. Don't call `lookup_image' on a termcap frame.
24180 (message2_nolog, message3_nolog, redisplay_internal)
24181 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24182 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24183 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24184 (Fx_display_pixel_width, Fx_display_pixel_height)
24185 (Fx_display_planes, Fx_display_color_cells)
24186 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24187 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24188 (Fx_display_backing_store, Fx_display_visual_class)
24189 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24190 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24191
24192 * xfns.c (x_set_foreground_color x_set_background_color)
24193 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24194 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24195 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24196 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24197 terminal that is being deleted.
24198 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24199 frame parameter, and make sure it overrides any user-supplied setting.
24200 (Fx_close_connection, Fx_synchronize): Unify argument names with
24201 the rest of the DEFUNs.
24202
24203 * dispnew.c (Fsend_string_to_terminal): Update call to
24204 `get_tty_terminal'.
24205 (Fredraw_frame, Fsend_string_to_terminal)
24206 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24207 FRAME_TERMCAP_P and FRAME_TTY.
24208 (window_change_signal): Don't believe width/height values that are
24209 impossibly small.
24210 (Vinitial_window_system): Rename from Vwindow_system.
24211 (termscript, Wcm, rif): Delete.
24212
24213 * termhooks.h (struct terminal): New struct containing the
24214 previously global text display hooks and new members NAME,
24215 DELETED and PARAM_ALIST.
24216 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24217 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24218 (FRAME_RIF): New macros.
24219 (get_terminal_param, get_device): New declarations.
24220 (termscript): Delete declaration.
24221
24222 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24223 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24224 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24225 FRAME_FOREGROUND_PIXEL.
24226 (x_fully_uncatch_errors): Disable definition.
24227 (x_scroll_bar_expose): Fix reference to foreground pixel.
24228 (XTread_socket): Disable loop on all X displays.
24229 (x_delete_terminal): Don't set terminal->deleted and let
24230 delete_terminal delete the frames on the terminal.
24231 (x_delete_display): Doc update to reflect changes in
24232 delete_terminal.
24233 (x_display_info) <terminal>: Move member earlier in the struct.
24234 (deleting_tty): Remove old variable.
24235 (Fsuspend_tty): Call clear_tty_hooks.
24236 (Fresume_tty, init_tty): Call set_tty_hooks.
24237 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24238 errors on X frames.
24239 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24240 (handle_one_xevent): Initialize `f' to NULL.
24241 (x_delete_terminal, x_create_terminal): New functions.
24242 (XTset_terminal_modes, XTreset_terminal_modes)
24243 (XTread_socket, x_connection_closed, x_term_init)
24244 (x_term_init, x_delete_display): Add terminal parameter.
24245 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24246 X connections.
24247
24248 * frame.c: Include termchar.h.
24249 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24250 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24251 (Qdisplay_environment_variable): New vars.
24252 (Fframep): Deal with output_initial.
24253 (Fframe-live-p): Doc fix.
24254 (Fwindow-system): New function.
24255 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24256 (make_terminal_frame): Don't create frames on a terminal that is
24257 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24258 (store_frame_param): Check for found_for_frame before calling XFRAME.
24259 (Fmake_terminal_frame): Handle NULL tty names correctly.
24260 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24261 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24262 frames to refer to a deleted frame in their 'environment parameter.
24263 (Fframe_with_environment): New function.
24264 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24265 (get_future_frame_param): New function.
24266 (Fmake_terminal_frame): Use it.
24267 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24268
24269 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24270 * sysdep.c (reset_sys_modes): Update for renames.
24271
24272 * keyboard.c (tty_read_avail_input): New function.
24273 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24274 (syms_of_keyboard): Defsubr them.
24275 (Fset_input_meta_mode, Fset_quit_char): New functions.
24276 (Fset_input_mode): Split to above functions.
24277 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24278 parameter. Use it in call to `read_char'.
24279 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24280 Set wrong_kboard_jmpbuf correctly in recursive calls.
24281 Use current_kboard to access Vkeyboard_translate_table.
24282 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24283 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24284 Update longjmp invocations. Remember the original current_kboard,
24285 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24286 changes it. Comment out unnecessary calls to
24287 `record_single_kboard_state' and `any_kboard_state'.
24288 Update recursive calls.
24289 (wrong_kboard_jmpbuf): Remove global variable.
24290 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24291 Handle deleted interrupted_kboards correctly; that is a legal
24292 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24293 and read_char calls. Abort if interrupted_kboard died in read_char.
24294 (any_kboard_state, single_kboard_state)
24295 (push_frame_kboard): Remove function.
24296 (pop_kboard): Switch out of single_kboard mode if the kboard has
24297 been deleted. Remove unused variable. Help debugging by not
24298 changing current_kboard unnecessarily. Set current_kboard to the
24299 kboard of the selected frame when the stored kboard object has
24300 been deleted before pop_kboard.
24301 (temporarily_switch_to_single_kboard): Change first parameter to a
24302 frame pointer. Throw an error when caller wants to change kboards
24303 while in single_kboard mode. Don't push_kboard if we weren't in
24304 single kboard state. Don't pop_kboard if we popped into any
24305 kboard state.
24306 (restore_kboard_configuration): Abort if pop_kboard changed the
24307 kboard in single_kboard mode. Call pop_kboard only after setting
24308 up single_kboard mode.
24309 (Frecursive_edit): Switch to single_kboard mode only in nested
24310 command loops.
24311 (cmd_error, command_loop, command_loop_1, timer_check):
24312 Comment out unnecessary call to `any_kboard_state' and
24313 `record_single_kboard_state'.
24314 (delete_kboard): Exit single_kboard mode if we have just deleted
24315 that kboard. Use FRAME_KBOARD.
24316 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24317 `fatal_error_signal'.
24318 (record_single_kboard_state): Don't push_kboard if we weren't in
24319 single kboard state. Don't pop_kboard if we popped into any
24320 kboard state.
24321 (push_frame_kboard): Rename to push_kboard.
24322 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24323 (read_avail_input): Read input from all terminals.
24324 (mark_kboards): Also mark Vkeyboard_translate_table.
24325 (kbd_buffer_store_event_hold): Simplify condition.
24326 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24327 (Vkeyboard_translate_table): Move to struct kboard.
24328 (init_kboard): Initialize Vkeyboard_translate_table.
24329 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24330 Vkeyboard_translate_table. Update doc strings. Update docs of
24331 local-function-key-map and function-key-map.
24332
24333 * terminal.c: New file.
24334
24335 * term.c: Include errno.h.
24336 (Vring_bell_function, device_list, initial_device)
24337 (next_device_id, ring_bell, update_begin, update_end)
24338 (set_terminal_window, cursor_to, raw_cursor_to)
24339 (clear_to_end, clear_frame, clear_end_of_line)
24340 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24341 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24342 (syms_of_term): Move their initialization to terminal.c.
24343 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24344 (Ftty_display_color_cells)
24345 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24346 (clear_tty_hooks, set_tty_hooks)
24347 (init_tty, maybe_fatal): New functions.
24348 (Ftty_type): Return nil if terminal is not on a tty instead of
24349 throwing an error. Doc update.
24350 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24351 Doc update. Initialize new subrs and variables.
24352 (delete_tty): Use terminal->deleted.
24353 (tty_set_terminal_modes): Rename from set_terminal_modes.
24354 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24355 (set_scroll_region): Rename to `tty_set_scroll_region'.
24356 (turn_on_insert): Rename to `tty_turn_on_insert'.
24357 (turn_off_insert): Rename to `tty_turn_off_insert'.
24358 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24359 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24360 (toggle_highligh): Rename to `tty_toggle_highlight'.
24361 (background_highlight): Rename to `tty_background_highlight'.
24362 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24363 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24364 (tty_set_scroll_region, tty_background_highlight)
24365 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24366 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24367 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24368 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24369 Add static modifier.
24370 (tty_reset_terminal_modes, tty_set_terminal_window)
24371 (tty_set_scroll_region, tty_background_highlight)
24372 (tty_highlight_if_desired, tty_cursor_to)
24373 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24374 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24375 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24376 renames.
24377
243782007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24379
24380 * keyboard.c: Qrtl is new.
24381 (parse_tool_bar_item): Handle :rtl keyword.
24382 (syms_of_keyboard): Intern :rtl keyword.
24383
24384 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24385
24386 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24387 so no Lisp code is executed.
24388 (file_for_image, find_rtl_image): New functions.
24389 (xg_get_image_for_pixmap): Use file_for_image.
24390 (update_frame_tool_bar): If direction is RTL, use RTL image if
24391 defined. Use Gtk stock images if defined.
24392
243932007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24394
24395 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24396 for nonexistent or zero-width glyph in composition glyph.
24397
243982007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24399
24400 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24401
24402 * xdisp.c (Finvisible_p): New function.
24403 (syms_of_xdisp): defsubr it.
24404
244052007-08-24 Juanma Barranquero <lekktu@gmail.com>
24406
24407 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24408 Doc fixes.
24409
244102007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24411
24412 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24413
244142007-08-24 Martin Rudalics <rudalics@gmx.at>
24415
24416 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24417 whether decoding has modified buffer contents.
24418
244192007-08-24 Jason Rumney <jasonr@gnu.org>
24420
24421 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24422 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24423 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24424 (init_svg_functions) [HAVE_NTGUI]: New function.
24425 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24426 (svg_load_image): Use them.
24427 (svg_load_image) [HAVE_NTGUI]: Implement background.
24428
244292007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24430
24431 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24432 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24433 (LIBX): Remove @RSVG_LIBS@.
24434 (LIBES): Add $(RSVG_LIBS).
24435
24436 * image.c (svg_load_image): Blend with specified background if exists.
24437 Use IMAGE_BACKGROUND. Add Mac OS Support.
24438
24439 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24440 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24441 Remove macros.
24442 [MAC_OSX] (socket_callback): Do nothing.
24443 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24444 ReceiveNextEvent.
24445 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24446 socket_callback.
24447 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24448
244492007-08-22 Glenn Morris <rgm@gnu.org>
24450
24451 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24452
244532007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24454
24455 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24456
24457 * image.c: Add support for SVG images. Some additional comments
24458 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24459 (svg_image_p): New function to test for SVG image.
24460 (svg_load): New function to load SVG image.
24461 (svg_load_image): New function, helper for svg_load.
24462 (Qsvg): New Lisp_object.
24463 (svg_keyword_index): New enum.
24464 (svg_format): New static `image_keyword' struct.
24465 (svg_type): New static `image_type' struct.
24466 (librsvg/rsvg.h): Include it.
24467
244682007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24469
24470 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24471
244722007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24473
24474 * lread.c (Qold_style_backquotes): New var.
24475 (syms_of_lread): Init and staticpro it.
24476 (load_warn_old_style_backquotes): New fun.
24477 (Fload): Use them to warn about old style backquotes.
24478 (end_of_file_error, Fload): Remove unused vars.
24479
24480 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24481
24482 * lread.c (Vold_style_backquotes): New var.
24483 (syms_of_lread): Init and export it to Elisp.
24484 (read1): Set it when we find an old-style (back)quote.
24485
244862007-08-22 Jason Rumney <jasonr@gnu.org>
24487
24488 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24489
244902007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24491
24492 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24493
244942007-08-19 Richard Stallman <rms@gnu.org>
24495
24496 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24497
244982007-08-19 Andreas Schwab <schwab@suse.de>
24499
24500 * alloc.c (pure): Round PURESIZE up.
24501
245022007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24503
24504 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24505 active frame.
24506
245072007-08-16 Richard Stallman <rms@gnu.org>
24508
24509 * eval.c (Fcommandp): Add parens to clarify.
24510
24511 * minibuf.c (Fall_completions): Use enum for type of table.
24512
24513 * emacs.c (USAGE2): Improve text.
24514
245152007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24516
24517 * term.c (tty_default_color_capabilities): Declare static
24518 variables in file scope, to avoid HPUX compiler problem.
24519
245202007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24521
24522 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24523 to gtk_toolbar_insert.
24524
245252007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24526
24527 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24528
24529 * insdel.c (reset_var_on_error): New fun.
24530 (signal_before_change, signal_after_change):
24531 Use it to reset (after|before)-change-functions to nil in case of error.
24532 Bind inhibit-modification-hooks to t.
24533 Don't bind (after|before)-change-functions to nil while they run.
24534
245352007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24536
24537 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24538 filling pixmap with stippled background.
24539
245402007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24541
24542 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24543 Don't use invisible frame as parent window for repositioning.
24544
245452007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
24546
24547 * print.c (new_backquote_output): Rename from old_backquote_output.
24548 (print): Inverse its logic (according to its name) so as to match the
24549 behavior of new_backquote_flag in lread.c.
24550
245512007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24552
24553 * gmalloc.c (posix_memalign): New function.
24554
24555 * macterm.c (frame_highlight, frame_unhighlight): Don't call
24556 ActivateControl/DeactivateControl here.
24557 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
24558 frame-notice-user-settings is non-nil.
24559 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
24560 for kEventParamFMFontStyle.
24561 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
24562 mac_pass_command_to_system and mac_pass_control_to_system here.
24563 (XTread_socket): Call ActivateControl/DeactivateControl here.
24564 (XTread_socket) [TARGET_API_MAC_CARBON]:
24565 Check mac_pass_command_to_system and mac_pass_control_to_system here.
24566 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
24567 for window repositioning.
24568
245692007-08-08 Glenn Morris <rgm@gnu.org>
24570
24571 * Replace `iff' in doc-strings and comments.
24572
245732007-08-07 Chong Yidong <cyd@stupidchicken.com>
24574
24575 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
24576
245772007-08-07 Martin Rudalics <rudalics@gmx.at>
24578
24579 * fileio.c (Finsert_file_contents): Run format-decode and
24580 after_insert_file_functions on entire buffer when REPLACE is
24581 non-nil and inhibit modification_hooks and point_motion_hooks.
24582 For consistency, run after_insert_file_functions iff something
24583 got inserted. Move signal_after_change and update_compositions
24584 after code running after_insert_file_functions. Make sure that
24585 undo_list doesn't record intermediate steps of the decoding process.
24586
245872007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24588
24589 * emacs.c (main)
24590 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24591 Call malloc_enable_thread on interactive startup.
24592
24593 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24594 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24595 [USE_PTHREAD]: Conditionalize with it.
24596 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24597 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24598 New functions.
24599
246002007-08-06 Chong Yidong <cyd@stupidchicken.com>
24601
24602 * xdisp.c (redisplay_window): When restoring original buffer
24603 position, make sure it is still valid.
24604
24605 * image.c (png_load): Ignore png-supplied background color.
24606
246072007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24608
24609 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24610 Use kCFAbsoluteTimeIntervalSince1970.
24611
24612 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24613 New variable.
24614 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24615 event loop should be quit.
24616 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24617 Quit dialog event loop if quit_dialog_event_loop is set.
24618
24619 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24620 (Selection): New typedef. Use instead of ScrapRef.
24621 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24622 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24623 (mac_clear_selection): Rename from clear_scrap.
24624 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24625 scrap_has_target_type. All uses changed.
24626 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24627 (mac_selection_has_target_p): New functions.
24628 (mac_put_selection_value): Rename from put_scrap_string.
24629 (mac_get_selection_value): Rename from get_scrap_string.
24630 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24631 (put_scrap_private_timestamp, scrap_has_target_type)
24632 (get_scrap_private_timestamp): Remove functions.
24633 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24634 (x_own_selection, x_get_local_selection):
24635 Use mac_valid_selection_value_p.
24636 (x_own_selection): Don't use put_scrap_private_timestamp.
24637 Record OWNERSHIP-INFO into Vselection_alist instead.
24638 (x_get_local_selection): Don't check type if request is local.
24639 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24640 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24641
246422007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24643
24644 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24645 add comment explaining why.
24646
246472007-08-03 Richard Stallman <rms@gnu.org>
24648
24649 * fileio.c (Fvisited_file_modtime): Use make_time.
24650
246512007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24652
24653 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24654 build.
24655
246562007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24657
24658 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24659
246602007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24661
24662 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24663
246642007-07-30 Richard Stallman <rms@gnu.org>
24665
24666 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24667
246682007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24669
24670 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24671
246722007-07-28 Nick Roberts <nickrob@snap.net.nz>
24673
24674 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24675 remote default-directory.
24676
24677 * buffer.c (mode-line-format): Update doc string.
24678
246792007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24680
24681 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24682 scroll bar gap.
24683 (x_scroll_bar_create): Set bar->fringe_extended_p.
24684 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24685 on frame edge. Check fringe background extension. Don't clear
24686 extended fringe background area.
24687
24688 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24689 (w32_fill_area): Enclose multiple statements with do ... while (0).
24690
24691 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
24692 Extend fringe background to scroll bar gap.
24693 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
24694 Set bar->fringe_extended_p.
24695 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24696 Put leftmost/rightmost scroll bars on frame edge. Check fringe
24697 background extension. Don't clear extended fringe background area.
24698
24699 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24700 New member fringe_extended_p.
24701
247022007-07-25 Glenn Morris <rgm@gnu.org>
24703
24704 * Relicense all FSF files to GPLv3 or later.
24705
24706 * COPYING: Switch to GPLv3.
24707
247082007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
24709
24710 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
24711
24712 * data.c (Finteractive_form): Check for the presence of an
24713 `interactive-form' symbol property more thoroughly.
24714
24715 * data.c (Finteractive_form): Use an `interactive-form' property if
24716 present, analogous to the function-documentation property.
24717
247182007-07-24 Jason Rumney <jasonr@gnu.org>
24719
24720 * w32fns.c (x_real_positions): Get real position from OS instead of
24721 calculating it.
24722
247232007-07-23 Jason Rumney <jasonr@gnu.org>
24724
24725 * filelock.c (current_lock_owner): Allow for @ sign in username.
24726
247272007-07-22 Nick Roberts <nickrob@snap.net.nz>
24728
24729 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
24730 remote default-directory.
24731
24732 * buffer.c (mode-line-format): Describe above case in doc string.
24733
247342007-07-20 Eli Zaretskii <eliz@gnu.org>
24735
24736 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
24737 Define if not defined.
24738
247392007-07-18 Jason Rumney <jasonr@gnu.org>
24740
24741 * w32proc.c (w32_executable_type): Handle 64 bit executables.
24742
247432007-07-18 Richard Stallman <rms@gnu.org>
24744
24745 * data.c (Fsetq_default): Doc fix.
24746
24747 * eval.c (Fsetq): Doc fix.
24748
247492007-07-18 Juanma Barranquero <lekktu@gmail.com>
24750
24751 * coding.c (Ffind_operation_coding_system):
24752 * eval.c (For, Fand): Doc fixes.
24753 Reported by Johan Bockgård.
24754
247552007-07-18 Jan Djärv <jan.h.d@swipnet.se>
24756
24757 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
24758
24759 * xterm.h: Declare x_ewmh_activate_frame.
24760
24761 * xterm.c (x_ewmh_activate_frame): New function.
24762 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
24763
247642007-07-17 Martin Rudalics <rudalics@gmx.at>
24765
24766 * window.c (Fdisplay_buffer): If largest or LRU window is the
24767 only window, split it even if it is not eligible for splitting.
24768 This restores the original behavior broken by the 2007-07-15
24769 change.
24770
247712007-07-17 Glenn Morris <rgm@gnu.org>
24772
24773 * abbrev.c (abbrev_check_chars): New function.
24774 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24775 Call abbrev_check_chars to check abbrev characters are word
24776 constituents. Doc fix.
24777
247782007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
24779
24780 * process.c (Fstart_process, Fmake_network_process)
24781 (read_process_output): Fix up last changes.
24782
247832007-07-16 Eli Zaretskii <eliz@gnu.org>
24784
24785 * makefile.w32-in (clean): Don't delete *~.
24786
247872007-07-16 Andreas Schwab <schwab@suse.de>
24788
24789 * window.c (Fdisplay_buffer): Use NILP.
24790 (Fset_window_scroll_bars): Likewise.
24791
247922007-07-15 Martin Rudalics <rudalics@gmx.at>
24793
24794 * window.c (window_min_size_2): New function.
24795 (window_min_size_1, size_window, Fdisplay_buffer)
24796 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
24797 windows without mode- or header-lines when window-min-height is
24798 too small.
24799 (size_window): Reset nodelete_p after testing it, following an
24800 earlier note by Kim F. Storm.
24801 (display_buffer): Do not set split_height_threshold to twice the
24802 value of window_min_height to avoid changing the value of a
24803 customizable variable. Rather explicitly check whether the
24804 height of the window that shall be splitted is at least as large
24805 as split_height_threshold.
24806 (Fwindow_full_width_p): New defun.
24807 (syms_of_window): Defsubr it.
24808
24809 * window.h: Add EXFUN for Fwindow_full_width_p.
24810
248112007-07-14 Jason Rumney <jasonr@gnu.org>
24812
24813 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
24814
248152007-07-14 Richard Stallman <rms@gnu.org>
24816
24817 * eval.c (maybe_call_debugger): New function.
24818 (find_handler_clause): Use maybe_call_debugger.
24819 Call it when the handler says `debug'.
24820 Eliminate DEBUGGER_VALUE_PTR.
24821 (Fsignal): Eliminate debugger_value.
24822 (Qdebug): New variable.
24823 (syms_of_eval): Initialize it.
24824
248252007-07-14 Juanma Barranquero <lekktu@gmail.com>
24826
24827 * eval.c (Fprogn):
24828 * keyboard.c (Ftrack_mouse):
24829 * print.c (Fwith_output_to_temp_buffer):
24830 * window.c (Fsave_window_excursion): Doc fix.
24831
248322007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
24833
24834 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
24835
248362007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
24837
24838 * process.h (struct Lisp_Process): Turn slots infd, outfd,
24839 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
24840 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
24841 read_output_delay, and read_output_skip from Lisp_Objects to ints.
24842 Remove unused encoding_carryover.
24843 * process.c: Adjust all functions accordingly.
24844
248452007-07-12 Richard Stallman <rms@gnu.org>
24846
24847 * term.c: Include unistd.h only if HAVE_UNISTD_H.
24848
248492007-07-11 Jason Rumney <jasonr@gnu.org>
24850
24851 * makefile.w32-in (LIBS): Include OLE32.
24852
24853 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24854 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24855
248562007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24857
24858 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24859 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24860 from a Lisp_Object into a bare pointer.
24861 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24862 Adjust the code correspondingly.
24863
24864 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24865
24866 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24867 (term_show_mouse_face): Remove unused var `j'.
24868 (handle_one_term_event): Remove unused vars `i' and `j'.
24869 Don't cast return value of ttyname since it's not necessary.
24870
248712007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24872
24873 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24874 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24875
24876 * fns.c (map_char_table): Use an array of int for `indices' rather than
24877 an array of Lisp_Objects (which are only ever integers anyway).
24878 (Fmap_char_table): Update caller.
24879 * lisp.h: Update prototype.
24880 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24881 * fontset.c (Ffontset_info):
24882 * casetab.c (set_case_table): Update callers.
24883
24884 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24885
24886 * keymap.c (struct accessible_keymaps_data)
24887 (struct where_is_internal_data): New structures.
24888 (accessible_keymaps_1, where_is_internal_1): Use them to change
24889 interface to adhere to the one used by map_keymap.
24890 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24891 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24892
24893 * keymap.h (map_keymap_function_t): More informative prototype.
24894
248952007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24896
24897 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24898 (looking_at_1): Don't change search_regs and last_thing_searched
24899 if `inhibit-changing-match-data' is non-nil.
24900 (string_match_1, search_buffer, set_search_regs): Likewise.
24901 (syms_of_search): Add Lisp level definition for
24902 `inhibit-changing-match-data' and set it to nil.
24903 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24904 start and end of the match, instead of using values in search_regs.
24905
249062007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24907
24908 * minibuf.c (Fcompleting_read): New value `confirm-only'
24909 for `require-match'.
24910
249112007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24912
24913 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24914 part of the 2007-06-27 change to syms_of_fileio.
24915
249162007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24917
24918 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24919 Check WINDOWP before using XWINDOW. Consolidate return statements.
24920
249212007-06-27 Richard Stallman <rms@gnu.org>
24922
24923 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24924
249252007-06-27 Juanma Barranquero <lekktu@gmail.com>
24926
24927 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24928
249292007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24930
24931 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24932 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24933 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24934 (_free_internal, memalign): Use them.
24935 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24936 Initialize to PTHREAD_MUTEX_INITIALIZER.
24937 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24938 (morecore_nolock): Rename from morecore. All uses changed.
24939 Use only nolock versions of internal allocation functions.
24940 (_malloc_internal_nolock, _realloc_internal_nolock)
24941 (_free_internal_nolock): New functions created from
24942 _malloc_internal, _realloc_internal, and _free_internal.
24943 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24944 Copy hook value to automatic variable before its use.
24945 (memalign): Copy hook value to automatic variable before its use.
24946
249472007-06-26 Kenichi Handa <handa@m17n.org>
24948
24949 * coding.c (Ffind_operation_coding_system): Docstring improved.
24950 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24951
249522007-06-25 David Kastrup <dak@gnu.org>
24953
24954 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24955 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24956 cater for additional parameter.
24957
24958 * keymap.h: Adjust number of parameters to `current-active-maps'.
24959
24960 * doc.c (Fsubstitute_command_keys): Adjust call of
24961 `current-active-maps'.
24962
249632007-06-25 David Kastrup <dak@gnu.org>
24964
24965 * callint.c (Fcall_interactively): Make the parsing of interactive
24966 specs somewhat more readable.
24967
249682007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24969
24970 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24971 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24972 if extended background has already been filled.
24973
249742007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24975
24976 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24977 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24978
24979 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24980 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24981 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24982 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24983 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24984 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24985 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24986 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24987 Run timers during dialog popup.
24988 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24989
249902007-06-21 Jason Rumney <jasonr@gnu.org>
24991
24992 * image.c (convert_mono_to_color_image): Swap fore and background.
24993
249942007-06-20 Jason Rumney <jasonr@gnu.org>
24995
24996 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24997 (w32_free_bdf_font): Unmap memory not handle.
24998
249992007-06-20 Sam Steingold <sds@gnu.org>
25000
25001 * gmalloc.c (__morecore): Fix the declaration to comply with the
25002 definition.
25003
250042007-06-20 Juanma Barranquero <lekktu@gmail.com>
25005
25006 * w32term.c (w32_delete_display): Remove leftover declaration.
25007 (w32_define_cursor, w32_initialize): Make static.
25008
25009 * w32.c (_wsa_errlist): Fix typo in error message.
25010 (init_environment): Ignore any environment variable from the
25011 registry having a null value.
25012
250132007-06-20 Glenn Morris <rgm@gnu.org>
25014
25015 * Makefile.in (LIBGIF): Default to -lgif.
25016
250172007-06-17 Jason Rumney <jasonr@gnu.org>
25018
25019 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25020 unicode strings.
25021
250222007-06-16 Juanma Barranquero <lekktu@gmail.com>
25023
25024 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25025 Fix typo in docstring.
25026
250272007-06-16 Eli Zaretskii <eliz@gnu.org>
25028
25029 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25030 and their keybindings.
25031
250322007-06-15 Chong Yidong <cyd@stupidchicken.com>
25033
25034 * composite.c (update_compositions): Fix last fix.
25035
250362007-06-14 Jason Rumney <jasonr@gnu.org>
25037
25038 * w32.c (get_process_times_fn): New function pointer.
25039 (globals_of_w32): Intialize it if present in kernel32.dll.
25040 (w32_get_internal_run_time): New function.
25041
25042 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25043
250442007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25045
25046 * composite.c (update_compositions): Check the validness of
25047 compositions.
25048
250492007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25050
25051 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25052 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25053
25054 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25055 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25056
25057 * macgui.h (USE_MAC_TOOLBAR): New define.
25058
25059 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25060 Return immediately unless popup is activated.
25061
25062 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25063 background to scroll bar gap.
25064 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25065 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25066 scroll bars on frame edge. Check fringe background extension.
25067 Don't clear extended fringe background area.
25068 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25069 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25070 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25071 [USE_MAC_TOOLBAR]: New macros.
25072 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25073 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25074 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25075 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25076 [USE_MAC_TOOLBAR]: New functions.
25077 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25078 manually if previous repositioning has failed.
25079 (mac_handle_keyboard_event): Use precomputed event kind.
25080 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25081 as tool bar item click. Handle mouse movement over tool bar items.
25082
25083 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25084 toolbar_win_gravity.
25085 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25086 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25087 Add externs.
25088
25089 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25090 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25091
250922007-06-14 Chong Yidong <cyd@stupidchicken.com>
25093
25094 * image.c (search_image_cache): Remove unused variable.
25095
250962007-06-13 Chong Yidong <cyd@stupidchicken.com>
25097
25098 * xfns.c, xmenu.c: Link to xaw3d if available.
25099
251002007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25101
25102 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25103 frame_foreground and frame_background.
25104
25105 * image.c (lookup_image): Save frame foreground and background colors.
25106 (search_image_cache): Check if saved and current frame colors match.
25107
251082007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25109
25110 * regex.c (regex_compile): Remove the `regnum' counter.
25111 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25112
251132007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25114
25115 * term.c: Include intervals.h to declare Fget_text_property.
25116
251172007-06-10 Jason Rumney <jasonr@gnu.org>
25118
25119 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25120
251212007-06-08 Juanma Barranquero <lekktu@gmail.com>
25122
25123 * callint.c (Fcall_interactively):
25124 * editfns.c (Fdelete_and_extract_region):
25125 * fileio.c (Fread_file_name):
25126 * fns.c (Fmapconcat):
25127 * keyboard.c (cmd_error_internal):
25128 * keymap.c (Fkey_description):
25129 * lread.c (openp):
25130 * minibuf.c (read_minibuf):
25131 * search.c (wordify):
25132 * sunfns.c (sel_read):
25133 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25134 * xfns.c (x_default_scroll_bar_color_parameter):
25135 * xmenu.c (menu_help_callback):
25136 * xselect.c (Fx_get_atom_name):
25137 * xterm.c (x_term_init): Use empty_unibyte_string.
25138
251392007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25140
25141 * alloc.c (init_strings): Initialize canonical empty strings.
25142 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25143 canonical empty string when the requested size is 0.
25144
25145 * emacs.c (empty_unibyte_string): Rename from empty_string.
25146 (empty_multibyte_string): New canonical empty string.
25147 (syms_of_emacs): Don't initialize empty_string.
25148
25149 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25150 string, if appropriate.
25151 (empty_unibyte_string, empty_multibyte_string): New externs.
25152 (empty_string): Remove extern.
25153
25154 * lread.c (syms_of_lread): Use empty_unibyte_string.
25155
251562007-06-07 Jason Rumney <jasonr@gnu.org>
25157
25158 * s/ms-w32.h: Don't define HAVE_TZNAME.
25159
25160 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25161
251622007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25163
25164 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25165
25166 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25167 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25168
25169 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25170 Don't call next handler.
25171 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25172 Remove argument. Install handler to application.
25173 (set_frame_menubar): Don't change deep_p.
25174 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25175 FRAME_OUTER_TO_INNER_DIFF_Y.
25176 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25177 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25178 [HAVE_DIALOGS]: New macros.
25179 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25180 Use them.
25181 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25182
25183 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25184 init_service_handler. All callers changed. Return OSStatus value.
25185
25186 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25187 All callers changed so as not to call SetPortWindowPort.
25188 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25189 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25190 mac_draw_string_common.
25191 (mac_draw_image_string_qd): Likewise.
25192 (mac_draw_string_common): Use them. Add INLINE.
25193 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25194 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25195 GetGlobalMouse.
25196 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25197 and FRAME_OUTER_TO_INNER_DIFF_Y.
25198 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25199 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25200 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25201 repositioning window to mac_handle_window_event.
25202 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25203 saving window location to mac_handle_window_event
25204 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25205 (install_menu_target_item_handler): Remove argument in extern.
25206 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25207 Also accept command events.
25208 (do_keystroke): New function created from XTread_socket.
25209 (init_command_handler): Remove functions.
25210 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25211 and save window location by kEventWindowShowing and kEventWindowHiding
25212 handlers here. Don't call next handler for window state change and
25213 focus events.
25214 (mac_handle_application_event, mac_handle_keyboard_event)
25215 [TARGET_API_MAC_CARBON]: New functions.
25216 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25217 kEventWindowShowing and kEventWindowHiding events. Move installation
25218 of mouse, font, text input and menu target item handlers to
25219 install_application_handler.
25220 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25221 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25222 New function.
25223 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25224 Register it.
25225 (XTread_socket) [TARGET_API_MAC_CARBON]:
25226 Consolidate SendEventToEventTarget calls.
25227 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25228 Move application activation handler to mac_handle_application_event.
25229 Move keyboard handler to mac_handle_keyboard_event.
25230 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25231 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25232 init_command_handler. Call install_application_handler.
25233
25234 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25235 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25236
252372007-06-07 Glenn Morris <rgm@gnu.org>
25238
25239 * emacs.c (main): Use `emacs-copyright' in --version output.
25240
252412007-06-06 Chong Yidong <cyd@stupidchicken.com>
25242
25243 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25244
252452007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25246
25247 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25248
25249 * macgui.h: Replace WindowPtr with WindowRef.
25250
25251 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25252 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25253 Replace ControlHandle with ControlRef.
25254 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25255
25256 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25257 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25258 Replace ControlHandle with ControlRef.
25259 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25260 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25261
25262 * macterm.h (struct scroll_bar): Rename member control_handle_low
25263 and control_handle_high to control_ref_low and control_ref_high.
25264 All uses changed.
25265 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25266 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25267 respectively. All uses changed.
25268 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25269 (install_window_handler, remove_window_handler): Replace WindowPtr
25270 with WindowRef in externs.
25271
252722007-06-05 Juanma Barranquero <lekktu@gmail.com>
25273
25274 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25275
252762007-06-03 Nick Roberts <nickrob@snap.net.nz>
25277
25278 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25279
25280 * frame.c (Fmouse_position, Fmouse_pixel_position):
25281 Condition on HAVE_GPM too.
25282
25283 * term.c (term_mouse_highlight): Remove unused variables.
25284 (Fterm_open_connection): Set gpm_zerobased to 1.
25285 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25286 Use zero based co-ordinates.
25287 (handle_one_term_event): Report a drag as mouse movement too.
25288
25289 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25290
252912007-06-03 Chong Yidong <cyd@stupidchicken.com>
25292
25293 * image.c (search_image_cache): New function. Require background
25294 color match if background color is unspecified in the image spec.
25295 (uncache_image, lookup_image): Use it.
25296
252972007-06-01 Juanma Barranquero <lekktu@gmail.com>
25298
25299 * window.c (Fshrink_window): Reflow docstring.
25300
253012007-06-02 Chong Yidong <cyd@stupidchicken.com>
25302
25303 * Version 22.1 released.
25304
253052007-06-01 Richard Stallman <rms@gnu.org>
25306
25307 * xfns.c (x_encode_text): Add GCPRO.
25308
253092007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25310
25311 * xfns.c (x_set_name_internal): Save encoded name before
25312 x_encode_text in case string data is relocated.
25313
253142007-05-31 Richard Stallman <rms@gnu.org>
25315
25316 * buffer.c (syms_of_buffer): Doc fix.
25317
253182007-05-30 Nick Roberts <nickrob@snap.net.nz>
25319
25320 * sysdep.c (init_sys_modes): Add rather than replace with
25321 O_NONBLOCK.
25322
25323 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25324 term_mouse_moveto.
25325
25326 * termhooks.h (term_mouse_moveto): New extern.
25327
25328 * term.c (mouse_face_window): Rename...
25329 (Qmouse_face_window): ...to this.
25330 (term_show_mouse_face, term_clear_mouse_face)
25331 (term_mouse_highlight): Use Qmouse_face_window.
25332 (term_mouse_moveto): New function.
25333 (term_mouse_position): Make it work.
25334 (syms_of_term): Uncomment assignment to mouse_position_hook.
25335 Staticpro Qmouse_face_window.
25336
253372007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25338
25339 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25340 around current_column call.
25341
253422007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25343
25344 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25345 * xdisp.c (next_element_from_buffer):
25346 * window.c (delete_window):
25347 * term.c (term_mouse_highlight):
25348 * msdos.c (getdefdir):
25349 * macterm.c (mac_create_bitmap_from_bitmap_data)
25350 (init_font_name_table):
25351 * fns.c (Fsxhash):
25352 * data.c (Fmake_local_variable):
25353 * ccl.c (ccl_driver): Likewise.
25354
253552007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25356
25357 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25358 Call mac_wakeup_from_rne on window size change.
25359
253602007-05-25 Chong Yidong <cyd@stupidchicken.com>
25361
25362 * image.c (uncache_image): Fix typo.
25363
253642007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25365
25366 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25367
253682007-05-22 Richard Stallman <rms@gnu.org>
25369
25370 * xterm.c (x_connection_closed): Remove NO_RETURN.
25371
253722007-05-22 Martin Rudalics <rudalics@gmx.at>
25373
25374 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25375
253762007-05-21 Chong Yidong <cyd@stupidchicken.com>
25377
25378 * image.c (uncache_image): New function.
25379 (Fimage_refresh): New function.
25380
253812007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25382
25383 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25384
253852007-05-20 Nick Roberts <nickrob@snap.net.nz>
25386
25387 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25388 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25389
253902007-05-20 Nick Roberts <nickrob@snap.net.nz>
25391
25392 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25393 conditional on [HAVE_GPM_H].
25394
253952007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25396
25397 * syntax.c (skip_chars): Update syntax-table only after we checked that
25398 the new location is valid.
25399
254002007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25401
25402 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25403 mac_get_window_bounds.
25404
254052007-05-20 Nick Roberts <nickrob@snap.net.nz>
25406
25407 * Makefile.in (LIBGPM): Allow it to be set from configure.
25408 If set then link Emacs with it.
25409
25410 * config.in: Regenerate.
25411
25412 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25413 New externs.
25414
25415 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25416 Include gpm.h.
25417 (handle_one_term_event, term_gpm): New externs.
25418
25419 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25420 and allow it to be interrupted by SIGIO.
25421
25422 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25423 (wait_reading_process_output): Wait on gpm_fd too.
25424 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25425 (add_gpm_wait_descriptor_called_flag): New variable.
25426 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25427
25428 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25429 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25430 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25431 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25432 (make_lispy_event): Add case GPM_CLICK_EVENT.
25433 (read_avail_input): Handle mouse input.
25434
25435 * term.c (write_glyphs_with_face): New function.
25436 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25437 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25438 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25439 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25440 (last_mouse_x, last_mouse_y): New variables.
25441 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25442 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25443 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25444 (Fterm_close_connection): New functions.
25445 (term_init): Initialise mouse_face_window.
25446
254472007-05-19 Chong Yidong <cyd@stupidchicken.com>
25448
25449 * xdisp.c (redisplay_window): If first window line is a
25450 continuation line, recompute the new window start instead of
25451 recentering.
25452
254532007-05-18 Glenn Morris <rgm@gnu.org>
25454
25455 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25456 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25457
254582007-05-17 Glenn Morris <rgm@gnu.org>
25459
25460 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25461
254622007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25463
25464 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25465 dead key repeat and up events.
25466
254672007-05-14 Chong Yidong <cyd@stupidchicken.com>
25468
25469 * image.c (pbm_load): Check image size for monochrome pbm.
25470
254712007-05-13 Chong Yidong <cyd@stupidchicken.com>
25472
25473 * xterm.c (XTread_socket): Revert last change.
25474
254752007-05-12 Chong Yidong <cyd@stupidchicken.com>
25476
25477 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25478
25479 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25480
254812007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25482
25483 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25484 mixup (YAILOM).
25485
254862007-05-07 Andreas Schwab <schwab@suse.de>
25487
25488 * keymap.c (Flookup_key): Fix typo in last change.
25489
254902007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25491
25492 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25493 mapping for unibyte strings.
25494
254952007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25496
25497 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25498 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25499
255002007-04-29 Richard Stallman <rms@gnu.org>
25501
25502 * insdel.c (replace_range): For undo, record insertion first.
25503
255042007-04-29 Andreas Schwab <schwab@suse.de>
25505
25506 * lisp.h (VECSIZE): Use OFFSETOF.
25507
255082007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25509
25510 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25511 disabled lines.
25512
255132007-04-28 Richard Stallman <rms@gnu.org>
25514
25515 * lread.c (read_escape): In a string, \s is always space.
25516
255172007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25518
25519 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25520
25521 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25522 submenu for menu bar items.
25523
25524See ChangeLog.10 for earlier changes.
25525
25526;; Local Variables:
25527;; coding: utf-8
25528;; add-log-time-zone-rule: t
aac0c6e3
MR
25529;; End:
25530
e3eb1dae 25531 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
25532
25533 This file is part of GNU Emacs.
25534
25535 GNU Emacs is free software: you can redistribute it and/or modify
25536 it under the terms of the GNU General Public License as published by
25537 the Free Software Foundation, either version 3 of the License, or
25538 (at your option) any later version.
25539
25540 GNU Emacs is distributed in the hope that it will be useful,
25541 but WITHOUT ANY WARRANTY; without even the implied warranty of
25542 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25543 GNU General Public License for more details.
25544
25545 You should have received a copy of the GNU General Public License
25546 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25547
25548;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40