]> code.delx.au - gnu-emacs/blob - src/ChangeLog
8ba00b65dddb1cddbf936a752a62462a6811e16e
[gnu-emacs] / src / ChangeLog
1 2006-05-26 Eli Zaretskii <eliz@gnu.org>
2
3 * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
4 [__MINGW32__]: MinGW-specific declaration of `etext'.
5
6 * w32heap.c (etext, edata): Remove unused definitions.
7
8 2006-05-26 Chong Yidong <cyd@stupidchicken.com>
9
10 * fileio.c (Fcopy_file): Delete argument MUSTBENEW. Incorporate
11 the exclusive file-opening functionality into the behavior when
12 OK-IF-ALREADY-EXISTS is nil.
13 (Frename_file): Call Fcopy_file without MUSTBENEW argument.
14
15 2006-05-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16
17 * sound.c (alsa_configure): Move get period/buffer_size after
18 setting hwparams.
19
20 2006-05-26 Kenichi Handa <handa@m17n.org>
21
22 * coding.c (Ffind_operation_coding_system): Allow (FILENAME
23 . BUFFER) in TARGET.
24
25 2006-05-25 Chong Yidong <cyd@stupidchicken.com>
26
27 * image.c (png_load): Don't call fclose on NULL.
28
29 2006-05-25 Luc Teirlinck <teirllm@auburn.edu>
30
31 * fns.c (Fyes_or_no_p):
32 * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
33 only seven args.
34
35 2006-05-25 Juri Linkov <juri@jurta.org>
36
37 * lisp.h (Fread_from_minibuffer): Decrement number of args.
38
39 * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed.
40 (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed.
41
42 * buffer.c (mode-line-format): Fix docstring.
43
44 2006-05-25 Richard Stallman <rms@gnu.org>
45
46 * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
47
48 2006-05-24 Luc Teirlinck <teirllm@auburn.edu>
49
50 * puresize.h (BASE_PURESIZE): Increase to 1210000.
51
52 2006-05-24 Alan Mackenzie <acm@muc.de>
53
54 * lread.c (Vload_history): Enhance doc-string to say that the file
55 is the absolute truename of the loaded file.
56
57 * lread.c (Vafter_load_alist): doc-string: state that an element
58 now has a regexp to match file names, not a file name as such.
59
60 * lread.c (readevalloop): Call file-truename on the name for
61 load-history, except at preloading time.
62
63 * lread.c (Fload): At preloading time, preserve the extension of
64 the filename which goes into load-history. New variable
65 hist_file_name.
66
67 * lread.c (Fload): Do eval-after-load stuff by calling the lisp
68 function do-after-load-evaluation.
69
70 2006-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
71
72 * mac.c (ae_attr_table): New variable.
73 (syms_of_mac): Intern and staticpro its elements.
74 (mac_aelist_to_lisp): Also convert Apple event attributes.
75 (mac_ae_put_lisp): New function.
76 (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
77
78 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
79
80 * macselect.c (Qemacs_suspension_id): New variable.
81 (syms_of_macselect): Intern and staticpro it.
82 (struct suspended_ae_info): New struct.
83 (deferred_apple_events, defer_apple_events)
84 (Fmac_process_deferred_apple_events): Use it.
85 (suspended_apple_events): New variable.
86 (mac_handle_apple_event_1): New function.
87 (mac_handle_apple_event): Use it. Don't process previously
88 suspended events.
89 (cleanup_suspended_apple_events, get_suspension_id)n
90 (cleanup_all_suspended_apple_events): New functions.
91 (init_apple_event_handler): Call cleanup_all_suspended_apple_events
92 at exit.
93 (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
94 (Fmac_resume_apple_event): New defuns.
95 (syms_of_macselect): Defsubr them.
96
97 * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
98 Fix last change. Don't map `fn' modifier if pressed with F1 ... F12.
99
100 * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
101 (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
102 (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
103 (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
104 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
105 Likewise.
106 (typeUTF8Text, kEventParamWindowMouseLocation)
107 [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
108 (x_get_focus_frame, mac_ae_put_lisp): Add externs.
109
110 2006-05-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
111
112 * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
113 (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
114 (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
115 (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
116 (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
117 resource to backtranslate key with modifiers.
118 (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
119
120 2006-05-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
121
122 * xterm.c: Remove declarations already in xterm.h
123
124 * xterm.h: Add extern declarations for x_clear_errors,
125 x_fully_uncatch_errors, x_catching_errors and
126 x_alloc_lighter_color_for_widget. Remove duplicated declarations.
127
128 2006-05-21 Richard Stallman <rms@gnu.org>
129
130 * xfaces.c (best_matching_font): Abort for best == NULL
131 before we start to use it.
132
133 * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
134
135 2006-05-20 Kim F. Storm <storm@cua.dk>
136
137 * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
138
139 2006-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
140
141 * macterm.c (convert_fn_keycode): Fix last change.
142
143 2006-05-19 Eli Zaretskii <eliz@gnu.org>
144
145 * w32.c (init_environment): Perform the processing of environment
146 variables on a copy of default variables and their values, not on
147 the original. Simplify code that calls ExpandEnvironmentStrings
148 and make buf1[] and buf2[] more visible for easier debugging.
149
150 2006-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
151
152 * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
153
154 * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
155
156 * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
157
158 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
159 Forward keyUp events to toolbox_dispatcher.
160
161 * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
162
163 2006-05-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
164
165 * config.in: Regenerated (HAVE_ALSA).
166
167 * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
168 (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
169 (snd_error_quiet, alsa_init): New functions.
170 (vox_init): Return 0 if unable to open device.
171 (Fplay_sound_internal): Test for alsa first and use vox (oss) as
172 a fallback.
173 (struct sound_device): Add period_size.
174 (wav_play, au_play): Use period_size if set.
175
176 * Makefile.in (CFLAGS_SOUND): New flags for ALSA
177 (ALL_CFLAGS): Add CFLAGS_SOUND
178
179 2006-05-18 Kenichi Handa <handa@m17n.org>
180
181 * callproc.c (Fcall_process): Reject encoding arguments by
182 ascii-incompatible coding systems (e.g. utf-16).
183
184 * coding.c (Qascii_incompatible): New variable.
185 (syms_of_coding): Setup Qascii_incompatible.
186 (setup_coding_system): Be sure to initialize coding->common_flags.
187 Check `ascii-incompatible' property of the coding system.
188
189 * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
190
191 2006-05-18 Kim F. Storm <storm@cua.dk>
192
193 * xdisp.c (display_tool_bar_line): Restore entire tool-bar geometry when
194 backtracking in case last image doesn't fit on line.
195
196 2006-05-18 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
197
198 * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by more than
199 height of one frame default line.
200
201 2006-05-17 Richard Stallman <rms@gnu.org>
202
203 * xfaces.c (better_font_p): Any font beats no font.
204 (best_matching_font): Simplify based on above change.
205
206 * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
207
208 2006-05-16 Kim F. Storm <storm@cua.dk>
209
210 * xterm.c (handle_one_xevent): Check that f is not NULL before
211 calling x_kill_gs_process.
212
213 2006-05-14 Richard Stallman <rms@gnu.org>
214
215 * textprop.c (Fnext_single_char_property_change)
216 (Fprevious_single_char_property_change): Don't allow returning
217 value beyond LIMIT in any cases.
218 (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
219
220 * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
221
222 2006-05-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
223
224 * xterm.c (handle_one_xevent): Check that f is not NULL before
225 calling _XEditResCheckMessages.
226
227 2006-05-14 Kim F. Storm <storm@cua.dk>
228
229 * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
230
231 2006-05-13 Eli Zaretskii <eliz@gnu.org>
232
233 * frame.c (x_set_border_width): Fix error message to say "frame",
234 not "window".
235
236 * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
237
238 2006-05-12 Chong Yidong <cyd@stupidchicken.com>
239
240 * intervals.c (set_point_both): Fix mixup before before and after
241 in variable names.
242
243 * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
244 while setting point temporarily.
245
246 2006-05-11 Richard Stallman <rms@gnu.org>
247
248 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
249
250 2006-05-11 Kim F. Storm <storm@cua.dk>
251
252 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
253
254 2006-05-11 Kenichi Handa <handa@m17n.org>
255
256 * fileio.c (Finsert_file_contents): Fix for the case of IO error
257 while handling replace operation.
258
259 2006-05-10 Kenichi Handa <handa@m17n.org>
260
261 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
262 chosen for the default face was different from the frame font,
263 adjust the frame font.
264
265 2006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
266
267 * image.c (Qduration) [MAC_OS]: Undo previous change.
268 (syms_of_image) [MAC_OS]: Likewise.
269 [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
270
271 * macfns.c (x_to_mac_color): Fix shift amount change.
272 (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
273 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
274
275 * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
276 Vmac_services_selection. All uses changed.
277 (mac_store_service_event): Rename from mac_store_services_event in
278 extern and calls.
279
280 * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses
281 changed.
282 [MAC_OSX] (mac_store_service_event): Rename from
283 mac_store_services_event. All callers changed.
284 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
285 FACE_ID and C. All callers changed.
286 (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
287 mac_set_font_info_for_selection when focus frame is destroyed.
288 (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
289
290 * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
291 args in extern.
292
293 2006-05-09 Chong Yidong <cyd@stupidchicken.com>
294
295 * keymap.c (describe_map): Avoid generating duplicate entries if
296 the shadowed binding has the same definition.
297
298 2006-05-09 Kenichi Handa <handa@m17n.org>
299
300 * keymap.c (push_key_description): Handle invalid character key.
301
302 2006-05-08 Kenichi Handa <handa@m17n.org>
303
304 * callproc.c (Fcall_process): Use system_eol_type for encoding
305 arguments if eol_type is not yet decided.
306
307 * coding.h (system_eol_type): Extern it.
308
309 * coding.c (setup_coding_system): For invalid coding-system, set
310 coding->eol_type to CODING_EOL_UNDECIDED.
311 (encode_coding): Cancel previous change.
312 (shrink_encoding_region): Likewise.
313 (code_convert_region1): Likewise.
314 (code_convert_string1): Likewise.
315 (code_convert_string_norecord): Likewise.
316
317 * fileio.c (choose_write_coding_system): Use system_eol_type for
318 encoding if eol_type is not yet decided.
319
320 * process.c (setup_process_coding_systems): Use system_eol_type
321 for encoding if eol_type is not yet decided.
322 (read_process_output): Likewise.
323 (send_process): Likewise.
324
325 2006-05-07 Juanma Barranquero <lekktu@gmail.com>
326
327 * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
328
329 2006-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
330
331 * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
332 (syms_of_mac): Likewise for defsubr.
333
334 * macfns.c (mac_set_font): New function.
335 (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
336 (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
337 kWindowToolbarButtonAttribute when creating window.
338 (Fmac_clear_font_name_table): Move from macfns.c.
339 (syms_of_macfns): Likewise for defsubr.
340 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
341 (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
342
343 * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
344 and build is done on Mac OS X 10.2 and later.
345
346 * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
347 (mac_store_services_event): Change return type in extern.
348
349 * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
350 FMFontFamily value.
351 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
352 (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
353 (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
354 (QWindow) [MAC_OSX]: Likewise.
355 (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
356 (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
357 (syms_of_macterm) [USE_ATSUI]: Defvar it.
358 (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
359 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
360 (syms_of_macterm): Intern and staticpro them.
361 (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
362 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event): New
363 function.
364 [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
365 [MAC_OSX] (mac_store_services_event): Likewise.
366 [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
367 kEventWindowToolbarSwitchMode event.
368 (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
369 [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
370 [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
371 (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
372 (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
373
374 * macterm.h (mac_set_font_info_for_selection): Add extern.
375
376 2006-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
377
378 * image.c (Qduration) [MAC_OS]: New variable.
379 (syms_of_image) [MAC_OS]: Intern and staticpro it.
380 [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
381 [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
382 instead of cfstring_create_with_string.
383
384 2006-05-06 Kim F. Storm <storm@cua.dk>
385
386 * .gdbinit (xframe): Print frame name.
387 (xlist): New command to print a list (max 10 elements).
388 (xpr): Print lisp object of any type.
389 (pitx): Print it->pixel_width.
390
391 2006-05-05 Kenichi Handa <handa@m17n.org>
392
393 * xdisp.c (handle_composition_prop): Fix for the case of empty
394 composition component.
395
396 2006-05-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
397
398 * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
399 from event->arg.
400
401 * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
402 MAC_APPLE_EVENT.
403
404 * macterm.h (mac_make_lispy_event_code): Remove extern.
405 (mac_post_mouse_moved_event): Add extern.
406 (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
407 `const AEDesc *' in externs.
408 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
409
410 * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
411 `const AEDesc *'.
412 [TARGET_API_MAC_CARBON] (create_apple_event): New function.
413 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
414 Use xrealloc instead of repeated xmalloc/xfree.
415 [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref): New
416 function.
417
418 * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
419
420 * macselect.c: Update copyright year.
421 (mac_store_apple_event): Change return type to void in extern.
422 (mac_handle_apple_event): Don't get return value from
423 mac_store_apple_event.
424 [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
425 (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
426 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
427 macterm.c. Use Vmac_dnd_known_types as acceptable flavors.
428 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New
429 implementation using create_apple_event_from_drag_ref.
430 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
431 (mac_do_receive_dragUPP): Move variables from macterm.c.
432 (install_drag_handler, remove_drag_handler): New functions.
433
434 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
435 path select also for proxy icon click.
436 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
437 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
438 (xlfdpat_create): Remove unused label `error' and trailing sentences.
439 (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
440 (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
441 macselect.c.
442 (install_drag_handler, remove_drag_handler): Add extern.
443 (mac_store_apple_event): Change return type to void. All uses changed.
444 Create Lisp object from Apple event and store it into input event.
445 (mac_make_lispy_event_code): Remove function.
446 [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
447 (install_window_handler): Call install_drag_handler.
448 (remove_window_handler): Call remove_drag_handler.
449
450 2006-05-03 Richard Stallman <rms@gnu.org>
451
452 * sound.c (Fplay_sound_internal): Dynamically allocate
453 current_sound_device and current_sound.
454 (sound_cleanup): Free them.
455
456 * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
457 when inside a keyboard macro.
458
459 2006-05-02 Andreas Schwab <schwab@suse.de>
460
461 * xmenu.c (restore_menu_items): Return a value.
462
463 2006-05-01 Martin Rudalics <rudalics@gmx.at>
464
465 * syntax.c (Fforward_comment): Detect generic comment at beginning of
466 buffer when moving backwards.
467
468 2006-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
469
470 * dispnew.c (update_window): Don't set changed_p when mode/header
471 line is updated.
472
473 * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
474 (get_glyph_face_and_encoding, get_char_face_and_encoding):
475 Don't distinguish known faces from others.
476
477 * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
478 through typeFileURL failed.
479
480 * macfns.c (mac_update_title_bar): New function.
481 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
482 (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
483 Call mac_prepare_for_quickdraw.
484
485 * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
486 (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
487 (enum pcm_status): New enum.
488 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
489 (XCharStructRow): Remove. Now validity is represented by
490 non-negativeness of sum of ascent and descent.
491 (struct MacFontStruct): Change type of member `rows'.
492 (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
493
494 * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
495 Adjust endpoints of strictly horizontal/vertical lines.
496 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
497 (pcm_init, pcm_get_status): New functions.
498 (x_per_char_metric, XLoadQueryFont): Use them instead of
499 XCharStructRow and related macros.
500 (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
501 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
502 (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
503 and window path pop-up menu on title bar.
504 (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
505
506 * macterm.h (mac_update_title_bar): Add extern.
507 (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
508 (FRAME_FILE_NAME): New macro.
509
510 * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
511
512 2006-04-30 Richard Stallman <rms@gnu.org>
513
514 * keymap.c (Fdefine_key): Improve error message
515 when KEY begins with a non-prefix key.
516
517 2006-04-30 Martin Rudalics <rudalics@gmx.at>
518
519 * syntax.c (Fforward_comment): Don't forget to break out of the loop
520 when we skipped backward over a generic comment.
521
522 2006-04-27 Nick Roberts <nickrob@snap.net.nz>
523
524 * .gdbinit (pp1, pv1): Only print value as expression is now
525 printed out by gud-print.
526 (pv1): Correct doc string.
527
528 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
529
530 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
531 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
532 keymap.c:895: error: address of register variable `def' requested.
533
534 2006-04-26 Jason Rumney <jasonr@gnu.org>
535
536 * w32term.c (construct_mouse_wheel): Handle negative coordinates.
537
538 * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
539 <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
540 where we preempt mouse_button_timer.
541
542 2006-04-25 Miles Bader <miles@gnu.org>
543
544 * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
545
546 2006-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
547
548 * process.h: Include headers for pid_t.
549
550 2006-04-24 Kim F. Storm <storm@cua.dk>
551
552 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
553 does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
554 (produce_stretch_glyph): Assume that face box height and width is
555 already included in stretch glyph size so caller doesn't have to
556 consider the extra space otherwise added (fixes problem in ses.el).
557
558 * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
559 matrices to force recalculation of tool-bar height after font change.
560
561 * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
562 Clear it when done, so we don't accidentally draw a second copy of
563 the tool-bar after resetting f->n_tool_bar_rows.
564 (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
565 we recalculate f->n_tool_bar_rows.
566
567 2006-04-23 Lars Hansen <larsh@soem.dk>
568
569 * editfns.c (find_field): Fix comment.
570 (Ffield_beginning): Fix bug when POS is at field beginning.
571
572 2006-04-22 Eli Zaretskii <eliz@gnu.org>
573
574 * puresize.h (BASE_PURESIZE): Increase to 1205000.
575
576 2006-04-21 Kim F. Storm <storm@cua.dk>
577
578 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
579 window start is at BEGV.
580
581 * dispextern.h (struct image): New member `corners'.
582 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
583
584 * image.c (four_corners_best): New arg CORNERS specifies what pixels
585 to look at in case image has margin.
586 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
587 (image_background, image_background_transparent)
588 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
589 (gif_load): Set img->corners according to image's margin spec.
590 Use img->corners values directly where applicable.
591 Save image extension data in img->data.lisp_val.
592 (gif_clear_image): New function to free img->data.lisp_val.
593 (gif_type): Use it instead of generic x_clear_image.
594 (Fimage_extension_data): New defun.
595 (syms_of_image): Defsubr it.
596
597 2006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
598
599 * window.c (Fdisplay_buffer): Doc fix.
600
601 2006-04-21 Eli Zaretskii <eliz@gnu.org>
602
603 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
604
605 2006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
606
607 * image.c [MAC_OS] (xpm_load_image): Fill in background field
608 while we have ximg handy.
609
610 * macmenu.c (restore_menu_items, save_menu_items): New functions
611 from xmenu.c.
612 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
613 changes for xmenu.c.
614
615 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
616 (add_mac_font_name): New function.
617 (init_font_name_table): Use it. Adopt the first found font from
618 those having the same family name.
619
620 2006-04-21 Nick Roberts <nickrob@snap.net.nz>
621
622 * xdisp.c (note_mouse_highlight): Use build_string.
623
624 2006-04-20 Lars Hansen <larsh@soem.dk>
625
626 * textprop.c (Fremove_list_of_text_properties):
627 Ensure modify_region is called only when buffer is modified and that
628 signal_after_change is allways called in that case.
629
630 * print.c (PRINTFINISH): Call signal_after_change.
631
632 2006-04-20 Kim F. Storm <storm@cua.dk>
633
634 * xdisp.c (redisplay_window): Fix last change.
635
636 * xdisp.c (redisplay_window): If current window start is not at the
637 beginning of a line, select a new window start if buffer is modified
638 and window start is in the modified region, but the first change is
639 before window start.
640
641 2006-04-18 Richard Stallman <rms@gnu.org>
642
643 * xmenu.c (restore_menu_items, save_menu_items): New fns.
644 (set_frame_menubar): Use save_menu_items. Save updated vector in
645 the frame before unwinding it. Don't use unuse_menu_items.
646 Don't use discard_menu_items.
647 (digest_single_submenu): Abort if an item is not in a pane.
648 (init_menu_items): Put the error check at the top.
649
650 * keymap.c (describe_map): Make "shadowed" warning more verbose.
651
652 * window.c (adjust_window_trailing_edge): Correctly distinguish
653 series vs parallel cases, even when window has no parent.
654
655 * abbrev.c (record_symbol): New function.
656 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
657
658 2006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
659
660 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
661 value of xmalloc.
662
663 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
664 (create_apple_event_from_event_ref, xrm_get_preference_database)
665 (cfstring_create_normalized): Don't check return value of xmalloc.
666
667 * macselect.c (get_scrap_target_type_list, defer_apple_events)
668 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
669 return value of xmalloc/xrealloc.
670
671 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
672 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
673 (XLoadQueryFont, mac_store_apple_event): Don't check return value
674 of xmalloc.
675
676 2006-04-17 Kim F. Storm <storm@cua.dk>
677
678 * window.c (coordinates_in_window): On the vertical border,
679 calculate the row number measured from the top of the window, not
680 the top of the frame.
681 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
682 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
683
684 2006-04-16 Eli Zaretskii <eliz@gnu.org>
685
686 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
687
688 2006-04-16 Romain Francoise <romain@orebokech.com>
689
690 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
691
692 2006-04-16 Andreas Schwab <schwab@suse.de>
693
694 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
695
696 2006-04-15 Romain Francoise <romain@orebokech.com>
697
698 * puresize.h (BASE_PURESIZE): Increment to 1210000.
699
700 2006-04-13 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
701
702 * print.c (Fprin1_to_string): Mention in the `doc' that the
703 behavior is modified by `print-level' and `print-length'.
704
705 2006-04-13 Kenichi Handa <handa@m17n.org>
706
707 * coding.c (setup_coding_system): If eol-type is not yet decided
708 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
709 If coding_system is nil, return 0.
710 (code_convert_region1): Even if coding_system is nil, don't skip
711 conversion if system_eol_type is not LF.
712 (code_convert_string1): Likewise.
713 (code_convert_string_norecord): Likewise.
714
715 2006-04-13 Kenichi Handa <handa@m17n.org>
716
717 * coding.c (setup_coding_system): Fix previous change.
718 (encode_coding): If eol_type is not yet decided, use system_eol_type.
719 (shrink_encoding_region): If eol_type is not yet decided and
720 system_eol_type is not LF, don't shrink.
721
722 2006-04-13 Nick Roberts <nickrob@snap.net.nz>
723
724 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
725 line.
726
727 2006-04-12 Richard Stallman <rms@gnu.org>
728
729 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
730
731 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
732 (Fprocess_send_eof): Abort if fail to open null device.
733
734 2006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
735
736 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
737
738 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
739 assignment used as truth value. Add explicit braces to avoid
740 ambiguous `else'.
741 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
742
743 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
744 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
745 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
746 Put externs in #ifdef HAVE_X_WINDOWS.
747 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
748 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
749 (init_mac_osx_environment) [MAC_OSX]: Add extern.
750
751 * mac.c (init_process): Remove undef.
752 (select) [MAC_OSX]: Undefine before including sysselect.h.
753 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
754 Remove functions and prototypes.
755 (parse_value): Add parentheses around + inside shift.
756 (path_from_vol_dir_name): Make static.
757 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
758 [!MAC_OSX] (get_path_to_system_folder): Likewise.
759 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
760 variable `cCode'.
761 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
762 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
763
764 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
765 (x_set_mouse_color): Remove unused variable `dpy'.
766 (Fx_create_frame): Remove unused variable `x_frame_count'.
767 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
768 (x_sync): Move from macterm.c.
769 (Fx_file_dialog): Remove unused variable `default_filter_index'.
770
771 * macmenu.c (min_menu_id): Make element type explicit.
772
773 * macselect.c (get_flavor_type_from_symbol): Remove unused
774 variable `val'.
775 (get_scrap_private_timestamp, x_get_foreign_selection)
776 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
777 (Fmac_process_deferred_apple_events): Remove unused variables
778 `keyword', `reply', `apple_event', `count', and `err'.
779
780 * macterm.c: Don't include gnu.h.
781 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
782 (x_sync): Move to macfns.c.
783 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
784 variable `mask_bits'.
785 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
786 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
787 (x_mac_to_emacs_modifiers): Remove function.
788 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
789 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
790 Add explicit braces to avoid ambiguous `else'.
791 (x_make_frame_visible): Remove unused variables `type',
792 `original_top', and `original_left'.
793 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
794 (x_load_font): Remove unused variables `full_name', and `value'.
795 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
796 Remove functions.
797 (do_zoom_window): Reorganize variables with respect to conditionals.
798 (init_command_handler): Remove unused variable `err'.
799 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
800
801 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
802 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
803 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
804 (do_menu_choice, have_menus_p, x_real_positions)
805 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
806 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
807 (free_frame_menubar): Add externs.
808
809 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
810 (malloc, realloc, free): Add undefs.
811 (read_load_commands): Remove unused variable `n' and `j'.
812 (copy_data_segment): Remove unused variable `r'.
813
814 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
815 within ||. Add explicit braces to avoid ambiguous `else'.
816 (dump_glyph_row): Remove label for `inverse_p' from legend.
817
818 * xfaces.c (Finternal_merge_in_global_face, try_font_list):
819 Add explicit braces to avoid ambiguous `else'.
820
821 2006-04-11 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
822
823 * dispnew.c (init_display): Don't init X display if the user asked
824 for a non-X display.
825
826 2006-04-12 Kenichi Handa <handa@m17n.org>
827
828 * coding.c (setup_coding_system): Use system_eol_type for default
829 coding->eol_type.
830
831 2006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
832
833 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
834
835 * data.c (wrong_type_argument): Try to avoid compiler warnings due
836 to the fact the function is now marked as NO_RETURN.
837
838 2006-04-10 Eli Zaretskii <eliz@gnu.org>
839
840 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
841
842 2006-04-10 Romain Francoise <romain@orebokech.com>
843
844 * xrdb.c (gethomedir): Use xstrdup.
845
846 2006-04-10 Andreas Schwab <schwab@suse.de>
847
848 * xrdb.c (gethomedir): Make sure to always return a pointer that
849 can be passed to free.
850
851 2006-04-09 Richard Stallman <rms@gnu.org>
852
853 * lisp.h (Fkill_emacs): Undo previous change.
854
855 2006-04-08 Richard Stallman <rms@gnu.org>
856
857 * search.c (boyer_moore): Test ch >= 0400, not >.
858
859 2006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
860
861 * puresize.h (pure_write_error): Mark as NO_RETURN.
862
863 * lisp.h (args_out_of_range, args_out_of_range_3)
864
865 2006-04-08 Eli Zaretskii <eliz@gnu.org>
866
867 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
868 if a menu is active on this frame.
869
870 2006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
871
872 * lisp.h (report_file_error): Mark as NO_RETURN.
873
874 2006-04-08 Eli Zaretskii <eliz@gnu.org>
875
876 * alloc.c [STDC_HEADERS]: Include stddef.h.
877
878 * lisp.h (PSEUDOVECSIZE): Fix last change.
879
880 2006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
881
882 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
883 `raw_status_high', and `raw_status_low' with plain integers, and move
884 them to the end of the structure.
885
886 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
887 pseudovector's size field so only the Lisp_Object fields get GC'd.
888
889 * process.c (update_status, make_process, Fdelete_process)
890 (Fprocess_status, list_processes_1, start_process_unwind)
891 (create_process, Fmake_network_process, server_accept_connection)
892 (wait_reading_process_output, send_process, Fprocess_running_child_p)
893 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
894 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
895 `pid' and `raw_status'.
896 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
897 representing PIDs that are larger than most-positive-fixnum.
898
899 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
900
901 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
902
903 2006-04-08 Eli Zaretskii <eliz@gnu.org>
904
905 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
906
907 2006-04-03 Paul Eggert <eggert@cs.ucla.edu>
908
909 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
910 ../lib-src/b2m.c and ../lib-src/editfns.c.
911 (Fcurrent_time_string): Use it.
912 Document that the year might not consume 4 columns if it's outside
913 the range 1000-9999.
914 Check for asctime failure.
915 Don't assume that the output string length is always exactly 24.
916
917 2006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
918
919 * macterm.c (XTread_socket): Initialize variable `f' before its use.
920
921 2006-04-03 Kenichi Handa <handa@m17n.org>
922
923 * image.c: Include "charset.h" and "coding.h".
924 (x_find_image_file): Return an encoded file name.
925
926 2006-04-01 Eli Zaretskii <eliz@gnu.org>
927
928 * configure: Regenerated.
929
930 2006-03-31 Kenichi Handa <handa@m17n.org>
931
932 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
933
934 2006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
935
936 * xdisp.c (syms_of_xdisp): Fix variable name.
937
938 2006-03-30 Kenichi Handa <handa@m17n.org>
939
940 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
941
942 2006-03-29 Juanma Barranquero <lekktu@gmail.com>
943
944 * keyboard.c (process_tool_bar_item): Reorder dummy args.
945
946 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
947
948 * keyboard.c (tool_bar_items): Use map_keymap.
949 (process_tool_bar_item): Add dummy args to fit the required interface.
950
951 2006-03-25 Eli Zaretskii <eliz@gnu.org>
952
953 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
954 to zero before calling debug_print or safe_debug_print.
955
956 * print.c (print_output_debug_flag): New global variable.
957 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
958 OutputDebugString if print_output_debug_flag is zero.
959
960 2006-03-24 Paul Eggert <eggert@cs.ucla.edu>
961
962 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
963 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
964 (Fdecode_time): Cast tm_year to EMACS_INT.
965 (Fcurrent_time_string): Report an invalid time specification if
966 the argument is invalid. Also, check for out-of-range time stamps.
967
968 2006-03-24 Kim F. Storm <storm@cua.dk>
969
970 * xterm.c (handle_one_xevent):
971 * w32term.c (w32_read_socket):
972 * macterm.c (XTread_socket): Don't let key-press clear mouse face
973 on in toolbar window if mouse-highlight is an integer.
974
975 * fns.c (sxhash_list): Include last non-nil CDR in hash.
976
977 2006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
978
979 * macmenu.c (enum mac_menu_kind): New enum.
980 (min_menu_id): New variable.
981 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
982 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
983 min_menu_id and enumerators in enum mac_menu_kind.
984 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
985 All uses changed. Add range check for menu ID.
986 (fill_menubar): Add range check for menu ID.
987 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
988 GetEventParameter.
989 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
990 for each menu kind.
991
992 2006-03-22 Kim F. Storm <storm@cua.dk>
993
994 * xdisp.c: Undo 2006-03-21 change.
995
996 * term.c: Define aliases for append_glyph and produce_stretch_glyph
997 when `static' is defined to avoid name clash with those in xdisp.c.
998
999 * process.c (Faccept_process_output): Fix to comply with lisp reference.
1000 Change arg "timeout" to "seconds" and allow both integer and float value.
1001 Change arg "timeout-msec" to "millisec" and interpret" as milliseconds
1002 rather than microseconds. Fix doc string accordingly.
1003
1004 2006-03-21 Ken Raeburn <raeburn@raeburn.org>
1005
1006 * xdisp.c (store_next_glyph): Rename from append_glyph.
1007 (generate_stretch_glyph): Rename from produce_stretch_glyph.
1008 All callers changed accordingly.
1009
1010 2006-03-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1011
1012 * xterm.c: x_session_initialized new variable.
1013 (x_term_init): Use x_session_initialized to check if
1014 x_session_initialize should be called.
1015 (x_initialize): Initialize x_session_initialized.
1016
1017 2006-03-21 Kim F. Storm <storm@cua.dk>
1018
1019 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
1020 bitmap here, but ...
1021 (update_window_fringes): ... here, so we can test if it has changed.
1022
1023 2006-03-20 Andreas Schwab <schwab@suse.de>
1024
1025 * dispnew.c (init_display): Check DISPLAY here.
1026
1027 * emacs.c (main): Don't check here.
1028
1029 * xterm.c (x_display_ok): Don't use DISPLAY env var.
1030
1031 2006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1032
1033 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
1034 mixup (YAILOM).
1035
1036 2006-03-20 Eli Zaretskii <eliz@gnu.org>
1037
1038 * emacs.c (main): Fix last change.
1039
1040 2006-03-20 Kenichi Handa <handa@m17n.org>
1041
1042 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
1043
1044 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
1045
1046 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
1047
1048 * xterm.c (x_term_init): Remove unnecessary GCPRO.
1049
1050 2006-03-19 Kim F. Storm <storm@cua.dk>
1051
1052 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
1053 so it doesn't associate overlay string with following glyph by default.
1054 Allow integer property value to specify explicit number of buffer
1055 positions associate with overlay string.
1056
1057 2006-03-18 Chong Yidong <cyd@stupidchicken.com>
1058
1059 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
1060
1061 2006-03-18 Nozomu Ando <nand@mac.com>
1062
1063 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
1064 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
1065 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
1066 Don't redefine.
1067
1068 * m/mips.h: Don't use unexmips on NetBSD.
1069 (LIBS_MACHINE): Move definition lower, so it doesn't use
1070 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
1071 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
1072
1073 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
1074 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
1075 option is broken (e.g., MIPS/NetBSD).
1076
1077 2006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
1078
1079 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
1080 Remove the HAVE_X_WINDOWS conditional.
1081
1082 2006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
1083
1084 * emacs.c (main): If user asks for a display that is unavailable,
1085 simulate -nw.
1086
1087 * xterm.c (x_display_ok): New function.
1088
1089 * xterm.h: Add prototype for x_display_ok.
1090
1091 2006-03-18 Eli Zaretskii <eliz@gnu.org>
1092
1093 * w32fns.c (Fw32_select_font): Doc fix.
1094
1095 2006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1096
1097 * image.c [MAC_OS] (XPutPixel, XGetPixel)
1098 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
1099 version when depth is 32.
1100 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
1101 New function.
1102 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
1103 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
1104
1105 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
1106 Create GWorld in ARGB pixel format.
1107 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
1108 Remove functions.
1109 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
1110 instead of mac_copy_area/mac_copy_area_with_mask.
1111
1112 2006-03-15 Kim F. Storm <storm@cua.dk>
1113
1114 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
1115 empty row. Fixes memory corruption revealed by 2006-03-02 change.
1116 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
1117 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
1118 width is exactly the same as the window width. Don't count a final
1119 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
1120
1121 2006-03-15 Juanma Barranquero <lekktu@gmail.com>
1122
1123 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
1124 conditional on HAVE_NTGUI, not WINDOWS_NT.
1125
1126 2006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1127
1128 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
1129
1130 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
1131
1132 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
1133 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
1134 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
1135 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
1136 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
1137 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
1138 instead of mac_draw_bitmap.
1139 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
1140 define_fringe_bitmap and destroy_fringe_bitmap.
1141
1142 2006-03-14 Chong Yidong <cyd@stupidchicken.com>
1143
1144 * xterm.c (x_uncatch_errors): Block input for entire function.
1145
1146 2006-03-12 Jason Rumney <jasonr@gnu.org>
1147
1148 * w32fns.c (Fx_create_frame): Remove call to
1149 Qface_set_after_frame_default (from xfns.c 2003-05-26).
1150
1151 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
1152 finished with the menu.
1153
1154 * w32term.c: Sync 2005-10-24 xterm.c changes.
1155 (last_mouse_glyph_frame): New var.
1156 (note_mouse_movement): Say mouse moved if current frame differs
1157 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
1158 (w32_mouse_position): Set last_mouse_glyph_frame.
1159 Remove OLD_REDISPLAY_CODE block.
1160
1161 2006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1162
1163 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
1164
1165 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
1166 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
1167
1168 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
1169
1170 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
1171
1172 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
1173 (x_draw_composite_glyph_string_foreground)
1174 (x_draw_image_foreground): Undo previous changes.
1175 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
1176 argument of mac_draw_rectangle.
1177 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
1178 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
1179 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
1180 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
1181 [USE_CG_DRAWING]: New functions.
1182 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
1183 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
1184 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
1185 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
1186 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
1187 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
1188 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
1189
1190 2006-03-12 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1191
1192 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
1193
1194 2006-03-11 Jason Rumney <jasonr@gnu.org>
1195
1196 * w32fns.c (signal_user_input): New function.
1197 (post_character_message): Use it for keyboard input.
1198 (w32_msg_pump): Use it for mouse input.
1199
1200 2006-03-11 Luc Teirlinck <teirllm@auburn.edu>
1201
1202 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
1203 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
1204
1205 2006-03-11 Eli Zaretskii <eliz@gnu.org>
1206
1207 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
1208 if a menu is already active (the menubar_active flag is on).
1209
1210 2006-03-11 David Ponce <david@dponce.com>
1211
1212 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
1213
1214 2006-03-11 Eli Zaretskii <eliz@gnu.org>
1215
1216 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
1217 the list of unused display error handling functions.
1218
1219 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
1220 HAVE_X_WINDOWS.
1221 (internal_condition_case, internal_condition_case_1)
1222 (internal_condition_case_2): Call x_catching_errors only if
1223 HAVE_X_WINDOWS.
1224
1225 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
1226 Don't include sys/resource.h unless defined.
1227
1228 2006-03-11 Richard Stallman <rms@gnu.org>
1229
1230 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
1231
1232 * vm-limit.c (get_lim_data, lim_data, data_space_start):
1233 Move from mem-limits.h.
1234 (enum warnlevel): New data type.
1235 (check_memory_limits): Rewrite the logic about warnings.
1236 Use standard `struct rlimit'. Check return values for nonsense.
1237 (memory_warnings): Always clear lim_data.
1238
1239 * mem-limits.h (get_lim_data, lim_data, data_space_start):
1240 Move to vm-limit.c.
1241
1242 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
1243
1244 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
1245 (internal_condition_case_1, internal_condition_case_2):
1246 Abort if within unclosed x_catch_errors.
1247
1248 2006-03-11 Romain Francoise <romain@orebokech.com>
1249
1250 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
1251
1252 2006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1253
1254 * lisp.h: Remove duplicate prototypes. Make the prototype of
1255 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
1256
1257 2006-03-11 Eli Zaretskii <eliz@gnu.org>
1258
1259 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
1260 argument of XDrawRectangle.
1261
1262 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
1263
1264 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
1265 (x_draw_glyph_string_foreground)
1266 (x_draw_composite_glyph_string_foreground)
1267 (x_draw_image_foreground): Don't subtract 1 from width and height
1268 arguments to mac_draw_rectangle.
1269 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
1270
1271 2006-03-10 Kim F. Storm <storm@cua.dk>
1272
1273 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
1274
1275 2006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
1276
1277 * alloc.c (USE_POSIX_MEMALIGN): New macro.
1278 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
1279
1280 2006-03-09 Kenichi Handa <handa@m17n.org>
1281
1282 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
1283 ASCII component of a composition.
1284
1285 2006-03-08 Luc Teirlinck <teirllm@auburn.edu>
1286
1287 * window.c: Declare preserve_y as a static global variable.
1288 (window_scroll_pixel_based): No longer declare preserve_y;
1289 it is global now.
1290 (syms_of_window): Set preserve_y to -1.
1291
1292 2006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1293
1294 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
1295 depth is 32.
1296 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
1297 depth is 32.
1298
1299 2006-03-06 Chong Yidong <cyd@stupidchicken.com>
1300
1301 * xdisp.c (handle_invisible_prop): Don't update it->position with
1302 a buffer position if we're in a display string.
1303
1304 2006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1305
1306 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
1307 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
1308
1309 * macfns.c (x_default_scroll_bar_color_parameter)
1310 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
1311 Remove unnecessary prototypes.
1312 (x_set_scroll_bar_default_width):
1313 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
1314 (mac_set_scroll_bar_width): New function.
1315 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
1316
1317 * macterm.c (get_control_part_bounds): Fix type of return value.
1318 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
1319 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
1320 scroll bar if it is not tall enough to display scroll bar thumb.
1321 [USE_CARBON_EVENTS] (mac_convert_event_ref)
1322 (mac_handle_command_event, mac_handle_window_event)
1323 (mac_handle_mouse_event): Check error code of GetEventParameter.
1324 (convert_fn_keycode) [MAC_OSX]: Likewise.
1325
1326 2006-03-05 Andreas Schwab <schwab@suse.de>
1327
1328 * xselect.c (x_catch_errors_unwind): Fix missing return value.
1329
1330 2006-03-02 Kim F. Storm <storm@cua.dk>
1331
1332 * frame.h (struct frame): New member n_tool_bar_rows.
1333
1334 * xdisp.c: Minimize the unpleasent visual impact of the requirement
1335 that non-toolkit tool-bars must occupy an integral number of screen
1336 lines, by distributing the rows evenly over the tool-bar screen area.
1337 (Vtool_bar_border): New variable.
1338 (syms_of_xdisp): DEFVAR_LISP it.
1339 (display_tool_bar_line): Add HEIGHT arg for desired row height.
1340 Make tool-bar row the desired height. Use default face for border
1341 below tool-bar.
1342 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
1343 actual tool-bar rows.
1344 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
1345 Adjust the height of the tool-bar rows to fill tool-bar screen area.
1346 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
1347 is resized.
1348
1349 2006-03-01 Luc Teirlinck <teirllm@auburn.edu>
1350
1351 * search.c (Fregexp_quote): Do not precede a literal `]' with two
1352 backslashes to try to make clear that it has a literal meaning; it
1353 does not do that. (It could close a character alternative
1354 containing a backslash.)
1355
1356 2006-02-28 Chong Yidong <cyd@stupidchicken.com>
1357
1358 * xselect.c (x_catch_errors_unwind): New function.
1359 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
1360 (Fx_get_atom_name): Call x_uncatch_errors earlier.
1361
1362 * window.c (Qscroll_up, Qscroll_down): New syms.
1363 (window_scroll_pixel_based): Make preserve_y static to avoid
1364 getting point stuck when scrolling 1 line.
1365
1366 2006-02-26 Chong Yidong <cyd@stupidchicken.com>
1367
1368 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
1369
1370 * xterm.c (x_load_font, x_term_init, XTmouse_position)
1371 (handle_one_xevent, x_connection_closed, x_list_fonts):
1372 No arg for x_uncatch_errors.
1373
1374 * xselect.c (x_own_selection, x_decline_selection_request)
1375 (x_reply_selection_request, x_get_foreign_selection)
1376 (Fx_get_atom_name, Fx_send_client_event): Likewise.
1377
1378 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
1379 Likewise.
1380
1381 2006-02-26 Luc Teirlinck <teirllm@auburn.edu>
1382
1383 * lread.c: Declare Vload_file_rep_suffixes instead of
1384 deleted variable default_suffixes.
1385 (Fget_load_suffixes): New function.
1386 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
1387 No longer use deleted variable default_suffixes. Update docstring.
1388 (syms_of_lread): defsubr Sget_load_suffixes.
1389 Expand `load-suffixes' docstring.
1390 Delete default_suffixes and DEFVAR_LISP the new variable
1391 `load-file-rep-suffixes'.
1392
1393 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
1394 of Vload_suffixes.
1395
1396 * lisp.h: EXFUN Fget_load_suffixes.
1397 Extern Vload_file_rep_suffixes.
1398
1399 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
1400 with lisp.h.
1401
1402 2006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
1403
1404 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
1405 qualifier which was trying to avoid the bug that was fixed by
1406 yesterday's changes to xterm.c.
1407
1408 2006-02-25 Chong Yidong <cyd@stupidchicken.com>
1409
1410 * xterm.h (x_catch_errors) Return value changed to void.
1411 (x_uncatch_errors): Delete unused count argument.
1412
1413 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
1414 it can be called in a signal handler.
1415 (x_catch_errors_unwind): Function deleted.
1416 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
1417 (x_check_errors): Call x_uncatch_errors before signalling error.
1418
1419 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
1420 (x_connection_closed, x_list_fonts): Use new versions of
1421 x_catch_errors and x_uncatch_errors.
1422
1423 * xselect.c (x_own_selection, x_decline_selection_request)
1424 (x_reply_selection_request, x_get_foreign_selection)
1425 (Fx_get_atom_name, Fx_send_client_event): Likewise.
1426
1427 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
1428 Likewise.
1429
1430 * eval.c (record_unwind_protect): Add an assertion.
1431
1432 2006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
1433
1434 * process.c (Fmake_network_process): Init the process's mark.
1435
1436 2006-02-25 Kim F. Storm <storm@cua.dk>
1437
1438 * buffer.c (modify_overlay): Force redisplay if we modify an
1439 overlay at the end of the buffer.
1440
1441 2006-02-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1442
1443 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
1444 nil the image file has been removed, in that case use the (cached)
1445 pixmap.
1446
1447 2006-02-24 Kenichi Handa <handa@m17n.org>
1448
1449 * fileio.c (Finsert_file_contents): When a text is replaced
1450 partially, be sure to set point before the inserted characters.
1451
1452 2006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
1453
1454 * xfns.c (Fx_file_dialog): Return a decoded file name.
1455
1456 2006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1457
1458 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
1459 glyph whose face is extended to the text area end.
1460
1461 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
1462 values if control is not visible or values are not changed.
1463
1464 2006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
1465
1466 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
1467 The default `window' should not be "on a different frame".
1468
1469 2006-02-22 Kim F. Storm <storm@cua.dk>
1470
1471 * indent.c (Fvertical_motion): Only try to move back if we can.
1472
1473 2006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1474
1475 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
1476 n_clip_rects.
1477
1478 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
1479 xmenu.c.
1480
1481 * macterm.c (GC_CLIP_REGION): Remove macro.
1482 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
1483 All uses changed. Don't do clipping if n_clip_rects is zero.
1484 (mac_set_clip_rectangles): Use xassert instead of abort.
1485 Set n_clip_rects. Don't make clip_region empty when number of
1486 clipping rectangles is zero.
1487 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
1488 calling mac_set_clip_rectangles.
1489 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
1490 avoid multiple redraws.
1491
1492 2006-02-22 Kim F. Storm <storm@cua.dk>
1493
1494 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
1495
1496 2006-02-21 Kim F. Storm <storm@cua.dk>
1497
1498 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
1499
1500 2006-02-21 Zhang Wei <brep@newsmth.org>
1501
1502 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
1503 returning it.
1504
1505 2006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1506
1507 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
1508 (standard_bitmaps): Use it.
1509
1510 2006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1511
1512 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
1513 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
1514 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
1515 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
1516 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
1517 Draw background if BG_WIDTH is not zero. Use float constants as
1518 divisors instead of double. Use alloca instead of xmalloc/xfree.
1519 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
1520 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
1521 mac_draw_image_string* functions.
1522 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
1523 some fonts when srcCopy text transfer mode might be used.
1524 (mac_begin_clip, mac_end_clip): Check if region is empty.
1525 (mac_set_clip_rectangles): When resetting clip region, make it
1526 empty instead of disposing of it.
1527
1528 2006-02-20 Kim F. Storm <storm@cua.dk>
1529
1530 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
1531
1532 * buffer.h (struct buffer): New members fringe_indicator_alist and
1533 fringe_cursor_alist.
1534
1535 * buffer.c (init_buffer_once): Set dummy default values for
1536 fringe-indicator-alist and fringe-cursor-alist. The proper
1537 default values are set by pre-loading fringe.el.
1538 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
1539 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
1540 corresponding default- variables.
1541
1542 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
1543 to use `int'.
1544 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
1545 Define explicitly.
1546 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
1547 (Qhollow_small): New variables.
1548 (syms_of_fringe): Intern and staticpro them.
1549 (question_mark_bits): Rename from unknown_bits.
1550 (left_curly_arrow_bits): Rename from continuation_bits.
1551 (right_curly_arrow_bits): Rename from continued_bits.
1552 (left_triangle_bits): Rename from ov_bits.
1553 (right_triangle_bits): Add.
1554 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
1555 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
1556 (filled_square_bits): Add.
1557 (vertical_bar_bits): Rename from bar_cursor_bits.
1558 (horizontal_bar_bits): Rename from hbar_cursor_bits.
1559 (empty_line_bits): Rename from zv_bits.
1560 (standard_bitmaps): Update to use new names.
1561 (draw_fringe_bitmap_1): Make static.
1562 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
1563 to map from logical cursors and indicators to physical bitmaps.
1564 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
1565 bitmaps using symbol names instead of bitmap numbers.
1566 (update_window_fringes): Use logical indicator symbol names
1567 instead of bitmap numbers for logical. Add bitmap cache.
1568 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
1569
1570 2006-02-20 Chong Yidong <cyd@stupidchicken.com>
1571
1572 * regex.c: Revert 2006-02-19 change.
1573 (xmalloc, xrealloc): Define these when not linked to Emacs.
1574 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
1575
1576 2006-02-19 Luc Teirlinck <teirllm@auburn.edu>
1577
1578 * regex.c (extend_range_table_work_area): Fix typo.
1579
1580 2006-02-19 Richard M. Stallman <rms@gnu.org>
1581
1582 * xterm.c (x_catch_errors): Use xmalloc.
1583
1584 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
1585 (regex_compile): Likewise.
1586 (regcomp): Use xmalloc.
1587
1588 * gtkutil.c (malloc_widget_value): Use xmalloc.
1589
1590 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
1591 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
1592
1593 * xmenu.c (digest_single_submenu): When pane_string is empty,
1594 do initialize save_wv.
1595
1596 2006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1597
1598 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
1599 w->update_mode_line if arg F is not the selected frame.
1600
1601 * macmenu.c (popup_activated_flag, submenu_id)
1602 (next_menubar_widget_id): Remove variables.
1603 (initialize_frame_menubar): Remove function.
1604 (pop_down_menu, mac_menu_show): Simplify save value.
1605 (dispose_menus): New function.
1606 (pop_down_menu, fill_menubar): Use it.
1607 (fill_submenu): Remove function. All uses changed to fill_menu.
1608 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
1609 POS. Don't call SetMenuItemHierarchicalID here.
1610 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
1611 used next. Call SetMenuItemHierarchicalID here.
1612 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
1613 objects if needed. Reuse existing menu bar titles if possible.
1614 (set_frame_menubar): Don't clean up menu objects here.
1615
1616 2006-02-18 Chong Yidong <cyd@stupidchicken.com>
1617
1618 * window.c (window_min_size_1): Ensure room for the scroll bar and
1619 fringes.
1620
1621 2006-02-17 Romain Francoise <romain@orebokech.com>
1622
1623 * puresize.h (BASE_PURESIZE): Increment to 1200000.
1624
1625 2006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
1626
1627 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
1628 addition of the BLOCK_INPUTs.
1629
1630 2006-02-17 Juanma Barranquero <lekktu@gmail.com>
1631
1632 * window.c (Fset_window_scroll_bars): Doc fix.
1633
1634 2006-02-17 Kenichi Handa <handa@m17n.org>
1635
1636 * xdisp.c (display_mode_element): Call display_string with correct
1637 PREC arg (which must be a number of characters, not column width).
1638
1639 2006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1640
1641 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
1642
1643 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
1644
1645 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
1646
1647 2006-02-14 Richard M. Stallman <rms@gnu.org>
1648
1649 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
1650
1651 * m/ibms390x.h: New file.
1652
1653 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1654
1655 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
1656 value of x-gtk-whole-detached-tool-bar.
1657 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
1658
1659 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
1660
1661 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1662
1663 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
1664
1665 * xterm.h: Declare x_x_to_emacs_modifiers.
1666
1667 * gtkutil.c (xg_tool_bar_button_cb): New function.
1668 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
1669 store modifiers in event.
1670 (update_frame_tool_bar): Connect button-release-event to
1671 xg_tool_bar_button_cb.
1672
1673 2006-02-13 Richard M. Stallman <rms@gnu.org>
1674
1675 * .gdbinit (xwindow): Update the code to show the window box.
1676
1677 2006-02-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1678
1679 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
1680
1681 2006-02-12 Richard M. Stallman <rms@gnu.org>
1682
1683 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
1684
1685 2006-02-11 Eli Zaretskii <eliz@gnu.org>
1686
1687 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
1688 (syms_of_keyboard): DEVFAR_LISP and initialize it.
1689 (parse_tool_bar_item, parse_menu_item): If that variable is
1690 non-nil, don't disable menu items and tool-bar buttons.
1691
1692 2006-02-11 Juanma Barranquero <lekktu@gmail.com>
1693
1694 * doc.c (Fsubstitute_command_keys): Doc fix.
1695
1696 2006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
1697
1698 * data.c (Findirect_function): Rewrite docstring.
1699 Fix omission bug: Declare new arg NOERROR.
1700
1701 2006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1702
1703 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
1704 if window_desc is not set yet.
1705 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
1706 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
1707 parameter `visibility' is `icon'.
1708 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
1709 instead of "fontset-mac".
1710 (Fx_focus_frame): New defun.
1711 (syms_of_macfns): Defsubr it.
1712
1713 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
1714 for unfocused frame.
1715 (x_raise_frame): Call BringToFront instead of SelectWindow.
1716 (x_lower_frame): Use NULL instead of nil.
1717 (x_make_frame_visible): Don't call SelectWindow.
1718 (XTread_socket): Increment handling_signal at the start, decrement
1719 it at the end.
1720 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
1721 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
1722
1723 2006-02-10 Kim F. Storm <storm@cua.dk>
1724
1725 * data.c (Findirect_function): Add NOERROR arg. All callers changed
1726 to pass Qnil for NOERROR.
1727
1728 * keymap.c (current_minor_maps_error): Remove.
1729 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
1730 instead of using internal_condition_case_1+current_minor_maps_error.
1731
1732 2006-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1733
1734 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
1735 frames for GTK, in that case it is the tool bar. This is so that
1736 highlighted text get reset properly.
1737
1738 2006-02-09 Juanma Barranquero <lekktu@gmail.com>
1739
1740 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
1741
1742 2006-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1743
1744 * window.c (adjust_window_trailing_edge): Check that shrinking
1745 does not set a window to size zero or less.
1746
1747 2006-02-08 Miles Bader <miles@gnu.org>
1748
1749 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
1750 of Fget_text_property (other field functions work with overlays as
1751 well as text-properties).
1752
1753 2006-02-07 Kenichi Handa <handa@m17n.org>
1754
1755 * dispextern.h (unibyte_display_via_language_environment): Extern it.
1756
1757 * xterm.h (unibyte_display_via_language_environment):
1758 * w32term.h (unibyte_display_via_language_environment):
1759 * macterm.h (unibyte_display_via_language_environment): Delete extern.
1760
1761 2006-02-07 Kenichi Handa <handa@m17n.org>
1762
1763 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
1764 (produce_glyphs): Set the character to print in
1765 it->char_to_display. Handle unibyte-display-via-language-environment.
1766 (produce_stretch_glyph): Set character to print in it->char_to_display.
1767
1768 2006-02-06 Kenichi Handa <handa@m17n.org>
1769
1770 * lread.c (openp): Initialize encoded_fn before GCPRO it.
1771
1772 2006-02-05 Ken Raeburn <raeburn@raeburn.org>
1773
1774 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
1775
1776 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
1777 Cast bitfield value to EMACS_INT, to suppress gcc warning.
1778
1779 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
1780 defining.
1781
1782 2006-02-03 Kim F. Storm <storm@cua.dk>
1783
1784 * xdisp.c: Cache last merged escape glyph face.
1785 (last_escape_glyph_frame, last_escape_glyph_face_id)
1786 (last_escape_glyph_merged_face_id): New variables.
1787 (get_next_display_element): Use/update them.
1788 (redisplay_internal): Reset them before redisplay.
1789
1790 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
1791 Only recheck faces after displaying ellipsis.
1792
1793 2006-02-02 Kenichi Handa <handa@m17n.org>
1794
1795 * coding.c (decode_composition_emacs_mule): Fix handling of
1796 incorrect format data.
1797
1798 2006-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1799
1800 * gtkutil.c (update_frame_tool_bar): Use new tool bar functions
1801 (gtk_toolbar_insert) so we can have tool bars of different sizes.
1802
1803 2006-01-30 Luc Teirlinck <teirllm@auburn.edu>
1804
1805 * data.c (Flistp): Doc fix.
1806
1807 2006-01-30 Juanma Barranquero <lekktu@gmail.com>
1808
1809 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
1810 Fix typos in docstrings.
1811
1812 2006-01-28 Luc Teirlinck <teirllm@auburn.edu>
1813
1814 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
1815
1816 2006-01-27 Chong Yidong <cyd@stupidchicken.com>
1817
1818 * alloc.c (make_interval, allocate_string)
1819 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
1820 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
1821 global variables.
1822
1823 2006-01-27 Eli Zaretskii <eliz@gnu.org>
1824
1825 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
1826 the MSDOS definition.
1827
1828 2006-01-26 Richard M. Stallman <rms@gnu.org>
1829
1830 * alloc.c (check_pure_size): Make overflow message an "error message".
1831
1832 * keymap.c (Fmap_keymap): Doc fix.
1833
1834 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
1835 unless they were cleared out.
1836
1837 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
1838
1839 2006-01-26 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1840
1841 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
1842 (find_field): Set before_field to after_field when pos is at BEGV.
1843 (Fline_beginning_position, Fline_end_position):
1844 Clarify confusing doc string.
1845
1846 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
1847 string.
1848
1849 2006-01-26 Kenichi Handa <handa@m17n.org>
1850
1851 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
1852 current_dir, and error_file. On reporting an error, decode them
1853 back.
1854
1855 2006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1856
1857 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
1858 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
1859 Don't check for quit, since any loop will go through fail or jump.
1860
1861 2006-01-24 Chong Yidong <cyd@stupidchicken.com>
1862
1863 * alloc.c (allocate_string_data): Update next_free immediately, to
1864 reduce risk of memory clobberage.
1865
1866 2006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1867
1868 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
1869 display when point moves across an ellipsis. If there are
1870 adjacent invisible texts, don't lose the second one's ellipsis.
1871 (x_produce_glyphs): Doc fix.
1872
1873 2006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
1874
1875 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
1876
1877 2006-01-23 Kim F. Storm <storm@cua.dk>
1878
1879 * xdisp.c (handle_single_display_spec): Fix handling of space
1880 property on char from string: set *position rather than
1881 it->current.pos.
1882 (produce_stretch_glyph): Reduce width of stretch glyphs so they
1883 don't get wider than the window (unless truncate-lines is on).
1884
1885 2006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
1886
1887 * xterm.c: Avoid allocating Lisp data from a signal handler.
1888 (x_error_message): New var to replace x_error_message_string.
1889 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
1890 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
1891 (syms_of_xterm): Use it instead of x_error_message_string.
1892
1893 * alloc.c (lisp_align_free): Add an assertion.
1894 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
1895 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
1896 a signal handler.
1897
1898 2006-01-21 Luc Teirlinck <teirllm@auburn.edu>
1899
1900 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
1901
1902 2006-01-21 Romain Francoise <romain@orebokech.com>
1903
1904 * xdisp.c (get_window_cursor_type): Fix last change.
1905 Update copyright year.
1906
1907 2006-01-20 Eli Zaretskii <eliz@gnu.org>
1908
1909 * lread.c (Fload): Don't leak the file descriptor returned by
1910 openp if we are going to signal an error.
1911
1912 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
1913 directly to _close.
1914 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
1915 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
1916 to _read.
1917 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
1918 directly to _write.
1919
1920 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
1921 if it is NULL.
1922
1923 2006-01-20 Kenichi Handa <handa@m17n.org>
1924
1925 * puresize.h (BASE_PURESIZE): Increment to 1190000.
1926
1927 2006-01-19 Chong Yidong <cyd@stupidchicken.com>
1928
1929 * xdisp.c (get_window_cursor_type): Use cursor type specified by
1930 the selected buffer for the echo area too.
1931
1932 2006-01-19 Richard M. Stallman <rms@gnu.org>
1933
1934 * keymap.c (Fmap_keymap): Doc fix.
1935
1936 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
1937
1938 * keyboard.c (echo_char): Don't omit the space between first two
1939 echoed chars.
1940
1941 * minibuf.c (read_minibuf): Fix previous change.
1942
1943 2006-01-19 Kenichi Handa <handa@m17n.org>
1944
1945 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
1946
1947 2006-01-17 Richard M. Stallman <rms@gnu.org>
1948
1949 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
1950 value in f->param_alist.
1951
1952 2006-01-15 Andreas Schwab <schwab@suse.de>
1953
1954 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
1955
1956 2006-01-13 Richard M. Stallman <rms@gnu.org>
1957
1958 * Makefile.in: Define new macro WINDOW_SUPPORT.
1959 (lisp): Use it.
1960 (SOME_MACHINE_LISP): Add conditionally loaded files.
1961
1962 2006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1963
1964 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
1965 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
1966 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
1967 decomposed form.
1968
1969 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
1970 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
1971 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
1972 macro. Also try member ifr_addr when getting netmask.
1973
1974 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
1975
1976 * fileio.c (Fexpand_file_name): Remove redundant tests.
1977 Fix elimination of // so that it doesn't prevent elimination of an
1978 immediately following /. or /..
1979
1980 2006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1981
1982 * gtkutil.c (xg_toggle_notify_cb): New function.
1983 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
1984 xg_toggle_notify_cb.
1985 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
1986 parameter value changes so the toggle button gets updated.
1987
1988 2006-01-06 Nick Roberts <nickrob@snap.net.nz>
1989
1990 * .gdbinit: Fix typo.
1991
1992 2006-01-05 Eli Zaretskii <eliz@gnu.org>
1993
1994 * .gdbinit: Fix last change.
1995
1996 2006-01-05 Kim F. Storm <storm@cua.dk>
1997
1998 * process.c (Fmake_network_process): Use AF_INET instead of
1999 AF_UNSPEC when AF_INET6 is not defined.
2000
2001 2006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2002
2003 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
2004 Don't check that the other type is known file-related one.
2005
2006 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
2007 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
2008 OS X 10.4 and later.
2009
2010 2006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2011
2012 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
2013 let GTK do all image processing. Importing Emacs own pixmaps to GTK
2014 looks bad for inactive tool bar items with some Gnome themes.
2015
2016 2006-01-04 Eli Zaretskii <eliz@gnu.org>
2017
2018 * .gdbinit: Avoid a warning message when x_error_quitter is not
2019 compiled in.
2020
2021 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
2022 for w32.
2023
2024 2006-01-04 Kim F. Storm <storm@cua.dk>
2025
2026 * process.c: Add IPv6 support.
2027 (Qipv4, Qipv6): New vars.
2028 (syms_of_process): Intern and staticpro them.
2029 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
2030 with or without port number. Handle 4 element vector as IPv4 address
2031 without port number.
2032 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
2033 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
2034 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
2035 request that address family only. :family nil or omitted means to
2036 determine address family from the specified :host and :service.
2037 (ifflag_table): Add missing OpenBSD IFF_ flags.
2038 (server_accept_connection): Handle IPv6 addresses.
2039 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
2040
2041 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
2042 determine which breakpoints to set.
2043
2044 2006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
2045
2046 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
2047
2048 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
2049
2050 2006-01-03 Romain Francoise <romain@orebokech.com>
2051
2052 * emacs.c (main): Update copyright year.
2053
2054 2006-01-03 Ken Raeburn <raeburn@gnu.org>
2055
2056 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
2057 nil for the call to internal_delete_file.
2058
2059 2006-01-01 Ken Raeburn <raeburn@gnu.org>
2060
2061 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
2062 to nil for the call to Fwrite_region.
2063
2064 2005-12-31 Richard M. Stallman <rms@gnu.org>
2065
2066 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
2067
2068 2005-12-31 Eli Zaretskii <eliz@gnu.org>
2069
2070 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
2071
2072 2005-12-30 Luc Teirlinck <teirllm@auburn.edu>
2073
2074 * textprop.c (set_text_properties): Reword description of return value.
2075 Return Qnil if caller wants to remove all text properties from a
2076 string and the string already has no intervals.
2077
2078 2005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
2079
2080 * term.c (visible_cursor): New boolean var.
2081 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
2082 visible_cursor.
2083 (syms_of_term): Export the new var as "visible-cursor".
2084
2085 2005-12-30 Eli Zaretskii <eliz@gnu.org>
2086
2087 * .gdbinit: Tell users not to worry about GDB warnings that some
2088 functions do not exist in the binary.
2089
2090 2005-12-30 Andreas Schwab <schwab@suse.de>
2091
2092 * process.c (Fnetwork_interface_info): Correctly terminate the
2093 loop over ifflag_table.
2094
2095 2005-12-29 Richard M. Stallman <rms@gnu.org>
2096
2097 * lread.c (readevalloop): Test for reading a whole buffer
2098 before actually reading anything. Handle all cases, including
2099 START = END = nil and an already-narrowed buffer.
2100 Convert END to a marker if it is a number.
2101
2102 * keymap.c (describe_map): Put sparse map elements into an array,
2103 sort them, then output a sequence of identical bindings on one line.
2104 (struct describe_map_elt): New data type.
2105 (describe_map_compare): New function.
2106
2107 2005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2108
2109 * gtkutil.c (xg_get_file_with_chooser): Change message shown
2110 in file chooser.
2111
2112 2005-12-27 Richard M. Stallman <rms@gnu.org>
2113
2114 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
2115 not the current one.
2116
2117 * minibuf.c (Fminibuffer_message): Doc fix.
2118 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
2119
2120 * eval.c (do_autoload): Ignore elements of Vautoload_queue
2121 where car is not symbol.
2122
2123 2005-12-27 Kenichi Handa <handa@m17n.org>
2124
2125 * charset.c (lisp_string_width): Check multibyteness of STRING.
2126
2127 2005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2128
2129 * xfns.c: x_show_hidden_files, new variable.
2130 (syms_of_xfns): Defvar it.
2131
2132 * gtkutil.c (xg_toggle_visibility_cb): New function.
2133 (xg_get_file_with_chooser): Add toggle hidden files and a message
2134 to the new file chooser dialog. Show hidden files if
2135 x_show_hidden_files is non-zero.
2136
2137 2005-12-26 Richard M. Stallman <rms@gnu.org>
2138
2139 * keyboard.h: Undo previous change.
2140
2141 * Makefile.in (undo.o): Undo previous change.
2142
2143 * undo.c: Undo previous change.
2144
2145 2005-12-26 Luc Teirlinck <teirllm@auburn.edu>
2146
2147 * keyboard.h: extern last_point_position_window.
2148
2149 * undo.c: include keyboard.h.
2150
2151 * Makefile.in (undo.o): Depend on keyboard.h.
2152
2153 2005-12-26 Richard M. Stallman <rms@gnu.org>
2154
2155 * commands.h (last_point_position_window): Declare.
2156
2157 * undo.c: Depend on window.h.
2158 (record_point): Save old point from the correct window.
2159
2160 * keyboard.c (last_point_position_window): New variable.
2161 (command_loop_1): Set last_point_position_window.
2162 (syms_of_keyboard): Init it.
2163
2164 * Makefile.in (undo.o): Depend on window.h.
2165
2166 2005-12-25 Richard M. Stallman <rms@gnu.org>
2167
2168 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
2169 to undo a `provide'.
2170
2171 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
2172
2173 2005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
2174
2175 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
2176 define for FreeBSD on this platform.
2177
2178 2005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2179
2180 * macterm.h (TYPE_FILE_NAME): New define.
2181 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
2182
2183 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
2184 Add prototypes. Make static.
2185 (mac_aedesc_to_lisp): Initialize err to noErr.
2186 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
2187 (init_coercion_handler): New functions.
2188 (Fmac_coerce_ae_data): Use coercion of Apple event data for
2189 translation from/to file names.
2190
2191 * macterm.c: Don't include sys/param.h.
2192 (init_coercion_handler): Add extern.
2193 [MAC_OS8] (main): Call init_coercion_handler.
2194 (mac_initialize) [MAC_OSX]: Likewise.
2195 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
2196 Apple event data for translation from/to file names.
2197
2198 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
2199
2200 * image.c [MAC_OS] (find_image_fsspec): Likewise.
2201
2202 2005-12-23 Martin Rudalics <rudalics@gmx.at>
2203
2204 * insdel.c (insert, insert_and_inherit, insert_before_markers)
2205 (insert_before_markers_and_inherit): Make sure FROM is correct
2206 when `after-change-functions' are called.
2207
2208 2005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2209
2210 * xfns.c (Fx_uses_old_gtk_dialog): New function.
2211
2212 * gtkutil.c (xg_uses_old_file_dialog): New function.
2213 (xg_get_file_name): Use xg_uses_old_file_dialog.
2214
2215 * gtkutil.h: Declare xg_uses_old_file_dialog.
2216
2217 2005-12-22 Richard M. Stallman <rms@gnu.org>
2218
2219 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
2220
2221 2005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2222
2223 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
2224
2225 * macgui.h (XCharStruct): Remove member `valid_p'.
2226 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
2227 (XCharStructRow): New typedef.
2228 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
2229 New macros.
2230 (struct MacFontStruct): Add member `bounds'. Remove member
2231 `per_char'. All uses for QuichDraw Text fonts are changed to
2232 `bounds.per_char'. ATSUI font bounds are represented as an array
2233 `bounds.rows' of XCharStructRow's, each of which consists of a
2234 bitmap of valid entries and an array of char bounds.
2235
2236 * macterm.c (mac_per_char_metric): Add prototype.
2237 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
2238 (mac_query_char_extents): New function.
2239 (x_per_char_metric): Use it.
2240 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
2241 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
2242 Use mac_per_char_metric instead of x_per_char_metric.
2243 (mac_text_extents_16): New function.
2244 (mac_compute_glyph_string_overhangs): Use it.
2245 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
2246
2247 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
2248
2249 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
2250 (Fminibuffer_completion_help): Remove duplicates before display.
2251
2252 2005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2253
2254 * print.c (print_preprocess): Don't lose print_depth levels while
2255 iterating.
2256
2257 2005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2258
2259 * macmenu.c (Qmac_apple_event): Add extern.
2260 (set_frame_menubar, mac_menu_show keymp_panes)
2261 (single_keymap_panes, list_of_panes, list_of_item)
2262 (single_menu_item): Add argument types to prototypes.
2263 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
2264 (struct skp): New struct (from xmenu.c).
2265 (single_keymap_panes, single_menu_item, list_of_panes)
2266 (list_of_item): Sync with xmenu.c.
2267 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
2268 POSITION if it is mac-apple-event event.
2269 (menubar_selection_callback): Don't use menu_command_in_progress.
2270 (set_frame_menubar): First parse all submenus, then make
2271 widget_value trees from them. Don't allocate any widget_value
2272 objects until we are done with the parsing.
2273 (parse_single_submenu, digest_single_submenu): New functions.
2274 (single_submenu): Function deleted, replaced by those two.
2275 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
2276 create or dispose of EventHandlerUPP. Install hander to all submenus.
2277 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
2278 instead of ENCODE_SYSTEM.
2279 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
2280 integer values.
2281 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
2282 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
2283 format menu item string. Don't use NULL for integer value.
2284
2285 * macterm.h (struct mac_output): Remove unused member
2286 menu_command_in_progress.
2287
2288 2005-12-20 Juri Linkov <juri@jurta.org>
2289
2290 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
2291 position is non-nil, else set it to nil.
2292
2293 * macmenu.c (Fx_popup_menu): Add `else' to set
2294 Vmenu_updating_frame to nil only if position is nil.
2295
2296 * w32menu.c (Fx_popup_menu): Add `else' to set
2297 Vmenu_updating_frame to nil only if position is nil.
2298
2299 2005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2300
2301 * keyboard.c (make_lispy_event): Drag-and-drop items are now
2302 stored in member `args' of struct input_event.
2303
2304 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
2305
2306 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
2307 stored in member `args' of struct input_event.
2308
2309 * w32term.c (construct_drag_n_drop): Likewise.
2310
2311 * macterm.c (mac_do_receive_drag): Likewise.
2312 (x_use_underline_position_properties): Undo 2005-07-13 change.
2313 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
2314 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
2315 (mac_pass_command_to_system, mac_pass_control_to_system):
2316 New boolean variables renamed from Lisp_Object ones
2317 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
2318 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
2319 All uses changed.
2320 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
2321 Make them user options.
2322 (mac_handle_command_event, mac_store_services_event):
2323 Call create_apple_event_from_event_ref without 5th argument.
2324 (backtranslate_modified_keycode): Mask off modifier keys that are
2325 mapped to some Emacs modifiers before passing it to KeyTranslate.
2326 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
2327 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
2328 Fix docstrings of `mac-*-modifier'.
2329
2330 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
2331 (do_applescript): Change argument types to Lisp_Object.
2332 All uses changed.
2333
2334 * macterm.h (create_apple_event_from_event_ref): Remove 5th
2335 argument from extern.
2336
2337 2005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
2338
2339 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
2340 the answer, return `lambda', not nil.
2341
2342 2005-12-17 Eli Zaretskii <eliz@gnu.org>
2343
2344 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
2345 enclosed in $(ARGQUOTE)s should not be split between two lines, as
2346 that will break with GNU Make >3.80, when sh.exe is used and
2347 arg quoting is with '..'.
2348
2349 2005-12-17 Chong Yidong <cyd@stupidchicken.com>
2350
2351 * print.c (print_preprocess): Just signal an error if print_depth
2352 is exceeded.
2353
2354 2005-12-17 Eli Zaretskii <eliz@gnu.org>
2355
2356 * .gdbinit: Set a breakpoint on w32_abort.
2357
2358 2005-12-16 Juri Linkov <juri@jurta.org>
2359
2360 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
2361 created from minibuffer_completion_contents.
2362 (minibuffer_completion_contents): Remove.
2363 (do_completion, Fminibuffer_complete_word)
2364 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
2365 with Fminibuffer_completion_contents.
2366 (syms_of_minibuf): Add Sminibuffer_completion_contents.
2367 (Fdisplay_completion_list): Doc fix.
2368 (display_completion_list_1): Use `nil' for second arg of
2369 `Fdisplay_completion_list'.
2370
2371 2005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2372
2373 * xfns.c (compute_tip_xy): Handle negative dx and dy.
2374
2375 * w32fns.c (compute_tip_xy): Ditto.
2376
2377 * macfns.c (compute_tip_xy): Ditto.
2378
2379 2005-12-14 Chong Yidong <cyd@stupidchicken.com>
2380
2381 * print.c (print_preprocess): Go to a deeper print_depth to avoid
2382 print_object loop.
2383
2384 2005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
2385
2386 * coding.c (code_convert_region_unwind): GCPRO arg.
2387
2388 2005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2389
2390 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
2391 i.e. dy is offset from top of frame instead of bottom.
2392
2393 * macfns.c (compute_tip_xy): Ditto.
2394
2395 * w32fns.c (compute_tip_xy): Ditto.
2396
2397 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
2398 (xg_get_image_for_pixmap, xg_create_frame_widgets)
2399 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
2400
2401 * xmenu.c (menubar_selection_callback): Do nothing if the callback
2402 is for an unselected radio menu item.
2403
2404 2005-12-11 Richard M. Stallman <rms@gnu.org>
2405
2406 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
2407
2408 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
2409
2410 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
2411 (Flookup_key): Doc fix.
2412 (syms_of_keymap) <function-key-map>: Doc fix.
2413
2414 * fns.c (Frequire): Treat evaluating from a source file
2415 like loading the file.
2416
2417 * floatfns.c (Flog): Doc fix.
2418
2419 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
2420 when we change the buffer.
2421
2422 2005-12-11 Juri Linkov <juri@jurta.org>
2423
2424 * minibuf.c (display_completion_list_1):
2425 Call `minibuffer_completion_contents' instead of using `nil' as
2426 second arg of `Fdisplay_completion_list'.
2427 (keys_of_minibuf): Unbind SPC in
2428 Vminibuffer_local_filename_completion_map (see also related
2429 change on 2005-12-06).
2430
2431 2005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2432
2433 * emacs.c (main) [MAC_OS8]: Undo previous change.
2434
2435 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
2436 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
2437
2438 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2439
2440 * Makefile.in (macselect.o): Depend on keymap.h.
2441
2442 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
2443 syms_of_macselect.
2444
2445 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
2446 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
2447
2448 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
2449 (syms_of_keyboard) [MAC_OS]: Initialize it.
2450 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
2451
2452 * mac.c (Qundecoded_file_name): New variable.
2453 (syms_of_mac): Initialize it.
2454 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
2455 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
2456 (Fmac_coerce_ae_data): New defun.
2457 (syms_of_mac): Defsubr it.
2458
2459 * macselect.c: Include keymap.h.
2460 (mac_ready_for_apple_events): New variable.
2461 (Vmac_apple_event_map, Qmac_apple_event_class)
2462 (Qmac_apple_event_id): New variables.
2463 (syms_of_macselect): Initialize them.
2464 (Qundefined, mac_store_apple_event): Add externs.
2465 (struct apple_event_binding): New struct.
2466 (find_event_binding_fun, find_event_binding)
2467 (mac_find_apple_event_spec, defer_apple_events)
2468 (mac_handle_apple_event, init_apple_event_handler)
2469 (copy_scrap_flavor_data): New functions.
2470 (Fmac_process_deferred_apple_events): New defun.
2471 (syms_of_macselect): Defsubr it.
2472 (mac_store_services_event): Fix extern.
2473 (mac_handle_service_event): Don't allocate Lisp objects during
2474 asynchronous input processing. Use mac_store_services_event
2475 instead of mac_store_application_menu_event.
2476
2477 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
2478 (Qpreferences): Remove variables.
2479 (syms_of_macterm) : Don't initialize them.
2480 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
2481 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
2482 (init_required_apple_events, do_ae_open_application)
2483 (do_ae_print_documents, do_ae_open_documents)
2484 (do_ae_quit_application): Remove functions and prototypes.
2485 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
2486 (mac_find_apple_event_spec): Add externs.
2487 (mac_store_application_menu_event): Remove function.
2488 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
2489 (mac_handle_command_event): Create Apple event from Carbon event.
2490 Use mac_store_apple_event instead of mac_store_application_menu_event.
2491 [MAC_OSX] (mac_store_services_event): Likewise.
2492 (struct SelectionRange, SelectionRange): Remove struct and typedef.
2493 [MAC_OS8] (main): Call init_apple_event_handler instead of
2494 init_required_apple_events.
2495 (mac_initialize) [MAC_OSX]: Likewise.
2496 [!USE_CARBON_EVENTS] (mac_wait_next_event):
2497 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
2498
2499 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
2500 Add externs.
2501 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
2502 (Fmac_get_preference): Add EXFUN.
2503
2504 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
2505 event.
2506
2507 2005-12-09 Richard M. Stallman <rms@gnu.org>
2508
2509 * xfns.c (Fx_create_frame): Reinstate previous change.
2510
2511 2005-12-09 Eli Zaretskii <eliz@gnu.org>
2512
2513 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
2514 GDB to the abort dialog.
2515
2516 2005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
2517
2518 * indent.c (Fvertical_motion): Force move if starting on
2519 stretch glyph.
2520
2521 2005-12-08 Richard M. Stallman <rms@gnu.org>
2522
2523 * lread.c (read_escape) <\s>: Don't treat strings specially.
2524
2525 * xfns.c (Fx_create_frame): Comment out previous change.
2526
2527 2005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2528
2529 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
2530 when needed.
2531
2532 2005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
2533
2534 * minibuf.c (keys_of_minibuf): Just unbind SPC in
2535 Vminibuffer_local_filename_completion_map rather than forcing it
2536 explicitly to the same binding as the global map.
2537
2538 2005-12-06 Ken Raeburn <raeburn@gnu.org>
2539
2540 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
2541 * bytecode.c (Fbyte_code): Likewise.
2542 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
2543 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
2544 * undo.c (truncate_undo_list): Likewise.
2545
2546 2005-12-05 Richard M. Stallman <rms@gnu.org>
2547
2548 * window.c (enlarge_window): Eliminate arg preserve_before.
2549 Assume it is 0. All callers changed.
2550 (Fenlarge_window, Fshrink_window): Likewise.
2551
2552 2005-12-02 Eli Zaretskii <eliz@gnu.org>
2553
2554 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
2555 fit below.
2556
2557 2005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2558
2559 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
2560
2561 * xfns.c (x_real_positions): int ign => unsigned int.
2562 (xg_set_icon_from_xpm_data): Remove unused variable err.
2563 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
2564 to remove compiler warning.
2565 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
2566
2567 2005-12-02 David Reitter <david.reitter@gmail.com>
2568
2569 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
2570 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
2571 and Vminibuffer_local_must_match_filename_map keymaps.
2572 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
2573
2574 * keymap.c (Vminibuffer_local_filename_completion_map)
2575 (Vminibuffer_local_must_match_filename_map): New variables.
2576 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
2577 parent to be Vminibuffer_local_completion_map and
2578 Vminibuffer_local_must_match_map, respectively.
2579
2580 * commands.h (Vminibuffer_local_filename_completion_map)
2581 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
2582
2583 2005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
2584
2585 * window.c (Fset_window_configuration): Don't accidentally copy the
2586 window-point of one window to another.
2587
2588 2005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2589
2590 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
2591
2592 2005-11-30 Kim F. Storm <storm@cua.dk>
2593
2594 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
2595 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
2596 passing it to `emacs_write'.
2597
2598 2005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
2599
2600 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
2601
2602 2005-11-27 Richard M. Stallman <rms@gnu.org>
2603
2604 * window.c (adjust_window_trailing_edge): New function.
2605 (Fadjust_window_trailing_edge): New function.
2606 (syms_of_window): Defsubr it.
2607 (window_deletion_count): New variable.
2608 (delete_window): Update window_deletion_count.
2609
2610 2005-11-26 Eli Zaretskii <eliz@gnu.org>
2611
2612 * minibuf.c (syms_of_minibuf): Mention the extension of
2613 `completion-auto-help's meaning by complete.el.
2614
2615 2005-11-26 Henrik Enberg <henrik.enberg@telia.com>
2616
2617 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
2618 Handle :inherit property as a lisp expression.
2619
2620 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2621
2622 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
2623 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
2624 Qsuper, and Qmodifier_value.
2625 (Vmac_control_modifier, Vmac_option_modifier)
2626 (Vmac_command_modifier, Vmac_function_modifier)
2627 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
2628 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
2629 (Vmac_charset_info_alist): Doc fixes.
2630
2631 2005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2632
2633 * emacs.c (main) [MAC_OSX]: Change working directory to home
2634 directory if `-psn_*' option is specified.
2635
2636 * mac.c (DECODE_UTF_8): Remove macro.
2637 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
2638 created from cfstring_to_lisp.
2639 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
2640 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
2641
2642 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
2643 Add prototype.
2644
2645 2005-11-21 Ken Raeburn <raeburn@gnu.org>
2646
2647 * keymap.c (shadow_lookup): Use make_number to pass a number to
2648 Fsubstring.
2649
2650 2005-11-21 Juri Linkov <juri@jurta.org>
2651
2652 * puresize.h (BASE_PURESIZE): Increment to 1180000.
2653
2654 2005-11-20 Chong Yidong <cyd@stupidchicken.com>
2655
2656 * xfaces.c (Finternal_set_lisp_face_attribute):
2657 Use :ignore-defface for new frame defaults when `unspecified' is
2658 supplied.
2659 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
2660 (merge_face_vectors): Don't do :ignore-defface overwriting here.
2661 (Finternal_merge_in_global_face): Do it here.
2662
2663 2005-11-20 Juri Linkov <juri@jurta.org>
2664
2665 * charset.c (invalid_character): Use Lisp-readable syntax
2666 for octal and hex. Reorder decimal, octal and hex values.
2667
2668 2005-11-20 Nick Roberts <nickrob@snap.net.nz>
2669
2670 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
2671 this type is recognised when debugging.
2672
2673 2005-11-19 Andreas Schwab <schwab@suse.de>
2674
2675 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
2676 Lisp_Cons and Lisp_Float.
2677
2678 2005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2679
2680 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
2681 New variable.
2682 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
2683 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
2684 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
2685 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
2686
2687 2005-11-17 Chong Yidong <cyd@stupidchicken.com>
2688
2689 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
2690
2691 * xfaces.c (Qignore_defface): New variable.
2692 (syms_of_xfaces): Provide `:ignore-defface'.
2693 (IGNORE_DEFFACE_P): New macro.
2694 (check_lface_attrs, lface_fully_specified_p)
2695 (Finternal_set_lisp_face_attribute)
2696 (Fface_attribute_relative_p, Fmerge_face_attribute):
2697 Handle Qignore_defface as a possible value.
2698 (merge_face_vectors): The merged face is `unspecified' if the
2699 mergee specifies `:ignore-defface'.
2700
2701 2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
2702
2703 * lread.c (readevalloop): Add missing GCPROs.
2704
2705 2005-11-16 Chong Yidong <cyd@stupidchicken.com>
2706
2707 * xfns.c (xg_set_icon_from_xpm_data): New function.
2708
2709 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
2710 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
2711
2712 * xterm.c (x_bitmap_icon): Use the xpm if available.
2713
2714 * image.c (x_create_bitmap_from_xpm_data): New function.
2715 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
2716
2717 2005-11-15 Luc Teirlinck <teirllm@auburn.edu>
2718
2719 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
2720
2721 2005-11-16 Nick Roberts <nickrob@snap.net.nz>
2722
2723 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
2724
2725 2005-11-15 Andreas Schwab <schwab@suse.de>
2726
2727 * lisp.h (struct Lisp_Cons): Make cdr a union.
2728 (XCDR_AS_LVALUE): Adjust.
2729 (struct Lisp_Float): Make data a union.
2730 (XFLOAT_DATA): Adjust.
2731
2732 * alloc.c (free_float): Make free list chaining aliasing-safe.
2733 (make_float): Likewise.
2734 (free_cons): Likewise.
2735 (Fcons): Likewise.
2736 (check_cons_list): Likewise.
2737 (Fmake_symbol): Likewise.
2738 (allocate_misc): Likewise.
2739 (free_misc): Likewise.
2740 (gc_sweep): Likewise.
2741
2742 2005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2743
2744 * mac.c (HASHKEY_QUERY_CACHE): New define.
2745 (xrm_create_database, xrm_q_put_resource): Empty query cache.
2746 (xrm_get_resource): Use query cache.
2747
2748 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
2749 inhibit_window_system is set.
2750
2751 2005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2752
2753 * macgui.h (USE_CG_TEXT_DRAWING): New define.
2754 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
2755 and cg_glyphs.
2756
2757 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
2758 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
2759 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
2760 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
2761 not used and font substitution never occurs for ASCII and Latin-1
2762 characters.
2763 (XLoadQueryFont): Maximum and minimum metrics are now those among
2764 ASCII characters.
2765 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
2766 height adjustments for Courier, Helvetica, and Times.
2767
2768 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
2769
2770 2005-11-11 David Reitter <david.reitter@gmail.com>
2771
2772 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
2773 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
2774 Vmac_control_modifier / mac-control-modifier,
2775 Vmac_option_modifier / mac-option-modifier,
2776 Vmac_command_modifier / mac-command-modifier.
2777 (mac_to_emacs_modifiers): Use the new style modifier
2778 variables. Return UInt32 (modifiers are longs now.)
2779 (backtranslate_modified_keycode): New function (refactoring).
2780 (XTread_socket): Use new modifier variables and refactored function.
2781 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
2782 no dedicated meta key. Not in use anyway.)
2783 (convert_fn_keycode): Map Fn-keys to their original keycode
2784 using a table (english keyboard only).
2785
2786 2005-11-11 Kim F. Storm <storm@cua.dk>
2787
2788 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
2789 Add post hook to "backtrace" to always dump lisp call stack to
2790 increase chance of people sending it to us when reporting bugs.
2791
2792 * doc.c (Fsubstitute_command_keys): Doc fix.
2793
2794 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
2795
2796 * xdisp.c (handle_stop): Skip overlay string handling if
2797 ignore_overlay_strings_at_pos_p is set.
2798 (set_iterator_to_next): At end of display vector, set
2799 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
2800 string, so we skip those overlay strings at current pos.
2801
2802 2005-11-10 Lars Hansen <larsh@soem.dk>
2803
2804 * fileio.c (file-regular-p): Doc fix.
2805
2806 2005-11-10 Kim F. Storm <storm@cua.dk>
2807
2808 * alloc.c (valid_lisp_object_p): New function to validate that
2809 an object is really a valid Lisp_Object.
2810
2811 * lisp.h (valid_lisp_object_p): Add prototype.
2812
2813 * print.c (safe_debug_print): New function to be called from gdb
2814 to print Lisp objects; use valid_lisp_object_p to avoid crashing
2815 if user tries to print something which is not a Lisp object.
2816
2817 * .gdbinit (pp, pp1): Use safe_debug_print.
2818 (pv, pv1): New commands to print value of a lisp variable.
2819
2820 2005-11-10 Nick Roberts <nickrob@snap.net.nz>
2821
2822 * .gdbinit (pp1): New user-defined function.
2823
2824 2005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2825
2826 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
2827
2828 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
2829 related variables for dumped executable.
2830
2831 * unexmacosx.c (unexec_write_zero): New function.
2832 (copy_data_segment): Clear uninitialized local variables in
2833 statically linked libraries.
2834
2835 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
2836
2837 2005-11-09 Juri Linkov <juri@jurta.org>
2838
2839 * keymap.c (shadow_lookup): If Flookup_key returns a number,
2840 call it again with a sub-key-sequence, and if its return value
2841 is non-nil (sub-key is bound), return nil.
2842
2843 2005-11-08 Kim F. Storm <storm@cua.dk>
2844
2845 * process.c (Fsignal_process): Recognize signal names with and
2846 without SIG prefix, e.g. SIGHUP and HUP.
2847
2848 * search.c (search_buffer): No need to initialize base_pat.
2849
2850 2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
2851
2852 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
2853 Don't abuse the `mini' arg. Use the `obj' arg instead.
2854
2855 2005-11-04 Kim F. Storm <storm@cua.dk>
2856
2857 * xdisp.c (show_mouse_face): Clear mouse face to eol.
2858
2859 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
2860
2861 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
2862 font-lock.elc and jit-lock.elc.
2863
2864 2005-11-03 Richard M. Stallman <rms@gnu.org>
2865
2866 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
2867 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
2868 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
2869
2870 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
2871
2872 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
2873
2874 2005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2875
2876 * window.c (Fdisplay_buffer): Fix last change to not use
2877 a dedicated window.
2878
2879 2005-11-01 Kim F. Storm <storm@cua.dk>
2880
2881 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
2882 Instead, rotate the bottom angle bitmap 180 degrees to indicate
2883 that the bottom row does not end in a newline.
2884
2885 2005-11-01 Andreas Schwab <schwab@suse.de>
2886
2887 * unexelf.c (unexec): Handle .plt section in BSS segment.
2888
2889 2005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
2890
2891 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
2892
2893 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
2894 determine whether to consider dedicated windows as well.
2895 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
2896 (Fdisplay_buffer): Do consider dedicated windows in those cases where
2897 we will split the window rather than reuse it.
2898 Don't try to use windows on other displays.
2899
2900 2005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
2901
2902 * puresize.h (BASE_PURESIZE): Increment to 1170000.
2903
2904 2005-10-31 Romain Francoise <romain@orebokech.com>
2905
2906 * macfns.c: Update copyright year.
2907 * m/gould.h: Likewise.
2908
2909 2005-10-30 Kim F. Storm <storm@cua.dk>
2910
2911 * xdisp.c (display_line): Restore it->current_x and call
2912 extend_face_to_end_of_line when last glyph doesn't fit on line.
2913 (set_glyph_string_background_width): Remove specific tests here
2914 to see if face background should extend to end of line. Simplify.
2915
2916 2005-10-30 Richard M. Stallman <rms@gnu.org>
2917
2918 * alloc.c (BYTES_USED): Use uordblks, not arena.
2919 (bytes_used_when_reconsidered): New variable.
2920 (emacs_blocked_free): Set that.
2921
2922 2005-10-29 Chong Yidong <cyd@stupidchicken.com>
2923
2924 * alloc.c (emacs_blocked_free): Fix typo.
2925
2926 2005-10-29 Richard M. Stallman <rms@gnu.org>
2927
2928 * data.c (Fmake_variable_frame_local): Doc fix.
2929
2930 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
2931 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
2932 controls whether to save and restore mode_line_proptrans_alist.
2933 Callers changed.
2934 (unwind_format_mode_line): Work with that feature.
2935 (redisplay_internal): Don't call prepare_menu_bars if memory full.
2936 (move_elt_to_front): New function.
2937 (display_mode_element): Use move_elt_to_front.
2938 Don't bother munging text props on a null string.
2939 Delete obsolete elts from mode_line_proptrans_alist.
2940 (decode_mode_spec): Test Vmemory_full, not spare_memory.
2941 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
2942
2943 * lisp.h (memory_full_cons_threshold): Declare.
2944 (internal_lisp_condition_case): Declare.
2945
2946 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
2947 (Fmemory_full_p): Function deleted.
2948 (syms_of_alloc): Don't defsubr it.
2949 (memory_full_cons_threshold): New variable.
2950 (spare_memory): Now a vector of 7 elts.
2951 (buffer_memory_full): Don't set Vmemory_full here.
2952 (xfree): Don't try to refill here.
2953 (emacs_blocked_free): Record BYTES_USED in local var.
2954 (memory_full): Now free all the slots in spare_memory.
2955 (refill_memory_reserve): Allocate each slot in spare_memory.
2956 (init_alloc_once): Call refill_memory_reserve.
2957
2958 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
2959
2960 * eval.c (internal_lisp_condition_case): New function.
2961 (Fcondition_case): Use internal_lisp_condition_case.
2962 (Feval): Test Vmemory_full and memory_full_cons_threshold.
2963 (Ffuncall): Likewise.
2964
2965 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
2966
2967 2005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
2968
2969 * syntax.c (Fparse_partial_sexp): Fix docstring.
2970
2971 2005-10-28 Romain Francoise <romain@orebokech.com>
2972
2973 * puresize.h (BASE_PURESIZE): Increment to 1130000.
2974
2975 2005-10-28 Richard M. Stallman <rms@gnu.org>
2976
2977 * xfns.c (syms_of_xfns): Provide `x' as feature.
2978
2979 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
2980
2981 * editfns.c (Fformat): Don't include string padding
2982 between info[n].start and info[n].end.
2983
2984 * alloc.c (spare_memory): No longer static.
2985 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
2986
2987 * puresize.h (BASE_PURESIZE): Increment to 1120000.
2988
2989 2005-10-27 Chong Yidong <cyd@stupidchicken.com>
2990
2991 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
2992
2993 * fringe.c (update_window_fringes): Handle case where buffer ends
2994 with a newline.
2995
2996 2005-10-27 Kenichi Handa <handa@m17n.org>
2997
2998 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
2999
3000 2005-10-24 Kenichi Handa <handa@m17n.org>
3001
3002 * charset.h (charset_mule_unicode_0100_24ff)
3003 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
3004 Extern them.
3005
3006 * charset.c (charset_mule_unicode_0100_24ff)
3007 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
3008 New variables.
3009 (Fsetup_special_charsets): Initialize them.
3010
3011 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
3012 supported Unicode characters.
3013
3014 2005-10-25 Jason Rumney <jasonr@gnu.org>
3015
3016 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
3017
3018 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3019
3020 * image.c [MAC_OS] (image_load_qt_1): Check image size.
3021 Use GraphicsImportGetImageDescription instead of
3022 GraphicsImportGetNaturalBounds.
3023 [MAC_OSX] (image_load_quartz2d): Check image size.
3024 [MAC_OS] (xpm_load_image): Likewise.
3025
3026 * macterm.c (last_mouse_glyph_frame): New var.
3027 (note_mouse_movement): Say mouse moved if current frame differs
3028 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
3029 (XTmouse_position): Set last_mouse_glyph_frame.
3030 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
3031 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
3032 Use EndianU16_BtoN.
3033 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
3034 (x_per_char_metric, XLoadQueryFont)
3035 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
3036 glyph bounds.
3037 (mac_to_x_fontname, mac_do_list_fonts)
3038 (mac_initialize_display_info): Change screen resolutions to 72dpi.
3039
3040 2005-10-25 Masatake YAMATO <jet@gyve.org>
3041
3042 * minibuf.c (Fdisplay_completion_list): Small doc fix.
3043
3044 2005-10-24 Kim F. Storm <storm@cua.dk>
3045
3046 * xterm.c: Undo 2005-10-23 change.
3047 (last_mouse_glyph_frame): New var.
3048 (note_mouse_movement): Say mouse moved if current frame differs
3049 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
3050 (XTmouse_position): Set last_mouse_glyph_frame.
3051 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
3052 last_mouse_glyph] on mouse up/down event.
3053
3054 * editfns.c (Fcompare_buffer_substrings): Fix last change.
3055
3056 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3057
3058 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
3059
3060 2005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3061
3062 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
3063 so tool tips don't interfere with press on tool bar button.
3064
3065 2005-10-23 Richard M. Stallman <rms@gnu.org>
3066
3067 * casetab.c (Fset_case_table): Doc fix.
3068
3069 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
3070 (readevalloop): Compute ENTIRE properly.
3071 (syms_of_lread) <load-history>: Doc fix.
3072
3073 2005-10-21 Richard M. Stallman <rms@gnu.org>
3074
3075 * lread.c (Fload): Simplify gcpro structure.
3076 Gcpro FOUND as well as FILE, but not EFOUND.
3077 Unless preloading, record FOUND instead of FILE in Vload_history.
3078 Rename repeat local FILE to MSG_FILE.
3079 (syms_of_lread) <load-history>: Doc fix.
3080
3081 2005-10-21 Kenichi Handa <handa@m17n.org>
3082
3083 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
3084
3085 2005-10-20 Kim F. Storm <storm@cua.dk>
3086
3087 * buffer.c (clone_per_buffer_values): Remove unused var tem.
3088 (init_buffer): Remove unused vars dotstat, pwdstat.
3089
3090 * ccl.c (check_ccl_update): Remove unused var vp.
3091
3092 * fileio.c (auto_save_error): Call SAFE_FREE.
3093
3094 * fns.c (Fchar_table_range): Remove unused var i.
3095
3096 * minibuf.c (display_completion_list_1): New wrapper function
3097 for Fdisplay_completion_list.
3098 (Fminibuffer_completion_help): Use it.
3099
3100 * term.c (encode_terminal_code): Remove unused var src_start.
3101
3102 * window.c (Fwindow_tree): Remove unused var alist.
3103
3104 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
3105
3106 2005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
3107
3108 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
3109
3110 2005-10-20 Olli Savia <ops@iki.fi> (tiny change)
3111
3112 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
3113
3114 2005-10-20 Andreas Schwab <schwab@suse.de>
3115
3116 * minibuf.c (Fdisplay_completion_list): Doc fix.
3117
3118 2005-10-19 Kim F. Storm <storm@cua.dk>
3119
3120 * image.c (check_image_size): Handle integer Vmax_image_size value
3121 directly as max pixel value. Use default frame size for null frame.
3122 (syms_of_image) <max-image-size>: Describe integer value.
3123
3124 2005-10-19 Romain Francoise <romain@orebokech.com>
3125
3126 * emacs.c (main): Update copyright year.
3127
3128 2005-10-18 Chong Yidong <cyd@stupidchicken.com>
3129
3130 * image.c (Vmax_image_size): New variable.
3131 (check_image_size): New function.
3132 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
3133 (gif_load, gs_load): Use it.
3134 (lookup_image): Try loading again if previous load failed.
3135 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
3136 to display in, NULL if none.
3137 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
3138 argument.
3139
3140 2005-10-18 Richard M. Stallman <rms@gnu.org>
3141
3142 * search.c (Fstring_match): Doc fix.
3143
3144 2005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3145
3146 * macterm.c (note_mouse_movement): Use PtInRect.
3147 (XTread_socket): Also ignore mouse motion just before a button
3148 release event. Don't process button release event when mouse is
3149 not grabbed.
3150
3151 2005-10-16 Masatake YAMATO <jet@gyve.org>
3152
3153 * minibuf.c (Fdisplay_completion_list): Add new optional
3154 argument COMMON_SUBSTRING. Bind `completion-common-substring'
3155 to the optional argument during running `completion-setup-hook'.
3156
3157 2005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3158
3159 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
3160 Allow nil as argument.
3161 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
3162 for encoding arguments as UTF-16 in native byte order, no BOM.
3163
3164 * macfns.c (Fx_create_frame): Add debugging code.
3165 (Fx_show_tip): Set frame pixel width and height.
3166
3167 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
3168 (FRAME_NORMAL_GC): New macro.
3169 (mac_draw_line, mac_clear_area, mac_clear_window)
3170 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
3171 (mac_draw_image_string, mac_draw_image_string_16): Rename from
3172 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
3173 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
3174 All uses changed.
3175 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
3176 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
3177 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
3178 (mac_draw_string_16, mac_draw_image_string)
3179 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
3180 (mac_scroll_area): Drawing functions now take frame as destination.
3181 All uses changed.
3182 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
3183 (x_draw_fringe_bitmap): Set clipping area in face->gc.
3184
3185 * macterm.h (mac_clear_area): Add extern.
3186
3187 2005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3188
3189 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
3190 changes for xterm.c.
3191
3192 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
3193
3194 2005-10-14 Kenichi Handa <handa@m17n.org>
3195
3196 * search.c (search_buffer): Give up BM search on case-fold-search
3197 if one of a target character has a case-equivalence of different
3198 charset even if that target charcter is an ASCII.
3199
3200 * casefiddle.c (casify_object): Fix for the case that case
3201 conversion change the byte length.
3202
3203 2005-10-14 Kim F. Storm <storm@cua.dk>
3204
3205 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
3206 (handle_one_xevent): Only clear help_echo_string; restore it if
3207 note_mouse_movement didn't record any mouse movement.
3208
3209 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
3210 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
3211
3212 * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
3213 (Fposn_at_x_y): Fix calculation of x coordinate.
3214 (Fposn_at_point): Return nil if point is hscrolled out of view.
3215
3216 2005-10-13 Andreas Schwab <schwab@suse.de>
3217
3218 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
3219 non-interactive mode.
3220
3221 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3222
3223 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
3224
3225 2005-10-12 Kim F. Storm <storm@cua.dk>
3226
3227 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
3228
3229 2005-10-12 Romain Francoise <romain@orebokech.com>
3230
3231 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
3232
3233 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3234
3235 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
3236 get end of text rows. Obtain header-line/mode-line rows directly.
3237
3238 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
3239 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
3240
3241 2005-10-12 Kim F. Storm <storm@cua.dk>
3242
3243 * xdisp.c (remember_mouse_glyph): New generic version based on
3244 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
3245 properly handle all different window areas.
3246
3247 * dispextern.h (remember_mouse_glyph): Add prototype.
3248
3249 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
3250 (note_mouse_movement, XTmouse_position): Use generic
3251 remember_mouse_glyph, add last_mouse_glyph arg.
3252
3253 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
3254 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
3255 (note_mouse_movement, w32_mouse_position): Use generic
3256 remember_mouse_glyph, add last_mouse_glyph arg.
3257
3258 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
3259 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
3260 (XTmouse_position): Adapt to use generic remember_mouse_glyph
3261 instead of pixel_to_glyph_coords.
3262
3263 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
3264 Fix x position for ON_TEXT when left margin width > 0.
3265
3266 2005-10-11 Kim F. Storm <storm@cua.dk>
3267
3268 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
3269
3270 * keyboard.c (make_lispy_position): Fix buffer calculations for
3271 mouse click or movement in right fringe and the margins.
3272
3273 2005-10-11 Juanma Barranquero <lekktu@gmail.com>
3274
3275 * image.c (fn_jpeg_stdio_src): Don't define it.
3276 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
3277 (our_common_init_source): Rename from `our_init_source'.
3278 (our_common_term_source): Rename from `our_term_source'.
3279 (our_memory_fill_input_buffer): Rename from
3280 `our_fill_input_buffer'.
3281 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
3282 (jpeg_memory_src): Use the new names.
3283 (struct jpeg_stdio_mgr): New struct.
3284 (JPEG_STDIO_BUFFER_SIZE): New constant.
3285 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
3286 (jpeg_file_src): New functions.
3287 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
3288
3289 2005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3290
3291 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
3292 (fm_font_family_alist): New variable.
3293 (syms_of_macterm): Initialize and staticpro it.
3294 (decode_mac_font_name): Replace '-' in family name with '_' if it
3295 occurs just once. Lower family name.
3296 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
3297 All uses changed. Remove argument MF and code conversion for it.
3298 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
3299 to CHARSET. Parse font size. Lower family name. Return integer
3300 value for status of parsing.
3301 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
3302 Don't use Fdowncase because family name is already lowered by
3303 decode_mac_font_name.
3304 (init_font_name_table): Always call decode_mac_font_name.
3305 Add pair of family name and its reference to fm_font_family_alist.
3306 (mac_clear_font_name_table): Clear fm_font_family_alist.
3307 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
3308 Lookup fm_font_family_alist to get font family reference.
3309 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
3310 name is already lowered by parse_x_font_name.
3311
3312 2005-10-11 Kim F. Storm <storm@cua.dk>
3313
3314 * xterm.c (glyph_rect): Return 0 if position is outside text area.
3315
3316 * keyboard.c (make_lispy_position): Fix buffer position calculation for
3317 mouse click or movement in fringe.
3318
3319 2005-10-10 Jason Rumney <jasonr@gnu.org>
3320
3321 * xterm.c (remember_mouse_glyph): New function.
3322 (note_mouse_movement): Use it to remember the current glyph if changed.
3323 (XTmouse_position): Fix calculation of fake glyph under mouse.
3324 Move code to calculate glyph under mouse into remember_mouse_glyph.
3325
3326 2005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3327
3328 * emacs.c (USAGE3, standard_args): -nb => -nbi.
3329
3330 2005-10-10 Juanma Barranquero <lekktu@gmail.com>
3331
3332 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
3333 (next_frame, prev_frame, set_term_frame_name): Make static.
3334
3335 * window.c (Fwindow_tree): Fix spelling.
3336
3337 2005-10-09 Romain Francoise <romain@orebokech.com>
3338
3339 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
3340
3341 2005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3342
3343 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
3344 Add options -nb, --no-bitmap-icon.
3345
3346 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
3347
3348 2005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3349
3350 * macgui.h (MAX_CLIP_RECTS): New define.
3351 (struct _XGC): New member clip_region.
3352 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
3353 clip_rects.
3354
3355 * macterm.c (GC_CLIP_REGION): New macro.
3356 (saved_port_clip_region): New variable.
3357 (mac_begin_clip, mac_end_clip): New functions.
3358 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
3359 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
3360 (mac_copy_area_with_mask, mac_scroll_area): Use them.
3361 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
3362 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
3363 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
3364 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
3365 rectangles stored in gc.
3366 (XFreeGC): Dispose of clipping region.
3367 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
3368 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
3369 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
3370 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
3371 (x_draw_bar_cursor): Use them.
3372 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
3373 get multiple clipping rectangles.
3374
3375 * macterm.h (mac_term_init): Add types to extern.
3376 (struct mac_output): Remove members mWP and pending_menu_activation.
3377 Put members scroll_bar_foreground_pixel and
3378 scroll_bar_background_pixel in #if 0.
3379 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
3380
3381 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
3382 Add debugging code.
3383
3384 2005-10-08 Kim F. Storm <storm@cua.dk>
3385
3386 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
3387
3388 2005-10-07 Kim F. Storm <storm@cua.dk>
3389
3390 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
3391 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
3392 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
3393
3394 2005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3395
3396 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
3397 to for_overlaps. Now occupy 3 bits.
3398 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
3399 (OVERLAPS_ERASED_CURSOR): New defines.
3400 (struct redisplay_interface): Add new OVERLAPS arg to member
3401 fix_overlapping_area.
3402 (x_fix_overlapping_area): Add new OVERLAPS arg.
3403 (get_glyph_string_clip_rects): Add extern.
3404
3405 * dispnew.c (redraw_overlapping_rows):
3406 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
3407
3408 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
3409 for_overlaps.
3410 (get_glyph_string_clip_rects): New function created from
3411 get_glyph_string_clip_rect. Set clipping rectangles according to the
3412 value of for_overlaps. Enable to store multiple clipping rectangles.
3413 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
3414 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
3415 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
3416 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
3417 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
3418 calculating clipping rectangles later. Call x_fix_overlapping_area
3419 with new OVERLAPS arg to draw only erased cursor area.
3420 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
3421 to draw overlaps in both preceding and succeeding rows.
3422
3423 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
3424 struct glyph_string to for_overlaps.
3425
3426 2005-10-04 Richard M. Stallman <rms@gnu.org>
3427
3428 * alloc.c (refill_memory_reserve): Conditionalize the body,
3429 not the function's existence.
3430
3431 2005-10-04 Kim F. Storm <storm@cua.dk>
3432
3433 * window.c (window_split_tree): New function.
3434 (Fwindow_split_tree): New defun.
3435 (syms_of_window): Defsubr it.
3436
3437 2005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3438
3439 * macterm.c (mac_invert_rectangle): New function.
3440 (XTflash): Use it.
3441
3442 2005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
3443
3444 * regex.h (re_char): Don't expose it in the interface.
3445 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
3446
3447 * regex.c (re_char): Move it back here.
3448 (re_set_whitespace_regexp): Change the arg's type to not use it.
3449
3450 * keyboard.c (make_lispy_event): If point has moved between down and up
3451 event, make it a drag, not a click, to mirror what
3452 mouse-drag-region expects.
3453
3454 2005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
3455
3456 * lisp.h (fatal): Undo previous change.
3457 * term.c (fatal): Undo previous change.
3458
3459 2005-10-01 Richard M. Stallman <rms@gnu.org>
3460
3461 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
3462
3463 2005-10-01 Kim F. Storm <storm@cua.dk>
3464
3465 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
3466
3467 2005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3468
3469 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
3470
3471 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
3472 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
3473 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
3474 Try ATSUI-compatible 12pt Monaco font first.
3475
3476 * macgui.h (struct _XCharStruct): New member valid_p.
3477 (STORE_XCHARSTRUCT): Set valid_p.
3478 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
3479
3480 * macterm.c (mac_draw_string_common, x_per_char_metric)
3481 (mac_compute_glyph_string_overhangs, init_font_name_table)
3482 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
3483 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
3484 (x_draw_glyph_string_background)
3485 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
3486 XDrawImageString. Always draw background and foreground separately.
3487 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
3488 functions for one-byte chars when using ATSUI-compatible fonts.
3489 (atsu_font_id_hash) [USE_ATSUI]: New variable.
3490 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
3491 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
3492 max_char_or_byte2 more in detail.
3493 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
3494
3495 2005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
3496
3497 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
3498 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
3499
3500 * unexelf.c (fatal): Fix prototype.
3501
3502 * term.c (fatal): Implement using varargs.
3503
3504 * regex.c (re_char): Move typedef ...
3505 * regex.h (re_char): ... here.
3506 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
3507
3508 * emacs.c (malloc_set_state): Fix return type.
3509 (endif): Fix type.
3510
3511 * lisp.h (fatal): Add argument types.
3512
3513 * dispextern.h (fatal): Delete prototype.
3514
3515 * systime.h (make_time): Prototype moved from ...
3516 * editfns.c (make_time): ... here.
3517
3518 * editfns.c: Move systime.h include after lisp.h.
3519 * dired.c:
3520 * xsmfns.c:
3521 * process.c: Likewise.
3522
3523 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
3524 Add parameter types.
3525 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
3526 (emacs_blocked_free): Change definition to match __free_hook.
3527 (emacs_blocked_malloc): Change definition to match __malloc_hook.
3528 (emacs_blocked_realloc): Change definition to match __realloc_hook.
3529
3530 2005-09-30 Romain Francoise <romain@orebokech.com>
3531
3532 * minibuf.c (Fread_buffer): Follow convention for reading from the
3533 minibuffer with a default value. Doc fix.
3534
3535 2005-09-29 Juri Linkov <juri@jurta.org>
3536
3537 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
3538 Rename argument name `string' to `format-string'.
3539 (Fformat): Doc fix.
3540
3541 2005-09-28 Kim F. Storm <storm@cua.dk>
3542
3543 * image.c (gif_load): Fix size of allocated image buffer
3544 for images where a sub-image may be larger than the image's
3545 total height/width specifications.
3546
3547 2005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3548
3549 * macgui.h (struct _XCharStruct): Each member now takes short value.
3550
3551 2005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
3552
3553 * xfaces.c (lookup_derived_face): Add parameter type.
3554
3555 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
3556
3557 * marker.c (verify_bytepos): Add parameter type.
3558
3559 * process.c (get_operating_system_release): Move prototype ...
3560
3561 * systime.h (get_operating_system_release): ... here.
3562
3563 * xterm.c (handle_one_xevent): Refer to union field to match the
3564 type required by the function definition.
3565 (set_vertical_scroll_bar): Move prototype ...
3566
3567 * xterm.h: ... here.
3568
3569 * fns.c (internal_equal, seed_random): Fix prototypes.
3570 (internal_equal): Add missing parameter.
3571
3572 2005-09-25 Richard M. Stallman <rms@gnu.org>
3573
3574 * keyboard.c (update_menu_bindings): Variable deleted.
3575 (syms_of_keyboard): Don't defvar it.
3576 (parse_menu_item): Don't test it.
3577
3578 2005-09-23 Richard M. Stallman <rms@gnu.org>
3579
3580 * editfns.c (Fformat): Explicitly test for end of format string
3581 and don't use `index'.
3582
3583 2005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
3584
3585 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
3586 Define BROKEN_GET_CURRENT_DIR_NAME.
3587
3588 * sysdep.c (get_current_dir_name): Also define if
3589 BROKEN_GET_CURRENT_DIR_NAME.
3590
3591 * m/ibmrs6000.h: Test for USG5, not USG5_4.
3592
3593 2005-09-22 Kim F. Storm <storm@cua.dk>
3594
3595 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
3596 (message2): Fix commentary. Ok to use alloca'ed memory.
3597 Still not ok to use Lisp string data (because of GC).
3598 (set_message): Add comment why GC cannot happen.
3599
3600 2005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3601
3602 * macterm.c (xlfdpat_block_match_1): Fix assertion.
3603 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
3604 variants for a scalable font multiple times.
3605
3606 2005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3607
3608 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
3609 Setup slave tty options before forking.
3610
3611 2005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3612
3613 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
3614 positions have been set for the frame (as is done for frames in
3615 special-display-buffer-names).
3616
3617 2005-09-19 Kim F. Storm <storm@cua.dk>
3618
3619 * editfns.c (Fformat): Don't scan past end of format string that
3620 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
3621
3622 2005-09-18 Andreas Schwab <schwab@suse.de>
3623
3624 * window.h (struct window): Remove height_fixed_p, no longer set.
3625
3626 * window.c (make_window): Don't initialize height_fixed_p.
3627 (window_fixed_size_p): Don't use it.
3628
3629 2005-09-18 John Paul Wallington <jpw@pobox.com>
3630
3631 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
3632
3633 2005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3634
3635 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
3636
3637 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
3638 New variables.
3639 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
3640 file selection.
3641
3642 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
3643
3644 2005-09-17 Eli Zaretskii <eliz@gnu.org>
3645
3646 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
3647 (obj): Use XMENU_OBJ, not a literal xmenu.o.
3648
3649 2005-09-16 Romain Francoise <romain@orebokech.com>
3650
3651 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
3652
3653 2005-09-15 Richard M. Stallman <rms@gnu.org>
3654
3655 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
3656 (display_mode_element): Instead of `lisp_string' and `this',
3657 record `offset' and increment that.
3658 `last_offset' replaces `last'.
3659
3660 * Makefile.in (XMENU_OBJ): Variable deleted.
3661 (obj): Use xmenu.o unconditionally.
3662 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
3663
3664 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
3665
3666 2005-09-15 Kim F. Storm <storm@cua.dk>
3667
3668 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
3669 (reseat_at_next_visible_line_start): Likewise (in xassert).
3670
3671 2005-09-14 Romain Francoise <romain@orebokech.com>
3672
3673 * fileio.c (write_region_inhibit_fsync): New variable.
3674 (Fwrite_region): Use it to skip call to fsync.
3675 (syms_of_fileio): Initialize it.
3676
3677 2005-09-14 Kenichi Handa <handa@m17n.org>
3678
3679 * coding.c (code_convert_region_unwind): Argument format changed.
3680 (run_pre_post_conversion_on_str): If pre-write-conversion function
3681 changed the current buffer, delete the new buffer.
3682 (run_pre_write_conversin_on_c_str): Likewise.
3683
3684 * fileio.c (Fexpand_file_name): Check multibyteness of
3685 default_directory.
3686
3687 2005-09-13 Kenichi Handa <handa@m17n.org>
3688
3689 * composite.c (compose_chars_in_text): Delete it.
3690
3691 * composite.h (compose_chars_in_text): Delete extern.
3692
3693 2005-09-13 Kim F. Storm <storm@cua.dk>
3694
3695 * print.c (print_error_message): Fix last change.
3696
3697 2005-09-12 Kim F. Storm <storm@cua.dk>
3698
3699 * composite.c (compose_chars_in_text): Fix setup of `pend'.
3700 Unconditionally reload `ptr' and `pend' after eval.
3701
3702 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
3703
3704 * print.c (print_error_message): Pass copy of caller name to
3705 message_dolog.
3706
3707 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
3708
3709 2005-09-12 Kenichi Handa <handa@m17n.org>
3710
3711 * xdisp.c (display_mode_element): Be sure to make variables THIS
3712 and LISP_STRING point into a string data of ELT.
3713
3714 2005-09-12 Kim F. Storm <storm@cua.dk>
3715
3716 * editfns.c (Ftranslate_region_internal): Reload `tt' after
3717 signal_after_change that may have GC'ed.
3718 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
3719
3720 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
3721 after insert while runs signal_after_change.
3722
3723 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
3724 declaration to where it is used.
3725
3726 * w32.c (check_windows_init_file): Fix allocation of error buffer.
3727
3728 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
3729 (x_set_name_internal): Call x_encode_text with new FREEP arg to
3730 know if xfree is needed instead of guessing.
3731
3732 * xterm.h (x_encode_text): Remove prototype.
3733
3734 2005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
3735
3736 * w32term.c (x_bitmap_icon): Load small icons too.
3737
3738 2005-09-10 Romain Francoise <romain@orebokech.com>
3739
3740 * buffer.c (init_buffer): Grow buffer to add directory separator
3741 and terminal zero. Fix typos.
3742
3743 2005-09-10 Eli Zaretskii <eliz@gnu.org>
3744
3745 * buffer.c (init_buffer): Fix error message for failed call to
3746 get_current_dir_name.
3747 (get_current_dir_name): Remove prototype.
3748
3749 * xsmfns.c (get_current_dir_name): Remove prototype.
3750
3751 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
3752 Add prototype.
3753
3754 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
3755 Don't #undef NULL after including blockinput.h.
3756
3757 * config.in: Regenerated.
3758
3759 2005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
3760
3761 Remove the MAXPATHLEN limitations:
3762
3763 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
3764 New function.
3765
3766 * buffer.c (init_buffer): Use it.
3767
3768 * xsmfns.c (smc_save_yourself_CB): Ditto.
3769
3770 2005-09-09 Kim F. Storm <storm@cua.dk>
3771
3772 * doc.c (Fsubstitute_command_keys): Lookup key binding for
3773 commands that are remapped from some other command.
3774
3775 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
3776 flag in disabled rows below the window.
3777
3778 * frame.h (struct frame): New member updated_p.
3779
3780 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
3781 member. Remove local `updated' array and associated variables.
3782
3783 2005-09-07 Kim F. Storm <storm@cua.dk>
3784
3785 * xdisp.c (handle_display_prop): Respect overlay window property.
3786
3787 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
3788 Fixes crash reported by YAMAMOTO Mitsuharu.
3789
3790 2005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3791
3792 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
3793 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
3794 (xlfdpat_block_match_1, xlfdpat_match): New functions.
3795 (xlfdpat_block_match): New macro.
3796 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
3797 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
3798 (add_font_name_table_entry): Increase font_name_table_size more
3799 rapidly.
3800 (mac_c_string_match): Remove function.
3801 (mac_do_list_fonts): Use XLFD pattern match instead of regular
3802 expression match.
3803
3804 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
3805
3806 2005-09-03 Richard M. Stallman <rms@gnu.org>
3807
3808 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
3809 (move_it_in_display_line_to): Stop after last char on line even
3810 on a windowing terminal, if that's the specified stop position.
3811
3812 * fns.c (Fsort): Doc fix.
3813
3814 * editfns.c (Fpropertize): Don't insist that properties be symbols.
3815
3816 2005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
3817
3818 * dired.c (directory_files_internal_unwind, directory_files_internal)
3819 (file_name_completion): Use a Save_Value object rather than a cons of
3820 two 16bit ints to store the DIR*.
3821 (directory_files_internal, file_name_completion): Handle both EINTR and
3822 EAGAIN consistently after `readdir'.
3823
3824 2005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
3825
3826 * intervals.c (update_interval): Add position info in error.
3827
3828 * dispnew.c (window_to_frame_hpos, update_window):
3829 Avoid gcc warning about unused variable `f'.
3830
3831 2005-08-31 Jason Rumney <jasonr@gnu.org>
3832
3833 * w32menu.c (add_menu_item): If unicode_append_menu returns an
3834 error, revert to using AppendMenu.
3835
3836 2005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3837
3838 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
3839 All uses changed.
3840 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
3841 cases.
3842 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
3843 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
3844 Use posix_pathname_to_fsspec.
3845 [MAC_OS] (xpm_load_image): Fill in background_transparent field
3846 while we have mask.
3847
3848 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
3849
3850 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
3851
3852 2005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3853
3854 * syntax.c (update_syntax_table): Properly reproduce the special +1
3855 setting of e_property at the end of the buffer when bumping into the
3856 INTERVALS_AT_ONCE limit.
3857
3858 2005-08-27 Eli Zaretskii <eliz@gnu.org>
3859
3860 * emacs.c (USAGE1): Fix the description of the -Q option.
3861
3862 2005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
3863
3864 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
3865
3866 2005-08-26 Kim F. Storm <storm@cua.dk>
3867
3868 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
3869 Don't move PT to new window start.
3870
3871 2005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3872
3873 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
3874 ICONIFY/DEICONIFY_EVENT.
3875
3876 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
3877 Restore background color.
3878 (mac_handle_visibility_change): New function.
3879 (x_make_frame_invisible, x_iconify_frame)
3880 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
3881 [USE_CARBON_EVENTS] (mac_handle_window_event)
3882 (install_window_handler): Handle visibility change events.
3883 (x_make_frame_visible): Don't reposition window if it is iconified
3884 or asked for visible before. Select and uncollapse window when it
3885 is made visible.
3886 (x_make_frame_invisible): Don't reset x_highlight_frame.
3887 (x_iconify_frame): Likewise. Make invisible frame visible before
3888 it is iconified.
3889 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
3890 (do_window_update): Don't change visibility of invisible frame.
3891
3892 2005-08-22 Juri Linkov <juri@jurta.org>
3893
3894 * term.c (turn_on_face): Check for TS_set_foreground and
3895 TS_set_background depending on standout_mode. Simplify.
3896
3897 2005-08-21 Kim F. Storm <storm@cua.dk>
3898
3899 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
3900 bitmaps on fully visible rows.
3901
3902 * fringe.c (update_window_fringes): Replace FORCE_P arg with
3903 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
3904 and return 0.
3905
3906 * xdisp.c (redisplay_window): Call update_window_fringes with
3907 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
3908
3909 2005-08-20 Richard M. Stallman <rms@gnu.org>
3910
3911 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
3912 (resize_mini_window): Set w->start, and PT, so as to display the tail
3913 end of the buffer, if it doesn't all fit.
3914
3915 2005-08-18 Kim F. Storm <storm@cua.dk>
3916
3917 * xdisp.c (calc_pixel_width_or_height): Use actual display
3918 resolution when available instead of Vdisplay_pixels_per_inch.
3919
3920 2005-08-17 Kim F. Storm <storm@cua.dk>
3921
3922 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
3923
3924 * dispnew.c (buffer_posn_from_coords): Check that target row is
3925 within matrix.
3926
3927 2005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3928
3929 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
3930 xg_set_frame_icon and call it.
3931
3932 * gtkutil.c (xg_set_frame_icon): New function.
3933
3934 * gtkutil.h (xg_set_frame_icon): Declare it.
3935
3936 2005-08-16 Kim F. Storm <storm@cua.dk>
3937
3938 * dispnew.c (increment_row_positions): Skip non-enabled rows.
3939
3940 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
3941 (Fcurrent_window_configuration): Use VECSIZE macro instead.
3942
3943 2005-08-15 Richard M. Stallman <rms@gnu.org>
3944
3945 * xdisp.c (message3_nolog): Clear echo_message_buffer.
3946
3947 2005-08-15 Kim F. Storm <storm@cua.dk>
3948
3949 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
3950
3951 * process.c (deactivate_process, status_notify, read_process_output)
3952 (update_status, status_convert, decode_status, allocate_pty)
3953 (make_process, remove_process, list_processes_1)
3954 (create_process_1, unwind_request_sigio, read_process_output)
3955 (send_process, keyboard_bit_set): Declare static.
3956 (Fdelete_process): Simplify. Pass process to status_notify, so we
3957 don't try to read output from it.
3958 (status_notify): New arg deleting_process--don't try to read
3959 output from that process.
3960
3961 * lisp.h (deactivate_process, status_notify, read_process_output):
3962 Remove prototypes.
3963
3964 2005-08-14 Richard M. Stallman <rms@gnu.org>
3965
3966 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
3967 define_image_type.
3968
3969 2005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3970
3971 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
3972 (xg_get_image_for_pixmap): Move some code to
3973 xg_get_pixbuf_from_pix_and_mask, and call it.
3974
3975 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
3976
3977 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
3978 to get an GTK icon and set it with GTK functions to avoid having GTK
3979 override an icon set with just X functions.
3980
3981 2005-08-11 Richard M. Stallman <rms@gnu.org>
3982
3983 * image.c (syms_of_image): Init image_types here, and call
3984 define_image_type.
3985 (init_image): Not here.
3986
3987 2005-08-09 Richard M. Stallman <rms@gnu.org>
3988
3989 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
3990
3991 * lisp.h (QUIT): Throw t to Vthrow_on_input.
3992
3993 2005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
3994
3995 * floatfns.c (Fexpt): Use floats for negative exponent.
3996
3997 2005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3998
3999 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
4000 should not be there, causing menu display errors with GTK 2.6.9.
4001
4002 2005-08-07 Richard M. Stallman <rms@gnu.org>
4003
4004 * floatfns.c (Fexpt): Undo previous change.
4005
4006 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
4007 so it can be used with various state vectors.
4008
4009 * emacs.c (endif): Convert -script into -scriptload.
4010 (standard_args): Add -scriptload. Allow -basic-display with one dash.
4011
4012 * fns.c (syms_of_fns): Add `emacs' to features.
4013
4014 * term.c (set_terminal_modes): If no TS_termcap_modes string,
4015 output newlines to scroll the old screen contents off the screen.
4016
4017 2005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
4018
4019 * floatfns.c (Fexpt): Use floats for negative exponent.
4020 Reported by D Goel.
4021
4022 2005-08-02 Richard M. Stallman <rms@gnu.org>
4023
4024 * frame.c (Fframe_char_width): Doc fix.
4025
4026 2005-07-30 Juanma Barranquero <lekktu@gmail.com>
4027
4028 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
4029 Defvar it.
4030
4031 2005-07-28 Juanma Barranquero <lekktu@gmail.com>
4032
4033 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
4034 (my_create_window, my_create_tip_window): Make static.
4035
4036 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
4037 (my_set_foreground_window, my_destroy_window): Make static.
4038
4039 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
4040
4041 Merge gnulib getopt implementation into Emacs.
4042
4043 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
4044 now part of lib-src.
4045
4046 2005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
4047
4048 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
4049
4050 2005-07-25 Jason Rumney <jasonr@gnu.org>
4051
4052 * w32menu.c (w32_menu_display_help): Suppress tooltip when
4053 navigating menus with the keyboard.
4054
4055 2005-07-23 Richard M. Stallman <rms@gnu.org>
4056
4057 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
4058
4059 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
4060 gc_relative_threshold, one by one.
4061
4062 * keyboard.c (read_char): Test gc_cons_threshold.
4063 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
4064
4065 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
4066 gc_relative_threshold, one by one.
4067
4068 * alloc.c (gc_cons_threshold): Not static.
4069 (gc_cons_combined_threshold): Var deleted.
4070 (gc_relative_threshold): New variable.
4071 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
4072 instead of gc_cons_combined_threshold.
4073
4074 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
4075 (gc_cons_combined_threshold): Declaration deleted.
4076
4077 2005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4078
4079 * mac.c: Don't include stdlib.h or string.h.
4080 (Fdo_applescript, Fmac_file_name_to_posix)
4081 (Fmac_file_name_to_posix): Doc fixes.
4082 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
4083 (Fmac_code_convert_string): Likewise.
4084 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
4085 if the executable is not contained in a bundle.
4086
4087 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
4088 (gray_width, gray_height): Remove defines.
4089 (gray_bits, gray_bitmap_width, gray_bitmap_height)
4090 (gray_bitmap_bits): Remove variables.
4091 (lispy_function_keys): Remove extern.
4092 (free_frame_menubar): Add extern.
4093 (x_window_to_frame): Remove function.
4094 (unwind_create_tip_frame): Add declaration.
4095 (x_set_name_internal): New function.
4096 (x_set_name, x_set_title): Use it.
4097 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
4098 (Fx_display_pixel_height, Fx_display_planes)
4099 (Fx_display_color_cells, Fx_server_max_request_size)
4100 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4101 (Fx_display_mm_height, Fx_display_mm_width)
4102 (Fx_display_backing_store, Fx_display_visual_class)
4103 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
4104
4105 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
4106
4107 * macselect.c (Fx_own_selection_internal): Follow error conventions.
4108 (Fx_get_selection_internal, Fx_selection_owner_p)
4109 (Fx_selection_exists_p): Doc fixes.
4110 (syms_of_macselect) <selection-converter-alist>: Likewise.
4111
4112 2005-07-21 Juanma Barranquero <lekktu@gmail.com>
4113
4114 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
4115
4116 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
4117 (Fccl_execute_on_string): Likewise; add usage info.
4118
4119 * composite.c (Fcompose_region_internal)
4120 (Fcompose_string_internal):
4121 Improve argument/docstring consistency.
4122
4123 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
4124 Fix typos in docstrings.
4125
4126 * textprop.c (Fnext_char_property_change)
4127 (Fprevious_char_property_change): Doc fixes.
4128
4129 * window.c (Fset_window_margins, Fset_window_fringes):
4130 Improve argument/docstring consistency.
4131
4132 * xfaces.c (Finternal_lisp_face_p): Doc fix.
4133
4134 2005-07-21 Andreas Schwab <schwab@suse.de>
4135
4136 * eval.c (restore_stack_limits): Return a value.
4137
4138 2005-07-20 Juanma Barranquero <lekktu@gmail.com>
4139
4140 * eval.c (Fdefvar): Doc fix.
4141
4142 2005-07-20 Kim F. Storm <storm@cua.dk>
4143
4144 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
4145 Use make_save_value to unwind protect stream.
4146
4147 * lread.c (Fload, load_unwind):
4148 Use make_save_value to unwind protect stream.
4149
4150 2005-07-19 Juanma Barranquero <lekktu@gmail.com>
4151
4152 * eval.c (Fprog2, Fcalled_interactively_p),
4153 (syms_of_eval) <debug-on-quit>: Doc fixes.
4154 (syms_of_eval) <max-specpdl-size>:
4155 (Finteractive_p): Fix typos in docstrings.
4156
4157 2005-07-19 Kim F. Storm <storm@cua.dk>
4158
4159 * w32fns.c (Vx_hand_shape): Variable removed.
4160 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
4161
4162 2005-07-19 Kenichi Handa <handa@m17n.org>
4163
4164 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
4165
4166 2005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
4167
4168 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
4169
4170 2005-07-18 Kim F. Storm <storm@cua.dk>
4171
4172 * frame.h (struct frame): New member already_hscrolled_p.
4173
4174 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
4175 to avoid redisplay looping hscrolling back and forth ad infinitum.
4176
4177 2005-07-18 Juri Linkov <juri@jurta.org>
4178
4179 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
4180 * keymap.c (Fminor_mode_key_binding):
4181 * macterm.c (mac-emulate-three-button-mouse):
4182 Delete duplicate duplicate words.
4183
4184 2005-07-18 Ken Raeburn <raeburn@gnu.org>
4185
4186 * minibuf.c (Ftest_completion): Fix odd syntax in test.
4187
4188 2005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4189
4190 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
4191
4192 * macgui.h (struct _XGC): New struct.
4193 (GC): Use it.
4194 (GCForeground, GCBackground, GCFont): Use X11 mask values.
4195 (XCreateGC, XParseGeometry): Move externs to macterm.h.
4196
4197 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
4198 (XSetFont): Add declaration.
4199 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
4200 Remove functions.
4201 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
4202 New defines.
4203 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
4204 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
4205 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
4206 Use them.
4207 (mac_erase_rectangle): New function.
4208 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
4209 (x_draw_stretch_glyph_string): Use it.
4210 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
4211 (XSetBackground, XSetFont): Adjust for new GC implementation.
4212 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
4213 (XTset_vertical_scroll_bar): Clear area under scroll bar.
4214
4215 * macterm.h (struct mac_display_info): Change types of
4216 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
4217 (XCreateGC, XParseGeometry): Move externs from macgui.h.
4218
4219 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
4220
4221 2005-07-16 Richard M. Stallman <rms@gnu.org>
4222
4223 * buffer.c (Fmake_overlay): Doc fix.
4224
4225 2005-07-16 Eli Zaretskii <eliz@gnu.org>
4226
4227 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
4228 Vw32_valid_locale_ids, and Vw32_valid_codepages.
4229
4230 2005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4231
4232 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
4233 Use Fstring_as_unibyte instead of string_make_unibyte.
4234
4235 2005-07-15 Richard M. Stallman <rms@gnu.org>
4236
4237 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
4238
4239 2005-07-15 Kim F. Storm <storm@cua.dk>
4240
4241 * xdisp.c: Fix redisplay loop in last change.
4242 (IT_POS_VALID_AFTER_MOVE_P): New macro.
4243 (move_it_vertically_backward, move_it_by_lines): Use it.
4244
4245 2005-07-14 Jason Rumney <jasonr@gnu.org>
4246
4247 * w32.c (init_environment): Default HOME directory to user's
4248 appdata directory if possible.
4249
4250 2005-07-14 Kim F. Storm <storm@cua.dk>
4251
4252 * .gdbinit (pitx): Fix output format. Print string charpos.
4253
4254 * lread.c (syms_of_lread): Initialize seen_list.
4255
4256 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
4257
4258 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
4259 Staticpro re_match_object.
4260
4261 2005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4262
4263 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
4264 dereference.
4265
4266 * macterm.c (mac_window_to_frame): Remove duplicate define.
4267
4268 2005-07-14 Kenichi Handa <handa@m17n.org>
4269
4270 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
4271 (code_convert_region): Adjust for the above change.
4272 (set_conversion_work_buffer): If the work buffer is already in
4273 use, generate a new buffer and return it. Otherwise return Qnil.
4274 (run_pre_post_conversion_on_str): Adjust for the above change.
4275 (run_pre_write_conversin_on_c_str): Likewise.
4276
4277 2005-07-13 Kim F. Storm <storm@cua.dk>
4278
4279 * xdisp.c (start_display): Don't reseat to next visible line start
4280 if current start position is in a string or image.
4281 (move_it_vertically_backward): Be sure to move out of strings and
4282 images when moving it2 forward.
4283 (move_it_by_lines): When moving forward, move to next buffer
4284 position if we end up in a string or image. When moving backward,
4285 count rows moved over when moving to start of current row in case
4286 row starts in middle of a string or image. Also move further
4287 backward if we end up in a string or image.
4288 (try_cursor_movement): If overlay string spans multiple lines,
4289 move backward to set cursor on start of an overlay string.
4290 (cursor_row_p): Row is ok if cursor is at newline from string, but
4291 string starts on this line (so we always position cursor at start
4292 of string).
4293
4294 * indent.c (Fvertical_motion): If start position is on an image,
4295 don't move back if we move too far (that's almost certain to happen).
4296
4297 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
4298 row in minibuffer windows.
4299 (try_window): Don't check margins in minibuffer windows.
4300
4301 2005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4302
4303 * macterm.c: Don't include stdlib.h or composite.h.
4304 (x_use_underline_position_properties, last_mouse_press_frame)
4305 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
4306 (syms_of_macterm, mac_initialize): Don't initialize them.
4307 (waiting_for_input, initial_argv, initial_argc)
4308 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
4309 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
4310 (extra_keyboard_modifiers): Fix type in extern.
4311 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
4312 (x_scroll_bar_report_motion): Add argument types to declaration.
4313 (mac_compute_glyph_string_overhangs): Add declaration.
4314 (disable_mouse_highlight): Remove unused variable.
4315 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
4316 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
4317 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
4318 All callers changed.
4319 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
4320 timestamp.
4321 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
4322 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
4323 only when its width is less than the height.
4324 (XTredeem_scroll_bar): Sync with xterm.c.
4325 (font_name_table, font_name_table_size, font_name_count):
4326 Make static.
4327 (drag_and_drop_file_list): Remove variable. Previous use is now
4328 local to function.
4329 (do_ae_open_documents): Move DRAG_N_DROP event construction part
4330 from XTread_socket.
4331 (XTread_socket): Consolidate setting of event timestamp.
4332 Move DRAG_N_DROP event construction part to do_ae_open_documents.
4333 Support extra_keyboard_modifiers.
4334
4335 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
4336 beginning with that for ASCII.
4337
4338 2005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
4339
4340 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
4341 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
4342 (syms_of_alloc): Declare gc-cons-percentage.
4343
4344 * eval.c (Feval, Ffuncall):
4345 * keyboard.c (read_char):
4346 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
4347
4348 * lisp.h (gc_cons_combined_threshold): Declare.
4349
4350 2005-07-12 Kim F. Storm <storm@cua.dk>
4351
4352 * coding.c (Qprocess_argument):
4353 * coding.h (Qprocess_argument): Remove unused var.
4354
4355 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
4356
4357 2005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4358
4359 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
4360 Endian.h.
4361 [!MAC_OSX] (fchmod, fchown): New functions.
4362 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
4363 Use SBYTES and EndianU32_BtoN.
4364 (mac_get_object_from_code): Return 4 byte string even if argument
4365 is 0. Use make_unibyte_string and EndianU32_NtoB.
4366 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
4367 (Fmac_set_file_type): Fix documents and argument declarations.
4368 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
4369
4370 2005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
4371
4372 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
4373
4374 2005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4375
4376 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
4377 Lucid if X_I18N, font otherwise.
4378
4379 2005-07-10 Steven Tamm <steventamm@mac.com>
4380
4381 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
4382 (Fmac_set_file_type, Fmac_set_file_creator): Add.
4383 (mac_get_object_from_code, mac_get_code_from_arg): Add.
4384
4385 2005-07-10 Richard M. Stallman <rms@gnu.org>
4386
4387 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
4388 (syms_of_lread): Set up eval-buffer-list.
4389 (Feval_buffer, Feval_region): Bind eval-buffer-list.
4390
4391 2005-07-08 Richard M. Stallman <rms@gnu.org>
4392
4393 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
4394
4395 2005-07-08 Kim F. Storm <storm@cua.dk>
4396
4397 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
4398 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
4399
4400 2005-07-07 Kim F. Storm <storm@cua.dk>
4401
4402 * window.c (Frecenter): Fix last change (set iarg before use).
4403
4404 2005-07-06 Richard M. Stallman <rms@gnu.org>
4405
4406 * window.c (Frecenter): When arg is inside the scroll margin,
4407 move it out of the margin.
4408
4409 2005-07-06 Jason Rumney <jasonr@gnu.org>
4410
4411 * w32console.c (initialize_w32_display): Detect when the console
4412 dimensions are insane, and default to 80x25 instead.
4413 (w32_use_full_screen_buffer): Default to NIL.
4414
4415 2005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4416
4417 * macterm.c (mac_draw_vertical_window_border): Use foreground of
4418 VERTICAL_BORDER_FACE_ID for vertical border line.
4419 (mac_encode_char): Call check_ccl_update in advance.
4420 (mac_to_x_fontname, x_font_name_to_mac_font_name)
4421 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
4422 Don't assume that font family length is less than 32.
4423 (x_compute_min_glyph_bounds): Make static.
4424 (x_load_font): Never set fonts_changed_p to zero.
4425
4426 2005-07-04 Lute Kamstra <lute@gnu.org>
4427
4428 * Update FSF's address in GPL notices.
4429
4430 2005-07-03 Richard M. Stallman <rms@gnu.org>
4431
4432 * xdisp.c (try_window): Fix previous change in how it handles
4433 a partially-visible line or one only partly past the margin.
4434
4435 * window.c (window_scroll_pixel_based): Take account
4436 of this_scroll_margin when finding point when scrolling up.
4437
4438 2005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
4439
4440 * window.c (window_scroll_pixel_based, window_scroll_line_based):
4441 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
4442 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
4443
4444 2005-07-02 Juri Linkov <juri@jurta.org>
4445
4446 * w32term.c (w32_draw_vertical_window_border): Use foreground of
4447 VERTICAL_BORDER_FACE_ID for vertical border line.
4448
4449 2005-07-02 Eli Zaretskii <eliz@gnu.org>
4450
4451 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
4452 fchmod so that chmod doesn't get called on MSDOS before the file
4453 is closed.
4454
4455 2005-07-01 Jason Rumney <jasonr@gnu.org>
4456
4457 * w32term.c (cleartype_active): New flag for enabling sub-pixel
4458 workaround.
4459 (w32_initialize): Initialize it.
4460 (w32_native_per_char_metric): Allow a couple of extra pixels when
4461 Cleartype is active.
4462
4463 * w32term.c (w32_initialize): Move check for screen reader here
4464 from syms_of_w32term.
4465
4466 2005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4467
4468 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
4469 is not zero.
4470
4471 2005-07-01 Masatake YAMATO <jet@gyve.org>
4472
4473 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
4474
4475 2005-06-30 Juri Linkov <juri@jurta.org>
4476
4477 * xdisp.c (x_draw_vertical_border): If left fringe is not present
4478 decrease x coord of vertical border by 1 pixel to not occupy text
4479 area of the right window.
4480
4481 * xterm.c (x_draw_vertical_window_border): Use foreground of
4482 VERTICAL_BORDER_FACE_ID for vertical border line.
4483
4484 * term.c (turn_on_face): In standout mode apply specified
4485 fg to bg, and specified bg to fg (this makes the logic of
4486 inversion on terminal consistent with X).
4487
4488 2005-06-29 Juanma Barranquero <lekktu@gmail.com>
4489
4490 * eval.c (user_variable_p_eh): New function.
4491 (Fuser_variable_p): Use it. Clarify docstring.
4492 Return t for aliases of user options, nil for alias loops.
4493
4494 2005-06-27 Richard M. Stallman <rms@gnu.org>
4495
4496 * eval.c (Fdefvar): Improve error message.
4497
4498 2005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4499
4500 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
4501 change.
4502
4503 2005-06-27 Juanma Barranquero <lekktu@gmail.com>
4504
4505 * eval.c (Fdefvar): Don't try to set constant symbols.
4506
4507 2005-06-25 Richard M. Stallman <rms@gnu.org>
4508
4509 * macfns.c (Fx_show_tip): Pass new arg to try_window.
4510
4511 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
4512
4513 * xfns.c (Fx_show_tip): Pass new arg to try_window.
4514
4515 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
4516 (redisplay_window): Handle try_window reporting point in scroll margin.
4517
4518 * dispextern.h (try_window): Declare new arg.
4519
4520 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
4521 Use fchmod to copy the file modes.
4522 (Frename_file): Don't copy UID and GID here;
4523 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
4524
4525 * eval.c (call_debugger): Take full care of extending stack limits
4526 to make space for the debugger, and restore the change afterward.
4527 Bind debug-on-error to nil.
4528 (restore_stack_limits): New subroutine.
4529 (Fsignal): Extend specpdl bound along with eval depth bound,
4530 for calling edebug. Don't do either one, for calling debugger.
4531 (find_handler_clause): Don't bind debug-on-error here.
4532 Don't unbind anything either.
4533 Temporarily advance max_specpdl_size for calling
4534 internal_with_output_to_temp_buffer.
4535 (grow_specpdl): Don't alter max_specpdl_size before signaling
4536 an error.
4537 (syms_of_eval) <max-specpdl-size>: Doc fix.
4538
4539 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
4540
4541 2005-06-24 Eli Zaretskii <eliz@gnu.org>
4542
4543 * fileio.c (Frename_file): Undo last change: no need to ifdef away
4544 chown on DOS_NT platforms.
4545
4546 * w32.c (sys_chown): New function.
4547
4548 * s/ms-w32.h (chown): New; define to sys_chown.
4549
4550 2005-06-24 Juanma Barranquero <lekktu@gmail.com>
4551
4552 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
4553 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
4554
4555 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
4556
4557 2005-06-23 Richard M. Stallman <rms@gnu.org>
4558
4559 * xdisp.c (get_next_display_element): Finish reversing the tests of
4560 Vnobreak_char_display.
4561
4562 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
4563 All uses changed.
4564 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
4565 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
4566
4567 * fileio.c (Frename_file): Preserve owner and group, if possible,
4568 when copying.
4569
4570 2005-06-23 Juanma Barranquero <lekktu@gmail.com>
4571
4572 * abbrev.c (Funexpand_abbrev):
4573 * category.c (Fmake_category_set):
4574 * dispnew.c (Fsleep_for, Fsit_for):
4575 * editfns.c (Fsubst_char_in_region):
4576 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
4577 * frame.c (make_frame_without_minibuffer):
4578 * lread.c (read_vector):
4579 * macfns.c (check_x_frame):
4580 * process.c (Fstop_process, Fcontinue_process):
4581 * search.c (Freplace_match):
4582 * syntax.c (Fstring_to_syntax):
4583 * w32fns.c (check_x_frame, check_x_display_info):
4584 * xfaces.c (x_supports_face_attributes_p):
4585 * xselect.c (Fx_own_selection_internal): Follow error conventions.
4586
4587 * image.c (fn_png_init_io): Don't define it.
4588 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
4589 (png_read_from_file): New function, based on png_read_from_memory.
4590 (png_load): Use it, instead of fn_png_init_io.
4591
4592 2005-06-23 Kim F. Storm <storm@cua.dk>
4593
4594 * search.c (Fmatch_data): Remove evaporate option.
4595 (Fset_match_data): Do not mention evaporate option in doc string.
4596 Add commentary explaining evaporate arg (for internal use only).
4597 (unwind_set_match_data): Add comment on evaporate use.
4598
4599 2005-06-22 Miles Bader <miles@gnu.org>
4600
4601 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
4602 (realize_basic_faces, syms_of_xfaces): Update references to it.
4603 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
4604 to `VERTICAL_BORDER_FACE_ID'.
4605 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
4606
4607 2005-06-21 Juri Linkov <juri@jurta.org>
4608
4609 * dispextern.h: Add extern Qframe_set_background_mode.
4610
4611 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
4612 Qframe_set_background_mode.
4613
4614 * frame.c (Fmodify_frame_parameters):
4615 Call frame-set-background-mode after changing the background color
4616 on non-window non-dos branch.
4617
4618 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
4619
4620 * fns.c (Fchar_table_range):
4621 * process.c (Fmake_network_process): Fix spellings.
4622
4623 2005-06-20 Kim F. Storm <storm@cua.dk>
4624
4625 * fns.c (Fsort): Doc fix.
4626
4627 2005-06-20 Miles Bader <miles@gnu.org>
4628
4629 * xfaces.c (Qvertical_divider): New variable.
4630 (realize_basic_faces): Realize its face.
4631 (syms_of_xfaces): Initialize it.
4632
4633 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
4634
4635 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
4636 window-separator on ttys using `vertical-divider' face by default.
4637
4638 2005-06-17 Richard M. Stallman <rms@gnu.org>
4639
4640 * xdisp.c (get_next_display_element):
4641 Reverse test of Vshow_nonbreak_escape.
4642
4643 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
4644 (Ftty_no_underline): New function.
4645 (syms_of_term): defsubr it.
4646
4647 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
4648
4649 * dispnew.c (spec_glyph_lookup_face): New function.
4650 (build_frame_matrix_from_leaf_window): Use it.
4651
4652 * dispextern.h (spec_glyph_lookup_face): Add declaration.
4653
4654 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
4655
4656 2005-06-12 Richard M. Stallman <rms@gnu.org>
4657
4658 * keyboard.c (read_char): After catching a longjmp,
4659 call restore_getcjmp.
4660
4661 2005-06-17 Juanma Barranquero <lekktu@gmail.com>
4662
4663 * xselect.c (lisp_data_to_selection_data): Fix spelling.
4664
4665 2005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4666
4667 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
4668 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
4669 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
4670 events.
4671 (XTread_socket): Don't pass keyboard events with the option
4672 modifier to the system when Vmac_command_key_is_meta is nil or
4673 Vmac_option_modifier is non-nil.
4674 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
4675 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
4676 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
4677 handler function.
4678 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
4679 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
4680 handler part to mac_handle_mouse_event.
4681
4682 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
4683
4684 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
4685 NEW-ALIAS and BASE-VARIABLE, respectively.
4686
4687 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
4688
4689 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
4690 (get_phys_cursor_geometry, format_mode_line_unwind_data)
4691 (get_line_height_property, x_produce_glyphs): Remove unused vars.
4692
4693 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
4694
4695 2005-06-13 Eli Zaretskii <eliz@gnu.org>
4696
4697 * w32term.c (x_use_underline_position_properties): New variable.
4698 (x_draw_glyph_string): Remind in a comment to change doc string of
4699 x-use-underline-position-properties if/when underline positioning
4700 is implemented.
4701 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
4702 and initialize it to nil.
4703
4704 2005-06-12 Jason Rumney <jasonr@gnu.org>
4705
4706 * w32fns.c (NEWOPENFILENAME): New struct.
4707 (Fx_file_dialog): Use it to trick the system into giving us up to
4708 date dialogs on systems that are documented to support it.
4709 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
4710
4711 2005-06-12 Eli Zaretskii <eliz@gnu.org>
4712
4713 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
4714 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
4715
4716 2005-06-11 Eli Zaretskii <eliz@gnu.org>
4717
4718 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
4719 to CreateDIBSection to avoid a compiler warning.
4720 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
4721 warning.
4722 (png_load): Cast return values of fn_png_create_read_struct and
4723 fn_png_create_info_struct, to avoid compiler warnings on W32.
4724 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
4725 to avoid compiler warnings.
4726 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
4727 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
4728 avoid a compiler warning.
4729 (tiff_load): Cast return values of fn_TIFFOpen and
4730 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
4731 to IMAGE_BACKGROUND to avoid a compiler warning.
4732 (gif_load): Cast return values of fn_DGifOpenFileName and
4733 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
4734 IMAGE_BACKGROUND to avoid a compiler warning.
4735 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
4736 before redefining.
4737
4738 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
4739 the call to CreateDIBSection, to avoid a compiler warning.
4740
4741 2005-06-11 Jason Rumney <jasonr@gnu.org>
4742
4743 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
4744 minibuffer.
4745 * macfns.c (Fx_file_dialog): Likewise.
4746
4747 2005-06-10 Eli Zaretskii <eliz@gnu.org>
4748
4749 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
4750
4751 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
4752
4753 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
4754 * w32fns.c (syms_of_w32fns): Fix spellings.
4755
4756 2005-06-10 Eli Zaretskii <eliz@gnu.org>
4757
4758 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
4759 `verbose'; print diagnostic messages only if it is non-zero.
4760 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4761 in the environment.
4762 (copy_executable_and_dump_data): Print section names with %.8s.
4763
4764 2005-06-10 Masatake YAMATO <jet@gyve.org>
4765
4766 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
4767 when mouse_face is not given.
4768
4769 2005-06-09 Luc Teirlinck <teirllm@auburn.edu>
4770
4771 * window.c (Fselect_window): Adapt call to Fselect_frame.
4772
4773 * lisp.h: Update EXFUN of Fselect_frame.
4774
4775 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
4776
4777 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
4778 no_enter.
4779 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
4780 Adapt to above change.
4781
4782 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
4783
4784 * fns.c (Fmemq, Fmaphash): Doc fixes.
4785
4786 2005-06-09 Juanma Barranquero <lekktu@gmail.com>
4787
4788 * xfaces.c (Fdisplay_supports_face_attributes_p):
4789 Fix typo in docstring.
4790
4791 2005-06-08 Steven Tamm <steventamm@mac.com>
4792
4793 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
4794 used by gcc4 on intel mac.
4795
4796 2005-06-09 Kim F. Storm <storm@cua.dk>
4797
4798 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
4799 in REUSE list if non-nil; free them if equal to evaporate.
4800 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
4801 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
4802 (restore_search_regs): Rename from restore_match_data. Uses changed.
4803 (unwind_set_match_data): New function.
4804 (record_unwind_save_match_data): New function like save-match-data.
4805
4806 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
4807 (record_unwind_save_match_data): Add prototype.
4808 (restore_search_regs): Rename from restore_match_data.
4809
4810 * composite.c (compose_chars_in_text):
4811 * eval.c (do_autoload):
4812 * macmenu.c (set_frame_menubar):
4813 * process.c (read_process_output, exec_sentinel):
4814 * xmenu.c (set_frame_menubar):
4815 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
4816 * w32menu.c (set_frame_menubar):
4817 Use record_unwind_save_match_data.
4818
4819 2005-06-08 Richard M. Stallman <rms@gnu.org>
4820
4821 * xdisp.c (get_next_display_element): Alter previous change:
4822 Distinguish Vshow_nonbreak_escape = t or not t.
4823 For t, use escape_glyph once again, as before previous change.
4824 Use space or hyphen for display, instead of the non-ASCII char.
4825 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
4826
4827 * process.c (Fstart_process): Don't touch command_channel_p slot.
4828
4829 * process.h (struct process): Delete command_channel_p.
4830
4831 2005-06-07 Masatake YAMATO <jet@gyve.org>
4832
4833 * xdisp.c (note_mode_line_or_margin_highlight):
4834 Check the overlapping of re-rendering area to avoid flickering.
4835 (note_mouse_highlight): Call clear_mouse_face if PART
4836 is not ON_MODE_LINE nor ON_HEADER_LINE.
4837
4838 2005-06-07 Kim F. Storm <storm@cua.dk>
4839
4840 * process.c: Improve commentary for adaptive read buffering.
4841
4842 2005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
4843
4844 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
4845 if available.
4846
4847 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4848
4849 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
4850 New functions for popping down menus on C-g.
4851 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
4852
4853 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
4854 non-static.
4855
4856 * config.in: Add HAVE_CANCELMENUTRACKING.
4857
4858 2005-06-06 Eli Zaretskii <eliz@gnu.org>
4859
4860 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
4861
4862 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
4863
4864 * w32proc.c (RVA_TO_PTR): New macro.
4865
4866 * w32heap.c (RVA_TO_PTR): No need to #undef now.
4867
4868 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
4869 Depend on w32heap.h.
4870
4871 2005-06-06 Luc Teirlinck <teirllm@auburn.edu>
4872
4873 * keyboard.c (command_loop_1): Update Vthis_original_command.
4874
4875 2005-06-06 Richard M. Stallman <rms@gnu.org>
4876
4877 * xmenu.c (popup_get_selection): Undo previous change.
4878
4879 2005-06-06 Juri Linkov <juri@jurta.org>
4880
4881 * xdisp.c (Qno_break_space): New variable.
4882 (syms_of_xdisp): Initialize it.
4883 (get_next_display_element): Add no-break space and soft hypen
4884 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
4885 Use `no-break-space' face for no-break spaces.
4886
4887 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4888
4889 * window.c (delete_window): Handle the case where a h/vchild has
4890 a h/vchild.
4891
4892 2005-06-05 Eli Zaretskii <eliz@gnu.org>
4893
4894 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
4895 call to pfn_setsockopt, cast optval to `const char *'.
4896
4897 2005-06-04 Eli Zaretskii <eliz@gnu.org>
4898
4899 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
4900 (open_unc_volume): Cast return value of map_w32_filename, to avoid
4901 compiler warnings.
4902
4903 * s/ms-w32.h (fileno): Don't define if already defined.
4904
4905 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
4906
4907 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
4908
4909 2005-06-04 Richard M. Stallman <rms@gnu.org>
4910
4911 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
4912
4913 2005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4914
4915 * macmenu.c (cleanup_popup_menu): New function.
4916 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
4917 mac_menu_show Quit:s.
4918 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
4919 a dialog).
4920
4921 2005-06-04 Kim F. Storm <storm@cua.dk>
4922
4923 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
4924
4925 * callproc.c (Fcall_process): Don't use alloca to gradually
4926 increase size of buf, as it effectively uses twice the necessary
4927 space on the stack. Instead, pre-allocate buf of full size, and
4928 gradually increase the read size.
4929
4930 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
4931
4932 * eval.c (unbind_to): Preserve value of Vquit_flag.
4933
4934 * xterm.c (handle_one_xevent): Also ignore mouse motion just
4935 before a button release event.
4936
4937 2005-06-03 Juanma Barranquero <lekktu@gmail.com>
4938
4939 * xfaces.c (Finternal_lisp_face_equal_p): Really report
4940 on faces in a frame, if the argument FRAME is non-nil.
4941 Improve argument/docstring consistency.
4942
4943 2005-06-02 Kim F. Storm <storm@cua.dk>
4944
4945 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
4946 (x_consider_frame_title, Fformat_mode_line): Save offset into
4947 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
4948
4949 2005-06-01 Kim F. Storm <storm@cua.dk>
4950
4951 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
4952
4953 2005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4954
4955 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
4956 resolution fields for scalable fonts to 0.
4957
4958 * xfaces.c (build_scalable_font_name): Round pixel size to the
4959 nearest integer.
4960
4961 2005-06-01 Kim F. Storm <storm@cua.dk>
4962
4963 * xdisp.c (display_mode_line): Support nested calls to redisplay
4964 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
4965
4966 2005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
4967
4968 * fileio.c (Finsert_file_contents):
4969 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
4970
4971 2005-05-31 Kim F. Storm <storm@cua.dk>
4972
4973 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
4974 (mode_line_noprop_ptr): Rename from frame_title_*.
4975 (store_mode_line_noprop_char): Rename from store_frame_title_char.
4976 (store_mode_line_noprop): Rename from store_frame_title.
4977 (mode_line_target): New enum to specify current output target
4978 for mode line formatting.
4979 (display_mode_element): Test it rather than frame_title_ptr and
4980 mode_line_string_list to determine where output should go.
4981 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
4982 (Vmode_line_unwind_vector): New variable.
4983 (format_mode_line_unwind_data, unwind_format_mode_line):
4984 New functions for unwind protection in mode line formatting.
4985 (x_consider_frame_title): Use them and new local var 'title_start'
4986 to support nested calls to format-mode-line and redisplay.
4987 Set mode_line_target to MODE_LINE_TITLE.
4988 (Fformat_mode_line): Use them and new local var 'string_start' to
4989 support nested calls to format-mode-line and redisplay.
4990 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
4991 Don't trim trailing dashes.
4992 (decode_mode_spec): Don't make infinite number of trailing dashes
4993 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
4994 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
4995 mode_line_string_face_prop, and Vmode_line_unwind_vector.
4996 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
4997 Initialize mode_line_target to MODE_LINE_DISPLAY.
4998
4999 2005-05-29 Richard M. Stallman <rms@gnu.org>
5000
5001 * buffer.c (Fbuffer_local_value): Call indirect_variable.
5002
5003 2005-05-28 Masatake YAMATO <jet@gyve.org>
5004
5005 * xdisp.c (note_mode_line_or_margin_highlight): Change the
5006 pointer to a hand cursor when hoovering over a mouse-face.
5007
5008 2005-05-27 Kenichi Handa <handa@m17n.org>
5009
5010 * xterm.c (x_encode_char): Call check_ccl_update in advance.
5011
5012 * ccl.c: Now an element of Vccl_program_table is a vector of
5013 length 4, not 3.
5014 (ccl_get_compiled_code): New arg idx. Caller changed.
5015 Adjust for the change of Vccl_program_table.
5016 (setup_ccl_program): Adjust for the change of Vccl_program_table.
5017 (check_ccl_update): New function.
5018 (Fregister_ccl_program): Use ASET to set an element of a vector.
5019 Adjusted for the change of Vccl_program_table.
5020
5021 * ccl.h (struct ccl_program): New member idx.
5022 (check_ccl_update): Extern it.
5023
5024 2005-05-27 Juanma Barranquero <lekktu@gmail.com>
5025
5026 * image.c (Vimage_library_alist): Move from image.el.
5027 (syms_of_image): Defvar it.
5028 (lookup_image_type): Use it.
5029
5030 * buffer.c (Fbuffer_local_value): Make argument name match its use
5031 in docstring.
5032
5033 2005-05-26 Juanma Barranquero <lekktu@gmail.com>
5034
5035 * keyboard.c (Frecursive_edit): Fix typo in docstring.
5036 (Fposn_at_x_y): Make argument name match its use in docstring.
5037
5038 2005-05-26 Lute Kamstra <lute@gnu.org>
5039
5040 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
5041
5042 2005-05-24 Masatake YAMATO <jet@gyve.org>
5043
5044 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
5045 as loop sentinels.
5046
5047 2005-05-24 Nick Roberts <nickrob@snap.net.nz>
5048
5049 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
5050 select frame title ("Question"/"Information").
5051 (xdialog_show): Use it.
5052
5053 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
5054
5055 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
5056
5057 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
5058 a third argument (Qnil).
5059
5060 * lisp.h: x-popup-dialog can have three arguments.
5061
5062 * editfns.c (Fmessage_box): Use "Information" for frame title.
5063
5064 2005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
5065
5066 * termcap.c [VMS]: Include <starlet.h>.
5067
5068 2005-05-23 Masatake YAMATO <jet@gyve.org>
5069
5070 * xdisp.c (note_mode_line_or_margin_highlight): Add code
5071 for mouse-face. Change the type of the first argument from `window'
5072 to `Lisp_Object'.
5073 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
5074 window instead of w.
5075
5076 2005-05-22 Andreas Schwab <schwab@suse.de>
5077
5078 * process.c (send_process): Move misplaced volatile.
5079
5080 2005-05-21 Richard M. Stallman <rms@gnu.org>
5081
5082 * xdisp.c (display_mode_element): If we're processing a list and
5083 padding is specified, put it after the last element.
5084
5085 2005-05-21 Eli Zaretskii <eliz@gnu.org>
5086
5087 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
5088 "superroot" on DOS_NT systems.
5089
5090 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
5091
5092 * process.c (send_process): Restore the SIGPIPE handler if we
5093 catch a SIGPIPE.
5094
5095 2005-05-20 Juanma Barranquero <lekktu@gmail.com>
5096
5097 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
5098 misleading comments).
5099 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
5100
5101 2005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
5102
5103 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
5104 Correct the right value.
5105
5106 2005-05-19 Nick Roberts <nickrob@snap.net.nz>
5107
5108 * keyboard.c (syms_of_keyboard): Remove Lisp variables
5109 post-command-idle-hook and post-command-idle-delay.
5110 (command_loop_1): Don't try to execute post-command-idle-hook.
5111
5112 2005-05-16 Kim F. Storm <storm@cua.dk>
5113
5114 * xdisp.c (handle_display_prop): Handle empty replacement.
5115 (handle_single_display_spec): Return -1 for empty replacement.
5116
5117 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
5118
5119 * .gdbinit (pitx): Print more info about iterator.
5120
5121 2005-05-16 Andreas Schwab <schwab@suse.de>
5122
5123 * unexmacosx.c (unexec_realloc): Move declarations before statements.
5124
5125 2005-05-14 Richard M. Stallman <rms@gnu.org>
5126
5127 * xdisp.c (message3): Call cancel_echoing.
5128
5129 * alloc.c (Fmemory_full_p): New function.
5130 (syms_of_alloc): defsubr it.
5131
5132 * process.c (send_process_trap): Unblock SIGPIPE.
5133 (send_process): Reset SIGPIPE handler before reporting error.
5134
5135 2005-05-14 Nick Roberts <nickrob@snap.net.nz>
5136
5137 * emacs.c (syms_of_emacs): Fix doc string for system-type.
5138
5139 2005-05-13 Richard M. Stallman <rms@gnu.org>
5140
5141 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
5142 (Finsert_file_contents): If we read 0 bytes from a special file,
5143 unlock the visited file if we locked it.
5144 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
5145 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
5146
5147 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5148
5149 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
5150
5151 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
5152 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5153 redisplay from being paused by them.
5154
5155 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
5156 [!MAC_OSX] (target_ticks): Remove variable.
5157 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
5158 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
5159 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
5160 event occurs before timeout, behave as if the function were interrupted.
5161 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
5162 handling using Time Manager routines.
5163 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
5164 New variables.
5165 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
5166 (setitimer): New functions.
5167
5168 * macfns.c, macmenu.c: Don't include signal.h.
5169
5170 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
5171 Rename from get_control_part_bound. All callers changed.
5172 (x_scroll_bar_clear): New function.
5173 (x_clear_frame): Use it.
5174 (XTset_vertical_scroll_bar): Don't call Draw1Control.
5175 (x_scroll_bar_handle_click): Change type of second argument from
5176 int to ControlPartCode.
5177 (check_alarm): Remove declaration.
5178 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
5179 (XTread_socket): Use ControlPartCode instead of SInt16.
5180
5181 2005-05-13 Nozomu Ando <nand@mac.com>
5182
5183 * unexmacosx.c: Include assert.h.
5184 (MACOSX_MALLOC_MULT16): New define.
5185 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
5186 ptr is in unexec regions by checking it is multiple of 16.
5187 (unexec_malloc_header_t): New typedef.
5188 (unexec_malloc, unexec_realloc, unexec_free): Store and use
5189 allocated size information in unexec_malloc_header.
5190
5191 2005-05-10 Richard M. Stallman <rms@gnu.org>
5192
5193 * xterm.c (noinclude): Add #undef.
5194
5195 * image.c, xfns.c, xmenu.c: Don't include signal.h.
5196
5197 2005-05-09 Juanma Barranquero <lekktu@gmail.com>
5198
5199 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
5200 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
5201 Doc fixes.
5202
5203 * dired.c (Ffile_name_completion): Make argument name
5204 match its use in docstring.
5205
5206 2005-05-08 Luc Teirlinck <teirllm@auburn.edu>
5207
5208 * eval.c (Fdefvaralias): Remove any pre-existing
5209 variable-documentation property of the alias.
5210
5211 2005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
5212
5213 * xfns.c (start_hourglass): Do nothing when running on a tty.
5214
5215 2005-05-07 Juanma Barranquero <lekktu@gmail.com>
5216
5217 * fns.c (Fchar_table_range): Fix typos in docstring.
5218
5219 2005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5220
5221 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
5222
5223 2005-05-06 Eli Zaretskii <eliz@gnu.org>
5224
5225 * lread.c (Flocate_file_internal): Doc fix.
5226
5227 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
5228
5229 2005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5230
5231 * macselect.c (x_own_selection): Accept Lisp string as result of
5232 selection converter function.
5233 (x_clear_frame_selections): Don't call x-lost-selection-functions
5234 if Emacs is not owner of the selection.
5235 (Vmac_services_selection): Put variable and initialization in
5236 #ifdef MAC_OSX.
5237 (syms_of_macselect) [MAC_OSX]: Set default value of
5238 Vmac_services_selection to PRIMARY.
5239
5240 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
5241 (mac_handle_tool_bar_click): Remove unused function and declaration.
5242 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
5243 (install_scroll_bar_timer, set_scroll_bar_timer)
5244 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
5245 (get_control_part_bound, x_scroll_bar_handle_press)
5246 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
5247 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
5248 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
5249 (scroll_bar_timer_event_posted_p): New variables.
5250 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
5251 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
5252 (x_scroll_bar_create): Set control reference with NewControl.
5253 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
5254 Initialize track_top and track_height to nil.
5255 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
5256 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
5257 (XTset_vertical_scroll_bar): Don't make space between scroll bar
5258 and associated window.
5259 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
5260 from window config.
5261 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
5262 Set track_top and track_height to nil when scroll bar size is changed.
5263 Recalculate them if they are nil.
5264 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
5265 clicked control is a scroll bar.
5266 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
5267 event handler functions. Don't add modifiers to scroll bar click
5268 events. Call scroll bar release handler when window is deactivated.
5269 (mac_initialize): Remove unused code for X toolkit.
5270 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
5271 Initialize Vx_toolkit_scroll_bars to nil.
5272
5273 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
5274 New members track_top and track_height.
5275
5276 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
5277 init_process when including sys/select.h.
5278
5279 2005-05-05 Luc Teirlinck <teirllm@auburn.edu>
5280
5281 * eval.c (Fdefvaralias): Doc fix.
5282
5283 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
5284
5285 2005-05-05 Kim F. Storm <storm@cua.dk>
5286
5287 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
5288 default value.
5289 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
5290 Fix type of cursor-in-non-selected-windows.
5291
5292 2005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5293
5294 * mac.c: #undef init_process so not to conflict with system headers.
5295
5296 2005-05-02 Richard M. Stallman <rms@gnu.org>
5297
5298 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
5299
5300 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
5301
5302 * xdisp.c (Vcursor_in_non_selected_windows)
5303 (Qcursor_in_non_selected_windows): Vars deleted.
5304 (syms_of_xdisp): Don't initialize them.
5305 (get_window_cursor_type): Use cursor_in_non_selected_windows
5306 buffer slot.
5307
5308 2005-05-02 Kim F. Storm <storm@cua.dk>
5309
5310 * macros.c (executing_kbd_macro_index): Rename from
5311 executing_macro_index. All uses changed.
5312 (executing_kbd_macro_iterations): Rename from
5313 executing_macro_iterations. All uses changed.
5314 (executing_kbd_macro): Rename from executing_macro.
5315 All uses changed.
5316 (syms_of_macros): Rename Lisp var executing-macro-index to
5317 executing-kbd-macro-index.
5318
5319 * xdisp.c (move_it_in_display_line_to): Fix last change.
5320
5321 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
5322
5323 * xmenu.c (Fx_popup_menu): Doc fix.
5324
5325 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
5326
5327 2005-05-02 Jason Rumney <jasonr@gnu.org>
5328
5329 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
5330
5331 2005-05-02 Nozomu Ando <nand@mac.com>
5332
5333 * sysselect.h: Fix typo.
5334
5335 2005-05-02 Nick Roberts <nickrob@snap.net.nz>
5336
5337 * charset.c (Fchars_in_region): Remove as obsolete.
5338
5339 2005-05-01 Kim F. Storm <storm@cua.dk>
5340
5341 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
5342 TO_CHARPOS. This may happen if last glyphs was an image or stretch
5343 glyph.
5344
5345 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
5346
5347 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
5348
5349 2005-05-01 Richard M. Stallman <rms@gnu.org>
5350
5351 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
5352 If user cancels the menu, quit unless FOR_CLICK.
5353
5354 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
5355 All uses changed.
5356 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
5357 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
5358 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
5359 * commands.h (Vexecuting_kbd_macro): Likewise.
5360
5361 2005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
5362
5363 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
5364
5365 2005-04-30 Richard M. Stallman <rms@gnu.org>
5366
5367 * fileio.c (Ffind_file_name_handler): Handle the `operations'
5368 property of the file name handler.
5369 (Qoperations): New variable.
5370 (syms_of_fileio): Initialize and staticpro it.
5371
5372 * xdisp.c (set_message_1): Delete xassert.
5373
5374 2005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5375
5376 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
5377
5378 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
5379
5380 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
5381 before/after including Carbon.h if there is a working mktime.
5382
5383 2005-04-28 Kim F. Storm <storm@cua.dk>
5384
5385 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
5386 Fix cyclic alias check. If alias loop is detected, signal
5387 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
5388
5389 2005-04-28 Lute Kamstra <lute@gnu.org>
5390
5391 * eval.c (do_autoload): Record only autoloads in the autoload
5392 property of symbols.
5393
5394 2005-04-28 Nick Roberts <nickrob@snap.net.nz>
5395
5396 * emacs.c (USAGE1): Add --basic-display and --quick options.
5397
5398 2005-04-27 Kim F. Storm <storm@cua.dk>
5399
5400 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
5401
5402 2005-04-26 Richard M. Stallman <rms@gnu.org>
5403
5404 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
5405 (syms_of_window): Doc fixes.
5406
5407 * indent.c (Fvertical_motion): Undo previous change.
5408
5409 2005-04-26 Kenichi Handa <handa@m17n.org>
5410
5411 * fns.c (char_table_range): New function.
5412 (Fchar_table_range): Signal an error if characters in the range
5413 have inconsistent values. Don't check the parent.
5414
5415 2005-04-25 Kenichi Handa <handa@m17n.org>
5416
5417 * fontset.c (fontset_set): Fix previous change.
5418
5419 2005-04-24 Richard M. Stallman <rms@gnu.org>
5420
5421 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
5422
5423 2005-04-24 Eli Zaretskii <eliz@gnu.org>
5424
5425 * regex.c (re_search_2, re_match_2_internal): Convert second arg
5426 of RE_TRANSLATE to int, to shut up GCC warnings.
5427
5428 * fileio.c (Fcopy_file): Doc fix.
5429 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
5430 not needed.
5431
5432 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5433
5434 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
5435 (SOME_MACHINE_OBJECTS): Likewise.
5436 (mac.o): Depend on ccl.h.
5437 (macselect.o): New target.
5438
5439 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
5440 Call syms_of_macselect.
5441
5442 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
5443
5444 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
5445 (QCLIPBOARD): Remove variable.
5446 (syms_of_mac): Don't initialize it.
5447 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
5448 Remove functions.
5449 (syms_of_mac): Don't defsubr them.
5450 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
5451 (QHFS_plus_D, QHFS_plus_C): New variables.
5452 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
5453 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
5454 (cfstring_create_normalized): New functions.
5455 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
5456 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
5457
5458 * macterm.c (handling_window_update, terminate_flag):
5459 Remove variables.
5460 (do_window_update, do_ae_quit_application, XTread_socket):
5461 Don't use them.
5462 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
5463 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
5464 (init_service_handler): Move to macselect.c. Remove declarations.
5465 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
5466 (Qapplication, Qabout): New variables.
5467 (syms_of_mac): Initialize them.
5468 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
5469 (Qperform): New variables.
5470 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
5471 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
5472 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
5473 (mac_store_application_menu_event, init_menu_bar): New functions.
5474 [USE_CARBON_EVENTS] (mac_handle_command_event)
5475 (init_command_handler): New functions.
5476 (mac_handle_window_event): Return noErr on window update event.
5477 (do_ae_quit_application): Call mac_store_application_menu_event.
5478 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
5479 and init_menu_bar.
5480
5481 * macterm.h (x_clear_frame_selections): Add extern.
5482
5483 * macselect.c: New file for selection processing on Mac OS.
5484
5485 2005-04-23 Richard M. Stallman <rms@gnu.org>
5486
5487 * fileio.c (Fcopy_file): New arg MUSTBENEW.
5488 (Frename_file): Pass new arg to Fcopy_file.
5489
5490 * window.c (window_size_fixed): Variable deleted.
5491 (syms_of_window): Initialize window-size-fixed to nil.
5492 But don't DEFVAR window_size_fixed.
5493
5494 2005-04-23 Andreas Schwab <schwab@suse.de>
5495
5496 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
5497 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
5498 use lib64 instead of lib.
5499 (_LP64) [_ARCH_PPC64]: Define if not defined.
5500
5501 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
5502
5503 * s/ms-w32.h (HAVE_PWD_H): Define.
5504
5505 2005-04-22 Kenichi Handa <handa@m17n.org>
5506
5507 * fns.c (copy_sub_char_table): Explicitly copy the default value
5508 of the sub-chartable.
5509
5510 * fontset.c (fontset_set): When a sub-chartable is created,
5511 explicitly sets the defalt value.
5512
5513 2005-04-22 Kim F. Storm <storm@cua.dk>
5514
5515 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
5516 (Fsafe_plist_get): Rename to Fplist_get.
5517 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
5518 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
5519
5520 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
5521
5522 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
5523 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5524 Use Fplist_get instead of Fsafe_plist_get.
5525
5526 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
5527
5528 2005-04-21 Miles Bader <miles@gnu.org>
5529
5530 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
5531
5532 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
5533
5534 * sysdep.c: Remove reference to defunct vms-pwd.h.
5535 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
5536 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
5537
5538 * config.in: Regenerate.
5539
5540 2005-04-20 Kenichi Handa <handa@m17n.org>
5541
5542 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
5543 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
5544 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
5545
5546 * alloc.c (make_sub_char_table): Argument changed to initial
5547 value of the slots.
5548
5549 * data.c (Faref): Handle special slots used as default values of
5550 ascii, eight-bit-control, eight-bit-control. Don't ignore a
5551 default value set for a group of characters.
5552 (Faset): Signal an error if IDXVAL is not a valid character code.
5553 Make a sub-chartable with correct initial value.
5554
5555 * fns.c (Fset_char_table_range): Don't set slots used as default
5556 values for ascii, eight-bit-control, eight-bit-graphic.
5557 Don't call Faref with charset-id.
5558 (Fset_char_table_default): Document how to treat normal character
5559 argument. Handle special slots used as default values of ascii,
5560 eight-bit-control, eight-bit-control. Make a sub chartable if
5561 necessary.
5562
5563 2005-04-20 Kenichi Handa <handa@m17n.org>
5564
5565 * search.c (boyer_moore): Fix previous change.
5566
5567 2005-04-19 Kim F. Storm <storm@cua.dk>
5568
5569 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
5570 face unless last visible char and first invisible char have the
5571 same face. Also use default face if saved_face_id is undefined.
5572
5573 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5574
5575 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
5576 `full_name'.
5577 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
5578 mac_scriptcode member.
5579
5580 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
5581 (syms_of_mac): Don't initialize them.
5582 (Vmac_charset_info_alist): New variable.
5583 (syms_of_mac): Defvar it.
5584 (create_text_encoding_info_alist): New function.
5585 (decode_mac_font_name, mac_to_x_fontname)
5586 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
5587 code the correspondence among XLFD charsets, Mac script codes, and
5588 Emacs coding systems. Use Vmac_charset_info_alist and result of
5589 create_text_encoding_info_alist instead.
5590 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
5591 routines also on Mac OS Classic.
5592 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
5593 Use add_font_name_table_entry.
5594 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
5595 specified. Derive unspecified scalable fields from specified one.
5596 (x_list_fonts): Consider Valternate_fontname_alist.
5597 (kDefaultFontSize): Change value from 9 to 12.
5598 (XLoadQueryFont): Get decoded font family, font face, and charset
5599 from x_font_name_to_mac_font_name. Set full name of loaded font.
5600 (mac_unload_font): Free `full_name' member.
5601 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
5602 NULL. Copy full_name member of struct MacFontStruct to that of
5603 struct font_info.
5604
5605 2005-04-19 Kim F. Storm <storm@cua.dk>
5606
5607 * xdisp.c (handle_stop): Set saved_face_id to current face if
5608 selective_display_ellipsis_p so ellipsis will be shown in same
5609 face as preceding text.
5610 (setup_for_ellipsis): Don't set saved_face_id here.
5611 (next_element_from_display_vector): Default to saved_face_id.
5612
5613 * fns.c (Fsafe_get): New function.
5614 (syms_of_fns): Defsubr it.
5615
5616 * lisp.h (Fsafe_get): EXFUN it.
5617
5618 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
5619 loops in case of bad face property lists. Limit number of face
5620 alias lookups to 10 (in case of face alias loops).
5621
5622 2005-04-18 Kim F. Storm <storm@cua.dk>
5623
5624 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
5625 It replaces the corresponding member from struct window, as a
5626 window may now show multiple overlay arrows.
5627 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
5628
5629 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
5630 Compare overlay_arrow_bitmap than overlay_arrow_p members.
5631
5632 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
5633 rather than from window.
5634 (update_window_fringes): Compare overlay_arrow_bitmap rather than
5635 overlay_arrow_p members.
5636 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
5637 if not default.
5638
5639 * window.h (struct window): Remove member overlay_arrow_bitmap.
5640
5641 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
5642
5643 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
5644 Calls changed. Don't check for overlay-arrow-bitmap property here.
5645 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
5646 fringe is present, return Lisp integer for bitmap (or -1 for default).
5647 Fix value of overlay-arrow-bitmap property to be a symbol, use
5648 lookup_fringe_bitmap to parse it.
5649 (display_line): Change call to overlay_arrow_at_row. Store integer
5650 return value as overlay bitmap in row rather than window.
5651 Only show overlay arrow if row displays text, or if no other overlay
5652 arrow is seen in window (if overlay marker is at point-max).
5653
5654 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
5655
5656 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
5657
5658 2005-04-18 Lute Kamstra <lute@gnu.org>
5659
5660 * lread.c (Vloads_in_progress): Static.
5661 * fns.c (Vloads_in_progress): Remove extern.
5662 (load_in_progress): Add extern.
5663 (Frequire): Use load_in_progress instead of Vloads_in_progress.
5664
5665 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
5666
5667 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
5668
5669 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5670
5671 * macterm.c (XTread_socket): Don't beep on keyboard input even if
5672 no frame is visible.
5673
5674 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
5675
5676 * term.c (struct keys): Add support for shifted keys.
5677
5678 2005-04-16 Richard M. Stallman <rms@gnu.org>
5679
5680 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
5681 (set_message): Call with_echo_area_buffer with WHICH = 0.
5682 (set_message_1): Erase the echo area buffer first thing.
5683 (echo_area_display): Don't clear echo_message_buffer.
5684
5685 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5686
5687 * Makefile.in (mac.o): Depend on charset.h and coding.h.
5688
5689 * mac.c: Include charset.h and coding.h.
5690 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
5691 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
5692 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
5693
5694 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
5695
5696 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
5697
5698 * macterm.c (x_autoselect_window_p): Remove variable.
5699 (last_window): New variable.
5700 (XTreassert_line_highlight, x_change_line_highlight):
5701 Remove declarations.
5702 (mac_focus_changed, x_detect_focus_change): New functions and
5703 declarations.
5704 (XTextExtents16, front_emacs_window): Remove function.
5705 (mac_focus_frame): New function.
5706 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
5707 (mac_check_for_quit_char): Use it instead of front_emacs_window.
5708 (x_scroll_bar_report_motion): Obtain window from control owner.
5709 (x_make_frame_invisible): Set window manager size hint.
5710 (do_mouse_moved): Remove function.
5711 (XTread_socket): Move its contents here. Generate select-window
5712 event on mouse movement if needed. Use x_detect_focus_change on
5713 activate/deactivate events. Don't deiconify frame or invalidate
5714 window rectangle when dnd items are dropped.
5715 Don't activate/deactivate root control.
5716 (frame_highlight, frame_unhighlight): Activate/deactivate root
5717 control here.
5718 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
5719
5720 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
5721 New extern.
5722
5723 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
5724
5725 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
5726 (lisp): Use it.
5727 (SOME_MACHINE_LISP): Add tooltip.
5728
5729 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5730
5731 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
5732 Don't include TextEncodingConverter.h.
5733 (mac_system_script_code, Vmac_system_locale): New variables.
5734 (syms_of_mac): Defvar them.
5735 (mac_get_system_locale): New function.
5736
5737 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
5738 Use ENCODE_SYSTEM to encode title bar string.
5739 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
5740 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
5741 Use CFStringGetSystemEncoding to get system default string encoding.
5742
5743 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
5744 TextEncodingConverter.h.
5745
5746 2005-04-13 Steven Tamm <steventamm@mac.com>
5747
5748 * macterm.c (syms_of_macterm): Remove redundant definition of
5749 mac-pass-control-to-system.
5750
5751 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5752
5753 * window.c (Fset_window_configuration): Be careful when you choose
5754 among several possible points for the new_current_buffer.
5755
5756 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5757
5758 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
5759 poll_for_input_1. Set interrupt_input_pending to 1 instead.
5760 (Qlanguage_change) [MAC_OS]: New variable.
5761 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
5762 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
5763
5764 * macterm.c (mac_keyboard_text_encoding)
5765 (current_mac_keyboard_text_encoding): Remove variables.
5766 (XTread_socket): Store language-change event if keyboard script change
5767 is detected. Don't convert input to `mac_keyboard_text_encoding'.
5768 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
5769
5770 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
5771
5772 2005-04-10 Richard M. Stallman <rms@gnu.org>
5773
5774 * emacs.c (standard_args): Rename --bare-bones to --quick.
5775 Add -D aka --basic-display.
5776
5777 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
5778
5779 2005-04-09 Richard M. Stallman <rms@gnu.org>
5780
5781 * keymap.c (where_is_internal): Convert a string used as event type
5782 into "(any string)".
5783
5784 * lread.c (Vloads_in_progress): Not static.
5785 * fns.c (Vloads_in_progress): Add extern.
5786 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
5787
5788 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
5789
5790 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
5791
5792 2005-04-09 Lute Kamstra <lute@gnu.org>
5793
5794 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
5795 within the accessible part of the buffer.
5796
5797 2005-04-09 Kim F. Storm <storm@cua.dk>
5798
5799 * lread.c (readevalloop): Add args START and END as region in
5800 current buffer to read. Callers changed.
5801 When specified, narrow to this region only when reading,
5802 not during eval. Track next point to read from during eval.
5803 Also restore point to "real" buffer position before eval.
5804 (Feval_region): Don't save excursion and restriction here, and
5805 don't narrow to region. Just pass region to readevalloop.
5806 Note: Point is now preserved even when PRINTFLAG is nil.
5807
5808 2005-04-08 Kim F. Storm <storm@cua.dk>
5809
5810 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
5811
5812 2005-04-06 Kim F. Storm <storm@cua.dk>
5813
5814 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
5815
5816 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5817
5818 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
5819 (Fmac_get_preference): Doc fix.
5820
5821 * macfns.c (Fx_create_frame, x_create_tip_frame):
5822 Add "fontset-mac" to fallback font/fontsets.
5823
5824 2005-04-04 Kim F. Storm <storm@cua.dk>
5825
5826 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
5827
5828 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
5829 Call it again after autoload.
5830
5831 2005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5832
5833 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
5834 mallopt.
5835
5836 * ralloc.c (r_alloc_init): Ditto.
5837
5838 2005-04-01 Kenichi Handa <handa@m17n.org>
5839
5840 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
5841 (Vascii_eqv_table): Extern them.
5842
5843 * casetab.c (set_case_table): If standard is nonzero, setup
5844 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
5845
5846 * search.c (looking_at_1): Use current_buffer->case_canon_table,
5847 not DOWNCASE_TABLE.
5848 (string_match_1): Likewise.
5849 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
5850 Vascii_downcase_table.
5851 (fast_string_match_ignore_case): Likewise.
5852 (search_buffer): Fix checking of boyer-moore usability.
5853 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
5854 No need of tranlating characters in PAT. Fix calculation of
5855 simple_translate.
5856
5857 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5858
5859 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
5860 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
5861 Use XtNtopShadowPixel and XtNbottomShadowPixel.
5862 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
5863 really work and that breaks with some versions of Xaw3d.
5864
5865 2005-03-31 Kenichi Handa <handa@m17n.org>
5866
5867 * coding.c (syms_of_coding): Fix previous change.
5868
5869 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
5870
5871 * fileio.c (search_embedded_absfilename): Fix last change.
5872
5873 2005-03-25 Kenichi Handa <handa@m17n.org>
5874
5875 * coding.c (syms_of_coding): Suggest to use set-coding-category in
5876 the docstring of coding-category-list.
5877
5878 2005-03-31 Kim F. Storm <storm@cua.dk>
5879
5880 * keyboard.c (Qmouse_fixup_help_message): New var.
5881 (syms_of_keyboard): Intern and staticpro it.
5882 (show_help_echo): Apply mouse-fixup-help-message to help string.
5883
5884 2005-03-30 Kim F. Storm <storm@cua.dk>
5885
5886 * xdisp.c (display_line): Allow multiple overlay arrows in window.
5887
5888 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5889
5890 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
5891 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
5892 (Ffile_name_absolute_p): Use it.
5893 (search_embedded_absfilename): New fun, extracted from
5894 Fsubstitute_in_file_name. Use file_name_absolute_p.
5895 Free the pw data after use.
5896 (Fsubstitute_in_file_name): Use it.
5897 After cutting a prefix, re-check file-name-handler.
5898
5899 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
5900
5901 * w32term.h (x_output): Add focus_state.
5902
5903 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
5904 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
5905
5906 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
5907
5908 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
5909 Use Fexit_minibuffer.
5910 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
5911
5912 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
5913
5914 * dired.c (Ffile_attributes): Add a missing gcpro.
5915
5916 * alloc.c (make_number): The arg can be bigger than `int'.
5917 * lisp.h (make_number): Make prototype more precise.
5918
5919 * process.c, dired.c (Vfile_name_coding_system)
5920 (Vdefault_file_name_coding_system):
5921 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
5922 (Vdefault_file_name_coding_system): Remove unused declarations.
5923
5924 2005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5925
5926 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
5927 if it failed to pop up (Gnome "show pointer on ctrl" option makes
5928 menus fail to pop up).
5929
5930 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
5931
5932 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
5933 Just prepend a backslash without replacing the NBSP by an SPC.
5934
5935 2005-03-22 Kim F. Storm <storm@cua.dk>
5936
5937 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
5938 * dispextern.h (lookup_derived_face): Fix prototype.
5939 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
5940
5941 * xdisp.c (handle_single_display_spec): Derive left-fringe and
5942 right-fringe face from fringe face.
5943
5944 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
5945 Derive face from fringe face.
5946
5947 2005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5948
5949 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
5950
5951 2005-03-22 David Kastrup <dak@gnu.org>
5952
5953 * textprop.c (Fnext_char_property_change)
5954 (Fprevious_char_property_change): Allow marker as limit.
5955 (Fnext_single_char_property_change)
5956 (Fprevious_single_char_property_change): Check that limit is a
5957 number in strings.
5958 (Fnext_single_char_property_change): Coerce position to integer.
5959 (Fprevious_single_char_property_change): Same here.
5960
5961 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
5962
5963 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
5964
5965 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
5966
5967 * frame.c (Fignore_event): Remove.
5968 (syms_of_frame): Don't defsubr it.
5969
5970 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
5971 redundant `ignore-event'.
5972
5973 2005-03-19 Eli Zaretskii <eliz@gnu.org>
5974
5975 * unexec.c (write_segment, unexec): Move these functions to avoid
5976 forward references (which cause errors with "gcc -gcoff").
5977
5978 2005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5979
5980 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
5981 that it doesn't become "tooltip". The specbind is enough.
5982
5983 * xrdb.c (x_load_resources): Use different char *helv when I18N
5984 is present.
5985
5986 2005-03-17 Kenichi Handa <handa@m17n.org>
5987
5988 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
5989
5990 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5991
5992 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
5993 Use xic_create_fontsetname even for non-Motif menus.
5994 Don't forget to free the fontsetname.
5995
5996 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
5997
5998 2005-03-17 Richard M. Stallman <rms@gnu.org>
5999
6000 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
6001
6002 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
6003 (Fmake_symbolic_link): Use G to read the new file name.
6004
6005 * callint.c (Finteractive): Document G option.
6006 (Fcall_interactively): Implement G option.
6007
6008 * buffer.c (buffer_lisp_local_variables): New function,
6009 broken out from Fbuffer_local_variables.
6010 (clone_per_buffer_values): Use buffer_lisp_local_variables.
6011
6012 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6013
6014 * xfns.c (xic_create_fontsetname): Add `motif' argument.
6015 Always return a freshly allocated string.
6016 (xic_create_xfontset): Adjust call.
6017
6018 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
6019 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
6020 (dump_realized_face): Fix warning.
6021
6022 * emacs.c (Fkill_emacs): YAILOM.
6023
6024 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
6025
6026 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6027
6028 * mac.c (HASHKEY_TERMINAL): Remove.
6029 (HASHKEY_MAX_NID): New macro.
6030 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
6031 argument.
6032 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
6033 (xrm_create_database, xrm_q_put_resource)
6034 (xrm_merge_string_database, xrm_q_get_resource_1)
6035 (xrm_q_get_resource): Change resource database representation so
6036 that it may not use multiple hash tables for a single database.
6037 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
6038
6039 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
6040
6041 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
6042
6043 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
6044 locale-coding-system, as was already done for WINDOWSNT.
6045
6046 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
6047 translation for chars in the 0-255 range.
6048
6049 2005-03-16 Lute Kamstra <lute@gnu.org>
6050
6051 * floatfns.c (Ffloor): Doc fix.
6052
6053 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6054
6055 * mac.c: Include macterm.h instead of directly including Carbon.h.
6056 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
6057 (Qarray, Qdictionary): New variables.
6058 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
6059 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
6060 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
6061 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
6062 in callback for CFDictionaryApplyFunction.
6063 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
6064 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
6065 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
6066 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
6067 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
6068 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
6069 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
6070 (skip_white_space, parse_comment, parse_include_file)
6071 (parse_binding, parse_component, parse_resource_name, parse_value)
6072 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
6073 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
6074 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
6075 New functions.
6076
6077 * macfns.c (mac_get_rdb_resource): Remove function.
6078 (x_get_string_resource): Use xrm_get_resource.
6079
6080 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
6081
6082 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
6083 name_list_element.
6084 (mac_make_rdb): Create resource database from preferences and
6085 argument string.
6086 (mac_term_init): Save resource database to cddr part of
6087 name_list_element.
6088
6089 * macterm.h (xrm_merge_string_database, xrm_get_resource)
6090 (xrm_get_preference_database): Add externs.
6091 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
6092 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
6093 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
6094
6095 * process.c (init_process): Change `#ifdef DARWIN' to `#if
6096 defined (DARWIN) || defined (MAC_OSX)'
6097
6098 * s/darwin.h (DARWIN): Don't define.
6099
6100 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6101
6102 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
6103 Remove unused variables.
6104 (syms_of_macfns): Don't initialize them. Likewise for
6105 Qface_set_after_frame_default. Defvar and initialize
6106 Vx_window_horizontal_drag_shape.
6107 (x_set_mouse_color): Change mouse pointer shape.
6108 (mac_window) [!MAC_OSX]: Create root control.
6109 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6110 (hourglass_started): New function (from xfns.c).
6111 (start_hourglass, cancel_hourglass): Put function body in #ifdef
6112 MAC_OSX.
6113 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
6114 indicator for each non-tooltip frame if needed, and show it.
6115 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6116
6117 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
6118 Controls.h. Use ThemeCursor instead of CursHandle.
6119
6120 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
6121 Remove functions and declarations.
6122 (mac_set_colors): Take argument for saving background color.
6123 All callers changed.
6124 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
6125 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
6126 background color.
6127 (x_update_end, mac_do_track_drag): Don't reset background color.
6128 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
6129 Use SetThemeCursor.
6130 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
6131 indicator control to the upper-right corner of the window.
6132 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
6133 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
6134 (do_window_update): Update controls after updating content area.
6135 (mac_handle_window_event): Remove unused extern.
6136 (XTread_socket): Check both control handle and control part code
6137 to determine whether a scroll bar is clicked. Activate/deactivate
6138 root control instead of contained scroll bar controls.
6139 (make_mac_terminal_frame): Use ThemeCursor constants.
6140
6141 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
6142 New member hourglass_control.
6143 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
6144 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6145
6146 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6147
6148 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6149 coincides with that in Apple X11 except `clear', `enter' on
6150 laptops, and fn + `enter' on laptops.
6151
6152 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
6153
6154 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
6155 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
6156 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
6157
6158 * xfns.c (xic_defaut_fontset): New constant.
6159 (xic_create_fontsetname): New function.
6160 Extracted from create_frame_xic. Try to generate a slightly
6161 better fontset.
6162 (xic_create_xfontset): Use it.
6163 (create_frame_xic): Simplify.
6164
6165 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
6166
6167 * fileio.c (Fmake_symbolic_link): Fix last change.
6168
6169 2005-03-11 Richard M. Stallman <rms@gnu.org>
6170
6171 * fileio.c (Frename_file, Fadd_name_to_file)
6172 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
6173 expand the basename of FILE relative to it.
6174
6175 2005-03-11 Kenichi Handa <handa@m17n.org>
6176
6177 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
6178 before calling setup_coding_system so that autoloading of a coding
6179 system work.
6180
6181 2005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6182
6183 * xfns.c (hourglass_started): New function.
6184
6185 * dispextern.h: Declare hourglass_started.
6186
6187 * keyboard.c (Fexecute_extended_command): Restart hourglass
6188 after call to Fcompleting_read if already started.
6189
6190 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
6191 GTK main loop is entered in xterm.c, thus doing the redraw.
6192
6193 2005-03-10 Kim F. Storm <storm@cua.dk>
6194
6195 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
6196
6197 2005-03-08 Kenichi Handa <handa@m17n.org>
6198
6199 * frame.c (x_set_font): Call set_default_ascii_font if an
6200 available font is found.
6201
6202 * fontset.c (set_default_ascii_font): New function.
6203 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
6204
6205 * fontset.h (set_default_ascii_font): Extern it.
6206
6207 2005-03-07 Kim F. Storm <storm@cua.dk>
6208
6209 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
6210 (clear_image_cache_count): New var.
6211 (redisplay_internal): Don't clear face and image caches in the
6212 middle of redisplay; do it afterwards.
6213
6214 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
6215
6216 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
6217 is valid. If not, clear phys_cursor_on_p and return.
6218
6219 2005-03-07 Andreas Schwab <schwab@suse.de>
6220
6221 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
6222
6223 2005-03-06 Richard M. Stallman <rms@gnu.org>
6224
6225 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
6226
6227 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
6228 (Feval, Ffuncall): Use CHECK_CONS_LIST.
6229
6230 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
6231
6232 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
6233 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
6234
6235 2005-03-05 Juri Linkov <juri@jurta.org>
6236
6237 * emacs.c (USAGE1): Replace Info node name "command arguments"
6238 with "emacs invocation".
6239 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
6240 allow arguments `--color' and `MODE' to be separated by space.
6241 Add --no-blinking-cursor, -nbc.
6242 (standard_args): Add -nbc, --no-blinking-cursor.
6243
6244 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
6245
6246 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
6247 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
6248 * fileio.c (Fexpand_file_name) [VMS]:
6249 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
6250 * doc.c (munge_doc_file_name) [VMS]: Likewise.
6251 (Fsnarf_documentation): Call munge_doc_file_name.
6252
6253 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
6254
6255 * s/vms.h (FILE_SYSTEM_CASE): New macro.
6256 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
6257 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
6258
6259 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6260
6261 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
6262 defined (MAC_OSX) && defined (HAVE_CARBON)'.
6263
6264 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
6265
6266 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
6267 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
6268 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
6269 (mac_clear_font_name_table): Move extern to macterm.h.
6270
6271 * macfns.c (install_window_handler): Move extern to macterm.h.
6272 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
6273 valid. Don't check !NILP (dir) because it is already checked with
6274 CHECK_STRING.
6275 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
6276 specifying the default location and obtaining the selected filename.
6277
6278 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
6279
6280 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
6281 are included via Carbon.h.
6282
6283 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
6284 Define USE_CARBON_EVENTS to 1.
6285 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
6286 (x_free_frame_resources): Call remove_window_handler for
6287 non-tooltip windows.
6288 [TARGET_API_MAC_CARBON]: Don't include headers that are included
6289 via Carbon.h.
6290 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
6291 (mac_do_receive_dragUPP): New variables.
6292 (mac_handle_service_event, init_service_handler): Put declarations
6293 and definitions in #ifdef MAC_OSX.
6294 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
6295 drag-and-drop handler functions and register them.
6296 (remove_window_handler): New function.
6297 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
6298 Use fsspec_to_posix_pathname.
6299 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
6300 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
6301 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
6302 Set default cursors.
6303 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
6304 init_service_handler or init_quit_char_handler.
6305 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
6306
6307 * macterm.h (install_window_handler, remove_window_handler)
6308 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
6309 (mac_clear_font_name_table): New externs.
6310
6311 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
6312
6313 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
6314 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
6315 (Fexpand_file_name): Likewise.
6316
6317 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
6318
6319 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
6320 no longer special-case VMS. Add bogus return value.
6321
6322 2005-03-02 Kim F. Storm <storm@cua.dk>
6323
6324 * dispextern.h (XASSERTS): Define to 0 if not already defined.
6325 (xassert) [!XASSERTS]: Define dummy version.
6326
6327 2005-03-02 Kim F. Storm <storm@cua.dk>
6328
6329 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
6330 Reported by David Kastrup.
6331
6332 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
6333
6334 * xdisp.c (get_next_display_element): Fix control and escape
6335 glyph from display vector.
6336
6337 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
6338
6339 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
6340
6341 2005-02-27 Richard M. Stallman <rms@gnu.org>
6342
6343 * xdisp.c (fast_find_position): Rename END to BEG.
6344 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
6345
6346 2005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6347
6348 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6349 gtk_window_resize and x_wm_set_size_hint.
6350
6351 2005-02-25 Kim F. Storm <storm@cua.dk>
6352
6353 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
6354
6355 * xdisp.c (init_from_display_pos): Don't read past end of
6356 it->overlay_strings array.
6357
6358 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
6359
6360 * buffer.c (syms_of_buffer): Fix typo.
6361
6362 2005-02-23 Lute Kamstra <lute@gnu.org>
6363
6364 * buffer.c (Foverlay_buffer): Doc fix.
6365
6366 2005-02-22 Kim F. Storm <storm@cua.dk>
6367
6368 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
6369 and symbol keys in alists and hash tables.
6370
6371 * xdisp.c (fast_find_position): Fix search for start of overlay.
6372
6373 2005-02-21 Kim F. Storm <storm@cua.dk>
6374
6375 * window.c (window_scroll_pixel_based): When scrolling backwards,
6376 handle partial visible line at end of window even when we hit PT.
6377
6378 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
6379
6380 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
6381
6382 2005-02-21 Kim F. Storm <storm@cua.dk>
6383
6384 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
6385 I think those asserts are bogus if buffer contains invisible text
6386 or images.
6387
6388 2005-02-21 David Kastrup <dak@gnu.org>
6389
6390 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
6391
6392 2005-02-20 Kim F. Storm <storm@cua.dk>
6393
6394 * xdisp.c (pos_visible_p): Be sure to move to the specified
6395 position. Always get the full ascent / descent of the
6396 corresponding row, to return reliable rtop and rbot values.
6397 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
6398 Must look one character back, as back_to_previous_line_start
6399 returns position after the newline.
6400 (move_it_vertically_backward): Fix heuristic for when to move further
6401 back in case line_height * 2/3 is larger than window height.
6402 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
6403 as it does not do anything anymore. Add arg current_matrix_p to
6404 use current matrix rather than desired matrix when set.
6405 (try_cursor_movement): Don't scroll to make cursor row fully
6406 visible if cursor didn't move. This avoids unexpected recentering
6407 in case of blinking cursor or accepting process output.
6408 Use current matrix to check cursor row visibility.
6409 (redisplay_window): Fix whether to recenter or move to top in case
6410 cursor line is taller than window height.
6411 (find_first_unchanged_at_end_row): Stop search if we reach a row
6412 which not enabled (instead of abort).
6413
6414 2005-02-18 Kim F. Storm <storm@cua.dk>
6415
6416 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
6417 to be nil in a :box attribute value list; customize prints that
6418 as lisp value when no box color is specified.
6419
6420 * .gdbinit (pitx, pit): Pretty print display iterator.
6421 (prowx, prow): Pretty print glyph row.
6422 (pcursorx, pcursor): Pretty print a window cursor.
6423 (pwinx, pwin): Pretty print struct window.
6424
6425 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6426
6427 * alloc.c (BLOCK_BYTES): Harmless typo.
6428
6429 2005-02-17 Andreas Schwab <schwab@suse.de>
6430
6431 * xfns.c (hack_wm_protocols): Use correct type for last parameter
6432 of XGetWindowProperty to avoid aliasing issues.
6433 (Fx_window_property): Likewise.
6434
6435 * xselect.c (Fx_disown_selection_internal): Use union of struct
6436 input_event and struct selection_input_event to avoid aliasing issues.
6437
6438 * xterm.c (handle_one_xevent): Use union of struct input_event and
6439 struct selection_input_event to avoid aliasing issues.
6440 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
6441
6442 2005-02-17 Kim F. Storm <storm@cua.dk>
6443
6444 * dispextern.h (enum it_method): New enum.
6445 (GET_FROM_*): Its members.
6446 (struct it): Change member method from function pointer to enum.
6447
6448 * xdisp.c (check_it, init_from_display_pos, handle_stop)
6449 (setup_for_ellipsis, handle_single_display_spec)
6450 (handle_composition_prop, next_overlay_string)
6451 (get_overlay_strings, reseat_1, reseat_to_string)
6452 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
6453 (in_display_vector_p, display_line, get_next_display_element):
6454 Change it->method from function pointer to enum.
6455 (get_next_element): New array to map it->method to function.
6456 (get_next_display_element): Use it.
6457 (set_iterator_to_next): Use switch instead of if/else chain.
6458
6459 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
6460
6461 * w32select.c: Summary: Thorough rework to implement Unicode
6462 clipboard operations and delayed rendering.
6463
6464 Drop last_clipboard_text and related code, keep track of
6465 ownership via clipboard_owner instead. Drop old #if0 sections.
6466
6467 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
6468 (clipboard_owner, modifying_clipboard, cfg_coding_system)
6469 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
6470 (current_coding_system, current_requires_encoding)
6471 (current_num_nls, current_clipboard_type, current_lcid):
6472 New static variables.
6473
6474 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
6475 (render, render_all, run_protected, lisp_error_handler)
6476 (owner_callback, create_owner, setup_config)
6477 (enum_locale_callback, cp_from_locale, coding_from_cp):
6478 New local functions.
6479
6480 (term_w32select, globals_of_w32select): New global functions.
6481
6482 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
6483 clipboard_owner instead. Use delayed rendering and provide
6484 all text formats. Provide CF_LOCALE if necessary.
6485
6486 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
6487 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
6488 available. Force DOS line-ends for decoding.
6489
6490 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
6491
6492 (syms_of_w32select): Init and register new variables.
6493
6494 * w32.h: Add prototypes for globals_of_w32select and
6495 term_w32select. Make the neighboring K&R declarations into
6496 prototypes, too.
6497
6498 * emacs.c: Include w32.h to get function prototypes.
6499 (main): Call globals_of_w32select.
6500
6501 * w32.c (term_ntproc): Call term_w32select.
6502
6503 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
6504
6505 2005-02-16 Kim F. Storm <storm@cua.dk>
6506
6507 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
6508 at end of display vector.
6509
6510 2005-02-15 Richard M. Stallman <rms@gnu.org>
6511
6512 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
6513 for mode and header lines.
6514
6515 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
6516
6517 * keymap.h (describe_map_tree): Change decl.
6518
6519 * keyboard.c (command_loop_1): Always use safe_run_hooks
6520 to run Qdeferred_action_function.
6521
6522 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
6523 (describe_map, describe_vector): Likewise. When it's 1,
6524 don't omit shadowed bindings, instead mark them as shadowed.
6525
6526 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
6527 for describe_map_tree. Pass 1 for MENTION_SHADOW.
6528
6529 * data.c (Fsetq_default): Allow no arg case.
6530
6531 2005-02-14 Kenichi Handa <handa@m17n.org>
6532
6533 * coding.c (encode_coding_string): Always return a unibyte string.
6534 If NOCOPY is nonzero and there's no need of encoding, make STR
6535 unibyte directly.
6536
6537 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
6538 multibyte string, signal an error instead of aborting.
6539
6540 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
6541
6542 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
6543
6544 2005-02-12 Kim F. Storm <storm@cua.dk>
6545
6546 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
6547
6548 2005-02-10 Kim F. Storm <storm@cua.dk>
6549
6550 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
6551 if it moves outside window or it doesn't display text.
6552
6553 2005-02-09 Kim F. Storm <storm@cua.dk>
6554
6555 * undo.c (Fprimitive_undo): Check that undo function does not
6556 switch buffer.
6557
6558 2005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6559
6560 * xselect.c (selection_data_to_lisp_data): For the special case
6561 type == XA_ATOM, data contains array of int, not array of Atom.
6562 (x_property_data_to_lisp, selection_data_to_lisp_data):
6563 Comment update: data must be array of int for format == 32.
6564
6565 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
6566
6567 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
6568
6569 2005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6570
6571 * xfns.c (Fx_change_window_property): Use long array when format is 32.
6572 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
6573 convert long array returned from XGetWindowProperty to an int array.
6574 (x_set_tool_bar_lines): Check that width and height is greater than
6575 zero before clearing area.
6576
6577 * xselect.c (x_reply_selection_request): Pass long array to
6578 XChangeProperty so that 64 bit longs are handeled correctly.
6579 (x_get_window_property): If format is 32 and long is bigger than 32
6580 bits convert data from XGetWindowProperty from long array to int array.
6581 (lisp_data_to_selection_data): When the input is a vector and the
6582 format is 32, allocate a long array even if long is bigger than 32 bits.
6583 (x_fill_property_data): Use char, short and long as the man page
6584 for XChangeProperty specifies. This way the data returned is OK for
6585 both 32 and 64 bit machines.
6586 (x_handle_dnd_message): Calculate size correctly even for 64 bit
6587 machines.
6588 (Fx_send_client_event): Undo change from 2005-02-05,
6589 x_fill_property_data now handles that case.
6590
6591 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
6592 reason for the approach in the code.
6593
6594 2005-02-07 Kim F. Storm <storm@cua.dk>
6595
6596 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
6597
6598 2005-02-06 Richard M. Stallman <rms@gnu.org>
6599
6600 * eval.c (Frun_hook_with_args)
6601 (Frun_hook_with_args_until_success)
6602 (Frun_hook_with_args_until_failure): Doc fixes.
6603
6604 2005-02-05 Andreas Schwab <schwab@suse.de>
6605
6606 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
6607
6608 2005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6609
6610 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
6611 the longs in a XClientMessageEvent correctly when long is 64 bits.
6612
6613 2005-02-05 Eli Zaretskii <eliz@gnu.org>
6614
6615 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
6616 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
6617
6618 2005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6619
6620 * xmenu.c (menubar_selection_callback): Force out GTK buffered
6621 events so the menu event comes after them. This is to prevent sit-for
6622 from exiting on buffered events directly after a menu selection,
6623 lisp code for Help => About Emacs uses sit-for.
6624
6625 * gtkutil.c (create_menus): Connect selection-done event instead of
6626 the deactivate event to deactivate_cb. This will make the last
6627 leave event come before the call to deactivate_cb, so the leave
6628 event does not make sit-for exit after a menu selection.
6629
6630 2005-02-03 Kim F. Storm <storm@cua.dk>
6631
6632 * dispnew.c (build_frame_matrix_from_leaf_window)
6633 [!GLYPH_DEBUG]: Fix xassert.
6634
6635 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
6636
6637 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6638
6639 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6640
6641 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
6642 the compiling OS version.
6643
6644 * macfns.c (x_create_tip_frame): Likewise.
6645
6646 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
6647
6648 2005-02-03 Richard M. Stallman <rms@gnu.org>
6649
6650 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
6651
6652 * xdisp.c (echo_area_display): Clear echo_message_buffer.
6653
6654 * buffer.c (Fbury_buffer): Doc fix.
6655
6656 2005-02-02 Steven Tamm <steventamm@mac.com>
6657
6658 * macfns.c (unwind_create_frame): Fix compile error due to
6659 xassert being uncondition, but predicate is.
6660 * dispnew.c (update_window): Fix compile error due to
6661 xassert being uncondition, but predicate is.
6662
6663 2005-02-02 Miles Bader <miles@gnu.org>
6664
6665 * dispextern.h (xassert): Enable unconditionally.
6666
6667 2005-02-02 Kim F. Storm <storm@cua.dk>
6668
6669 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
6670
6671 2005-02-02 Kenichi Handa <handa@m17n.org>
6672
6673 * casefiddle.c (casify_object): Enable changing characters of
6674 different byte length.
6675 (casify_region): Fix loop condition, args to replace_range_2, and
6676 update opoint_byte.
6677
6678 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
6679
6680 2005-02-01 Kim F. Storm <storm@cua.dk>
6681
6682 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
6683 stack before calling handle_display_prop.
6684
6685 2005-01-31 Kim F. Storm <storm@cua.dk>
6686
6687 * undo.c (Qapply): New lisp var.
6688 (syms_of_undo): Intern and staticpro it.
6689 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
6690 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
6691
6692 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
6693
6694 2005-01-30 Jesper Harder <harder@phys.au.dk>
6695
6696 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
6697 <mac-emulate-three-button-mouse>: Fix docstring indentation.
6698
6699 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
6700
6701 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6702 Increase value to 3 Meg.
6703
6704 2005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6705
6706 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
6707 button events are not received otherwise.
6708
6709 2005-01-29 Richard M. Stallman <rms@gnu.org>
6710
6711 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
6712
6713 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
6714
6715 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
6716
6717 * keymap.c (access_keymap): YAILOM.
6718
6719 2005-01-27 Kim F. Storm <storm@cua.dk>
6720
6721 * xdisp.c (get_phys_cursor_geometry): New function to calculate
6722 phys cursor position and size for hollow cursor. Position is
6723 aligned with get_glyph_string_clip_rect and ensures that a hollow
6724 cursor is shown, even when the actual glyph is not visible.
6725
6726 * dispextern.h (get_phys_cursor_geometry): Add prototype.
6727
6728 * xterm.c (x_clip_to_row): Ensure y >= 0.
6729 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
6730
6731 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
6732
6733 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
6734
6735 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
6736
6737 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
6738
6739 2005-01-27 Kim F. Storm <storm@cua.dk>
6740
6741 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
6742 glyph, even when row is only partially visible and actual cursor
6743 position is not visible.
6744
6745 2005-01-24 Richard M. Stallman <rms@gnu.org>
6746
6747 * xterm.c (x_error_quitter): No longer static, and moved after
6748 x_error_handler.
6749
6750 2005-01-24 Kim F. Storm <storm@cua.dk>
6751
6752 * xdisp.c (move_it_by_lines): If we move forward after going too
6753 far back, cancel move if end position is same as start position.
6754
6755 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6756
6757 * dispextern.h (struct glyph_string): New members clip_head and
6758 clip_tail.
6759
6760 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
6761 region to the area between clip_head and clip_tail.
6762 (draw_glyphs): Record the area that need to be actually redrawn to
6763 the new variables clip_head and clip_tail when there are
6764 overhangs. Set values of these variables to the corresponding
6765 members in struct glyph_string. Refine x coordinates for
6766 notice_overwritten_cursor using clip_head and clip_tail.
6767
6768 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
6769
6770 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
6771 QDTextBounds.
6772 (x_draw_glyph_string): Don't fill the background of the successor
6773 of a glyph with a right overhang if the successor will draw a cursor.
6774 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6775 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
6776
6777 2005-01-24 Kim F. Storm <storm@cua.dk>
6778
6779 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
6780 direction if window height was smaller than next-screen-context-lines.
6781 Now always scroll at least one line in the requested direction.
6782 Ensure that we actually do scroll backwards when requested to do so.
6783
6784 * xdisp.c (redisplay_window): Only try to make cursor line fully
6785 visible once (to avoid redisplay loop).
6786
6787 2005-01-23 Kim F. Storm <storm@cua.dk>
6788
6789 * window.c (Fpos_visible_in_window_p): Simplify return value for
6790 partially visible rows.
6791 (window_scroll_pixel_based): Adapt to that change.
6792
6793 * window.c (window_scroll_pixel_based): Force moving to next line
6794 if scrolling doesn't move start point, e.g. if looking at tall image.
6795
6796 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
6797 Clear last_height before calling line_bottom_y to get real height.
6798 Fix calculation of y.
6799
6800 2005-01-22 Steven Tamm <steventamm@mac.com>
6801
6802 * s/darwin.h: Removed PTY_ITERATION from here.
6803 (DARWIN): Define.
6804
6805 * process.c (init_process): Default process-connection-type to
6806 nil on darwin 6 or less, t if it is 7 or higher. This way the
6807 broken pty behavior is still allowed on darwin 6 for interactive
6808 processes for people that know what they are doing.
6809
6810 2005-01-22 Kim F. Storm <storm@cua.dk>
6811
6812 * window.c (auto_window_vscroll_p): New boolean.
6813 (syms_of_window): DEFVAR_BOOL it.
6814 (Fpos_visible_in_window_p): Extend return value to include RTOP
6815 and RBOT values if FULLY is nil.
6816 (window_scroll_pixel_based): Adjust vscroll for partially visible
6817 rows if auto_window_vscroll_p is set.
6818 (Fset_window_vscroll): Do nothing if vscroll is not modified.
6819
6820 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
6821 to return number of partially invisible pixels at top and bottom
6822 of the dislay row at POS.
6823
6824 * lisp.h (pos_visible_p): Fix prototype.
6825
6826 2005-01-21 Richard M. Stallman <rms@gnu.org>
6827
6828 * fileio.c (Fcopy_file): Doc fix.
6829
6830 2005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6831
6832 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
6833 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
6834 start of function for older compilers.
6835
6836 2005-01-20 Richard M. Stallman <rms@gnu.org>
6837
6838 * editfns.c (Fmessage): If arg is "", return "" (as before).
6839
6840 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
6841
6842 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
6843 variable.
6844
6845 2005-01-20 Steven Tamm <steventamm@mac.com>
6846
6847 * editfns.c (Voperating_system_release): Add.
6848 (init_editfns): Assign new variable operating-system-release
6849 based on call to uname if available.
6850 (get_operating_system_release): Add function to
6851 allow c-level access to operating system release.
6852
6853 * config.h: Regenerated.
6854
6855 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
6856 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
6857 using ptys as '7'.
6858
6859 2005-01-20 Kim F. Storm <storm@cua.dk>
6860
6861 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
6862
6863 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
6864 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
6865
6866 * macterm.c (x_draw_glyph_string_box): Likewise.
6867
6868 * w32term.c (x_draw_glyph_string_box): Likewise.
6869
6870 * indent.c (Fvertical_motion): Temporarily disable selective display.
6871
6872 2005-01-19 Kim F. Storm <storm@cua.dk>
6873
6874 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
6875 image property.
6876
6877 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
6878
6879 2005-01-18 Kim F. Storm <storm@cua.dk>
6880
6881 * xdisp.c (fast_find_position): Backtrack to find first row if
6882 charpos is inside a display overlay that spans multiple lines.
6883
6884 2005-01-18 Kenichi Handa <handa@m17n.org>
6885
6886 * coding.c (decode_coding_iso2022): Translate invalid codes if
6887 translation-table is specified.
6888
6889 2005-01-18 Kim F. Storm <storm@cua.dk>
6890
6891 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
6892 change. If handle_display_prop indicates newline is replaced by
6893 image or text, move back to start of relevant overlay or interval
6894 and continue scan from there. Simplify.
6895
6896 2005-01-17 Kim F. Storm <storm@cua.dk>
6897
6898 * dispnew.c (mode_line_string, marginal_area_string):
6899 Fix off-by-one error in search for glyph.
6900
6901 2005-01-16 Kim F. Storm <storm@cua.dk>
6902
6903 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
6904
6905 2005-01-16 Steven Tamm <steventamm@mac.com>
6906
6907 * macterm.c (mac_to_x_fontname): Remove spurious argument.
6908
6909 2005-01-16 Andreas Schwab <schwab@suse.de>
6910
6911 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
6912
6913 2005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6914
6915 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
6916 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
6917
6918 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6919
6920 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
6921 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
6922 New flags for readable_events.
6923 (get_filtered_input_pending, readable_filtered_events): Remove.
6924 (tracking_off): Call readable_events and get_input_pending with
6925 flag READABLE_EVENTS_DO_TIMERS_NOW.
6926 (readable_events): Move code from old readable_filtered_events here,
6927 but check new READABLE_EVENTS_* in argument flags instead of previous
6928 two boolean arguments do_timers_now and filter_events.
6929 If we are doing mouse tracking and the mouse moved, return only if
6930 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
6931 (swallow_events): Call get_input_pending with flag
6932 READABLE_EVENTS_DO_TIMERS_NOW.
6933 (get_input_pending): Move code from old get_filtered_input_pending
6934 here. Replace boolean arguments do_timers_now, filter_events with
6935 flags, and pass flags to readable_events. Document new
6936 READABLE_EVENTS_* flags.
6937 (detect_input_pending_ignore_squeezables): New function.
6938 (detect_input_pending_run_timers): Call get_input_pending with flag
6939 READABLE_EVENTS_DO_TIMERS_NOW.
6940 (Finput_pending_p): Call get_input_pending with flags
6941 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
6942
6943 * dispnew.c (update_window, update_frame_1): Replace calls to
6944 detect_input_pending with detect_input_pending_ignore_squeezables
6945 so that redisplay is not paused if the event queue contains only
6946 mouse movements.
6947
6948 * lisp.h: Declare detect_input_pending_ignore_squeezables.
6949
6950 2005-01-15 Steven Tamm <steventamm@mac.com>
6951
6952 * macterm.c (Vmac_use_core_graphics): Declare variable for
6953 mac-allow-anti-aliasing.
6954 (syms_of_macterm): DEFVAR_LISP and initialize it.
6955 (mac_draw_string_common): Use core graphics text rendering if
6956 mac-allow-anti-aliasing is enabled.
6957
6958 * macfns.c (Fx_file_dialog): Save As dialog includes only the
6959 file name in the text box.
6960
6961 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6962
6963 * macfns.c (x_set_foreground_color, x_set_background_color):
6964 Sync with xfns.c.
6965 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
6966 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
6967 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
6968
6969 2005-01-14 Kim F. Storm <storm@cua.dk>
6970
6971 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
6972
6973 2005-01-13 Richard M. Stallman <rms@gnu.org>
6974
6975 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
6976 if Voverriding_terminal_local_map is non-nil.
6977
6978 * keyboard.c (syms_of_keyboard): Doc fix.
6979
6980 2005-01-13 Kim F. Storm <storm@cua.dk>
6981
6982 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
6983 (specify 0 for FACE instead). Reorder arg list. Doc fix.
6984
6985 2005-01-12 Richard M. Stallman <rms@gnu.org>
6986
6987 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
6988 face property for characters that don't specify one.
6989
6990 * fns.c (Frequire): Record in load-history unconditionally.
6991
6992 2005-01-10 Kim F. Storm <storm@cua.dk>
6993
6994 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
6995
6996 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
6997 Callers changed.
6998 Add support to merge with lisp face id too (if face_name is t).
6999
7000 * xdisp.c (get_next_display_element, next_element_from_display_vector):
7001 Don't lookup lface_id from display table glyphs here; instead use
7002 merge_faces to merge the lisp face id into current face.
7003
7004 2005-01-09 Kim F. Storm <storm@cua.dk>
7005
7006 * dispextern.h (struct it): New member dpvec_face_id.
7007 (merge_into_realized_face): Add prototype.
7008
7009 * xfaces.c (merge_into_realized_face): New function. Used to
7010 merge escape-glyph face or face from display table into current face.
7011
7012 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
7013 (syms_of_xdisp): DEFVAR_LISP it.
7014 (escape_glyph_face): Remove var.
7015 (redisplay_window): Don't initialize it.
7016 (setup_for_ellipsis, get_next_display_element):
7017 Set it->dpvec_face_id to -1.
7018 (get_next_display_element): Test Vshow_nonbreak_escape.
7019 Do not setup escape_glyph_face.
7020 Properly merge escape-glyph face or face from display table with
7021 current face for escape and control characters.
7022 Set it->dpvec_face_id to relevant face id instead of adding it to each
7023 element of display vector.
7024 (next_element_from_display_vector): If it->dpvec_face_id is set,
7025 use that instead of lface_id from glyph itself.
7026
7027 2005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7028
7029 * xterm.h (struct x_output): New member, toolbar_detached.
7030
7031 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
7032 38.
7033 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
7034 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
7035 (xg_create_tool_bar): Initialize toolbar_detached.
7036 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
7037 toolbar_detached is zero.
7038
7039 2005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7040
7041 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
7042 gtk_menu_popup if not for_click, so callbacks for the menu are called.
7043
7044 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
7045 (xg_tool_bar_callback, xg_tool_bar_help_callback)
7046 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
7047
7048 * xselect.c (x_get_foreign_selection, x_fill_property_data)
7049 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
7050 XFLOAT_DATA to get extract number from Lisp object.
7051
7052 2005-01-07 Kim F. Storm <storm@cua.dk>
7053
7054 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
7055 Set stop_charpos to current charpos instead of 0.
7056
7057 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
7058
7059 * xdisp.c (Fformat_mode_line): First arg now required.
7060
7061 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7062
7063 * macterm.c (XLoadQueryFont): Correctly handle 0 size
7064 font widths that are returned from some Japanese fonts.
7065
7066 2005-01-06 Kim F. Storm <storm@cua.dk>
7067
7068 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
7069 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
7070 (destroy_fringe_bitmap): Set fringe_faces element to nil.
7071 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
7072 fringe_faces array and init elements to nil.
7073 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
7074 non-persistent face id.
7075 (mark_fringe_data): New function for GC.
7076
7077 * alloc.c (mark_fringe_data): Declare extern.
7078 (Fgarbage_collect): Call mark_fringe_data.
7079
7080 * alloc.c (overrun_check_free): Invalidate freed memory if
7081 XMALLOC_CLEAR_FREE_MEMORY is defined.
7082
7083 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7084
7085 * macfns.c: Include sys/param.h.
7086 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
7087 and function.
7088 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
7089 of filename string. Set event callback function when creating
7090 dialog boxes. Add code conversions for filenames. Don't dispose
7091 of apple event descriptor record if failed to create it.
7092
7093 * macterm.c: Include sys/param.h.
7094 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
7095 kEventWindowUpdate.
7096 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
7097 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
7098 of FSSpec from apple event descriptor record.
7099 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
7100 size of filename string.
7101 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
7102 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
7103 file dialog is in action.
7104 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
7105 Reject only when there are no filename items. Set background color
7106 before (un)highlighting the window below the dragged items.
7107 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
7108
7109 2005-01-05 Romain Francoise <romain@orebokech.com>
7110
7111 * term.c (encode_terminal_code): Fix buffer size computation.
7112
7113 2005-01-04 Richard M. Stallman <rms@gnu.org>
7114
7115 * xdisp.c (Fformat_mode_line): Doc fix.
7116
7117 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
7118
7119 * alloc.c (refill_memory_reserve): Move.
7120 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
7121 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
7122
7123 2005-01-03 Richard M. Stallman <rms@gnu.org>
7124
7125 * window.c (window_scroll_pixel_based): Don't correct preserve_y
7126 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
7127
7128 2005-01-03 Jason Rumney <jasonr@gnu.org>
7129
7130 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
7131 fontp->space_width to FONT_WIDTH so they are valid.
7132
7133 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
7134 average width. Set fontp->average_width and fontp->space_width to
7135 their appropriate values.
7136
7137 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
7138 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
7139 fontp->space_width.
7140
7141 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7142
7143 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
7144 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
7145 metrics for max and min bounds.
7146 (x_load_font): Correctly calculate average font width metrics.
7147
7148 2005-01-02 Richard M. Stallman <rms@gnu.org>
7149
7150 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
7151
7152 2004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7153
7154 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
7155
7156 2004-12-31 Richard M. Stallman <rms@gnu.org>
7157
7158 * xdisp.c (setup_for_ellipsis, get_next_display_element):
7159 Set it->ellipsis_p to 1 or 0.
7160 (display_line): Record whether row ends in mid-ellipsis.
7161 (set_cursor_from_row): If ends in ellipsis, find start of it.
7162 (cursor_row_p): If PT's at the end of the ellipsis the row
7163 ends within, don't display cursor on this row.
7164
7165 * dispextern.h (struct it): New element ellipsis_p.
7166 (struct glyph_row): New element ends_in_ellipsis_p.
7167
7168 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
7169 position if we're reading from something other than the buffer.
7170
7171 * window.c (window_scroll_pixel_based): Only look at
7172 Vscroll_preserve_screen_position if the old PT can't be kept.
7173 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
7174
7175 2004-12-30 Kim F. Storm <storm@cua.dk>
7176
7177 * xdisp.c (get_line_height_property): New function extracted from
7178 original calc_line_height_property.
7179 (calc_line_height_property): Rework. Handle t and (nil . ratio).
7180 (x_produce_glyphs): Use them to handle line-height and
7181 line-spacing according to new height spec.
7182 (Qtotal): Remove.
7183 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
7184
7185 2004-12-30 Kenichi Handa <handa@m17n.org>
7186
7187 * fileio.c (Finsert_file_contents): Don't use
7188 current_buffer->buffer_file_coding_system even if REPLACE is
7189 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
7190
7191 * fontset.h (struct font_info): New members space_width and
7192 average_width.
7193
7194 * frame.h (struct frame): New member space_width.
7195 (FRAME_SPACE_WIDTH): New macro.
7196
7197 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
7198
7199 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
7200 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
7201 fontp->space_width.
7202 (x_load_font): Calculate fontp->space_width and fontp->average_width.
7203 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
7204
7205 * xdisp.c (x_produce_glyphs): Calculate tab width by
7206 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
7207
7208 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
7209
7210 * macterm.c (SelectionRange): Add Xcode position apple event struct.
7211 (do_ae_open_documents): Handle Xcode-style file position open events.
7212
7213 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
7214
7215 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
7216
7217 2004-12-29 Richard M. Stallman <rms@gnu.org>
7218
7219 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
7220
7221 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7222
7223 * macfns.c (install_window_handler): Modify extern to return OSErr
7224 value.
7225 (mac_window): Handle return value of install_window_handler.
7226
7227 * macterm.c (reflect_byte): Remove function.
7228 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
7229 Lookup table instead.
7230 (mac_do_font_lists): Simplify calculation of the longest
7231 nonspecial string.
7232 (init_mac_drag_n_drop): Remove function and declaration.
7233 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
7234 init_mac_drag_n_drop.
7235 (mac_do_track_drag): New function and declaration.
7236 (install_window_handler): Return OSErr value.
7237 (install_window_handler) [TARGET_API_MAC_CARBON]:
7238 Register handlers for tracking/receiving drag-and-drop items.
7239 (do_ae_open_documents): Generate unibyte strings for filenames.
7240 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
7241 Reject only non-filename items. Set event modifiers, and return value.
7242
7243 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
7244
7245 * coding.c (decode_coding): Fix previous change.
7246
7247 2004-12-28 Richard M. Stallman <rms@gnu.org>
7248
7249 * xdisp.c (back_to_previous_visible_line_start):
7250 Don't call handle_display_prop.
7251
7252 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
7253
7254 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
7255 (decode_coding_emacs_mule, encode_coding_emacs_mule)
7256 (decode_coding_iso2022, encode_designation_at_bol)
7257 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
7258 (decode_coding): Constify arguments and local vars.
7259
7260 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7261
7262 * xmenu.c (popup_get_selection): Only pop down dialogs
7263 on C-g and Escape.
7264 (popup_get_selection): Remove parameter down_on_keypress.
7265 (create_and_show_popup_menu, create_and_show_dialog):
7266 Remove parameter down_on_keypress to popup_get_selection.
7267
7268 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7269
7270 * dispextern.h: Change HAVE_CARBON to MAC_OS.
7271 (struct glyph_string): Likewise.
7272
7273 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
7274 mac_initialize.
7275
7276 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
7277 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
7278
7279 * fns.c (vector): Change MAC_OSX to MAC_OS.
7280
7281 * frame.c (x_set_frame_parameters, x_report_frame_params)
7282 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
7283 (x_set_border_width, Vdefault_frame_scroll_bars):
7284 Change HAVE_CARBON to MAC_OS.
7285
7286 * image.c [MAC_OS]: Include sys/stat.h.
7287 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
7288 QuickTimeComponents.h.
7289
7290 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
7291 [!MAC_OSX] (select): Use mac_wait_next_event.
7292 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
7293 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
7294 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
7295 (mac_clear_font_name_table): Add extern.
7296 (Fmac_clear_font_name_table): New defun.
7297 (syms_of_mac): Defsubr it.
7298 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
7299 [MAC_OSX] (select_and_poll_event): New function.
7300 [MAC_OSX] (sys_select): Use it.
7301 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
7302 [MAC_OSX && SELECT_USE_CFSOCKET]
7303 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
7304 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
7305 RunLoop for simultaneously monitoring two kinds of inputs, window
7306 events and process outputs, without periodically polling.
7307
7308 * macfns.c (mac_initialized): Remove extern.
7309 (stricmp): Put in #if 0. All callers changed to use xstricmp in
7310 xfaces.c.
7311 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
7312 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
7313 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
7314 (mac_get_rdb_resource): New function (from w32reg.c).
7315 (x_get_string_resource): Use it.
7316 (install_window_handler): Add extern.
7317 (mac_window): New function.
7318 (Fx_create_frame): Use it instead of make_mac_frame.
7319 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
7320 (Fx_open_connection, Fx_close_connection): New defuns.
7321 (syms_of_macfns): Defsubr them.
7322 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
7323 Add kWindowNoUpdatesAttribute to the window attribute.
7324 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
7325 (x_create_tip_frame): Don't call ShowWindow.
7326 (Fx_show_tip): Call ShowWindow.
7327 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
7328 TARGET_API_MAC_CARBON'.
7329 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
7330 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
7331
7332 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
7333 (Window): Typedef to WindowPtr and move outside `#if
7334 TARGET_API_MAC_CARBON'.
7335 (XSizeHints): New struct.
7336
7337 * macterm.c (x_update_begin, x_update_end)
7338 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
7339 frame.
7340 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
7341 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
7342 (construct_mouse_click): Put in #if 0.
7343 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
7344 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
7345 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
7346 (activate_scroll_bars, deactivate_scroll_bars)
7347 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
7348 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
7349 if the position is neither user-specified nor program-specified.
7350 (x_free_frame_resources): Free size_hints.
7351 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
7352 (mac_clear_font_name_table): New function.
7353 (mac_do_list_fonts): Initialize font_name_table if needed.
7354 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
7355 around mac_do_list_fonts.
7356 (mac_unload_font): New function.
7357 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
7358 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
7359 and definitions with #if TARGET_API_MAC_CARBON.
7360 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
7361 (install_window_handler): Add decl.
7362 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
7363 window. Use UpdateControls. Get the rectangle that should be
7364 updated and restrict the target of expose_frame to it.
7365 (do_grow_window): Set minimum height/width according to size_hints.
7366 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
7367 (do_zoom_window): Don't use x_set_window_size.
7368 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
7369 (install_window_handler): New function.
7370 [!USE_CARBON_EVENTS] (mouse_region): New variable.
7371 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
7372 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
7373 GetEventDispatcherTarget inside BLOCK_INPUT.
7374 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
7375 Update mouse_region when mouse is moved.
7376 (make_mac_frame): Remove.
7377 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
7378 Initialize mouse pointer shapes. Change values of f->left_pos and
7379 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
7380 Don't call ShowWindow.
7381 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
7382 Vinvocation_name and Vsystem_name.
7383 (mac_make_rdb): New function (from w32term.c).
7384 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
7385 already been opened. Don't pass argument to
7386 mac_initialize_display_info. Don't set dpyinfo->height/width.
7387 Add entries to x_display_list and x_display_name_list.
7388 (x_delete_display): New function.
7389 (mac_initialize): Don't call mac_initialize_display_info.
7390 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
7391
7392 * macterm.h (check_mac): Add extern.
7393 (struct mac_output): New member size_hints.
7394 (FRAME_SIZE_HINTS): New macro.
7395 (mac_unload_font): Add extern.
7396
7397 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
7398
7399 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
7400
7401 2004-12-27 Richard M. Stallman <rms@gnu.org>
7402
7403 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
7404 (syms_of_buffer): Don't defsubr it.
7405
7406 * process.c (list_processes_1): Set undo_list instead
7407 of calling Fbuffer_disable_undo.
7408
7409 * xdisp.c (single_display_spec_string_p): Rename from
7410 single_display_prop_string_p.
7411 (single_display_spec_intangible_p): Rename from
7412 single_display_prop_intangible_p.
7413 (handle_single_display_spec): Rename from handle_single_display_prop.
7414 Rewritten to be easier to understand.
7415
7416 Change in load-history format. Functions now get (defun . NAME),
7417 and variables get just NAME.
7418
7419 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
7420
7421 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
7422 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
7423 (Qdefvar): Var deleted.
7424 (syms_of_eval): Don't initialze it.
7425
7426 * lread.c (syms_of_lread) <load-history>: Doc fix.
7427
7428 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7429
7430 * xmenu.c (popup_get_selection): Pop down on C-g.
7431 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
7432 pops down menu on C-g.
7433 (xdialog_show): If dialog popped down and no button in the dialog was
7434 pushed, call Fsignal to quit.
7435 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
7436 Fsignal to quit.
7437
7438 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
7439
7440 * gtkutil.c (xg_initialize): Install bindings for C-g so that
7441 dialogs and menus pop down.
7442
7443 2004-12-27 Kenichi Handa <handa@m17n.org>
7444
7445 * coding.c (code_convert_region): Fix calculation of `ratio'.
7446
7447 2004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7448
7449 * gtkutil.c (update_frame_tool_bar): Make the value of
7450 tool-bar-button-margin control margins of images in tool bar.
7451
7452 * alloc.c (check_depth): New variable.
7453 (overrun_check_malloc, overrun_check_realloc): Only add
7454 overhead and write check pattern if check_depth is 1 (to handle
7455 recursive calls). Increase/decrease check_depth in entry/exit.
7456 (overrun_check_free): Only check for overhead if check_depth is 1.
7457 Increase/decrease check_depth in entry/exit.
7458
7459 2004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7460
7461 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
7462 before touching input_available_clear_time, to avoid accessing it
7463 from multiple threads.
7464
7465 2004-12-23 Jason Rumney <jasonr@gnu.org>
7466
7467 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
7468 of JPEG library.
7469
7470 2004-12-22 Richard M. Stallman <rms@gnu.org>
7471
7472 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
7473
7474 * lisp.h (Vundo_outer_limit): Fix decl.
7475
7476 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
7477 Uses changed.
7478 (syms_of_undo): Initialize appropriately.
7479 (truncate_undo_list): If it's nil, there's no limit.
7480
7481 2004-12-22 Kenichi Handa <handa@m17n.org>
7482
7483 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
7484
7485 2004-12-21 Richard M. Stallman <rms@gnu.org>
7486
7487 * eval.c (unwind_to_catch): Clear immediate_quit.
7488
7489 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
7490 specially as `\ ' and `\-'.
7491
7492 * keyboard.c (kbd_buffer_store_event_hold):
7493 In the code for while-no-input, handle immediate_quit.
7494
7495 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
7496 Call that at the very start.
7497 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
7498 (syms_of_alloc): Don't define undo-limit,
7499 undo-strong-limit and undo-outer-limit here.
7500
7501 * undo.c (truncate_undo_list): Return void.
7502 Take just one argument, the buffer.
7503 Make it current, and inhibit recursive GC.
7504 Access and update the undo list directly; return void.
7505 Refer to the undo...limit variables directly.
7506 Test undo_outer_limit only after counting the whole current command.
7507 When it's exceeded, call the function in undo-outer-limit-function.
7508 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
7509 (Vundo_outer_limit_function): New variable.
7510 (syms_of_undo): Define undo-limit, undo-strong-limit
7511 and undo-outer-limit here, and undo-outer-limit-function.
7512 Doc fixes.
7513
7514 * lisp.h (truncate_undo_list): Update decl.
7515
7516 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
7517
7518 * fileio.c (Fread_file_name): Delete duplicates in
7519 file-name-history when history_delete_duplicates is true.
7520
7521 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7522
7523 * macterm.c (mac_do_list_fonts): Fix memory leak
7524
7525 2004-12-20 Richard M. Stallman <rms@gnu.org>
7526
7527 * regex.c (re_match_2_internal) <symend, wordend>:
7528 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
7529
7530 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7531
7532 * macterm.c (endif, x_font_name_to_mac_font_name):
7533 Use maccentraleurroman instead of maccentraleuropean
7534 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
7535 quickly finding a specific font without needing regexps.
7536
7537 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7538
7539 * syssignal.h: Declare main_thread.
7540 (SIGNAL_THREAD_CHECK): New macro.
7541
7542 * keyboard.c (input_available_signal): Move thread checking code
7543 to macro SIGNAL_THREAD_CHECK and call that macro.
7544 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
7545
7546 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
7547
7548 * emacs.c: Define main_thread.
7549 (main): Initialize main_thread.
7550 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
7551 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
7552
7553 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
7554
7555 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
7556
7557 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
7558
7559 * process.c (send_process_trap, sigchld_handler):
7560 Call SIGNAL_THREAD_CHECK.
7561
7562 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
7563
7564 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
7565
7566 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
7567 returning when xg_ignore_gtk_scrollbar is true.
7568
7569 2004-12-14 Kim F. Storm <storm@cua.dk>
7570
7571 * keyboard.c (read_char): Save and restore echo_string when
7572 handling input method.
7573
7574 2004-12-13 Richard M. Stallman <rms@gnu.org>
7575
7576 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
7577
7578 * keyboard.c (Vthrow_on_input): New variable.
7579 (syms_of_keyboard): Defvar and initialize it.
7580 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
7581
7582 * lisp.h (QUIT): Check for Vthrow_on_input.
7583 (Vthrow_on_input): Declare it.
7584
7585 2004-12-13 Kim F. Storm <storm@cua.dk>
7586
7587 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
7588 vector.
7589
7590 2004-12-12 Richard M. Stallman <rms@gnu.org>
7591
7592 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
7593
7594 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
7595 (Ftry_completion): Really use outer `zero'; eliminate inner one.
7596
7597 2004-12-12 Kenichi Handa <handa@m17n.org>
7598
7599 * term.c (encode_terminal_code): Fix previous change.
7600
7601 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
7602
7603 * keyboard.c (handle_async_input): Remove pthread mutex handling.
7604 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
7605
7606 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
7607 in macro arguments.
7608
7609 * minibuf.c (Ftry_completion, Fall_completions): Don't use
7610 XFASTINT blindly.
7611
7612 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
7613
7614 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7615
7616 * w32term.c (x_calc_absolute_position): Remove calculation of
7617 difference between inner and outer window. Don't subtract difference
7618 for left and top calculations.
7619
7620 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
7621 for left and top calculations. Remove call to x_real_positions.
7622 [Bug report by Drew Adams in November]
7623 (x_check_expected_move): Do not set change_gravity to 1 when calling
7624 x_set_offset.
7625
7626 2004-12-08 Richard M. Stallman <rms@gnu.org>
7627
7628 * xdisp.c (get_next_display_element): Use `escape-glyph' for
7629 control chars and escaped octal codes.
7630 (Qescape_glyph): New variable.
7631 (syms_of_xdisp): Initialize it.
7632 (escape_glyph_face): New variable.
7633 (redisplay_window): Initialize it.
7634
7635 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
7636
7637 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
7638 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
7639
7640 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7641
7642 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
7643 reset_malloc_hooks.
7644
7645 * keyboard.c (handle_async_input, input_available_signal):
7646 Add ! defined (SYSTEM_MALLOC) around thread code.
7647
7648 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
7649
7650 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
7651
7652 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
7653
7654 * config.in: Regenerate.
7655
7656 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7657
7658 * xmenu.c (Fx_popup_menu): Correct documentation about position.
7659 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
7660 if not given by a mouse click to correspond with x-popup-menu
7661 documentation.
7662
7663 * config.in: Regenerate.
7664
7665 * gtkutil.c: Include signal.h and syssignal.h.
7666 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
7667
7668 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
7669 new variables main_thread and alloc_mutex,
7670 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
7671 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
7672 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
7673 (UN)BLOCK_INPUT.
7674 (emacs_blocked_free, emacs_blocked_malloc)
7675 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
7676 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
7677 (reset_malloc_hooks): New function.
7678
7679 * lisp.h: Declare reset_malloc_hooks.
7680
7681 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
7682
7683 * keyboard.c: Conditionally include pthread.h
7684 (handle_async_input, input_available_signalt): If not in the main
7685 thread, block signal, send signal to main thread and return.
7686
7687 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
7688 Set current folder in file chooser if default_filename is a directory.
7689
7690 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
7691
7692 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
7693 Remove redundant correctness checks.
7694 (regex_compile): Fix up error codes for \{..\} expressions.
7695
7696 2004-12-05 Richard M. Stallman <rms@gnu.org>
7697
7698 * regex.c (regex_compile): Fix end-of-pattern case for space.
7699
7700 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7701
7702 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
7703 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
7704 crashes with invalid characters.
7705 * macmenu.c (add_menu_item): Use it.
7706 * image.c (image_load_quartz2d): Likewise.
7707 * macfns.c (x_set_name, x_set_title): Likewise.
7708 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
7709 creating them each time for labels.
7710
7711 2004-12-02 Richard M. Stallman <rms@gnu.org>
7712
7713 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
7714 don't use it here.
7715
7716 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
7717 (interactive_p): Skip Scalled_interactively_p frames
7718 like Sinteractive_p frames.
7719 (unwind_to_catch): Clear handling_signal.
7720
7721 * data.c (Fmake_variable_buffer_local): Doc fix.
7722 (Fmake_local_variable): Doc fix.
7723
7724 * insdel.c (insert_from_string_before_markers)
7725 (insert_from_string): Don't modify buffer on empty insertion.
7726
7727 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
7728
7729 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7730
7731 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
7732 menu text as UTF8 fails.
7733
7734 2004-12-01 Kim F. Storm <storm@cua.dk>
7735
7736 * alloc.c: Add commentary for last change.
7737 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
7738 sizeof(size_t) != 4.
7739 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
7740 Use them. Also clear header and trailer of freed memory.
7741 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
7742 (string_overrun_cookie): Rename from string_overrun_pattern.
7743 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
7744
7745 2004-12-01 Andreas Schwab <schwab@suse.de>
7746
7747 * lisp.h: Declare string_to_multibyte.
7748
7749 2004-12-01 Kenichi Handa <handa@m17n.org>
7750
7751 * w32console.c (w32con_write_glyphs): Decide coding here.
7752 Adjusted for the change of encode_terminal_code.
7753
7754 * term.c (encode_terminal_code): Don't make it "static".
7755
7756 2004-11-30 Kenichi Handa <handa@m17n.org>
7757
7758 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
7759 (encode_terminal_code): Argument changed. Encode all
7760 characters at once, and return a pointer to the result of encoding.
7761 (write_glyphs): Decide coding here. Adjusted for the above change.
7762 (insert_glyphs): Likewise.
7763 (term_init): Initialize encode_terminal_bufsize to 0.
7764
7765 * coding.c (Vcode_conversion_workbuf_name): New variable.
7766 (syms_of_coding): Initialize and staticpro it.
7767 (set_conversion_work_buffer): New function.
7768 (run_pre_post_conversion_on_str): Use it.
7769 (run_pre_write_conversin_on_c_str): New function.
7770
7771 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
7772
7773 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7774
7775 * keyboard.c: Don't undef SIGIO
7776 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
7777 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
7778 (macfns.o): Don't depend on ccl.h.
7779 * macfns.c (mac_frame_parm_handlers): Set handlers for
7780 Qleft_fringe and Qright_fringe.
7781 * macterm.c (mac_fill_rectangle_to_pixmap)
7782 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
7783 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
7784 Put in #if 0.
7785 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
7786 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
7787 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
7788 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
7789 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
7790 XDrawImageString. Always draw background and foreground separately.
7791 (x_draw_image_foreground): Use clipping instead of computing the
7792 intersection rectangle.
7793 (x_draw_image_glyph_string): Don't draw an image with mask to a
7794 pixmap.
7795 (x_redisplay_interface): Set flush_display_optional member to 0.
7796 (XTread_socket): Correctly reset the TEConverter
7797 object.
7798
7799 2004-11-30 Kim F. Storm <storm@cua.dk>
7800
7801 * lisp.h: New defines to enable buffer overrun checking.
7802 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
7803 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
7804
7805 * alloc.c: Add more checks for buffer overruns.
7806 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
7807 xmalloc_overrun_check_trailer, overrun_check_malloc)
7808 overrun_check_realloc, overrun_check_free): Add.
7809 (GC_STRING_EXTRA, string_overrun_pattern): Add.
7810 (check_sblock, allocate_string_data, compact_small_strings):
7811 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
7812 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
7813 (check_string_free_list): Add.
7814 (allocate_string, sweep_strings): Call check_string_free_list.
7815
7816 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
7817 XMALLOC_OVERRUN_CHECK to avoid crash during load.
7818
7819 2004-11-29 Kim F. Storm <storm@cua.dk>
7820
7821 * fns.c (concat): Use SAFE_ALLOCA.
7822
7823 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
7824
7825 * sysdep.c (emacs_write): Don't use QUIT.
7826
7827 2004-11-29 Kenichi Handa <handa@m17n.org>
7828
7829 * buffer.c (init_buffer): Set current_buffer->directory to a
7830 multibyte string made by string_to_multibyte.
7831
7832 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
7833
7834 2004-11-27 Andreas Schwab <schwab@suse.de>
7835
7836 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
7837
7838 * s/gnu-linux.h: Enable no-op gcpros on ia64.
7839 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
7840
7841 * filelock.c (lock_file_1): Call get_boot_time early.
7842 Increase buffer size.
7843
7844 2004-11-27 Eli Zaretskii <eliz@gnu.org>
7845
7846 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
7847 is not defined.
7848
7849 2004-11-27 Kim F. Storm <storm@cua.dk>
7850
7851 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
7852 marker out of doc string.
7853
7854 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
7855
7856 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
7857 which was not mentioned in the log.
7858
7859 2004-11-26 Kim F. Storm <storm@cua.dk>
7860
7861 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
7862 angle bitmaps at top/bottom line.
7863
7864 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
7865 set it when it->method is set to next_element_from_display_vector.
7866 (setup_for_ellipsis): Add LEN argument. Callers changed.
7867 Set it->saved_face_id.
7868 (get_next_display_element): Use loop instead of recursion.
7869 Set it->saved_face_id. Combine duplicate code for ctr chars.
7870 (next_element_from_display_vector): Do not set it->saved_face_id.
7871 (next_element_from_ellipsis): Use setup_for_ellipsis.
7872
7873 2004-11-26 Eli Zaretskii <eliz@gnu.org>
7874
7875 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
7876 prevent compiler warnings.
7877
7878 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
7879
7880 * keyboard.c (command_loop_1): Print a message describing the key
7881 the user just pressed when this key has no binding.
7882
7883 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
7884 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
7885
7886 * lread.c (readchar): Check QUIT when `getc' is interrupted.
7887
7888 2004-11-24 Richard M. Stallman <rms@gnu.org>
7889
7890 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
7891
7892 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
7893
7894 2004-11-24 Kim F. Storm <storm@cua.dk>
7895
7896 * xdisp.c (move_it_in_display_line_to, display_line):
7897 Restore saved_face_id also when truncate-lines or hscrolled.
7898
7899 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7900
7901 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
7902 x-use-old-gtk-file-dialog.
7903
7904 * xfns.c: Define x_use_old_gtk_file_dialog.
7905 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
7906 outside ifdef USE_GTK.
7907
7908 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
7909
7910 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
7911 Don't use XFASTINT blindly.
7912
7913 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
7914
7915 * indent.c (skip_invisible): Avoid non-idempotent side-effects
7916 in macro arguments.
7917
7918 * keymap.c (Flookup_key): Check INTEGERP before XINT.
7919
7920 * lread.c (oblookup): Don't use XFASTINT blindly.
7921
7922 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
7923 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
7924
7925 2004-11-23 Kim F. Storm <storm@cua.dk>
7926
7927 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
7928 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
7929
7930 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
7931 signal_p is zero and face name is unknown.
7932 (Fx_list_fonts): Don't signal error in lookup_named_face.
7933 (Fface_font): Signal error in lookup_named_face.
7934 (ascii_face_of_lisp_face): Likewise.
7935
7936 * dispextern.h (lookup_named_face): Fix prototype.
7937
7938 * xdisp.c (handle_single_display_prop): Don't signal error in
7939 lookup_named_face for unknown fringe face name.
7940 (highlight_trailing_whitespace): Don't signal error in
7941 lookup_named_face if trailing-whitespace face unknown.
7942 (calc_line_height_property): Don't signal error in
7943 lookup_named_face if specified face name is unknown.
7944
7945 * fringe.c (update_window_fringes): Show top row indicator if
7946 window has header-line. Don't show arrow at bob and eob
7947 if the boundary indicators are not used.
7948 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
7949
7950 * window.c (set_window_buffer): Clear display_error_modiff.
7951
7952 2004-11-22 Kim F. Storm <storm@cua.dk>
7953
7954 * fringe.c (update_window_fringes): Provide sensible fall-back
7955 value for non-nil indicate-buffer-boundaries setting.
7956
7957 2004-11-22 Markus Rost <rost@ias.edu>
7958
7959 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
7960
7961 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
7962
7963 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
7964
7965 2004-11-21 Kim F. Storm <storm@cua.dk>
7966
7967 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
7968
7969 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
7970 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
7971
7972 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
7973 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
7974
7975 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
7976 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
7977
7978 * xdisp.c (move_it_in_display_line_to, display_line):
7979 Restore saved_face_id if overflow-newline-into-fringe is enabled and
7980 line is continued before or in middle of element from display vector.
7981
7982 * indent.c (Fvertical_motion): Fix last change. Use another
7983 method to detect if iterator moved too far ahead after reseat.
7984
7985 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
7986 expand matrix width for overflow in zero-width area.
7987 (append_glyph, append_composite_glyph, produce_image_glyph)
7988 (append_stretch_glyph): Use it to avoid loop in redisplay.
7989 (note_mode_line_or_margin_highlight): Don't let help-echo from
7990 string override help-echo from image map.
7991
7992 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
7993
7994 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
7995 * callint.c (Fcall_interactively): Ditto.
7996
7997 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
7998
7999 * minibuf.c (Fminibuffer_complete_and_exit):
8000 Fixup the case of the completed value, for case-indep completion.
8001
8002 2004-11-20 Richard M. Stallman <rms@gnu.org>
8003
8004 * lisp.h (Fread_from_minibuffer): Add arg in decl.
8005
8006 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
8007 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
8008
8009 * search.c (Vsearch_spaces_regexp):
8010 Rename from Vsearch_whitespace_regexp. All uses changed.
8011
8012 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
8013
8014 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
8015
8016 2004-11-19 Richard M. Stallman <rms@gnu.org>
8017
8018 * search.c (Vsearch_whitespace_regexp): New variable.
8019 (syms_of_search): Defvar it.
8020 (compile_pattern_1): Call re_set_whitespace_regexp with it.
8021 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
8022 is non-nil.
8023 (struct regexp_cache): New element whitespace_regexp.
8024 (syms_of_search): Initialize whitespace_regexp elements.
8025 (compile_pattern): Compare whitespace_regexp elements.
8026 (compile_pattern_1): Set whitespace_regexp elements.
8027
8028 * regex.c (regex_compile): Substitute whitespace_regexp
8029 for spaces, if it is nonzero.
8030 (whitespace_regexp): New variable.
8031 (re_set_whitespace_regexp): New function.
8032
8033 2004-11-19 Kim F. Storm <storm@cua.dk>
8034
8035 * indent.c (Fvertical_motion): Fix last change.
8036
8037 2004-11-18 Kim F. Storm <storm@cua.dk>
8038
8039 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
8040 Instead, move back again if reseating moves too far ahead.
8041
8042 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
8043
8044 * xdisp.c (message3): Call clear_message.
8045
8046 2004-11-17 Kim F. Storm <storm@cua.dk>
8047
8048 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
8049
8050 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8051
8052 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
8053
8054 * xmenu.c (x_menu_in_use): Remove.
8055 (x_menu_set_in_use): Also set popup_activated_flag.
8056
8057 * xfns.c (Fx_file_dialog): Call popup_activated instead of
8058 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
8059
8060 * xterm.h (x_menu_in_use): Remove.
8061
8062 2004-11-16 Richard M. Stallman <rms@gnu.org>
8063
8064 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
8065 Use map-keymap-internal to implement that.
8066
8067 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
8068
8069 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
8070
8071 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
8072 a window before using XWINDOW.
8073
8074 * window.c (make_window, Fselect_window, make_dummy_parent)
8075 (save_window_save):
8076 * frame.c (make_frame):
8077 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
8078
8079 * lisp.h (NILP): Use EQ rather than XFASTINT.
8080
8081 2004-11-16 Kim F. Storm <storm@cua.dk>
8082
8083 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
8084
8085 * indent.c (Fvertical_motion): Fix last change. Only reseat when
8086 moving backwards.
8087
8088 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
8089
8090 * dispextern.h: Extern reseat_at_previous_visible_line_start.
8091
8092 2004-11-16 Kenichi Handa <handa@m17n.org>
8093
8094 * xdisp.c (display_mode_element): Fix previous change (calculate
8095 end position of substring to display correctly).
8096
8097 2004-11-16 Kim F. Storm <storm@cua.dk>
8098
8099 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
8100 Reported by Andrew M. Scott.
8101
8102 2004-11-15 Kim F. Storm <storm@cua.dk>
8103
8104 * fns.c (Fsafe_plist_get): New defun.
8105 (syms_of_fns): Defsubr it.
8106
8107 * lisp.h (Fsafe_plist_get): Add EXFUN.
8108
8109 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
8110 Use Fsafe_plist_get.
8111 (note_mode_line_or_margin_highlight, note_mouse_highlight):
8112 Fix image map element parsing. Use Fsafe_plist_get.
8113
8114 2004-11-15 Richard M. Stallman <rms@gnu.org>
8115
8116 * xdisp.c (get_next_display_element): Fix previous change.
8117
8118 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8119
8120 * window.c (shrink_windows): Handle special case of one window left
8121 when trying to shrink the final reminder. Grow windows if
8122 total_removed is less than total_shrink.
8123
8124 * xmenu.c (pop_down_menu): Remove global variable current_menu,
8125 extract pointer from arg with XSAVE_VALUE.
8126 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
8127 Construct arg to record_unwind_protect with make_save_value.
8128
8129 2004-11-13 Richard M. Stallman <rms@gnu.org>
8130
8131 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
8132 (get_next_display_element): Fix previous change to apply only to \n.
8133
8134 * indent.c (Fvertical_motion): Scan to PT from start of line to
8135 make iterator consistent.
8136
8137 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
8138
8139 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8140
8141 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
8142
8143 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
8144 Record unwind with clean_up_file_dialog.
8145
8146 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
8147 Declare.
8148
8149 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
8150
8151 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8152
8153 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
8154 (xg_file_sel_destroy): Remove.
8155 (xg_file_response_cb, pop_down_file_dialog)
8156 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
8157 New functions.
8158 (xg_get_file_with_chooser, xg_get_file_with_selection):
8159 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
8160 Move common code to xg_get_file_name. Return widget created.
8161 (xg_get_file_name): Set name, transient for, modal and destroy
8162 with parent here. Connect response signal to xg_file_response_cb,
8163 connect delete-event to gtk_true. Record pop_down_file_dialog
8164 for unwind. Do event loop and call x_menu_wait_for_event in loop.
8165 (xg_create_widget): Make dialogs modal.
8166
8167 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
8168 Lisp_Object.
8169 (popup_get_selection): Move unwind protect ...
8170 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
8171 Move destroy of widget to pop_down_menu.
8172 (popup_widget_loop): Move unwind protect ...
8173 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
8174 Move destroy of widget to pop_down_menu.
8175 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
8176 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
8177 x_mouse_leave and grabbed = 0 to pop_down_menu.
8178
8179 2004-11-13 Kim F. Storm <storm@cua.dk>
8180
8181 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
8182 (syms_of_xdisp): DEFVAR_BOOL it.
8183 (make_cursor_line_fully_visible, try_cursor_movement)
8184 (try_window_id): Use it.
8185
8186 2004-11-12 Kim F. Storm <storm@cua.dk>
8187
8188 * dispextern.h (struct glyph_row): New member extra_line_spacing.
8189 (struct it): New member max_extra_line_spacing.
8190 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
8191 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
8192 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
8193 part of last line is only extra line spacing (so the text on the
8194 line is fully visible). Use helper macros.
8195 Add W arg (to use them). All callers changed.
8196 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
8197 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
8198
8199 * window.c (window_scroll_pixel_based, Frecenter):
8200 Use move_it_vertically_backward directly.
8201 (Frecenter): Fix calculation of new start pos for negative arg.
8202 Before, the new start pos was sometimes chosen too far back, so
8203 the last line became only partially visible, and thus would be
8204 either only semi-visible or automatically scrolled to the middle
8205 of the window by redisplay.
8206
8207 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
8208 (move_it_vertically_backward): Don't recure to move further back.
8209 (move_it_vertically): Remove superfluous condition.
8210 (move_it_by_lines): Clear last_height when moved 0 lines.
8211 (resize_mini_window): Use it.max_extra_line_spacing.
8212 (display_tool_bar_line): Clear row->extra_line_spacing.
8213 (try_scrolling): Use move_it_vertically_backward directly.
8214 (redisplay_window): Likewise.
8215 (compute_line_metrics): Set row->extra_line_spacing.
8216 (display_line, display_string): Likewise.
8217 (x_produce_glyphs): Update it->max_extra_line_spacing.
8218
8219 * xmenu.c (pop_down_menu): Return nil.
8220
8221 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8222
8223 * xmenu.c (x_menu_wait_for_event): New function.
8224 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
8225 to handle timers.
8226 (popup_widget_loop): Add argument do_timers.
8227 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
8228 do_timers to popup_widget_loop.
8229 (xmenu_show): Call XMenuActivateSetWaitFunction so that
8230 x_menu_wait_for_event is called by XMenuActivate.
8231 (create_and_show_popup_menu): Pass 1 for do_timers to
8232 popup_get_selection.
8233 (pop_down_menu): New function.
8234 (popup_get_selection, popup_widget_loop): Unwind protect to
8235 pop_down_menu.
8236 (popup_widget_loop): Add argument widget.
8237 (create_and_show_popup_menu, create_and_show_dialog): Pass new
8238 argument widget to popup_widget_loop.
8239
8240 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
8241
8242 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
8243
8244 2004-11-09 Kim F. Storm <storm@cua.dk>
8245
8246 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
8247 Fix various comments referring to XEvents instead of input events.
8248 (x_queue_event): Fix format strings.
8249 (x_stop_queuing_selection_requests): Likewise.
8250
8251 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
8252 (pint2hrstr): Add extra braces to silence compiler.
8253
8254 * print.c (print_object): Fix format string.
8255
8256 * lread.c (read1): Fix next_char matching.
8257
8258 * lisp.h (Fdelete): Add EXFUN.
8259 (replace_range_2): Add prototype.
8260
8261 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
8262
8263 * intervals.h (NULL_INTERVAL_P): Add separate version when
8264 ENABLE_CHECKING is not defined to silence compiler.
8265 (compare_string_intervals): Add prototype.
8266
8267 * fringe.c (destroy_fringe_bitmap): Fix return type.
8268 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
8269
8270 * emacs.c (Fdump_emacs): Fix format string.
8271
8272 * doc.c: Include <ctype.h>.
8273 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
8274
8275 * data.c (store_symval_forwarding): Remove unused variables.
8276
8277 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
8278
8279 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8280
8281 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
8282 to ${OLDXMENU}.
8283
8284 2004-11-09 Kim F. Storm <storm@cua.dk>
8285
8286 * process.c (Fmake_network_process): Remove kludge for interrupted
8287 connects on BSD. If connect is interrupted, just close socket and
8288 start over rather than sleeping and retry with same socket.
8289
8290 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8291
8292 * .cvsignore: Add buildobj.lst.
8293
8294 * doc.c: New variable Vbuild_files.
8295 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
8296 file names from buildobj.lst. Only attach docstrings from files
8297 that are in Vbuild_files.
8298 (syms_of_doc): Defvar Vbuild_files.
8299
8300 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
8301 and w32*.o.
8302 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
8303 (mostlyclean): Rm buildobj.lst
8304
8305 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
8306 is linked.
8307
8308 2004-11-09 Kim F. Storm <storm@cua.dk>
8309
8310 * fringe.c (update_window_fringes): Update fringe bitmaps if
8311 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
8312 also update previous row to get rid of misc. artifacts.
8313
8314 2004-11-08 Kim F. Storm <storm@cua.dk>
8315
8316 * xdisp.c (fast_find_position): Fix start pos if header line present.
8317 (note_mouse_highlight): Clear mouse face if we move out of text area.
8318
8319 2004-11-08 Eli Zaretskii <eliz@gnu.org>
8320
8321 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
8322 Don't include <sys/time.h> explicitly.
8323 Include <stdio.h> unconditionally, not just on MacOS.
8324
8325 2004-11-08 Kenichi Handa <handa@m17n.org>
8326
8327 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
8328 don't pay attention to '\' before '*'.
8329 (fontset_pattern_regexp): Change the meaning of the second arg.
8330 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
8331 (check_fontset_name): Try NAME as literal at first, and if it
8332 failes, try NAME as pattern.
8333
8334 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8335
8336 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
8337
8338 2004-11-07 Andreas Schwab <schwab@suse.de>
8339
8340 * lisp.h (Fmsdos_downcase_filename): Declare.
8341 * dired.c (Fmsdos_downcase_filename): Don't declare here.
8342 * fileio.c: Likewise.
8343
8344 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8345
8346 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
8347 comparisons with integers instead of Lisp_Object address.
8348 (Fmsdos_set_keyboard): Declare argument allkeys.
8349
8350 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
8351
8352 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
8353 int/Lisp_Object mixup.
8354
8355 * fileio.c: Ditto.
8356
8357 2004-11-06 Steven Tamm <steventamm@mac.com>
8358
8359 * editfns.c: Need to include sys/time.h before resource.h on darwin.
8360
8361 2004-11-06 Richard M. Stallman <rms@gnu.org>
8362
8363 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
8364
8365 * xfaces.c (merge_named_face): GCPRO the face_name in the
8366 named_merge_point struct that we make.
8367 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
8368
8369 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
8370 before deciding whether to inactivate mark.
8371
8372 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
8373
8374 * config.in: Regenerate (add HAVE_GETRUSAGE).
8375 * editfns.c (Fget_internal_run_time): New function.
8376 (syms_of_data): Defsubr it.
8377 * fns.c (sxhash): As far as possible, merge calculation of
8378 hash code for symbols and strings.
8379
8380 2004-11-06 Eli Zaretskii <eliz@gnu.org>
8381
8382 * frame.c (syms_of_frame): Fix the example in the doc string.
8383
8384 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8385
8386 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
8387
8388 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
8389 (create_and_show_dialog): Revert change from 2004-10-31.
8390
8391 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
8392
8393 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
8394
8395 2004-11-05 Kim F. Storm <storm@cua.dk>
8396
8397 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
8398
8399 * fileio.c (Ffile_modes): Doc fix.
8400 (auto_save_1): Check for Ffile_modes nil value.
8401
8402 2004-11-05 Kim F. Storm <storm@cua.dk>
8403
8404 * xselect.c (struct selection_event_queue, selection_queue)
8405 (x_queue_selection_requests, x_queue_event)
8406 (x_start_queuing_selection_requests)
8407 (x_stop_queuing_selection_requests): Add new queue for selection
8408 input events to replace previous XEvent queue in xterm.c.
8409 (queue_selection_requests_unwind): Adapt to new queue.
8410 (x_reply_selection_request): Adapt to new queue.
8411 Unexpect wait_object in case of x errors (memory leak).
8412 (x_handle_selection_request, x_handle_selection_clear): Make static.
8413 (x_handle_selection_event): New function. May queue selection events.
8414 (wait_for_property_change_unwind): Use save_value instead of cons.
8415 Clear property_change_reply_object.
8416 (wait_for_property_change): Abort if already waiting.
8417 Use save_value instead of cons for unwind data.
8418 (x_handle_property_notify): Skip events already arrived, but don't
8419 free them, as "arrived" field is checked by wait_for_property_change,
8420 and it will be freed by unwind or explicit unexpect_property_change.
8421 (x_get_foreign_selection): Add to new queue.
8422 (receive_incremental_selection): Don't unexpect wait_object when done
8423 as it has already been freed by previous wait_for_property_change.
8424
8425 * xterm.h (x_start_queuing_selection_requests)
8426 (x_stop_queuing_selection_requests, x_handle_selection_request)
8427 (x_handle_selection_clear): Remove prototypes.
8428 (x_handle_selection_event): Add prototype.
8429
8430 * xterm.c (handle_one_xevent): Don't queue X selection events
8431 here, it may be too late if we start queuing after we have already
8432 stored some selection events into the kbd buffer.
8433 (struct selection_event_queue, queue, x_queue_selection_requests)
8434 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
8435 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
8436 (x_catch_errors_unwind): Block input around final XSync.
8437
8438 * keyboard.h (kbd_buffer_unget_event): Add prototype.
8439
8440 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
8441 (kbd_buffer_unget_event): New function.
8442 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
8443 and use x_handle_selection_event.
8444 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
8445
8446 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8447
8448 * xselect.c (TRACE3): New debug macro.
8449 (x_reply_selection_request): Use it.
8450 (receive_incremental_selection): In call to TRACE0, the name of
8451 a symbol is in xname.
8452
8453 2004-11-05 Kim F. Storm <storm@cua.dk>
8454
8455 * fontset.c (fontset_pattern_regexp): Use unsigned char.
8456
8457 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8458
8459 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
8460
8461 * gtkutil.h (use_old_gtk_file_dialog): Declare.
8462
8463 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
8464 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
8465 * xfns.c (syms_of_xfns): ... to here.
8466
8467 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
8468 it doesn't start with /.
8469
8470 2004-11-04 Kenichi Handa <handa@m17n.org>
8471
8472 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
8473 treat it as a literal character.
8474
8475 2004-11-03 Kim F. Storm <storm@cua.dk>
8476
8477 * .gdbinit (ppt): New function.
8478
8479 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8480
8481 * xterm.c (x_window_to_scroll_bar): Only call
8482 xg_get_scroll_id_for_window if toolkit scroll bars are used.
8483
8484 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
8485 of save.
8486
8487 2004-11-02 Andreas Schwab <schwab@suse.de>
8488
8489 * window.c (Fscroll_right): Fix last change.
8490
8491 2004-11-02 Kim F. Storm <storm@cua.dk>
8492
8493 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
8494
8495 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8496
8497 * callproc.c (Fcall_process): Block input around vfork.
8498
8499 2004-11-02 Kim F. Storm <storm@cua.dk>
8500
8501 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
8502 (syms_of_eval): Defsubr it.
8503
8504 2004-11-02 Richard M. Stallman <rms@gnu.org>
8505
8506 * insdel.c (replace_range_2): New function.
8507
8508 * casefiddle.c (casify_region): Handle changes in byte-length
8509 using replace_range_2.
8510
8511 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
8512
8513 * xdisp.c (back_to_previous_visible_line_start):
8514 Subtract 1 from pos when checking previous newline for invisibility.
8515
8516 * window.c (window_scroll_pixel_based): Update preserve_y
8517 for header line if any.
8518 (Fscroll_left, Fscroll_right): Don't call interactive_p;
8519 use a new second argument instead.
8520
8521 * eval.c (Fcall_interactive_p): New function.
8522 (interactive_p): Don't test INTERACTIVE here.
8523 (Finteractive_p): Doc fix.
8524
8525 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
8526
8527 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
8528
8529 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
8530 comparing font names.
8531
8532 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8533
8534 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
8535 Fx_file_dialog if only directories should be read.
8536
8537 * lisp.h: Fx_file_dialog takes 5 parameters.
8538
8539 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
8540 Add parameter only_dir_p.
8541 In Motif version, don't put DEFAULT_FILENAME in filter part of the
8542 dialog, just text field part. Do not add DEFAULT_FILENAME
8543 to list of files if it isn't there.
8544 In GTK version, pass only_dir_p parameter to xg_get_file_name.
8545
8546 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
8547 Check only_dir_p instead of comparing prompt to "Dired". When using
8548 a save dialog, add option kNavDontConfirmReplacement, change title
8549 to "Enter name", change text for save button to "Ok".
8550
8551 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
8552 Check only_dir_p instead of comparing prompt to "Dired".
8553
8554 * gtkutil.c (xg_get_file_with_chooser)
8555 (xg_get_file_with_selection): New functions, only defined ifdef
8556 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
8557 respectively.
8558 (xg_get_file_name): Add parameter only_dir_p.
8559 Call xg_get_file_with_chooser or xg_get_file_with_selection
8560 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
8561 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
8562
8563 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
8564
8565 * config.in: Rebuild (added HAVE_GTK_FILE_*).
8566
8567 2004-11-01 Kim F. Storm <storm@cua.dk>
8568
8569 * process.c (connect_wait_mask, num_pending_connects):
8570 Only declare and use them if NON_BLOCKING_CONNECT is defined.
8571 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
8572 (IF_NON_BLOCKING_CONNECT): New helper macro.
8573 (wait_reading_process_output): Only declare and use local vars
8574 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
8575
8576 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
8577
8578 * w32term.c (x_scroll_run): Delete region objects after use.
8579
8580 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8581
8582 * xmenu.c: Add prototypes for forward function declarations.
8583 (popup_get_selection): Remove parameter do_timers, remove call to
8584 timer_check.
8585 (create_and_show_popup_menu, create_and_show_dialog):
8586 Remove parameter do_timers from call to popup_get_selection.
8587
8588 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
8589 tool_bar_items and assign the result to f->tool_bar_items if
8590 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
8591 tool_bar_items to assignment of result.
8592
8593 * atimer.c (alarm_signal_handler): Do not call set_alarm if
8594 pending_atmers is non-zero.
8595
8596 2004-10-31 Kim F. Storm <storm@cua.dk>
8597
8598 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
8599
8600 2004-10-28 Will <will@glozer.net>
8601
8602 * macterm.c: Allow user to assign key modifiers to the Mac Option
8603 key via a 'mac-option-modifier' variable.
8604
8605 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8606
8607 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
8608 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
8609 (x_handle_selection_request, x_handle_selection_clear)
8610 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
8611
8612 2004-10-28 Richard M. Stallman <rms@gnu.org>
8613
8614 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
8615
8616 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
8617
8618 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
8619
8620 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
8621 comment-starter over a 1-char one.
8622
8623 2004-10-27 Richard M. Stallman <rms@gnu.org>
8624
8625 * xdisp.c (get_next_display_element): In mode lines,
8626 treat newline and tab like other control characters.
8627
8628 * editfns.c (Fmessage): Doc fix.
8629
8630 * indent.c (vmotion): When moving up, check the newline before.
8631 Make prevline an int, not a Lisp_Object.
8632
8633 2004-10-27 Kim F. Storm <storm@cua.dk>
8634
8635 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
8636 Only allocate info and discarded tables once.
8637
8638 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
8639 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
8640 (SAFE_FREE): Test it to determine if we need to unwind to free.
8641 Remove size arg. All users changed.
8642 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
8643
8644 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8645
8646 * gtkutil.c: Put empty line between comment and function body.
8647 (xg_destroy_widgets): Rename from remove_from_container.
8648 Just destroy all widgets in list. Argument wcont removed.
8649 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
8650 instead of remove_from_container.
8651 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
8652 (free_frame_tool_bar): Add comment.
8653
8654 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
8655 is not NULL before strcmp.
8656
8657 2004-10-26 Kim F. Storm <storm@cua.dk>
8658
8659 * callint.c (Fcall_interactively): Add 'U' code to get the
8660 up-event discarded by a previous 'k' or 'K' argument.
8661
8662 2004-10-26 David Kastrup <dak@gnu.org>
8663
8664 * buffer.c (syms_of_buffer): Fix a few typos.
8665
8666 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8667
8668 * xsmfns.c: Put empty line between comment and function body.
8669 Use two spaces before comment end.
8670
8671 2004-10-25 Kenichi Handa <handa@m17n.org>
8672
8673 * fontset.c (fontset_pattern_regexp): Optimize for the case that
8674 PATTERN is full XLFD.
8675
8676 2004-10-24 Kenichi Handa <handa@m17n.org>
8677
8678 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
8679
8680 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
8681 (regex_compile): Return REG_ERANGEX if appropriate.
8682
8683 2004-10-22 Kenichi Handa <handa@m17n.org>
8684
8685 * editfns.c (Ftranslate_region_internal): New function.
8686 (syms_of_editfns): Defsubr it.
8687
8688 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8689
8690 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
8691
8692 2004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
8693
8694 * xterm.h (x_output): New member `xic_base_fontname'.
8695 (FRAME_XIC_BASE_FONTNAME): New macro.
8696 (xic_free_xfontset): Declare.
8697
8698 * xfns.c (xic_create_xfontset): Share fontsets between frames
8699 based on base_fontname.
8700 (xic_free_xfontset): New function.
8701 (free_frame_xic): Use it.
8702 (xic_set_xfontset): Ditto.
8703
8704 * xterm.c (xim_destroy_callback): Ditto.
8705
8706
8707 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
8708
8709 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
8710
8711 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8712
8713 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
8714 XSync.
8715
8716 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
8717 New variables and constant.
8718 (main): Calculate heap_bss_diff. If we are dumping and the
8719 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
8720 and exec ourself again.
8721 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
8722 print a warning.
8723
8724 * lastfile.c: Make my_endbss and my_endbss_static available on all
8725 platforms.
8726
8727 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
8728 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
8729
8730 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
8731
8732 * data.c (Flocal_variable_if_set_p): Doc fix.
8733
8734 2004-10-19 Jason Rumney <jasonr@gnu.org>
8735
8736 * w32.c (init_environment): Set emacs_dir correctly when running
8737 emacs from the build directory.
8738
8739 2004-10-19 Richard M. Stallman <rms@gnu.org>
8740
8741 * editfns.c (Fdelete_and_extract_region):
8742 If region is empty, return null string.
8743
8744 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8745
8746 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
8747 and canon_width.
8748 (xg_frame_cleared): Remove.
8749
8750 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
8751 (xg_find_top_left_in_fixed): Remove.
8752 (xg_create_scroll_bar): Put an event box widget between
8753 the scroll bar widget and the edit widget.
8754 (xg_show_scroll_bar): Show the parent widget (the event box).
8755 (xg_remove_scroll_bar): Destroy parent (the event box) also.
8756 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
8757 Move the parent (the event box) widget inside the fixed widget.
8758 Move window clear to xterm.c.
8759
8760 * gtkutil.h (xg_frame_cleared): Remove.
8761
8762 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
8763 (x_scroll_bar_create, XTset_vertical_scroll_bar):
8764 Remove arguments left and width to xg_update_scrollbar_pos.
8765 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
8766
8767 2004-10-19 Kenichi Handa <handa@m17n.org>
8768
8769 * xdisp.c (display_mode_element): Fix display of wide chars.
8770
8771 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8772
8773 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
8774 gdk_window_clear and move gdk_window_process_all_updates after
8775 clear so events are sent to the X server in correct order.
8776
8777 2004-10-18 Kenichi Handa <handa@m17n.org>
8778
8779 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
8780 comparing font names.
8781 (fs_query_fontset): Use fast_string_match for comparing fontset names.
8782 (list_fontsets): Likewise.
8783
8784 * search.c (fast_string_match_ignore_case): New function.
8785
8786 * lisp.h (fast_string_match_ignore_case): Extern it.
8787
8788 2004-10-17 Kim F. Storm <storm@cua.dk>
8789
8790 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
8791 than bitmap if there is not left fringe.
8792 (get_overlay_arrow_glyph_row): Also used on windows system.
8793 (display_line): Display overlay string if no left fringe.
8794
8795 2004-10-16 Jason Rumney <jasonr@gnu.org>
8796
8797 * w32fns.c (w32_font_match): Encode font name being matched.
8798
8799 2004-10-16 Richard M. Stallman <rms@gnu.org>
8800
8801 * window.c (Fspecial_display_p): Doc fix.
8802
8803 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
8804
8805 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
8806 Don't ignore menus, because where-is-internal already does it for us.
8807
8808 2004-10-15 Kim F. Storm <storm@cua.dk>
8809
8810 * xdisp.c (redisplay_window): Only update fringes and vertical
8811 border on window frames.
8812
8813 2004-10-14 Andreas Schwab <schwab@suse.de>
8814
8815 * m/ia64.h (DATA_SEG_BITS): Don't define.
8816
8817 2004-10-14 Kim F. Storm <storm@cua.dk>
8818
8819 * xterm.h: Include Xutil.h after keysym.h to work around bug
8820 in some X versions.
8821
8822 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
8823
8824 * fns.c (map_char_table): Add missing gcpros.
8825
8826 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
8827
8828 * keymap.c (get_keymap): An autoload form is not a keymap.
8829
8830 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
8831
8832 2004-10-13 Kim F. Storm <storm@cua.dk>
8833
8834 * callproc.c (Fcall_process): Simplify handling of display arg.
8835 Resume `display_on_the_fly' once a coding system is determined.
8836
8837 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
8838
8839 2004-10-12 Kim F. Storm <storm@cua.dk>
8840
8841 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
8842 caller, such as call-process, is not going to poll for input.
8843 (calc_line_height_property): Handle case where it->object is nil.
8844
8845 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
8846
8847 2004-10-12 Kenichi Handa <handa@m17n.org>
8848
8849 * xdisp.c (get_next_display_element):
8850 If unibyte_display_via_language_environment is zero, display 8-bit
8851 chars in octal in unibyte buffer.
8852
8853 2004-10-12 Kim F. Storm <storm@cua.dk>
8854
8855 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
8856 are no ordinary bindings.
8857
8858 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8859
8860 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
8861
8862 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8863
8864 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
8865 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
8866 (make_mac_frame): Add BLOCK_INPUT around the making of a
8867 terminal frame.
8868 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
8869 * macgui.h (mktime): Use emacs_mktime.
8870 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
8871 Make a cancel file-open dialog be like C-g.
8872 * mac.c (mktime): Use emacs_mktime.
8873 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
8874 (Fmac_paste_function): Add better error handling for carbon cut/paste.
8875
8876 2004-10-10 Kim F. Storm <storm@cua.dk>
8877
8878 * keyboard.c (timer_resume_idle): New function to resume idle
8879 timer without resetting timers on the idle list.
8880 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
8881 (timer_start_idle, timer_stop_idle): Declare static.
8882 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
8883
8884 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
8885
8886 2004-10-08 Steven Tamm <steventamm@mac.com>
8887
8888 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
8889 * macterm.c (mac_check_for_quit_char): Remove warning for using
8890 NULL where 0 should be used.
8891 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
8892 objc/malloc.h
8893 * mac.c: Include time.h for Tiger compatibility.
8894
8895 2004-10-07 Kim F. Storm <storm@cua.dk>
8896
8897 * xdisp.c (redisplay_window): Fix flicker on vertical line between
8898 windows. Update vertical line after drawing window fringes, but
8899 only if actually drawing any bitmaps--or there is no fringe.
8900
8901 * xterm.c (x_update_window_end): Likewise.
8902 * macterm.c (x_update_window_end): Likewise.
8903 * w32term.c (x_update_window_end): Likewise.
8904
8905 * fringe.c (draw_window_fringes): Return value now indicates if
8906 any fringe bitmaps were redrawn (or there are no fringes).
8907
8908 * dispextern.h (draw_window_fringes): Update prototype.
8909
8910 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8911
8912 * macfns.c (mac_get_window_bounds): Add extern.
8913 (x_real_positions): Use mac_get_window_bounds.
8914
8915 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
8916 xmenu.c (YAILOM).
8917
8918 * macterm.c [!MAC_OSX]: Include Windows.h.
8919 (front_emacs_window): Rename from mac_front_window. All uses
8920 changed. Return the frontmost non-tooltip emacs window.
8921 (mac_get_window_bounds): New function.
8922 (x_calc_absolute_position): Use the difference of width and height
8923 between the inner and outer window.
8924 (x_set_offset): Specify window position by the coordinae of the
8925 outer window. Adjust the position if the title bar is completely
8926 outside the screen.
8927 (app_is_suspended, app_sleep_time): Remove unused variables.
8928 (do_app_resume, do_app_suspend): Remove their contents because
8929 window-activate/deactivate events will do the job.
8930 (do_zoom_window): Remove unused variables. Make compliant to the
8931 standard way of zooming. Set f->left_pos and f->top_pos.
8932 (XTread_socket): Don't use argument `expected'. Don't use
8933 FrontWindow to determine the clicked window. Exclude unprocessed
8934 mouseUp cases in the early stage. Add parentheses to fix operator
8935 precedence.
8936 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
8937
8938 2004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
8939
8940 * config.in: Regenerate.
8941
8942 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
8943 HAVE_EXECSHIELD.
8944
8945 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8946
8947 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
8948 a row if Alt or Meta has been found for that row. Also stop scanning
8949 for Keysyms for that row.
8950
8951 2004-10-04 Kim F. Storm <storm@cua.dk>
8952
8953 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
8954 to list. Include overlay arrow bitmap in return value.
8955
8956 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
8957 bars with fractional column width. If scroll bar separates two
8958 windows, move it towards the window it belongs to. Only update
8959 the padding area below the scroll bar widget when necessary,
8960 i.e. when scroll bar widget is created, moved, or resized.
8961
8962 * xdisp.c (define_frame_cursor1): Do not change frame cursor
8963 while tracking/dragging mouse.
8964 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
8965
8966 * window.c (coordinates_in_window): Relax check for cursor
8967 on vertial border between mode lines.
8968 (Fset_window_fringes): Do not allow negative widths.
8969 (Fset_window_scroll_bars): Likewise.
8970
8971 * .gdbinit (pp): Shorthand for p ARG + pr.
8972 (ff): New command: flush frame updates (X only).
8973
8974 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
8975
8976 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
8977
8978 2004-09-30 Kenichi Handa <handa@m17n.org>
8979
8980 * process.c (send_process): Free composition data.
8981
8982 * fileio.c (Finsert_file_contents): Free composition data.
8983
8984 * coding.c (code_convert_region): Don't skip ASCIIs if there are
8985 compositions to encode.
8986 (encode_coding_string): Likewise. Free composition data.
8987
8988 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
8989
8990 * coding.c (code_convert_region): Free composition data.
8991
8992 2004-09-29 Kim F. Storm <storm@cua.dk>
8993
8994 * fringe.c: Remove limit on number of bitmaps.
8995 (fringe_bitmaps, fringe_faces): Change to pointers.
8996 (max_fringe_bitmaps): New var.
8997 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
8998 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
8999
9000 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
9001 (struct glyph_row): Reorder fringe_bitmap related fields.
9002 (struct it): Likewise.
9003
9004 * w32term.c (fringe_bmp): Change to pointer.
9005 (max_fringe_bmp): New var.
9006 (w32_define_fringe_bitmap): Expand fringe_bmp.
9007 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
9008 (w32_destroy_fringe_bitmap): Likewise.
9009
9010 2004-09-29 Kim F. Storm <storm@cua.dk>
9011
9012 * fringe.c: Simplify last change.
9013 (lookup_fringe_bitmap): New function.
9014 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
9015 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
9016 Keep standard bitmaps in Vfringe_bitmaps.
9017 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
9018 (Fset_fringe_bitmap_face): Likewise.
9019
9020 * dispextern.h (lookup_fringe_bitmap): Add prototype.
9021 (valid_fringe_bitmap_p): Remove prototype.
9022
9023 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
9024
9025 2004-09-29 Kim F. Storm <storm@cua.dk>
9026
9027 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
9028 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
9029
9030 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
9031
9032 * fringe.c (Vfringe_bitmaps): New variable.
9033 (syms_of_fringe): DEFVAR_LISP it.
9034 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
9035 Change arg to Lisp_Object and fail if not an integer.
9036 (get_fringe_bitmap_name, resolve_fringe_bitmap)
9037 (destroy_fringe_bitmap): New functions.
9038 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
9039 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
9040 clear its fringe property.
9041 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
9042 Fdestroy_fringe_bitmap.
9043 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
9044 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
9045 and set fringe property. Signal error if no free slots.
9046 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
9047 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
9048
9049 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
9050 symbols with a fringe property.
9051
9052 2004-09-27 Kim F. Storm <storm@cua.dk>
9053
9054 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
9055 Doc fix. Format may now be a symbol or alist, not a cons.
9056
9057 * fringe.c (update_window_fringes): Handle new formats of
9058 indicate-buffer-boundaries (symbol or alist). No longer
9059 allow a simple cons.
9060 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
9061
9062 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9063
9064 * config.in: Rebuild.
9065
9066 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9067
9068 * config.in: Rebuild.
9069
9070 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
9071
9072 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
9073
9074 * xterm.c (x_term_init): Work around a bug in some X servers.
9075
9076 2004-09-18 Richard M. Stallman <rms@gnu.org>
9077
9078 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
9079
9080 * xdisp.c (try_window_reusing_current_matrix):
9081 Handle the case where we reach the old displayed text,
9082 out of sync with the old line boundary.
9083
9084 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
9085
9086 * fileio.c (Finsert_file_contents): Fix case of replacement in a
9087 narrowed buffer.
9088
9089 2004-09-14 Kim F. Storm <storm@cua.dk>
9090
9091 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
9092
9093 * xfaces.c (Qface_no_inherit): New var.
9094 (syms_of_xfaces): Intern and staticpro it.
9095 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
9096 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
9097 Don't increment face_change_count when face has non-nil
9098 face-no-inherit property.
9099
9100 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
9101
9102 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
9103 (Fbyte_code): Remove dead code after `wrong_type_argument'.
9104
9105 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9106 before doing the mark_stack_check_gcpros since they're not on the stack.
9107
9108 2004-09-12 Kim F. Storm <storm@cua.dk>
9109
9110 * editfns.c (Fformat): Handle format strings with multiple text
9111 properties. Reverse text property list from the format string,
9112 so the positions are in increasing order.
9113
9114 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9115
9116 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
9117 x_uncatch_errors so that possible protocol errors are delivered.
9118
9119 2004-09-10 Eli Zaretskii <eliz@gnu.org>
9120
9121 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
9122 blockinput.h.
9123 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
9124 charset.h, and coding.h
9125 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
9126 (term.o): Depend on window.h and keymap.h.
9127 (abbrev.o): Depend on syntax.h.
9128 (callint.o): Depend on keymap.h.
9129 (casefiddle.o): Depend on charset.h and keymap.h.
9130 (category.o): Depend on keymap.h.
9131 (coding.o): Depend on dispextern.h.
9132 (cmds.o): Depend on keyboard.h and keymap.h.
9133 (dispnew.o): Depend on indent.h and intervals.h.
9134 (doc.o): Depend on keymap.h.
9135 (editfns.o): Depend on frame.h.
9136 (emacs.o): Depend on dispextern.h.
9137 (fileio.o): Don't depend on ccl.h.
9138 (filelock.o): Depend on charset.h and coding.h.
9139 (frame.o): Depend on w32term.h and macterm.h.
9140 (insdel.o): Depend on region-cache.h.
9141 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
9142 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
9143 (search.o): Depend on $(INTERVALS_SRC).
9144 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
9145 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
9146 xterm.h, w32term.h, and macterm.h.
9147 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
9148 w32term.h, and macterm.h.
9149 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
9150 region-cache.h, xterm.h, w32term.h, and macterm.h.
9151 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
9152 (data.o): Depend on frame.h.
9153 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
9154 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
9155 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
9156 (intervals.o): Depend on keymap.h.
9157
9158 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
9159 Add debugging print-out to termscript.
9160
9161 2004-09-09 Richard M. Stallman <rms@gnu.org>
9162
9163 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
9164
9165 2004-09-08 Richard M. Stallman <rms@gnu.org>
9166
9167 * window.c (Fset_window_buffer): Doc fix.
9168
9169 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
9170
9171 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
9172
9173 * minibuf.c (history_delete_duplicates): New variable.
9174 (read_minibuf): Use it.
9175 (syms_of_minibuf): Create the corresponding lisp variable.
9176
9177 2004-09-08 Kim F. Storm <storm@cua.dk>
9178
9179 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
9180 overlay just before point.
9181
9182 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
9183
9184 * buffer.h (struct buffer): Add auto_save_file_format field.
9185 * buffer.c (reset_buffer, init_buffer_once):
9186 Handle auto_save_file_format field.
9187 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
9188 `buffer-auto-save-file-format'.
9189 * fileio.c: Delete declaration for removed Vauto_save_file_format.
9190 (build_annotations): Adapt to replacement of
9191 `auto-save-file-format' with the new buffer-local variable
9192 `buffer-auto-save-file-format'.
9193 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
9194
9195 2004-09-07 Jason Rumney <jasonr@gnu.org>
9196
9197 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
9198
9199 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
9200 Handle Unicode menu titles.
9201
9202 2004-09-07 Kim F. Storm <storm@cua.dk>
9203
9204 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
9205 property from text property or overlay strings at point.
9206
9207 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9208
9209 * xmenu.c (update_submenu_strings): YAILOM.
9210 (set_frame_menubar): Make sure last_i is initialized.
9211
9212 2004-09-03 Jason Rumney <jasonr@gnu.org>
9213
9214 * w32menu.c (_widget_value): Add lname and lkey.
9215 (digest_single_submenu): Set lname and lkey in widget_value
9216 instead of name and key.
9217 (update_submenu_strings): New function.
9218 (set_frame_menubar): Remove call to inhibit_garbage_collection,
9219 call update_submenu_strings.
9220
9221 * w32menu.c (globals_of_w32menu): Check for Unicode API.
9222 (digest_single_submenu, w32_menu_show): Encode menu strings as
9223 UTF-8 if Unicode API is available.
9224 (utf8to16): New function.
9225 (add_menu_item): Use it when calling Unicode API.
9226
9227 2004-09-03 Kim F. Storm <storm@cua.dk>
9228
9229 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
9230 in overlay or text-property strings; set cursor on corresponding
9231 glyph rather than at end of the string.
9232
9233 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9234
9235 * macfns.c (x_real_positions): Save the current window port and
9236 set a new one before obtaining the global coordinate.
9237 Use FRAME_MAC_WINDOW.
9238 (x_set_name, x_set_title): Encode title to UTF8.
9239 Use SetWindowTitleWithCFString.
9240 (Fx_server_version): Get correct OS version.
9241
9242 * macmenu.c (add_menu_item): Remove unused variable `i'.
9243 Don't let separator items destroy refence constants of other menu items.
9244
9245 * macterm.c (x_update_end): Move SetPortWindowPort to inside
9246 BLOCK_INPUT.
9247 (x_set_offset): Use FRAME_MAC_WINDOW.
9248
9249 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
9250 nontext_cursor if it is on a scroll bar.
9251
9252 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
9253 Carbon support.
9254 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
9255 Use LIBS_CARBON.
9256
9257 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9258
9259 * xfns.c (x_set_name_internal): New function. Check if we shall call
9260 xfree before ENCODE_UTF_8.
9261 (x_set_name, x_set_title): Call x_set_name_internal.
9262
9263 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
9264
9265 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
9266 reload it.
9267
9268 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9269
9270 * macmenu.c (_widget_value): Add lname and lkey.
9271 (single_submenu): Set lname and lkey in widget_value
9272 instead of name and key.
9273 (update_submenu_strings): New function.
9274 (set_frame_menubar): Remove call to inhibit_garbage_collection,
9275 call update_submenu_strings.
9276
9277 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
9278 instead of name and key.
9279 (update_submenu_strings): New function.
9280 (set_frame_menubar): Remove call to inhibit_garbage_collection,
9281 call update_submenu_strings.
9282
9283 * gtkutil.h (_widget_value): Added lname and lkey.
9284
9285 2004-08-30 Steven Tamm <steventamm@mac.com>
9286
9287 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
9288 by using different names for inner loop variables.
9289
9290 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9291
9292 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
9293 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
9294
9295 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
9296 tool bar items is 0.
9297
9298 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9299
9300 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
9301 strings in menu items.
9302 (single_submenu): Use ENCODE_MENU_STRING
9303 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
9304 button release isn't passed to event loop
9305 (add_menu_item): Use SetMenuItemWithCFString
9306
9307 2004-08-26 Steven Tamm <steventamm@mac.com>
9308
9309 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
9310 tool-bar/menu click.
9311 * macfns.c (Fx_file_dialog): Implement using NavServices.
9312
9313 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9314
9315 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
9316
9317 * xfns.c (x_window_to_frame, x_any_window_to_frame)
9318 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
9319 (x_top_window_to_frame): Return 0 if wdesc is None.
9320
9321 2004-08-22 Richard M. Stallman <rms@gnu.org>
9322
9323 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
9324 HAVE_TERMIOS]: If there's no char for this signal, drop through
9325 and use system calls.
9326
9327 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
9328
9329 2004-08-20 Kim F. Storm <storm@cua.dk>
9330
9331 * process.c (wait_reading_process_output): Rename from
9332 wait_reading_process_input. All uses changed.
9333 (wait_reading_process_output_1): Rename from
9334 wait_reading_process_input_1. All uses changed.
9335
9336 * dispnew.c (Fsleep_for): Remove obsolete code.
9337
9338 2004-08-20 Kenichi Handa <handa@m17n.org>
9339
9340 * syntax.c (skip_chars): Fix for unibyte case.
9341
9342 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
9343
9344 * syntax.c (char_quoted): Mixup byte/char pos.
9345 (back_comment): Fixup globals in all cases.
9346
9347 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9348
9349 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
9350 passing it to gtk_window_set_title.
9351
9352 2004-08-19 Kim F. Storm <storm@cua.dk>
9353
9354 * process.c (wait_reading_process_input): Clean up.
9355 Add wait_for_cell, wait_proc, and just_wait_proc args
9356 to avoid overloading `read_kbd' and `do_display' args.
9357 Change read_kbd arg to int. All callers changed.
9358
9359 * process.c (process_send_signal): Use CDISABLE.
9360
9361 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
9362
9363 2004-08-18 Kim F. Storm <storm@cua.dk>
9364
9365 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
9366 forward to wait_reading_process_input via DO_DISPLAY arg.
9367 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
9368 object, only process output from that process; also inhibit
9369 running timers if DO_DISPLAY==-2.
9370
9371 2004-08-17 Kim F. Storm <storm@cua.dk>
9372
9373 * process.c (process_send_signal): Fix last change--use
9374 _POSIX_VDISABLE instead of CVDISABLE when available.
9375
9376 2004-08-16 Richard M. Stallman <rms@gnu.org>
9377
9378 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
9379 Set VQUIT and VINTR chars to the standard ones if they are unset.
9380 [AIX]: Don't do that here. And don't force VINTR to standard
9381 when SIGNALS_VIA_CHARACTERS.
9382
9383 * process.c (process_send_signal)
9384 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
9385 Do nothing if the character is CVDISABLE.
9386
9387 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
9388
9389 * intervals.c (move_if_not_intangible):
9390 Force POSITION to be between BEGV and ZV.
9391
9392 2004-08-14 John Paul Wallington <jpw@gnu.org>
9393
9394 * buffer.c (Frestore_buffer_modified_p): Doc fix.
9395
9396 * fileio.c (Fread_file_name): Doc fix.
9397
9398 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
9399
9400 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
9401
9402 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
9403
9404 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
9405
9406 * keyboard.c: Declare Qdisabled_command_function instead of
9407 Qdisabled_command_hook.
9408 (Fcommand_execute): Use Qdisabled_command_function instead of
9409 Qdisabled_command_hook.
9410 (syms_of_keyboard): Ditto.
9411
9412 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
9413
9414 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
9415 (syms_of_keymap) <key-translation-map>: Doc fixes.
9416
9417 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
9418
9419 * window.c (window_list_1): YAILOM.
9420
9421 * fileio.c (make_temp_name): Handle multibyte prefixes.
9422
9423 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
9424
9425 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
9426 Doc fix.
9427
9428 2004-08-03 Kenichi Handa <handa@m17n.org>
9429
9430 * coding.c (decode_coding_string): Adjust coding->consumed, and
9431 etc. with shrinked_bytes.
9432
9433 2004-08-03 Kim F. Storm <storm@cua.dk>
9434
9435 * indent.c (compute_motion): Fix check for full width window
9436 in non-window case. Do not count left truncation glyph on
9437 window systems.
9438
9439 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
9440
9441 * data.c (Finteractive_form): Doc fix.
9442
9443 2004-08-02 Kim F. Storm <storm@cua.dk>
9444
9445 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
9446 properly accounting for continuation glyph on non-window systems.
9447 (Fcompute_motion): Use actual window width if WIDTH is nil, and
9448 actual window width/height if TOPOS is nil, properly accounting for
9449 continuation glyphs on non-window systems, and optional header lines.
9450 (vmotion): Let compute_motion calculate actual window width.
9451
9452 * window.c (window_scroll_line_based): Let compute_motion
9453 calculate actual window width.
9454
9455 2004-08-02 Kim F. Storm <storm@cua.dk>
9456
9457 * process.c (read_process_output): Use whole read buffer.
9458 Don't trigger adaptive read buffering on errors.
9459
9460 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
9461
9462 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
9463
9464 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
9465
9466 * callint.c (Fcall_interactively): Doc fix.
9467
9468 2004-07-30 Richard M. Stallman <rms@gnu.org>
9469
9470 * abbrev.c (Fexpand_abbrev): Undo previous change.
9471
9472 2004-07-30 Kim F. Storm <storm@cua.dk>
9473
9474 * editfns.c (Fformat): Allocate extra (dummy) element in info.
9475
9476 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
9477
9478 * eval.c (Fdefvar, Fdefconst): Doc fixes.
9479
9480 2004-07-27 Kim F. Storm <storm@cua.dk>
9481
9482 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
9483 we have ensured that the glyph fits on the current line (or returned
9484 MOVE_LINE_CONTINUED otherwise).
9485
9486 2004-07-26 Kim F. Storm <storm@cua.dk>
9487
9488 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
9489 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
9490 if target position is at end of display line but char is not a newline.
9491
9492 2004-07-25 Richard M. Stallman <rms@gnu.org>
9493
9494 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
9495 instead of ON_VERTICAL_BORDER, when on scroll bar.
9496 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
9497
9498 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
9499
9500 * window.c (Fcoordinates_in_window_p):
9501 Take account of FRAME_INTERNAL_BORDER_WIDTH.
9502
9503 * alloc.c (check_cons_list): New function (contents commented out).
9504
9505 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
9506
9507 * xfaces.c (Fcolor_supported_p): Doc fix.
9508
9509 * frame.c (Fselect_frame, Fset_frame_selected_window)
9510 (Fframe_visible_p, Fraise_frame): Doc fixes.
9511
9512 2004-07-24 Richard M. Stallman <rms@gnu.org>
9513
9514 * keyboard.h (not_single_kboard_state): Declare.
9515
9516 * fileio.c (Fwrite_region): Doc fix.
9517
9518 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
9519
9520 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
9521 only when a real abbrev is present.
9522
9523 * xfns.c (x_icon_verify): New function.
9524 (Fx_create_frame): Use it.
9525
9526 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
9527
9528 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
9529
9530 2004-07-21 Kim F. Storm <storm@cua.dk>
9531
9532 * window.h (struct glyph_matrix): New members nrows_scale_factor
9533 and ncols_scale_factor.
9534
9535 * window.c (make_window): Initialize nrows_scale_factor and
9536 ncols_scale_factor members.
9537
9538 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
9539 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
9540 (required_matrix_height): Apply nrows_scale_factor.
9541 (required_matrix_width): Apply ncols_scale_factor.
9542
9543 * xdisp.c (display_line): Increment nrows_scale_factor and set
9544 fonts_changed_p if past last allocated row.
9545 (append_glyph, append_composite_glyph, produce_image_glyph)
9546 (append_stretch_glyph): Increment ncols_scale_factor and set
9547 fonts_changed_p if current area is full.
9548
9549 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9550
9551 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
9552
9553 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
9554
9555 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
9556 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
9557 (Fset_window_start, Fscroll_up, Fscroll_down)
9558 (Fother_window_for_scrolling, Fscroll_other_window)
9559 (Fsave_window_excursion, Fset_window_vscroll)
9560 (syms_of_window) <window-size-fixed>: Doc fixes.
9561
9562 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9563
9564 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
9565 ENCODE_SYSTEM for filenames.
9566
9567 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9568
9569 * mac.c (sys_select): Block input around call to
9570 ReceiveNextEvent to prevent breakage. Correctly handle
9571 blocking on event queue only by calling ReceiveNextEvent
9572 instead of select (since GUI events aren't on an fd).
9573 (sys_read): Remove function
9574 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
9575
9576 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9577
9578 * mac.c (sys_select): Redo sys_select to use alarm-based
9579 polling instead of 1 sec timeouts (like solaris).
9580
9581 * macterm.c (x_make_frame_visible): Comment in polling on
9582 frame creation.
9583
9584 * keyboard.c: Undef SIGIO on Carbon
9585
9586 * atimer.c (alarm_signal_handler): Call alarm handlers after
9587 scheduling.
9588
9589 * eval.c (Feval): Remove quit_char test
9590
9591 * process.c (wait_reading_process_input): Remove clearing
9592 stdin for select call on process input.
9593
9594 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
9595
9596 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
9597 capitalization error in docstring.
9598
9599 2004-07-17 Juanma Barranquero <lektu@terra.es>
9600
9601 * keyboard.c (not_single_kboard_state): Do nothing unless
9602 MULTI_KBOARD is defined.
9603
9604 2004-07-17 Richard M. Stallman <rms@gnu.org>
9605
9606 * window.c (coordinates_in_window): Inside the window but outside
9607 its box to the L or R, return ON_VERTICAL_BORDER.
9608 (window_list_1): Rotate the list to start with WINDOW.
9609
9610 * print.c (print_preprocess): Test for print_depth at limit
9611 before entering in being_printed.
9612
9613 * keyboard.c (not_single_kboard_state): New function.
9614 (stuff_buffered_input): Now no-op only if no SIGTSTP.
9615
9616 * frame.c (Fdelete_frame): If we're in single_bboard_state on
9617 this kboard, and we delete its last frame, go to any_kboard_state.
9618
9619 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
9620
9621 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9622
9623 * w32fns.c (Fx_file_dialog): Encode strings in system coding
9624 system before passing them to OS functions for display.
9625
9626 2004-07-15 David Kastrup <dak@gnu.org>
9627
9628 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
9629 Apparently fixes an abort condition.
9630
9631 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
9632
9633 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
9634 instead of a cons.
9635
9636 2004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
9637
9638 * keyboard.c (echo_dash): Do nothing if there already is a dash
9639 at the end of the echo string.
9640
9641 2004-07-12 Kim F. Storm <storm@cua.dk>
9642
9643 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
9644 if GC_MARK_STACK.
9645
9646 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
9647
9648 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
9649
9650 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
9651 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
9652 (Freplace_buffer_in_windows, Fset_window_buffer)
9653 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
9654 (syms_of_window): Expand docstring of `display-buffer-function'.
9655
9656 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
9657
9658 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
9659 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
9660 that time values of the type (HIGH . LOW) are considered obsolete.
9661
9662 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
9663
9664 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
9665 docstring.
9666
9667 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
9668
9669 2004-07-06 John Paul Wallington <jpw@gnu.org>
9670
9671 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
9672
9673 * fns.c (Fclear_string): Signal an error if STRING is not a string.
9674
9675 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9676
9677 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
9678 instead of CGMainDisplayID (only in OSX 10.2 and later).
9679
9680 2004-07-04 John Paul Wallington <jpw@gnu.org>
9681
9682 * fileio.c (read_file_name_completion_ignore_case): New variable.
9683 (syms_of_fileio): Declare and initialise it.
9684 (Fread_file_name): Bind `completion-ignore-case' to respect it.
9685
9686 2004-07-03 Eli Zaretskii <eliz@gnu.org>
9687
9688 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
9689 for event.x and event.y.
9690
9691 2004-07-01 Kenichi Handa <handa@m17n.org>
9692
9693 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
9694 after getting a new string by pre-write-conversion.
9695
9696 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
9697
9698 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
9699 (x_calc_absolute_position): Remove unused var `child'.
9700
9701 * xfaces.c (x_supports_face_attributes_p)
9702 (Fdisplay_supports_face_attributes_p): YAILOM.
9703 (tty_supports_face_attributes_p): Remove unused var `i'.
9704
9705 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
9706 back_unibyte_ok.
9707
9708 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
9709
9710 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
9711
9712 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
9713
9714 2004-06-30 Andreas Schwab <schwab@suse.de>
9715
9716 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
9717 (Finit_image_library): Pass LIBRARIES through to
9718 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
9719 (lookup_image_type): Pass Qnil as second argument to
9720 Finit_image_library.
9721
9722 * lisp.h (Finit_image_library): Declare.
9723
9724 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9725
9726 * macterm.c (do_window_activate, do_window_deactivate): Remove.
9727 (XTread_socket): Send mouse button events to the toolbox
9728 dispatcher even when the mouse is grabbed. Don't process window
9729 activate events for non-Emacs windows. Replace function calls to
9730 do_window_activate and do_window_deactivate with their contents.
9731 Reset mouse grabbing status when a window is deactivated.
9732
9733 2004-06-29 Steven Tamm <steventamm@mac.com>
9734
9735 * macterm.c (mac_get_emulated_btn)
9736 (mac_event_to_emacs_modifiers): Fix emulated mouse button
9737 support to correctly mask out modifiers.
9738
9739 2004-06-29 David Kastrup <dak@gnu.org>
9740
9741 * search.c (Fset_match_data): Allow buffer before end of list
9742 which can happen if set-match-data is using a pre-consed list.
9743
9744 2004-06-28 Steven Tamm <steventamm@mac.com>
9745
9746 * macterm.c (XTread_socket): Correctly set the frame position
9747 after the window is moved.
9748
9749 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9750
9751 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
9752 gpix and gmask just before return to avoid memory leak.
9753 (xg_get_image_for_pixmap): Add workaround for monochrome displays
9754 so insensitive and activated icons look ok.
9755
9756 2004-06-27 Jason Rumney <jasonr@gnu.org>
9757
9758 * w32fns.c (file_dialog_callback): Disable edit control if set
9759 to directories only on CDN_INITDONE message.
9760 (Fx_file_dialog): Default to directories only when prompt starts
9761 with "Dired".
9762
9763 2004-06-25 Kim F. Storm <storm@cua.dk>
9764
9765 * alloc.c (allocate_misc): Update total_free_markers.
9766 (free_misc): New function.
9767 (safe_alloca_unwind, free_marker): Use it.
9768
9769 * lisp.h (free_misc): Add prototype.
9770
9771 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
9772
9773 2004-06-24 Richard M. Stallman <rms@gnu.org>
9774
9775 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
9776 (syms_of_emacs): Lisp variables deleted.
9777
9778 2004-06-23 David Kastrup <dak@gnu.org>
9779
9780 * search.c (Freplace_match): Adjust the match-data more thoroughly
9781 when replacing strings in the buffer.
9782 (Fmatch_data): When INTEGERS is non-nil and the last match was in
9783 a buffer, add the buffer as last element to the match data.
9784 (Fset_match_data): If an additional element of the match-data is a
9785 buffer, restore it to last_thing_searched.
9786 (save_search_regs): Save last_thing_searched as part of the match data.
9787 (restore_match_data): Restore it again.
9788
9789 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
9790
9791 * keymap.c (Ftext_char_description): Doc fix.
9792 * doc.c (Fsnarf_documentation): Doc fix.
9793
9794 2004-06-22 Kim F. Storm <storm@cua.dk>
9795
9796 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
9797
9798 * lisp.h (struct Lisp_Save_Value): New member dogc.
9799 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
9800 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
9801 (SAFE_FREE_LISP): New macro.
9802
9803 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
9804 (make_save_value): Init new dogc member.
9805 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
9806
9807 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
9808 SAFE_FREE_LISP macros.
9809
9810 2004-06-22 Kim F. Storm <storm@cua.dk>
9811
9812 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
9813 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
9814 in that memory area are unknown to GC. Add comments.
9815
9816 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
9817
9818 2004-06-21 Kim F. Storm <storm@cua.dk>
9819
9820 * lisp.h (MAX_ALLOCA): Define here.
9821 (safe_alloca_unwind): Add prototype.
9822 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
9823
9824 * alloc.c (safe_alloca_unwind): New function.
9825
9826 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
9827
9828 * charset.c (Fstring): Use SAFE_ALLOCA.
9829
9830 * coding.c (MAX_ALLOCA): Remove define.
9831
9832 * data.c (MAX_ALLOCA): Remove define.
9833 (Faset): Use SAFE_ALLOCA.
9834
9835 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
9836
9837 * fns.c (string_make_multibyte, string_to_multibyte)
9838 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
9839 (MAX_ALLOCA): Remove define.
9840 (Fbase64_encode_region, Fbase64_encode_string)
9841 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
9842 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
9843 memory leak if encoding fails.
9844
9845 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
9846
9847 2004-06-21 Eli Zaretskii <eliz@gnu.org>
9848
9849 * print.c (Fwith_output_to_temp_buffer): Doc fix.
9850
9851 2004-06-20 Richard M. Stallman <rms@gnu.org>
9852
9853 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
9854
9855 * search.c (match_limit): Cleaner err msg when no match data available.
9856
9857 * window.c (syms_of_window): Doc fix.
9858
9859 * keyboard.c (command_loop_1): Handle values `only' and `identity'
9860 for Vtransient_mark_mode.
9861
9862 * buffer.c (syms_of_buffer): Doc fix.
9863
9864 2004-06-21 David Kastrup <dak@gnu.org>
9865
9866 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
9867 and unbinding of `case-fold-search' according to
9868 `completion-ignore-case' around calls of string-match and
9869 predicates, respectively. Should give satisfactory performance
9870 in all relevant cases.
9871
9872 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9873
9874 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
9875 clip_x/y_origin.
9876
9877 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
9878
9879 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
9880
9881 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
9882 on Mac OSX.
9883
9884 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
9885
9886 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
9887
9888 2004-06-16 Kim F. Storm <storm@cua.dk>
9889
9890 * dispextern.h (Vimage_types): Remove extern.
9891
9892 2004-06-16 Miles Bader <miles@gnu.org>
9893
9894 * image.c (lookup_image_type): Initialize image type if necessary.
9895
9896 2004-06-15 Kim F. Storm <storm@cua.dk>
9897
9898 * xdisp.c (try_cursor_movement): Exclude header line from scroll
9899 margin at top of window.
9900 (try_window_reusing_current_matrix): Calculate proper cursor position
9901 after scrolling up with non-zero scroll margin, as the old cursor
9902 position corresponds to value of PT before executing this command.
9903 (try_window_id): Consider scroll margin at bottom of window too;
9904 otherwise we fail to scroll when hl-line-mode is enabled.
9905
9906 * syntax.c (skip_chars): Only recognize [:class:] when it has the
9907 proper format and class is a lower-case word.
9908
9909 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9910
9911 * gtkutil.c (xg_get_image_for_pixmap): New function.
9912 (xg_get_gdk_pixmap_and_mask): Remove.
9913 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
9914 xg_get_gdk_pixmap_and_mask.
9915
9916 * xterm.h (struct x_display_info): Typo in comment fixed.
9917
9918 2004-06-14 Juanma Barranquero <lektu@terra.es>
9919
9920 * dispextern.h (Vimage_types): Make it conditional on
9921 HAVE_WINDOW_SYSTEM.
9922
9923 * image.c (Vimage_types): Move from xdisp.c.
9924 (Vimage_type_cache): New variable.
9925 (define_image_type): New argument indicating whether an image
9926 library was loaded; cache loaded status and return t on success,
9927 nil otherwise.
9928 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
9929 (w32_delayed_load): New function to load an image library from a
9930 list of possible filenames.
9931 (init_xpm_functions, init_png_functions, init_jpeg_functions)
9932 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
9933 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
9934 (Finit_image_library): New function, extracted from `init_image'.
9935 Try to initialize an image library on demand and cache whether we
9936 were successful or not.
9937 (syms_of_image): Initialize `Vimage_types' and
9938 `Vimage_type_cache'. Add recognized image types to Vimage_types.
9939 Export `init-image-library'.
9940 (init_image): Remove initialization of all image types, except xbm
9941 and pbm.
9942
9943 * xdisp.c (Vimage_types): Delete (moved to image.c).
9944
9945 2004-06-14 Andreas Schwab <schwab@suse.de>
9946
9947 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
9948 Avoid calling specbind when completion-regexp-list is empty.
9949
9950 2004-06-13 Richard M. Stallman <rms@gnu.org>
9951
9952 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
9953 (re_wctype, re_iswctype, re_wctype_to_bit):
9954 Non-function definitions moved here from regex.c.
9955
9956 * regex.c (re_wctype, re_iswctype): Function defs longer static.
9957 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
9958 (re_wctype, re_iswctype, re_wctype_to_bit):
9959 Non-function definitions moved to regex.h.
9960
9961 * window.c (Fselect_window): Doc fix.
9962
9963 * syntax.c: Include regex.h.
9964 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
9965 If requested, make a list of classes, then check the scanned
9966 chars for membership in them.
9967 (in_classes): New function.
9968 Doc fix.
9969
9970 * keyboard.c (cmd_error): Don't call any_kboard_state
9971 if inside a recursive edit level.
9972
9973 2004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
9974
9975 * keyboard.c (command_loop): Call any_kboard_state before
9976 command_loop_2 when at top level.
9977
9978 2004-06-13 Andreas Schwab <schwab@suse.de>
9979
9980 * print.c (print_object): Always use %ld for printing EMACS_INT.
9981
9982 * keyboard.c (cancel_hourglass_unwind): Return a value.
9983 (modify_event_symbol): Always use %ld for printing EMACS_INT.
9984 (Fexecute_extended_command): Likewise.
9985
9986 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
9987 avoid clashes.
9988 (SYNTAX): Likewise.
9989 (SYNTAX_WITH_FLAGS): Likewise.
9990 (SYNTAX_MATCH): Likewise.
9991
9992 * syntax.c (char_quoted): Avoid warning about undefined operation.
9993 (find_defun_start): Likewise.
9994 (scan_lists): Likewise.
9995 (INC_FROM): Likewise.
9996 (scan_sexps_forward): Likewise.
9997
9998 * image.c: Include <ctype.h>.
9999
10000 * xfaces.c (face_attr_equal_p): Declare parameters.
10001
10002 2004-06-13 Kenichi Handa <handa@m17n.org>
10003
10004 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
10005
10006 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
10007
10008 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
10009
10010 2004-06-12 Kenichi Handa <handa@m17n.org>
10011
10012 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
10013 ccl_prog_stack_struct and update it.
10014 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
10015 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
10016 ccl->eof_ic on EOF.
10017 (ccl_debug_hook): New function.
10018 (struct ccl_prog_stack): New member eof_ic.
10019 (ccl_driver): Handle EOF in subrountine call correctly.
10020
10021 2004-06-11 Kenichi Handa <handa@m17n.org>
10022
10023 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
10024
10025 2004-06-11 Kim F. Storm <storm@cua.dk>
10026
10027 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
10028
10029 2004-06-11 Juanma Barranquero <lektu@terra.es>
10030
10031 * keyboard.c (Fposn_at_point): Doc fix.
10032
10033 2004-06-11 David Kastrup <dak@gnu.org>
10034
10035 * search.c (match_limit): Don't flag an error if match-data
10036 exceeding the allocated search_regs.num_regs gets requested, just
10037 return Qnil.
10038
10039 2004-06-08 Miles Bader <miles@gnu.org>
10040
10041 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
10042
10043 2004-06-07 Juanma Barranquero <lektu@terra.es>
10044
10045 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
10046 (Fcurrent_time_string, Fcurrent_time_zone)
10047 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
10048
10049 2004-06-07 Miles Bader <miles@gnu.org>
10050
10051 * xfaces.c (struct named_merge_point): New type.
10052 (push_named_merge_point): New function.
10053 (merge_named_face): New function.
10054 (merge_face_ref, face_at_buffer_position, face_at_string_position):
10055 Use `merge_named_face'.
10056 (merge_face_inheritance): Function removed.
10057 (merge_face_ref): Rename from `merge_face_vector_with_property'.
10058 Add new `err_msgs' and `named_merge_points' args. Return error
10059 status. Only print error messages if ERR_MSGS is true. Don't try to
10060 do :inherit attribute validation.
10061 (merge_face_heights): Handle `unspecified' in both directions.
10062 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
10063 Call `merge_face_ref' instead of `merge_face_inheritance'.
10064 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
10065 (compute_char_face, face_at_buffer_position)
10066 (face_at_string_position): Call `merge_face_ref' instead of
10067 `merge_face_vector_with_property'.
10068
10069 2004-06-07 Kenichi Handa <handa@m17n.org>
10070
10071 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
10072 the necessary places.
10073
10074 2004-06-07 Kim F. Storm <storm@cua.dk>
10075
10076 * process.c (Fdelete_process): Undo 2004-05-28 change.
10077 Instead, call status_notify also for network process.
10078 (status_message): Use process instead of status as arg.
10079 Give messages "deleted" or "connection broken by remote peer" for
10080 an exited network process.
10081 (status_notify): Change call to status_message.
10082 (read_process_output): Increase readmax to 4096. Do not increase
10083 buffer size for datagram channels (default is now large enough).
10084
10085 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
10086
10087 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
10088 problem due to newly defined variable.
10089
10090 2004-06-06 Miles Bader <miles@gnu.org>
10091
10092 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
10093 immediately if non-interactive or not initialized.
10094
10095 2004-06-05 Richard M. Stallman <rms@gnu.org>
10096
10097 * minibuf.c (Fcompleting_read): Doc fix.
10098
10099 2004-06-05 Andreas Schwab <schwab@suse.de>
10100
10101 * macfns.c (x_create_tip_frame): Fix declaration after statement.
10102
10103 2004-06-05 Juanma Barranquero <lektu@terra.es>
10104
10105 * keymap.c (Fdescribe_vector): Fix docstring.
10106 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
10107
10108 2004-06-05 Miles Bader <miles@gnu.org>
10109
10110 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
10111 attributes have different values than the default face.
10112
10113 2004-06-04 Eli Zaretskii <eliz@gnu.org>
10114
10115 * xfaces.c (x_supports_face_attributes_p): Make this function
10116 conditional on HAVE_WINDOW_SYSTEM.
10117 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
10118 Don't call x_supports_face_attributes_p if it was not compiled in.
10119
10120 2004-06-04 Miles Bader <miles@gnu.org>
10121
10122 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
10123 from Ftty_supports_face_attributes_p.
10124 (x_supports_face_attributes_p): New function.
10125 (Ftty_supports_face_attributes_p): Function deleted.
10126 (Fdisplay_supports_face_attributes_p): New function.
10127 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
10128 (face_attr_equal_p): New function.
10129 (lface_equal_p): Use it.
10130
10131 2004-06-03 Juanma Barranquero <lektu@terra.es>
10132
10133 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
10134 (Vw32_color_map): Fix typo in docstring.
10135 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
10136 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
10137 Make argument names match their use in docstring.
10138
10139 2004-06-02 Juanma Barranquero <lektu@terra.es>
10140
10141 Work around bugs/problems with MinGW builds of graphics libraries
10142 called from MSVC builds of Emacs.
10143
10144 * image.c (lookup_image): Make pointer to img static.
10145 (png_read_from_memory): Disable "global" optimization.
10146
10147 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
10148
10149 * eval.c (Fcondition_case): Fix usage. Simplify.
10150
10151 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
10152
10153 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10154
10155 * macfns.c: Don't include ccl.h.
10156 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
10157 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
10158 TextUtils.h.
10159 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
10160 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
10161 display height/width.
10162 (compute_tip_xy, Vx_max_tooltip_size): Declare.
10163 (unwind_create_tip_frame, compute_tip_xy): New functions.
10164 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
10165 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
10166 and last_show_tip_args.
10167
10168 * macgui.h [!MAC_OSX]: Include Gestalt.h.
10169 (Cursor, No_Cursor): New defines.
10170 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
10171 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
10172
10173 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
10174
10175 * macterm.c: Don't include Gestalt.h.
10176 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
10177 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
10178 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
10179 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
10180 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
10181 (construct_mouse_click, XTmouse_position)
10182 (x_scroll_bar_report_motion, x_calc_absolute_position)
10183 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
10184 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
10185 (note_mouse_movement): Clear the mouse face and reset the pointer
10186 shape when the pointer goes outside the frame without grabbing.
10187 (mac_front_window): New function.
10188 (mac_window_to_frame): New macro.
10189 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
10190 (do_window_activate, do_window_deactivate, do_app_resume)
10191 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
10192 (do_zoom_window, mac_do_receive_drag, XTread_socket)
10193 (mac_check_for_quit_char): Use mac_front_window and/or
10194 mac_window_to_frame.
10195 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
10196 scroll-bar click event.
10197 (mac_define_frame_cursor): Change the pointer shape.
10198 (x_free_frame_resources): Reset tip_window to NULL when it is
10199 disposed of.
10200 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
10201 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
10202 (do_window_update): Don't do anything if the updated window is the
10203 tooltip window.
10204 (do_mouse_moved): Handle mouse movement events here (previously in
10205 XTread_socket). Clear the mouse face if
10206 dpyinfo->mouse_face_hidden is set.
10207 (do_os_event, do_events): Remove (now in XTread_socket).
10208 (XTread_socket): Immediately return if interrupt_input_blocked.
10209 Loop until all the events in the queue are processed.
10210 Rearrange codes for mouse grabbing. Add tooltip support. Include the
10211 contents of do_os_event and do_events. Remove mouse movement
10212 handling (now in do_mouse_moved). Add the case where
10213 Vmouse_highlight has an integer value.
10214 (NewMacWindow): Remove.
10215 (make_mac_frame): Do what NewMacWindow previously did. Don't do
10216 excess initializations.
10217 (make_mac_terminal_frame): Previous initializations in
10218 make_mac_frame are moved here.
10219 (mac_initialize_display_info):
10220 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
10221
10222 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
10223 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
10224
10225 2004-05-29 Richard M. Stallman <rms@gnu.org>
10226
10227 * lisp.h (truncate_undo_list): Update decl.
10228
10229 * alloc.c (undo_outer_limit): New variable.
10230 (syms_of_alloc): Defvar it.
10231 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
10232
10233 * undo.c (truncate_undo_list): New arg LIMITSIZE.
10234
10235 * alloc.c (lisp_align_malloc): Check for base == 0
10236 regardless of HAVE_POSIX_MEMALIGN.
10237 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
10238
10239 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10240
10241 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
10242 (marker_blocks_pending_free): Remove.
10243 (Fgarbage_collect): Sweep after cleaning up undo-lists.
10244 Mark the undo lists after claning them up.
10245 Don't free block in marker_blocks_pending_free.
10246 (mark_buffer): Don't mark undo_list.
10247 (gc_sweep): Sweep hash-tables and strings first.
10248 Do free marker blocks that are empty.
10249
10250 2004-05-28 Jim Blandy <jimb@redhat.com>
10251
10252 * regex.c (print_partial_compiled_pattern): Add missing 'break'
10253 after 'case wordend'. For symbeg and symend, print to stderr,
10254 like the other cases.
10255
10256 2004-05-28 Noah Friedman <friedman@splode.com>
10257
10258 * process.c (Fdelete_process): Do not call remove_process.
10259
10260 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10261
10262 * alloc.c (struct backtrace): Remove.
10263 (Fgarbage_collect): Use the new mark_backtrace.
10264
10265 * eval.c (mark_backtrace): New function.
10266
10267 * minibuf.c (run_exit_minibuf_hook): New function.
10268 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
10269 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
10270
10271 2004-05-27 Kim F. Storm <storm@cua.dk>
10272
10273 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
10274 over display properties, e.g. images, that replace buffer text.
10275
10276 2004-05-25 Kim F. Storm <storm@cua.dk>
10277
10278 * alloc.c (marker_blocks_pending_free): New var.
10279 (gc_sweep): Store free marker blocks on that list.
10280 (Fgarbage_collect): Free them after undo-list cleanup.
10281
10282 * process.c (wait_reading_process_input): Check connect_wait_mask
10283 before actually accepting connection in case it has already been
10284 accepted due to recursion.
10285
10286 2004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
10287
10288 * coding.c (Fset_safe_terminal_coding_system_internal):
10289 Set suppress_error in safe_terminal_coding, not terminal_coding.
10290
10291 2004-05-22 Richard M. Stallman <rms@gnu.org>
10292
10293 * alloc.c (Fmake_string): Doc fix.
10294
10295 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
10296 and the alist pairs too.
10297
10298 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
10299
10300 * emacs.c (main): Update copyright year.
10301
10302 * fileio.c (Fread_file_name): Expand DIR if not absolute.
10303
10304 * insdel.c (del_range_2, replace_range): Don't write an anchor
10305 if the gap is empty.
10306
10307 * xdisp.c (try_scrolling): If scroll-up-aggressively or
10308 scroll-down-aggressively is small but positive, put point
10309 near the screen edge.
10310
10311 2004-05-22 Juanma Barranquero <lektu@terra.es>
10312
10313 * keymap.c (Fdefine_key): Doc fix.
10314
10315 2004-05-22 Kim F. Storm <storm@cua.dk>
10316
10317 * alloc.c (struct backtrace): Add debug_on_exit member.
10318 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
10319 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
10320 the removed cons cells.
10321 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
10322 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
10323 any cons cells pointing to unallocated stings.
10324 Do not lisp_free any marker blocks, as there may still be pointers
10325 to them from buffer undo lists at this stage of GC.
10326
10327 * keyboard.c (struct backtrace): Add debug_on_exit member.
10328 (Fcommand_execute): Clear it.
10329
10330 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
10331
10332 * intervals.c (lookup_char_property): Do not prematurely return nil.
10333
10334 2004-05-19 Jim Blandy <jimb@redhat.com>
10335
10336 Add support for new '\_<' and '\_>' regexp operators, matching the
10337 beginning and end of symbols.
10338
10339 * regex.c (enum syntaxcode): Add Ssymbol.
10340 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
10341 (re_opcode_t): New opcodes `symbeg' and `symend'.
10342 (print_partial_compiled_pattern): Print the new opcodes properly.
10343 (regex_compile): Parse the new operators.
10344 (analyse_first): Skip sym(beg|end) (they match only the empty string).
10345 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
10346 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
10347 (re_match_2_internal): Match symbeg and symend.
10348
10349 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
10350
10351 2004-05-19 Kim F. Storm <storm@cua.dk>
10352
10353 * .gdbinit (xsymbol): Fix last change.
10354
10355 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
10356
10357 * .gdbinit (xprintstr): New fun.
10358 (xstring, xprintsym): Use it.
10359
10360 * w32proc.c (create_child): Use INTMASK.
10361
10362 * alloc.c (Fgarbage_collect): Do all the marking before flushing
10363 unmarked elements of the undo list.
10364
10365 2004-05-18 David Ponce <david@dponce.com>
10366
10367 * print.c (print): Reset print_depth before to call print_object.
10368
10369 2004-05-18 Jason Rumney <jasonr@gnu.org>
10370
10371 * w32console.c: Prefix RIF functions with w32con_ to avoid
10372 namespace clash with functions in term.c and w32term.c.
10373
10374 * w32menu.c (add_menu_item, w32_menu_display_help)
10375 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
10376
10377 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
10378
10379 2004-05-18 Eli Zaretskii <eliz@gnu.org>
10380
10381 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
10382
10383 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
10384 with make_number.
10385 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
10386 with XINT.
10387
10388 2004-05-18 Kim F. Storm <storm@cua.dk>
10389
10390 * blockinput.h (INPUT_BLOCKED_P): New macros.
10391
10392 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
10393 (Ftop_level): Unblock input if blocked.
10394
10395 * buffer.h (GET_OVERLAYS_AT): New macro.
10396 * msdos.c (IT_note_mouse_highlight): Use it.
10397 * textprop.c (get_char_property_and_overlay): Use it.
10398 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
10399 * xfaces.c (face_at_buffer_position): Use it.
10400
10401 * print.c (print_object): Increase buf size.
10402
10403 2004-05-17 Jason Rumney <jasonr@gnu.org>
10404
10405 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
10406 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
10407 Lisp_Object using i member.
10408 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
10409 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
10410 consistently.
10411
10412 * w32proc.c (create_child): Use make_number instead of masking pid.
10413
10414 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
10415 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
10416 Use EQ to compare Lisp_Objects.
10417 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
10418
10419 * w32term.c (w32_num_mouse_buttons): Rename from
10420 Vw32_num_mouse_buttons and make it an int.
10421
10422 * w32.c (init_environment): Use it.
10423
10424 * w32fns.c (w32_wnd_proc): Likewise.
10425
10426 * w32proc.c (w32_pipe_read_delay): Rename from
10427 Vw32_pipe_read_delay and make it an int.
10428
10429 * w32.c (_sys_read_ahead): Use it.
10430
10431 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
10432
10433 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
10434
10435 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
10436 (key_event): Don't mix Lisp_Object and int.
10437
10438 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
10439
10440 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
10441 modifiers in language change event.
10442
10443 2004-05-17 Kim F. Storm <storm@cua.dk>
10444
10445 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
10446 Such objects may be freed markers which still exist on an undo list.
10447
10448 2004-05-16 Juanma Barranquero <lektu@terra.es>
10449
10450 * data.c (Fset_default): Make argument names match their use in
10451 docstring.
10452
10453 2004-05-15 Andreas Schwab <schwab@suse.de>
10454
10455 * emacs.c (gdb_array_mark_flag): Define.
10456 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
10457
10458 2004-05-15 Eli Zaretskii <eliz@gnu.org>
10459
10460 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
10461 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
10462 defined for the MS-DOS build.
10463
10464 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
10465
10466 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
10467
10468 2004-05-14 Kenichi Handa <handa@m17n.org>
10469
10470 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
10471
10472 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10473
10474 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
10475 section to frame.c section.
10476 (Fxw_display_color_p, Fx_file_dialog): Declare if
10477 HAVE_WINDOW_SYSTEM defined.
10478
10479 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
10480
10481 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
10482
10483 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
10484 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
10485 (XTread_socket): Fix int/Lisp_Object mixup.
10486 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
10487
10488 * macterm.h (struct frame, struct face, struct image)
10489 (display_x_get_resource, Fx_display_color_p)
10490 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
10491 Add prototypes.
10492
10493 2004-05-14 Kim F. Storm <storm@cua.dk>
10494
10495 * process.c (wait_reading_process_input): Make reentrant.
10496 Make Available and Connecting non-static. Save and restore value
10497 of waiting_for_user_input_p.
10498
10499 2004-05-13 Kim F. Storm <storm@cua.dk>
10500
10501 * keyboard.c (mark_kboards): Don't mark x and y members
10502 that are overloaded in selection request events.
10503
10504 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10505
10506 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
10507
10508 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
10509
10510 * window.c (Fdisplay_buffer, Fsplit_window)
10511 (split-height-threshold): Doc fix.
10512
10513 2004-05-13 Juanma Barranquero <lektu@terra.es>
10514
10515 * xfaces.c (Ftty_supports_face_attributes_p)
10516 (Finternal_copy_lisp_face): Fix typo in docstring.
10517 (Finternal_get_lisp_face_attribute): Fix docstring.
10518
10519 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10520
10521 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
10522
10523 2004-05-11 Steven Tamm <steventamm@mac.com>
10524
10525 * macfns.c (Fx_create_frame): Default to using tool-bar by
10526 setting tool-bar-lines to 1 in default-frame-alist.
10527
10528 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10529
10530 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
10531 (xpm_get_color_table_v, xpm_make_color_table_h)
10532 (xpm_put_color_table_h, xpm_get_color_table_h)
10533 (xpm_str_to_color_key, xpm_load_image, xpm_load)
10534 (syms_of_image): Support XPM on Carbon Emacs. Does not
10535 depend on libXpm, but only supports XPM version 3 without extensions.
10536
10537 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10538
10539 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
10540 instead of FRAME_X_P
10541
10542 2004-05-11 Kim F. Storm <storm@cua.dk>
10543
10544 * process.c (read_process_output): Grow decoding_buf when needed;
10545 this could cause a crash in allocate_string and compact_small_strings.
10546
10547 2004-04-29 Jim Blandy <jimb@redhat.com>
10548
10549 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
10550 against proper opcode.
10551
10552 2004-05-10 Juanma Barranquero <lektu@terra.es>
10553
10554 * process.c (Fstart_process): Fix docstring.
10555
10556 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
10557 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
10558 (Fsplit_char, Fchar_charset): Make argument names match their use
10559 in docstring.
10560
10561 2004-05-10 Richard M. Stallman <rms@gnu.org>
10562
10563 * print.c (print_preprocess): Use being_printed, loop_count and
10564 halftail to detect overdeep nesting and cyclic cdr chains.
10565
10566 2004-05-10 Andreas Schwab <schwab@suse.de>
10567
10568 * lisp.h (Fmake_symbolic_link): Declare.
10569
10570 * fileio.c (Frename_file): Remove extra argument in call to
10571 Fmake_symbolic_link.
10572
10573 2004-05-10 Kim F. Storm <storm@cua.dk>
10574
10575 * xdisp.c (calc_line_height_property): Use string position when
10576 object is a string.
10577
10578 2004-05-10 Kenichi Handa <handa@m17n.org>
10579
10580 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
10581 inhibit-modification-hooks to t temporarily before calling
10582 Ferase_buffer.
10583
10584 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
10585 inhibit-modification-hooks to t temporarily before calling
10586 Ferase_buffer.
10587
10588 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
10589 inhibit-modification-hooks to t temporarily before calling
10590 Ferase_buffer.
10591
10592 * fns.c (count_combining): Delete it.
10593 (concat): Don't check combining bytes.
10594
10595 2004-05-09 Jason Rumney <jasonr@gnu.org>
10596
10597 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
10598 (globals_of_w32fns): Set it.
10599
10600 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
10601
10602 * data.c (Fquo): Simplify.
10603
10604 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
10605
10606 * data.c (Fquo): If any argument is float, do the computation in
10607 floating point.
10608
10609 2004-05-08 Juanma Barranquero <lektu@terra.es>
10610
10611 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
10612 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
10613 Fix spelling of Emacs on docstring.
10614 (Fset_process_coding_system, Fprocess_coding_system)
10615 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
10616 Make argument names match their use in docstring.
10617 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
10618 Fix docstring.
10619
10620 * editfns.c (Finsert_buffer_substring): Make argument names match their
10621 use in docstring.
10622
10623 * syntax.c (Fmodify_syntax_entry): Fix docstring.
10624
10625 2004-05-07 Steven Tamm <steventamm@mac.com>
10626
10627 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
10628 around call to ReceiveEvent to avoid certain crashes.
10629
10630 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10631
10632 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
10633 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
10634 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
10635 Save/restore the current graphics port and device handle when
10636 drawing into an offscreen graphics world.
10637
10638 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
10639 (gif_load): Likewise.
10640
10641 2004-05-07 Juanma Barranquero <lektu@terra.es>
10642
10643 * window.c (Fset_window_buffer): Fix docstring.
10644
10645 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
10646
10647 * emacs.c (main) [VMS]: Fix var ref.
10648
10649 2004-05-06 Romain Francoise <romain@orebokech.com>
10650
10651 * data.c (Fsetq_default): Fix docstring.
10652
10653 2004-05-06 Jason Rumney <jasonr@gnu.org>
10654
10655 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
10656 to avoid name clash.
10657
10658 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10659
10660 * fileio.c (barf_or_query_if_file_exists): Use lstat.
10661 (Frename_file): Handle renaming of symlinks across file systems.
10662 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
10663
10664 2004-05-04 Kim F. Storm <storm@cua.dk>
10665
10666 * xdisp.c (Qtotal): New var.
10667 (syms_of_xdisp): Intern and staticpro it.
10668 (calc_line_height_property): New arg total. Set it if
10669 line-spacing property has format (total . VALUE).
10670 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
10671 Handle total line-spacing property.
10672
10673 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10674
10675 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
10676 "under" scroll bar when size/position changes.
10677
10678 2004-05-03 Jason Rumney <jasonr@gnu.org>
10679
10680 * makefile.nt: Remove.
10681
10682 2004-05-02 Eli Zaretskii <eliz@gnu.org>
10683
10684 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
10685 Avoid compiler warnings.
10686
10687 * Makefile.in (region-cache.o): Depend on config.h.
10688
10689 2004-05-02 Romain Francoise <romain@orebokech.com>
10690
10691 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
10692 with continuation lines, too.
10693
10694 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
10695
10696 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
10697
10698 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
10699
10700 * xdisp.c (calc_line_height_property): YAILOM (yet another
10701 int/Lisp_Object mixup).
10702
10703 2004-05-01 Eli Zaretskii <eliz@gnu.org>
10704
10705 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
10706 undo bad effect of pack(4) in some versions of system headers.
10707
10708 2004-05-01 Jason Rumney <jasonr@gnu.org>
10709
10710 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
10711
10712 2004-04-30 Kim F. Storm <storm@cua.dk>
10713
10714 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
10715 (syms_of_buffer) <cursor-type>: Doc fix.
10716
10717 * dispextern.h (struct it): Remove member use_default_face.
10718 Add members override_ascent, override_descent, override_boff.
10719
10720 * xdisp.c (init_iterator): Handle line-spacing float value.
10721 Initialize override_ascent member.
10722 (append_space_for_newline): Reset override_ascent.
10723 Remove use_default_face.
10724 (calc_line_height_property): New function to calculate value of
10725 line-height and line-spacing properties. Look at overlays, too.
10726 Set override_ascent, override_descent, override_boff members when
10727 using another face than the current face. Float values are now
10728 relative to the frame default font, by default; accept a cons
10729 of ratio and face name to specify value relative to a specific face.
10730 (x_produce_glyphs): Use calc_line_height_property.
10731 Use override_ascent etc. when set to handle different face heights.
10732 A negative line-spacing property value is interpreted as a total
10733 line height, rather than inter-line spacing.
10734 (note_mouse_highlight): Allocate room for 40 overlays initially.
10735
10736 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
10737
10738 * data.c (Fsubr_name): New fun.
10739 (syms_of_data): Defsubr it.
10740
10741 2004-04-29 Kim F. Storm <storm@cua.dk>
10742
10743 * xdisp.c (null_glyph_slice): New var.
10744 (append_glyph, append_composite_glyph, append_stretch_glyph):
10745 Use it to initialize glyph slice.
10746
10747 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
10748
10749 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
10750 (on_hot_spot_p): Make sure we always return a value.
10751 (Flookup_image_map): Remove unused var ix and iy.
10752 (note_mode_line_or_margin_highlight): Remove unused var `image'.
10753
10754 2004-04-27 Eli Zaretskii <eliz@gnu.org>
10755
10756 * msdos.c (init_environment): If one of the TMP... environment
10757 variables is set to a drive letter without a trailing slash,
10758 append a slash.
10759
10760 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
10761
10762 * editfns.c (lisp_time_argument): Provide externally.
10763
10764 * fileio.c (Fset_file_times): New function.
10765 (syms_of_fileio): Intern and staticpro it.
10766
10767 2004-04-27 Kim F. Storm <storm@cua.dk>
10768
10769 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
10770 header line strings.
10771
10772 * dispextern.h (struct it): New member use_default_face.
10773
10774 * xdisp.c (Qline_height): New variable.
10775 (syms_of_xdisp): Intern and staticpro it.
10776 (append_space_for_newline): Partially undo 2004-04-25 change;
10777 add default_face_p arg, and restore callers.
10778 Clear it->use_default_face after use.
10779 (x_produce_glyphs): Set default font for ascii char if
10780 it->use_default_font is set. Change line-spacing property to set
10781 just extra line spacing. Handle new line-height property.
10782
10783 2004-04-26 Andreas Schwab <schwab@suse.de>
10784
10785 * print.c (print_object): Print non-ascii characters in bool
10786 vector representation as octal escapes.
10787
10788 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
10789 * print.c (print_object): Use it instead of BITS_PER_CHAR for
10790 bool vectors.
10791 * lread.c (read1): Likewise.
10792 * alloc.c (Fmake_bool_vector): Likewise.
10793 * data.c (Faref, Faset): Likewise.
10794 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
10795 (mapcar1): Likewise.
10796
10797 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
10798
10799 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
10800
10801 2004-04-26 Miles Bader <miles@gnu.org>
10802
10803 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
10804
10805 2004-04-26 Juanma Barranquero <lektu@terra.es>
10806
10807 * buffer.c (Fpop_to_buffer): Fix docstring.
10808
10809 2004-04-26 Steven Tamm <steventamm@mac.com>
10810
10811 * lread.c (init_lread): Don't display missing lisp directory
10812 warnings with Carbon Emacs because self-contained bundled Emacs
10813 may be built without correct installation path.
10814
10815 2004-04-25 Kim F. Storm <storm@cua.dk>
10816
10817 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
10818
10819 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
10820
10821 * xdisp.c (append_space_for_newline): Rename from append_space.
10822 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
10823 (x_produce_glyphs): Handle line-spacing property on newline char.
10824 If value is t, adjust ascent and descent to fit current row height.
10825 If value is an integer or float, set extra_line_spacing to integer
10826 value, or to float value x current line height.
10827
10828 2004-04-23 Kenichi Handa <handa@m17n.org>
10829
10830 * fontset.c (Finternal_char_font): If POSITION is nil, return
10831 font for displaying CH with the default face.
10832
10833 2004-04-23 Juanma Barranquero <lektu@terra.es>
10834
10835 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
10836
10837 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10838
10839 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
10840 Don't make assumptions about the relative place of i and val.
10841 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
10842
10843 2004-04-21 Kim F. Storm <storm@cua.dk>
10844
10845 * dispextern.h (struct glyph_slice): New struct.
10846 (struct glyph): New member slice.
10847 (GLYPH_SLICE_EQUAL_P): New macro.
10848 (GLYPH_EQUAL_P): Use it.
10849 (struct glyph_string): New member slice.
10850 (struct it_slice): New struct.
10851 (struct it): New member slice, add member to stack too.
10852 New member constrain_row_ascent_descent_p.
10853 (image_ascent): Add prototype.
10854
10855 * dispnew.c (buffer_posn_from_coords): Return full image width
10856 and height even for image slices (posn is relative to full image).
10857 (marginal_area_string): Adjust x0,y0 for image slice.
10858
10859 * image.c (image_ascent): Add slice arg; calculate ascent for
10860 image slice (or full image).
10861
10862 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
10863 (syms_of_keyboard): Defsubr them.
10864
10865 * lisp.h (pos_visible_p): Fix prototype.
10866
10867 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
10868 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
10869 (x_draw_image_foreground, x_draw_image_relief)
10870 (x_draw_image_foreground_1, x_draw_image_glyph_string):
10871 Draw sliced images.
10872
10873 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
10874 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
10875 (x_draw_image_foreground, x_draw_image_relief)
10876 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
10877 Draw sliced images.
10878
10879 * w32term.h (image_ascent): Remove prototype.
10880
10881 * window.c (Fpos_visible_in_window_p): Return pixel position if
10882 PARTIALLY arg is non-nil. Simplify. Doc fix.
10883 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
10884 to return/set vscroll in pixels.
10885
10886 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
10887
10888 * xdisp.c (Qslice): New variable.
10889 (syms_of_xdisp): Intern and staticpro it.
10890 (pos_visible_p): Return pixel position in new x and y args.
10891 (init_iterator): Reset it->slice info.
10892 (handle_display_prop): Parse (slice ...) property.
10893 (push_it, pop_it): Save/restore slice info.
10894 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
10895 force repositioning of tall row if window is vscrolled, as that
10896 would reset vscroll.
10897 (append_space): Set it->constrain_row_ascent_descent_p to avoid
10898 increasing row height if row is non-empty.
10899 (fill_image_glyph_string): Copy slice info.
10900 (take_vertical_position_into_account): Simplify.
10901 (produce_image_glyph): Handle iterator slice info, setup glyph
10902 slice info. Do not force minimum line height.
10903 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
10904 do not increase height (ascent/descent) of non-empty row when
10905 adding normal character glyph; instead reduce glyph ascent/descent
10906 appropriately; if row is higher than current glyph, adjust glyph
10907 descent/ascent to reposition glyph within the existing row.
10908 Likewise, when char is newline, only set ascent/descent if row is
10909 currently empty.
10910 (note_mouse_highlight): Handle hotspots with sliced image.
10911
10912 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
10913 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
10914 (x_draw_image_foreground, x_draw_image_relief)
10915 (x_draw_image_foreground_1, x_draw_image_glyph_string):
10916 Draw sliced images.
10917
10918 * xterm.h (image_ascent): Remove prototype.
10919
10920 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
10921
10922 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
10923
10924 2004-04-20 John Paul Wallington <jpw@gnu.org>
10925
10926 * fns.c (Fassoc, Feql): Fix indentation.
10927
10928 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
10929
10930 2004-04-19 John Paul Wallington <jpw@gnu.org>
10931
10932 * fns.c (Feql): New function.
10933 (syms_of_fns): Defsubr it.
10934
10935 2004-04-18 Jason Rumney <jasonr@gnu.org>
10936
10937 * w32select.c (Fw32_set_clipboard_data): Get sequence number
10938 after closing the clipboard.
10939
10940 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
10941
10942 * buffer.c (Fbuffer_base_buffer): Doc fix.
10943
10944 2004-04-17 Kim F. Storm <storm@cua.dk>
10945
10946 * keymap.c (Fkey_description): Add optional PREFIX arg.
10947 Combine prefix with KEYS to make up the full key sequence to describe.
10948 Correlate meta_prefix_char and following (simple) key to describe
10949 as meta modifier. All callers changed.
10950 (describe_map): Rename arg `keys' to `prefix'. Remove local
10951 `elt_prefix' var. Use Fkey_description with prefix instead of
10952 elt_prefix combined with Fsingle_key_description.
10953 (describe_vector): Declare static. Replace arg `elt_prefix' with
10954 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
10955 if !KEYMAP_P. Use Fkey_description with prefix instead of
10956 Fsingle_key_description.
10957
10958 * keymap.h (Fkey_description): Fix prototype.
10959 (describe_vector): Remove prototype.
10960
10961 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
10962
10963 * image.c (PNG_BG_COLOR_SHIFT): Remove.
10964 (png_load): Fix calculation of transparent background color on X
10965 and W32 platforms.
10966
10967 2004-04-16 Juanma Barranquero <lektu@terra.es>
10968
10969 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
10970 not too large before computing how much to scroll.
10971
10972 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
10973
10974 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
10975
10976 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
10977
10978 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
10979 Add hyperlink to Elisp manual to the docstring.
10980
10981 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
10982
10983 * callint.c (fix_command): Use XDCR.
10984
10985 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
10986
10987 * window.c (Fget_lru_window): Doc fix.
10988
10989 2004-04-14 Kim F. Storm <storm@cua.dk>
10990
10991 * editfns.c (Fformat): Fix allocation size of precision array.
10992
10993 * dispnew.c (update_window): Only set changed_p if
10994 scrolling_window actually did scroll.
10995 (scrolling_window): Only return 1 if we actually did scroll.
10996
10997 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
10998 height to glyph height when cursor row is not fully visible.
10999 (make_cursor_line_fully_visible): Add FORCE_P arg to return
11000 failure in case row is higher than window. Callers changed.
11001 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
11002 Try to scroll partially visible, higher-than-window cursor row.
11003 (redisplay_window): Always try to scroll partially visible,
11004 higher-than-window cursor row - both initially and again with
11005 centering_position = 0.
11006 Clear desired matrix before retrying with centering_position = 0.
11007
11008 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
11009
11010 * syntax.c (scan_lists): Simplify backward string scan.
11011 Fix off-by-one boundary check for string and comment fences.
11012
11013 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
11014
11015 * sheap.c, unexcw.c: New files.
11016
11017 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
11018
11019 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
11020 base buffer has been killed. Correct the error message if the
11021 base buffer does not exist.
11022
11023 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
11024
11025 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
11026 Cygwin itself. Add support for Xaw3d scrollbars.
11027
11028 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
11029
11030 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
11031
11032 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
11033 before Cygwin unexec.
11034
11035 * Makefile.in: Link changes for Cygwin unexec() support.
11036
11037 2004-04-12 Andreas Schwab <schwab@suse.de>
11038
11039 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
11040
11041 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
11042
11043 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
11044 IGNORE argument equals NAME. Doc fix.
11045
11046 2004-04-11 Masatake YAMATO <jet@gyve.org>
11047
11048 * buffer.c (fix_start_end_in_overlays): Make overlays
11049 empty if they are backwards.
11050
11051 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11052
11053 * xfaces.c (face_color_supported_p): Fix compilation without X11.
11054
11055 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
11056
11057 * doc.c (Fsnarf_documentation): Ignore new file name entries.
11058
11059 2004-04-06 Kim F. Storm <storm@cua.dk>
11060
11061 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
11062 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
11063
11064 * w32term.c (w32_read_socket): Set mouse_face_hidden after
11065 clearing highlight.
11066
11067 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
11068
11069 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
11070 clearing highlight.
11071
11072 * indent.c (vmotion): Do not reserve one column for continuation
11073 marks on window frames.
11074
11075 2004-04-04 Eli Zaretskii <eliz@gnu.org>
11076
11077 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
11078 from GCC.
11079
11080 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11081
11082 * .gdbinit-union: Remove.
11083
11084 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
11085 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
11086 ($nonvalbits): Remove.
11087 ($valmask): Set it by calling xreload to avoid redundancy.
11088
11089 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
11090 (gdb_emacs_intbits): Remove.
11091
11092 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11093
11094 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
11095
11096 2004-03-30 Kenichi Handa <handa@m17n.org>
11097
11098 * editfns.c (Fformat): Fix initialization of the array info.
11099
11100 2004-03-30 Kim F. Storm <storm@cua.dk>
11101
11102 * xterm.c (x_mouse_click_focus_ignore_position): New var.
11103 (syms_of_xterm): DEFVAR_BOOL it.
11104 (ignore_next_mouse_click_timeout): New var.
11105 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
11106 Use it to filter mouse clicks following focus event.
11107
11108 2004-03-29 David Ponce <david@dponce.com>
11109
11110 * callint.c (Fcall_interactively): Fix last change.
11111
11112 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
11113
11114 * eval.c (Fcommandp): Simplify.
11115
11116 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
11117 Extend to handle all kinds of functions.
11118
11119 * lisp.h (Finteractive_form): Declare.
11120
11121 * callint.c (Fcall_interactively): Use it.
11122
11123 2004-03-26 Kim F. Storm <storm@cua.dk>
11124
11125 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
11126 to catch errors in calc_pixel_width_or_height during redisplay.
11127
11128 2004-03-26 Masatake YAMATO <jet@gyve.org>
11129
11130 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
11131
11132 * lisp.h (fix_start_end_in_overlays): Likewise.
11133
11134 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
11135
11136 * editfns.c (Ftranspose_regions): Likewise.
11137
11138 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11139
11140 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
11141
11142 2004-03-19 Richard M. Stallman <rms@gnu.org>
11143
11144 * s/sol2-6.h: Delete previous change.
11145
11146 2004-03-19 Kim F. Storm <storm@cua.dk>
11147
11148 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
11149 to_charpos corresponds to newline in right fringe. Use local
11150 BUFFER_POS_REACHED_P macro.
11151
11152 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11153
11154 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
11155 to compile on non-window system.
11156
11157 2004-03-19 Kim F. Storm <storm@cua.dk>
11158
11159 * dispextern.h (calc_pixel_width_or_height): Add prototype.
11160
11161 * image.c (Qcenter): Move to xdisp.c.
11162
11163 * xdisp.c (Qcenter): Declare here.
11164 (syms_of_xdisp): Intern and staticpro it.
11165 (handle_single_display_prop): Allow space display property on all
11166 platforms.
11167 (display_mode_line): Set mode_line_p before displaying line.
11168 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
11169 handling. Remove complex cases for fringes and scroll-bars.
11170 Add left, right, and center alignment positions. Add text (area)
11171 width/height. Return width or height for image specs.
11172 (produce_stretch_glyph): Improve handling of :align-to. Is now
11173 relative to left of text area by default, but other base offsets
11174 can be specified -- also for text lines.
11175
11176 * term.c (produce_glyphs): Handle IT_STRETCH.
11177 (produce_stretch_glyph): New function to handle space width and
11178 align-to display properties on non-window systems.
11179
11180 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11181
11182 * fileio.c (Fread_file_name): Set completion-ignore-case for
11183 case-insensitive systems.
11184
11185 2004-03-14 Masatake YAMATO <jet@gyve.org>
11186
11187 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
11188 when keymap and cursor are setup.
11189
11190 2004-03-14 Steven Tamm <steventamm@mac.com>
11191
11192 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
11193
11194 2004-03-14 Kim F. Storm <storm@cua.dk>
11195
11196 * dispextern.h (x_find_image_file): Add prototype.
11197
11198 * image.c (x_find_image_file): Make extern.
11199
11200 * xfns.c (x_find_image_file): Remove prototype.
11201
11202 2004-03-13 Eli Zaretskii <eliz@gnu.org>
11203
11204 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
11205
11206 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
11207
11208 2004-03-12 Richard M. Stallman <rms@gnu.org>
11209
11210 * fns.c (internal_equal): New arg PROPS controls comparing
11211 text properties. All callers changed.
11212 (Fequal_including_properties): New function.
11213 (syms_of_fns): defsubr it.
11214
11215 2004-03-12 Kim F. Storm <storm@cua.dk>
11216
11217 Fix image support on MAC. From YAMAMOTO Mitsuharu.
11218
11219 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
11220 (image_background, image_background_transparent): Fix prototypes.
11221
11222 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
11223
11224 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
11225 (x_query_font, x_find_ccl_program, x_set_window_size)
11226 (x_make_frame_visible, mac_initialize, XCreatePixmap)
11227 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
11228 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
11229
11230 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
11231 (x_query_font, x_find_ccl_program, x_set_window_size)
11232 (x_make_frame_visible, mac_initialize, XCreatePixmap)
11233 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
11234 (mac_draw_line_to_pixmap): Add prototypes.
11235
11236 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11237
11238 * macterm.c (XTread_socket): Fix mouse click on tool bar.
11239
11240 2004-03-11 Kim F. Storm <storm@cua.dk>
11241
11242 * dispextern.h: Move image related prototypes from xfns.c section
11243 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
11244 HAVE_X_WINDOWS.
11245
11246 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
11247 Move gtkutil.o to new GTK_OBJ list.
11248 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
11249 (GTK_OBJ) [USE_GTK]: New declaration.
11250 (obj): Add $(GTK_OBJ) to list.
11251
11252 2004-03-11 Steven Tamm <steventamm@mac.com>
11253
11254 * image.c [MAC_OSX]: Include sys/stat.h.
11255
11256 * macfns.c (syms_of_macfns): Remove definitions of things now
11257 defined in image.c.
11258
11259 2004-03-11 Kim F. Storm <storm@cua.dk>
11260
11261 The following changes consolidates the identical/similar image
11262 support code previously found in xfns.c, w32fns.c, and macfns.c
11263 into a new file image.c.
11264
11265 * makefile.w32-in (OBJ1): Add image.o.
11266 ($(BLD)/image.$(O)): Add dependencies.
11267
11268 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
11269 (image.o): Add dependencies.
11270
11271 * image.c: New file with consolidated image support code.
11272 (COLOR_TABLE_SUPPORT): New define to control whether
11273 color table support is available (X only).
11274 (Bitmap_Record): Common name for x_bitmap_record,
11275 w32_bitmap_record, and mac_bitmap_record.
11276 (XImagePtr): Common name for pointer to XImage or equivalent.
11277 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
11278 to XImagePtr on X+MAC, and to HDC on W32.
11279 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
11280 (NO_PIXMAP): Common name for "None" or equivalent.
11281 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
11282 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
11283 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
11284 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
11285 Define with suitable equivalents on W32 and MAC for code sharing.
11286 (XDrawLine): Define on MAC for code sharing.
11287 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
11288 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
11289 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
11290 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11291 (x_reference_bitmap, x_create_bitmap_from_data)
11292 (x_create_bitmap_from_file, x_destroy_bitmap)
11293 (x_destroy_all_bitmaps, x_create_bitmap_mask)
11294 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11295 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
11296 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
11297 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
11298 (define_image_type, lookup_image_type, valid_image_p)
11299 (image_error, enum image_value_type, struct image_keyword)
11300 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
11301 (make_image, free_image, prepare_image_for_display, image_ascent)
11302 (four_corners_best, image_background, image_background_transparent)
11303 (x_clear_image_1, x_clear_image, x_alloc_image_color)
11304 (make_image_cache, free_image_cache, clear_image_cache)
11305 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
11306 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
11307 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
11308 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
11309 (init_image_func_pointer, image_load_quartz2d)
11310 (struct ct_color, init_color_table, free_color_table)
11311 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
11312 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
11313 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
11314 (x_disable_image, x_build_heuristic_mask)
11315 (XBM support, XPM support, PBM support, PNG support, JPEG support)
11316 (TIFF support, GIF support, Ghostscript support): Consolidate image
11317 code from xfns.c, w32fns.c, and macfns.c.
11318 (syms_of_image): Consolidate image related symbol setup here.
11319 (init_image): Consolidate image related initializations here.
11320
11321 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
11322 and init_image. Remove call to init_xfns.
11323
11324 * macterm.h (struct mac_bitmap_record): Add file member.
11325 Not currently used, but simplifies code sharing.
11326
11327 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
11328 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11329 (x_reference_bitmap, x_create_bitmap_from_data)
11330 (x_create_bitmap_from_file, x_destroy_bitmap)
11331 (x_destroy_all_bitmaps, x_create_bitmap_mask)
11332 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11333 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
11334 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
11335 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
11336 (define_image_type, lookup_image_type, valid_image_p)
11337 (image_error, enum image_value_type, struct image_keyword)
11338 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
11339 (make_image, free_image, prepare_image_for_display, image_ascent)
11340 (four_corners_best, image_background, image_background_transparent)
11341 (x_clear_image_1, x_clear_image, x_alloc_image_color)
11342 (make_image_cache, free_image_cache, clear_image_cache)
11343 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
11344 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
11345 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
11346 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
11347 (init_image_func_pointer, image_load_quartz2d)
11348 (struct ct_color, init_color_table, free_color_table)
11349 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
11350 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
11351 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
11352 (x_disable_image, x_build_heuristic_mask)
11353 (XBM support, XPM support, PBM support, PNG support, JPEG support)
11354 (TIFF support, GIF support, Ghostscript support): Merge with image
11355 code from xfns.c and macfns.c into image.c.
11356 (syms_of_xfns): Move image related symbols to image.c.
11357 (init_external_image_libraries, init_xfns): Remove; initialization
11358 moved to init_image in image.c.
11359
11360 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
11361 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11362 (x_reference_bitmap, x_create_bitmap_from_data)
11363 (x_create_bitmap_from_file, x_destroy_bitmap)
11364 (x_destroy_all_bitmaps, x_create_bitmap_mask)
11365 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
11366 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
11367 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
11368 (define_image_type, lookup_image_type, valid_image_p)
11369 (image_error, enum image_value_type, struct image_keyword)
11370 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
11371 (make_image, free_image, prepare_image_for_display, image_ascent)
11372 (four_corners_best, image_background, image_background_transparent)
11373 (x_clear_image_1, x_clear_image, x_alloc_image_color)
11374 (make_image_cache, free_image_cache, clear_image_cache)
11375 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
11376 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
11377 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
11378 (struct ct_color, init_color_table, free_color_table)
11379 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
11380 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
11381 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
11382 (x_disable_image, x_build_heuristic_mask)
11383 (XBM support, XPM support, PBM support, PNG support, JPEG support)
11384 (TIFF support, GIF support, Ghostscript support): Merge with image
11385 code from xfns.c and macfns.c into image.c.
11386 (syms_of_xfns): Move image related symbols to image.c.
11387 (init_external_image_libraries, init_xfns): Remove; initialization
11388 moved to init_image in image.c.
11389
11390 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
11391 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11392 (x_reference_bitmap, x_create_bitmap_from_data)
11393 (x_create_bitmap_from_file, x_destroy_bitmap)
11394 (x_destroy_all_bitmaps, x_create_bitmap_mask)
11395 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
11396 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
11397 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
11398 (define_image_type, lookup_image_type, valid_image_p)
11399 (image_error, enum image_value_type, struct image_keyword)
11400 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
11401 (make_image, free_image, prepare_image_for_display, image_ascent)
11402 (four_corners_best, image_background, image_background_transparent)
11403 (x_clear_image_1, x_clear_image, x_alloc_image_color)
11404 (make_image_cache, free_image_cache, clear_image_cache)
11405 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
11406 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
11407 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
11408 (struct ct_color, init_color_table, free_color_table)
11409 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
11410 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
11411 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
11412 (x_disable_image, x_build_heuristic_mask)
11413 (XBM support, XPM support, PBM support, PNG support, JPEG support)
11414 (TIFF support, GIF support, Ghostscript support): Merge with
11415 w32fns.c and macfns.c image code into image.c.
11416 (syms_of_xfns): Move image related symbols to image.c.
11417 (init_xfns): Remove; initialization moved to init_image in image.c.
11418
11419 * lisp.h (syms_of_image, init_image): Add protoypes.
11420 (init_xfns): Remove prototype.
11421
11422 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11423 (x_reference_bitmap, x_create_bitmap_from_data)
11424 (x_create_bitmap_from_file, x_destroy_bitmap)
11425 (x_create_bitmap_mask): Move prototypes from dispextern.h.
11426 (gamma_correct) [MAC_OS]: Add prototype.
11427
11428 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11429 (x_reference_bitmap, x_create_bitmap_from_data)
11430 (x_create_bitmap_from_file, x_destroy_bitmap)
11431 (x_create_bitmap_mask): Move prototypes to dispextern.h.
11432
11433 2004-03-09 Kenichi Handa <handa@etlken2>
11434
11435 * coding.c (decode_coding_emacs_mule): Handle insufficent source
11436 correctly.
11437
11438 2004-03-04 Richard M. Stallman <rms@gnu.org>
11439
11440 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
11441
11442 * window.c (Fdisplay_buffer): Doc fix.
11443
11444 * buffer.c (Fpop_to_buffer): Doc fix.
11445
11446 2004-03-03 Kim F. Storm <storm@cua.dk>
11447
11448 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
11449
11450 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
11451
11452 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
11453
11454 2004-03-02 Richard M. Stallman <rms@gnu.org>
11455
11456 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
11457
11458 2004-03-02 Kenichi Handa <handa@m17n.org>
11459
11460 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
11461
11462 2004-03-02 Kim F. Storm <storm@cua.dk>
11463
11464 * window.h (struct window): New member overlay_arrow_bitmap.
11465
11466 * window.c (make_window): Initialize overlay_arrow_bitmap.
11467
11468 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
11469 implement and integrate multiple overlay arrows with redisplay.
11470 (syms_of_xdisp): DEFVAR_LISP and initialize it.
11471 (last_arrow_position, last_arrow_string): Replace by properties.
11472 (Qlast_arrow_position, Qlast_arrow_string)
11473 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
11474 (syms_of_xdisp): Intern and staticpro them.
11475 (overlay_arrow_string_or_property, update_overlay_arrows)
11476 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
11477 (overlay_arrow_at_row): New functions for multiple overlay arrows.
11478 (redisplay_internal): Use them instead of directly accessing
11479 Voverlay_arrow_position etc. for multiple overlay arrows.
11480 (mark_window_display_accurate): Use update_overlay_arrows.
11481 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
11482 (try_window_id): Use overlay_arrows_changed_p.
11483 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
11484 (display_line): Use overlay_arrow_at_row to check multiple
11485 overlay arrows, and get relevant overlay-arrow-string and
11486 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
11487 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
11488 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
11489
11490 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
11491 (update_window_fringes): Remove unused code.
11492
11493 2004-03-01 Jason Rumney <jasonr@gnu.org>
11494
11495 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
11496
11497 2004-03-01 Juanma Barranquero <lektu@terra.es>
11498
11499 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
11500
11501 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
11502
11503 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11504
11505 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
11506 how many colors can be displayed.
11507
11508 2004-03-01 Kenichi Handa <handa@m17n.org>
11509
11510 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
11511 correctly.
11512
11513 2004-02-28 Kim F. Storm <storm@cua.dk>
11514
11515 * dispnew.c (update_window): Update header line also if there are
11516 no other changes in window (move code after set_cursor label).
11517
11518 * lisp.h (mark_window_display_accurate): Remove prototype.
11519
11520 * window.c (window_loop, Fforce_window_update): Force mode line
11521 updates by setting prevent_redisplay_optimizations_p and
11522 update_mode_lines.
11523
11524 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11525
11526 * xfns.c (x_window): Fix indentation.
11527
11528 * xterm.c (x_calc_absolute_position): Call x_real_positions
11529 to get WM window sizes and use those to calculate position.
11530 (x_set_offset): Remove code commented out.
11531
11532 2004-02-28 Miles Bader <miles@gnu.org>
11533
11534 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
11535
11536 2004-02-28 Kim F. Storm <storm@cua.dk>
11537
11538 * keyboard.c (kbd_buffer_store_event_hold): New function to store
11539 an event into kbd fifo, but with special handling of quit event;
11540 a quit event is saved for later, and further events are discarded
11541 until the saved quit event has been processed.
11542 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
11543 (gen_help_event): Store help event in kbd fifo.
11544 (NREAD_INPUT_EVENTS): Remove.
11545 (read_avail_input): Adapt to new read_socket_hook interface.
11546 Remove allocation and initialization of local input_event buffer,
11547 as read_socket_hook stores events directly in fifo. Allocate and
11548 initialize local hold_quit event to handle postponed quit event
11549 (and store it if set by kbd_buffer_store_event_hold).
11550
11551 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
11552 (gen_help_event): Fix prototype.
11553
11554 * macterm.c (XTread_socket): Remove bufp_r and
11555 numcharsp args. Add hold_quit arg.
11556 Rework to use just one, local, inev input_event. Store inev
11557 directly in fifo using kbd_buffer_store_event_hold.
11558
11559 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
11560 (read_input_waiting): Adapt to new read_socket_hook interface.
11561 Remove allocation and initialization of local input_event buffer,
11562 as read_socket_hook stores events directly in fifo. Allocate and
11563 initialize local hold_quit event to handle postponed quit event
11564 (and store it if set by kbd_buffer_store_event_hold).
11565
11566 * term.c (read_socket_hook): Fix arg list.
11567
11568 * termhooks.h (read_socket_hook): Fix prototype.
11569
11570 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
11571 numcharsp args. Add hold_quit arg.
11572 Rework to use just one, local, inev input_event. Store inev
11573 directly in fifo using kbd_buffer_store_event_hold.
11574
11575 * w32inevt.h (w32_console_mouse_position): Fix prototype.
11576
11577 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
11578 Add hold_quit arg. Rework to use just one, local, inev
11579 input_event. Store inev directly in fifo using
11580 kbd_buffer_store_event_hold. Update count in one place.
11581 Postpone call to gen_help_event until inev is stored; use new
11582 local do_help for this.
11583 Remove local emacs_event in handing of ButtonPress event; just use
11584 inev instead (so no reason to copy it later).
11585
11586 * xsmfns.c (x_session_check_input): Remove numchars arg.
11587
11588 * xterm.c (x_focus_changed, x_detect_focus_change):
11589 Remove numchars arg. Always store event into bufp arg.
11590 Return nothing. Callers changed accordingly.
11591 (glyph_rect): Simplify.
11592 (STORE_KEYSYM_FOR_DEBUG): New macro.
11593 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
11594 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
11595 (current_hold_quit) [USE_GTK]: Add.
11596 (event_handler_gdk): Adapt to new handle_one_xevent.
11597 (handle_one_xevent): Remove bufp_r and numcharsp args.
11598 Add hold_quit arg. Rework to use just one, local, inev
11599 input_event. Store inev directly in fifo using
11600 kbd_buffer_store_event_hold. Update count in one place.
11601 Postpone call to gen_help_event until inev is stored; use new
11602 local do_help for this.
11603 Simplify handling of keysyms (consolidate common code). Fix bug
11604 where count was updated with nchars instead of nbytes.
11605 Remove local emacs_event in handing of ButtonPress event; just use
11606 inev instead (so no reason to copy it later).
11607 Remove `out' label. Rename label `ret' to `done'; add various
11608 `goto done' to clarify code flow in deeply nested blocks.
11609 (x_dispatch_event): Simplify as handle_one_xevent now calls
11610 kbd_buffer_store_event itself.
11611 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
11612 arg. Call handle_one_xevent with new arglist. Store event from
11613 x_session_check_input in fifo.
11614 [USE_GTK]: Setup current_hold_quit.
11615 Decrement handling_signal before unblocking input.
11616 (x_initialize) [USE_GTK]: Initialize current_count.
11617
11618 * xterm.h (x_session_check_input): Fix prototype.
11619
11620 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11621
11622 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
11623
11624 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
11625 macgui.h).
11626
11627 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
11628
11629 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
11630 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
11631 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
11632 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
11633 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
11634 (Bitmap): Remove typedef.
11635 (Pixmap): Change int to GWorldPtr.
11636
11637 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
11638
11639 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
11640 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
11641 New #define to extract 16-bit depth color components from unsigned
11642 long representation.
11643 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
11644 colors used for masks.
11645 (struct mac_display_info): Add color_p. Remove n_cbits.
11646
11647 * macfns.c: Include sys/types.h and sys/stat.h.
11648 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
11649 Include QuickTime/QuickTime.h.
11650 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11651 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
11652 functions defined in macterm.c.
11653 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
11654 (ZPixmap): New #define for compatibility with xfns.c.
11655 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11656 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11657 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
11658 New functions.
11659 (four_corners_best, x_create_x_image_and_pixmap)
11660 (x_destroy_x_image, unwind_create_frame, x_disable_image)
11661 (x_edge_detection, init_color_table, colors_in_color_table)
11662 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
11663 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
11664 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
11665 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
11666 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
11667 long mixup.
11668 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
11669 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
11670 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
11671 (x_set_cursor_type, Fxw_color_values, valid_image_p)
11672 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
11673 (x_alloc_image_color, clear_image_cache, lookup_image)
11674 (x_find_image_file, xbm_read_bitmap_file_data)
11675 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
11676 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
11677 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
11678 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
11679 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
11680 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
11681 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
11682 #if 0.
11683 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
11684 #if 0. Free white_relief.gc and black_relief.gc.
11685 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
11686 New functions (from xfns.c).
11687 (Fx_create_frame): Record unwind_create_frame.
11688 (Fxw_display_color_p): Use dpyinfo->color_p.
11689 (Fx_display_grayscale_p, Fx_display_planes): Don't use
11690 dpyinfo->n_cbits.
11691 (Fx_display_color_cells): Use dpyinfo->n_planes;
11692 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
11693 (Qheuristic, cross_disabled_images, emboss_matrix)
11694 (laplace_matrix): New variables (from xfns.c).
11695 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
11696 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
11697 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
11698 (image_background_transparent): New function (from xfns.c).
11699 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
11700 (image_load_quicktime): Add declaration.
11701 [MAC_OSX] (image_load_quartz2d): Likewise.
11702 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
11703 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
11704 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
11705 (xbm_load_image_from_file, x_laplace_read_row)
11706 (x_laplace_write_row, pbm_read_file): Remove functions.
11707 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
11708 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
11709 (colors_in_color_table): Sync with xfns.c (although not used).
11710 (lookup_rgb_color): Don't lookup color table. Just do gamma
11711 correction.
11712 (COLOR_INTENSITY): New #define (from xfns.c).
11713 (x_disable_image): New function (from xfns.c).
11714 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
11715 (x_build_heuristic_mask): Sync with xfns.c.
11716 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
11717 (HAVE_PBM): Remove #ifdef.
11718 (pbm_load): Sync with xfns.c. Set img->width and img->height
11719 before IMAGE_BACKGROUND.
11720 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
11721 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
11722 Don't enclose with #if HAVE_PNG.
11723 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
11724 symbol _CGImageCreateWithPNGDataProvider is defined.
11725 Otherwise use image_load_quicktime.
11726 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
11727 [HAVE_PNG] (png_load): Sync with xfns.c.
11728 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
11729 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
11730 HAVE_JPEG.
11731 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
11732 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
11733 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
11734 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
11735 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
11736 (tiff_image_p, tiff_load): Don't enclose declarations with #if
11737 HAVE_TIFF.
11738 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
11739 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
11740 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
11741 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
11742 New functions (from xfns.c).
11743 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
11744 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
11745 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
11746 Don't enclose with #if HAVE_GIF.
11747 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
11748 animated gif. Otherwise use image_load_quicktime.
11749 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
11750 gif_DrawText to avoid conflict with QuickdrawText.h.
11751 [HAVE_GIF] (gif_load): Sync with xfns.c.
11752 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
11753 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
11754 Ghostscript is not supported yet).
11755 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
11756 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
11757 cross_disabled_images (from xfns.c). Remove #if 0 for supported
11758 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
11759 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
11760 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
11761 HAVE_PNG. Call EnterMovies to support animated gifs.
11762 Call init_image_func_pointer to bind a symbol
11763 _CGImageCreateWithPNGDataProvider if it is defined.
11764
11765 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
11766 (x_draw_bar_cursor): Sync declaration with xterm.c.
11767 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
11768 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
11769 graphics).
11770 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
11771 (mac_draw_line_to_pixmap, XCreatePixmap)
11772 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
11773 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
11774 New functions.
11775 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
11776 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
11777 Cast bits to char *.
11778 (reflect_byte): New function (from w32fns.c).
11779 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
11780 due to byte alignment.
11781 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
11782 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
11783 (XSetForeground): Remove static (now used in macfns.c).
11784 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
11785 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
11786 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
11787 (x_draw_glyph_string_box, x_draw_image_foreground)
11788 (x_draw_image_foreground_1, x_draw_image_glyph_string)
11789 (x_draw_stretch_glyph_string, x_draw_glyph_string)
11790 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
11791 Sync with xterm.c.
11792 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
11793 than the xterm.c version when a strictly horizontal or vertical
11794 line is drawn.
11795 (XTset_terminal_window): Add static.
11796 (x_make_frame_visible): Add UNBLOCK_INPUT.
11797 (x_free_frame_resources): New funcion (from xterm.c).
11798 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
11799 occurs in tool bar area.
11800 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
11801 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
11802 Initialize image cache.
11803 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
11804 Enclose unused functions with #if 0.
11805 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
11806 (decode_mac_font_name): New function to apply code conversions
11807 from a mac font name to an XLFD font name according to its script code.
11808 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
11809 font name to a mac font name according to REGISTRY and ENCODING fields.
11810 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
11811 whose name starts with `.'.
11812 (init_font_name_table): Use decode_mac_font_name. Add both
11813 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
11814 of a font is smJapanese.
11815 (mac_do_list_fonts): New function to list fonts that match a given
11816 pattern.
11817 (x_list_fonts, XLoadQueryFont): Use it.
11818 (XLoadQueryFont): Set rbearing field for each variable width
11819 character to avoid needless redraw.
11820 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
11821
11822 2004-02-26 Kim F. Storm <storm@cua.dk>
11823
11824 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
11825 as read_socket_hook handler on X aborts if buffer is too small
11826 and W32 handler doesn't always check buffer limit.
11827
11828 * xdisp.c (handle_single_display_prop): Handle left-fringe and
11829 right-fringe similar to a display margin image. Specifically,
11830 the characters having the fringe prop are no longer shown, and
11831 we use IT_IMAGE/next_element_from_image with image_id = -1 to
11832 do this. Set fringe bitmap face_id in it->face_id.
11833 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
11834 still realize it->face (i.e. the fringe bitmap face).
11835
11836 2004-02-25 Miles Bader <miles@gnu.org>
11837
11838 * xdisp.c (check_it): Check string/string_pos consistency.
11839 (init_iterator): Initialize string-related fields properly.
11840
11841 2004-02-11 Miles Bader <miles@gnu.org>
11842
11843 * xdisp.c (produce_image_glyph): Force negative descents to zero.
11844
11845 2004-02-10 Miles Bader <miles@gnu.org>
11846
11847 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
11848 BLOCK_INPUT can be nested, so it doesn't make much sense.
11849
11850 2004-02-24 Michael Mauger <mmaug@yahoo.com>
11851
11852 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
11853 (xbm_read_bitmap_data): Use unsigned char for image data.
11854
11855 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
11856
11857 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
11858
11859 2004-02-22 Jason Rumney <jasonr@gnu.org>
11860
11861 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
11862 correctly over other bitmaps.
11863
11864 2004-02-21 Eli Zaretskii <eliz@gnu.org>
11865
11866 * emacs.c (USAGE1): Split into two halves.
11867 (USAGE2): Second half of the old USAGE1.
11868 (USAGE3): Rename from USAGE2.
11869 (USAGE4): Rename from USAGE3.
11870
11871 2004-02-21 Juri Linkov <juri@jurta.org>
11872
11873 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
11874 Fix --multibyte. Move --help, --version to USAGE2. Add alias
11875 --file. Fix -f, -l. Sort options. Untabify.
11876 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
11877
11878 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
11879
11880 * category.c (Fdefine_category, Fcategory_docstring)
11881 (Fget_unused_category, Fset_category_table)
11882 (Fcategory_set_mnemonics): Doc fixes.
11883
11884 2004-02-20 Kim F. Storm <storm@cua.dk>
11885
11886 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
11887 The following changes are relative to the 2004-01-21 revision.
11888 (NREAD_INPUT_EVENTS): Define as max number of input events to read
11889 in one call to read_socket_hook. Value is 8.
11890 (read_avail_input): Separate and rework handling of read_socket_hook
11891 and non-read_socket_hook cases. Use smaller input_event buffer
11892 in read_socket_hook case, and repeat if full buffer is read.
11893 Use new local variable 'discard' to skip input after C-g.
11894 In non-read_socket_hook case, just use a single input_event, and
11895 call kbd_buffer_store_event on the fly for each character.
11896
11897 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11898
11899 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
11900 Remove unused `gu' alternative.
11901
11902 2004-02-19 Andreas Schwab <schwab@suse.de>
11903
11904 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
11905 warning.
11906
11907 2004-02-18 Kim F. Storm <storm@cua.dk>
11908
11909 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
11910 Fix last change.
11911
11912 2004-02-17 Kim F. Storm <storm@cua.dk>
11913
11914 * xdisp.c (fast_find_position): Fix return value of new version;
11915 it was inverted compared to the 21.1 version.
11916 (get_window_cursor_type): Don't look at glyph if NULL.
11917 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
11918
11919 * keyboard.c: Rework previous change; it didn't consider that the
11920 buf array was allocated on the stack.
11921 (prev_read): Remove variable.
11922 (read_avail_input_buf): New static event buffer array.
11923 (in_read_avail_input): New static variable to handle re-entrancy.
11924 (read_avail_input): Change buf to pinter to read_avail_input_buf.
11925 Use in_read_avail_input to handle re-entrance; when re-entered,
11926 fully initialize and use tmp_buf array instead of read_avail_input_buf.
11927 Do not initialize read_avail_input_buf in full here; instead assume it
11928 is always cleared on entry. To ensure that, we clear (just) the
11929 entries that were used before we return.
11930 (init_keyboard): Initialize read_avail_input_buf here.
11931
11932 2004-02-16 Jesper Harder <harder@ifa.au.dk>
11933
11934 * cmds.c (Fend_of_line): Doc fix.
11935
11936 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
11937
11938 * keyboard.c (prev_read): New static variable.
11939 (read_avail_input): Use it to zero out only those slots in buf[]
11940 that were used last time we were called.
11941
11942 2004-02-16 Eli Zaretskii <eliz@gnu.org>
11943
11944 * Makefile.in (obj): Move fringe.o from here...
11945 (XOBJ, MAC_OBJ): ...to here.
11946
11947 2004-02-16 Stephen Eglen <stephen@gnu.org>
11948
11949 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
11950
11951 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
11952
11953 * data.c (Fbyteorder):
11954 * fringe.c (Fdefine_fringe_bitmap):
11955 * xdisp.c (handle_single_display_prop):
11956 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
11957
11958 2004-02-16 Jason Rumney <jasonr@gnu.org>
11959
11960 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
11961
11962 2004-02-15 Steven Tamm <steventamm@mac.com>
11963
11964 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
11965 controlling emulation of a three button mouse with option and
11966 command keys.
11967 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
11968 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
11969
11970 2004-02-15 Kim F. Storm <storm@cua.dk>
11971
11972 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
11973
11974 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
11975 Perform byte-swapping.
11976
11977 2004-02-14 Kim F. Storm <storm@cua.dk>
11978
11979 * dispextern.h (struct draw_fringe_bitmap_params): Change member
11980 bits from char to short to facilitate wider bitmaps.
11981 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
11982 member.
11983
11984 * fringe.c (struct fringe_bitmap): Change member bits from char to
11985 short to facilitate 16 bits wide bitmaps. Modify all standard
11986 bitmaps accordingly.
11987 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
11988 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
11989 (draw_fringe_bitmap): Ditto.
11990 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
11991 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
11992 handle up to 16 bits wide bitmaps.
11993 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
11994 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
11995
11996 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
11997 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
11998 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
11999
12000 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
12001 so it is no longer necessary to expand them here.
12002
12003 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
12004
12005 2004-02-12 Kim F. Storm <storm@cua.dk>
12006
12007 * window.c (Fwindow_fringes): Doc fix.
12008
12009 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12010
12011 * xselect.c (x_get_foreign_selection): Add new optional parameter
12012 time_stamp.
12013 (Fx_get_selection_internal): Ditto, pass time_stamp to
12014 x_get_foreign_selection.
12015
12016 * data.c (Fbyteorder): New function.
12017
12018 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12019
12020 * atimer.c: Move include stdio.h to same place as in other files.
12021
12022 * region-cache.c: Ditto.
12023
12024 * sysdep.c: Ditto.
12025
12026 * xfaces.c: Ditto.
12027
12028 2004-02-09 Sam Steingold <sds@gnu.org>
12029
12030 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
12031
12032 2004-02-09 Kim F. Storm <storm@cua.dk>
12033
12034 * fringe.c: New file. Move original fringe related declarations
12035 and code from dispextern.h and xdisp.c here.
12036 Rework code to support user defined fringe bitmaps, redefining
12037 standard bitmaps, ability to overlay user defined bitmap with
12038 overlay arrow bitmap, and add faces to bitmaps.
12039 (Voverflow_newline_into_fringe): Declare here.
12040 (enum fringe_bitmap_align): New enum.
12041 (..._bits): All bitmaps are now defined without bitswapping; that
12042 is now done in init_fringe_once (if necessary).
12043 (standard_bitmaps): New array with specifications for the
12044 standard fringe bitmaps.
12045 (fringe_faces): New array.
12046 (valid_fringe_bitmap_id_p): New function.
12047 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
12048 (draw_fringe_bitmap): New function which draws fringe bitmap,
12049 possibly overlaying bitmap with cursor in right fringe or the
12050 overlay arrow in the left fringe.
12051 (update_window_fringes): Do not handle overlay arrow here.
12052 Compare and copy fringe bitmap faces.
12053 (init_fringe_bitmap): New function.
12054 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
12055 define and destroy user defined fringe bitmaps.
12056 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
12057 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
12058 (syms_of_fringe): New function. Defsubr new DEFUNs.
12059 DEFVAR_LISP Voverflow_newline_into_fringe.
12060 (init_fringe_once, init_fringe): New functions.
12061 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
12062
12063 * Makefile.in (obj): Add fringe.o.
12064 (fringe.o): New dependencies.
12065
12066 * dispextern.h (FRINGE_ID_BITS): New definition for number of
12067 bits allocated to hold a fringe number. Increase number of bits
12068 from 4 to 8 to allow user defined fringe bitmaps.
12069 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
12070 left_user_fringe_face_id, right_user_fringe_bitmap,
12071 right_user_fringe_face_id.
12072 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
12073 Move to new file fringe.c.
12074 (MAX_FRINGE_BITMAPS): Define here.
12075 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
12076 and overlay_p. Change member which to int.
12077 (struct redisplay_interface): New members define_fringe_bitmap
12078 and destroy_fringe_bitmap.
12079 (valid_fringe_bitmap_id_p): Add prototype.
12080 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
12081
12082 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
12083 arrows.
12084 (update_frame): Do flush_display if force_flush_display_p to
12085 ensure display (specifically fringes) are updated in a timely
12086 manner when resizing the frame by dragging the mouse.
12087 (update_window_line): Update row if overlay arrow changed.
12088 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
12089 or overlay arrow changed.
12090
12091 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
12092 syms_of_fringe, and init_fringe.
12093
12094 * frame.h (struct frame): New member force_flush_display_p.
12095
12096 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
12097 Add prototypes.
12098
12099 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
12100 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
12101 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
12102 Use cursor color for displaying cursor in fringe.
12103 (x_redisplay_interface): Add null handlers for
12104 define_fringe_bitmap and destroy_fringe_bitmap functions.
12105
12106 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
12107 xterm.c to handle overlayed fringe bitmaps and to use cursor color
12108 for displaying cursor in fringe.
12109 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
12110 specific functions to define and destroy fringe bitmaps in fringe_bmp.
12111 (w32_redisplay_interface): Add them to redisplay_interface.
12112 (w32_term_init): Call w32_init_fringe instead of explicitly
12113 defining fringe bitmaps in fringe_bmp array.
12114 (x_delete_display): Call w32_reset_fringes instead of explicitly
12115 destroying fringe bitmaps in fringe_bmp array.
12116
12117 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
12118 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
12119 (continued_bits, continuation_bits, ov_bits, first_line_bits)
12120 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
12121 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
12122 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
12123 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
12124 Move fringe handling vars and code to new file fringe.c.
12125 (handle_display_prop): Handle left-fringe and right-fringe
12126 display properties; store user fringe bitmaps in iterator.
12127 (move_it_in_display_line_to): Handle cursor in fringe at eob.
12128 (clear_garbaged_frames): Set force_flush_display_p if resized.
12129 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
12130 (display_line): Handle cursor in fringe at eob.
12131 (display_line): Set row user fringe bitmaps from iterator.
12132
12133 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
12134 Use cursor color for displaying cursor in fringe.
12135 (x_redisplay_interface): Add null handlers for
12136 define_fringe_bitmap and destroy_fringe_bitmap functions.
12137
12138 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12139
12140 * macfns.c (Fx_change_window_property): Make doc string and
12141 parameters same as for X version.
12142
12143 * w32fns.c (Fx_change_window_property): Ditto.
12144
12145 2004-02-07 Kim F. Storm <storm@cua.dk>
12146
12147 * xdisp.c (hscroll_window_tree): Position cursor near to right
12148 margin in hscrolled window when jumping to end of line (rather
12149 than centering cursor).
12150
12151 * process.c (wait_reading_process_input): Don't do adaptive read
12152 buffering if waiting for a specific process.
12153
12154 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
12155
12156 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
12157 (Fread_minibuffer, Feval_minibuffer)
12158 (Fread_string, Fread_no_blanks_input)
12159 (Fcompleting_read): Doc fixes.
12160 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
12161 completion-regexp-list. Define Qcase_fold_search and staticpro it.
12162 (read_minibuf): Fix initial comment.
12163 (Ftry_completion, Fall_completions, Ftest_completion): Bind
12164 case-fold-search to the value of completion-ignore-case when
12165 checking completion-regexp-list.
12166 (Fdisplay_completion_list): Make it handle arguments that are
12167 symbols. Doc fix.
12168
12169 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12170
12171 * xterm.h: Add declaration of free_frame_menubar.
12172
12173 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
12174 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
12175 (Fx_change_window_property): Add declaration of parameters type and
12176 format. Remove unused variable cons.
12177
12178 * xselect.c: Include stdio.h.
12179
12180 2004-02-05 Kenichi Handa <handa@m17n.org>
12181
12182 * fns.c (Fset_char_table_range): Fix previous change.
12183
12184 * buffer.c (Fset_buffer_multibyte): Fix docstring.
12185
12186 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
12187
12188 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
12189
12190 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
12191
12192 * keymap.c (Vmouse_events): Rename from Vmenu_events.
12193 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
12194
12195 2004-02-04 Kenichi Handa <handa@m17n.org>
12196
12197 * fns.c (Fset_char_table_range): Handle charsets ascii,
12198 eight-bit-control, and eight-bit-graphic correctly.
12199
12200 2004-02-03 Jason Rumney <jasonr@gnu.org>
12201
12202 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
12203
12204 * w32fns.c (x_to_w32_font): Likewise.
12205
12206 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12207
12208 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
12209 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
12210
12211 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
12212 ClientMessages.
12213
12214 * xselect.c: Include termhooks.h and X11/Xproto.h
12215 (x_check_property_data, x_fill_property_data)
12216 (x_property_data_to_lisp, mouse_position_for_drop)
12217 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
12218 (Fx_send_client_event): Move here from xfns.c.
12219 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
12220
12221 * xfns.c (x-send-client-message): Move to xselect.c
12222 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
12223 OUTER_P.
12224 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
12225 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
12226 if vector_ret_p is true.
12227 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
12228
12229 2004-02-02 Eli Zaretskii <eliz@gnu.org>
12230
12231 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
12232 basename of FILE relative to it, not FILE itself.
12233
12234 2004-02-02 Kenichi Handa <handa@m17n.org>
12235
12236 * coding.c (coding_restore_composition): Check invalid
12237 composition data more rigidly.
12238
12239 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
12240
12241 * fileio.c (Fread_file_name_internal): Correctly handle the case
12242 where insert-default-directory is nil.
12243 (Fread_file_name): Always return an empty string if the user exits
12244 with an empty minibuffer. Adapt the docstring accordingly.
12245 (syms_of_fileio): Adapt the docstring of insert-default-directory
12246 to the change in Fread_file_name.
12247
12248 2004-01-29 Eli Zaretskii <eliz@gnu.org>
12249
12250 * alloca.c [!alloca]: Fix the prototype for xfree.
12251
12252 2004-01-29 Kenichi Handa <handa@m17n.org>
12253
12254 * fns.c (string_char_to_byte): Optimize for ASCII only string.
12255 (string_byte_to_char): Likewise.
12256
12257 2004-01-28 Peter Runestig <peter@runestig.com>
12258
12259 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
12260
12261 2004-01-27 Steven Tamm <steventamm@mac.com>
12262
12263 * unexmacosx.c (unexec_copy): Do not copy more than was
12264 requested to prevent overwriting during unexec.
12265
12266 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12267
12268 * process.c (sigchld_handler): Add comment about not calling malloc.
12269
12270 * process.h: Add extern to synch_process_termsig.
12271
12272 2004-01-27 Steven Tamm <steventamm@mac.com>
12273
12274 * macterm.c (make_mac_frame, make_mac_terminal_frame):
12275 Move setting of scroll bars from make_mac_frame to
12276 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
12277
12278 2004-01-26 Richard M. Stallman <rms@gnu.org>
12279
12280 * search.c (Freplace_match): Handle nonexistent
12281 back-references properly.
12282
12283 2004-01-03 Richard M. Stallman <rms@gnu.org>
12284
12285 * window.c (decode_any_window): New function.
12286 (Fwindow_height, Fwindow_width, Fwindow_edges)
12287 (Fwindow_pixel_edges, Fwindow_inside_edges)
12288 (Fwindow_inside_pixel_edges): Use decode_any_window.
12289
12290 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12291
12292 * process.h: synch_process_termsig new variable.
12293
12294 * callproc.c: Define synch_process_termsig.
12295 (Fcall_process): Initiate synch_process_termsig to zero and
12296 check if non-zero and get signal name after subprocess has ended.
12297
12298 * process.c (sigchld_handler): Set synch_process_termsig
12299 if terminated by a signal. synch_process_death setting removed.
12300
12301 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
12302
12303 2004-01-26 Andreas Schwab <schwab@suse.de>
12304
12305 * print.c (print_preprocess): Declare size as EMACS_INT to not
12306 lose bits.
12307 (print_object): Likewise.
12308 * alloc.c (Fpurecopy): Likewise.
12309
12310 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
12311
12312 * window.c (Fwindow_minibuffer_p): Doc fix.
12313
12314 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
12315
12316 * editfns.c (Fformat): Make both passes accept the same set of flags.
12317
12318 2004-01-23 Kenichi Handa <handa@m17n.org>
12319
12320 * fns.c (Fmd5): If OBJECT is a buffer different from the current
12321 one, set buffer to OBJECT temporarily.
12322
12323 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
12324
12325 * keyboard.c (kbd_buffer_gcpro): Remove.
12326 (kbd_buffer_store_event, clear_event, Fdiscard_input)
12327 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
12328 Don't initialize and/or maintain the variable any more. It was made
12329 redundant by my commit of 2003-06-15.
12330
12331 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
12332
12333 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12334
12335 * lisp.h: Add undef DECL_ALIGN.
12336
12337 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
12338
12339 * process.c (wait_reading_process_input) [SYNC_INPUT]:
12340 Check interrupt_input_pending explicitly.
12341
12342 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
12343
12344 * keyboard.c (handle_async_input): New fun,
12345 extracted from input_available_signal.
12346 (input_available_signal, reinvoke_input_signal): Use it.
12347
12348 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
12349
12350 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
12351
12352 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
12353 manipulation macros for when tags are in the lower bits.
12354 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
12355 (DECL_ALIGN): New macro.
12356 (DEFUN): Use it.
12357
12358 * lisp.h [ENABLE_CHECKING]: Don't force union type.
12359
12360 * s/darwin.h (__attribute__): Remove outdated workaround.
12361
12362 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
12363
12364 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
12365 Don't check range of malloc address.
12366 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
12367
12368 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
12369
12370 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
12371
12372 2004-01-19 Kenichi Handa <handa@m17n.org>
12373
12374 * fontset.c (fontset_font_pattern): Fix previous change.
12375
12376 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
12377
12378 * xdisp.c (Voverflow_newline_into_fringe)
12379 (move_it_in_display_line_to, redisplay_internal)
12380 (update_window_fringes, redisplay_window, display_line, window):
12381 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
12382 that it compiles without a window-system.
12383 * dispnew.c (direct_output_for_insert, update_window): Likewise.
12384
12385 2004-01-16 Kim F. Storm <storm@cua.dk>
12386
12387 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
12388
12389 * buffer.c (init_buffer_once): Set buffer_defaults and
12390 buffer_local_flags for indicate_buffer_boundaries.
12391 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
12392 default- variable for it.
12393
12394 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
12395 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
12396 New members exact_window_width_line_p and cursor_in_fringe_p for
12397 overflowing newlines into right fringe.
12398 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
12399 and indicate_bottom_line_p for buffer boundaries and scrolling.
12400 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
12401 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
12402 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
12403 and HOLLOW_SQUARE_BITMAP.
12404 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
12405 Add prototypes.
12406
12407 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
12408 instead of related indicator fields.
12409 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
12410 (direct_output_for_insert): Handle exact width lines like
12411 contined lines. Call update_window_fringes.
12412 (update_window): Call update_window_fringes.
12413 (scrolling_window): Don't skip desired rows with changed bitmaps.
12414 Check if fringe bitmaps changes when assigning scrolled rows.
12415
12416 * xdisp.c (Voverflow_newline_into_fringe): New variable.
12417 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
12418 (move_it_in_display_line_to): Overflow newline into fringe for
12419 rows that are exactly as wide as the window.
12420 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
12421 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
12422 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
12423 (fringe_bitmaps): Add new bitmaps.
12424 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
12425 Select proper bitmap for cursor in fringe when appropriate.
12426 Handle alignment of bitmap to top or bottom of row.
12427 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
12428 done by update_window_fringes.
12429 (update_window_fringes, draw_window_fringes): New functions.
12430 (redisplay_internal): Call update_window_fringes in case only
12431 cursor row is updated.
12432 (redisplay_window): Call update_window_fringes.
12433 Explicitly call draw_window_fringes if redisplay was done using
12434 the current matrix or the overlay arrow is in the window.
12435 (try_window_reusing_current_matrix): Mark scrolled rows for
12436 fringe update (to update buffer-boundaries / scrolling icons).
12437 (find_last_unchanged_at_beg_row): Handle exact width lines line
12438 continued lines.
12439 (display_line): Overflow newline into fringe for rows that are
12440 exactly as wide as the window. Don't append space for newline
12441 in this case.
12442 (notice_overwritten_cursor): Explicitly clear cursor bitmap
12443 in fringe as if it had been overwritten.
12444 (erase_phys_cursor): Erase cursor bitmap in fringe.
12445 (syms_of_xdisp): Mark show-trailing-whitespace and
12446 void-text-area-pointer as user options.
12447 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
12448
12449 * xterm.c (x_update_window_end): Call draw_window_fringes.
12450 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
12451 in row instead of actually drawing fringe bitmaps.
12452 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
12453 (x_draw_window_cursor): Draw cursor in fringe.
12454
12455 * w32term.c (x_update_window_end): Call draw_window_fringes.
12456 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
12457 in row instead of actually drawing fringe bitmaps.
12458 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
12459 (w32_draw_window_cursor): Draw cursor in fringe.
12460
12461 * macterm.c (x_update_window_end): Call draw_window_fringes.
12462 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
12463 in row instead of actually drawing fringe bitmaps.
12464 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
12465 (mac_draw_window_cursor): Draw cursor in fringe.
12466
12467 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12468
12469 * xterm.c (handle_one_xevent): Don't handle characters that are part
12470 of an old style (XLookupString) compose sequence.
12471
12472 2004-01-15 Kenichi Handa <handa@m17n.org>
12473
12474 * search.c (Freplace_match): Use make_multibyte_string or
12475 make_unibyte_string according to the buffer multibyteness.
12476
12477 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
12478
12479 * alloc.c (struct interval_block, struct string_block)
12480 (struct symbol_block, struct marker_block, live_string_p)
12481 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
12482 Better preserve alignment for objects in blocks.
12483 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
12484
12485 * lread.c (defvar_per_buffer): Remove dead declaration.
12486
12487 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
12488 space size.
12489
12490 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12491
12492 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
12493 if a key press should pop down. Only pop down if a key is pressed
12494 outside the menu/dialog.
12495 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
12496 popup_get_selection.
12497 (create_and_show_dialog): Pass 1 for down_on_keypress to
12498 popup_get_selection.
12499
12500 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12501
12502 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
12503 BLOCK/UNBLOCK_INPUT.
12504
12505 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12506
12507 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
12508 specified.
12509
12510 2004-01-08 Kenichi Handa <handa@m17n.org>
12511
12512 * editfns.c (Fformat): Fix '&' to '&&'.
12513
12514 2004-01-08 Andreas Schwab <schwab@suse.de>
12515
12516 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
12517 size if PSEUDOVECTOR_FLAG is set.
12518
12519 2004-01-07 Kenichi Handa <handa@m17n.org>
12520
12521 * charset.c (Fdeclare_equiv_charset): Fix docstring.
12522
12523 * fontset.c (fontset_ref_via_base): Fix previous change.
12524
12525 2004-01-07 Kim F. Storm <storm@cua.dk>
12526
12527 * process.c (read_process_output): Only activate adaptive
12528 buffering if we read less than 256 bytes at a time.
12529
12530 2004-01-06 Kim F. Storm <storm@cua.dk>
12531
12532 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
12533 object and image object. Return glyph width and height.
12534 (mode_line_string, marginal_area_string): Ditto.
12535
12536 * dispextern.h (buffer_posn_from_coords, mode_line_string)
12537 (marginal_area_string): Fix prototypes.
12538
12539 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
12540 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
12541 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
12542
12543 * keyboard.c (make_lispy_position): Use modified mode_line_string,
12544 buffer_posn_from_coords, and marginal_area_string functions to
12545 include both string object and image object in the lispy position.
12546 Also add actual glyph width and height to position.
12547 (read_key_sequence): Use real buffer position from mouse
12548 event to find keymap property even when click is in marginal area.
12549
12550 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
12551 mode_line_string and marginal_area_string functions to handle
12552 both string object and image object properties.
12553
12554 2004-01-06 Andreas Schwab <schwab@suse.de>
12555
12556 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
12557 character.
12558
12559 2004-01-02 Andreas Schwab <schwab@suse.de>
12560
12561 * macterm.c (emacs_options, x_initialized, same_x_server):
12562 Remove unused (and duplicated) definitions.
12563
12564 2004-01-02 Kim F. Storm <storm@cua.dk>
12565
12566 * process.h (struct Lisp_Process): New members for adaptive read
12567 buffering: adaptive_read_buffering, read_output_delay, and
12568 read_output_skip.
12569
12570 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
12571 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
12572 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
12573 (process_output_delay_count, process_output_skip): New vars.
12574 (Vprocess_adaptive_read_buffering): New variable.
12575 (make_process): Initialize adaptive read buffering members.
12576 (Fstart_process): Set adaptive_read_buffering member.
12577 (deactivate_process): Cleanup adaptive read buffering.
12578 (wait_reading_process_input): Temporarily omit delayed
12579 subprocesses from the set of file descriptors to read from;
12580 adjust the select timeout if we skipped any subprocesses.
12581 (read_process_output): Increase adaptive read buffering delay if
12582 we read less than a full buffer; reduce delay when we read a
12583 full buffer.
12584 (send_process): Simplify using local Lisp_Process var.
12585 Reset adaptive read buffering delay after write.
12586 (init_process): Initialize process_output_delay_count and
12587 process_output_skip.
12588 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
12589
12590 2004-01-01 Jason Rumney <jasonr@gnu.org>
12591
12592 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
12593
12594 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
12595
12596 * print.c (Ferror_message_string): Add hyperlink in the docstring
12597 to the definition of `signal' in the Elisp manual.
12598 * eval.c (Fsignal): Ditto.
12599
12600 2003-12-29 James Clark <jjc@jclark.com>
12601
12602 * fns.c (internal_equal): Return t for two NaN arguments.
12603
12604 2003-12-29 Richard M. Stallman <rms@gnu.org>
12605
12606 * data.c (store_symval_forwarding): Handle setting
12607 default-fill-column, etc., by changing the value in
12608 buffers that use the default.
12609
12610 * minibuf.c (Fset_minibuffer_window): Doc fix.
12611
12612 * fileio.c (choose_write_coding_system): Ignore auto_saving
12613 if using the visited file for auto saves.
12614 (Fwrite_region): Don't update SAVE_MODIFF
12615 if auto-saving in visited file.
12616
12617 2003-12-29 Kenichi Handa <handa@m17n.org>
12618
12619 * dispextern.h (face_font_available_p): Extern it.
12620
12621 * fontset.c (Voverriding_fontspec_alist): New variable.
12622 (lookup_overriding_fontspec): New function.
12623 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
12624 (fontset_font_pattern): Likewise.
12625 (regulalize_fontname): New function.
12626 (Fset_fontset_font): Call regulalize_fontname.
12627 (Fset_overriding_fontspec_internal): New function.
12628 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
12629 Defsubr Sset_overriding_fontspec_internal.
12630
12631 * xfaces.c (face_font_available_p): New function.
12632
12633 2003-12-28 Richard M. Stallman <rms@gnu.org>
12634
12635 * buffer.c (Fother_buffer): Don't crash if BUF is nil
12636 or if its name is nil.
12637
12638 * buffer.c (Fkill_buffer): Don't delete auto-save file
12639 if it's the same as the visited file.
12640
12641 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
12642
12643 * coding.c (Fcheck_coding_system): Doc fix.
12644
12645 2003-12-28 Kim F. Storm <storm@cua.dk>
12646
12647 * Makefile.in (eval.o): Depend on dispextern.h.
12648
12649 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
12650 image glyph using image's ascent.
12651 (mode_line_string): Return image glyph as object clicked on.
12652 Adjust y0 for image glyph using image's ascent.
12653
12654 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
12655 (struct glyph): New members, ascent and descent. Used to save
12656 this glyph's ascent and descent, instead of having.
12657 (struct glyph): Declare member face_id using FACE_ID_BITS.
12658 (find_hot_spot): Add prototype.
12659
12660 * keyboard.c (Qimage): Remove extern (now in lisp.h).
12661 (QCmap): Declare extern.
12662 (make_lispy_position): When position is inside image hot-spot,
12663 use hot-spot element's id as posn element.
12664
12665 * lisp.h (IMAGEP): New macro to test for image object type.
12666 (Qimage): Declare extern.
12667
12668 * macfns.c (Qimage): Remove extern (now in lisp.h).
12669 (valid_image_p, parse_image_spec): Use IMAGEP macro.
12670
12671 * macterm.c (Qface, Qmouse_face): Remove unused externs.
12672
12673 * w32fns.c (Qimage): Remove extern (now in lisp.h).
12674 (valid_image_p, parse_image_spec): Use IMAGEP macro.
12675
12676 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
12677
12678 * w32term.c (Qface, Qmouse_face): Remove unused externs.
12679
12680 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
12681 pointer types.
12682 (Qrelative_width, Qalign_to): Remove unused variables.
12683 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
12684 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
12685 image maps.
12686 (x_y_to_hpos_vpos): Return glyph relative coordinates through
12687 new dx and dy args.
12688 Remove buffer_only_p arg (always 0). Simplify code accordingly.
12689 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
12690 than row's ascent and height, to get sensible height on tall rows.
12691 (build_desired_tool_bar_string): Remove Qimage extern.
12692 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
12693 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
12694 image glyph is alone on the last line.
12695 (append_glyph, append_composite_glyph, produce_image_glyph)
12696 (append_stretch_glyph): Set glyph's ascent and descent.
12697 (on_hot_spot_p): New function to check if position is inside an
12698 rectangular, circular, or polygon-shaped image hot-spot,
12699 (find_hot_spot): New function to search for image hot-spot.
12700 (Flookup_image_map): New defun to search for image hot-spot.
12701 (define_frame_cursor1): New aux function to determine frame pointer.
12702 (note_mode_line_or_margin_highlight, note_mouse_highlight):
12703 Handle `pointer' text property and :pointer image property to
12704 control frame pointer shape. Detect image hot-spots for pointer
12705 and help_echo properties. Use define_frame_cursor1.
12706 (note_mouse_highlight): Use Vvoid_text_area_pointer.
12707 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
12708 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
12709
12710 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
12711
12712 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
12713 (Qimage): Remove extern (now in lisp.h).
12714 (valid_image_p, parse_image_spec): Use IMAGEP macro.
12715
12716 * xmenu.c (show_help_event): Remove unused code.
12717
12718 * xterm.c (Qface, Qmouse_face): Remove unused externs.
12719 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
12720 row's ascent and descent, to get a sensible height on tall rows.
12721
12722 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
12723
12724 * minibuf.c (Fcompleting_read): Undo previous change.
12725
12726 2003-12-25 Lars Hansen <larsh@math.ku.dk>
12727
12728 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
12729 Arguments GCPRO'ed in call to file name handler.
12730
12731 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
12732
12733 * termcap.c (tgetst1): Scan for "%pN"; if all
12734 N are continuous in [1,9], remove all "%pN".
12735
12736 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12737
12738 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
12739
12740 * xfaces.c (lface_fully_specified_p): Take into account that
12741 MAC OS always have unspecified stipple.
12742
12743 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
12744
12745 * tparam.c (tparam1): Add handling for `%pN', which
12746 means use param N for the next substitution.
12747
12748 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
12749
12750 * xfaces.c (Fcolor_gray_p): Fix omission bug:
12751 In case `frame' is nil, consult the selected frame.
12752 (Fcolor_supported_p): Likewise.
12753
12754 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
12755
12756 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
12757 Doc fixes.
12758
12759 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
12760 and an integer. Adapt the introductory comment accordingly.
12761 (Fread_from_minibuffer): Delete code moved into read_minibuf.
12762 Doc fix.
12763 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
12764 read_minibuf.
12765 (Fcompleting_read): Delete code moved into read_minibuf.
12766 (Ftest_completion): Make it handle obarrays and hash tables correctly.
12767
12768 2003-12-03 Kenichi Handa <handa@m17n.org>
12769
12770 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
12771 encoding sequence.
12772
12773 2003-12-01 Kenichi Handa <handa@m17n.org>
12774
12775 * composite.c (syms_of_composite): Don't make the compostion hash
12776 table week.
12777
12778 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
12779
12780 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
12781 * textprop.c (Fget_char_property_and_overlay): New function.
12782 (syms_of_textprop): Defsubr it.
12783
12784 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12785
12786 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
12787 to compile on terminal configuration.
12788
12789 * fileio.c (Fread_file_name): Check use_file_dialog also before
12790 calling Fx_file_dialog.
12791
12792 * fns.c (use_file_dialog): New variable.
12793 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
12794
12795 2003-11-29 Kim F. Storm <storm@cua.dk>
12796
12797 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
12798 (syms_of_msdos): Don't intern and staticpro them.
12799
12800 2003-11-27 Kim F. Storm <storm@cua.dk>
12801
12802 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
12803 coordinates relative to glyph at posn. If glyph is an image,
12804 return that as object at posn. Callers changed.
12805 (mode_line_string, marginal_area_string): Calculate and return
12806 pixel coordinates relative to glyph. Callers changed.
12807
12808 * dispextern.h (buffer_posn_from_coords, mode_line_string)
12809 (marginal_area_string): Fix prototypes.
12810 (window_box_left_offset, window_box_right_offset): Add prototypes.
12811
12812 * frame.h (get_specified_cursor_type, get_window_cursor_type):
12813 Remove prototypes.
12814
12815 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
12816
12817 * keyboard.c (make_lispy_position): Add x and y coordinates
12818 relative to the current glyph as 7th element of position.
12819 If glyph is an image, return it in the object element.
12820 (read_key_sequence): Skip checks for keymap property in cases
12821 where POSN_STRING is not a string (e.g. an image).
12822
12823 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
12824 (Vshow_text_cursor_in_void): New variable.
12825 (glyph_to_pixel_coords): Don't use negative hpos.
12826 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
12827 (append_stretch_glyph): Change ascent arg to be actual value
12828 in pixels rather than ratio to height. Callers changed.
12829 (calc_pixel_width_or_height): New aux function, implementing
12830 pixel based artihmetic for glyph widths and heights.
12831 (produce_stretch_glyph): Use calc_pixel_width_or_height for
12832 :width, :height, :align-to, and :ascent, thus allowing these to
12833 be specified in pixels as well as multiples of characters.
12834 Don't produce stretch glyphs with zero width or height.
12835 (get_specified_cursor_type): Declare static.
12836 (get_window_cursor_type): Declare static. Add glyph arg to be
12837 able to know when cursor is on an image; always substitute
12838 hollow-box cursor for filled-box cursor on images, to avoid
12839 negative images and flicker when blinking the cursor.
12840 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
12841 (note_mode_line_or_margin_highlight): Use non-text cursor rather
12842 than vertical scroll-bar cursor in display margins.
12843 (note_mouse_highlight): Use non-text cursor rather than text
12844 cursor in fringes and over images in the text area.
12845 Use non-text cursor when mouse pointer is outside editable text,
12846 i.e. in the void after end-of-line or end-of-buffer; this was
12847 already done for W32, but is now standard for all systems --
12848 user can toggle show-text-cursor-in-void to get old behaviour.
12849 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
12850 Vdisplay_pixels_per_inch.
12851
12852 2003-11-25 Andreas Schwab <schwab@suse.de>
12853
12854 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
12855 EMACS_INT to not lose bits.
12856 (Ffillarray): Don't set bits beyond the size of a bool vector.
12857
12858 2003-11-25 Kim F. Storm <storm@cua.dk>
12859
12860 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
12861 define this defun on systems that cannot use stderr as lvalue.
12862
12863 2003-11-24 Gerd Moellmann <gerd@gnu.org>
12864
12865 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
12866 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
12867 ld's default is incompatible with unexec.
12868
12869 2003-11-23 Kim F. Storm <storm@cua.dk>
12870
12871 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
12872 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
12873 (Fforce_window_update): New defun.
12874 (syms_of_window): Defsubr it.
12875 (Fset_window_margins, Fset_window_fringes): Doc fix.
12876
12877 * print.c (Fredirect_debugging_output): New defun.
12878 (syms_of_print): Defsubr it.
12879
12880 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
12881
12882 * fns.c (Fset_char_table_parent): Doc fix.
12883
12884 2003-11-22 Kim F. Storm <storm@cua.dk>
12885
12886 * dispnew.c (buffer_posn_from_coords): Return actual row/column
12887 for glyph clicked on, rather than (unused) pixel positions.
12888 (mode_line_string, marginal_area_string): Change X and Y args to
12889 pointers for returning actual row/column for glyph clicked on.
12890 Simplify and optimize loops.
12891
12892 * dispextern.h (mode_line_string, marginal_area_string):
12893 Update prototypes.
12894
12895 * keyboard.c (make_lispy_position): New function for generating
12896 mouse click positions from frame and pixel coordinates.
12897 Enhanced to return buffer position and actual row/column for
12898 events outside the text area using updated mode_line_string and
12899 marginal_area_string functions.
12900 Return left-fringe and right-fringe clicks as such, rather than
12901 clicks in text area.
12902 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
12903 pixel_to_glyph_coords, as we never use the results.
12904 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
12905 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
12906 Eliminate unused code in WHEEL_EVENT handling.
12907 (make_lispy_movement): Use make_lispy_position.
12908
12909 * window.c (coordinates_in_window): Remove redundant tests.
12910 Fix returned X pixel value for left-margin.
12911
12912 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
12913 mode_line_string and marginal_area_string parameters.
12914
12915 2003-11-22 Lars Hansen <larsh@math.ku.dk>
12916
12917 * w32.c (struct the_group, getgrgid): Add.
12918 * mac.c (struct my_group, getgrgid): Add.
12919
12920 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
12921
12922 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
12923
12924 2003-11-21 Lars Hansen <larsh@math.ku.dk>
12925
12926 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
12927 include in call to file name handler. Optionally translate numeric
12928 UID and GID to strings. Update docstring.
12929 (directory_files_internal): Add parameter ID-FORMAT.
12930 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
12931 include in call to file name handler and call to
12932 directory_files_internal. Update Docstring.
12933 (Fdirectory_files): Add dummy parameter in call to
12934 directory_files_internal.
12935 * lisp.h (Qinteger): Add.
12936 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
12937 (Ffile_attributes): Add parameter.
12938 * data.c (Qinteger): Export.
12939
12940 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
12941
12942 * fns.c (Freverse, Fnreverse): Doc fixes.
12943
12944 2003-11-19 Kim F. Storm <storm@cua.dk>
12945
12946 * xdisp.c (init_iterator): Initialize it->start to position
12947 before reseating (in case start position is invisible).
12948 (init_to_row_start): Set it->start to row-start.
12949 (redisplay_window): Accept optional_new_start if start position
12950 is invisible (in which case IT_CHARPOS overshoots PT).
12951 (display_line): Setup row->start from it->start (rather than
12952 it->current which is wrong if first char on line is invisible).
12953 When done, reseat it->start to it->current (= start of next row).
12954 (expose_area): Fix exposure of text area when first char (e.g. TAB)
12955 is only partially visible.
12956
12957 * dispextern.h (struct it): New member start.
12958
12959 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
12960
12961 * alloc.c (make_float, Fcons): Clear the markbit at init time.
12962 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
12963 of block_index outside of the macro call.
12964 (Fgarbage_collect): Remove null code.
12965
12966 * m/amdx86-64.h: Don't redefine XPNTR.
12967
12968 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
12969 of VALMASK.
12970
12971 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
12972 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
12973 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
12974
12975 * lisp.h (VALMASK): Only define for non-union type.
12976 (MARKBIT): Remove.
12977 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
12978 (XTYPE): Define unconditionally.
12979 (XSETTYPE): Remove one more remnant.
12980 (EQ): Define differently for the union and non-union cases.
12981 (INTMASK): New bit mask.
12982 (struct Lisp_Marker): Move down to prepare for upcoming patch.
12983 (GC_EQ): Delegate to EQ.
12984
12985 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
12986
12987 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12988
12989 * xterm.c (x_window_to_scroll_bar): Move check of display to
12990 where window_id is compared.
12991
12992 2003-11-17 Kim F. Storm <storm@cua.dk>
12993
12994 * dispextern.h (struct it): New member first_vpos.
12995
12996 * xdisp.c (start_display): Set it->first_vpos.
12997 (try_window_id): Use first_vpos to start display in first _text_
12998 line if no reusable lines at start of window with header line.
12999
13000 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13001
13002 * w32fns.c (XPutPixel):
13003 * w32bdf.c (w32_init_bdf_font):
13004 * sunfns.c (sel_read):
13005 * process.c (Fmake_network_process):
13006 * frame.c (store_frame_param):
13007 * fontset.c (Fset_fontset_font):
13008 * emacs.c (shut_down_emacs):
13009 * ccl.c (ccl_driver): Remove period at end of error message.
13010
13011 * config.in: Regenerate.
13012
13013 * xfns.c (x_window_to_frame, x_any_window_to_frame)
13014 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
13015 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
13016 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
13017 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
13018
13019 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
13020
13021 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
13022 (XTmouse_position, handle_one_xevent): Pass Display* to
13023 x_window_to_scroll_bar.
13024 (x_window_to_scroll_bar): Take a Display* argument.
13025 Check that display for frame is equal to Display* argument.
13026 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
13027 x_display_info_for_display instead. Use Display in xev instead
13028 of GDK_DISPLAY.
13029 (x_dispatch_event): Call x_display_info_for_display.
13030 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
13031 (x_connection_closed): Call xg_display_close for GTK.
13032 (x_term_init): Call xg_display_open for additional displays.
13033 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
13034 for GTK.
13035
13036 * xmenu.c (single_menu_item, mouse_position_for_popup)
13037 (x_activate_menubar): Formatting adjustments.
13038
13039 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
13040 adjustments.
13041
13042 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
13043 (xg_display_close, xg_create_default_cursor)
13044 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
13045 handling.
13046 (xg_left_ptr_cursor): Remove.
13047 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
13048 cursor here.
13049 (xg_win_to_widget): Take Display* argument, call
13050 gdk_xid_table_lookup_for_display.
13051 (xg_create_frame_widgets, xg_get_file_name, create_menus)
13052 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
13053 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
13054 in FRAME_X_DISPLAY_INFO.
13055 (xg_get_scroll_id_for_window): Take Display* argument.
13056 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
13057 (xg_initialize): Remove xg_left_ptr_cursor.
13058
13059 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
13060 Display* argument.
13061 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
13062
13063 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13064
13065 * xterm.c (x_detect_focus_change): Do not change focus frame for
13066 Enter/LeaveNotify if the current focus frame has explicit focus.
13067
13068 2003-11-14 Kim F. Storm <storm@cua.dk>
13069
13070 * dispnew.c (update_text_area): Fix redisplay error when hscroll
13071 is active and first glyph is only partially visible.
13072
13073 2003-11-13 Kenichi Handa <handa@m17n.org>
13074
13075 * xdisp.c (select_frame_for_redisplay): New function.
13076 (redisplay_internal): Record also selected_frame for
13077 unwind_redisplay. Call select_frame_for_redisplay before
13078 redrawing each frame.
13079 (unwind_redisplay): Argument changed to a cons.
13080
13081 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
13082
13083 * fns.c (Fstring_to_multibyte): Doc fix.
13084
13085 2003-11-11 Kenichi Handa <handa@m17n.org>
13086
13087 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
13088
13089 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13090
13091 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
13092 program specified positions.
13093
13094 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13095
13096 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
13097
13098 2003-11-08 Kenichi Handa <handa@m17n.org>
13099
13100 * Makefile.in (lisp): Add kannada.el.
13101 (shortlisp): Likewise.
13102
13103 2003-11-07 Kenichi Handa <handa@m17n.org>
13104
13105 * coding.c (coding_allocate_composition_data):
13106 Reset coding->composing to COMPOSITION_NO.
13107 (coding_restore_composition): Detect invalid composition data.
13108 Give Fstring and Fvector a Lispy integer, not C int.
13109
13110 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
13111
13112 * floatfns.c (Flogb): Don't use VALMASK.
13113
13114 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
13115 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
13116
13117 * lisp.h (XINT): Move the cast to clarify what is going on.
13118 (GCTYPEMASK, XSETTYPE): Remove.
13119 (XGCTYPE): Make it an alias of XTYPE.
13120
13121 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13122
13123 * xterm.c (x_term_init): Fix formatting.
13124
13125 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13126
13127 * gtkutil.h (xg_have_tear_offs): Declare.
13128 (xg_keep_popup, xg_did_tearoff): Remove.
13129
13130 * gtkutil.c: Remove variable xg_did_tearoff.
13131 (xg_have_tear_offs): New function.
13132 (tearoff_remove): Just decrease xg_detached_menus.
13133 (tearoff_activate): Increase xg_detached_menus and call
13134 tearoff_remove when tearoff is removed.
13135 (xg_keep_popup): Remove function.
13136 (create_menus): Give add_tearoff_p as argument to recursive
13137 call to create_menus.
13138 (xg_create_widget): Use variables instead of multiple
13139 strcmp. Tell create_menus to create tear off only for
13140 menu bar menus.
13141 (xg_update_menubar): Change title for a detached menu also.
13142 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
13143 of deep_p.
13144 (xg_initialize): Initialize xg_detached_menus, remove
13145 initialization of xg_did_tearoff.
13146
13147 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
13148 xg_have_tear_offs returns non-zero.
13149 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
13150 call to xg_keep_popup.
13151
13152 2003-11-01 Andrew Choi <akochoi@shaw.ca>
13153
13154 * macterm.c (XTread_socket): Handle menubar selection and grow
13155 window only for mouseDown events.
13156
13157 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13158
13159 * xterm.c (x_term_init): For GTK part, increase x_initialized
13160 to check for more than one display. Use error instead of return 0.
13161
13162 2003-10-31 Andrew Choi <akochoi@shaw.ca>
13163
13164 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
13165 (copy_dysymtab): Call it.
13166
13167 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
13168
13169 * eval.c (Fdefvaralias): Doc fix.
13170
13171 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
13172
13173 * data.c (Fsetplist): Doc fix.
13174
13175 2003-10-14 Lute Kamstra <lute@gnu.org>
13176
13177 * window.c (Fset_window_fringes): Clarify docstring.
13178
13179 2003-10-14 Kim F. Storm <storm@cua.dk>
13180
13181 * window.c (Fset_window_margins): Simplify arg checking.
13182
13183 2003-10-13 Richard M. Stallman <rms@gnu.org>
13184
13185 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
13186 (print_partial_compiled_pattern): Replace assert with a printout.
13187 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
13188
13189 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
13190
13191 * window.c (Fset_window_margins): Allow only integers as args.
13192 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
13193 Doc fixes.
13194
13195 2003-10-13 Lute Kamstra <lute@gnu.org>
13196
13197 * window.c (Fset_window_fringes): Elaborate docstring.
13198
13199 2003-10-12 Andrew Choi <akochoi@shaw.ca>
13200
13201 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
13202
13203 * s/darwin.h (GC_MARK_STACK): Define.
13204
13205 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13206
13207 * window.c (shrink_windows): New function.
13208 (size_window): Call shrink_windows to calculate window sizes when
13209 shrinking frame with more than one window.
13210
13211 2003-10-12 Kim F. Storm <storm@cua.dk>
13212
13213 * xdisp.c (compute_fringe_widths): Doc fix.
13214
13215 2003-10-08 Kenichi Handa <handa@m17n.org>
13216
13217 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
13218
13219 2003-10-07 Kenichi Handa <handa@m17n.org>
13220
13221 * coding.c (Qcoding_system_define_form): New variable.
13222 (syms_of_coding): Intern and staticpro it.
13223 (Fcheck_coding_system): Try to autoload the definition of
13224 CODING-SYSTEM.
13225
13226 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
13227
13228 * fns.c (Frequire): Doc fix.
13229
13230 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13231
13232 * xfns.c (Fx_send_client_event): New function as a base for
13233 manipulating extended window manager hints.
13234 (Fx_send_client_event): Remove unused variable s.
13235
13236 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
13237 that function is removed.
13238
13239 * xterm.c (x_set_offset): Use move_offset_left/top instead of
13240 x/y_pixels_outer_diff.
13241 (x_check_expected_move): Calculate move_offset_left/top.
13242
13243 * xterm.h (struct x_output): New members: move_offset_top/left.
13244
13245 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
13246 call x_set_offset directly.
13247
13248 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
13249
13250 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
13251
13252 * xterm.c (x_delete_display): Free font names and font_encoder
13253 in dpyinfo->font_table.
13254
13255 * xfns.c (Fx_close_connection): Only call XFreeFont here.
13256 Move xfree of font names to x_delete_display.
13257
13258 * xterm.h (struct x_display_info): New member, wm_type.
13259 (struct x_output): New members, expected_top/left and
13260 check_expected_move.
13261
13262 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
13263 is received.
13264 (handle_one_xevent): Rename x_check_expected_move from
13265 x_check_fullscreen_move.
13266 (x_set_offset): Only add WM decoration sizes to modified_top/left
13267 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
13268 (x_check_expected_move): Rename from x_check_fullscreen_move.
13269 Removed fullscreen specific code. Use check_expected_move,
13270 expected_left/top instead. Also, set wm_type.
13271 (x_term_init): Initialize wm_type to unknown.
13272
13273 * frame.c (x_fullscreen_move): Remove addition of WM decoration
13274 sizes to move_x/y.
13275
13276 2003-10-03 Kenichi Handa <handa@m17n.org>
13277
13278 * macterm.c (x_load_font): Clear all members of FONTP before start
13279 filling them.
13280
13281 2003-10-02 Kenichi Handa <handa@m17n.org>
13282
13283 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
13284 before calling find_ccl_program_func. Call find_ccl_program_func
13285 only when fontp->font_encoder is not NULL.
13286
13287 * xterm.c (x_load_font): Clear all members of FONTP before start
13288 filling them.
13289
13290 2003-10-03 John Paul Wallington <jpw@gnu.org>
13291
13292 * keymap.c (map_keymap): Don't abort when binding is a vector.
13293
13294 2003-10-02 Jason Rumney <jasonr@gnu.org>
13295
13296 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
13297 Sync dependencies with Makefile.in.
13298 (alloca.o): Remove.
13299
13300 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
13301 filling them.
13302
13303 * w32bdf.c (w32_load_bdf_font): Likewise.
13304
13305 2003-09-30 Richard M. Stallman <rms@gnu.org>
13306
13307 * term.c (set_tty_color_mode): Calculate current_mode_spec
13308 regardless of value of VAL.
13309
13310 * intervals.c (graft_intervals_into_buffer):
13311 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
13312 Handle over_used when splitting UNDER.
13313
13314 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13315
13316 * regex.c (regex_compile): Free the stack when returning from function.
13317
13318 2003-09-28 Kenichi Handa <handa@m17n.org>
13319
13320 * fontset.c (Finternal_char_font): Change return value to
13321 cons (FONT-NAME . GLYPH-CODE).
13322
13323 2003-09-28 Eli Zaretskii <eliz@gnu.org>
13324
13325 * term.c (tty_setup_colors): Treat any negative argument as -1.
13326
13327 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
13328
13329 * process.c (send_process): Delete unused temp_buf.
13330
13331 2003-09-26 Dave Love <fx@gnu.org>
13332
13333 * xterm.c (x_bitmap_mask): Declare.
13334
13335 2003-09-25 Dave Love <fx@gnu.org>
13336
13337 * Makefile.in (fns.o): Depend on md5.h.
13338
13339 2003-09-25 Kim F. Storm <storm@cua.dk>
13340
13341 * window.c (set_window_buffer): Fix redisplay problems when
13342 switching between buffers with different display margin widths.
13343
13344 2003-09-23 Kim F. Storm <storm@cua.dk>
13345
13346 * process.c (set_socket_option): Fix :bindtodevice option.
13347 (Fset_network_process_option): Update process contact list when
13348 setting option succeeds.
13349 (Fmake_network_process): Doc fix.
13350
13351 2003-09-23 Dave Love <fx@gnu.org>
13352
13353 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
13354
13355 2003-09-22 Eli Zaretskii <eliz@gnu.org>
13356
13357 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
13358 color mode is an integer number (it could be -1).
13359
13360 2003-09-22 Richard M. Stallman <rms@gnu.org>
13361
13362 * intervals.c (graft_intervals_into_buffer): Correct the main loop
13363 in the case where OVER is longer than UNDER.
13364
13365 2003-09-22 Masatake YAMATO <jet@gyve.org>
13366
13367 * window.c (Fset_window_scroll_bars): Validate the value of
13368 `vertical_type'.
13369
13370 2003-09-21 Kim F. Storm <storm@cua.dk>
13371
13372 * frame.c (Vdefault_frame_scroll_bars): New variable.
13373 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
13374 (syms_of_frame): DEFVAR_LISP it, and initialize according to
13375 window-system default scroll bar position.
13376
13377 * window.c (Fwindow_scroll_bars): Doc fix.
13378
13379 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13380
13381 * xterm.c (x_set_offset): Take window manager decorations into account.
13382
13383 2003-09-19 Richard M. Stallman <rms@gnu.org>
13384
13385 * atimer.h: Don't include lisp.h.
13386 (P_): Define it here (as well as elsewhere).
13387
13388 * print.c (Fprin1_to_string): Move the PRINTPREPARE
13389 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
13390
13391 * data.c (Fvariable_binding_locus): New function.
13392 (syms_of_data): defsubr it.
13393 (Flocal_variable_p): Delete duplicate call to indirect_variable.
13394
13395 2003-09-18 Dave Love <fx@gnu.org>
13396
13397 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
13398
13399 * process.c (Fnetwork_interface_info): Fix type error.
13400 (Fnetwork_interface_list): Doc fix.
13401 (read_process_output, read_process_output): Delete unused var.
13402
13403 2003-09-17 Kim F. Storm <storm@cua.dk>
13404
13405 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
13406 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
13407 (Fnetwork_interface_info): Check that ifreq struct has required
13408 fields before accessing them; this requires that those fields are
13409 defined as macros, which may be too restrictive on some platforms,
13410 but it is better than failing on other platforms.
13411 (syms_of_process): Only defsubr above fns when included.
13412
13413 2003-09-17 Dave Love <fx@gnu.org>
13414
13415 * unexalpha.c: Don't include varargs.h.
13416
13417 2003-09-17 Kim F. Storm <storm@cua.dk>
13418
13419 * process.c (Fset_process_sentinel): Add sentinel to childp plist
13420 for network process.
13421 (socket_options): Add `:' prefix to option names. Add optbit field.
13422 (set_socket_option): Remove no_error arg and special handling of s < 0.
13423 Return 1<<optbit for known option, 0 for unknown.
13424 Do not interpret 0 as false for boolean option (only nil).
13425 Pass failed option and value to report_file_error.
13426 (Fset_network_process_options): Replace by Fset_network_process_option.
13427 (Fset_network_process_option): New function to set just one option.
13428 (Fmake_network_process): Allow :coding arg to be a cons.
13429 Allow :server arg to be an integer specifying backlog size.
13430 Remove :options arg, and allow options to be specified directly
13431 as :KEY, VALUE pairs. Parse these options before binding socket.
13432 As before, :reuseaddr t is default for a server process, but this
13433 can now be disabled by specifying :reuseaddr nil.
13434 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
13435 (init_process): Availability of network options is now checked with
13436 simpler syntax (featurep 'make-network-process :OPTION); use loop to
13437 setup features.
13438 (syms_of_process): Fix defsubr's for the replaced functions.
13439
13440 2003-09-16 Dave Love <fx@gnu.org>
13441
13442 * Makefile.in: Depend on coding.h.
13443
13444 2003-09-14 Kim F. Storm <storm@cua.dk>
13445
13446 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
13447 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
13448 (syms_of_process): Defsubr them.
13449
13450 * config.in: Regenerate.
13451
13452 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
13453
13454 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
13455 * m/news-r6.h (XUNMARK): Remove.
13456 * m/mips.h (XUNMARK): Remove.
13457 * m/mips-siemens.h (XUNMARK): Remove.
13458 * m/iris4d.h (XUNMARK): Remove.
13459 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
13460
13461 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
13462
13463 * lisp.h (VALBITS): Don't remove 1 for the markbit.
13464 (union Lisp_Object): Use unsigned int for types. Remove markbit.
13465 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
13466 (XTYPE): Use unsigned right-shift.
13467 (XMARKBIT, XMARK, XUNMARK): Remove.
13468
13469 * alloc.c (init_intervals, init_symbol, init_marker):
13470 Don't preallocate anything.
13471 (Fgarbage_collect, mark_object): Ignore the markbit.
13472
13473 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
13474
13475 2003-09-08 Lute Kamstra <lute@gnu.org>
13476
13477 * xdisp.c (pint2hrstr): New function.
13478 (decode_mode_spec): Add `%i' and `%I' specs.
13479 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
13480 for `mode-line-format'.
13481
13482 2003-09-07 Andreas Schwab <schwab@suse.de>
13483
13484 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
13485 avoid warning.
13486
13487 2003-09-07 Eli Zaretskii <eliz@gnu.org>
13488
13489 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
13490
13491 2003-09-03 Kim F. Storm <storm@cua.dk>
13492
13493 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
13494 change (superseded by 2002-08-30 change); the default blink-off
13495 cursor is now again "no cursor".
13496
13497 2003-09-01 Jason Rumney <jasonr@gnu.org>
13498
13499 * makefile.w32-in (alloca.o): Remove.
13500 (coding.o): Depend on intervals.h
13501 (emacs.o, bytecode.o): Depend on window.h
13502
13503 2003-09-01 Dave Love <fx@gnu.org>
13504
13505 * Makefile.in (alloca.o): Remove commands.
13506 (coding.o): Depend on intervals.h composite.h window.h.
13507 (emacs.o): Depend on window.h keyboard.h keymap.h.
13508 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
13509 (bytecode.o): Depend on window.h.
13510
13511 2003-08-31 Jason Rumney <jasonr@gnu.org>
13512
13513 * w32term.c (w32_per_char_metric): Allow cached metrics to be
13514 returned even when font_type is unknown.
13515
13516 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
13517
13518 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13519
13520 * xterm.c (x_term_init): Initialize new fields in x_display_info.
13521
13522 * xterm.h (struct x_display_info): Add red/green/blue_bits and
13523 *_offset.
13524
13525 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
13526 calculate pixel value.
13527
13528 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
13529
13530 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
13531 Don't tell redisplay display is accurate when it's actually been
13532 paused for pending input.
13533
13534 2003-08-29 Richard M. Stallman <rms@gnu.org>
13535
13536 * dispnew.c (adjust_glyph_matrix): Call window_box
13537 whenever W is nonzero.
13538
13539 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13540 (Fkill_local_variable, Fmake_variable_frame_local)
13541 (Flocal_variable_p, Flocal_variable_if_set_p):
13542 Use indirect_variable to trace thru variable aliases.
13543
13544 * config.in: Updated.
13545
13546 * callint.c (Fcall_interactively): Save and restore
13547 Vthis_command, Vthis_original_command, real_this_command,
13548 and current_kboard->Vlast_command.
13549
13550 * abbrev.c (Fexpand_abbrev): Insert before deleting.
13551
13552 2003-08-29 Gerd Moellmann <gerd@gnu.org>
13553
13554 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
13555
13556 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
13557
13558 * coding.c (decode_coding_iso2022): Initialize local variable c2.
13559 (decode_coding_sjis_big5): Likewise.
13560
13561 2003-08-27 Jason Rumney <jasonr@gnu.org>
13562
13563 * w32.c (sys_pipe): Protect against file descriptor overflow.
13564
13565 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
13566
13567 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
13568
13569 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
13570
13571 * xfns.c (Vgtk_version_string): New variable.
13572 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
13573
13574 2003-08-24 Eli Zaretskii <eliz@gnu.org>
13575
13576 * term.c (term_init): Remove `const' from buffer_size's declaration.
13577
13578 * Makefile.in (msdos.o): Depend on intervals.h.
13579
13580 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
13581
13582 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13583
13584 * xterm.h (struct x_display_info): New fields: client_leader_window
13585 and Xatom_wm_client_leader.
13586
13587 * xterm.c (x_initialize): Move call to x_session_initialize to ...
13588 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
13589
13590 * xsmfns.c (create_client_leader_window): New function.
13591 (x_session_initialize): Call create_client_leader_window, take
13592 dpyinfo as argument.
13593
13594 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
13595
13596 * Makefile.in (xsmfns.o): Add more depenedencies.
13597
13598 2003-08-21 Dave Love <fx@gnu.org>
13599
13600 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
13601
13602 2003-08-21 Kenichi Handa <handa@m17n.org>
13603
13604 * term.c (term_init): Fix previous change; don't rely on the
13605 length of `buffer' if TERMINFO is defined.
13606
13607 2003-08-20 Dave Love <fx@gnu.org>
13608
13609 * atimer.h: Include lisp.h.
13610
13611 * lisp.h (EMACS_LISP_H): New.
13612 (popup_activated_flag): Don't declare.
13613
13614 * alloca.c: Some merging with gnulib. Change logic and doc
13615 concerning (x)malloc/(x)free -- no longer Emacs-specific.
13616 [DO_BLOCK_INPUT]: Don't include lisp.h.
13617 (xmalloc, xfree): Declare.
13618 (malloc): Don't declare.
13619
13620 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
13621 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
13622 atimer.h, blockinput.h.
13623
13624 * alloc.c (lisp_align_malloc): Change type of `aligned'.
13625
13626 * alloca.s: Remove.
13627
13628 2003-08-19 Gerd Moellmann <gerd@gnu.org>
13629
13630 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
13631 use -lncurses.
13632
13633 * term.c (term_init): Use a buffer of size 4096 for tgetent since
13634 FreeBSD returns something longer than 2044. Abort if the end of
13635 the buffer is overwritten.
13636
13637 2003-08-19 Miles Bader <miles@gnu.org>
13638
13639 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
13640
13641 2003-08-19 Gerd Moellmann <gerd@gnu.org>
13642
13643 * alloc.c (lisp_align_malloc): Check for memory full when
13644 allocating ablocks, which also avoids freeing a pointer into an
13645 ablocks structure.
13646
13647 * puresize.h (BASE_PURESIZE): Increase to 1100000.
13648
13649 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
13650
13651 2003-08-16 Richard M. Stallman <rms@gnu.org>
13652
13653 * editfns.c (Fencode_time): Doc fix.
13654
13655 2003-08-16 David Ponce <david@dponce.com>
13656
13657 * fileio.c (Fwrite_region): Fix conditional expression to issue
13658 the right message.
13659
13660 2003-08-16 Juri Linkov <juri@jurta.org>
13661
13662 * syntax.c (Fforward_word): Argument changed to optional.
13663 Set default value to 1.
13664
13665 2003-08-15 Kenichi Handa <handa@m17n.org>
13666
13667 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
13668 what autoscaled.
13669 (best_matching_font): Once we find a better scalable font, set
13670 non_scalable_has_exact_height_p to 1.
13671 (try_font_list): Call try_alternative_families to try any family
13672 with the given registry.
13673
13674 2003-08-09 Andreas Schwab <schwab@suse.de>
13675
13676 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
13677
13678 * print.c (print_string): Fix printing of multibyte string with
13679 nontrivial printcharfun.
13680
13681 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13682
13683 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
13684
13685 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
13686
13687 2003-07-31 Kenichi Handa <handa@m17n.org>
13688
13689 * process.c (read_process_output): Return the actually read bytes
13690 instead of the result of decoding.
13691
13692 2003-07-31 Kenichi Handa <handa@m17n.org>
13693
13694 * xterm.h (struct x_bitmap_record): New member have_mask.
13695
13696 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
13697 to 0.
13698 (x_create_bitmap_from_file): Likewise.
13699 (x_destroy_bitmap): Check have_mask member before freeing a mask.
13700 (x_destroy_all_bitmaps): Likewise.
13701 (x_create_bitmap_mask): Set have_mask member to 1.
13702
13703 2003-07-30 Richard M. Stallman <rms@gnu.org>
13704
13705 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
13706
13707 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13708
13709 * gtkutil.c (xg_mark_data): Update calls to mark_object.
13710
13711 2003-07-29 Richard M. Stallman <rms@gnu.org>
13712
13713 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
13714 Conditionalize XIM code on HAVE_XIM.
13715
13716 * fns.c (Fclear_string): New function.
13717 (syms_of_fns): defsubr it.
13718
13719 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
13720
13721 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
13722
13723 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
13724
13725 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
13726
13727 * buffer.c (delete_all_overlays): New function.
13728 * buffer.h (delete_all_overlays): Declare.
13729 * coding.c (run_pre_post_conversion_on_str):
13730 * print.c (temp_output_buffer_setup):
13731 * fileio.c (Finsert_file_contents):
13732 * minibuf.c (get_minibuffer): Use it.
13733
13734 2003-07-22 Andrew Choi <akochoi@shaw.ca>
13735
13736 * unexmacosx.c (unexec_regions_sort_compare):
13737 (unexec_regions_merge): New functions. Sort and merge unexec
13738 regions before dumping them.
13739
13740 2003-07-22 Dave Love <fx@gnu.org>
13741
13742 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
13743
13744 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
13745
13746 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
13747 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
13748 MARKBIT as the gcmarkbit for strings.
13749
13750 2003-07-21 Richard M. Stallman <rms@gnu.org>
13751
13752 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
13753
13754 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
13755 (syms_of_fns): Corresponding change.
13756
13757 * alloc.c (syms_of_alloc): Doc fixes.
13758
13759 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
13760
13761 * s/netbsd.h: Use -Wl syntax.
13762
13763 2003-07-17 Richard M. Stallman <rms@gnu.org>
13764
13765 * xterm.c (xim_initialize): Redo 6/24 change.
13766
13767 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
13768
13769 * buffer.c (copy_overlays): Use EMACS_INT for positions.
13770 (Fswitch_to_buffer): Don't signal an error when switching to the same
13771 buffer in a dedicated window.
13772
13773 * alloc.c: Use bitmaps for cons, as was done for floats.
13774 (init_float, init_cons): Let the normal code allocate the first block.
13775 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
13776 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
13777 New macros.
13778 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
13779 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
13780 (live_cons_p): Check the pointer is not past the `conses' array.
13781 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
13782 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
13783 (survives_gc_p): Use CONS_MARKED_P and simplify.
13784 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
13785
13786 2003-07-13 Paul Eggert <eggert@twinsun.com>
13787
13788 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
13789 puts it into BSS instead, at least on Solaris 8 and 9.
13790 This is a valid optimization, and it may occur on other platforms,
13791 so Emacs should not assume that initializing a static variable to
13792 zero puts it into data.
13793 * alloc.c (pure, staticvec):
13794 Initialize these arrays to nonzero, so that they're not
13795 put into BSS by that optimization.
13796
13797 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
13798
13799 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
13800 (lisp_align_malloc): Use posix_memalign is available.
13801 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
13802 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
13803 for consistency. Update users.
13804
13805 2003-07-13 Richard M. Stallman <rms@gnu.org>
13806
13807 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
13808
13809 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
13810
13811 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
13812 and use the Gtk+ function gtk_window_icon_from_file if available.
13813
13814 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
13815 handle mask of bitmaps.
13816 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
13817 mask property.
13818 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
13819
13820 * xterm.h (xg_set_icon): New function.
13821
13822 2003-07-12 Paul Eggert <eggert@twinsun.com>
13823
13824 * unexelf.c (unexec): Consider a section to precede the .bss
13825 section if its addresses overlap that of .bss.
13826
13827 2003-07-12 Richard M. Stallman <rms@gnu.org>
13828
13829 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
13830
13831 * config.in (HAVE_CRTIN): Add #undef.
13832 (INLINE): Really inline only if OPTIMIZE is defined.
13833
13834 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
13835 END_FILES_1.
13836 (START_FILES_1, END_FILES_1): New macros (conditional).
13837 (LD_SWITCH_SYSTEM_TEMACS): Define.
13838
13839 * s/openbsd.h: Don't include bsd4-3.h.
13840 (TERMINFO): Define.
13841 (LIBS_TERMCAP): Define.
13842 (LD_SWITCH_SYSTEM): Define (two definitions).
13843
13844 * xfns.c: Include libpng/png.h instead of png.h.
13845
13846 2003-07-11 Andreas Schwab <schwab@suse.de>
13847
13848 * buffer.c (modify_overlay): Update prototype.
13849 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
13850 Likewise.
13851
13852 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
13853
13854 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
13855 (struct interval): Move to intervals.h.
13856 (struct Lisp_Marker): Use EMACS_INT for position info.
13857 (forward_point): Remove prototype of defunct function.
13858 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
13859 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
13860 (syms_of_textprop, set_text_properties): Remove prototypes that are
13861 already in intervals.h.
13862
13863 * intervals.h (struct interval): Move from lisp.h.
13864 Use EMACS_INT for position and size info.
13865
13866 * coding.c: Include intervals.h for Fset_text_properties.
13867
13868 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
13869 position and length information.
13870
13871 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
13872
13873 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
13874 position and length information.
13875
13876 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
13877
13878 Change overlays_after and overlays_before so the overlays themselves
13879 are linked into lists, rather than using cons cells. After all each
13880 Lisp_Misc already occupies 5 words, so we can add a `next' field to
13881 Lisp_Overlay for free and save up one cons cell per overlay (not
13882 to mention one indirection when traversing the list of overlay).
13883
13884 * lisp.h (struct Lisp_Overlay): New field `next'.
13885
13886 * buffer.h (struct buffer): Change overlays_before and overlays_after
13887 from Lisp lists of overlays to pointers to overlays.
13888
13889 * buffer.c (overlay_strings, recenter_overlay_lists):
13890 Fix typo in eassert in last commit.
13891 (unchain_overlay): New function.
13892 (add_overlay_mod_hooklist): Use AREF.
13893 (copy_overlays, reset_buffer, overlays_at, overlays_in)
13894 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
13895 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
13896 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
13897 (report_overlay_modification, evaporate_overlays, init_buffer_once):
13898 Adjust to new type of overlays_(before|after).
13899
13900 * alloc.c (mark_object): Mark the new `next' field of overlays.
13901 (mark_buffer): Manually mark the overlays_(after|before) fields.
13902
13903 * coding.c (run_pre_post_conversion_on_str):
13904 * editfns.c (overlays_around):
13905 * xdisp.c (load_overlay_strings):
13906 * fileio.c (Finsert_file_contents):
13907 * indent.c (current_column):
13908 * insdel.c (signal_before_change, signal_after_change):
13909 * intervals.c (set_point_both):
13910 * print.c (temp_output_buffer_setup): Use new type for
13911 overlays_(before|after).
13912
13913 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
13914
13915 * buffer.c (report_overlay_modification): Don't run hooks while
13916 traversing the list of overlays.
13917
13918 * buffer.h (struct buffer): Use an int for overlay_center.
13919 (overlays_at, evaporate_overlays, recenter_overlay_lists)
13920 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
13921
13922 * buffer.c (reset_buffer, recenter_overlay_lists)
13923 (adjust_overlays_for_insert, adjust_overlays_for_delete)
13924 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
13925 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
13926 (overlays_at, evaporate_overlays, recenter_overlay_lists)
13927 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
13928
13929 * xdisp.c (fast_find_position): Remove unused var.
13930
13931 * cmds.c (Qexpand_abbrev): New sym.
13932 (syms_of_cmds): Initialize it.
13933 (internal_self_insert): Use it to call expand-abbrev.
13934
13935 2003-07-09 Kim F. Storm <storm@cua.dk>
13936
13937 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
13938 was configured with --without-xim.
13939 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
13940
13941 2003-07-07 Richard M. Stallman <rms@gnu.org>
13942
13943 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
13944
13945 * alloc.c (Fgarbage_collect): Doc fix.
13946
13947 2003-07-07 Nozomu Ando <nand@mac.com>
13948
13949 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
13950
13951 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
13952
13953 * minibuf.c (read_minibuf): UNGCPRO before returning.
13954 (Ftry_completion, Fall_completions): Doc fix.
13955
13956 * alloc.c (live_float_p): Check that p is not past the `floats' array,
13957 now that `floats' is not the last element of the struct any more.
13958
13959 2003-07-06 Jason Rumney <jasonr@gnu.org>
13960
13961 * w32term.h (ClipboardSequence_Proc): New type.
13962
13963 * w32fns.c (clipboard_sequence_fn): New variable.
13964 (globals_of_w32fns): Initialize it.
13965
13966 * w32select.c (last_clipboard_sequence_number): New variable.
13967 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
13968 number if possible.
13969
13970 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
13971
13972 * m/amdx86-64.h (MARKBIT):
13973 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
13974 MARKBIT and ARRAY_MARK_FLAG any more.
13975
13976 * m/hp800.h (XSETMARKBIT):
13977 * m/sr2k.h (XSETMARKBIT):
13978 * lisp.h (XSETMARKBIT): Remove unused macro.
13979
13980 * lisp.h (mark_object): Change prototype.
13981
13982 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
13983 (last_marked): Change accordingly.
13984 (mark_interval, mark_maybe_object, mark_maybe_pointer)
13985 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
13986 (mark_buffer): Update calls to mark_object.
13987
13988 * bytecode.c (mark_byte_stack):
13989 * fns.c (sweep_weak_table):
13990 * keyboard.c (mark_kboards): Update calls to mark_object.
13991
13992 2003-07-06 Jason Rumney <jasonr@gnu.org>
13993
13994 * alloc.c (struct ablock): Only include padding when there is some.
13995
13996 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
13997
13998 * alloc.c (ALIGN): Add casts to simplify usage.
13999 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
14000 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
14001 (struct ablock, struct ablocks): New types.
14002 (free_ablock): New global var.
14003 (lisp_align_malloc, lisp_align_free): New functions.
14004 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
14005 (struct float_block): Reorder and add gcmarkbits.
14006 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
14007 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
14008 (init_float, make_float): Use lisp_align_malloc.
14009 (free_float, live_float_p): Don't use `type' any more.
14010 (make_float): Use FLOAT_UNMARK to access to mark bit.
14011 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
14012 Use FLOAT_MARKED_P to access the mark bit.
14013 (pure_alloc): Simplify use of ALIGN.
14014 (mark_object): Use FLOAT_MARK to access the mark bit.
14015 (gc_sweep): Use new macros to access the float's mark bit.
14016 (init_alloc_once): Init free_ablock.
14017
14018 * lisp.h (struct Lisp_Float): Remove unused field `type'.
14019
14020 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
14021
14022 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
14023 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
14024 (allocate_buffer): Move.
14025 (string_bytes): Don't mask markbit of `size_byte'.
14026 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
14027 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
14028 Use the `size' field of buffers (rather than the `name' field) for
14029 the mark bit, as is done for all other vectorlike objects.
14030 Use the new macros to access the mark bit of vectorlike objects.
14031
14032 2003-06-26 Richard M. Stallman <rms@gnu.org>
14033
14034 * puresize.h (BASE_PURESIZE): Increment base size.
14035
14036 * xdisp.c (fast_find_position): Enable Gerd's new definition.
14037
14038 * xterm.c (xim_initialize): Undo previous change.
14039
14040 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
14041
14042 * alloc.c (survives_gc_p): Simplify.
14043
14044 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
14045
14046 * window.c (Fset_window_dedicated_p): Simplify.
14047 (display_buffer_1): Don't raise the win from which minibuf was entered.
14048 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
14049 (Fminibuffer_selected_window): Simplify.
14050
14051 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
14052
14053 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
14054 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
14055
14056 * insdel.c (check_markers, adjust_markers_for_delete)
14057 (adjust_markers_for_insert, adjust_markers_for_replace)
14058 (prepare_to_modify_buffer, RESTORE_VALUE):
14059 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
14060 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
14061 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
14062 * alloc.c (Fmake_marker, free_marker, gc_sweep):
14063 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
14064 * editfns.c (save_excursion_restore, transpose_markers):
14065 * window.c (delete_window):
14066 * xdisp.c (message_dolog): Update for new types.
14067
14068 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14069
14070 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
14071 (realize_default_face): Use default_face_done_p for the force_p
14072 argument to set_lface_from_font_name. Set default_face_done_p to one.
14073
14074 * frame.c (make_frame): Initialize default_face_done_p.
14075
14076 * frame.h (struct frame): Add default_face_done_p.
14077
14078 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
14079 will be defined.
14080
14081 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
14082
14083 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
14084 Initialize the new field `gcmarkbit'.
14085 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
14086 (mark_interval_tree): Don't mark the tree separately from the nodes.
14087 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
14088 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
14089 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
14090
14091 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
14092 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
14093 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
14094 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
14095 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
14096
14097 2003-06-24 Dave Love <fx@gnu.org>
14098
14099 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
14100
14101 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
14102 from gnulib.
14103
14104 2003-06-21 Richard M. Stallman <rms@gnu.org>
14105
14106 * fileio.c (Fwrite_region): Alternate messages
14107 for append and partial write.
14108
14109 * keyboard.c (read_key_sequence): When converting upcase fn key to
14110 downcase, update fkey and keytran so `backspace' gets translated.
14111
14112 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
14113
14114 * process.c (wait_reading_process_input): Don't signal SIGIO
14115 in batch mode.
14116
14117 2003-06-17 Kenichi Handa <handa@m17n.org>
14118
14119 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
14120 composite.h.
14121
14122 * xselect.c: Don't include charset.h, coding.h, composite.h.
14123 (Qforeign_selection): New variable.
14124 (syms_of_xselect): Intern and static it.
14125 (selection_data_to_lisp_data): Return a unibyte string made from
14126 data with `foreign-selection' text property.
14127
14128 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
14129
14130 * termhooks.h (EVENT_INIT): New macro.
14131
14132 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
14133
14134 * alloc.c (mark_kboards): Move to keyboard.c.
14135
14136 * keyboard.c (record_asynch_buffer_change, read_avail_input):
14137 * xterm.c (x_dispatch_event):
14138 * xmenu.c (find_and_call_menu_selection):
14139 * xdisp.c (handle_tool_bar_click):
14140 * w32menu.c (menubar_selection_callback):
14141 * sysdep.c (kbd_input_ast, read_input_waiting):
14142 * msdos.c (dos_rawgetc):
14143 * macterm.c (mac_check_for_quit_char):
14144 * macmenu.c (menubar_selection_callback):
14145 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
14146 data to kbd_buffer_store_event.
14147
14148 2003-06-15 Kim F. Storm <storm@cua.dk>
14149
14150 * xdisp.c (x_fix_overlapping_area): Always use area relative X
14151 to fix redisplay problem with tall characters (such as \e,AC\e(B).
14152
14153 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
14154
14155 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
14156
14157 2003-06-12 Kenichi Handa <handa@m17n.org>
14158
14159 * fileio.c (Fwrite_region): Save and restore restriction.
14160
14161 2003-06-12 Dave Love <fx@gnu.org>
14162
14163 * alloca.c (alloca): Declare arg as size_t.
14164
14165 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
14166 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
14167
14168 2003-06-11 Dave Love <fx@gnu.org>
14169
14170 * search.c (shrink_regexp_cache): Use xrealloc.
14171 (syms_of_search): Use xmalloc.
14172
14173 2003-06-10 Kim F. Storm <storm@cua.dk>
14174
14175 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
14176 Adjust phys_cursor.x to be relative to window box, rather than
14177 text area before checking -- to ensure cursor is redrawn when
14178 exposing window.
14179 Note: This also fixes a similar (older) bug if display margins
14180 are present.
14181
14182 2003-06-06 Kenichi Handa <handa@m17n.org>
14183
14184 * coding.c (encoding_buffer_size): If coding->type is
14185 coding_type_ccl, double magnification on CRLF encoding.
14186
14187 2003-06-06 Jason Rumney <jasonr@gnu.org>
14188
14189 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
14190 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
14191
14192 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
14193 Mac too.
14194
14195 2003-06-05 Dave Love <fx@gnu.org>
14196
14197 * strftime.c: Merge changes from gnulib.
14198
14199 * mktime.c (__mktime_internal): Merge changes from gnulib
14200 involving year 69 and dst2.
14201
14202 Changes to merge with gnulib version and be consistent with the
14203 autoconf test:
14204
14205 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
14206 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
14207 [HAVE_LOCALE_H]: Include locale.h.
14208 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
14209
14210 2003-06-05 Kim F. Storm <storm@cua.dk>
14211
14212 * window.c (coordinates_in_window): Convert X and Y to window
14213 relative coordinates inside mode-line and header-line parts.
14214 Convert X and Y to margin area relative coordinates inside left
14215 and right display margin parts.
14216
14217 2003-06-05 Jason Rumney <jasonr@gnu.org>
14218
14219 * w32fns.c (add_system_logical_colors_to_map): New function.
14220 (Fx_open_connection): Use it.
14221
14222 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
14223
14224 * process.c (allocate_pty): Revert part of the previous patch.
14225 (Faccept_process_output): Simplify.
14226
14227 2003-06-04 Jason Rumney <jasonr@gnu.org>
14228
14229 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
14230
14231 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
14232 (lispy_mouse_wheel_names): Remove.
14233 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
14234 Always define drag_and_drop_syms.
14235
14236 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
14237 WHEEL_EVENT events.
14238
14239 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
14240
14241 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
14242
14243 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
14244
14245 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14246
14247 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
14248 menu item label.
14249
14250 2003-06-03 Richard M. Stallman <rms@gnu.org>
14251
14252 * window.c (Fwindow_edges): Doc fix.
14253 (Fwindow_pixel_edges, Fwindow_inside_edges)
14254 (Fwindow_inside_pixel_edges): New functions.
14255 (syms_of_window): defsubr them.
14256
14257 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
14258 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
14259
14260 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
14261
14262 * dispnew.c (Fsit_for): Don't lie about the number of args.
14263
14264 2003-06-02 Dave Love <fx@gnu.org>
14265
14266 * callproc.c: Use HAVE_FCNTL_H, not USG5.
14267 (syms_of_callproc) <process-environment>: Doc fix.
14268
14269 * doc.c: Use HAVE_FCNTL_H, not USG5.
14270
14271 * xfaces.c (font_rescale_ratio): Fix for K&R.
14272
14273 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
14274
14275 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
14276
14277 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
14278
14279 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
14280 (xg_create_frame_widgets): Use ENCODE_UTF_8.
14281
14282 * xterm.c (Qutf_8): Move to coding.c
14283
14284 * xmenu.c (ENCODE_MENU_STRING): New.
14285 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
14286 Use it.
14287
14288 * coding.h (ENCODE_UTF_8): New.
14289 (Qutf_8): Declare.
14290
14291 * coding.c (Qutf_8): New.
14292 (syms_of_coding): Intern it.
14293
14294 * fns.c: Doc fixes.
14295
14296 2003-06-02 Kenichi Handa <handa@m17n.org>
14297
14298 * buffer.c (Fset_buffer_multibyte): Fix previous change.
14299
14300 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
14301
14302 * lread.c (openp): Make sure STR is a string.
14303
14304 2003-06-01 David Ponce <david@dponce.com>
14305
14306 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
14307 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
14308
14309 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
14310 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
14311 (discard_mouse_events): Discard WHEEL_EVENT events too.
14312 (lispy_wheel_names, wheel_syms): New.
14313 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
14314 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
14315 (make_lispy_event): Add WHEEL_EVENT handler.
14316
14317 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
14318 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
14319 WHEEL_EVENT events.
14320
14321 2003-05-31 John Paul Wallington <jpw@gnu.org>
14322
14323 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
14324 timer are in lisp/emacs-lisp.
14325
14326 2003-05-31 Kenichi Handa <handa@m17n.org>
14327
14328 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
14329 region when a buffer is changed to unibyte.
14330
14331 * charset.h (VALID_LEADING_CODE_P): New macro.
14332 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
14333
14334 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
14335 is nonzero, accept multibyte form of eight-bit-control chars.
14336 (decode_composition_emacs_mule): Likewise.
14337 (decode_coding_emacs_mule): Likewise.
14338 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
14339 multibyte form of eight-bit-control chars.
14340
14341 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
14342 (Finsert_file_contents): If coding-system-for-read is bound to
14343 Qauto_save_coding, use the coding system emacs-mule with special
14344 setting for recovering a file.
14345 (choose_write_coding_system): On auto saving, use the coding
14346 system emacs-mule with special setting for auto saving.
14347 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
14348
14349 2003-05-30 Kenichi Handa <handa@m17n.org>
14350
14351 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
14352 properly before calling ccl_driver.
14353
14354 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
14355
14356 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
14357 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
14358 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
14359
14360 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
14361
14362 * xfaces.c (realize_default_face): Do not abort if lface is
14363 non-existent - reverts change from 2003-05-19.
14364
14365 2003-05-29 Kenichi Handa <handa@m17n.org>
14366
14367 * coding.c (decode_coding_iso2022): Pay attention to the byte
14368 sequence of CTEXT extended segment, and retain those bytes as is.
14369
14370 2003-05-28 Kenichi Handa <handa@m17n.org>
14371
14372 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
14373 of CODING_REPLACEMENT_CHARACTER.
14374 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
14375 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
14376 check this flag on encoding.
14377 (encode_coding_sjis_big5):
14378 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
14379 (Fset_terminal_coding_system_internal):
14380 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
14381 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
14382
14383 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
14384 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
14385 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
14386
14387 2003-05-28 Richard M. Stallman <rms@gnu.org>
14388
14389 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
14390
14391 * eval.c (unbind_to): Move init of this_binding to separate statement.
14392
14393 2003-05-28 Kim F. Storm <storm@cua.dk>
14394
14395 * xdisp.c (expose_window): Fix error in calculation of
14396 window relative coordinates of area to redisplay.
14397
14398 2003-05-27 Jason Rumney <jasonr@gnu.org>
14399
14400 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
14401
14402 2003-05-27 David Ponce <david@dponce.com>
14403
14404 Handle W32 mouse wheel events as mouse click events, like in X.
14405
14406 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
14407 MOUSE_WHEEL_EVENT anymore.
14408
14409 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
14410 Scrolling down/up the mouse wheel is respectively mapped to mouse
14411 button 4 and 5.
14412 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
14413 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
14414 WM_MOUSEWHEEL events.
14415
14416 2003-05-27 Andreas Schwab <schwab@suse.de>
14417
14418 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
14419
14420 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
14421 partially visible line.
14422
14423 * alloc.c (Fgarbage_collect): Fix last change.
14424
14425 2003-05-26 John Paul Wallington <jpw@gnu.org>
14426
14427 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
14428
14429 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
14430
14431 * window.c (Fset_window_buffer): Add type of `keep_margins'.
14432 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
14433
14434 * window.h (window_box_text_cols): Declare.
14435
14436 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
14437 (x_draw_vertical_border): Remove unused var `f'.
14438
14439 * xfaces.c (build_scalable_font_name): Remove `unused var
14440 pixel_size' warning.
14441
14442 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
14443
14444 * unexelf.c (unexec): Remove `unused var n' warning.
14445
14446 * strftime.c (my_strftime_localtime_r): Remove `defined but
14447 unused' warning.
14448
14449 * process.c (allocate_pty): Remove `unused var stb' and
14450 `cp might be used uninitialized' warnings.
14451
14452 * dispnew.c (mode_line_string): Remove unused var `f'.
14453
14454 * coding.c (find_safe_codings): Remove unused var `i'.
14455
14456 * bytecode.c (Fbyte_code): Remove `unused val' warning.
14457
14458 * buffer.c (Fkill_buffer): Remove unused var `list'.
14459
14460 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
14461
14462 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14463
14464 * frame.c (make_frame): Condition want_fullscreen with
14465 HAVE_WINDOW_SYSTEM.
14466
14467 2003-05-25 Juanma Barranquero <lektu@terra.es>
14468
14469 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
14470 (Fwindow_scroll_bars): Fix typo in docstring.
14471
14472 2003-05-24 Kim F. Storm <storm@cua.dk>
14473
14474 The following changes serve several purposes:
14475
14476 1) Swap the position of fringes and display margins in windows, i.e.
14477 the fringes are now displayed between the margins and the text area
14478 (by default).
14479
14480 2) Allow fringe and scroll bar parameters to be set per-buffer and
14481 per-window (like display margins). Such settings are now stored
14482 in window configurations, preserved when frames are resized, and
14483 copied when windows are split vertically or horizontally.
14484 Several bugs related to display margins have been fixed.
14485
14486 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
14487
14488 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
14489 rather than FRAME_WIDTH (FRAME_FONT (f)).
14490
14491 5) Introduce a consistent naming of variables, members and macros
14492 depending on whether their value is measured in pixels or in
14493 canonical columns/lines. Pixel dimensions are named *_width and
14494 *_height, while canonical columns/lines are named *_cols and
14495 *_lines. Pixel positions are named *_x and *_y, while column/line
14496 positions are named *_col and *_line.
14497
14498 6) Consolidate more of the X, W32, and MAC gui code by moving
14499 common data into struct frame, and generalize it for the non-gui
14500 case by using suitable defaults.
14501
14502 7) Cleanup and consolidate the macros controlling frame and window
14503 layout into frame.h and window.h, and generalize the use of the
14504 various window_box_* functions (enhanced to handle the new fringe
14505 position and the per-window fringe and scroll bar settings).
14506
14507 * frame.h (struct frame): Rename members height to text_lines,
14508 width to text_cols, window_height to total_lines, window_width to
14509 total_cols, new_height to new_text_lines, new_width to
14510 new_text_cols. All uses changed.
14511 (struct frame): New members which consolidate common members of
14512 x_output, w32_output, and mac_output structures: left_pos,
14513 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
14514 win_gravity, size_hint_flags, border_width, internal_border_width,
14515 line_height, fringe_cols, left_fringe_width, right_fringe_width,
14516 want_fullscreen. All uses changed.
14517 (struct frame): New member column_width contaning the canonical
14518 column width, analogue to line_height. All uses changed.
14519 (struct frame): Rename members scroll_bar_pixel_width to
14520 config_scroll_bar_width, and scroll_bar_cols to
14521 config_scroll_bar_cols. All uses changed.
14522 (struct frame): New member scroll_bar_actual_width which
14523 consolidates and renames the vertical_scroll_bar_extra member of
14524 x_output, w32_output, and mac_output structures. All uses changed.
14525 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
14526 from x/w32/macterm.h files. All uses changed. Also change code
14527 which referred to f->output_data...->pixel_height.
14528 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
14529 from x/w32/macterm.h files. All uses changed. Also change code
14530 which referred to f->output_data...->pixel_width.
14531 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
14532 Also change code which referred to f->height.
14533 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
14534 Also change code which referred to f->width.
14535 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
14536 to update new_text_lines and new_text_cols members directly.
14537 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
14538 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
14539 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
14540 FRAME_SCROLL_BAR_COLS. All uses changed.
14541 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
14542 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
14543 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
14544 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
14545 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
14546 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
14547 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
14548 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
14549 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
14550 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
14551 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
14552 Unconditionally return line_height member (it now has proper value
14553 also for non-window frames).
14554 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
14555 return new column_width member (rather than the default font width).
14556 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
14557 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
14558 from x/w32/macterm.h files. Unconditionally return corresponding
14559 member of frame structure (they now have proper values also for
14560 non-window frames).
14561 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
14562 Calculate return value from left and right widths.
14563 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
14564 internal_border_width member (has proper value for non-window frame).
14565 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
14566 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
14567 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
14568 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
14569 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
14570 consolidated from xterm.h, macterm.h, and w32term.h.
14571 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
14572 consolidated from xterm.h, macterm.h, and w32term.h.
14573 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
14574 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
14575 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
14576 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
14577 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
14578 consolidated from x/mac/w32term.h.
14579 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
14580 consolidated from x/mac/w32term.h.
14581 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
14582 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
14583 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
14584 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
14585
14586 * window.h (struct window): Rename members left to left_col,
14587 top to top_line, height to total_lines, width to total_cols,
14588 left_margin_width to left_margin_cols, right_margin_width to
14589 right_margin_cols, orig_height to orig_total_lines, orig_top to
14590 orig_top_line. All uses changed.
14591 (struct window): New members left_fringe_width, right_fringe_width,
14592 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
14593 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
14594 New macros primarily used to simplify other macros.
14595 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
14596 referred to XINT (w->width).
14597 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
14598 referred to XINT (w->height).
14599 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
14600 referred to XINT (w->width) * canon_x_unit.
14601 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
14602 referred to XINT (w->height) * canon_y_unit.
14603 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
14604 referred to XINT (w->left).
14605 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
14606 all uses and code that referred to XINT (w->left) + XINT (w->width).
14607 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
14608 referred to XINT (w->top).
14609 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
14610 referred to XINT (w->top) + XINT (w->height).
14611 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
14612 referred to XINT (w->left) * canon_x_unit.
14613 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
14614 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
14615 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
14616 referred to XINT (w->top) * canon_y_unit.
14617 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
14618 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
14619 (WINDOW_LEFTMOST_P): New macro.
14620 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
14621 All uses changed.
14622 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
14623 All uses changed.
14624 (WINDOW_BOX_LEFT_EDGE_X): Rename from
14625 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
14626 Do not exclude left fringe width.
14627 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
14628 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
14629 Do not exclude fringe widths.
14630 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
14631 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
14632 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
14633 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
14634 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
14635 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
14636 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
14637 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
14638 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
14639 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
14640 New macros. Change code which referenced corresponding
14641 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
14642 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
14643 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
14644 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
14645 allow per-window scroll-bar settings.
14646 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
14647 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
14648 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
14649 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
14650 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
14651 FRAME_SCROLL_BAR_WIDTH.
14652 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
14653 (WINDOW_SCROLL_BAR_AREA_X): New macros.
14654 (WINDOW_HEADER_LINE_HEIGHT): Rename from
14655 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
14656 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
14657 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
14658 (WINDOW_BOX_TEXT_HEIGHT): Rename from
14659 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
14660 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
14661 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
14662 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
14663 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
14664 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
14665 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
14666 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
14667 (window_from_coordinates): Update prototype.
14668 (Fset_window_buffer): Update EXFUN.
14669 (set_window_buffer): Update prototype.
14670
14671 * dispextern.h (struct glyph_matrix): Rename members window_left_x
14672 to window_left_col, window_top_y to window_top_line. All uses
14673 changed.
14674 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
14675 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
14676 internal_border_width is now set to 0 for non-window frames.
14677 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
14678 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
14679 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
14680 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
14681 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
14682 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
14683 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
14684 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
14685 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
14686 Move to window.h and renamed [see window.h changes].
14687 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
14688 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
14689 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
14690 Use WINDOW_TOTAL_LINES.
14691 (frame_update_line_height): Remove prototype.
14692
14693 * buffer.h (struct buffer): Rename members measured in columns:
14694 left_margin_width to left_margin_cols, right_margin_width to
14695 right_margin_cols. All uses changed.
14696 New members left_fringe_width, right_fringe_width,
14697 fringes_outside_margins for per-buffer fringe settings.
14698 New members scroll_bar_width and vertical_scroll_bar_type for
14699 per-buffer scroll bar settings.
14700
14701 * buffer.c (init_buffer_once): Set buffer_defaults and
14702 buffer_local_flags for new buffer-local variables
14703 left_fringe_width, right_fringe_width, fringes_outside_margins,
14704 scroll_bar_width, and vertical_scroll_bar_type.
14705 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
14706 default-* variables for them.
14707
14708 * dispnew.c: Make (many) trivial substitutions for renamed and
14709 new macros in dispextern.h, frame.h and window.h.
14710 (mode_line_string): No need to adjust width for mode lines, as it
14711 is already adjusted by the caller.
14712 (marginal_area_string): Handle fringes inside/outside margins.
14713
14714 * frame.c: Make (many) trivial substitutions for renamed and
14715 new macros in dispextern.h, frame.h and window.h.
14716 (make_frame): Initialize left_fringe_width, right_fringe_width,
14717 fringe_cols, scroll_bar_actual_width, border_width,
14718 internal_border_width, column_width, line_height, x_pixels_diff,
14719 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
14720 members with values suitable for a non-window frames.
14721
14722 * gtkutil.c: Make (many) trivial substitutions for renamed and
14723 new macros in dispextern.h, frame.h and window.h.
14724
14725 * indent.c: Make (few) trivial substitutions for renamed and
14726 new macros in dispextern.h, frame.h and window.h.
14727
14728 * keyboard.c: Make (many) trivial substitutions for renamed and
14729 new macros in dispextern.h, frame.h and window.h.
14730 (make_lispy_event): Use window positions returned from
14731 window_from_coordinates when constructing the lisp event for
14732 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
14733 (incorrect) values locally.
14734 (make_lispy_movement): Use window positions returned from
14735 window_from_coordinates when constructing the lisp event, rather
14736 than calculating (incorrect) values locally.
14737
14738 * scroll.c: Make (some) trivial substitutions for renamed and
14739 new macros in dispextern.h, frame.h and window.h.
14740
14741 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
14742 scroll-bars.
14743
14744 * sysdep.c: Make (few) trivial substitutions for renamed and
14745 new macros in dispextern.h, frame.h and window.h.
14746
14747 * term.c: Make (some) trivial substitutions for renamed and
14748 new macros in dispextern.h, frame.h and window.h.
14749
14750 * widget.c: Make (few) trivial substitutions for renamed and
14751 new macros in dispextern.h, frame.h and window.h.
14752
14753 * window.c: Make (many) trivial substitutions for renamed and
14754 new macros in dispextern.h, frame.h and window.h.
14755 (make_window): Initialize new members
14756 left_margin_cols, right_margin_cols, left_fringe_width,
14757 right_fringe_width, fringes_outside_margins, scroll_bar_width,
14758 and vertical_scroll_bar_type.
14759 (coordinates_in_window): Adapt to new fringe/margin positions
14760 and per-window fringes and scroll-bars.
14761 Fix bug related to incorrectly adjusting coordinates by
14762 frame's internal_border_width (the effect normally negible since
14763 the internal_border_width is typically 0 or 1 pixel, but very
14764 noticeable for an internal_border_width of e.g. 25 pixels).
14765 Upon successful return (other than ON_NOTHING), the coordinates
14766 are now always properly converted to window relative for the
14767 given display element.
14768 (window_from_coordinates): Add new parameters wx and wy to
14769 return the window relative x and y position in the returned
14770 window and part. A null arg means, don't return the position.
14771 All callers changed.
14772 (adjust_window_margins): New function which may reduce the width
14773 of the display margins if a window's text area is too small after
14774 resizing or splitting windows.
14775 (size_window): Fix bug that did not account for display margin
14776 widths when checking the minimum width of a window; use
14777 adjust_window_margins.
14778 (set_window_buffer): Call Fset_window_fringes and
14779 Fset_window_scroll_bars to setup per-window elements.
14780 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
14781 existing display margin, fringe widths, and scroll bar settings
14782 (e.g. after splitting a window or resizing the frame).
14783 All callers changed.
14784 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
14785 (Fsplit_window): Duplicate original window's display margin,
14786 fringe, and scroll-bar settings; then call Fset_window_buffer with
14787 KEEP_MARGINS non-nil. This fixes a bug which caused a split
14788 window to only preserve the display margins in one of the windows.
14789 When splitting horizontally, call adjust_window_margins on both
14790 windows to ensure that the text area of the new windows is non too
14791 narrow. This fixes a bug which could cause Emacs to trap if the
14792 width of the split window was less than the width of the display
14793 margins.
14794 (window_box_text_cols): Rename from window_internal_width.
14795 All uses changed. Adapt to per-window fringes and scroll bars.
14796 Fix bug that caused vertical separator to be subtracted also on
14797 window frames. Fix another bug that did not reduce the returned
14798 value by the columns used for display margins.
14799 (window_scroll_line_based): Fix bug related to scrolling too much
14800 when display margins are present (implicitly fixed by the fix to
14801 window_box_text_cols).
14802 (scroll_left, scroll_right): Fix bug related to scrolling too far
14803 by default when display margins are present (implicitly fixed by
14804 the fix to window_box_text_cols).
14805 (struct saved_window): Rename members left to left_col, top to
14806 top_line, width to total_cols, height to total_lines, orig_top to
14807 orig_top_line, orig_height to orig_total_lines. All uses changed.
14808 New members left_margin_cols, right_margin_cols,
14809 left_fringe_width, right_fringe_width, fringes_outside_margins,
14810 scroll_bar_width, and vertical_scroll_bar_type for saving
14811 per-window display elements.
14812 (Fset_window_configuration): Restore display margins, fringes,
14813 and scroll bar settings. This fixes a bug which caused display
14814 margins to be discarded when saving and restoring a window
14815 configuration.
14816 (save_window_save): Save display margins, fringes, and scroll bar
14817 settings. This fixes a bug which caused display margins to be
14818 discarded when saving and restoring a window configuration.
14819 (Fset_window_margins): Do nothing if display margins are not
14820 really changed. Otherwise, call adjust_window_margins to ensure
14821 the text area doesn't get too narrow. This fixes a bug which
14822 could cause Emacs to trap if setting display margins wider than
14823 the width of the window.
14824 (Fset_window_fringes): New defun to allow user to specifically set
14825 this window's fringe widths and position vs. display margins.
14826 (Fwindow_fringes): New defun to return window's actual fringe settings.
14827 (Fset_window_scroll_bars): New defun to allow user to specifically
14828 set this window's scroll bar width and position.
14829 (Fwindow_scroll_bars): New defun to return window's actual scroll
14830 bar settings.
14831 (compare_window_configurations): Also compare display margins,
14832 fringes, and scroll bar settings.
14833 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
14834
14835 * xdisp.c: Make (many) trivial substitutions for renamed and
14836 new macros in dispextern.h, frame.h and window.h.
14837 (window_box_width): Adapt to per-window fringes and scroll bars,
14838 and new fringe vs. display margin position. Note that returned
14839 value is no longer guaranteed to be a whole multiple of the frame
14840 column width, since per-window fringes may now be any width.
14841 (window_box_left_offset): New function like window_box_left, but
14842 value is relative to left border of window (rather than frame).
14843 (window_box_right_offset): New function like window_box_right,
14844 but value is relative to left border of window.
14845 (window_box_left): Adapt to per-window fringes and scroll bars,
14846 and new fringe vs. display margin position. Simplify by using
14847 WINDOW_LEFT_EDGE_X and window_box_left_offset.
14848 (window_box): Allow null args for unnecessary return values;
14849 change/simplify relevant callers.
14850 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
14851 and new fringe vs. display margin position.
14852 Use window_box_left_offset and window_box_right_offset
14853 (get_glyph_string_clip_rect): Adapt to per-window fringes and
14854 scroll bars, and new fringe vs. display margin position.
14855 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
14856 (draw_fringe_bitmap): Rework to handle per-window fringes and new
14857 fringe vs. display margin position.
14858 (hscroll_window_tree): Use window_box_width instead of window_box.
14859 (redisplay_window): Adapt to per-window scroll bars.
14860 (draw_glyphs): Rework to handle per-window fringes and scroll
14861 bars, and new fringe vs. display margin position.
14862 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
14863 (x_clear_end_of_line): Adapt to per-window fringes and scroll
14864 bars, and new fringe vs. display margin position. Fix bug which
14865 increased total width of full_width rows by width of scroll bars
14866 although window's total width already includes that.
14867 (x_fix_overlapping_area): Simplify using window_box_left_offset.
14868 (expose_area): Simplify using window_box_left_offset.
14869 (x_draw_vertical_border): Handle per-window scroll bar settings,
14870 mixing windows with left, right and no scroll bars.
14871
14872 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
14873 where it's used in x_list_fonts (for clarity).
14874 (frame_update_line_height): Remove unused function; functionality
14875 is now done directly when setting the default font in x_set_font.
14876
14877 * xfns.c: Make (many) trivial substitutions for renamed and
14878 new macros in dispextern.h, frame.h and window.h.
14879
14880 * xmenu.c: Make (some) trivial substitutions for renamed and
14881 new macros in dispextern.h, frame.h and window.h.
14882
14883 * xterm.h (struct x_output): Move members left_pos, top_pos,
14884 border_width, pixel_height, pixel_width, line_height,
14885 internal_border_width, vertical_scroll_bar_extra,
14886 left_fringe_width, right_fringe_width, fringe_cols,
14887 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
14888 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
14889 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
14890 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
14891 (PIXEL_WIDTH, PIXEL_HEIGHT)
14892 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
14893 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
14894 frame.h and renamed [see frame.h changes].
14895 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
14896 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
14897 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
14898 and renamed [see frame.h changes].
14899
14900 * xterm.c: Make (several) trivial substitutions for renamed and
14901 new macros in dispextern.h, frame.h and window.h.
14902 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
14903 (scroll_run): Adapt to new fringe position.
14904 (glyph_rect): Use window coordinates returned from
14905 window_from_coordinates rather than frame_to_window_pixel_xy.
14906 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
14907 scroll-bars.
14908 (handle_one_xevent): Simplify a USE_GTK conditional.
14909 (x_clip_to_row): Remove superfluous whole_line_p arg and code
14910 (fringes are now inside margins, i.e. always in the clipping area).
14911 All callers changed.
14912 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
14913 directly, then call compute_fringe_widths. Don't call
14914 frame_update_line_height.
14915
14916 * w32term.h (struct w32_output): Move members left_pos, top_pos,
14917 border_width, pixel_height, pixel_width, line_height,
14918 internal_border_width, vertical_scroll_bar_extra,
14919 left_fringe_width, right_fringe_width, fringe_cols,
14920 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
14921 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
14922 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
14923 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
14924 (PIXEL_WIDTH, PIXEL_HEIGHT)
14925 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
14926 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
14927 frame.h and renamed [see frame.h changes].
14928 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
14929 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
14930 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
14931 and renamed [see frame.h changes].
14932
14933 * w32term.c: Make (several) trivial substitutions for renamed and
14934 new macros in dispextern.h, frame.h and window.h.
14935 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
14936 (glyph_rect): Use window coordinates returned from
14937 window_from_coordinates rather than frame_to_window_pixel_xy.
14938 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
14939 scroll-bars.
14940 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
14941 (fringes are now inside margins, i.e. always in the clipping area).
14942 All callers changed.
14943 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
14944 directly, then call compute_fringe_widths. Don't call
14945 frame_update_line_height.
14946
14947 * w32console.c: Make (few) trivial substitutions for renamed and
14948 new macros in dispextern.h, frame.h and window.h.
14949
14950 * w32fns.c: Make (many) trivial substitutions for renamed and
14951 new macros in dispextern.h, frame.h and window.h.
14952
14953 * w32menu.c: Make (few) trivial substitutions for renamed and
14954 new macros in dispextern.h, frame.h and window.h.
14955
14956 * macterm.h (struct mac_output): Move members left_pos, top_pos,
14957 border_width, pixel_height, pixel_width, line_height,
14958 internal_border_width, vertical_scroll_bar_extra,
14959 left_fringe_width, right_fringe_width, fringe_cols,
14960 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
14961 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
14962 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
14963 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
14964 (PIXEL_WIDTH, PIXEL_HEIGHT)
14965 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
14966 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
14967 frame.h and renamed [see frame.h changes].
14968 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
14969 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
14970 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
14971 and renamed [see frame.h changes].
14972
14973 * macterm.c: Make (several) trivial substitutions for renamed and
14974 new macros in dispextern.h, frame.h and window.h.
14975 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
14976 (glyph_rect): Use window coordinates returned from
14977 window_from_coordinates rather than frame_to_window_pixel_xy.
14978 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
14979 scroll-bars.
14980 (x_clip_to_row): Remove superfluous whole_line_p arg and code
14981 (fringes are now inside margins, i.e. always in the clipping area).
14982 All callers changed.
14983 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
14984 directly, then call compute_fringe_widths. Don't call
14985 frame_update_line_height.
14986
14987 * macfns.c: Make (several) trivial substitutions for renamed and
14988 new macros in dispextern.h, frame.h and window.h.
14989 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
14990
14991 * macmenu.c: Make (few) trivial substitutions for renamed and
14992 new macros in dispextern.h, frame.h and window.h.
14993
14994 * msdos.h (struct x_output): Remove members left_pos, top_pos,
14995 and line_height, and use corresponding new members in struct
14996 frame. All uses changed.
14997 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
14998 superseeded by corresponding macros in frame.h.
14999
15000 * msdos.c: Make (several) trivial substitutions for renamed and
15001 new macros in dispextern.h, frame.h and window.h.
15002 (IT_note_mouse_highlight): Use updated window coordinates returned
15003 by window_from_coordinates, rather than adjusting them locally.
15004 (internal_terminal_init): No need to initialize line_height here;
15005 it now defaults to 1.
15006
15007 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
15008
15009 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
15010 dropping `down' events.
15011
15012 2003-05-24 Andreas Schwab <schwab@suse.de>
15013
15014 * coding.c (find_safe_codings): Fix last change.
15015
15016 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
15017
15018 * xfns.c (x_window): Fix typo from 2003-05-21 change.
15019
15020 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
15021
15022 * xdisp.c (display_mode_element): Increase max depth.
15023 Simplify the error handling code. Use a different error string
15024 for the case where we hit the depth limit.
15025
15026 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
15027
15028 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
15029
15030 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
15031
15032 * intervals.c (get_local_map): Don't get char-property of previous
15033 point any more: get_pos_property already does it and better.
15034
15035 2003-05-21 Dave Love <fx@gnu.org>
15036
15037 [Merged from unicode branch.]
15038
15039 * xfns.c (x_window, x_window): Use use_xim.
15040
15041 * xterm.c (use_xim): Initialize.
15042 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15043 (x_term_init): Maybe set use_xim.
15044
15045 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15046
15047 2003-05-21 Jason Rumney <jasonr@gnu.org>
15048
15049 * unexw32.c (_start): Remove _fmode initialization.
15050
15051 * emacs.c (main) [WINDOWSNT]: Move it here.
15052
15053 2003-05-20 Dave Love <fx@gnu.org>
15054
15055 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
15056
15057 2003-05-19 Richard M. Stallman <rms@gnu.org>
15058
15059 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
15060 as value for QCfont attribute.
15061 (realize_default_face): lface should already exist; crash if not.
15062 Specify 0 for FORCE_P when calling set_lface_from_font_name.
15063
15064 * frame.c (Fignore_event): Doc fix.
15065
15066 2003-05-19 Kenichi Handa <handa@m17n.org>
15067
15068 * coding.c (decode_coding_string): Handle post-read-conversion
15069 even if the coding doesn't require decoding.
15070
15071 2003-05-18 Richard M. Stallman <rms@gnu.org>
15072
15073 * callproc.c (Fcall_process_region): Doc fix.
15074
15075 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
15076
15077 * lread.c (Fload): Print a message if package is obsolete.
15078
15079 * window.c (Fselect_window): Add optional `norecord' arg.
15080 (select_window_1): Fold into Fselect_window.
15081 (select_window_norecord): New function.
15082 (temp_output_buffer_show): Use it. Preserve current buffer.
15083
15084 * window.h (Fselect_window): Update declaration.
15085
15086 * window.c (delete_window, Fother_window, Fset_window_configuration):
15087 * minibuf.c (read_minibuf):
15088 * macterm.c (x_new_focus_frame):
15089 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
15090 * callint.c (Fcall_interactively):
15091 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
15092
15093 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
15094
15095 2003-05-17 David Kastrup <dak@gnu.org>
15096
15097 * process.c (read_process_output): Back out change from 2003-03-09.
15098
15099 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
15100
15101 * editfns.c (get_pos_property): Don't assume that `object' = nil.
15102
15103 * textprop.c (text_property_stickiness): New arg `buffer'.
15104
15105 * intervals.h (text_property_stickiness): New arg `buffer'.
15106 (get_pos_property): Declare.
15107
15108 * intervals.c (get_local_map): Use get_pos_property, to obey
15109 stickiness and empty overlays.
15110 (create_root_interval, graft_intervals_into_buffer): Use BEG.
15111 (merge_properties, intervals_equal, merge_properties_sticky):
15112 Use XCAR, XCDR.
15113 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
15114
15115 2003-05-17 Richard M. Stallman <rms@gnu.org>
15116
15117 * minibuf.c (read_minibuf): If buffer is empty, record the default
15118 in the history.
15119 (Fminibuffer_complete_word): When deleting the overlap, take account
15120 of its real position.
15121
15122 * fns.c (map_char_table): Fix previous change.
15123
15124 * syntax.c (find_defun_start):
15125 When open_paren_in_column_0_is_defun_start,
15126 return beginning of buffer.
15127
15128 * lisp.h (map_char_table): Declare added arg.
15129
15130 * fns.c (map_char_table): New arg TABLE gets the master table.
15131 All calls changed.
15132 Process default and inheritance, resorting to Faref if necessary.
15133
15134 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15135 (Faccessible_keymaps): Pass new arg to map_char_table.
15136
15137 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
15138
15139 * casetab.c (set_case_table): Pass new arg to map_char_table.
15140
15141 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
15142
15143 * lisp.h (specbinding_func): New typedef.
15144 (struct specbinding): Use specbinding_func, to put the `volatile'
15145 in the right place.
15146
15147 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
15148 to avoid GCC warning.
15149
15150 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
15151
15152 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
15153
15154 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
15155
15156 * keyboard.c (apply_modifiers): Don't fill the other cache.
15157
15158 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
15159
15160 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
15161
15162 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
15163 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
15164 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
15165 (Fset_window_configuration, Fcurrent_window_configuration)
15166 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
15167 (Fpos_visible_in_window_p, mark_window_cursors_off)
15168 (window_internal_height, window_internal_width, Frecenter)
15169 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
15170 (replace_buffer_in_all_windows, init_window_once, init_window)
15171 (syms_of_window, keys_of_window): Move from lisp.h.
15172 * lisp.h: Move window.c declarations to window.h.
15173
15174 * bytecode.c: Include window.h.
15175 * emacs.c: Include window.h.
15176
15177 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
15178 (keyremap): Add `parent' field.
15179 (keyremap_step): Use it. Remove `parent' argument.
15180 (read_key_sequence): Setup and use the new `parent' field.
15181
15182 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
15183
15184 * keyboard.c (adjust_point_for_property): Ensure termination.
15185
15186 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
15187
15188 * keyboard.c (follow_key): Remove dead variable `did_meta'.
15189 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
15190 duplicated handling of function-key-map and key-translation-map
15191 in read_key_sequence.
15192 (read_key_sequence): Use them.
15193
15194 * keyboard.c (adjust_point_for_property): Try harder to move point
15195 to the non-sticky end of an invisible property.
15196
15197 * xdisp.c (single_display_prop_intangible_p): Make `space' display
15198 property intangible as well.
15199
15200 2003-05-10 Andreas Schwab <schwab@suse.de>
15201
15202 * xmenu.c (single_menu_item): Change last parameter to void* to
15203 avoid warning.
15204
15205 2003-05-09 Richard M. Stallman <rms@gnu.org>
15206
15207 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
15208 Bind Qinhibit_modification_hooks to t so there will be no GC.
15209 Rename local `tem' to `save_deactivate_mark'.
15210
15211 * eval.c (specpdl_ptr): Declare volatile.
15212 (unbind_to): Copy the whole binding and decrement specpdl_ptr
15213 before doing the work of unbinding it.
15214
15215 * lisp.h (struct specbinding): Declare elements volatile.
15216 (specpdl_ptr): Declare volatile.
15217
15218 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
15219
15220 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
15221 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
15222
15223 2003-05-08 Dave Love <fx@gnu.org>
15224
15225 * coding.c (Vlast_coding_system_used): Doc fix.
15226
15227 2003-05-07 Jason Rumney <jasonr@gnu.org>
15228
15229 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
15230 when system does not support them.
15231
15232 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
15233
15234 * fileio.c (Qwrite_region_annotate_functions): New var.
15235 (build_annotations): Use it to process the global part of the hook.
15236 (syms_of_fileio): Init and staticpro it.
15237
15238 * keyboard.c (safe_run_hooks_error): Display a message instead of
15239 silently ignoring the error.
15240
15241 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
15242
15243 * keyboard.c (input_available_signal): Mark static.
15244 (menu_bar_items): Use map_keymap.
15245 (menu_bar_one_keymap): Remove.
15246 (menu_bar_item): Adjust arglist (for use in map_keymap).
15247 Properly hide a second binding when not both are keymaps.
15248
15249 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
15250 (single_keymap_panes): Use it and map_keymap.
15251 (single_menu_item): Use skp as well.
15252
15253 * keymap.h (map_keymap_function_t): New type.
15254 (map_keymap): Declare.
15255
15256 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
15257 (map_keymap_call, Fmap_keymap): New functions.
15258 (syms_of_keymap): Defsubr map-keymap.
15259
15260 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15261
15262 * gtkutil.c (create_dialog, make_widget_for_menu_item)
15263 (make_menu_item, create_menus, xg_update_menu_item): Don't call
15264 ..._with_mnemonic functions for menu items.
15265
15266 2003-05-01 Kenichi Handa <handa@m17n.org>
15267
15268 * coding.c (coding_system_accept_latin_extra_p): Delete this
15269 function.
15270 (find_safe_codings): Pay attention to
15271 the property tranlsation-table-for-encode of each codings.
15272 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
15273
15274 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
15275
15276 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
15277
15278 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
15279
15280 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
15281
15282 * lisp.h (CHECK): Wrap args in parenthesis.
15283 (specbind): Fix doc: symbol = Qnil is not supported any more.
15284
15285 * bytecode.c (Fbyte_code) <unwind-protect>:
15286 Use Fprogn rather than 0 and Qnil.
15287
15288 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
15289 `double', and `triple' modifiers as well.
15290
15291 2003-04-30 Richard M. Stallman <rms@gnu.org>
15292
15293 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
15294
15295 * alloc.c (abort_on_gc): New variable.
15296 (Fgarbage_collect): Abort if abort_on_gc is set.
15297
15298 * lisp.h (abort_on_gc): Add decl.
15299
15300 * eval.c (Fsignal): Clear abort_on_gc.
15301
15302 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
15303 Reinit FORMAT_START and END before second scan.
15304
15305 * xdisp.c (move_it_vertically_backward): Do the final big else
15306 even if nlines is 0.
15307
15308 * xdisp.c (redisplay_internal): Finish the per-frame loop
15309 even if redisplay is suspended by input.
15310
15311 2003-04-24 Andrew Choi <akochoi@shaw.ca>
15312
15313 * macterm.c (x_list_fonts): Return all fonts that match if
15314 maxnames = -1.
15315
15316 2003-04-25 Kenichi Handa <handa@m17n.org>
15317
15318 * syntax.c (skip_chars): Fix previous change.
15319
15320 2003-04-24 Kenichi Handa <handa@m17n.org>
15321
15322 * syntax.c (skip_chars): Make the code faster by using the common
15323 technique of *p, *stop, and *endp.
15324
15325 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15326
15327 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
15328 tool_bar_items so GTK tool bar expose callback does not access items
15329 being updated.
15330
15331 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
15332
15333 * eval.c (Fapply): Undo last change and add a comment about why.
15334
15335 2003-04-18 Miles Bader <miles@gnu.org>
15336
15337 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
15338 pickier PARSE_MULTIBYTE_SEQ.
15339
15340 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
15341
15342 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
15343 Use XCDR, XCAR, CONSP.
15344 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
15345 (Fapply): Remove unnecessary GCPRO.
15346
15347 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
15348
15349 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
15350
15351 * buffer.h: Don't hardcode BEG==1.
15352
15353 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
15354
15355 2003-04-16 Richard M. Stallman <rms@gnu.org>
15356
15357 * xdisp.c (try_window, try_window_reusing_current_matrix):
15358 When at end of window, set window_end_pos to Z-ZV.
15359
15360 * buffer.c (Foverlay_recenter): Doc fix.
15361
15362 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
15363
15364 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
15365
15366 2003-04-14 Andrew Choi <akochoi@shaw.ca>
15367
15368 * macterm.c (mac_check_for_quit_char): Don't check more often than
15369 once a second.
15370
15371 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
15372
15373 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
15374 specially, so that they can't hide an implicit switch-frame event.
15375 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
15376 (head_table): Use switch-frame as event_kind for select-window.
15377 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
15378
15379 * editfns.c (Fformat): Lisp_Object/int mixup.
15380 (format2): Remove unused var numargs.
15381
15382 2003-04-11 Kenichi Handa <handa@m17n.org>
15383
15384 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
15385 (Qafter_insert_file_set_coding): New variable.
15386 (syms_of_fileio): Initialize and staticpro it. Delete declaration
15387 for after-insert-file-adjust-coding-function.
15388 (Finsert_file_contents): Call Qafter_insert_file_set_coding
15389 instead of Vafter_insert_file_adjust_coding_function.
15390
15391 2003-04-11 Kenichi Handa <handa@m17n.org>
15392
15393 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
15394
15395 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
15396 string. Callers changed.
15397
15398 2003-04-10 Kenichi Handa <handa@m17n.org>
15399
15400 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
15401 (syms_of_fileio): Declare it as a lisp variable.
15402 (Finsert_file_contents):
15403 Call Vafter_insert_file_adjust_coding_function before calling
15404 decode-format.
15405
15406 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15407
15408 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
15409 get GtkAdjustment as widget now is a GtkRange.
15410
15411 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
15412 GtkRange to avoid memory leak.
15413
15414 2003-04-09 Kenichi Handa <handa@m17n.org>
15415
15416 * xfaces.c (Vface_font_rescale_alist): New variable.
15417 (struct font_name): New member rescale_ratio.
15418 (font_rescale_ratio): New function.
15419 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
15420 (better_font_p): On comparing point sized, pay attention to
15421 recale_ratio member of fonts.
15422 (build_scalable_font_name): Reflect font->rescale_ratio in the
15423 font name.
15424 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15425
15426 * lread.c (read1): Before calling index, check if the 2nd
15427 arguemnt is in ASCII range.
15428
15429 2003-04-08 Richard M. Stallman <rms@gnu.org>
15430
15431 * fileio.c (Ffile_symlink_p): Doc fix.
15432
15433 * editfns.c (Fformat): Translate positions of text properties
15434 in the format string to apply them to the result.
15435
15436 * fileio.c (Finsert_file_contents): Doc fix.
15437 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
15438
15439 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
15440
15441 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
15442
15443 2003-04-08 Steven Tamm <steventamm@mac.com>
15444
15445 * mac.c (init_mac_osx_environment): Switch libexec and bin so
15446 that self-contained application finds libexec files.
15447
15448 2003-04-08 Kenichi Handa <handa@m17n.org>
15449
15450 * coding.c (code_convert_region_unwind):
15451 Set Vlast_coding_system_used to the argument.
15452 (code_convert_region): If post-read-conversion function changed
15453 the value of last-coding-sytem, keep the new value in
15454 coding->symbol so that it won't be overridden.
15455 (run_pre_post_conversion_on_str): Likewise.
15456 (coding_system_accept_latin_extra_p): New function.
15457 (find_safe_codings): Pay attention to characters registered in
15458 latin-extra-code-table.
15459
15460 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
15461
15462 * Makefile.in (md5.o): Add missing dependency info.
15463
15464 2003-04-06 Richard M. Stallman <rms@gnu.org>
15465
15466 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
15467
15468 * marker.c (verify_bytepos): New function.
15469
15470 * intervals.c (set_intervals_multibyte_1): When becoming
15471 multibyte, adjust right and left child sizes to a whole set of
15472 characters. If an interval gets zero total-length, delete it.
15473 If an interval consists of just its children, delete one of them.
15474
15475 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
15476 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
15477
15478 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
15479 All calls deleted.
15480 (lisp_malloc): Do the work here directly.
15481
15482 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
15483
15484 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
15485 char tables.
15486
15487 2003-04-04 Kenichi Handa <handa@m17n.org>
15488
15489 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
15490 destructively change "%S" to "%s".
15491
15492 2003-04-03 Miles Bader <miles@gnu.org>
15493
15494 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
15495 always set.
15496
15497 2003-04-01 Dave Love <fx@gnu.org>
15498
15499 * xfns.c (xpm_lookup_color): Grok "opaque".
15500
15501 2003-03-31 Andrew Choi <akochoi@shaw.ca>
15502
15503 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
15504 parent window ID.
15505
15506 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
15507
15508 * macterm.h (struct mac_output): Define x_pixels_diff and
15509 y_pixels_diff.
15510
15511 2003-03-31 Juanma Barranquero <lektu@terra.es>
15512
15513 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
15514 blockinput.h and files included from it.
15515
15516 2003-03-31 Kim F. Storm <storm@cua.dk>
15517
15518 The following changes consolidates the common code related to
15519 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
15520 files into frame.c.
15521
15522 * frame.c: Include blockinput.h.
15523 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
15524 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
15525 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
15526 related vars here.
15527 (struct frame_parm_table, frame_parms): New table for describing
15528 frame parameters and their associated Q-variable.
15529 The order of the parameters corresponds to the sequence of the
15530 frame_parm_handlers table in redisplay_interface.
15531 (x_fullscreen_move, x_set_frame_parameters)
15532 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
15533 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
15534 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
15535 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
15536 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
15537 Generic functions for processing of frame parameters.
15538 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
15539 (display_x_get_resource, x_get_resource_string): Functions for
15540 generic access to X resources.
15541 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
15542 (x_default_parameter, Fx_parse_geometry): Functions for generic
15543 access to frame parameters.
15544 (x_figure_window_size): Generic calculation of frame size.
15545 Fixed to add space needed for tool bar. Also setup size_hint_flags.
15546 (syms_of_frame): Intern and staticpro frame parameter variables.
15547 Defvar_lisp Vx_resource_class and Vx_resource_name here.
15548 Defsubr Sx_get_resource and Sx_parse_geometry.
15549
15550 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
15551 parameter related vars defined in frame.c.
15552 (EMACS_CLASS): Define here.
15553 (enum FULLSCREEN_*): Define here.
15554 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
15555 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
15556 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
15557 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
15558 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
15559 (x_set_visibility, x_set_autoraise, x_set_autolower)
15560 (x_set_unsplittable, x_set_vertical_scroll_bars)
15561 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
15562 (x_figure_window_size): Add prototypes.
15563
15564 * dispextern.h (frame_parm_handler): New typedef.
15565 (struct redisplay_interface): New member frame_parm_handlers.
15566 (enum resource_types): Move declaration here.
15567 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
15568 (x_default_parameter): Add prototypes.
15569
15570 * window.c: Remove extern decl for frame parameter vars.
15571 (change_window_heights): New generic function;
15572 replaces x_change_window_heights. All users changed.
15573
15574 * window.h (change_window_heights): Add prototype.
15575
15576 * xfaces.c: Remove extern decl for frame parameter vars.
15577
15578 * xterm.h (EMACS_CLASS): Remove. Use generic define.
15579 (struct w32_display_info): Fix type of xrdb member.
15580 (enum FULLSCREEN_*): Remove.
15581 Remove prototypes for generic functions (in frame.h).
15582
15583 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
15584 parameters now defined in frame.h and frame.c.
15585 (Vx_resource_name): Remove. Use generic var.
15586 (enum x_frame_parms): Remove (bogus, unused enum).
15587 (check_x_display_info): Make non-static (for frame.c).
15588 (struct x_frame_parm_table, x_frame_parms): Remove.
15589 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
15590 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
15591 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
15592 (x_change_window_heights, x_set_autoraise, x_set_autolower)
15593 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
15594 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
15595 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
15596 Remove. Use generic functions instead.
15597 (enum resource_types): Remove.
15598 (x_set_scroll_bar_default_width): New global function (for frame.c).
15599 (Fx_create_frame): Depend on x_figure_window_size to add space for
15600 toolbar and setup size_hint_flags.
15601 (x_frame_parm_handlers): New table for redisplay_interface.
15602 (syms_of_xfns): Don't intern/staticpro removed vars.
15603
15604 * xterm.c: Remove unnecessary extern declarations.
15605 (x_fullscreen_adjust): Remove. Use generic instead.
15606 (x_redisplay_interface): Add x_frame_parm_handlers member.
15607
15608 * w32gui.h (XrmDatabase): New (dummy) typedef.
15609
15610 * w32term.h (EMACS_CLASS): Remove. Use generic define.
15611 (struct w32_display_info): Fix type of xrdb member.
15612 (enum FULLSCREEN_*): Remove.
15613 (x_fullscreen_adjust): Remove prototype.
15614
15615 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
15616 parameters now defined in frame.h and frame.c.
15617 (Vx_resource_name): Remove. Use generic var.
15618 (enum x_frame_parms): Remove (bogus, unused enum).
15619 (check_x_display_info): Make non-static (for frame.c).
15620 (struct x_frame_parm_table, x_frame_parms): Remove.
15621 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
15622 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
15623 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
15624 (x_change_window_heights, x_set_autoraise, x_set_autolower)
15625 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
15626 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
15627 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
15628 Remove. Use generic functions instead.
15629 (enum resource_types): Remove.
15630 (x_set_scroll_bar_default_width): New global function (for frame.c).
15631 (Fx_create_frame): Depend on x_figure_window_size to add space for
15632 toolbar and setup size_hint_flags.
15633 (w32_frame_parm_handlers): New table for redisplay_interface.
15634 (syms_of_w32fns): Don't intern/staticpro removed vars.
15635
15636 * w32term.c: Remove unnecessary extern declarations.
15637 (x_fullscreen_adjust): Remove. Use generic instead.
15638 (x_redisplay_interface): Add w32_frame_parm_handlers member.
15639
15640 * w32reg.c (x_get_string_resource): Use XrmDatabase.
15641
15642 * macgui.h (XrmDatabase): New (dummy) typedef.
15643
15644 * macterm.h (EMACS_CLASS): Remove.
15645 (struct mac_display_info): Add xrdb member.
15646 (struct mac_output): Add want_fullscreen member.
15647
15648 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
15649 parameters now defined in frame.h and frame.c.
15650 (Vx_resource_name): Remove. Use generic var.
15651 (check_x_display_info): Make non-static (for frame.c).
15652 (struct x_frame_parm_table, x_frame_parms): Remove.
15653 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
15654 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
15655 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
15656 (x_change_window_heights, x_set_autoraise, x_set_autolower)
15657 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
15658 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
15659 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
15660 Remove. Use generic functions instead.
15661 (enum resource_types): Remove.
15662 (x_set_scroll_bar_default_width): New global function (for frame.c).
15663 (mac_frame_parm_handlers): New table for redisplay_interface.
15664 (syms_of_macfns): Don't intern/staticpro removed vars.
15665
15666 * macterm.c: Remove unnecessary extern declarations.
15667 (x_redisplay_interface): Add mac_frame_parm_handlers member.
15668
15669 * Makefile.in (frame.o): Add dependency on blockinput.h and files
15670 included from it (atimer.h and systime.h).
15671
15672 2003-03-30 Andreas Schwab <schwab@suse.de>
15673
15674 * xdisp.c (x_insert_glyphs): Fix swapped width and height
15675 parameters for shift_glyphs_for_insert.
15676
15677 * macterm.c (x_redisplay_interface): Add missing entry for
15678 draw_vertical_window_border.
15679
15680 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
15681
15682 * fileio.c (Fexpand_file_name): In the no-handler case, after
15683 expanding, look again for a handler and invoke it. This is needed
15684 for filenames like "/foo/../user@host:/bar/../baz" -- the first
15685 expansion produces "/user@host:/bar/../baz" which needs to be
15686 expanded again for the finame result "/user@host:/baz".
15687
15688 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15689
15690 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
15691 of area to be redrawn for better performance.
15692
15693 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
15694
15695 * xterm.c (take_vertical_position_into_account): Remove.
15696 (xt_action_hook): Call set_vertical_scroll_bar if needed.
15697 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
15698 (xm_scroll_callback, x_create_toolkit_scroll_bar)
15699 (x_set_toolkit_scroll_bar_thumb): Simplify.
15700 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
15701 (XTread_socket): Remove unused var.
15702 (x_make_frame_invisible): Replace goto with else.
15703
15704 * xdisp.c (set_vertical_scroll_bar): New fun.
15705 (redisplay_window): Use it.
15706
15707 2003-03-26 Richard M. Stallman <rms@gnu.org>
15708
15709 * xdisp.c (update_tool_bar): Recompute tool bar if
15710 update_mode_lines is set. Set w->update_mode_line
15711 only if the tool bar contents actually change.
15712 (update_menu_bar): Undo previous change.
15713
15714 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15715
15716 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
15717 (xg_frame_set_char_size): Calculate scroll bar width before frame
15718 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
15719 (xg_separator_p): Check for all documented separator types.
15720 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
15721 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
15722
15723 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
15724 so tool bar gets updated.
15725
15726 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
15727
15728 * data.c (store_symval_forwarding): Re-instate part of the code
15729 that was deleted with too much enthusiasm.
15730
15731 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
15732
15733 * data.c (store_symval_forwarding): Delete special read-only
15734 hack for type == -1, since we now use ->constant instead.
15735 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
15736
15737 * buffer.c (overlays_in): Declare static.
15738 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
15739 `constant' field rather than the variable's `type' field.
15740
15741 2003-03-24 Andrew Choi <akochoi@shaw.ca>
15742
15743 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
15744
15745 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
15746
15747 * fns.c [MAC_OSX]: Do not redefine vector.
15748
15749 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
15750
15751 * macgui.h: Remove definition of No_Cursor.
15752
15753 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
15754
15755 * xdisp.c: Define No_Cursor.
15756 (x_write_glyphs, notice_overwritten_cursor)
15757 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
15758 (note_mouse_highlight): Remove Mac-specific code.
15759 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
15760
15761 2003-03-24 John Paul Wallington <jpw@gnu.org>
15762
15763 * xdisp.c (redisplay_window): If mini window's buffer is not
15764 empty, then redisplay it like other windows.
15765
15766 2003-03-23 Kim F. Storm <storm@cua.dk>
15767
15768 * w32term.c (w32_draw_window_cursor): Fix last change.
15769
15770 2003-03-23 Kenichi Handa <handa@m17n.org>
15771
15772 * alloc.c (make_string_from_bytes, make_specified_string):
15773 Add `const' for the arg CONTENTS.
15774
15775 * lisp.h (make_string_from_bytes, make_specified_string):
15776 Prototypes adjusted.
15777
15778 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15779
15780 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
15781
15782 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
15783 (XG_SB_RANGE): New define.
15784
15785 * gtkutil.c (xg_fixed_handle_expose): New function.
15786 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
15787 expose events.
15788 (xg_update_scrollbar_pos): Take two more arguments, left and width
15789 of scroll bar including borders.
15790 Clear left and right part outside scroll bar separately as some
15791 themes have bars that are not an even number of pixels.
15792 Don't set reallocate_redraws, don't call
15793 gdk_window_process_all_updates.
15794 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
15795 so no need to change it. Calculate size and value with XG_SB_RANGE.
15796
15797 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
15798 Pass left and width of scroll bar including borders to
15799 xg_update_scrollbar_pos.
15800
15801 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
15802
15803 * Makefile.in: Make sure space precedes end-of-line backslashes.
15804
15805 2003-03-22 Kim F. Storm <storm@cua.dk>
15806
15807 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
15808 Add generic versions here. Remove system specific versions
15809 defined elsewhere.
15810
15811 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
15812 Add prototypes.
15813
15814 * xterm.h (STORE_NATIVE_RECT): New macro.
15815
15816 2003-03-21 Kim F. Storm <storm@cua.dk>
15817
15818 * xdisp.c (get_glyph_string_clip_rect):
15819 Use FRAME_INTERNAL_BORDER_WIDTH.
15820
15821 * dispextern.h (struct redisplay_interface): Add active_p
15822 argument to draw_window_cursor member. All uses changed.
15823
15824 2003-03-21 Kim F. Storm <storm@cua.dk>
15825
15826 The following changes consolidate code related to writing and
15827 inserting glyphs, exposing frame, the tool bar, the mouse face,
15828 the output cursor, and help echo from xterm.c, w32term.c and
15829 macterm.c into xdisp.c. It also generalizes the use of the
15830 window_part enum instead of using numeric values throughout.
15831
15832 * xdisp.c: Consolidate gui-independent code here.
15833 Include keymap.h.
15834 (Qhelp_echo): Import.
15835 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
15836 (help_echo_string, help_echo_window, help_echo_object)
15837 (previous_help_echo_string, help_echo_pos): Declare here.
15838 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
15839 (estimate_mode_line_height): Define here. Handle windowing
15840 systems directly (without using estimate_mode_line_height_hook).
15841 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
15842 (update_window_cursor, update_cursor_in_window_tree)
15843 (fast_find_position, fast_find_string_pos)
15844 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
15845 (expose_area, expose_line, expose_overlaps, expose_window)
15846 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
15847 declared static as they are only used locally in xdisp.c.
15848 (draw_glyphs): Rename from x_draw_glyphs and make static.
15849 (tool_bar_item_info, notice_overwritten_cursor): Make static.
15850 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
15851 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
15852 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
15853 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
15854 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
15855 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
15856 (note_mouse_highlight, x_clear_window_mouse_face)
15857 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
15858 (x_intersect_rectangles): New generic functions for use by xdisp.c
15859 and GUI front-ends.
15860 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
15861 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
15862
15863 * dispextern.h (Display_Info): Generic typedef for *_display_info.
15864 (NativeRectangle): Generic typedef for rectangle type.
15865 (enum window_part): Move here from window.c.
15866 (struct redisplay_interface): New members flush_display_optional,
15867 define_frame_cursor, clear_frame_area, draw_window_cursor,
15868 draw_vertical_window_border, shift_glyphs_for_insert.
15869 Rename member clear_mouse_face to clear_window_mouse_face.
15870 (estimate_mode_line_height_hook): Remove hook.
15871 (auto_raise_tool_bar_buttons_p): Don't declare extern.
15872 (tool_bar_item_info): Remove prototype.
15873 (help_echo_string, help_echo_window, help_echo_object)
15874 (previous_help_echo_string, help_echo_pos)
15875 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
15876 (x_stretch_cursor_p, output_cursor): Declare extern.
15877 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
15878 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
15879 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
15880 (display_and_set_cursor, set_output_cursor, x_cursor_to)
15881 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
15882 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
15883 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
15884 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
15885 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
15886 Add prototypes.
15887 (mode_line_string, marginal_area_string): Fix prototypes.
15888
15889 * window.c (enum window_part): Move to dispextern.h.
15890 (coordinates_in_window): Use enum window_part member names
15891 instead of numbers to describe return value.
15892 (struct check_window_data): Change part member to window_part.
15893 (check_window_containing): Return window_part unaltered.
15894 (window_from_coordinates): Change part arg from int to enum
15895 window_part. Allow part arg to be null. All users changed.
15896
15897 * window.h (window_from_coordinates): Fix prototype.
15898
15899 * term.c (estimate_mode_line_height): Move to xdisp.c.
15900
15901 * keyboard.c (make_lispy_event): Use enum window_part.
15902
15903 * dispnew.c (mode_line_string, marginal_area_string): Use enum
15904 window_part instead of int in arg list. Users changed.
15905
15906 * xterm.h (No_Cursor): Declare as None for X.
15907 (struct mac_output): Replace member cross_cursor by hand_cursor.
15908
15909 * xterm.c: Remove consolidated defines and code.
15910 (BETWEEN): Remove unused macro.
15911 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
15912 (x_define_frame_cursor, x_clear_frame_area)
15913 (x_draw_window_cursor): New X-specific functions for RIF.
15914 (x_redisplay_interface): Add new members.
15915
15916 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
15917
15918 * w32term.h (struct w32_output): Remove cross_cursor member.
15919
15920 * w32term.c: Remove consolidated defines and code.
15921 (BETWEEN): Remove unused macro.
15922 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
15923 (w32_define_frame_cursor, w32_clear_frame_area)
15924 (w32_draw_window_cursor): New W32-specific functions for RIF.
15925 (w32_redisplay_interface): Add new members.
15926
15927 * w32gui.h (No_Cursor): Define as 0 for W32.
15928 (XRectangle): Add X compatible rectangle type.
15929 (NativeRectangle): Declare as RECT for W32.
15930 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
15931
15932 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
15933
15934 * w32console.c: Remove consolidated defines and code.
15935
15936 * msdos.h (Display_Info): Add generic typedef.
15937
15938 * msdos.c: Remove consolidated defines and code.
15939 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
15940
15941 * macterm.h (struct mac_output): Replace member cross_cursor by
15942 hand_cursor.
15943 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
15944
15945 * macterm.c: Remove consolidated defines and code.
15946 (BETWEEN): Remove unused macro.
15947 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
15948 (mac_define_frame_cursor, mac_clear_frame_area)
15949 (mac_draw_window_cursor): New Mac-specific functions for RIF.
15950 (x_redisplay_interface): Add new members.
15951
15952 * macgui.h (No_Cursor): Define as 0 for Mac.
15953 (XRectangle): Add X compatible rectangle type.
15954 (NativeRectangle): Declare as Rect for Mac.
15955 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
15956
15957 * macfns.c (x_set_mouse_color): Setup hand_cursor.
15958 (x_set_cursor_color): Use x_display_and_set_cursor.
15959
15960 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
15961 included from it. Add dependency on keymap.h.
15962
15963 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
15964
15965 2003-03-21 Kenichi Handa <handa@m17n.org>
15966
15967 * fileio.c (Fexpand_file_name): Fix previous change.
15968
15969 2003-03-19 Kenichi Handa <handa@m17n.org>
15970
15971 * fileio.c (Ffile_name_directory): Reconstruct file name by
15972 make_specified_string.
15973 (Ffile_name_nondirectory, Ffile_name_as_directory)
15974 (Fdirectory_file_name, Fexpand_file_name)
15975 (Fsubstitute_in_file_name): Likewise.
15976 (Fread_file_name): Compare decoded homedir with DIR and
15977 DEFAULT_FILENAME.
15978
15979 * alloc.c (make_specified_string): If NCHARS is negative, count
15980 the number of characters.
15981
15982 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15983
15984 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
15985 all widgets.
15986
15987 * gtkutil.h: Removed xg_ignore_next_thumb.
15988
15989 2003-03-18 Kenichi Handa <handa@m17n.org>
15990
15991 * coding.c (Vchar_coding_system_table): Remove this variable.
15992 (Vcoding_system_safe_chars): New variable.
15993 (intersection): Remove this function.
15994 (find_safe_codings): Don't use Vchar_coding_system_table, but try
15995 all codings in SAFE_CODINGS.
15996 (Ffind_coding_systems_region_internal): Adjust for the change of
15997 find_safe_codings. Get generic coding systems from
15998 Vcoding_system_safe_chars.
15999 (Fdefine_coding_system_internal): New function.
16000 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
16001 Initialize and staticpro Vcoding_system_safe_chars.
16002
16003 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16004
16005 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
16006 equal old values before updating.
16007
16008 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
16009
16010 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
16011
16012 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16013
16014 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
16015 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
16016 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
16017 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
16018 (xg_create_scroll_bar): Pass bar to button event callback.
16019 (xg_find_top_left_in_fixed): New function.
16020 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
16021 whole scroll bar area. Get old position with
16022 xg_find_top_left_in_fixed, calculate and only clear needed areas.
16023 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
16024 dragging is in progress. Calculate whole as for Motif.
16025 Remove code that saved last values. Call gtk_range functions to
16026 set scroll bar sizes.
16027
16028 * gtkutil.h: Removed xg_ignore_next_thumb.
16029
16030 2003-03-17 Juanma Barranquero <lektu@terra.es>
16031
16032 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
16033 and files included from it.
16034
16035 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
16036
16037 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
16038 multiple occurrences of the same keymap under different prefixes.
16039 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
16040
16041 2003-03-16 Jason Rumney <jasonr@gnu.org>
16042
16043 * w32gui.h: Use HDC for Display.
16044
16045 * w32term.c (w32_encode_char): Prevent double-byte chars from
16046 crashing Emacs.
16047
16048 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
16049 as binary.
16050
16051 2003-03-16 Juanma Barranquero <lektu@terra.es>
16052
16053 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
16054
16055 2003-03-16 Kim F. Storm <storm@cua.dk>
16056
16057 The following changes consolidate some of the gui-independent
16058 parts of the processing and drawing of "glyph strings" from
16059 xterm.c, w32term.c, and macterm.c into xdisp.c.
16060
16061 * dispextern.h (struct glyph): Reduce face_id member from 22 to
16062 21 bits (this reduces number of faces from 4M to 2M).
16063 Replace W32 specific w32_font_type member (2 bits) by generic
16064 font_type member (3 bits) for portability.
16065 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
16066 (enum draw_glyphs_face): Define here.
16067 (struct glyph_string): Define here. Merge W32 and X versions.
16068 (struct redisplay_interface): New members per_char_metric,
16069 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
16070 (VCENTER_BASELINE_OFFSET): Define here.
16071 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
16072 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
16073
16074 * xdisp.c: Consolidate gui-independent "glyph string" code here.
16075 (dump_glyph_string): Moved here.
16076 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
16077 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
16078 (fill_composite_glyph_string, fill_glyph_string)
16079 (fill_image_glyph_string, fill_stretch_glyph_string)
16080 (left_overwritten, left_overwriting, right_overwritten)
16081 (right_overwriting, get_char_face_and_encoding)
16082 (set_glyph_string_background_width, compute_overhangs_and_x)
16083 (append_glyph, append_composite_glyph, produce_image_glyph)
16084 (take_vertical_position_into_account, append_stretch_glyph)
16085 (produce_stretch_glyph): New generic functions (based on X version).
16086 Call platform specific functions through rif.
16087 (INIT_GLYPH_STRING): New macro, hides W32 details.
16088 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
16089 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
16090 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
16091 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
16092 (notice_overwritten_cursor):
16093 Generic functions exported to platform modules. Users changed.
16094
16095 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
16096 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
16097 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
16098 New macros for consolidated code.
16099
16100 * xterm.c: Remove consolidated defines and code.
16101 (x_per_char_metric, x_encode_char)
16102 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
16103 (x_redisplay_interface): Add new members.
16104
16105 * w32gui.h (Display): Add dummy typedef for consolidation.
16106 (XChar2b): Define alias for wchar_t for consolidation.
16107 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
16108
16109 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
16110 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
16111 New macros for consolidation.
16112
16113 * w32term.c: Remove consolidated defines and code.
16114 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
16115 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
16116 (w32_per_char_metric): Change font_type arg to int for RIF.
16117 (w32_encode_char): Return int according to RIF requirements.
16118 (w32_compute_glyph_string_overhangs): Adapt to RIF.
16119 (w32_get_glyph_overhangs): New function for RIF. Uses generic
16120 x_get_glyph_overhangs.
16121 (w32_redisplay_interface): Add new members.
16122
16123 * macgui.h (XChar2b): Move typedef here for consolidation.
16124 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
16125
16126 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
16127 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
16128 consolidation.
16129
16130 * macterm.c: Remove consolidated defines and code.
16131 (mac_per_char_metric): New function for RIF.
16132 (mac_encode_char): Adapt to new RIF requirements.
16133 (mac_compute_glyph_string_overhangs): Adapt for RIF.
16134 (x_redisplay_interface): Add new members.
16135
16136 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
16137
16138 * keymap.c (Vmenu_events): New var.
16139 (syms_of_keymap): Initialize it.
16140 (where_is_internal): Check more carefully what is a menu event.
16141
16142 2003-03-14 Richard M. Stallman <rms@gnu.org>
16143
16144 * lread.c (read1): After #!, exit loop on eof.
16145
16146 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16147
16148 * gtkutil.h: Add declaration for xg_frame_cleared.
16149
16150 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
16151
16152 * gtkutil.c (struct xg_last_sb_pos): New structure.
16153 (handle_fixed_child): New function.
16154 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
16155 and force a redraw on them.
16156 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
16157 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
16158 so we can avoid unneeded redraws.
16159 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
16160 and force a redraw on the scroll bar.
16161 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
16162 if xg_last_sb_pos shows the positions are up to date.
16163 (xg_frame_cleared): New function.
16164
16165 2003-03-13 Kenichi Handa <handa@m17n.org>
16166
16167 * coding.c (Fdetect_coding_region): Fix docstring.
16168 (Fdetect_coding_string): Fix docstring.
16169
16170 2003-03-13 Andreas Schwab <schwab@suse.de>
16171
16172 * gtkutil.c: Add prototype for create_menus.
16173
16174 * data.c (long_to_cons): Fix type of top.
16175
16176 * xselect.c (selection_data_to_lisp_data): Use int instead of
16177 long for an integer of size 4.
16178
16179 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
16180 (xg_tool_bar_help_callback): Likewise.
16181
16182 2003-03-12 Andreas Schwab <schwab@suse.de>
16183
16184 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
16185
16186 2003-03-12 Kim F. Storm <storm@cua.dk>
16187
16188 The following changes consolidate the fringe handling from
16189 xterm.c, w32term.c, and macterm.c into xdisp.c.
16190
16191 * xdisp.c: Consolidate fringe handling code here.
16192 (left_bits, right_bits, continued_bits, continuation_bits)
16193 (ov_bits, zv_bits): Define fringe bitmaps.
16194 (fringe_bitmaps): New array holding fringe bitmaps.
16195 (draw_fringe_bitmap): Draw a specific bitmap; call display
16196 specific drawing routine via rif->draw_fringe_bitmap.
16197 (draw_row_fringe_bitmaps): Generic replacement for
16198 x_draw_row_fringe_bitmaps; all callers changed.
16199 (compute_fringe_widths): Generic replacement for
16200 x_compute_fringe_widths; all callers changed.
16201
16202 * dispextern.h (enum fringe_bitmap_type): Define here.
16203 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
16204 (fringe_bitmaps): Declare extern.
16205 (struct redisplay_interface): New member draw_fringe_bitmap.
16206 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
16207
16208 * xterm.c: Remove generic fringe code.
16209 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
16210 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
16211
16212 * w32term.c: Remove generic fringe code.
16213 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
16214 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
16215
16216 * macterm.c: Remove generic fringe code.
16217 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
16218 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
16219
16220 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
16221
16222 * print.c (Fprin1_to_string): Return unibyte string if possible.
16223
16224 2003-03-09 David Kastrup <dak@gnu.org>
16225
16226 * process.c (read_process_output): We have allocated enough space
16227 for readmax and carryover, so actually use the alloted space.
16228
16229 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16230
16231 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
16232 toolkit scrollbar click.
16233
16234 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
16235 for USE_GTK.
16236 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
16237 also.
16238 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
16239 scrollbar and control is pressed, call x_scroll_bar_handle_click.
16240
16241 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
16242
16243 * gtkutil.c (xg_get_scroll_id_for_window): New function.
16244 (xg_tool_bar_item_expose_callback): New function.
16245 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
16246 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
16247 on the tool bar widget.
16248 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
16249 to expose on the tool bar item widgets.
16250
16251 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16252
16253 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
16254 struct image* when deciding to update (struct image* may have been
16255 deleted from the image cache).
16256
16257 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
16258 the event isn't for a frame (i.e. for dialogs).
16259
16260 2003-03-07 Kenichi Handa <handa@m17n.org>
16261
16262 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
16263 composition components reaches the limit, terminate composing.
16264 (COMPOSITION_OK): New macro.
16265 (detect_coding_iso2022): Use it if an escape sequence for
16266 composition is found.
16267 (coding_restore_composition): Adjust the number of composition
16268 components if it is not sane.
16269
16270 2003-03-06 Juanma Barranquero <lektu@terra.es>
16271
16272 * w32term.h (struct w32_display_info): Add xrdb member to support
16273 passing resources via -xrm on Windows.
16274
16275 * w32term.c (w32_make_rdb): New function.
16276 (w32_term_init): Use it to initialize xrdb member of w32_display_info
16277 struct. Delete leftover code.
16278
16279 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
16280 for resources passed on the command line.
16281
16282 * w32reg.c (w32_get_rdb_resource): New function.
16283 (x_get_string_resource): Use it, so resources passed with -xrm
16284 supercede the ones in the registry.
16285
16286 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16287
16288 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
16289 instead of x_top_window_to_frame.
16290
16291 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16292
16293 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
16294 when restarting Emacs.
16295
16296 2003-03-03 Richard M. Stallman <rms@gnu.org>
16297
16298 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
16299 to run kill-buffer-query-functions.
16300 (Qkill_buffer_query_functions): New var.
16301 (syms_of_buffer): Init and staticpro it.
16302
16303 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16304
16305 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
16306
16307 2003-02-25 Kim F. Storm <storm@cua.dk>
16308
16309 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
16310 If centering point failed to make whole line visible and vscroll
16311 is non-zero, disable vscroll and try centering point again.
16312
16313 * lread.c (read1): Accept `single space' syntax like (? x).
16314
16315 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16316
16317 * keyboard.c (cancel_hourglass_unwind): Surround with
16318 #ifdef HAVE_X_WINDOWS
16319
16320 2003-02-25 Kenichi Handa <handa@m17n.org>
16321
16322 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
16323 process only when "subprocesses" is defined.
16324
16325 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
16326
16327 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
16328
16329 2003-02-24 Juanma Barranquero <lektu@terra.es>
16330
16331 * callint.c (fix_command): Declare as static void and move before
16332 Fcall_interactively.
16333
16334 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
16335 (syms_of_xdisp): Don't initialize Qwhen.
16336
16337 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16338
16339 * keyboard.c (cancel_hourglass_unwind): New function.
16340 (command_loop_1): Cancel hourglass with unwind-protect.
16341
16342 2003-02-23 Richard M. Stallman <rms@gnu.org>
16343
16344 * callint.c (fix_command): New subroutine, from Fcall_interactively.
16345 Detect (when ... (region-beginning)) etc.
16346 (Fcall_interactively): Call fix_command.
16347 (Qif, Qwhen): New variables.
16348 (syms_of_callint): Init and staticpro them.
16349
16350 * regex.c (print_partial_compiled_pattern): Output to stderr.
16351
16352 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
16353
16354 * dired.c (directory_files_internal): Don't expand directory.
16355 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
16356 instead. From Lars Hansen <larsh@math.ku.dk>.
16357
16358 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
16359
16360 * fns.c (string_to_multibyte): Remove unused var i.
16361 (Flanginfo): Fix int/Lisp_Object mixup.
16362 (void_call2): New fun.
16363 (Fmap_char_table): Use it in place of call2.
16364
16365 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
16366
16367 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
16368
16369 * keymap.c (copy_keymap_1): Make it static.
16370
16371 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
16372
16373 2003-02-22 David Ponce <david@dponce.com>
16374
16375 * lread.c (Fload): Don't check STRING_MULTIBYTE.
16376
16377 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16378
16379 * process.h: Removed subtty field from struct Lisp_Process.
16380
16381 * process.c (create_process): Remove setting of subtty.
16382 (emacs_get_tty_pgrp): New function.
16383 (Fprocess_running_child_p, process_send_signal):
16384 Call emacs_get_tty_pgrp instead of ioctl.
16385 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
16386
16387 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
16388
16389 * keymap.c (Fdefine_key): Doc fix.
16390
16391 2003-02-21 Juanma Barranquero <lektu@terra.es>
16392
16393 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
16394
16395 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
16396 POLLING_PROBLEM_IN_SELECT.
16397
16398 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
16399 Delete #undef of POLLING_PROBLEM_IN_SELECT.
16400
16401 * s/hpux10-20.h: New file.
16402
16403 * process.c (wait_reading_process_input):
16404 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
16405
16406 2003-02-20 Kenichi Handa <handa@m17n.org>
16407
16408 * fontset.c (check_fontset_name): If NAME is nil, return the
16409 default fontset.
16410 (override_font_info): New function.
16411 (Fset_fontset_font): Document that NAME nil means the default fontset.
16412 (Ffontset_info): If FONTSET is not the default fontset, merge
16413 FONTSET onto the copy of the default fontset, and work on that
16414 copy. Document that NAME nil means the default fontset.
16415 (Ffontset_font): Document that NAME nil means the default fontset.
16416
16417 * process.c (setup_process_coding_systems): If the process's
16418 in/out descriptor is -1, do nothing.
16419
16420 2003-02-19 Andreas Schwab <schwab@suse.de>
16421
16422 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
16423 Add prototypes.
16424
16425 2003-02-19 Kenichi Handa <handa@m17n.org>
16426
16427 * xfaces.c (try_alternative_families): Try all scalable fonts if
16428 Vscalable_fonts_allowed is not Qt.
16429
16430 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16431
16432 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
16433
16434 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16435
16436 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
16437 names.
16438
16439 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
16440 (sorted_font_list): Move allocation of struct font_name to
16441 x_face_list_fonts.
16442 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
16443 (Fx_list_fonts): Set maxnames to -1 to get all font names.
16444
16445 2003-02-18 Kim F. Storm <storm@cua.dk>
16446
16447 * lread.c (read1): Fix last change.
16448 "`" is not always special. Allow "?" after a character constant.
16449
16450 2003-02-18 Andrew Choi <akochoi@shaw.ca>
16451
16452 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
16453
16454 2003-02-18 Andreas Schwab <schwab@suse.de>
16455
16456 * window.c (window_scroll_pixel_based): Move outside a
16457 multi-glyph character before setting new window start.
16458
16459 * xdisp.c (in_display_vector_p): New function.
16460 * dispextern.h (in_display_vector_p): Declare.
16461
16462 2003-02-18 Kim F. Storm <storm@cua.dk>
16463
16464 * lread.c (read1): Fix and relax read syntax.
16465 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
16466 Only recognize "," after dotted-pair dot if inside backquote.
16467 Never include "`" or "," (inside backquote) in a symbol.
16468 Allow dotted-pair dot after a character constant.
16469 Allow "`" and "," (inside backquote) after a character constant.
16470
16471 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16472
16473 * gtkutil.c (xg_tool_bar_expose_callback): New function.
16474 (xg_create_tool_bar): Force style of tool bar to be horizontal with
16475 icons. Set name of tool bar to emacs-toolbar.
16476 (update_frame_tool_bar): Connect expose event to
16477 xg_tool_bar_expose_callback.
16478
16479 2003-02-17 Richard M. Stallman <rms@gnu.org>
16480
16481 * keyboard.c (this_command_key_count_reset): New variable.
16482 Initiatize to 0 where this_command_key_count is set.
16483 (read_char): Save and restore this_command_key_count_reset
16484 around input method code.
16485 (read_char): If this_command_key_count_reset, echo reread commands.
16486 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
16487
16488 2003-02-17 Kenichi Handa <handa@m17n.org>
16489
16490 * fns.c (string_to_multibyte): Always return a multibyte string.
16491
16492 2003-02-16 Jason Rumney <jasonr@gnu.org>
16493
16494 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
16495 Negative max_fonts parameter means list all.
16496
16497 2003-02-14 Dave Love <fx@gnu.org>
16498
16499 * fns.c (Flanginfo): Doc fix.
16500
16501 2003-02-13 Kim F. Storm <storm@cua.dk>
16502
16503 * lread.c (read_escape): Interpret \s as a SPACE character, except
16504 for \s-X in a character constant which still is the super modifier.
16505 (read1): Signal an `invalid read syntax' error if a character
16506 constant is immediately followed by a digit or symbol character.
16507
16508 * search.c (Fmatch_data): Doc fix. Explicitly state that
16509 match-data is undefined if last search failed.
16510
16511 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
16512 All uses changed.
16513
16514 2003-02-12 Juanma Barranquero <lektu@terra.es>
16515
16516 * eval.c (Fdefmacro): Fix typo.
16517
16518 2003-02-12 Kim F. Storm <storm@cua.dk>
16519
16520 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
16521 macro is a string, convert meta modifiers in string when copying
16522 the string into a vector.
16523
16524 2003-02-11 Kim F. Storm <storm@cua.dk>
16525
16526 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
16527
16528 2003-02-11 Kenichi Handa <handa@m17n.org>
16529
16530 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
16531
16532 2003-02-10 Kim F. Storm <storm@cua.dk>
16533
16534 * process.c: Doc fixes.
16535 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
16536
16537 2003-02-10 Kenichi Handa <handa@m17n.org>
16538
16539 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
16540
16541 * process.c (QCfilter_multibyte): New variable.
16542 (setup_process_coding_systems): New function.
16543 (Fset_process_buffer, Fset_process_filter):
16544 Call setup_process_coding_systems.
16545 (Fstart_process): Initialize the member `filter_multibyte' of
16546 struct Lisp_Process.
16547 (create_process): Call setup_process_coding_systems.
16548 (Fmake_network_process): New keyward `:filter-multibyte'.
16549 Initialize the member `filter_multibyte' of struct Lisp_Process.
16550 Call setup_process_coding_systems.
16551 (server_accept_connection): Call setup_process_coding_systems.
16552 (read_process_output): If the process has a filter, decide the
16553 multibyteness of a string to given to the filter by
16554 `filter_multibyte' member of the process. If the process doesn't
16555 have a filter and the result of conversion is unibyte, use
16556 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
16557 multibyte form.
16558 (Fset_process_coding_system): Call setup_process_coding_systems.
16559 (Fset_process_filter_multibyte): New function.
16560 (Fprocess_filter_multibyte_p): New function.
16561 (syms_of_process): Intern and staticpro QCfilter_multibyte.
16562 Defsubr Sset_process_filter_multibyte and
16563 Sprocess_filter_multibyte_p.
16564
16565 * process.h (struct Lisp_Process): New member filter_multibyte.
16566
16567 * lisp.h (setup_process_coding_systems): Add prototype.
16568
16569 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
16570 process, update coding systems for the process.
16571
16572 2003-02-09 Kenichi Handa <handa@m17n.org>
16573
16574 * fns.c (string_to_multibyte): New function.
16575 (Fstring_to_multibyte): New function.
16576 (syms_of_fns): Defsubr it.
16577
16578 2003-02-08 Andreas Schwab <schwab@suse.de>
16579
16580 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
16581 instead of the substitution.
16582
16583 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16584
16585 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
16586
16587 * xmenu.c (menu_position_func): Adjust menu popup position so that
16588 the menu is fully visible.
16589
16590 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16591
16592 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
16593 (x_make_frame_invisible, x_wm_set_icon_position):
16594 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
16595
16596 * xfns.c (x_set_name, x_set_title): Ditto.
16597
16598 2003-02-04 Richard M. Stallman <rms@gnu.org>
16599
16600 * keyboard.c (echo_now): Update before_command_echo_length.
16601 (Freset_this_command_lengths): Reset this_command_key_count etc.
16602 immediately rather than arranging to do it later.
16603 (before_command_key_count_1, before_command_echo_length_1)
16604 (before_command_restore_flag): Vars deleted.
16605 (add_command_key): Don't handle before_command_restore_flag.
16606 (read_char, record_menu_key): Don't update before_command_key_count or
16607 before_command_echo_length.
16608 (read_char): Don't handle before_command_restore_flag.
16609
16610 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
16611 in direct-output clauses if it wouldn't be called in the ordinary case.
16612
16613 2003-02-04 Kim F. Storm <storm@cua.dk>
16614
16615 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
16616
16617 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16618
16619 * gtkutil.c (remove_from_container): Copying list is not needed.
16620 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
16621 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
16622 on list returned from gtk_container_get_children to avoid memory leak.
16623
16624 2003-02-01 Jason Rumney <jasonr@gnu.org>
16625
16626 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
16627 local malloc.
16628 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
16629 definitions in xpm.h.
16630 (init_xpm_functions): New function.
16631 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
16632 (init_external_image_libraries): Try to load libXpm.dll.
16633
16634 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
16635 timestamp.
16636
16637 2003-01-31 Dave Love <fx@gnu.org>
16638
16639 * syntax.c (Fskip_chars_forward)
16640 (open-paren-in-column-0-is-defun-start): Doc fix.
16641
16642 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
16643
16644 * fileio.c: Support // at start of name for Cygwin (just added proper
16645 preprocessor tests).
16646
16647 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
16648
16649 * Makefile.in: Use @EXEEXT@ for Cygwin.
16650
16651 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
16652
16653 * s/cygwin.h: Added for Cygwin port.
16654
16655 2003-01-31 Juanma Barranquero <lektu@terra.es>
16656
16657 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
16658 when including gif_lib.h.
16659 (init_gif_functions, init_tiff_functions): New functions.
16660 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
16661 Windows. Disable color table lookups. Call library functions
16662 through pointers determined at runtime.
16663 (init_external_image_libraries): Try to load libungif.dll and
16664 libtiff.dll.
16665
16666 2003-01-31 Kenichi Handa <handa@m17n.org>
16667
16668 * xdisp.c (SKIP_GLYPHS): New macro.
16669 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
16670
16671 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16672
16673 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
16674
16675 2003-01-30 Dave Love <fx@gnu.org>
16676
16677 * alloc.c (Vgc_elapsed, gcs_done): New variables.
16678 (Fgarbage_collect): Use them.
16679 (init_alloc, syms_of_alloc): Set them up.
16680
16681 2003-01-30 Juanma Barranquero <lektu@terra.es>
16682
16683 * w32fns.c (init_external_image_libraries): Add missing operator.
16684
16685 2003-01-29 Jason Rumney <jasonr@gnu.org>
16686
16687 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
16688 an alternative name for jpeg.dll.
16689
16690 2003-01-29 Kenichi Handa <handa@m17n.org>
16691
16692 * xdisp.c (set_cursor_from_row): Pay attention to string display
16693 properties.
16694
16695 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
16696
16697 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
16698 <escape>.
16699 (keycode_to_xkeysym_table): Reformat and add more comments.
16700 (XTread_socket): Drop special case for backspace.
16701
16702 2003-01-28 Andrew Choi <akochoi@shaw.ca>
16703
16704 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
16705 values in old-style RGB specs.
16706
16707 2003-01-27 Juanma Barranquero <lektu@terra.es>
16708
16709 * w32fns.c (init_external_image_libraries): Try alternate names for the
16710 jpeg dll.
16711
16712 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16713
16714 * gtkutil.c (create_dialog, xg_separator_p)
16715 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
16716 before calling strcmp or strlen.
16717
16718 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16719
16720 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
16721 and handle image load failure.
16722
16723 2003-01-26 Jason Rumney <jasonr@gnu.org>
16724
16725 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
16726 New functions.
16727 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
16728 Disable color table lookups. Call jpeg library functions
16729 through pointers determined at runtime.
16730 (init_external_image_libraries): Try to load jpeg.dll.
16731
16732 2003-01-25 Richard M. Stallman <rms@gnu.org>
16733
16734 * lisp.h: Declare format2 instead of format1.
16735
16736 * fileio.c (barf_or_query_if_file_exists):
16737 Call format2 instead of format1.
16738
16739 * editfns.c (format2): New function, replaces format1
16740 but takes exactly two Lisp Objects as format args.
16741
16742 * buffer.c (Fkill_buffer): Call format2 instead of format1.
16743
16744 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16745
16746 * xterm.h: Change to return value of x_dispatch_event to int.
16747
16748 * xterm.c (x_filter_event): New function.
16749 (event_handler_gdk, XTread_socket): Call x_filter_event.
16750 (x_dispatch_event): Change to return value of finish.
16751 (event_handler_gdk): Use return value from x_dispatch_event.
16752
16753 * xfns.c (x_window): Call create_frame_xic for GTK version to
16754 initialize input methods.
16755
16756 * gtkutil.h: Add (void) prototypes.
16757
16758 * gtkutil.c (create_menus): Remove code that puts the help menu to
16759 the right.
16760
16761 2003-01-25 Jason Rumney <jasonr@gnu.org>
16762
16763 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
16764 [HAVE_PNG]: Sync with xfns.c version.
16765 (png_load): Adjust colors for Windows. Use Windows
16766 bitmaps. Disable color table lookups.
16767 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
16768 (init_png_functions): New function.
16769 (png_read_from_memory, png_load): Call png library functions
16770 through pointers determined at runtime.
16771 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
16772 (init_external_image_libraries): New function.
16773 (init_xfns): Call it.
16774
16775 2003-01-24 Andreas Schwab <schwab@suse.de>
16776
16777 * minibuf.c (Fminibuffer_message): Verify type of parameter.
16778
16779 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16780
16781 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
16782 of static initializer.
16783
16784 2003-01-24 Dave Love <fx@gnu.org>
16785
16786 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
16787 architectures.
16788
16789 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
16790 Use __alignof__.
16791
16792 2003-01-24 Kenichi Handa <handa@m17n.org>
16793
16794 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
16795 It it is nonzero, don't pretend that an invisible area doesn't exist.
16796 (command_loop_1): Call adjust_point_for_property with proper
16797 second arg.
16798
16799 2003-01-22 Jason Rumney <jasonr@gnu.org>
16800
16801 Sync changes with xterm.c and xfns.c.
16802
16803 * w32term.c (x_draw_glyph_string_foreground)
16804 (x_draw_composite_glyph_string_foreground): Implement overstriking.
16805
16806 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
16807 phys_cursor's hpos is overwritten. This is still not completely
16808 correct, as it doesn't really make sense to use hpos at all to
16809 get the cursor glyph (as that is relative to the width of the
16810 characters on the line, which may have changed during the update).
16811
16812 * w32term.c (notice_overwritten_cursor): Handle the special case
16813 of the cursor being in the first blank non-text line at the
16814 end of a window.
16815
16816 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
16817 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
16818 Compute from the x position returned by x_draw_glyphs.
16819
16820 (x_display_and_set_cursor): Don't set phys_cursor_width here,
16821 except for NO_CURSOR and system caret, to make phys_cursor_width
16822 contain what its name suggests.
16823 (notice_overwritten_cursor): Consider the cursor image erased if
16824 the output area intersects the cursor image in y-direction.
16825
16826 * w32term.c (note_mode_line_or_margin_highlight): Rename from
16827 note_mode_line_highlight and extend.
16828
16829 * w32term.c (last_window): New variable.
16830 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
16831 (note_mouse_movement): Remove reimplemented code in #if 0.
16832
16833 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
16834 not update_mode_lines, and always set it to 1.
16835
16836 2003-01-21 Jason Rumney <jasonr@gnu.org>
16837
16838 * w32fns.c (IDC_HAND): Define it if system headers don't.
16839
16840 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
16841
16842 * w32term.h (struct w32_output): New member hand_cursor.
16843 (WM_EMACS_SETCURSOR): New message definition.
16844
16845 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
16846 function w32_define_cursor.
16847 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
16848 position, change member name output_data.x to output_data.w32 and
16849 add function w32_define_cursor.
16850 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
16851 and change member name output_data.x to output_data.w32.
16852 (w32_initialize_display_info):
16853 Setup dpyinfo->vertical_scroll_bar_cursor.
16854
16855 * w32fns.c (Vx_hand_shape): New variable.
16856 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
16857 WM_EMACS_SETCURSOR.
16858 (x-create-frame): Setup Cursor types.
16859
16860 2003-01-21 David Ponce <david@dponce.com>
16861
16862 * w32term.c (w32_encode_char): For DIM=1 charset, set
16863 ccl->reg[2] to -1 before calling ccl_driver.
16864 (Sync. with xterm.c x_encode_char change by Kenichi Handa
16865 <handa@m17n.org> on 2002-09-30.)
16866 (w32_draw_relief_rect): Declare all args.
16867 (w32_define_cursor): New.
16868
16869 * w32fns.c (w32_load_cursor): New function.
16870 (w32_init_class): Use it.
16871 (x_put_x_image): Declare all args.
16872
16873 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
16874
16875 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
16876
16877 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16878
16879 * gtkutil.c: Must include stdio.h before termhooks.h
16880
16881 2003-01-21 Dave Love <fx@gnu.org>
16882
16883 * alloc.c (Fgc_status): Print zombie list.
16884 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
16885 Fix assignment of zombies.
16886 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
16887 Don't take car of non-cons.
16888
16889 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
16890
16891 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
16892
16893 2003-01-20 David Ponce <david@dponce.com>
16894
16895 * w32menu.c (digest_single_submenu): Declare all args.
16896
16897 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
16898 changes in xmenu.c:
16899
16900 (parse_single_submenu): Use individual keymap's prompt
16901 string as pane name, if there is one.
16902 (set_frame_menubar): Save menu_items_n_panes from each call to
16903 parse_single_submenu and use it when calling digest_single_submenu.
16904
16905 2003-01-20 Steven Tamm <steventamm@mac.com>
16906
16907 * macterm.c (XTread_socket): Check for valid, visible window
16908 before sending a scroll-wheel event.
16909
16910 2003-01-20 Richard M. Stallman <rms@gnu.org>
16911
16912 * xdisp.c (redisplay_window): If mini window's buffer is not
16913 a minibuffer, then redisplay it like other windows.
16914
16915 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16916
16917 * gtkutil.c (xg_create_frame_widgets): Check if there is an
16918 external tool bar before setting tool bar height.
16919
16920 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16921
16922 * xterm.c (handle_one_xevent): Surround popup_activated
16923 with #ifdef:s for non-toolkit version.
16924
16925 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
16926 (gtkutil.o): New file.
16927 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
16928 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
16929
16930 * gtkutil.c: New file for GTK version.
16931
16932 * gtkutil.h: New file for GTK version.
16933
16934 * xterm.h: Add xt_or_gtk_widget.
16935 Include gtk files for USE_GTK.
16936 (struct x_output): Add toolbar_height.
16937 (struct x_output): Add GTK widgets and Gdk size_hints.
16938 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
16939 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
16940 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
16941
16942 * xterm.c: Include gtkutil.h for USE_GTK.
16943 (free_frame_menubar): Declare extern void for USE_GTK.
16944 (note_mouse_highlight): Check popup_activated for USE_GTK.
16945 (xt_action_hook): Don't compile if USE_GTK.
16946 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
16947 (xg_scroll_callback): New function.
16948 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
16949 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
16950 for USE_GTK.
16951 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
16952 xg_show_scroll_bar for USE_GTK.
16953 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
16954 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
16955 (event_handler_gdk): New function for USE_GTK.
16956 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
16957 (handle_one_xevent): Make sure widget is mapped before
16958 calling x_real_positions for USE_GTK.
16959 (XTread_socket): Add GTK event loop for USE_GTK.
16960 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
16961 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
16962 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
16963 (x_iconify_frame): Add code for USE_GTK.
16964 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
16965 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
16966 is in gtkutil.c.
16967 (x_term_init): Add initialization for GTK.
16968 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
16969
16970 * xmenu.c: Include gtkutil.h for USE_GTK.
16971 (Fx_popup_menu): Use current position if x and y is NIL.
16972 (single_menu_item, single_menu_item, Fx_popup_dialog):
16973 Check for USE_GTK.
16974 (popup_widget_loop): New function for USE_GTK.
16975 (x_activate_menubar): Add code for USE_GTK.
16976 (popup_activate_callback, popup_deactivate_callback)
16977 (menu_highlight_callback, menubar_selection_callback):
16978 Add USE_GTK versions.
16979 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
16980 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
16981 (free_frame_menubar): Only compile if not USE_GTK. GTK version
16982 is in gtkutil.c.
16983 (popup_selection_callback): New version for USE_GTK.
16984 (create_and_show_popup_menu): New fuction, one USE_GTK version and
16985 one USE_X_TOOLKIT version.
16986 (xmenu_show): Call create_and_show_popup_menu.
16987 (dialog_selection_callback): New version for USE_GTK.
16988 (create_and_show_dialog): New fuction, one USE_GTK version and
16989 one USE_X_TOOLKIT version.
16990 (xdialog_show): Call create_and_show_dialog.
16991
16992 * xfns.c: Include gtkutil for USE_GTK.
16993 (x_window_to_frame, x_any_window_to_frame)
16994 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
16995 (x_top_window_to_frame): Add code for USE_GTK.
16996 (x_set_background_color): Call xg_set_background_color for GTK.
16997 (x_set_menu_bar_lines): Check for USE_GTK.
16998 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
16999 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
17000 (x_window): Call xg_create_frame_widgets for USE_GTK.
17001 (Fx_create_frame): Check for USE_GTK
17002 (Fx_file_dialog): New implementation for USE_GTK.
17003
17004 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
17005 (update_menu_bar): Add check for USE_GTK.
17006 (update_tool_bar): Add check for USE_GTK and external tool bar.
17007 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
17008 (redisplay_internal): Add check for USE_GTK and popup_activated.
17009 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
17010 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
17011 (display_menu_bar): Add check for USE_GTK
17012
17013 * lisp.h (Vx_resource_name): Declare extern.
17014
17015 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
17016 for USE_GTK.
17017 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
17018
17019 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
17020 (FRAME_EXTERNAL_TOOL_BAR): New macro.
17021 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
17022
17023 * fileio.c (Fread_file_name): Add check for USE_GTK.
17024
17025 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
17026 Add check for USE_GTK.
17027
17028 * config.in: Added HAVE_GTK
17029
17030 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
17031
17032 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
17033
17034 * charset.h (Funibyte_char_to_multibyte): Export.
17035
17036 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17037
17038 * xmenu.c (mouse_position_for_popup): New function.
17039 (Fx_popup_menu): Call mouse_position_for_popup for X and
17040 mouse_position_hook for others.
17041
17042 2003-01-17 Kim F. Storm <storm@cua.dk>
17043
17044 * editfns.c (Finsert): Mention `string-make-multibyte' and
17045 `string-as-multibyte' in doc string.
17046
17047 2003-01-17 Kenichi Handa <handa@m17n.org>
17048
17049 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
17050
17051 * editfns.c (Fformat): Convert an unibyte char argument that is
17052 formatted by "%c" to multibyte if the total result must be a
17053 multibyte string.
17054
17055 2003-01-16 Kim F. Storm <storm@cua.dk>
17056
17057 * process.c (set-process-filter): Document unibyte/multibyte-ness
17058 of string argument.
17059
17060 2003-01-16 Kenichi Handa <handa@m17n.org>
17061
17062 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
17063
17064 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
17065 (re_search_2): Likewise.
17066
17067 2003-01-15 Kenichi Handa <handa@m17n.org>
17068
17069 * xdisp.c (message_dolog): Fix bug of the case that *Message*
17070 buffer is unibyte.
17071
17072 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
17073
17074 * fns.c (Fsubstring): Clarify doc string.
17075
17076 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
17077 (Fprevious_char_property_change)
17078 (Fnext_single_char_property_change)
17079 (Fprevious_single_char_property_change, Fnext_property_change)
17080 (Fnext_single_property_change, Fprevious_property_change)
17081 (Fprevious_single_property_change, Fadd_text_properties)
17082 (Fput_text_property, Fset_text_properties)
17083 (Fremove_text_properties, Fremove_list_of_text_properties)
17084 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
17085
17086 2003-01-14 Kim F. Storm <storm@cua.dk>
17087
17088 * process.h (struct Lisp_Process): New member plist replaces old
17089 member private_vars. All uses changed.
17090
17091 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
17092 (QCplist): Rename from QCvars. Change all uses.
17093 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
17094 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
17095 (syms_of_process): Intern, staticpro, defsubr these.
17096 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
17097
17098 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
17099
17100 * m/delta.h: Remove (obsolete).
17101
17102 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
17103
17104 * fileio.c (Fdelete_directory, Fdelete_file): Document the
17105 behaviour in front of symlinks.
17106 (Fdelete_file): Raise an error on directories.
17107
17108 2003-01-13 Dave Love <fx@gnu.org>
17109
17110 * fns.c (Freverse): Use QUIT.
17111
17112 2003-01-13 Richard M. Stallman <rms@gnu.org>
17113
17114 * minibuf.c (minibuffer_completion_contents):
17115 Error if point is inside prompt.
17116
17117 * keyboard.c (command_loop_1): Don't redisplay directly
17118 if there's a post-command-hook.
17119
17120 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
17121 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
17122
17123 2003-01-12 Kim F. Storm <storm@cua.dk>
17124
17125 * process.h (struct Lisp_Process): New member private_vars.
17126
17127 * process.c (QCvars): New variable.
17128 (syms_of_process): Intern and staticpro it.
17129 (Fset_process_contact): Removed function.
17130 (Fprocess_variable, Fset_process_variable): New functions.
17131 (syms_of_process): Defsubr them.
17132 (Fstart_process): Initialize private_vars plist to nil.
17133 (Fmake_network_process): New arg :vars to setup the private
17134 variables for new network process.
17135 (server_accept_connection): Copy server's private variables to
17136 client process.
17137
17138 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
17139 crashes). Code rewritten and simplified. Now directly aligns the
17140 pointer and recalculates pure_bytes_used, rather than aligning the
17141 size and adjusting the pointer.
17142
17143 2003-01-11 Kim F. Storm <storm@cua.dk>
17144
17145 * process.c (Fset_process_contact): New function.
17146 (syms_of_process): defsubr it.
17147 (make-network-process): Update doc.
17148
17149 2003-01-10 Andreas Schwab <schwab@suse.de>
17150
17151 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
17152 Reported by Berthold Gunreben <b.gunreben@web.de>.
17153
17154 2003-01-10 Dave Love <fx@gnu.org>
17155
17156 * composite.c (syms_of_composite): Make composition_hash_table weak.
17157
17158 2003-01-09 Kim F. Storm <storm@cua.dk>
17159
17160 * process.c (Fmake_network_process): Convert new port number
17161 to host byte order for `:service t' case. From Mario Lang.
17162
17163 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17164
17165 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
17166 instead of XtAppProcessEvent.
17167
17168 * xterm.c (handle_one_xevent): New function.
17169 (x_dispatch_event): New function.
17170 (XTread_socket): Call handle_one_xevent.
17171
17172 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
17173
17174 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
17175 call XQueryPointer to get coordinates.
17176 (popup_get_selection): Do not set popup_activated_flag to zero,
17177 let popup_deactivate_callback do that. Needed for Motif.
17178 Call x_dispatch_event instead of XtDispatchEvent.
17179 (xmenu_show): Calculate root coordinate from frame top/left position.
17180
17181 2003-01-08 Kim F. Storm <storm@cua.dk>
17182
17183 * process.c (server_accept_connection): Fix recording of new
17184 connection's local address in :local property of contact info.
17185 (Fmake_network_process): Record local network address for new
17186 client processes in :local property of contact info.
17187 (format-network-address): Add arg OMIT-PORT. Change callers.
17188
17189 2003-01-07 Dave Love <fx@gnu.org>
17190
17191 * Makefile.in (fns.o): Depend on coding.h.
17192
17193 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
17194
17195 * minibuf.c (Fread_variable): Doc fix.
17196
17197 * eval.c (Fuser_variable_p): Doc change. For custom variables,
17198 use the same test as for custom-variable-p.
17199
17200 2003-01-05 Richard M. Stallman <rms@gnu.org>
17201
17202 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
17203 Count LAST_LINE_MISFIT in scroll margin for end of window.
17204 Move label too_near_end before setting SCROLL_MARGIN_POS.
17205 Set LAST_LINE_MISFIT before jumping there.
17206
17207 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
17208 scroll_conservatively case. If scrolling that much doesn't change
17209 STARTP, move it down one line.
17210
17211 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
17212 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
17213
17214 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
17215 selected frame.
17216
17217 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
17218 (syms_of_keymap): Staticpro them.
17219 (Fapropos_internal): Initialize them and clear them out.
17220 Don't GCPRO them.
17221
17222 * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
17223
17224 * lisp.h: New misc type Lisp_Save_Value.
17225 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
17226 (XSAVE_VALUE): New macro.
17227 (struct Lisp_Save_Value): New data type.
17228 (union Lisp_Misc): Add u_save_value alternative.
17229 (make_save_value): Declare.
17230
17231 * alloc.c (make_save_value): New function.
17232
17233 * xterm.c (x_catch_errors): Save dpy using make_save_value.
17234 (x_catch_errors_unwind): Call XSync.
17235
17236 2003-01-01 Richard M. Stallman <rms@gnu.org>
17237
17238 * window.c (window_scroll_pixel_based): Partially undo last change.
17239
17240 * keyboard.c (command_loop_1): Call adjust_point_for_property
17241 in direct action cases for Qforward_char and Qbackward_char.
17242 Set already_adjusted so it won't be done twice.
17243
17244 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
17245
17246 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
17247 type definition of size_t.
17248
17249 2003-01-02 Steven Tamm <steventamm@mac.com>
17250
17251 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
17252 distinguish Carbon GUI builds from X11 builds on darwin.
17253
17254 2002-12-30 Steven Tamm <steventamm@mac.com>
17255
17256 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
17257 to default to t.
17258
17259 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
17260
17261 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
17262
17263 2002-12-28 Steven Tamm <steventamm@mac.com>
17264
17265 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
17266 allow building in a different directory than source. Uses some
17267 GNU Make extensions, but there is no other make on Mac OS X.
17268
17269 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
17270
17271 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
17272 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
17273 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
17274 (Fstring_to_number): Mention the returned value in the doc strings.
17275
17276 2002-12-23 Richard M. Stallman <rms@gnu.org>
17277
17278 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
17279 <scroll-down-aggressively>: Doc fix.
17280
17281 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
17282 string as pane name, if there is one.
17283 (set_frame_menubar): Save menu_items_n_panes from each call to
17284 parse_single_submenu and use it when calling digest_single_submenu.
17285
17286 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
17287 Don't try to make last line fully visible if it is past end of window.
17288
17289 2002-12-22 Steven Tamm <steventamm@mac.com>
17290
17291 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
17292 (mac_menu_show): Add support for hierarchical popup menus.
17293 (add_menu_item): Remove indentation support.
17294 (fill_submenu, fill_menu): Create hierarchical menus
17295 instead of using indentation.
17296
17297 2002-12-22 Richard M. Stallman <rms@gnu.org>
17298
17299 * xdisp.c (try_cursor_movement): Don't call try_window here.
17300 (redisplay_window): Never redisplay minibuffer when inactive.
17301
17302 * window.c (select_window_1): Undo 9/21 change.
17303
17304 2002-12-22 Steven Tamm <steventamm@mac.com>
17305
17306 * macterm.c (XTread_socket): Call KeyTranslate for control and
17307 meta to deal correctly shifted non-alpha characters, like C-S-5
17308 being treated like C-%. Do not look for shift key to deal
17309 with masking off control-key with mac-reverse-ctrl-meta.
17310
17311 2002-12-21 Richard M. Stallman <rms@gnu.org>
17312
17313 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
17314 If it is non-nil, run timers. Use an unwind-protect to requeue
17315 the events that were read ahead.
17316 (popup_get_selection_unwind): New subroutine.
17317 (popup_get_selection_queue): File-scope variable now holds that queue.
17318 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
17319 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
17320 Use an unwind-protect to pop down the dialog box.
17321 (xdialog_show_unwind): New subroutine implements that.
17322
17323 * xdisp.c (row_containing_pos): Change exit test using last_y.
17324 (try_window_id): Abort if row_containing_pos returns null.
17325
17326 * lread.c (load_error_handler): New function.
17327 (Fload): Handle errors in Fsubstitute_in_file_name.
17328 Don't expect Fsignal to return.
17329
17330 * eval.c: Errors and throws work right with interrupt blocking.
17331 (struct catchtag): New elt interrupt_input_blocked.
17332 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
17333 (internal_catch, Fcondition_case, internal_condition_case)
17334 (internal_condition_case_1, internal_condition_case_2): Save it.
17335 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
17336
17337 * editfns.c (Fformat): Add parens.
17338
17339 * dired.c (file_name_completion): Fix that change.
17340 Delete special quit-handling code; just use QUIT.
17341
17342 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
17343
17344 * dired.c (file_name_completion): Close directory on error
17345 just as in directory_files_internal.
17346
17347 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
17348
17349 * window.c (Fset_window_configuration): Set old_point to correct
17350 value when new_current_buffer == current_buffer.
17351
17352 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
17353
17354 Revisited my earlier fix for the following entry in etc/PROBLEMS:
17355 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
17356 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
17357
17358 These changes were in part based upon suggestions made by Peter
17359 'Luna' Runestig [peter@runestig.com].
17360
17361 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
17362 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
17363 (g_b_init_get_sid_identifier_authority ): Add several static
17364 global variables.
17365
17366 * w32.c (globals_of_w32): New function. Used to initialize those
17367 global variables that must always be initialized on startup even
17368 when the global variable initialized is non zero. Its primary
17369 purpose at this time is to set the global variables
17370 g_b_init_is_windows_9x, g_b_init_open_process_token,
17371 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
17372 g_b_init_get_sid_identifier_authority to 0 on startup.
17373 Called from main.
17374
17375 * w32.c (is_windows_9x): Perform initialization only if
17376 g_b_init_is_windows_9x is equal to 0. On initialization set
17377 g_b_init_is_windows_9x equal to 1.
17378
17379 * w32.c (open_process_token): Perform initialization only if
17380 g_b_init_open_process_token is equal to 0. On initialization set
17381 g_b_init_open_process_token equal to 1.
17382
17383 * w32.c (get_token_information): Perform initialization only if
17384 g_b_init_get_token_information is equal to 0. On initialization
17385 set g_b_init_get_token_information equal to 1.
17386
17387 * w32.c (lookup_account_sid): Perform initialization only if
17388 g_b_init_lookup_account_sid is equal to 0. On initialization
17389 set g_b_init_lookup_account_sid equal to 1.
17390
17391 * w32.c (get_sid_identifier_authority): Perform initialization
17392 only if g_b_init_get_sid_identifier_authority is equal to 0.
17393 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
17394
17395 * w32fns.c (globals_of_w32fns): New function. Used to initialize
17396 those global variables that must always be initialized on startup
17397 even when the global variable initialized is non zero.
17398 Its primary purpose at this time is to initialize the global variable
17399 track_mouse_event_fn.
17400
17401 * w32fns.c (w32_wnd_proc): Remove initialization of
17402 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
17403
17404 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
17405
17406 * w32menu.c (globals_of_w32menu): New function. Used to
17407 initialize those global variables that must always be initialized
17408 on startup even when the global variable initialized is non zero.
17409 Its primary purpose at this time is to initialize the global
17410 variables get_menu_item_info and set_menu_item_info.
17411
17412 * w32menu.c (initialize_frame_menubar): Remove initialization of
17413 get_menu_item_info and set_menu_item_info.
17414
17415 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
17416
17417 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
17418 Declare them.
17419
17420 * emacs.c (main): Call globals_of_w32 prior to calling
17421 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
17422 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
17423 is defined.
17424
17425 * w32term.c (x_update_window_begin): Fix Windows API error
17426 detected by BoundsChecker. Test to determine if
17427 w32_system_caret_hwnd is NULL prior to attempting to use
17428 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
17429
17430 * w32term.c (x_update_window_end): Fix Windows API error
17431 detected by BoundsChecker. Test to determine if
17432 w32_system_caret_hwnd is NULL prior to attempting to use
17433 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
17434
17435 2002-12-17 Kenichi Handa <handa@m17n.org>
17436
17437 * coding.c (coding_system_require_warning): New variable.
17438 (syms_of_coding): DEFVAR it.
17439
17440 * coding.h (coding_system_require_warning): Extern it.
17441
17442 * fileio.c (choose_write_coding_system): Even if
17443 Vcoding_system_for_write is non-nil, if
17444 coding_system_require_warning is nonzero, call
17445 Vselect_safe_coding_system_function.
17446
17447 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
17448
17449 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
17450 (lisp): Add font-core.
17451
17452 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
17453
17454 * textprop.c (text_read_only): New arg `propval'.
17455 (get_char_property_and_overlay): Remove unused var `next_overlay'.
17456 (verify_interval_modification): Use text_read_only's new arg.
17457
17458 2002-12-13 Kenichi Handa <handa@m17n.org>
17459
17460 * coding.c (Funencodable_char_position): Set pend correctly.
17461
17462 2002-12-12 Jason Rumney <jasonr@gnu.org>
17463
17464 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
17465 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
17466 Be more careful about when help_events are generated.
17467
17468 2002-12-12 Steven Tamm <steventamm@mac.com>
17469
17470 * macterm.c (mac_check_for_quit_char): Correctly set the
17471 modifiers of the event to 0.
17472 * mac.c (sys_select): Duplicate rfds before calling select to
17473 ensure that rfds survive the while loop.
17474
17475 2002-12-11 Kim F. Storm <storm@cua.dk>
17476
17477 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
17478 row_containing_pos returned NULL.
17479
17480 2002-12-10 Steven Tamm <steventamm@mac.com>
17481
17482 * mac.c (sys_read): Fix sys_read to not call select if IO is
17483 non-blocking.
17484 (sys_select): Fix sys_select to not use a timeout larger than
17485 the one given.
17486
17487 2002-12-10 Juanma Barranquero <lektu@terra.es>
17488
17489 * editfns.c (Fformat): Use alloca, not _alloca.
17490
17491 2002-12-09 Richard M. Stallman <rms@gnu.org>
17492
17493 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
17494 as the last thing.
17495
17496 2002-12-09 Dave Love <fx@gnu.org>
17497
17498 * s/sol2-8.h: Removed. (Not necessary.)
17499
17500 2002-12-09 Matthew Swift <swift@alum.mit.edu>
17501
17502 * editfns.c (Fformat): Handle precision in string conversion
17503 specifiers like libc functions do (ie, print at most that many
17504 characters).
17505
17506 2002-12-08 Richard M. Stallman <rms@gnu.org>
17507
17508 * xdisp.c (row_containing_pos): Check more carefully
17509 whether charpos is really in the row before returning it.
17510
17511 2002-12-07 Steven Tamm <steventamm@mac.com>
17512
17513 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
17514
17515 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
17516 each stack frame. This may change as it could be time consuming.
17517
17518 * macterm.c (mac_check_for_quit_char, quit_char_comp)
17519 (init_quit_char_handler, mac_determine_quit_char_modifiers)
17520 (mac_initialize): Add code to check for pressing of quit_char
17521 in the OS event queue.
17522
17523 * mac.c (sys_select): Call mac_check_for_quit_char every second
17524 while blocking on select.
17525
17526 * mac.c (sys_read): Use sys_select to test for input first
17527 before calling read, to allow C-g to break.
17528
17529 2002-12-07 Richard M. Stallman <rms@gnu.org>
17530
17531 * minibuf.c (Fcompleting_read): Doc fix.
17532
17533 * lread.c (syms_of_lread) <load-history>: Doc fix.
17534
17535 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
17536
17537 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
17538 autoload.
17539
17540 * data.c (Fdefalias): Record in load-history redefining an autoload.
17541
17542 * alloca.c: Undo ifdef change accidentally made on 12-04.
17543
17544 2002-12-06 Francesco Potorti` <pot@gnu.org>
17545
17546 * xfns.c (png_load): Avoid double gamma correction for PNG images.
17547
17548 2002-12-04 Richard M. Stallman <rms@gnu.org>
17549
17550 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
17551
17552 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
17553
17554 * alloca.c: Don't use #error.
17555
17556 2002-12-03 Dave Love <fx@gnu.org>
17557
17558 * buffer.c (Qucs_set_table_for_input): New.
17559 (Fget_buffer_create): Use it.
17560 (Qset_buffer_major_mode_hook): Deleted.
17561 (Fset_buffer_major_mode): Revert previous change.
17562 (init_buffer_once): Intern ucs-set-table-for-input.
17563 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
17564 Add &Qucs_set_table_for_input.
17565
17566 2002-12-03 Andreas Schwab <schwab@suse.de>
17567
17568 * callint.c (Fcall_interactively): Use next_event only if less
17569 than key_count.
17570
17571 2002-12-02 Andrew Choi <akochoi@shaw.ca>
17572
17573 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
17574 names to 255 characters.
17575
17576 * macterm.c (XTread_socket): If all frames have been collapsed,
17577 expand the first one before handling drag-and-drop events.
17578
17579 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
17580 which is detected by autoconf.
17581
17582 2002-12-01 Steven Tamm <steventamm@mac.com>
17583
17584 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
17585 offset in two hints table to allow prebinding to be redone and
17586 allow the executable to be stripped.
17587
17588 2002-11-29 Dave Love <fx@gnu.org>
17589
17590 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
17591 already provided.
17592
17593 2002-11-29 Richard M. Stallman <rms@gnu.org>
17594
17595 * xdisp.c (start_display): Check more intelligently for
17596 whether the line is continued.
17597 (move_it_vertically_backward): Clear it->continuation_lines_width.
17598
17599 2002-11-28 Dave Love <fx@gnu.org>
17600
17601 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
17602 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
17603
17604 2002-11-27 Steven Tamm <steventamm@mac.com>
17605
17606 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
17607 more descriptive error output from lread.c:Fload upon most require
17608 cycles during boostrapping.
17609
17610 2002-11-27 Jason Rumney <jasonr@gnu.org>
17611
17612 * fileio.c (Finsert_file_contents): Give a more appropriate error
17613 for files bigger than 2Gb when off_t is 32 bit.
17614
17615 * dired.c (Ffile_attributes): Don't return negative file sizes for
17616 files bigger than 2Gb when off_t is 32 bit.
17617
17618 2002-11-27 Dave Love <fx@gnu.org>
17619
17620 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
17621
17622 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
17623 Test GETPGRP_VOID instead.
17624 [BSD_TERMIOS]: Remove definitions (never used).
17625
17626 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
17627 Don't define.
17628 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
17629
17630 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
17631
17632 2002-11-25 Jason Rumney <jasonr@gnu.org>
17633
17634 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
17635 supported.
17636
17637 2002-11-25 Dave Love <fx@gnu.org>
17638
17639 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
17640
17641 * Makefile.in (TEMACS_LDFLAGS): Update last change.
17642
17643 2002-11-25 Andreas Schwab <schwab@suse.de>
17644
17645 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
17646
17647 2002-11-24 Steven Tamm <steventamm@mac.com>
17648
17649 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
17650 determine the size of pointers alloced in unexed space instead
17651 of using possibly invalid emacs_zone pointers. This fixes the
17652 binary incompatibility problems caused by updates to libSystem.B.
17653
17654 2002-11-24 Richard M. Stallman <rms@gnu.org>
17655
17656 * search.c (Fstring_match): Doc fix.
17657
17658 * callint.c (Fcall_interactively): If a command fails because
17659 `*' detects a read-only buffer, but RECORD_FLAG is set,
17660 record it anyway if the args don't actually do tty input.
17661
17662 2002-11-22 Dave Love <fx@gnu.org>
17663
17664 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
17665
17666 * keyboard.c (interrupt_signal): Provide forward declaration.
17667 (kbd_buffer_store_event): Don't declare interrupt_signal.
17668
17669 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
17670
17671 2002-11-21 Richard M. Stallman <rms@gnu.org>
17672
17673 * eval.c (interactive_p): Skip any number of bytecode
17674 and special form frames, in any order.
17675
17676 2002-11-20 Jason Rumney <jasonr@gnu.org>
17677
17678 * w32fns.c (convert_mono_to_color_image): New function.
17679 (xbm_load, xbm_load_image): Use it when foreground or background
17680 is explicitly set.
17681
17682 2002-11-19 Dave Love <fx@gnu.org>
17683
17684 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
17685
17686 2002-11-18 Jason Rumney <jasonr@gnu.org>
17687
17688 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
17689 (XPutPixel): Swap blue and red.
17690 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
17691 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
17692 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
17693 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
17694
17695 2002-11-18 Dave Love <fx@gnu.org>
17696
17697 * m/orion105.h (HAVE_ALLOCA): Don't define.
17698
17699 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
17700
17701 * m/intel386.h: Don't include alloca.h or define alloca.
17702
17703 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
17704 malloc, realloc, calloc.
17705
17706 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
17707 (bcmp): Don't define.
17708
17709 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
17710
17711 * m/amdahl.h: Don't define LIB_STANDARD.
17712
17713 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
17714
17715 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
17716
17717 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
17718 Don't include alloca.h.
17719
17720 * s/aix3-2.h (HAVE_FSYNC): Don't define.
17721
17722 * regex.c (_GNU_SOURCE): Don't define.
17723
17724 * process.c (_GNU_SOURCE): Don't define.
17725
17726 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
17727
17728 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
17729
17730 * s/sol2-8.h: Include sol2-6.h.
17731
17732 2002-11-18 Miles Bader <miles@gnu.org>
17733
17734 * dispextern.h (struct face): Add `overstrike' field.
17735 * xterm.c (x_draw_glyph_string_foreground)
17736 (x_draw_composite_glyph_string_foreground): Implement overstriking.
17737 * xfaces.c (load_face_font): Set `face->overstrike' based on
17738 result from choose_face_font.
17739 (best_matching_font, choose_face_font): Add `needs_overstrike'
17740 argument, and use it to return whether overstriking is desirable
17741 for this face/font combo.
17742 (set_font_frame_param: Pass new argument to choose_face_font.
17743
17744 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
17745
17746 This change is my fix for the following entry in etc/PROBLEMS:
17747 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
17748 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
17749
17750 * w32.c: Added wrapper functions around the win32 API functions
17751 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
17752 GetSidIdentifierAuthority. These wrapper functions serve two
17753 purposes:
17754 1. They ensure that the wrapped function can never be called
17755 when Emacs is running on an operating system on which they are
17756 not supported (Microsoft Windows 95 / 98 / ME).
17757 2. They call the wrapped functions via function pointers rather
17758 than calling them directly. This avoids taking advantage of the
17759 undocumented fact that although these functions are not supported
17760 in the 9x branch of Microsoft Windows, the functions do exist in
17761 the version of advapi32.dll that is found in the 9x branch of
17762 Microsoft Windows.
17763
17764 * w32.c (init_user_info): Replace the calls to the win32 API
17765 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
17766 and GetSidIdentifierAuthority with calls to the newly added
17767 wrapper functions.
17768
17769 * w32.h: Added extern declarations for the following functions:
17770 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
17771 syms_of_w32menu, and void syms_of_fontset.
17772
17773 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
17774 function pointer track_mouse_event_fn in the handler for the
17775 WM_SETFOCUS message.
17776
17777 * w32menu.c (initialize_frame_menubar): Add code to
17778 reinitialize the function pointers set_menu_item_info and
17779 get_menu_item_info.
17780
17781 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
17782
17783 * sound.c: Added a partial implementation of play-sound-internal
17784 for Microsoft Windows. Added various #ifdef / #else / #endif
17785 code blocks to separate the code that will compile under
17786 Microsoft Windows from the code that is specific to GNU/Linux.
17787 Moved several blocks of code around to make this separation of code
17788 into Windows compatible and GNU/Linux compatible code blocks easier.
17789
17790 * makefile.w32-in: Include sound.c and link with WinMM.lib.
17791
17792 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
17793 added support for play-sound-internal under Windows would be
17794 included in the build of Emacs.
17795
17796 2002-11-16 Jason Rumney <jasonr@gnu.org>
17797
17798 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
17799
17800 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
17801
17802 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
17803
17804 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
17805 (adjust_point_for_property): Move out of display and invisible even if
17806 we were already inside before (in case a property was added while
17807 we weren't looking). Be more careful when handling invisible props.
17808 Skip invisible text as if it really wasn't there at all.
17809
17810 2002-11-15 Jason Rumney <jasonr@gnu.org>
17811
17812 * w32term.c (x_draw_image_foreground)
17813 (w32_draw_image_foreground_1): Use standard copy and invert
17814 operations to draw images.
17815
17816 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
17817 depth of 1.
17818 (xbm_read_bitmap_data): Invert bits as xbm is read in.
17819 (XPutPixel): Don't invert bits here.
17820
17821 2002-11-15 Jason Rumney <jasonr@gnu.org>
17822
17823 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
17824 (w32_draw_image_foreground_1): Handle image masks.
17825 (x_draw_image_glyph_string): Don't BitBlt transparently.
17826
17827 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
17828 (x_from_xcolors): Adjust RGB values for W32.
17829 (image_background, image_background_transparent)
17830 (postprocess_image, x_to_xcolors, x_disable_image)
17831 (x_build_heuristic_mask): Adapt for W32 and enable.
17832 (x_create_x_image_and_pixmap): Mark images with palettes as such.
17833 (xbm_load): Remove unused variable.
17834
17835 2002-11-14 Richard M. Stallman <rms@gnu.org>
17836
17837 * buffer.c (syms_of_buffer): Doc fix.
17838
17839 2002-11-14 Dave Love <fx@gnu.org>
17840
17841 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
17842
17843 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
17844 * xmenu.c (unuse_menu_items, digest_single_submenu):
17845 * xfns.c (x_put_x_image):
17846 * xdisp.c (message2_nolog, set_message):
17847 * undo.c (record_point):
17848 * terminfo.c (tparam):
17849 * syntax.c (scan_sexps_forward):
17850 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17851 * composite.c (update_compositions):
17852 * cm.c (calccost, cmgoto):
17853 * charset.c (c_string_width): Declare all args (per C99).
17854
17855 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
17856
17857 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
17858 Don't declare.
17859
17860 * emacs.c (main) [!VMS]: Avoid third arg.
17861
17862 * fns.c (Fcopy_sequence): Doc fix.
17863 (Fmap_char_table): Cast `call2'.
17864
17865 2002-11-14 Francesco Potorti` <pot@gnu.org>
17866
17867 * s/sol2-8.h: New file.
17868
17869 2002-11-14 Kim F. Storm <storm@cua.dk>
17870
17871 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
17872 dependency on `risky-local-variable' and the :propertize form.
17873
17874 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
17875
17876 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
17877
17878 * syntax.c (scan_sexps_forward): Undo last patch.
17879 Use a more obvious fix: check eob before updating the syntax table.
17880
17881 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
17882
17883 * syntax.c (scan_sexps_forward): Update syntax table before reading
17884 a char rather than after so we don't update the table past eob.
17885
17886 2002-11-09 Dave Love <fx@gnu.org>
17887
17888 * buffer.c (Fset_buffer_major_mode): Fix last change.
17889
17890 * regex.c (regexec): Fix pmatch declaration.
17891
17892 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
17893
17894 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
17895 to self-inserting characters.
17896 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
17897
17898 * coding.c (Vtranslation_table_for_input): New.
17899 (syms_of_coding): DEFVAR it.
17900
17901 2002-11-08 Juanma Barranquero <lektu@terra.es>
17902
17903 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
17904 window.
17905
17906 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17907
17908 * process.c (Fformat_network_address): Remove unused locals p,
17909 cp, and i.
17910
17911 2002-11-06 Dave Love <fx@gnu.org>
17912
17913 * buffer.c (Qset_buffer_major_mode_hook): New.
17914 (Fset_buffer_major_mode): Use it.
17915
17916 2002-11-06 Richard M. Stallman <rms@gnu.org>
17917
17918 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
17919 and stop_polling.
17920
17921 * process.c (wait_reading_process_input):
17922 Test POLLING_PROBLEM_IN_SELECT, not hpux.
17923 Avoid initialization for auto Lisp_Object var.
17924
17925 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
17926
17927 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
17928
17929 2002-11-05 Richard M. Stallman <rms@gnu.org>
17930
17931 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
17932
17933 * callint.c (Fcall_interactively): New local filter_specs.
17934 (Fcall_interactively): Check for progn as well as let.
17935 Add a gcpro.
17936 (Qprogn): New variable.
17937 (syms_of_callint): Staticpro and init Qprogn.
17938
17939 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
17940
17941 * lread.c (Feval_buffer): Doc fix.
17942
17943 2002-11-04 Dave Love <fx@gnu.org>
17944
17945 * keyboard.c (read_char): Always translate iff
17946 Vkeyboard_translate_table is a char table and c is valid.
17947
17948 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17949 and fix C types.
17950
17951 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
17952
17953 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
17954
17955 * editfns.c (get_pos_property): Don't hardcode Qfield.
17956
17957 * keyboard.c (adjust_point_for_property): Handle `display' prop on
17958 overlays. Also handle `invisible' prop.
17959
17960 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
17961
17962 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
17963 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
17964
17965 2002-11-01 Andreas Schwab <schwab@suse.de>
17966
17967 * editfns.c (Fmessage): Revert last change to properly handle %%.
17968
17969 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
17970
17971 * xmenu.c (unuse_menu_items): New fun.
17972 (menu_items_inuse): New var.
17973 (syms_of_xmenu): Initialize it.
17974 (init_menu_items): Use it to detect re-entrance.
17975 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
17976 (Fx_popup_menu): Remove spurious XSETFRAME.
17977
17978 * editfns.c (find_field): Make an exception for nil fields.
17979
17980 2002-11-01 Dave Love <fx@gnu.org>
17981
17982 * m/gec63.h: Deleted.
17983
17984 2002-10-31 Dave Love <fx@gnu.org>
17985
17986 * xterm.c (XTread_socket): Fix last change.
17987 (xaw_scroll_callback): Cast call_data to long to avoid warning.
17988
17989 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
17990
17991 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
17992
17993 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
17994
17995 * editfns.c (overlays_around, get_pos_property): New funs.
17996 (find_field): Use them.
17997 Also be careful not to modify POS before its last use.
17998 (Fmessage): Don't Fformat if there's nothing to format.
17999
18000 2002-10-30 Dave Love <fx@gnu.org>
18001
18002 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
18003 [HAVE_PTY_H]; Include pty.h.
18004
18005 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
18006
18007 * xterm.c (Qeql): Declare.
18008 (Vx_keysym_table): New.
18009 (syms_of_xterm): Initialize it.
18010 (XTread_socket): Use it. Deal with ASCII keysyms.
18011 (XSetIMValues) [HAVE_X11R6]: Prototype.
18012
18013 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
18014 (lispy_kana_keys): Comment out.
18015 (make_lispy_event) [XK_kana_A]: Comment out.
18016 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
18017 Fix sprintf call.
18018
18019 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
18020 regexp.h change).
18021 (TERMINFO, LIBS_TERMCAP): Define.
18022
18023 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
18024 (bcmp): Define conditional on HAVE_BCMP.
18025 (NO_SIOCTL_H): Don't define.
18026 (TIOCSIGSEND): Don't make conditional on IRIX6.
18027
18028 * s/sol2-5.h: Don't include strings.h.
18029 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
18030
18031 * s/irix6-0.h (IRIX6): Don't define.
18032 (bcopy, bcmp, bzero): Don't undef.
18033
18034 * s/irix6-5.h: Don't include strings.h.
18035 (IRIX6): Don't define.
18036 (bcopy, bcmp, bzero): Don't undef.
18037
18038 * syntax.c (Fforward_comment): Doc fix.
18039
18040 2002-10-29 Kim F. Storm <storm@cua.dk>
18041
18042 * process.c (Fsignal_process): Allow PROCESS to be specified by
18043 name in addition to pid (as integer or string).
18044
18045 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
18046
18047 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
18048 environments.
18049
18050 2002-10-27 Kim F. Storm <storm@cua.dk>
18051
18052 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
18053
18054 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
18055
18056 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
18057
18058 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
18059
18060 2002-10-26 Richard M. Stallman <rms@gnu.org>
18061
18062 * editfns.c (Fformat): Detect invalid format letters for floats.
18063
18064 2002-10-25 Kenichi Handa <handa@m17n.org>
18065
18066 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
18067 (x_set_title): Likewise.
18068
18069 2002-10-25 Juanma Barranquero <lektu@terra.es>
18070
18071 * macgui.h:
18072 * w32gui.h: Remove definition of XColor.
18073
18074 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
18075
18076 2002-10-24 Kim F. Storm <storm@cua.dk>
18077
18078 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
18079 Callers changed (supply dummy arg).
18080
18081 * lisp.h (get_window_cursor_type): Update prototype.
18082
18083 * w32term.c (x_display_and_set_cursor): Get active_cursor from
18084 get_window_cursor_type to track system caret.
18085
18086 2002-10-24 Kim F. Storm <storm@cua.dk>
18087
18088 * process.c (Fformat_network_address): New function.
18089 (syms_of_process): Defsubr it.
18090 (list_processes_1): Use it to format :local/:remote address if
18091 service/host is not set; before Emacs would crash in that case.
18092 (Fmake_network_process): Don't use Ffind_operation_coding_system
18093 to setup coding system if host or service is not set.
18094
18095 2002-10-23 Juanma Barranquero <lektu@terra.es>
18096
18097 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
18098
18099 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
18100 COLORREF.
18101
18102 * macgui.h:
18103 * w32gui.h: Add definition of XColor.
18104
18105 * macfns.c:
18106 * w32fns.c:
18107 * xfaces.c: Remove definition of XColor.
18108
18109 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
18110
18111 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
18112
18113 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
18114 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
18115 window if it is dedicated.
18116 (Fshrink_window): Add preserve_before as was done for enlarge_window.
18117 (Vspecial_display_function): Update docstring.
18118
18119 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
18120 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
18121 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
18122
18123 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
18124
18125 * casefiddle.c (casify_region): Don't treat a prefix char as part
18126 of a word when at the beginning.
18127
18128 2002-10-17 Juanma Barranquero <lektu@terra.es>
18129
18130 * lread.c (syms_of_lread): Fix typos.
18131
18132 2002-10-17 Dave Love <fx@gnu.org>
18133
18134 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
18135
18136 2002-10-16 Richard M. Stallman <rms@gnu.org>
18137
18138 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
18139
18140 2002-10-14 Juanma Barranquero <lektu@terra.es>
18141
18142 * w16select.c (syms_of_win16select): Fix docstring for
18143 `selection-coding-system'.
18144
18145 * w32select.c (syms_of_w32select): Likewise.
18146
18147 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
18148
18149 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
18150 a backslash-quoted char.
18151 (scan_lists, scan_sexps_forward): Pacify the compiler.
18152
18153 2002-10-13 Richard M. Stallman <rms@gnu.org>
18154
18155 * window.c (window_scroll): Set immediate_quit.
18156
18157 * print.c (print): When backquote form is the car of a list,
18158 output in old style. Use old_backquote_output to output all
18159 comma forms inside it in old style too.
18160
18161 * buffer.h (struct buffer): Move `undo_list' down below `name'.
18162
18163 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
18164
18165 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
18166 batch mode).
18167
18168 * lread.c (Fload): Doc fix (load-suffixes).
18169
18170 2002-10-10 Steven Tamm <steventamm@mac.com>
18171
18172 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
18173 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
18174 Also switch the default to Qnil from Qt.
18175
18176 2002-10-08 Kenichi Handa <handa@m17n.org>
18177
18178 * coding.c (code_convert_region): When we need more GAP for
18179 conversion, pay attention to the case that coding->produced is not
18180 greater than coding->consumed.
18181
18182 2002-10-07 Richard M. Stallman <rms@gnu.org>
18183
18184 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
18185
18186 2002-10-06 Andrew Choi <akochoi@shaw.ca>
18187
18188 * macmenu.c (mac_menu_show): Add j to count menu items; match
18189 menu_item_selection to it to find selected item.
18190
18191 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18192
18193 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
18194 cases. The correct fix is to pass ReparentNotify to Xt.
18195 The shell widget interprets ConfigureNotify differently depending
18196 on if it has been reparented or not.
18197
18198 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
18199
18200 * editfns.c (Fformat_time_string): Doc fix.
18201
18202 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
18203
18204 * fns.c (Flength): Doc fix.
18205
18206 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
18207
18208 * keyboard.c (keyremap): New struct.
18209 (read_key_sequence): Use it: globally replace keytran_foo with
18210 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
18211 keytran_next and fkey_next to just `next'.
18212
18213 2002-10-04 Steven Tamm <steventamm@mac.com>
18214
18215 * macterm.c (keycode_to_xkeysym_table): Change return to be
18216 treated like an X keysym.
18217
18218 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18219
18220 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
18221 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
18222 This is to also handle x/y changes that occur because of a resize.
18223
18224 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
18225
18226 * frame.c (Vdelete_frame_functions): New variable.
18227 (syms_of_frame): Initialize and defvar it.
18228 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
18229 it when frame's `tooltip' parameter is non-nil.
18230
18231 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
18232
18233 * w32fns.c (x_create_tip_frame): Likewise.
18234
18235 * macfns.c (x_create_tip_frame): Likewise.
18236
18237 2002-09-30 Kenichi Handa <handa@m17n.org>
18238
18239 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
18240 -1 before calling ccl_driver.
18241
18242 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
18243 Only when it is non-nil, handle composition sequence.
18244 (setup_coding_system) <0>: Don't force composition handling.
18245
18246 * Makefile.in (lisp, shortlisp): Add utf-16.elc
18247
18248 2002-09-29 Richard M. Stallman <rms@gnu.org>
18249
18250 * search.c (Freplace_match): Adjust match data for the substitution
18251 just made in the buffer.
18252
18253 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
18254 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
18255
18256 2002-09-27 Richard M. Stallman <rms@gnu.org>
18257
18258 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
18259 (read_char): Use them. Do all exits thru the end of the function.
18260
18261 2002-09-27 Kenichi Handa <handa@etl.go.jp>
18262
18263 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
18264 is nil.
18265
18266 2002-09-26 Richard M. Stallman <rms@gnu.org>
18267
18268 * regex.h (__restrict_arr): Don't define if already defined.
18269
18270 * coding.c (run_pre_post_conversion_on_str):
18271 Save and restore Vdeactivate_mark.
18272
18273 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
18274
18275 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
18276
18277 2002-09-26 Kenichi Handa <handa@etl.go.jp>
18278
18279 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
18280 nonzero, try face's family at first. Otherwise try FAMILY at first.
18281 (choose_face_font): If C is a single byte char or latin-1, call
18282 try_font_list with PREFER_FACE_FAMILY 1.
18283
18284 2002-09-21 Richard M. Stallman <rms@gnu.org>
18285
18286 * window.c (select_window_1): Don't select frame.
18287 Set frame's selected window only when frame itself is selected.
18288 (Fselect_window): Doc fix.
18289
18290 2002-09-18 Kim F. Storm <storm@cua.dk>
18291
18292 * process.c (make-network-process): Doc fix (there is no
18293 network-server-log-function hook).
18294
18295 2002-09-18 Richard M. Stallman <rms@gnu.org>
18296
18297 * print.c (print): Clear out the unused parts of Vprint_number_table.
18298 (syms_of_print): Doc fix for `print-number-table'.
18299
18300 * unexelf.c (unexec): Undo previous change.
18301
18302 2002-09-17 Andreas Schwab <schwab@suse.de>
18303
18304 * m/alpha.h [LINUX]: Don't define DATA_START.
18305
18306 2002-09-16 Dave Love <fx@gnu.org>
18307
18308 * unexelf.c (unexec): Deal with .got, reinstating change from
18309 25-08-1999.
18310
18311 2002-09-13 Richard M. Stallman <rms@gnu.org>
18312
18313 * s/sol2-6.h (UNEXEC): Comment out definition.
18314
18315 * unexsol.c (unexec): Don't downcase first letter of error msg.
18316
18317 * xfaces.c (Fcolor_supported_p): Just one arg is required.
18318
18319 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
18320
18321 * unexsol.c: Include buffer.h, charset.h, coding.h.
18322
18323 2002-09-11 Richard M. Stallman <rms@gnu.org>
18324
18325 * unexsol.c: Don't use report_file_error; do it by hand
18326 using dlerror.
18327
18328 * process.c (wait_reading_process_input, both versions):
18329 Before calling turn_on_atimers, call stop_polling.
18330
18331 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
18332
18333 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
18334 we go to too_near_end, call clear_glyph_matrix.
18335 (redisplay_window): After make_cursor_line_fully_visible,
18336 call clear_glyph_matrix and bypass `goto done'.
18337
18338 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
18339 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
18340
18341 2002-09-10 Richard M. Stallman <rms@gnu.org>
18342
18343 * fileio.c (Fdo_auto_save): Catch error making directory.
18344 Only call push_message if we need to.
18345 At the same time, make an unwind-protect to pop it.
18346 Rename local message_p to old_message_p.
18347 (do_auto_save_make_dir, do_auto_save_eh): New functions.
18348 (do_auto_save_unwind): Don't call pop_message.
18349
18350 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
18351
18352 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
18353
18354 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
18355
18356 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
18357
18358 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
18359
18360 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
18361 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
18362 (re_match_2_internal): Be more careful with infinite loops.
18363
18364 2002-09-10 Kim F. Storm <storm@cua.dk>
18365
18366 * macros.c (end_kbd_macro): New function.
18367 (Fend_kbd_macro): Use it.
18368
18369 * macros.h (end_kbd_macro): Declare extern.
18370
18371 * keyboard.c (Fdiscard_input): If defining keyboard macro,
18372 end and save it instead of discarding it.
18373
18374 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
18375
18376 * s/sol2-6.h: Fix typo. Add comment.
18377
18378 2002-09-09 Richard M. Stallman <rms@gnu.org>
18379
18380 * regex.c (regnum_t): Use signed int, not unsigned int.
18381
18382 * s/sol2-6.h: New file.
18383
18384 * s/sol2-5.h (UNEXEC): Definition deleted.
18385
18386 2002-09-08 Kim F. Storm <storm@cua.dk>
18387
18388 * macros.c (executing_macro_index): Change type to EMACS_INT.
18389 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
18390
18391 * macros.h (executing_macro_index): Change type to EMACS_INT.
18392
18393 2002-09-06 Richard M. Stallman <rms@gnu.org>
18394
18395 * casetab.c (set_case_table): Make canon table point to eqv table.
18396
18397 2002-09-06 Juanma Barranquero <lektu@terra.es>
18398
18399 * coding.c (syms_of_coding): Fix spacing.
18400
18401 * composite.c (Fcompose_region_internal)
18402 (Fcompose_string_internal): Likewise.
18403
18404 * data.c (Flsh): Likewise.
18405
18406 * fontset.c (Fset_fontset_font): Likewise.
18407
18408 * macfns.c (Fx_server_max_request_size): Likewise.
18409
18410 * w16select.c (syms_of_win16select): Likewise.
18411
18412 * w32select.c (syms_of_w32select): Likewise.
18413
18414 * xselect.c (syms_of_xselect): Likewise.
18415
18416 2002-09-05 Richard M. Stallman <rms@gnu.org>
18417
18418 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
18419 call EXTEND_RANGE_TABLE and return a proper value.
18420 (set_image_of_range): Don't call set_image_of_range_1
18421 if no TRANSLATE or if range includes all of Latin-1.
18422 Only call it for the Latin-1 part of the range.
18423 For other cases, make two separate ranges,
18424 one for the original specified characters and one for
18425 their case-conversions.
18426
18427 2002-09-04 Richard M. Stallman <rms@gnu.org>
18428
18429 * s/sol2-5.h (UNEXEC): Use unexsol.o.
18430
18431 * window.c (displayed_window_lines): Correct for one-off bug
18432 in HEIGHT on non-window displays.
18433
18434 * regex.c (set_image_of_range_1): New function.
18435 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
18436 Return a value to indicate running out of memory.
18437 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
18438 (extend_range_table_work_area): New subroutine.
18439 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
18440 Different calling conventions, and used from set_image_of_range{,_1}.
18441 (IMMEDIATE_QUIT_CHECK): Definitions moved.
18442
18443 2002-09-04 Juanma Barranquero <lektu@terra.es>
18444
18445 * makefile.w32-in: All dependencies updated.
18446
18447 2002-09-01 Richard M. Stallman <rms@gnu.org>
18448
18449 * unexsol.c: New file.
18450
18451 * xfns.c (Qbox): Declare external, don't define.
18452
18453 * xdisp.c (redisplay_window) <force-start case>:
18454 If point is on semi-visible last line, reposition
18455 it at previous line.
18456
18457 * alloc.c (display_malloc_warning): Use display-warning.
18458 (malloc_warning_1): Function deleted.
18459
18460 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
18461
18462 * lread.c (read1): Handle #! by skipping the line.
18463
18464 2002-08-31 Richard M. Stallman <rms@gnu.org>
18465
18466 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
18467 Don't include LDFLAGS.
18468 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
18469
18470 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
18471
18472 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
18473 member of x_display_info unless we compile for some window system.
18474
18475 2002-08-31 Kim F. Storm <storm@cua.dk>
18476
18477 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
18478 (get_window_cursor_type): Don't use them.
18479 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
18480
18481 2002-08-30 Kenichi Handa <handa@etl.go.jp>
18482
18483 * xdisp.c (get_next_display_element): Fix previous change.
18484
18485 2002-08-30 Andrew Choi <akochoi@shaw.ca>
18486
18487 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
18488 (expose_window): Use it to fix the display of overlapping
18489 rows (merge code from xterm.c).
18490
18491 * macfns.c (Qbox): Add extern declaration.
18492
18493 2002-08-30 Juanma Barranquero <lektu@terra.es>
18494
18495 * w32fns.c (Qbox): Make extern.
18496 (syms_of_w32fns): Remove initialization of Qbox.
18497
18498 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
18499
18500 * xfns.c (Fx_open_connection): Fix error message.
18501
18502 2002-08-30 Kim F. Storm <storm@cua.dk>
18503
18504 The following changes consolidates the handling of the cursor
18505 type in xdisp.c, moving duplicate code and functionality from
18506 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
18507
18508 * frame.h (enum text_cursor_kinds): Consolidated here.
18509 Added DEFAULT_CURSOR value.
18510 (struct frame) <desired_cursor, cursor_width>
18511 <blink_off_cursor, blink_off_cursor_width>: New fields.
18512 Consolidated from output_x, output_w32 and output_mac structs.
18513 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
18514 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
18515
18516 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
18517 Variables consolidated here.
18518 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
18519 (Vcursor_in_non_selected_windows): Renamed from
18520 cursor_in_non_selected_windows and changed to Lisp_Object.
18521 (syms_of_xdisp): Define and staticpro new and moved variables.
18522 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
18523 consolidated here. Recognize Qhollow setting.
18524 (set_frame_cursor_types): New function to set frame cursor types
18525 based on the frame parameters.
18526 (get_window_cursor_type): New function to calculate new cursor
18527 type and width for the specified window. Based on duplicated
18528 code consolidated here.
18529 Enhancements: cursor-in-non-selected-windows may be a cursor type,
18530 check buffer-local alternate-cursor-type and blink-cursor-alist
18531 before using built-in blink off methods.
18532
18533 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
18534
18535 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
18536 (get_specified_cursor_type, get_window_cursor_type)
18537 (set_frame_cursor_types): Added prototypes.
18538
18539 * macfns.c (x_specified_cursor_type): Removed.
18540 (x_set_cursor_type): Use set_frame_cursor_types.
18541 (Qbar, Qbox): Removed.
18542 (syms_of_macfns): Don't intern or staticpro them.
18543
18544 * macterm.c (x_specified_cursor_type): Remove prototype.
18545 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
18546 (x_display_and_set_cursor): Use get_window_cursor_type.
18547 Remove unused local variables cursor_non_selected, active_cursor.
18548 Redraw cursor if hbar cursor width changes.
18549 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
18550
18551 * macterm.h (enum text_cursor_kinds): Removed.
18552 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
18553 <blink_off_cursor, blink_off_cursor_width>: Members removed.
18554 (FRAME_DESIRED_CURSOR): Macro removed.
18555
18556 * w32fns.c (Vblink_cursor_alist): Removed.
18557 (Qbar, Qhbar, Qbox, Qhollow): Removed.
18558 (syms_of_w32fns): Don't intern, staticpro, or define them.
18559 (x_specified_cursor_type): Removed.
18560 (x_set_cursor_type): Use set_frame_cursor_types.
18561
18562 * w32term.c (x_specified_cursor_type): Remove prototype.
18563 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
18564 (x_display_and_set_cursor): Use get_window_cursor_type.
18565 Remove unused local variables cursor_off_state.
18566 Redraw cursor if hbar cursor width changes.
18567 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
18568
18569 * w32term.h (enum text_cursor_kinds): Removed.
18570 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
18571 <blink_off_cursor, blink_off_cursor_width>: Members removed.
18572 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
18573 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
18574 (struct w32_display_info) <x_highlight_frame>: Renamed member from
18575 w32_highlight_frame.
18576
18577 * xfns.c (Vblink_cursor_alist): Removed.
18578 (Qbar, Qhbar, Qbox, Qhollow): Removed.
18579 (syms_of_xfns): Don't intern, staticpro, or define them.
18580 (x_specified_cursor_type): Removed.
18581 (x_set_cursor_type): Use set_frame_cursor_types.
18582
18583 * xterm.c (x_specified_cursor_type): Remove prototype.
18584 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
18585 (x_display_and_set_cursor): Use get_window_cursor_type.
18586 Remove unused local variables cursor_off_state.
18587 Redraw cursor if hbar cursor width changes.
18588
18589 * xterm.h (enum text_cursor_kinds): Removed.
18590 (struct output_x) <current_cursor, desired_cursor, cursor_width>
18591 <blink_off_cursor, blink_off_cursor_width>: Members removed.
18592 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
18593 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
18594 (x_specified_cursor_type): Remove prototype.
18595
18596 2002-08-28 Richard M. Stallman <rms@gnu.org>
18597
18598 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
18599 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
18600 (Vblink_cursor_alist): New variable.
18601 (syms_of_w32fns): Initialize and defvar it.
18602 (x_specified_cursor_type): Recognize Qbox for filled box.
18603 Exceptions are hollow boxes.
18604 (Qbox, Qhollow): New variables.
18605 (syms_of_w32fns): Initialize and staticpro them.
18606
18607 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
18608 New macros.
18609 (struct w32_output): New fields blink_off_cursor,
18610 blink_off_cursor_width.
18611 (FRAME_CURSOR_WIDTH): New macro.
18612
18613 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
18614 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
18615
18616 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
18617 for bar cursor.
18618
18619 * w32term.c (expose_overlaps): New function.
18620 (expose_window): Use it to fix the display of overlapping rows.
18621
18622 2002-08-28 Simon Josefsson <jas@extundo.com>
18623
18624 * xfns.c (Fx_open_connection): Improve help when X connection
18625 fails, xhost is insecure and xauth is better.
18626
18627 2002-08-28 Juanma Barranquero <lektu@terra.es>
18628
18629 * makefile.w32-in: Add missing dependencies on w32term.h and
18630 composite.h.
18631
18632 * emacs.c (USAGE1): Add missing newline.
18633
18634 2002-08-27 Andrew Choi <akochoi@shaw.ca>
18635
18636 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
18637
18638 2002-08-27 Richard M. Stallman <rms@gnu.org>
18639
18640 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
18641 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
18642 (Vblink_cursor_alist): New variable.
18643 (syms_of_xfns): Initialize and defvar it.
18644 (x_specified_cursor_type): Recognize Qbox for filled box.
18645 Exceptions are hollow boxes.
18646 (Qbox, Qhollow): New variables.
18647 (syms_of_xfns): Initialize and staticpro them.
18648
18649 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
18650 New macros.
18651 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
18652
18653 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
18654 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
18655
18656 * emacs.c (main): Handle --script.
18657 (USAGE1): Mention --script.
18658 (standard_args): Define sort order for --script.
18659
18660 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
18661
18662 * xdisp.c (redisplay_updating_p): Variable removed.
18663 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
18664 New variables.
18665 (init_iterator): Don't free realized faces if
18666 inhibit_free_realized_faces is set.
18667 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
18668 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
18669 initialize Qinhibit_free_realized_faces.
18670
18671 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
18672 when iterator is adding glyphs to a glyph matrix.
18673
18674 2002-08-27 Kenichi Handa <handa@etl.go.jp>
18675
18676 * xdisp.c (get_next_display_element): In unibyte case, don't use
18677 octal form for such eight-bit characters that can be converted to
18678 multibyte char.
18679
18680 2002-08-26 Kim F. Storm <storm@cua.dk>
18681
18682 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
18683 foreground and background colors. From Joe Buehler.
18684
18685 2002-08-26 Miles Bader <miles@gnu.org>
18686
18687 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
18688
18689 2002-08-25 Andrew Choi <akochoi@shaw.ca>
18690
18691 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
18692 defined instead of MAC_OSX.
18693
18694 * s/darwin.h (select): Define select to sys_select only if
18695 HAVE_CARBON is defined.
18696 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
18697 (DONT_REOPEN_PTY): #def it.
18698
18699 * macterm.c (XTread_socket): Remove code to call
18700 SendEventToEventTarget for keys with command modifiers when
18701 mac_command_key_is_meta is nil.
18702
18703 2002-08-24 Andreas Schwab <schwab@suse.de>
18704
18705 * eval.c (Fdefvar): Fix last change.
18706
18707 2002-08-23 Richard M. Stallman <rms@gnu.org>
18708
18709 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
18710 Record variables in load history as (defvar . VAR).
18711 (Fdefvar): Don't record in load history if no initial value.
18712 (Qdefvar): New variable.
18713 (syms_of_eval): Init and staticpro it.
18714
18715 * lread.c (syms_of_lread): Doc fix.
18716 (build_load_history): Use Fmember to see if a definition
18717 is already in the Vload_history element.
18718
18719 * process.c (Fstart_process): Remove /: from program name.
18720
18721 * emacs.c (decode_env_path): Don't add /: if file name handler
18722 has a `safe-magic' property.
18723
18724 * callproc.c (Fcall_process): Remove /: from program name.
18725
18726 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
18727
18728 * regex.c (PATFETCH): Remove the translating fetch.
18729 (PATFETCH_RAW): Rename to PATFETCH.
18730 (set_image_of_range): New fun.
18731 (SET_RANGE_TABLE_WORK_AREA): Use it.
18732 (regex_compile): Don't translate the pattern chars so eagerly.
18733 Only do it when inserting an `exactn' bytecode or when handling
18734 a char-range.
18735 (mutually_exclusive_p): Avoid empty statement.
18736
18737 2002-08-22 Kim F. Storm <storm@cua.dk>
18738
18739 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
18740 end up on a partially visible line; this reverts a specific part
18741 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
18742 display error which has been reported several times now.
18743 However it introduces the problem that changes was supposed to fix.
18744 See my comments in the source if you want to debug this further.
18745
18746 2002-08-20 Kenichi Handa <handa@etl.go.jp>
18747
18748 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18749
18750 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
18751
18752 * msdos.c (croak): Add `void' to definition.
18753
18754 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
18755 Don't define them, they are defined in msdos.c.
18756
18757 * mem-limits.h [MSDOS]: Declare etext.
18758
18759 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
18760 `const' since CORRECT_DIR_SEPS modifies its target.
18761
18762 2002-08-19 Kim F. Storm <storm@cua.dk>
18763
18764 * keyboard.c (Fclear_this_command_keys): Add optional arg
18765 KEEP-RECORD to avoid clearing lossage when we just want to clear
18766 the current key sequence (kmacro needs this).
18767
18768 2002-08-19 Kenichi Handa <handa@localhost>
18769
18770 * composite.c (run_composition_function): Call FUNC if it is fboundp.
18771
18772 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
18773 cons, return Qnil.
18774
18775 2002-08-17 Richard M. Stallman <rms@gnu.org>
18776
18777 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
18778
18779 * sysdep.c [!VMS]: Include sys/files.h.
18780
18781 * editfns.c (save_restriction_restore): Defend from unchained marker.
18782
18783 * buffer.c (overlays_at): Handle extending vec uniformly.
18784 (overlays_in): Handle extending vec from length 0 as in overlays_at.
18785
18786 2002-08-15 Andrew Choi <akochoi@shaw.ca>
18787
18788 * mac.c (init_mac_osx_environment): New function.
18789
18790 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
18791
18792 2002-08-14 Kim F. Storm <storm@cua.dk>
18793
18794 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
18795 executing macro before appending to it (when used from Lisp).
18796 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
18797 which is called prior to each iteration of macro (for kmacro.el).
18798 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
18799
18800 * lisp.h (Fexecute_kbd_macro): Update prototype.
18801
18802 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
18803
18804 2002-08-14 Kenichi Handa <handa@etl.go.jp>
18805
18806 * xselect.c (QUTF8_STRING): New variable.
18807 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
18808 (x_atom_to_symbol): Likewise.
18809 (x_get_local_selection): New argument local_request. If it is
18810 nonzero, call handler_fn with the second arg nil.
18811 (x_handle_selection_request): Call x_get_local_selection with
18812 local_request 0.
18813 (lisp_data_to_selection_data): Don't encode the string here.
18814 (Fx_get_selection_internal): Call x_get_local_selection with
18815 local_request 1.
18816 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
18817
18818 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
18819
18820 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
18821
18822 2002-08-13 Richard M. Stallman <rms@gnu.org>
18823
18824 * minibuf.c (Fminibufferp): New function.
18825 (syms_of_minibuf): Defsubr it.
18826 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
18827
18828 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
18829
18830 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
18831
18832 2002-08-12 Richard M. Stallman <rms@gnu.org>
18833
18834 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
18835 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
18836 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
18837 already.
18838
18839 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
18840
18841 2002-08-11 Andrew Choi <akochoi@shaw.ca>
18842
18843 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
18844 (Vmac_pass_command_to_system): New variable.
18845 (Vmac_pass_control_to_system): New variable.
18846 (do_mouse_moved): Check wp with is_emacs_window.
18847 (XTread_socket): Check window_ptr with is_emacs_window.
18848 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
18849 events back to Mac Toolbox for processing, depending on values of
18850 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
18851 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
18852 Vmac_pass_control_to_system.
18853
18854 2002-08-10 Kenichi Handa <handa@etl.go.jp>
18855
18856 * coding.c (unencodable_char_position): New function.
18857 (Funencodable_char_position): New function.
18858 (syms_of_coding): Defsubr Funencodable_char_position.
18859
18860 2002-08-10 Andrew Choi <akochoi@shaw.ca>
18861
18862 * mac.c (sys_select) [MAC_OSX]: New function.
18863
18864 * macterm.c (MakeMeTheFrontProcess): New function.
18865 (mac_initialize): Call MakeMeTheFrontProcess.
18866
18867 * s/darwin.h: Define select to sys_select.
18868
18869 2002-08-09 Richard M. Stallman <rms@gnu.org>
18870
18871 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
18872
18873 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
18874
18875 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
18876 end of the buffer.
18877
18878 2002-08-08 Ken Raeburn <raeburn@gnu.org>
18879
18880 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
18881
18882 * puresize.h (BASE_PURESIZE): Increase to 910000.
18883
18884 2002-08-08 Kenichi Handa <handa@etl.go.jp>
18885
18886 * coding.c (Ffind_operation_coding_system): For write-region, if
18887 VISIT is a filename, make it the target.
18888
18889 2002-08-07 Richard M. Stallman <rms@gnu.org>
18890
18891 * alloc.c (mark_object): Detect long lists for debugging.
18892 (mark_object_loop_halt): New variable.
18893
18894 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
18895
18896 * data.c (Fmake_variable_frame_local): Doc fix.
18897
18898 2002-08-01 David Ponce <david@dponce.com>
18899
18900 * w32menu.c (local_heap, local_alloc, local_free): New macros.
18901 (malloc_widget_value, free_widget_value)
18902 (w32_free_submenu_strings): Use them.
18903
18904 (push_submenu_start, push_submenu_end, push_left_right_boundary)
18905 (push_menu_pane, push_menu_item, single_keymap_panes)
18906 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
18907 (single_submenu, set_frame_menubar)
18908 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
18909
18910 (Fx_popup_menu): Don't show pop up menu until preceding one is
18911 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
18912
18913 * w32menu.c: Changes adapted from xmenu.c
18914 (set_frame_menubar): First parse all submenus,
18915 then make widget_value trees from them.
18916 Don't allocate any widget_value objects
18917 until we are done with the parsing.
18918 (parse_single_submenu): New function.
18919 (digest_single_submenu): New function.
18920 (single_submenu): Function deleted, replaced by those two.
18921
18922 2002-08-04 Andrew Choi <akochoi@shaw.ca>
18923
18924 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
18925 returns a valid window pointer before proceeding for keyDown and
18926 autoKey events.
18927
18928 2002-08-03 Andrew Choi <akochoi@shaw.ca>
18929
18930 * macterm.c (USE_CARBON_EVENTS): New macro.
18931 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
18932 (x_iconify_frame): Call CollapseWindow.
18933 (Vmac_reverse_ctrl_meta): New variable.
18934 (Vmac_wheel_button_is_mouse_2): New variable.
18935 (init_mac_drag_n_drop): New function.
18936 (mac_do_receive_drag): New function.
18937 (mac_handle_service_event): New function.
18938 (init_service_handler): New function.
18939 (mac_to_emacs_modifiers): New function.
18940 (mac_event_to_emacs_modifiers): New function.
18941 (mac_get_mouse_btn): New function.
18942 (mac_convert_event_ref): New function.
18943 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
18944 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
18945 mac_get_mouse_btn.
18946 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
18947
18948 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
18949 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
18950 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
18951 TOOL_BAR_EVENT for MAC_OS as well.
18952 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
18953 as for WINDOWS_NT.
18954 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
18955
18956 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
18957
18958 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
18959
18960 * xdisp.c (forward_to_next_line_start): Fix a condition that
18961 lead to a newline being skipped.
18962
18963 2002-08-02 Andrew Choi <akochoi@shaw.ca>
18964
18965 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
18966
18967 2002-08-01 Richard M. Stallman <rms@gnu.org>
18968
18969 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
18970
18971 2002-07-31 Andrew Choi <akochoi@shaw.ca>
18972
18973 * macfns.c: #undef init_process before #define-ing it.
18974
18975 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
18976 HAVE_CARBON is defined.
18977
18978 2002-07-31 Richard M. Stallman <rms@gnu.org>
18979
18980 * xmenu.c (set_frame_menubar): First parse all submenus,
18981 then make widget_value trees from them.
18982 Don't allocate any widget_value objects
18983 until we are done with the parsing.
18984 (parse_single_submenu): New function.
18985 (digest_single_submenu): New function.
18986 (single_submenu): Function deleted, replaced by those two.
18987
18988 2002-07-30 Juanma Barranquero <lektu@terra.es>
18989
18990 * w32proc.c (syms_of_ntproc): Fix docstring of
18991 `w32-get-true-file-attributes'.
18992
18993 2002-07-28 Richard M. Stallman <rms@gnu.org>
18994
18995 * s/hpux8.h (HPUX8): Define this before including hpux.h.
18996 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
18997
18998 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
18999
19000 * keyboard.c (make_lispy_event):
19001 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
19002 Explicitly clear up_modifier in event->modifiers.
19003
19004 2002-07-27 Richard M. Stallman <rms@gnu.org>
19005
19006 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
19007
19008 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
19009 for bar cursor.
19010
19011 2002-07-26 Kenichi Handa <handa@etl.go.jp>
19012
19013 * coding.c (detect_coding_iso2022): While checking a byte sequence
19014 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
19015 it in the normal loop.
19016
19017 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
19018
19019 * xterm.c (expose_overlaps): New function.
19020 (expose_window): Use it to fix the display of overlapping rows.
19021
19022 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
19023
19024 2002-07-23 Ken Raeburn <raeburn@gnu.org>
19025
19026 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
19027 since it only depends on XUINT.
19028
19029 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
19030 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
19031 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
19032 Macros deleted.
19033
19034 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
19035 its value over other approaches.
19036 * sysdep.c (start_of_data): Don't define the function if a macro
19037 form has been defined.
19038
19039 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
19040
19041 * xdisp.c (redisplay_updating_p): New variable.
19042 (init_iterator): Don't free realized faces when
19043 redisplay_updating_p is set.
19044 (redisplay_internal): Set redisplay_updating_p while updating
19045 the display.
19046
19047 2002-07-23 Richard M. Stallman <rms@gnu.org>
19048
19049 * editfns.c (Fmessage): Treat "" like nil.
19050
19051 2002-07-23 Kenichi Handa <handa@etl.go.jp>
19052
19053 * xdisp.c (face_before_or_after_it_pos):
19054 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19055
19056 2002-07-22 Juanma Barranquero <lektu@terra.es>
19057
19058 * callproc.c (init_callproc) [DOS_NT]:
19059 Initialize Vshared_game_score_directory to nil.
19060 (syms_of_callproc) [DOS_NT]: Likewise.
19061
19062 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
19063
19064 * xdisp.c (display_line): Replace an abort with xassert.
19065
19066 2002-07-21 Richard M. Stallman <rms@gnu.org>
19067
19068 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
19069 and END_UNCHANGED when setting buffer_unchanged_p.
19070 Use current_matrix_up_to_date_p to decide whether to use
19071 try_cursor_movement.
19072
19073 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
19074
19075 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
19076
19077 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
19078 Set to nil if dir does not exist.
19079 (syms_of_callproc): Init unconditionally and simply.
19080
19081 * buffer.c (Fbuffer_list): Doc fix.
19082
19083 2002-07-21 Ken Raeburn <raeburn@gnu.org>
19084
19085 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
19086
19087 * buffer.c (mmap_realloc): When shrinking, make sure number of
19088 pages to unmap is rounded towards zero.
19089
19090 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
19091 (XSETINT): Deleted.
19092
19093 * m/att3b.h (XINT): Don't define.
19094 (VALBITS, VALMASK, XTYPE): Deleted.
19095 (DATA_SEG_BITS): Define.
19096 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
19097 ARRAY_MARK_FLAG): Deleted.
19098 (DATA_SEG_BITS): Define.
19099 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
19100 (DATA_SEG_BITS): Define.
19101
19102 2002-07-20 Richard M. Stallman <rms@gnu.org>
19103
19104 * print.c (print_error_message): New args CONTEXT and CALLER.
19105 Calls changed.
19106
19107 * lisp.h (print_error_message): Declare new args.
19108
19109 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
19110 and CONTEXT to print_error_message, don't print them here.
19111 For a Quit, don't use Vsignaling_function.
19112 Call message_log_maybe_newline.
19113
19114 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
19115
19116 2002-07-20 Kim F. Storm <storm@cua.dk>
19117
19118 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
19119
19120 2002-07-19 Ken Raeburn <raeburn@gnu.org>
19121
19122 * bytecode.c (struct byte_stack): Pointers into byte string now
19123 point to const.
19124 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
19125 const.
19126 * charset.h (BCOPY_SHORT): Source pointer now points to const.
19127 * coding.c (encode_eol, detect_coding, detect_eol):
19128 (decode_coding, encode_coding, detect_coding_system):
19129 Source strings now treated as const.
19130 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
19131 modify Lisp string contents.
19132 * coding.h (decode_coding, encode_coding, detect_coding,
19133 detect_eol): Declarations updated.
19134 * composite.c (compose_chars_in_text): Treat Lisp string contents
19135 as const.
19136 * dispnew.c (safe_bcopy): Source pointer now points to const.
19137 * lisp.h (STRING_COPYIN): New macro.
19138 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
19139 (internal_with_output_to_temp_buffer): Declarations updated.
19140 * print.c (temp_output_buffer_setup):
19141 (internal_with_output_to_temp_buffer): Buffer name argument is now
19142 pointer to const.
19143 * sound.c (struct sound_device): Function pointer field "write"
19144 buffer argument now points to const.
19145 (vox_write): Buffer argument points to const.
19146 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
19147 contents as const.
19148 * sysdep.c (emacs_write): Buffer pointer now const.
19149 * term.c (encode_terminal_code): Buffer pointer now const.
19150 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
19151 (x_face_list_fonts, x_update_menu_appearance):
19152 (hash_string_case_insensitive): Treat Lisp string contents as const.
19153
19154 2002-07-19 Juanma Barranquero <lektu@terra.es>
19155
19156 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
19157
19158 * fileio.c (syms_of_fileio): Likewise.
19159 (Ffile_name_as_directory): Fix argument name in docstring.
19160 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
19161
19162 2002-07-18 Richard M. Stallman <rms@gnu.org>
19163
19164 * data.c (Fdefalias): Doc fix.
19165
19166 2002-07-17 Dave Love <fx@gnu.org>
19167
19168 * intervals.h (text_property_stickiness): Use P_.
19169
19170 * ccl.c: Remove `emacs' conditionals.
19171 (ccl_backtrace_table): Fix size spec.
19172 (ccl_driver): Fix type errors.
19173
19174 2002-07-16 Ken Raeburn <raeburn@gnu.org>
19175
19176 * alloc.c (xstrdup, make_string, make_unibyte_string)
19177 (make_multibyte_string, build_string): String pointer args now
19178 point to const.
19179 * charset.c (find_charset_in_text, c_string_width):
19180 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
19181 * fileio.c (report_file_error):
19182 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
19183 (count_combining_before, count_combining_after, insert_1_both):
19184 (insert, insert_and_inherit, insert_string):
19185 (insert_before_markers, insert_before_markers_and_inherit):
19186 * lread.c (intern, oblookup, hash_string):
19187 * minibuf.c (temp_echo_area_glyphs):
19188 * search.c (fast_c_string_match_ignore_case):
19189 * sysdep.c (emacs_open, set_file_times):
19190 * xfaces.c (xstricmp):
19191 * xdisp.c (store_frame_title, string_char_and_length):
19192 (message_dolog, message2, message2_nolog, set_message): Likewise.
19193 (set_message_1): Cast message string argument to const pointer.
19194 * editfns.c (general_insert_function): Insertion function now
19195 takes pointer to const for input data.
19196 * charset.h (find_charset_in_text, c_string_width):
19197 (parse_str_as_multibyte): Declarations updated.
19198 * dispextern.h (xstricmp): Declaration updated.
19199 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
19200 (count_size_as_multibyte, count_combining_before):
19201 (count_combining_after, insert_1, insert_1_both, message_dolog):
19202 (insert, insert_and_inherit, insert_before_markers)
19203 (insert_before_markers_and_inherit, set_message, message2):
19204 (message2_dolog, build_string, make_string, make_unibyte_string):
19205 (make_multibyte_string, intern, oblookup, report_file_error):
19206 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
19207 (emacs_open, xstrdup): Declarations updated.
19208 * systime.h (set_file_times): Declaration updated.
19209
19210 * charset.c (find_charset_in_text, lisp_string_width): Use const
19211 for pointer to lisp string data.
19212 * charset.h (FETCH_STRING_CHAR_ADVANCE):
19213 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
19214 * coding.c (Ffind_coding_systems_region_interval):
19215 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
19216 (Fmake_directory_internal, Fdelete_directory):
19217 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
19218 * fontset.c (font_family_registry, fs_query_fontset):
19219 (list_fontsets):
19220 * frame.c (Fframe_parameter):
19221 * keyboard.c (cmd_error_internal):
19222 * keymap.c (Fdescribe_buffer_bindings):
19223 * lread.c (complete_filename_p, openp):
19224 * minibuf.c (Fminibuffer_complete_word):
19225 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
19226 (face_before_or_after_it_pos, next_element_from_string):
19227 (get_overlay_arrow_glyph_row, display_mode_element):
19228 (decode_mode_spec_coding):
19229 * xterm.c (same_x_server): Likewise.
19230
19231 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
19232 settings of non-existent fields.
19233
19234 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
19235 copy a lisp value.
19236
19237 * lread.c (Fintern_soft): Use string macros instead of
19238 Lisp_String fields.
19239 * keyboard.c (echo_char, parse_modifiers_uncached):
19240 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
19241 * textprop.c (validate_interval_range, interval_of): Likewise.
19242
19243 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
19244
19245 * charset.h (FETCH_STRING_CHAR_ADVANCE)
19246 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
19247 XSTRING()->size_byte.
19248
19249 * lisp.h (SDATA, SREF): Produce rvalue.
19250 (SSET): New macro.
19251 * alloc.c (make_event_array): Use SSET for storing into a string.
19252 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
19253 a string.
19254 * casefiddle.c (casify_object): Use SSET.
19255 * charset.h (FETCH_STRING_CHAR_ADVANCE)
19256 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
19257 address of string contents.
19258 * data.c (Faref): Use SDATA.
19259 (Faset): Use SDATA, SSET.
19260 * dired.c (directory_files_internal): Use SSET.
19261 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
19262 (Fread_file_name): Use SREF, SSET.
19263 * fns.c (concat): Use SSET.
19264 (concat, Fdelete): Use SDATA.
19265 * insdel.c (insert_from_string_1): Use SDATA.
19266 * keyboard.c (Fevent_convert_list): Use SREF.
19267 * lread.c (Fload): Use SDATA, SSET.
19268 * macfns.c (validate_x_resource_name): Use SSET.
19269 * process.c (status_message): Use SSET.
19270 * search.c (wordify): Use SDATA.
19271 (Freplace_match): Use SREF.
19272 * w32fns.c (validate_x_resource_name): Use SSET.
19273 * xfns.c (validate_x_resource_name): Use SSET.
19274 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
19275
19276 2002-07-16 Richard M. Stallman <rms@gnu.org>
19277
19278 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
19279
19280 * xdisp.c (reconsider_clip_changes):
19281 Don't test prevent_redisplay_optimizations_p.
19282 (redisplay_internal): Test prevent_redisplay_optimizations_p
19283 along with clip_changed in some cases.
19284 (try_window_id): Likewise.
19285 (redisplay_window): New local var buffer_unchanged_p.
19286
19287 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
19288
19289 * process.c (create_process): Test USG_SUBTTY_WORKS.
19290 (process_send_signal): Clean up handling of GID.
19291 Detect errors in ioctls meant to set GID.
19292
19293 * window.c (temp_output_buffer_show):
19294 Don't set prevent_redisplay_optimizations_p.
19295
19296 2002-07-15 Juanma Barranquero <lektu@terra.es>
19297
19298 * eval.c (Fdefvaralias): Add docstring argument.
19299
19300 2002-07-15 Ken Raeburn <raeburn@gnu.org>
19301
19302 * lisp.h (STRING_INTERVALS): Produce rvalue.
19303 (STRING_SET_INTERVALS): New macro.
19304 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
19305 * fns.c (Fstring_as_multibyte): Likewise.
19306 * intervals.c (balance_possible_root_interval, delete_interval)
19307 (create_root_interval, copy_intervals_to_string): Likewise.
19308 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
19309 instead of 0.
19310
19311 2002-07-14 Ken Raeburn <raeburn@gnu.org>
19312
19313 * lisp.h (STRING_SET_CHARS): New macro.
19314 (SCHARS, SBYTES): Produce rvalues.
19315 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
19316 * fns.c (concat): Likewise.
19317 * lread.c (read_vector): Likewise.
19318
19319 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
19320 (STRING_SET_UNIBYTE): New macro.
19321 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
19322 length of -1) changed to use STRING_SET_UNIBYTE.
19323 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
19324 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
19325 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
19326 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
19327 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
19328 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
19329 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
19330 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
19331 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
19332 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
19333 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
19334 STRING_BYTES or indirection changed to SCHARS, SBYTES,
19335 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
19336 unchanged for now.
19337
19338 2002-07-13 Kim F. Storm <storm@cua.dk>
19339
19340 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
19341
19342 2002-07-12 Richard M. Stallman <rms@gnu.org>
19343
19344 * fileio.c (Fwrite_region): Doc fix.
19345
19346 * print.c (print_error_message): Don't handle Vsignaling_function here.
19347
19348 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
19349 (command_loop_1): Avoid certain actions after memory-full error.
19350
19351 * eval.c (Fsignal): Don't call cancel_hourglass.
19352 For a memory-full error, don't call Vsignal_hook_function
19353 and don't set Vsignaling_function.
19354
19355 * process.c (process_send_signal): Add abort call.
19356
19357 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
19358
19359 * keymap.c (Fkey_binding): Fix typo.
19360
19361 2002-07-11 Richard M. Stallman <rms@gnu.org>
19362
19363 * alloc.c (Vmemory_full): New variable.
19364 (Vmemory_signal_data): Rename from memory_signal_data.
19365 Uses changed.
19366 (syms_of_alloc): Defvar them.
19367 (memory_full, buffer_memory_full): Set Vmemory_full.
19368
19369 * lisp.h (Vmemory_full): Add declaration.
19370 (current_column, indented_beyond_p): Change declaration.
19371
19372 * indent.c (last_known_column): Declare as double, not float.
19373 (current_column, current_column_1, string_display_width)
19374 (position_indentation): Return `double'.
19375 (indented_beyond_p): Arg `column' is `double'. Callers changed.
19376
19377 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
19378 (back_to_previous_visible_line_start)
19379 (reseat_at_next_visible_line_start, next_element_from_buffer):
19380 Use `double', not `float', when calling indented_beyond_p.
19381
19382 * s/hpux11.h (BROKEN_SA_RESTART): Define.
19383
19384 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
19385
19386 2002-07-11 Juanma Barranquero <lektu@terra.es>
19387
19388 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
19389 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
19390 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
19391 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
19392 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
19393 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
19394
19395 2002-07-10 Juanma Barranquero <lektu@terra.es>
19396
19397 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
19398 All callers changed.
19399
19400 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
19401
19402 * data.c (Fdefalias): Add an optional `docstring' argument.
19403 (set_internal, Fsetq_default): Use XCAR/XCDR.
19404
19405 * composite.c (HASH_VALUE, HASH_KEY):
19406 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
19407
19408 2002-07-09 Kenichi Handa <handa@etl.go.jp>
19409
19410 * callproc.c (Fcall_process): Fix previous change.
19411
19412 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
19413
19414 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
19415 Add support for hash-tables.
19416 (Ftry_completion): Return t even if the string appears multiple times.
19417
19418 * fns.c (Fnconc): Use XCDR.
19419 (Fprovide): Use CONSP and XCDR.
19420 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
19421 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
19422 (Fmake_hash_table): Accept `:size nil'.
19423 (Fmakehash): Delete: moved to subr.el.
19424 (syms_of_fns): Don't defsubr makehash.
19425
19426 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
19427 (HASH_TABLE_SIZE): Move from fns.c.
19428
19429 2002-07-07 Richard M. Stallman <rms@gnu.org>
19430
19431 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
19432 Instead just return 0 when there is something to be done.
19433 (try_scrolling): If make_cursor_line_fully_visible returns 0,
19434 retry scrolling as if cursor were off the bottom.
19435 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
19436 return CURSOR_MOVEMENT_MUST_SCROLL.
19437 (redisplay_window): If make_cursor_line_fully_visible returns 0,
19438 go to try_to_scroll.
19439
19440 * buffer.c (Fbuffer_local_value): Store current value into its binding
19441 so we get the up-to-date value for the binding that is loaded.
19442
19443 * eval.c (Fdefmacro): Doc fix.
19444
19445 2002-07-05 Dave Love <fx@gnu.org>
19446
19447 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
19448 correctly.
19449
19450 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
19451 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
19452 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
19453 CCL_LookupCharConstTbl.
19454 (syms_of_ccl): Defvar translation-hash-table-vector.
19455
19456 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19457
19458 * xdisp.c: Remove unused variable `face'.
19459
19460 2002-07-04 Juanma Barranquero <lektu@terra.es>
19461
19462 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
19463 obsolescence information.
19464
19465 2002-07-03 Andrew Choi <akochoi@shaw.ca>
19466
19467 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
19468 pattern. Search cache first.
19469 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
19470 for Japanese font.
19471 (XLoadQueryFont): Use it.
19472
19473 2002-07-02 Richard M. Stallman <rms@gnu.org>
19474
19475 * keymap.c (Fdefine_key): Doc fix.
19476
19477 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
19478
19479 2002-07-02 Juanma Barranquero <lektu@terra.es>
19480
19481 * keymap.c (syms_of_keymap): Fix typo.
19482
19483 2002-07-01 Andrew Choi <akochoi@shaw.ca>
19484
19485 * s/darwin.h: Define POSIX_SIGNALS.
19486
19487 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
19488 and FSRefMakePath to convert FSSpec returned with Apple Event to
19489 Posix pathname.
19490 (mac_initialize) [TARGET_API_MAC_CARBON]:
19491 Call init_required_apple_events and disable the `Quit' menu item
19492 provided automatically by the Carbon Toolbox.
19493
19494 2002-07-01 Dave Love <fx@gnu.org>
19495
19496 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19497 for K&R.
19498
19499 * xterm.c: Fix prototype for K&R.
19500
19501 * term.c (costs_set): Declare static, non-initialized for pcc.
19502
19503 2002-07-01 Richard M. Stallman <rms@gnu.org>
19504
19505 * keyboard.c (timer_last_idleness_start_time): New variable.
19506 (timer_start_idle): Set that.
19507 (read_key_sequence): Use that to reset timer_idleness_start_time
19508 to previous value.
19509
19510 * window.c (Frecenter): With arg, set optional_new_start.
19511
19512 * xdisp.c (redisplay_internal): Make optional_new_start really work.
19513
19514 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
19515 buffer for completion.
19516
19517 2002-06-29 Ken Raeburn <raeburn@gnu.org>
19518
19519 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
19520
19521 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19522
19523 * keyboard.c (readable_filtered_events): New function that filters
19524 FOCUS_IN_EVENT depending on parameter.
19525 (readable_events): Calls readable_filtered_events, not filtering
19526 FOCUS_IN_EVENT.
19527 (get_filtered_input_pending): New function, filtering parameter passed
19528 to readable_filtered_events.
19529 (get_input_pending): Calls get_filtered_input_pending, not filtering
19530 FOCUS_IN_EVENT.
19531 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
19532 FOCUS_IN_EVENT.
19533
19534 * xterm.h (struct x_output): Add focus_state.
19535
19536 * xterm.c (x_focus_changed): New function.
19537 (x_detect_focus_change): New function.
19538 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
19539 EnterNotify and LeaveNotify to track X focus changes.
19540
19541 2002-06-28 Andreas Schwab <schwab@suse.de>
19542
19543 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
19544
19545 2002-06-27 Kim F. Storm <storm@cua.dk>
19546
19547 * xdisp.c (mode_line_string_list, mode_line_string_face)
19548 (mode_line_string_face_prop): New variables.
19549 (store_mode_line_string): New function.
19550 (display_mode_element): Use store_mode_line_string to
19551 add mode-line string elements to mode_line_string_list
19552 when mode_line_string_list is non-nil.
19553 (Fformat_mode_line): Now returns propertized string by
19554 default. New arg NO-PROPS to ignore properties.
19555 (decode_mode_spec): Only add two dashes for %- in propertized
19556 mode-line string.
19557 (syms_of_xdisp): Init and staticpro mode_line_string_list.
19558
19559 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
19560
19561 * minibuf.c (minibuffer_completion_contents): Add return type.
19562
19563 2002-06-27 Juanma Barranquero <lektu@terra.es>
19564
19565 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
19566
19567 2002-06-26 Juanma Barranquero <lektu@terra.es>
19568
19569 * fileio.c (read_file_name_cleanup): Add missing return.
19570
19571 2002-06-26 Richard M. Stallman <rms@gnu.org>
19572
19573 * window.c (Frecenter): Don't set force_start flag.
19574
19575 * minibuf.c (do_completion, Fminibuffer_complete_word)
19576 (Fminibuffer_completion_help): Complete just the text before point.
19577 (minibuffer_completion_contents): New function.
19578
19579 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
19580
19581 * frame.c (frames_bury_buffer): Function deleted.
19582
19583 2002-06-25 Miles Bader <miles@gnu.org>
19584
19585 * callint.c (Fcall_interactively): When checking to see if doprnt hit
19586 the end of callint_message, allow for a terminating '\0'.
19587
19588 2002-06-24 Juanma Barranquero <lektu@terra.es>
19589
19590 * w32select.c: Include composite.h.
19591
19592 * w16select.c: Likewise.
19593
19594 2002-06-24 Kenichi Handa <handa@etl.go.jp>
19595
19596 * callproc.c (Fcall_process): If code detection is necessary,
19597 call detect_coding directly here.
19598
19599 * coding.c (detect_eol): Preserve coding->cmp_data.
19600
19601 * w16select.c (Fw16_get_clipboard_data):
19602 * w32fns.c (w32_to_x_font):
19603 * w32select.c (Fw32_get_clipboard_data):
19604 * xselect.c (selection_data_to_lisp_data):
19605 * xterm.c (XTread_socket): Disable composition handling.
19606
19607 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
19608
19609 * print.c (temp_output_buffer_setup): Kill all local variables.
19610
19611 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
19612
19613 * lread.c (Fread): Remove redundant and imprecise declaration.
19614
19615 * xfns.c (check_x_display_info): Use check_x_frame.
19616
19617 * .gdbinit (xprintsym): Use the new `xname' field.
19618 (xsymbol): Use it.
19619
19620 2002-06-22 Jason Rumney <jasonr@gnu.org>
19621
19622 * w32fns.c (file_dialog_callback): New function.
19623 (Fx_file_dialog): Allow selecting directories as well as files.
19624
19625 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19626
19627 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
19628 OpenBSD. Add support for mipseb-*-netbsd* machines.
19629
19630 2002-06-17 Andrew Choi <akochoi@shaw.ca>
19631
19632 * macterm.c (mac_scroll_area): Set foreground and backcolor to
19633 black and white before scrolling. Restore frame background and
19634 foreground color after scrolling.
19635 (do_window_update): Call XClearWindow before calling expose_frame.
19636 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
19637 FRAME_FOREGROUND_PIXEL of frame.
19638
19639 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
19640 test Mac command key as <ALT> key.
19641
19642 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
19643
19644 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
19645
19646 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
19647 Lookup keys in function-key-map immediately so that key-translation-map
19648 can be applied earlier.
19649 Remove function_key_possible and key_translation_possible, replaced
19650 by checking `keytran_start < t'.
19651
19652 * .gdbinit (xsymbol): Use the new `xname' field.
19653
19654 2002-06-17 Andrew Choi <akochoi@shaw.ca>
19655
19656 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
19657 test Mac command key as <ALT> key.
19658
19659 * mac.c (do_applescript): Call initialize_applescript if necessary
19660 when first called. Dispose of result_desc only when there is no error.
19661 (Fdo_applescript): Use %d format specifier instead of %ld.
19662
19663 2002-06-16 Andrew Choi <akochoi@shaw.ca>
19664
19665 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
19666 of FrontWindow for cases keyDown and autoKey.
19667
19668 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
19669 Vdefault_fontset to Monaco with mac-roman coding.
19670
19671 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
19672 init_process before and after inclusion of Carbon/Carbon.h, resp.
19673
19674 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
19675 cursor_gc.
19676 (add_font_name_table_entry): New function.
19677 (init_font_name_table): Use add_font_name_table_entry; add italic,
19678 bold, and bold-italic entries for truetype fonts.
19679
19680 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
19681 for Mac too.
19682 (try_font_list) [MAC_OS]: If no font matches given registry, try
19683 fonts with any registry matching face_family.
19684 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
19685
19686 * s/darwin.h: If autoconf detects the Ncurses library, define
19687 LIBS_TERMCAP to -lncurses to use it.
19688
19689 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
19690
19691 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
19692
19693 2002-06-15 Richard M. Stallman <rms@gnu.org>
19694
19695 * window.c (Fset_window_configuration): Explicitly preserve
19696 the point value that new_current_buffer had at the start.
19697
19698 2002-06-14 Juanma Barranquero <lektu@terra.es>
19699
19700 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
19701 Fix typos.
19702
19703 2002-06-14 Kim F. Storm <storm@cua.dk>
19704
19705 * insdel.c (insert_1_both, insert_from_string_1)
19706 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
19707 insert happened in the end_unchanged region. Otherwise, the
19708 redisplay may be confused and duplicate the last line in the
19709 buffer [seen after save-buffer when require-final-newline==t].
19710
19711 2002-06-13 Jason Rumney <jasonr@gnu.org>
19712
19713 * w32.c (init_environment): Remove EMACSLOCKDIR.
19714 (stat): Swap _S_IFDIR and _S_IFREG.
19715
19716 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19717
19718 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
19719 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
19720 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
19721 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
19722 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
19723 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
19724 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
19725 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
19726 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
19727 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
19728 SELECTION_REQUEST_EVENT, selection_clear_event to
19729 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
19730 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
19731 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
19732 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
19733 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
19734 no_event to NO_EVENT.
19735
19736 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19737
19738 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
19739
19740 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
19741
19742 * intervals.c (textget): Don't forget to `return'.
19743 (lookup_char_property): Use XCAR/XCDR.
19744
19745 2002-06-12 Juanma Barranquero <lektu@terra.es>
19746
19747 * xdisp.c (Fformat_mode_line): Fix typo.
19748
19749 2002-06-12 Kim F. Storm <storm@cua.dk>
19750
19751 * xdisp.c (Fformat_mode_line): New function.
19752 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
19753 (store_frame_title_char, store_frame_title): Use unconditionally.
19754 (init_xdisp): Defsubr Fformat_mode_line.
19755 Initialize frame_title_buf etc. unconditionally.
19756
19757 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
19758
19759 * keyboard.c (read_key_sequence):
19760 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
19761 things through those maps after downcasing events.
19762 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
19763 applies after function-key-map.
19764 Make sure that keytran can be done in the middle in the sequence.
19765 Be careful not to throw away events past the one we downcase.
19766
19767 * lread.c (read_integer): Remove unused var `tem'.
19768 (read1): Fix int/Lisp_Object mixup.
19769
19770 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
19771
19772 2002-06-11 Richard M. Stallman <rms@gnu.org>
19773
19774 * keyboard.c (readable_events): Ignore any number of
19775 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
19776
19777 2002-06-09 Miles Bader <miles@gnu.org>
19778
19779 * xfaces.c (Ftty_supports_face_attributes_p): New function.
19780 (parse_rgb_list, tty_lookup_color): New functions.
19781 (tty_defined_color): Use `tty_lookup_color' to do all the work.
19782 (color_distance, Fcolor_distance): New functions.
19783 (TTY_SAME_COLOR_THRESHOLD): New macro.
19784 (Qtty_color_standard_values): New variable.
19785 (syms_of_xfaces): Initialize new vars & functions.
19786
19787 2002-06-08 Colin Walters <walters@verbum.org>
19788
19789 * textprop.c (Vchar_property_alias_alist): New variable.
19790 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
19791
19792 * intervals.c (lookup_char_property): New function for looking up
19793 overlay and text properties, created from textget.
19794 (textget): Use it.
19795
19796 * intervals.h (lookup_char_property): Declare.
19797 (Vchar_property_alias_alist): Declare.
19798
19799 * buffer.c (Foverlay_get): Use lookup_char_property.
19800
19801 2002-06-07 Sam Steingold <sds@gnu.org>
19802
19803 * xselect.c (lisp_data_to_selection_data): Fix last change:
19804 *data_ret is not a Lisp string, while unibyte_string is.
19805
19806 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
19807
19808 * xselect.c (lisp_data_to_selection_data): Fix last change:
19809 set size_ret.
19810
19811 2002-06-07 Andreas Schwab <schwab@suse.de>
19812
19813 * m/amdx86-64.h: New file.
19814
19815 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
19816
19817 * fns.c (Fstring_make_unibyte): Doc fix.
19818
19819 * xselect.c (lisp_data_to_selection_data): If the requested type
19820 is STRING, call string_make_unibyte to encode the selected text
19821 as a string.
19822
19823 * window.c (Fset_window_hscroll): Doc fix.
19824
19825 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19826
19827 * fileio.c (choose_write_coding_system):
19828 Call select-safe-coding-system properly.
19829
19830 2002-06-03 Richard M. Stallman <rms@gnu.org>
19831
19832 * xdisp.c (message_with_string): Error if STRING is not a string.
19833
19834 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
19835
19836 * fileio.c (choose_write_coding_system): Pass FILE arg to
19837 Vselect_safe_coding_system_function.
19838
19839 2002-06-03 Ken Raeburn <raeburn@gnu.org>
19840
19841 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
19842
19843 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
19844
19845 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
19846 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
19847 * keymap.c (describe_command): Likewise.
19848 * minibuf.c (read_minibuf): Likewise.
19849
19850 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
19851 Cast `current_column' return value to int.
19852 (back_to_previous_visible_line_start)
19853 (reseat_at_next_visible_line_start, next_element_from_buffer):
19854 Cast `indented_beyond_p' 3rd arg to float.
19855
19856 * indent.c (last_known_column): Now a float.
19857 (current_column_1, position_indentation, current_column)
19858 (string_display_width): Return float.
19859 (Fcurrent_column): Cast `current_column' return value to int.
19860 (Fcurrent_indentation): Cast `position_indentation' retval to int.
19861 (indented_beyond_p): Third arg now a float.
19862 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
19863
19864 * lisp.h (current_column): Now returns float.
19865 (indented_beyond_p): 3rd arg now a float.
19866
19867 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
19868
19869 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
19870 is Qcompound_text_with_extensions.
19871
19872 * xselect.c (lisp_data_to_selection_data): Always set selection
19873 type as string if x_encode_text returns streingp non-NULL.
19874
19875 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
19876
19877 2002-05-30 Richard M. Stallman <rms@gnu.org>
19878
19879 * window.c (Fset_window_configuration): Correct the handling
19880 of point in current buffer, to work with multiple windows.
19881
19882 2002-05-29 Colin Walters <walters@verbum.org>
19883
19884 * lread.c (Fread_from_string): Don't depend on order of evaluation
19885 for C function parameters.
19886
19887 2002-05-28 Richard M. Stallman <rms@gnu.org>
19888
19889 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
19890 way for blinked-off state and for a nonselected window.
19891
19892 * window.c (window_scroll_pixel_based): Don't call Fbolp;
19893 instead, see if the new start pos is at beginning of line.
19894
19895 * fileio.c (Fwrite_region): If START is a string, don't
19896 make any annotations.
19897
19898 * eval.c (syms_of_eval): Doc fix.
19899
19900 2002-05-28 Colin Walters <walters@debian.org>
19901
19902 * emacs.c (USAGE1): Add --no-splash.
19903 (standard_args): Ditto.
19904
19905 2002-05-28 Colin Walters <walters@gnu.org>
19906
19907 * lread.c (readchar_count): New variable.
19908 (readchar): Increment it.
19909 (unreadchar): Decrement it.
19910 (read_multibyte): Decrement it.
19911 (Vread_with_symbol_positions): New variable.
19912 (Vread_symbol_positions_list): New variable.
19913 (read_internal_start): New function, created from Fread and
19914 Fread_from_string. Handle Vread_symbol_positions_list and
19915 Vread_with_symbol_positions.
19916 (readevalloop, Fread, Fread_from_string): Use it.
19917 (read1): Use readchar_count to add symbol positions to
19918 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
19919 (syms_of_lread): DEFVAR_LISP and initialize them.
19920
19921 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
19922 (substitute_object_recurse, substitute_object_in_subtree)
19923 (substitute_in_interval): Prototype.
19924 (read_multibyte): Return c if it's less than zero.
19925
19926 2002-05-28 Kim F. Storm <storm@cua.dk>
19927
19928 * fileio.c (Fread_file_name_internal): Added brute-force
19929 speed up for using predicate file-directory-p.
19930
19931 2002-05-28 Kim F. Storm <storm@cua.dk>
19932
19933 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
19934 New variables.
19935 (syms_of_fileio): DEFVAR_LISP them.
19936 (read_file_name_cleanup): New unwind function.
19937 (Fread_file_name_internal): Only return completions satifying
19938 Vread_file_name_predicate. Temporarily unwind protect and rebind
19939 default-directory while checking completions against the predicate.
19940 (Fread_file_name): Added PREDICATE argument. Specbind it to
19941 Vread_file_name_predicate during completion.
19942 Call Vread_file_name_function to read the file name if non-nil.
19943
19944 * lisp.h (Fread_file_name): Now has 6 args.
19945
19946 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
19947 predicate for Fread_file_name when reading directory name.
19948 Supply Qnil for predicate in other calls to Fread_file_name.
19949
19950 2002-05-26 Miles Bader <miles@gnu.org>
19951
19952 * term.c (tty_capable_p): New function.
19953 * dispextern.h (tty_capable_p): New function declaration.
19954 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
19955 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
19956
19957 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
19958
19959 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
19960 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
19961 (Vwrite_region_annotate_functions): Docstring fix.
19962
19963 2002-05-23 Kim F. Storm <storm@cua.dk>
19964
19965 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
19966 phys_cursor's hpos is overwritten. This is still not completely
19967 correct, as it doesn't really make sense to use hpos at all to
19968 get the cursor glyph (as that is relative to the width of the
19969 characters on the line, which may have changed during the update).
19970
19971 2002-05-22 Jason Rumney <jasonr@gnu.org>
19972
19973 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
19974 Lisp_Object.
19975 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
19976 Use modified enumfont_t struct.
19977
19978 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
19979
19980 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
19981 Handle the `hbar' cursor type.
19982 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
19983
19984 * w32fns.c (Qhbar): New variable.
19985 (x_specified_cursor_type): Use it.
19986
19987 2002-05-21 Ken Raeburn <raeburn@gnu.org>
19988
19989 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
19990 now, when the address is needed.
19991
19992 2002-05-21 Colin Walters <walters@gnu.org>
19993
19994 * Makefile.in (shortlisp): Add font-core.el.
19995
19996 2002-05-20 Richard M. Stallman <rms@gnu.org>
19997
19998 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
19999
20000 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
20001 equivalent key bindings here.
20002
20003 2002-05-20 Ken Raeburn <raeburn@gnu.org>
20004
20005 Change symbol structure to contain a lisp object for the symbol
20006 name:
20007 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
20008 object field named "xname".
20009 (SYMBOL_NAME): New macro.
20010 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
20011 name field.
20012 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
20013 (mark_object, gc_sweep): Use symbol xname field and XSTRING
20014 instead of name field.
20015 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
20016 SYMBOL_NAME instead of XSYMBOL and name field.
20017 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
20018 instead of XSYMBOL and name field.
20019 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
20020 and SYMBOL_NAME instead of XSYMBOL and name field.
20021 * coding.c (Fread_coding_system, code_convert_region1)
20022 (code_convert_string1, code_convert_string_norecord)
20023 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
20024 XSYMBOL and name field.
20025 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
20026 (Fmake_variable_buffer_local, Fmake_local_variable)
20027 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
20028 of XSYMBOL and name field.
20029 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
20030 XSYMBOL and name field.
20031 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
20032 instead of XSYMBOL and name field.
20033 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
20034 XSYMBOL and name field.
20035 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
20036 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
20037 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
20038 instead of XSYMBOL and name field.
20039 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
20040 (parse_modifiers, apply_modifiers, Fevent_convert_list)
20041 (parse_solitary_modifier, Fexecute_extended_command):
20042 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
20043 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
20044 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
20045 of XSYMBOL and name field.
20046 (describe_command, describe_translation): Use SYMBOL_NAME and
20047 assignment instead of XSYMBOL and name field and XSETSTRING.
20048 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
20049 instead of XSYMBOL and name field.
20050 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
20051 name field and XSETSTRING.
20052 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
20053 of XSYMBOL and name field.
20054 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
20055 assignment instead of XSYMBOL and name field and XSETSTRING.
20056 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
20057 XSTRING instead of XSYMBOL and name field.
20058 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
20059 and XSTRING instead of XSYMBOL and name field.
20060 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
20061 and XSTRING instead of XSYMBOL and name field.
20062 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
20063 XSTRING instead of XSYMBOL and name field.
20064 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
20065 of XSYMBOL and name field.
20066 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
20067 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
20068
20069 2002-05-19 Ken Raeburn <raeburn@gnu.org>
20070
20071 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
20072 and XCDR real rvalues in most configurations.
20073
20074 * buffer.c (fix_overlays_in_range, fix_overlays_before):
20075 Don't take the address of the cdr part of a cons cell; instead, track
20076 the parent cell and call XSETCDR, or set the variable for the head
20077 of the list if we haven't started down the list yet.
20078
20079 2002-05-19 Richard M. Stallman <rms@gnu.org>
20080
20081 * doc.c (reread_doc_file): Don't ask for confirmation.
20082
20083 2002-05-18 Jason Rumney <jasonr@gnu.org>
20084
20085 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
20086 (xbm_load_image): Use it.
20087 (xbm_load): Ditto.
20088 (xbm_read_bitmap_data): Reverted to xfns.c version.
20089 From David Ponce <david@dponce.com>.
20090
20091 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
20092
20093 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
20094 2.02 and later.
20095
20096 2002-05-16 Juanma Barranquero <lektu@terra.es>
20097
20098 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
20099
20100 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
20101
20102 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
20103 meaningful test.
20104 (read_char_minibuf_menu_prompt): Fix typo.
20105
20106 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
20107
20108 * eval.c (Fcommandp): Doc fix.
20109
20110 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
20111
20112 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
20113 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
20114 (Fset_keymap_parent): Gcpro a bit more.
20115 (access_keymap): Gcpro around meta_map call and around the main loop.
20116 (get_keyelt): Gcpro when following indirect references.
20117 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
20118 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
20119 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
20120 Remove useless ad-hoc remap code.
20121
20122 2002-05-13 Richard M. Stallman <rms@gnu.org>
20123
20124 * search.c (search_buffer): Give up boyer moore search if inverse
20125 translation change charset_base.
20126
20127 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
20128
20129 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
20130 characters is carried over from the previous block of text, adjust
20131 coding->produced to account for the extra character.
20132
20133 2002-05-11 Andreas Schwab <schwab@suse.de>
20134
20135 * coding.c (intersection): Keep the elements of the returned list
20136 in the same order as in the first list.
20137
20138 2002-05-11 Kim F. Storm <storm@cua.dk>
20139
20140 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
20141 only update cmm_size if realloc actually succeeds.
20142 Testing with initial size of 2 elements revealed that using
20143 realloc on GNU/Linux would cause a random trap in xmalloc
20144 later on, so I rewrote the code to use malloc/bcopy/free instead
20145 of realloc.
20146
20147 2002-05-10 Jason Rumney <jasonr@gnu.org>
20148
20149 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
20150
20151 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
20152
20153 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
20154 parens, to ensure correct evaluation order.
20155
20156 2002-05-10 Kim F. Storm <storm@cua.dk>
20157
20158 * keymap.c (Vemulation_mode_map_alists): New variable.
20159 (syms_of_keymap): DEFVAR_LISP it.
20160 (current_minor_maps): Process keymap alists in that list before
20161 minor-mode-overriding-map-alist and minor-mode-map-alist.
20162
20163 2002-05-09 Richard M. Stallman <rms@gnu.org>
20164
20165 * search.c (Freplace_match): Doc fix.
20166
20167 2002-05-09 Kim F. Storm <storm@cua.dk>
20168
20169 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
20170 Enlarge cursor rectangle drawn around image with non-zero relief.
20171
20172 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
20173 Enlarge cursor rectangle drawn around image with non-zero relief.
20174
20175 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
20176 Enlarge cursor rectangle drawn around image with non-zero relief.
20177
20178 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
20179
20180 * xselect.c (lisp_data_to_selection_data): Don't set selection
20181 type if comes from the Lisp object's car. If the selection
20182 contains a pure ASCII text, always return QSTRING as its type.
20183
20184 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20185
20186 * mac.c (mac-cut-function): Doc fix.
20187
20188 2002-05-05 Richard M. Stallman <rms@gnu.org>
20189
20190 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
20191
20192 2002-05-04 Jason Rumney <jasonr@gnu.org>
20193
20194 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
20195 for event-click-count.
20196
20197 * process.c (init_process): Only add server subfeature if we can
20198 use non-blocking I/O.
20199
20200 2002-05-04 Andrew Choi <akochoi@shaw.ca>
20201
20202 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
20203 repeatedly.
20204
20205 2002-05-03 Jason Rumney <jasonr@gnu.org>
20206
20207 * process.c (Fmake_network_process): Only support server sockets
20208 when we can make them non-blocking.
20209
20210 * s/ms-w32.h (HAVE_SELECT): Define.
20211
20212 * w32.h (FILE_NDELAY): New flag.
20213
20214 * w32.c (sys_getpeername, fcntl): New functions.
20215 (_sys_read_ahead): Temporarily block on non-blocking sockets.
20216
20217 * w32proc.c: Include sys/file.h.
20218
20219 2002-05-03 Colin Walters <walters@verbum.org>
20220
20221 * callproc.c (Vgame_score_directory): Renamed to
20222 Vshared_game_score_directory.
20223
20224 2002-04-30 Richard M. Stallman <rms@gnu.org>
20225
20226 * s/gnu.h [emacs]: Include stdio.h.
20227 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
20228
20229 * eval.c (do_autoload): Error if called while preparing to dump.
20230
20231 * fns.c (Frequire): Error if need to load while preparing to dump.
20232
20233 2002-04-28 Colin Walters <walters@verbum.org>
20234
20235 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
20236 Default to "~/.emacs.d/games".
20237
20238 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
20239
20240 * lread.c (openp): Change arg exec_only to predicate.
20241 (build_load_history): Use XCAR/XCDR.
20242 (Flocate_file_internal): New fun.
20243 (syms_of_lread): Defsubr it.
20244 (Fload): Update call to openp.
20245
20246 * lisp.h (openp): Update prototype.
20247
20248 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
20249 * w32proc.c (sys_spawnve):
20250 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
20251 * w32.c (check_windows_init_file):
20252 * sound.c (Fplay_sound_internal):
20253 * process.c (Fstart_process):
20254 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
20255 * mac.c (run_mac_command):
20256 * emacs.c (init_cmdargs):
20257 * callproc.c (Fcall_process): Update call to openp.
20258
20259 * textprop.c (remove_properties): Don't use XCAR without CONSP.
20260
20261 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
20262
20263 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20264
20265 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
20266 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
20267
20268 2002-04-28 Richard M. Stallman <rms@gnu.org>
20269
20270 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
20271
20272 * eval.c (Fcommandp): New arg for_call_interactively.
20273 * lisp.h (Fcommandp): Declare new arg.
20274
20275 2002-04-28 Jason Rumney <jasonr@gnu.org>
20276
20277 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
20278
20279 * w32.c (stat, fstat): Use file index information to generate
20280 inodes for directories where available.
20281
20282 2002-04-26 Andrew Choi <akochoi@shaw.ca>
20283
20284 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
20285 [HAVE_CARBON]: Include Mac object files.
20286
20287 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
20288 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
20289 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
20290 MAC_OSX, and MAC_OS instead of macintosh.
20291
20292 * editfns.c [MAC_OS8]: Include stdio.h.
20293
20294 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
20295
20296 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
20297 Apple Monaco.
20298
20299 * process.c (QCfamily, QCfilte): Declare extern.
20300 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
20301 calling select.
20302
20303 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
20304
20305 * tparam.c [MAC_OSX]: Don't define BC and UP.
20306
20307 * config.in [HAVE_CARBON]: Add.
20308
20309 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
20310 Move here from mac/src and mac/inc.
20311
20312 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
20313
20314 2002-04-26 Gerd Moellmann <gerd@gnu.org>
20315
20316 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
20317 Compute phys_cursor_width from the x position returned
20318 by x_draw_glyhs, which is cheaper.
20319 (x_display_and_set_cursor): Compute the buffer-local value
20320 of `cursor-in-non-selected-windows' only when needed.
20321
20322 2002-04-25 Gerd Moellmann <gerd@gnu.org>
20323
20324 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
20325 cursor on a stretch glyph has a width that depends on
20326 x_stretch_cursor_p.
20327
20328 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20329
20330 * abbrev.c (abbrev-start-location): Doc fix.
20331
20332 * indent.c (Fvertical_motion): Fix last change.
20333
20334 2002-04-25 Gerd Moellmann <gerd@gnu.org>
20335
20336 * indent.c (Fvertical_motion): Move to the start of the line
20337 containing PT before moving up or down.
20338
20339 2002-04-24 Gerd Moellmann <gerd@gnu.org>
20340
20341 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
20342 case of writing a whole row, more or less analogous to the case of
20343 writing only parts of a row.
20344
20345 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
20346 0 for NO_CURSOR.
20347
20348 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
20349
20350 2002-04-23 Colin Walters <walters@verbum.org>
20351
20352 * buffer.c (syms_of_buffer): Doc fix.
20353
20354 2002-04-23 Gerd Moellmann <gerd@gnu.org>
20355
20356 * xterm.c (notice_overwritten_cursor): Handle the special case
20357 of the cursor being in the first blank non-text line at the
20358 end of a window.
20359
20360 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
20361 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
20362 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
20363 bar cursors only, to make phys_cursor_width contain what its name
20364 suggests.
20365 (notice_overwritten_cursor): Consider the cursor image erased if
20366 the output area intersects the cursor image in y-direction.
20367
20368 2002-04-23 Simon Marshall <simon@gnu.org>
20369
20370 * xfns.c (x_set_mouse_color): Change default for cross_cursor
20371 to XC_hand2.
20372
20373 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20374
20375 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
20376
20377 2002-04-22 Kim F. Storm <storm@cua.dk>
20378
20379 * textprop.c (remove_properties): Fixed trap for malformed plist.
20380
20381 2002-04-22 Richard M. Stallman <rms@gnu.org>
20382
20383 * cmds.c (Fend_of_line): Handle intangible text in mid line.
20384
20385 * window.c (make_window): Initialize height_fixed_p,
20386 last_cursor_off_p, and p->cursor_off_p slots.
20387
20388 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20389
20390 * fns.c (use-dialog-box): Doc fix.
20391
20392 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20393
20394 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
20395 variables `row', `i' and `area'.
20396 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
20397 toolkit library.
20398
20399 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
20400
20401 * xfaces.c (clear_font_table): Don't free the default font of
20402 a frame even if it's on another display.
20403 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
20404 that could be Qt.
20405
20406 2002-04-19 Juanma Barranquero <lektu@terra.es>
20407
20408 * indent.c (Fmove_to_column): Remove unused local variable
20409 `next_boundary_byte'.
20410 (current_column_1): Likewise.
20411
20412 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
20413
20414 * msdos.c (Qhbar): New variable.
20415 (syms_of_msdos): Intern and staticpro it.
20416 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
20417 cursor type.
20418
20419 2002-04-19 Dave Lambert <dlambert@acm.org>
20420
20421 Theses change implement an underscore-like (`hbar') cursor.
20422
20423 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
20424
20425 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
20426 Handle the `hbar' cursor type.
20427 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
20428
20429 * xfns.c (Qhbar): New variable.
20430 (syms_of_xfns): Intern and staticpro it.
20431 (x_specified_cursor_type): Handle `hbar' cursor.
20432
20433 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
20434 not defined.
20435
20436 2002-04-18 Richard M. Stallman <rms@gnu.org>
20437
20438 * textprop.c (remove_properties): New arg LIST allows scanning
20439 either a list or a plist.
20440 (interval_has_some_properties_list): New function, like
20441 interval_has_some_properties using list instead of plist.
20442 All callers changed.
20443 (Fremove_list_of_text_properties): New function.
20444 (syms_of_textprop): Defsubr it.
20445
20446 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
20447
20448 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
20449
20450 2002-04-17 Juanma Barranquero <lektu@terra.es>
20451
20452 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
20453
20454 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
20455
20456 * window.c (coordinates_in_window): Don't report on margin area
20457 if its width is zero.
20458
20459 2002-04-16 Jason Rumney <jasonr@gnu.org>
20460
20461 * w32fns.c (Fx_file_dialog): Decode file name before using.
20462
20463 * w32term.c (construct_drag_n_drop): Likewise.
20464
20465 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
20466
20467 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
20468 store load-history in pure space.
20469
20470 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
20471
20472 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
20473
20474 * xterm.c (Qlatin_1, Qutf_8): New vars.
20475 (syms_of_xterm): Initialize them.
20476 (XTread_socket): Eliminate incorrect optimization that tried to avoid
20477 decoding the output of X*LookupString.
20478 Always use latin-1 to decode the output of XLookupString.
20479 Try Xutf8LookupString if XmbLookupString failed.
20480
20481 * region-cache.c (new_region_cache): Use BEG.
20482
20483 2002-04-16 Gerd Moellmann <gerd@gnu.org>
20484
20485 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
20486 configuration files.
20487 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
20488 returns 0.
20489
20490 2002-04-15 Andreas Schwab <schwab@suse.de>
20491
20492 * config.in: Regenerated using autoheader.
20493
20494 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
20495 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
20496 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
20497 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
20498 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
20499 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
20500 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
20501 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
20502 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
20503 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
20504 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
20505 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
20506 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
20507 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
20508 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
20509 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
20510 STACK_DIRECTION, now set by autoconf.
20511
20512 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20513
20514 * dispnew.c (marginal_area_string): Sort arguments.
20515
20516 * dispextern.h (marginal_area_string): Add prototype.
20517
20518 2002-04-13 Richard M. Stallman <rms@gnu.org>
20519
20520 * fileio.c (Finsert_file_contents):
20521 Don't call temp_output_buffer_setup--do just part, by hand.
20522
20523 * coding.c (run_pre_post_conversion_on_str):
20524 Don't call temp_output_buffer_setup--do just part, by hand.
20525
20526 * keyboard.c (command_loop_1): Don't call start_hourglass
20527 or cancel_hourglass when executing a macro.
20528
20529 * marker.c (count_markers): New function.
20530
20531 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
20532 grow without limit. Move recently used elements to the front.
20533
20534 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
20535
20536 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
20537
20538 2002-04-12 Gerd Moellmann <gerd@gnu.org>
20539
20540 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
20541 rows marginal areas.
20542 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
20543 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
20544
20545 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
20546
20547 2002-04-12 Dave Love <fx@gnu.org>
20548
20549 * dispnew.c (marginal_area_string): New.
20550
20551 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
20552 (Qleft_margin, Qright_margin): Declare.
20553 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
20554
20555 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
20556 note_mode_line_highlight and extended.
20557
20558 * keyboard.c (Qleft_margin, Qright_margin): Declare.
20559 (make_lispy_event): Deal with mouse events in margins.
20560
20561 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
20562
20563 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
20564
20565 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
20566 than deactivating the mark if tmm is set to `lambda'.
20567 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
20568 Use a single event for HELP_EVENT.
20569 (Fexecute_extended_command): Save last_point_position.
20570
20571 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20572
20573 * lisp.h (Fpropertize): Add prototype.
20574
20575 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
20576
20577 2002-04-10 Colin Walters <walters@verbum.org>
20578
20579 * config.in: Add HAVE_SHARED_GAME_DIR.
20580
20581 * callproc.c (Vgame_score_directory): New variable.
20582 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
20583
20584 2002-04-10 Richard M. Stallman <rms@gnu.org>
20585
20586 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
20587
20588 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
20589
20590 * minibuf.c (read_minibuf): Use empty_string.
20591 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
20592 Short-circuit the search as soon as it "failed".
20593 (Fall_completions): Allow lambda forms and lists of strings for alist.
20594 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
20595 when require_match is nil.
20596 (Ftest_completion): Rename from `test_completion' and export to elisp.
20597 Call the predicate also when alist is a list.
20598 Obey Vcompletion_regexp_list.
20599 (do_completion, Fminibuffer_complete_and_exit): Use it.
20600 (Fassoc_string): Rename from `assoc_for_completion'.
20601 Allow list of strings as well and export to elisp.
20602
20603 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
20604
20605 * puresize.h (BASE_PURESIZE): Increase to 900KB.
20606
20607 2002-04-08 Juanma Barranquero <lektu@terra.es>
20608
20609 * w32.c (sys_accept): Don't hide variable `s'.
20610
20611 2002-04-05 Gerd Moellmann <gerd@gnu.org>
20612
20613 * callint.c (Fcall_interactively): Use INTEGERP instead of
20614 NUMBERP for checking Vhistory_length.
20615
20616 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20617
20618 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
20619 Doc fix to reflect it.
20620
20621 2002-04-04 Richard M. Stallman <rms@gnu.org>
20622
20623 * xdisp.c (display_mode_element): New arg RISKY.
20624 Disregard text props found or specified within a variable
20625 that isn't marked risky-local-variable.
20626 (Qrisky_local_variable): New variable.
20627 (syms_of_xdisp): Init and staticpro it.
20628
20629 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
20630
20631 * undo.c (record_point): New fun.
20632 (record_delete, record_insert): Use it.
20633
20634 2002-04-03 Juanma Barranquero <lektu@terra.es>
20635
20636 * doc.c (Fdocumentation): Add missing parentheses.
20637 (Fdocumentation_property): Likewise.
20638
20639 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
20640
20641 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
20642 data is 0, just return nil.
20643
20644 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
20645
20646 * msdos.c (syms_of_msdos): Fix last change with
20647 mouse_autoselect_window.
20648
20649 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20650
20651 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
20652 mouse_autoselect_window.
20653
20654 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
20655
20656 * keyboard.c (make_lispy_event): Handle unknown keysyms together
20657 with system-specific keysyms. Use it also for unknown function keys.
20658
20659 * doc.c (reread_doc_file): Return whether reload was attempted.
20660 (Fdocumentation, Fdocumentation_property): Don't try to reload
20661 if the doc is 0 and only ask once.
20662
20663 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
20664
20665 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
20666
20667 * keyboard.c (read_char): If the event was Qselect_window,
20668 restore timer_idleness_start_time to its previous value.
20669
20670 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
20671
20672 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
20673
20674 * region-cache.c (new_region_cache): Use BEG.
20675
20676 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
20677 Use BEG and BEG_BYTE.
20678
20679 * doc.c (get_doc_string): Return nil if the location is wrong.
20680 (reread_doc_file): New fun.
20681 (Fdocumentation, Fdocumentation_property):
20682 Call it if get_doc_string fails.
20683 (Fsnarf_documentation): Make it work for a dumped Emacs.
20684
20685 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
20686 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
20687
20688 * charset.c (Fstring): Allow 0 arguments.
20689
20690 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
20691
20692 * process.c (DATAGRAM_CONN_P, list_processes_1)
20693 (Fprocess_datagram_address, Fset_process_datagram_address)
20694 (Fset_network_process_options, server_accept_connection):
20695 Fix some int/Lisp_Object confusions (thank you union types).
20696
20697 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20698
20699 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
20700
20701 * w32term.c: Likewise.
20702 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
20703
20704 * keyboard.c (Qselect_window): New symbol.
20705 (head_table): Use it.
20706 (keys_of_keyboard): Bound select-window event to handle-select-window.
20707 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
20708
20709 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
20710 (last_window): New variable.
20711 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
20712 (note_mouse_movement): Remove reimplemented code in #if 0.
20713 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
20714 Emacs windows.
20715
20716 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
20717
20718 2002-03-31 Gerd Moellmann <gerd@gnu.org>
20719
20720 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
20721 Callers changed.
20722
20723 2002-03-30 Richard M. Stallman <rms@gnu.org>
20724
20725 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
20726 loop whenever it stops making progress.
20727
20728 * widget.c (set_frame_size): Don't call change_frame_size.
20729
20730 2002-03-30 Gerd Moellmann <gerd@gnu.org>
20731
20732 * dispnew.c (direct_output_for_insert):
20733 Call mark_window_display_accurate.
20734
20735 2002-03-29 Jason Rumney <jasonr@gnu.org>
20736
20737 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
20738
20739 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
20740
20741 * Makefile.in (lread.o): Depend on coding.h.
20742
20743 * lread.c (openp, Fload): Encode the file name before passing it
20744 to `stat', `access', and `emacs_open'.
20745 (openp): GCPRO the encoded file name. Don't recompute Lisp
20746 strings unnecessarily.
20747
20748 2002-03-29 Kim F. Storm <storm@cua.dk>
20749
20750 * fns.c (Flax_plist_put): Doc fix.
20751
20752 2002-03-28 Miles Bader <miles@gnu.org>
20753
20754 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
20755
20756 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20757
20758 * process.c (set-network-process-options): Add usage.
20759 (make-network-process): Doc fix.
20760
20761 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
20762
20763 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
20764
20765 2002-03-26 Richard M. Stallman <rms@gnu.org>
20766
20767 * fns.c (Fsubstring_no_properties): New function.
20768 (Flax_plist_get, Flax_plist_put): New functions.
20769 (syms_of_fns): defsubr them.
20770
20771 * xdisp.c (update_menu_bar): Test only update_mode_lines;
20772 don't test or alter w->update_mode_line.
20773
20774 * window.c (Fdisplay_buffer): Doc fix.
20775
20776 2002-03-24 Richard M. Stallman <rms@gnu.org>
20777
20778 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
20779
20780 2002-03-24 Gerd Moellmann <gerd@gnu.org>
20781
20782 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
20783 (Fdefmacro): Handle `(declare ...)'.
20784 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
20785 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
20786
20787 2002-03-24 Jason Rumney <jasonr@gnu.org>
20788
20789 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
20790 (xbm_file_p): Add prototypes.
20791 (xbm_format, xbm_image_p): Sync with xfns.c.
20792 (reflect_byte): New function.
20793 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
20794 (xbm_load_image): Create bitmaps with a depth of 1.
20795 (init_xfns): Enable XBM images.
20796
20797 2002-03-23 Jason Rumney <jasonr@gnu.org>
20798
20799 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
20800 correctly. Do not pass up_modifier to keyboard buffer.
20801
20802 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
20803
20804 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
20805
20806 * Makefile.in (bootstrapclean): New target.
20807 (bootstrap-temacs, bootstrap-doc): Remove.
20808 (bootstrap-emacs): Use a bog-standard `temacs'.
20809 Don't bother to build a DOC file.
20810
20811 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
20812
20813 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
20814 in temacs even if !CANNOT_DUMP.
20815 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
20816
20817 * alloc.c (check_pure_size): Only output a warning.
20818
20819 2002-03-22 Jason Rumney <jasonr@gnu.org>
20820
20821 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
20822 supported.
20823
20824 * w32term.c (zv_bits): Declare as short, for word alignment.
20825 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
20826 (syms_of_w32term): Define x-use-underline-position-properties.
20827
20828 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
20829 (clear_image_cache): Block input, fix logic, clear matrices in
20830 all frames that share this cache.
20831
20832 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
20833
20834 * emacs.c (main): Update the Copyright year in the blurb printed
20835 by "emacs --version".
20836
20837 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
20838
20839 * xterm.c (XTread_socket): If XK_ISO_Lock and
20840 XK_ISO_Last_Group_Lock are defined, handle keysyms between
20841 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
20842
20843 2002-03-21 Kim F. Storm <storm@cua.dk>
20844
20845 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
20846 menu-bar bindings in keymap and local-map properties _are_ used.
20847 But try keymap property first in accordance with 2002-01-03 patch.
20848 Added comment describing why this is not always reliable.
20849 (tool_bar_items): Ditto for tool-bar.
20850
20851 2002-03-21 Jason Rumney <jasonr@gnu.org>
20852
20853 * w32fns.c (x_clear_image_1): Disable color table code.
20854
20855 2002-03-21 Kim F. Storm <storm@cua.dk>
20856
20857 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
20858 removed the wrong version of the DEFUN macro; fixed it.
20859
20860 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
20861 Fmember rather than Fmemq).
20862 (Fprovide): Check that subfeatures is a list.
20863
20864 * process.c (QCfeature, QCdatagram): Removed variables.
20865 (QCtype, Qdatagram): New variables.
20866 (network_process_featurep): Removed function.
20867 (Fmake_network_process): Removed :feature check.
20868 Use :type 'datagram instead of :datagram t to create a datagram
20869 socket. This allows us to add other connection types (e.g. raw
20870 sockets) later in a consistent manner.
20871 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
20872 supported subfeatures for feature make-network-process.
20873 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
20874 Intern and staticpro QCtype and Qdatagram.
20875 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
20876
20877 * xfns.c (QCtype): Remove duplicate declaration and
20878 initialization (is now declared in process.c).
20879
20880 * w32fns.c (QCtype): Remove duplicate declaration and
20881 initialization (is now declared in process.c).
20882
20883 2002-03-21 Richard M. Stallman <rms@gnu.org>
20884
20885 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
20886 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
20887 when jumping to `fail' to avoid undoing reg changes in the
20888 last iteration of the loop.
20889 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
20890
20891 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
20892 Depend on process.h.
20893
20894 2002-03-20 Jason Rumney <jasonr@gnu.org>
20895
20896 Most of the following changes are still conditional on HAVE_IMAGES
20897 which is not set by default on Windows.
20898
20899 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
20900
20901 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
20902 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
20903 (four_corners_best, x_clear_image_1, x_clear_image)
20904 (x_alloc_image_color, postprocess_image)
20905 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
20906 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
20907 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
20908
20909 * w32gui.h (struct XImage): Define.
20910
20911 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
20912 extract mouse co-ordinates.
20913
20914 2002-03-20 Jason Rumney <jasonr@gnu.org>
20915
20916 * w32.c (init_winsock): Dynamically load new server and UDP
20917 socket functions.
20918 (socket_to_fd): New function.
20919 (sys_socket): Use it.
20920 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
20921 (sys_recvfrom, sys_sendto): New wrapper functions.
20922
20923 * process.c (QCfamily, QCfilter): Remove duplicate declaration
20924 and initialization.
20925
20926 * makefile.w32-in (LIBS): Remove $(WSOCK32).
20927
20928 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
20929
20930 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
20931 Don't use "sun" as a variable, it's a predefined constant on Sun
20932 machines.
20933
20934 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20935
20936 * bytecode.c (Fbyte_code): Revert last change.
20937
20938 2002-03-19 Kim F. Storm <storm@cua.dk>
20939
20940 * makefile.w32-in (LIBS): Add $(WSOCK32).
20941 From David Ponce <dponce@voila.fr>.
20942
20943 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20944
20945 * process.c (wait_reading_process_input): Move variables `pname'
20946 and `pnamelen' down where they are used.
20947
20948 * bytecode.c (Fbyte_code): Discard unused computed value to
20949 prevent gcc warning.
20950
20951 * lisp.h (Fplist_member): Add prototype.
20952
20953 2002-03-18 Kim F. Storm <storm@cua.dk>
20954
20955 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
20956 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
20957
20958 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
20959 Remove explicit GNU_LINUX settings for datagram support.
20960
20961 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20962
20963 * process.c (Fmake_network_process): Remove unused variable `sa'.
20964 Doc fix. Add usage:.
20965 (set_socket_options): Remove unused variables `optnum' and `opttype'.
20966
20967 2002-03-17 Richard M. Stallman <rms@gnu.org>
20968
20969 * xdisp.c (cursor_type_changed): New variable.
20970 (redisplay_internal): Redisplay all windows if cursor_type_changed.
20971 Clear it when clearing windows_or_buffers_changed.
20972 (try_cursor_movement, redisplay_window, try_window_id)
20973 (try_window_reusing_current_matrix): Test cursor_type_changed
20974 along with windows_or_buffers_changed.
20975
20976 * window.h (cursor_type_changed): New variable.
20977
20978 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
20979 not update_mode_lines, and always set it to 1.
20980
20981 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
20982 if no frames needed redrawing.
20983
20984 2002-03-17 Kim F. Storm <storm@cua.dk>
20985
20986 The following changes add support for network server processes,
20987 datagram connections, and local (unix) sockets.
20988
20989 * process.h (struct Lisp_Process): New member log.
20990 Doc fix: Member command used to indicate stopped network process.
20991 Doc fix: Member childp contains plist for network process.
20992 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
20993
20994 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
20995 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
20996 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
20997 New variables.
20998 (NETCONN1_P): New macro.
20999 (DATAGRAM_SOCKETS): New conditional symbol.
21000 (datagram_address): New array.
21001 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
21002 (status_message): Use concat3.
21003 (Fprocess_status): Add `listen' status to doc string. Return `stop'
21004 for a stopped network process.
21005 (Fset_process_buffer): Update contact plist for network process.
21006 (Fset_process_filter): Ditto. Don't enable input for stopped
21007 network processes. Server must listen, even if filter is t.
21008 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
21009 New functions.
21010 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
21011 (Fprocess_contact): Added KEY argument. Handle datagrams.
21012 (list_processes_1): Optionally show only processes with the query
21013 on exit flag set. Dynamically adjust column widths. Omit tty
21014 column if not needed. Report stopped network processes.
21015 Identify server and datagram network processes.
21016 (Flist_processes): New optional arg `query-only'.
21017 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
21018 (conv_lisp_to_sockaddr, set_socket_options)
21019 (network_process_featurep, unwind_request_sigio): New helper functions.
21020 (Fprocess_datagram_address, Fset_process_datagram_address):
21021 (Fset_network_process_options): New lisp functions.
21022 (Fopen_network_stream): Removed. Now defined in simple.el.
21023 (Fmake_network_process): New lisp function. Code is based on previous
21024 Fopen_network_stream, but heavily reworked with new property list based
21025 argument list, support for datagrams, server processes, and local
21026 sockets in addition to old client-only functionality.
21027 (server_accept_connection): New function.
21028 (wait_reading_process_input): Use it to handle incoming connects.
21029 Do not enable input on a new connection if process is stopped.
21030 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
21031 (send_process): Handle datagram sockets.
21032 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
21033 network process is indicated by setting command field to t .
21034 (Fprocess_send_eof): No-op if datagram connection.
21035 (Fstatus_notify): Don't read input for a stream server socket or a
21036 stopped network process.
21037 (init_process): Initialize datagram_address array.
21038 (syms_of_process): Intern and staticpro new variables, defsubr new
21039 functions.
21040
21041 2002-03-16 Jason Rumney <jasonr@gnu.org>
21042
21043 * w32fns.c (w32_to_all_x_charsets): Return correct type in
21044 startup case.
21045
21046 2002-03-16 Richard M. Stallman <rms@gnu.org>
21047
21048 * xdisp.c (redisplay_internal, redisplay_windows):
21049 Use list_of_error to call internal_condition_case_1.
21050 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
21051 so as to catch all errors with no possibility of debugger redisplay.
21052 (list_of_error): New variable.
21053 (syms_of_xdisp): Init and staticpro it.
21054
21055 * print.c (print_object): Delete `\ ' from printed rep of frame.
21056
21057 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
21058
21059 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
21060 until its implementation is fixed.
21061
21062 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21063
21064 * xfns.c (png_load): Remove unused variable `gamma_str'.
21065
21066 2002-03-14 Richard M. Stallman <rms@gnu.org>
21067
21068 * xfns.c (x_real_positions): Handle failure in XQueryTree.
21069
21070 2002-03-14 Miles Bader <miles@gnu.org>
21071
21072 * intervals.c (adjust_for_invis_intang): New function.
21073 (set_point_both): Use `adjust_for_invis_intang' to do most of the
21074 work for dealing with invisible+intangible regions. Do so before
21075 and after both forward and backward movements, to handle both
21076 front-sticky and rear-sticky cases.
21077 * textprop.c (text_property_stickiness): Function moved here from
21078 `editfns.c'.
21079 * intervals.h (text_property_stickiness): New declaration.
21080 * editfns.c (char_property_eq): Function removed.
21081 (text_property_stickiness): Function moved to `textprop.c'.
21082
21083 2002-03-13 Jason Rumney <jasonr@gnu.org>
21084
21085 * config.in: Add STRFTIME_NO_POSIX2.
21086
21087 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
21088 and %OX when underlying strftime does not.
21089
21090 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
21091
21092 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
21093 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
21094 line) to avoid annoying flicker.
21095 (xm_scroll_callback): Get rid of the now unnecessary kludge.
21096 (XTread_socket): Mark it static.
21097
21098 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
21099
21100 2002-03-13 Kim F. Storm <storm@cua.dk>
21101
21102 * puresize.h (BASE_PURESIZE): Increase to 775000.
21103
21104 2002-03-12 Juanma Barranquero <lektu@terra.es>
21105
21106 * editfns.c (syms_of_editfns): Fix typo.
21107
21108 2002-03-12 Gerd Moellmann <gerd@gnu.org>
21109
21110 * xsmfns.c: Include stdio.h because termhooks.h needs it.
21111 Include termopt.h for interrupt_input.
21112
21113 2002-03-11 Andreas Schwab <schwab@suse.de>
21114
21115 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
21116
21117 2002-03-11 Gerd Moellmann <gerd@gnu.org>
21118
21119 * xterm.c (note_mouse_movement): Put code for
21120 x_autoselect_window_p in #if 0.
21121
21122 * lread.c (Fload): Don't assume that message_with_string uses the
21123 string it is given like a C string.
21124
21125 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21126
21127 * xterm.h (x_session_check_input, x_session_initialize): Declare.
21128
21129 * xterm.c (XTread_socket): Add call to x_session_check_input and
21130 x_session_have_connection.
21131 (x_initialize): Add call to x_session_initialize.
21132
21133 * termhooks.h (enum event_kind): Add save_session_event.
21134
21135 * keyboard.c: Add Emacs event save_session_event.
21136
21137 * emacs.c (main): Add call to syms_of_xsmfns.
21138
21139 * lisp.h (syms_of_xsmfns): Declare extern.
21140
21141 * config.in: Add HAVE_X_SM.
21142
21143 * Makefile.in (LIBXT): Add -lSM -lICE
21144 if HAVE_X_SM and not USE_X_TOOLKIT.
21145 (XOBJ): New file xsmfns.c added.
21146
21147 * xsmfns.c: New file for X session management.
21148
21149 2002-03-09 Jason Rumney <jasonr@gnu.org>
21150
21151 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
21152 read-only when setting modified time.
21153
21154 2002-03-08 Gerd Moellmann <gerd@gnu.org>
21155
21156 * xdisp.c (move_it_vertically_backward): At the end of the function,
21157 when moving forward by lines, treat terminal frames specially.
21158
21159 * keyboard.c (echo_char): Make sure to add a separator between
21160 keys even if echo_dash hasn't been called.
21161
21162 * xdisp.c: Use new string macros.
21163 (update_echo_area): Pass number of bytes to message3 instead of
21164 number of chars.
21165 (set_message_1): Don't access a string's size_byte directly.
21166 (decode_mode_spec_coding): Use number of bytes of eoltype string
21167 instead number of chars.
21168
21169 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
21170
21171 2002-03-08 Juanma Barranquero <lektu@terra.es>
21172
21173 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
21174 24-bit.
21175
21176 2002-03-06 Jason Rumney <jasonr@gnu.org>
21177
21178 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
21179
21180 2002-03-06 Gerd Moellmann <gerd@gnu.org>
21181
21182 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
21183 (cancel_echoing, echo_length, echo_truncate): Changed to
21184 work with new kboard definition.
21185 (echo_now): Use message3_nolog instead of message2_nolog.
21186
21187 * alloc.c (mark_kboards): Mark echo_string.
21188
21189 * keyboard.h (ECHOBUFSIZE): Removed.
21190 (struct kboard): Member echoptr removed, member echobuf renamed
21191 to echo_string.
21192
21193 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
21194 message3 instead of message2 to display the message using STRING's
21195 text properties.
21196
21197 2002-03-05 Andreas Schwab <schwab@suse.de>
21198
21199 * xdisp.c (hscroll_margin): Change to EMACS_INT.
21200
21201 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
21202
21203 * frame.c (default-frame-alist): Explain that setting it doesn't
21204 affect existing frames.
21205
21206 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
21207
21208 * indent.c (skip_invisible): Fix my brain fart.
21209
21210 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
21211
21212 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
21213
21214 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
21215 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
21216 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
21217 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
21218 and variables to use EMACS_INT instead of just int.
21219
21220 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
21221
21222 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
21223
21224 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
21225 environment, pass it down with corrected value.
21226
21227 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21228
21229 * lread.c (read_filtered_event): Do not call start_hourglass
21230 before returning.
21231
21232 2002-03-04 Juanma Barranquero <lektu@terra.es>
21233
21234 * w32term.c (x_display_and_set_cursor): Fix typo.
21235
21236 2002-03-03 Richard M. Stallman <rms@gnu.org>
21237
21238 * fileio.c (Fmake_temp_name): Doc fix.
21239
21240 2002-03-03 Gary Wong <gtw@gnu.org>
21241
21242 * termcap.c [!emacs]: Replace ospeed for building standalone
21243 libtermcap, for binary compatibility.
21244
21245 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
21246
21247 2002-03-03 Richard M. Stallman <rms@gnu.org>
21248
21249 * xrdb.c (file_p): Rename arg `path' to `filename'.
21250
21251 * abbrev.c (Fexpand_abbrev): Increment plist as use count
21252 only if it is an integer.
21253
21254 * xfns.c (png_load): Set screen_gamma based on f->gamma.
21255 If png_get_sRGB gives an answer, call png_set_gamma
21256 using the default image gamma value.
21257
21258 * lread.c (read1): When reading from a file, default string to
21259 multibyte only if it has some multibyte characters.
21260
21261 * print.c (print_object): Output multibyte chars 128...255
21262 using \x even if ! print_escape_multibyte.
21263
21264 * xdisp.c (display_mode_element): Move the places where
21265 bytepos, charpos, this, and lisp_string are set.
21266 Use lisp_string to set bytepos.
21267
21268 * xdisp.c (redisplay_internal):
21269 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
21270
21271 * xdisp.c (display_mode_element): Merge properties specified with
21272 :propertize onto those that come with the string.
21273
21274 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
21275
21276 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
21277 automatic-hscrolling. Users changed.
21278 <hscroll-margin>: Renamed from automatic-hscroll-margin.
21279 Users changed.
21280 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
21281
21282 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
21283
21284 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
21285
21286 2002-03-02 Kim F. Storm <storm@cua.dk>
21287
21288 * window.c (Fminibuffer_selected_window): New function.
21289 (syms_of_window): Defsubr it.
21290
21291 2002-03-01 Kim F. Storm <storm@cua.dk>
21292
21293 * window.h (struct window): New member phys_cursor_width.
21294
21295 * window.c (make_window, replace_window): Init phys_cursor_width.
21296
21297 * xterm.c (x_display_and_set_cursor): Blink box cursor using
21298 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
21299
21300 * w32term.c (x_display_and_set_cursor): Blink box cursor using
21301 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
21302
21303 * lisp.h (GCPRO6): New macro.
21304
21305 * process.c (Fopen_network_stream): Use GCPRO6.
21306
21307 2002-03-01 Kim F. Storm <storm@cua.dk>
21308
21309 * process.c (Qconnect, Qfailed): New variables.
21310 (syms_of_process): Intern and staticpro them.
21311 (Fprocess_status): Document connect and failed return values.
21312 [NON_BLOCKING_CONNECT]: New conditional.
21313 (connect_wait_mask, num_pending_connects): New variables.
21314 (status_message): Convert Qfailed status.
21315 (Fopen_network_stream): Added support for non-blocking connect.
21316 New optional args: filter, sentinel, non_blocking. Doc updated.
21317 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
21318 (deactivate_process): Handle pending non-blocking connect.
21319 (wait_reading_process_input): Poll for status of non-blocking
21320 connects. Exec sentinel directly when connect succeeds.
21321 (status_notify): Don't read process output if not yet connected.
21322
21323 2002-02-28 Kim F. Storm <storm@cua.dk>
21324
21325 * window.c (minibuf_selected_window): Renamed from
21326 Vminibuf_selected_window. Users changed.
21327 (syms_of_window): Staticpro it.
21328
21329 2002-02-26 Kim F. Storm <storm@cua.dk>
21330
21331 The following changes add a new Vminibuf_selected_window variable
21332 which is similar to Vminibuf_scroll_window, but which is only set
21333 on entry to the minibuffer (from a non-minibuffer window):
21334
21335 * window.c (Vminibuf_selected_window): New variable.
21336 (struct save_window_data): New member minibuf_selected_window.
21337 (Fset_window_configuration): Restore Vminibuf_selected_window.
21338 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
21339 Set minibuf_scroll_window member to nil if minibuf_level is 0.
21340 (compare_window_configurations): Compare minibuf_selected_window.
21341
21342 * window.h (Vminibuf_selected_window): Declare extern.
21343
21344 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
21345 entry to minibuffer or on entry from a non-minibuffer window.
21346
21347 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
21348 Vminibuf_selected_window instead of Vminibuf_scroll_window.
21349
21350 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
21351 instead of Vminibuf_scroll_window when deciding in which window
21352 the region should be highlighted. Consequently, the region remains
21353 highlighteded even when a completion buffer is also displayed.
21354
21355 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
21356
21357 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
21358
21359 * xselect.c (Qcompound_text_with_extensions): Renamed from
21360 Qcompound_text_no_extensions.
21361 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
21362
21363 2002-02-26 Juanma Barranquero <lektu@terra.es>
21364
21365 * w32proc.c (syms_of_ntproc): Doc fix.
21366
21367 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21368
21369 * intervals.h: Include "dispextern.h" unconditionally.
21370
21371 2002-02-24 Jason Rumney <jasonr@gnu.org>
21372
21373 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
21374 and disp-table.elc.
21375 (lisp): Add emacs-lisp/backquote.elc.
21376
21377 2002-02-24 Kim F. Storm <storm@cua.dk>
21378
21379 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
21380 The validation of the event type was too strict as it didn't
21381 allow string events; buffer names are used in bindings for
21382 menu-bar-select-buffer (see `menu-bar-update-buffers').
21383
21384 2002-02-23 Kim F. Storm <storm@cua.dk>
21385
21386 The following changes rework my patch of 2002-02-06 which
21387 added command remapping by entering the commands directly into
21388 the keymaps. Now, command remapping uses an explicit `remap'
21389 prefix in the keymaps, i.e. [remap COMMAND].
21390
21391 * keymap.c (Qremap, remap_command_vector): New variables.
21392 (is_command_symbol): Remove function.
21393 (Fdefine_key): No longer accept a symbol for KEY.
21394 Added validation of [remap COMMAND] argument for KEY.
21395 The DEF is no longer required to be a symbol when remapping a command.
21396 (Fremap_command): New function to remap command through keymaps.
21397 (Flookup_key): Perform command remapping initiated by
21398 Fremap_command directly for speed.
21399 (Fkey_binding): Use Fremap_command for command remapping.
21400 (where_is_internal): Handle new command remapping representation.
21401 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
21402 staticpro them. Defsubr Fremap_command.
21403
21404 * keymap.h (Fremap_command): Declare extern.
21405 (is_command_symbol): Remove extern.
21406
21407 * keyboard.c (command_loop_1): Use Fremap_command for command
21408 remapping; now try command remapping for all symbols.
21409
21410 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
21411
21412 * coding.h (run_pre_post_conversion_on_str): Add prototype.
21413
21414 2002-02-23 Jason Rumney <jasonr@gnu.org>
21415
21416 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
21417 on the string before encoding it.
21418 (Fw32_get_clipboard_data): Run post-read-conversion on the string
21419 after decoding it.
21420
21421 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
21422
21423 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21424
21425 * w32term.c (enter_timestamp): Remove unused static variable to
21426 prevent warning.
21427
21428 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
21429
21430 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
21431
21432 * w16select.c (Fw16_get_clipboard_data): Fix last change.
21433
21434 * xselect.c (selection_data_to_lisp_data): Fix last change.
21435
21436 2002-02-22 Jason Rumney <jasonr@gnu.org>
21437
21438 * w32term.h (struct w32_output): New member menu_command_in_progress.
21439
21440 * w32menu.c (menubar_selection_callback): Free the menu and
21441 clear the menu_command_in_progress flag.
21442
21443 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
21444 (menu_free_timer): New variable.
21445 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
21446 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
21447 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
21448 menu command is in progress.
21449 <WM_COMMAND>: Set the menu_command_in_progress flag.
21450 Kill any menu_free_timer that is running.
21451
21452 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
21453 Call ExtTextOutA rather than ExtTextOut.
21454
21455 2002-02-22 Eli Zaretskii <eliz@gnu.org>
21456
21457 * puresize.h (BASE_PURESIZE): Increase to 755000.
21458
21459 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
21460
21461 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
21462 on the string before encoding it.
21463 (Fw16_get_clipboard_data): Run post-read-conversion on the string
21464 after decoding it.
21465
21466 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
21467
21468 Support for ICCCM Extended Segments in X selections:
21469
21470 * xselect.c <Qcompound_text_no_extensions>: New variable.
21471 (syms_of_xselect): Intern and staticpro it.
21472 (selection_data_to_lisp_data): Run post-read-conversion on decoded
21473 selection text.
21474 (lisp_data_to_selection_data): If next-selection-coding-system is
21475 compound-text-no-extensions, set the type of selection to be
21476 compound-text.
21477
21478 * xterm.h (x_encode_text): Update prototype.
21479
21480 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
21481 callers changed. If SELECTIONP is non-zero, run the
21482 pre-write-conversion function before encoding the selection text.
21483
21484 2002-02-21 Kim F. Storm <storm@cua.dk>
21485
21486 * frame.c (syms_of_frame): Change mouse-highlight default to t.
21487
21488 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
21489 Correct composing of language-change event.
21490
21491 2002-02-20 Kim F. Storm <storm@cua.dk>
21492
21493 * keyboard.c (menu_bar_items): Don't include keymap or local-map
21494 bindings at PT when building menu (the menu is not updated often
21495 enough for this to work reliable).
21496 (tool_bar_items): Likewise.
21497 (current_active_maps): Removed unused (and buggy) function.
21498
21499 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21500
21501 * xfns.c (gif_load): Use correct width and height for GIF images.
21502
21503 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
21504
21505 * floatfns.c (Fatan): Accept an optional second arg and call
21506 atan2 if passed 2 args.
21507
21508 2002-02-18 Jason Rumney <jasonr@gnu.org>
21509
21510 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
21511
21512 2002-02-17 Jason Rumney <jasonr@gnu.org>
21513
21514 * w32term.c (x_autoselect_window_p): New variable.
21515 (syms_of_w32term): DEFVAR_BOOL and initialize it.
21516 (note_mouse_movement): Use it.
21517
21518 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
21519
21520 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
21521
21522 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
21523 New variables.
21524 (syms_of_w32fns): Intern and staticpro them.
21525 (x_frame_parms) <"fullscreen">: New parameter.
21526 (x_fullscreen_move, x_set_fullscreen): New functions.
21527 (x_set_frame_parameters): Support Qfullscreen.
21528 (x_real_positions): Save x/y_pixels_diff frame params.
21529 (x_figure_window_size): Support full-screen frames.
21530 (Fx_create_frame): Default the fullscreen parameter.
21531
21532 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
21533 (x_fullscreen_adjust): New functions.
21534 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
21535 fullscreen. Call x_check_fullscreen_move, and set the
21536 want_fullscreen member of output_data.w32
21537 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
21538
21539 * w32term.h: New enum for FULLSCREEN_* constants.
21540 (struct w32_output): New members want_fullscreen, x_pixels_diff,
21541 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
21542 (x-fullscreen-adjust): New prototype.
21543
21544 2002-02-17 Kim F. Storm <storm@cua.dk>
21545
21546 * frame.c (Vmouse_highlight): New variable.
21547 (syms_of_frame): DEFVAR_LISP it.
21548
21549 * frame.h (Vmouse_highlight): Declare extern.
21550
21551 * xterm.h (struct x_display_info): Add mouse_face_hidden.
21552
21553 * xterm.c (disable_mouse_highlight): Removed variable.
21554 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
21555 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
21556 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
21557 and on after keyboard input.
21558 (x_term_init): Initialize mouse_face_hidden.
21559
21560 * msdos.h (struct display_info): Add mouse_face_hidden.
21561
21562 * msdos.c (disable_mouse_highlight): Removed variable.
21563 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
21564 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
21565 (internal_terminal_init): Initialize mouse_face_hidden.
21566 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
21567 and on after keyboard input.
21568
21569 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
21570
21571 * w32term.c (disable_mouse_highlight): Removed variable.
21572 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
21573 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
21574 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
21575 and on after keyboard input.
21576 (w32_initialize_display_info): Initialize mouse_face_hidden.
21577
21578 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
21579
21580 * msdos.c (last_mouse_window): New variable.
21581 (dos_rawgetc): Fix last change--if the mouse is in the same window
21582 as recorded in last_mouse_window, don't select this window.
21583
21584 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
21585
21586 * msdos.c (x_autoselect_window_p): New variable.
21587 (syms_of_msdos): Defvar it.
21588 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
21589 which the last mouse movement occured, unless it is already selected.
21590
21591 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
21592 New variables.
21593 (syms_of_xdisp): DEVFAR them.
21594 (hscroll_window_tree): Use automatic_hscroll_margin and
21595 Vautomatic_hscroll_step to compute the amount of window scrolling.
21596
21597 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21598
21599 * xterm.c (x-autoselect-window): New variable.
21600 (note_mouse_movement): Use it.
21601
21602 * keyboard.c: Do not include "systime.h" twice.
21603
21604 2002-02-15 Andreas Schwab <schwab@suse.de>
21605
21606 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
21607
21608 * alloc.c (NSTATICS): Increase to 1280.
21609
21610 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
21611
21612 * alloc.c (NSTATICS): Bump to 1026.
21613
21614 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
21615 (Vx_super_keysym): New variables.
21616 (syms_of_xterm): DEFVAR_LISP them.
21617 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
21618 variables to determine which keys to use for the various modifiers.
21619
21620 2002-02-13 Kim F. Storm <storm@cua.dk>
21621
21622 * window.c (Vmode_line_in_non_selected_windows): Removed.
21623 (mode_line_in_non_selected_windows): New variable.
21624 (syms_of_window): DEFVAR_BOOL it.
21625
21626 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
21627 Use mode_line_in_non_selected_windows.
21628 (mode_line_in_non_selected_windows): Declare extern.
21629 (Vmode_line_in_non_selected_windows): Removed extern.
21630
21631 2002-02-13 Richard M. Stallman <rms@gnu.org>
21632
21633 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
21634 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
21635 (Fclear_this_command_keys): Doc fixes.
21636
21637 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
21638 (update_face_from_frame_parameter): Increment face_change_count
21639 and windows_or_buffers_changed to force redisplay using changed faces.
21640
21641 * xdisp.c (QCpropertize): New variable.
21642 (mode_line_proptrans_alist): New variable.
21643 (display_mode_element): New arg PROPS; all calls changed.
21644 Implement this, for strings.
21645 Handle literal output of strings by sharing the
21646 main-line code for strings, using local var `literal'.
21647 Handle :propertize feature.
21648 (syms_of_xdisp): Initialze and staticpro QCpropertize and
21649 mode_line_proptrans_alist.
21650
21651 2002-02-11 Kim F. Storm <storm@cua.dk>
21652
21653 * window.c (Vmode_line_in_non_selected_windows): New variable.
21654 (syms_of_window): DEFVAR_LISP it.
21655
21656 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
21657 (CURRENT_MODE_LINE_FACE_ID): Use it.
21658 (Vmode_line_in_non_selected_windows): Declare extern.
21659
21660 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
21661 to get mode line face.
21662
21663 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
21664
21665 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
21666 variables; cus-start.el doesn't need them anymore.
21667
21668 2002-02-09 Kim F. Storm <storm@cua.dk>
21669
21670 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
21671 reduction. This fixes a display problem where stray newlines were
21672 inserted in the window (corrected by C-l). Clarified code (IMHO).
21673
21674 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
21675
21676 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
21677
21678 * xdisp.c (display_mode_lines): Fix last change.
21679
21680 2002-02-09 Jason Rumney <jasonr@gnu.org>
21681
21682 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
21683 match each other.
21684 (w32_load_system_font): Prevent Cleartype fonts from loading.
21685 (Fx_show_tip): Ensure tip frames are above other topmost windows.
21686
21687 2002-02-09 Kim F. Storm <storm@cua.dk>
21688
21689 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
21690 (CURRENT_MODE_LINE_HEIGHT): Use it.
21691 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
21692
21693 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
21694 (pos_visible_p, handle_face_prop): Likewise.
21695 (display_mode_lines): Likewise, but for the real selected window.
21696 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
21697
21698 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
21699 in non-selected windows.
21700 (realize_basic_faces): Realize it.
21701 (syms_of_term): Intern and staticpro it.
21702
21703 2002-02-08 Kim F. Storm <storm@cua.dk>
21704
21705 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
21706 Changed mail addresses to emacs-devel@gnu.org.
21707
21708 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
21709
21710 * fileio.c (Fsubstitute_in_file_name): If the file name includes
21711 ~user, and there's no such user, don't discard everything before ~user.
21712
21713 * floatfns.c (Fround): Doc fix.
21714
21715 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21716
21717 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
21718
21719 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
21720
21721 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
21722
21723 2002-02-07 Kim F. Storm <storm@cua.dk>
21724
21725 * keymap.c (where_is_internal): Only check whether definition is
21726 remapped if it fulfills is_command_symbol.
21727
21728 2002-02-07 Andreas Schwab <schwab@suse.de>
21729
21730 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
21731
21732 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
21733
21734 2002-02-06 Kim F. Storm <storm@cua.dk>
21735
21736 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
21737 defining command remapping. Doc updated.
21738 (Flookup_key): Remap command through keymap if KEY is a symbol.
21739 (is_command_symbol): New function.
21740 (Fkey_binding): Use it. New optional argument NO-REMAP.
21741 Doc updated. Callers changed. Perform command remapping via
21742 recursive call unless that arg is non-nil.
21743 (where_is_internal): New argument no_remap. Callers changed.
21744 Call recursively to find original key bindings for a remapped
21745 comand unless that arg is non-nil.
21746 (Fwhere_is_internal): New optional argument NO-REMAP.
21747 Doc updated. Callers changed. Pass arg to where_is_internal.
21748
21749 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
21750 (is_command_symbol): Add prototype.
21751
21752 * keyboard.c (Vthis_original_command): New variable.
21753 (syms_of_keyboard): DEFVAR_LISP it.
21754 (command_loop_1): Set it, and perform command remapping.
21755
21756 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21757
21758 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
21759
21760 2002-02-06 Jason Rumney <jasonr@gnu.org>
21761
21762 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
21763
21764 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
21765
21766 * charset.c (get_charset_id): Use if-else instead of ?:.
21767
21768 2002-02-06 Richard M. Stallman <rms@gnu.org>
21769
21770 * filelock.c (S_ISLNK): Define if not defined.
21771
21772 2002-02-03 Richard M. Stallman <rms@gnu.org>
21773
21774 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
21775
21776 * lread.c (read1): Redesign strategy for force_multibyte and
21777 force_singlebyte. Now is_multibyte records whether read_buffer
21778 is multibyte. Encountering any multibyte character makes it so.
21779
21780 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
21781
21782 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
21783 with the same sequence, map that sequence to f10 rather than f0.
21784
21785 2002-02-03 Andreas Schwab <schwab@suse.de>
21786
21787 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
21788 latter never being defined on GNU/Linux.
21789
21790 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
21791
21792 * xfaces.c (realize_default_face): Don't set the weight and slant of
21793 the default face to Qnormal, unless these attributes are unspecified.
21794
21795 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21796
21797 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
21798 Call cancel_hourglass unconditionally.
21799
21800 * eval.c (Fsignal): Remove duplicated declaration of
21801 the variable `display_hourglass_p'.
21802
21803 2002-01-31 Richard M. Stallman <rms@gnu.org>
21804
21805 * editfns.c (region_limit): Nicer error message.
21806
21807 * coding.c (decode_composition_emacs_mule):
21808 Give up if NCOMPONENT gets too large to index `component'.
21809
21810 * callint.c (check_mark): New arg to specify clearer error message.
21811 Callers changed.
21812
21813 2002-01-27 Richard M. Stallman <rms@gnu.org>
21814
21815 * minibuf.c (Fcompleting_read): Doc fix.
21816
21817 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21818
21819 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
21820 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
21821 Fix doc-strings.
21822
21823 2002-01-26 Richard M. Stallman <rms@gnu.org>
21824
21825 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
21826
21827 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
21828 and scroll_up_aggressively.
21829
21830 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21831
21832 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
21833
21834 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
21835
21836 * textprop.c (Fnext_property_change, Fnext_single_property_change)
21837 (Fprevious_property_change, Fprevious_single_property_change):
21838 Stay within the narrowed-buffer boundaries.
21839
21840 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
21841
21842 * term.c (Ftty_display_color_cells): New function.
21843 (syms_of_term): Defsubr it.
21844 (Ftty_display_color_cells, Ftty_display_color_p): Change the
21845 argument name to DISPLAY. Doc fix.
21846
21847 * dispextern.h: Add prototype for set_tty_color_mode and
21848 tty_setup_colors.
21849
21850 2002-01-24 Jason Rumney <jasonr@gnu.org>
21851
21852 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
21853 If region left to draw is not what was expected, mark the frame as
21854 garbaged.
21855
21856 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
21857 Combine the regions returned by BeginPaint and GetUpdateRect.
21858
21859 2002-01-23 Jason Rumney <jasonr@gnu.org>
21860
21861 * w32term.c (x_update_window_begin): Only hide caret if
21862 w32_use_visible_system_caret is set.
21863 (x_update_window_end): Only show caret if
21864 w32_use_visible_system_caret is set.
21865 (syms_of_w32term): Handle SystemParametersInfo call failing.
21866
21867 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
21868
21869 2002-01-22 Richard M. Stallman <rms@gnu.org>
21870
21871 * unexelf.c (unexec): Define n so as to cause compilation error
21872 for the code where people have often written n instead of nn.
21873
21874 * .gdbinit (hookpost-run): Defined.
21875
21876 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21877
21878 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
21879
21880 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21881
21882 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
21883 if fullscreen is being set.
21884
21885 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21886
21887 * minibuf.c (Fminibuffer_contents)
21888 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
21889 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
21890
21891 2002-01-21 Richard M. Stallman <rms@gnu.org>
21892
21893 * window.c (check_frame_size): Fix minimum height calculation.
21894
21895 2002-01-20 Ken Raeburn <raeburn@gnu.org>
21896
21897 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
21898 height before comparison.
21899 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
21900
21901 2002-01-20 Jason Rumney <jasonr@gnu.org>
21902
21903 * w32term.c (w32_system_caret_width): Remove.
21904 (w32_use_visible_system_caret): New user flag.
21905 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
21906 Windows reports a screen reader running.
21907 (x_update_window_begin): Hide the system caret.
21908 (x_update_window_end): Show the system caret.
21909 (x_display_and_set_cursor): Don't draw a cursor when
21910 w32_use_visible_system_caret is set. Do not adjust width.
21911
21912 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
21913 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
21914 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
21915 the user requests it. Use system default width when creating.
21916 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
21917
21918 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
21919 New window messages.
21920
21921 2002-01-20 Richard M. Stallman <rms@gnu.org>
21922
21923 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
21924
21925 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21926
21927 * doprnt.c (doprnt1): Fix typos in error call.
21928
21929 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
21930
21931 * unexelf.c (unexec) [__sgi]: Support the .got sections.
21932
21933 2002-01-20 Jason Rumney <jasonr@gnu.org>
21934
21935 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
21936 that Windows returns. If a double check fails, try to guess how
21937 ExtTextOut is going to act.
21938
21939 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
21940 in place of stricmp.
21941 (w32_list_synthesized_fonts): Removed.
21942 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
21943 (struct enumfont_t): New element; list.
21944 (enum_font_cb2): List all style and charset variations of a font.
21945 (Fw32_select_font): New optional argument; include_proportional.
21946 Exclude vertical fonts. Exclude proportional fonts unless
21947 include_proportional is non-nil.
21948 (w32_enable_synthesized_fonts): Change to a boolean.
21949 (Fw32_send_sys_command): Doc fix.
21950
21951 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21952
21953 * dispnew.c (update_frame): Move the variable `tem' to the block
21954 where it is used.
21955
21956 2002-01-19 Jason Rumney <jasonr@gnu.org>
21957
21958 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
21959 call to face-set-after-frame-default.
21960
21961 2002-01-18 Richard M. Stallman <rms@gnu.org>
21962
21963 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
21964 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
21965
21966 2002-01-17 Richard M. Stallman <rms@gnu.org>
21967
21968 * window.c (enlarge_window): When exceeding size of parent,
21969 directly delete all the siblings instead of trying to resize it.
21970
21971 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21972
21973 * term.c (set_tty_color_mode): Remove unused variable `tem'.
21974
21975 2002-01-16 Henrik Enberg <henrik@enberg.org>
21976
21977 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
21978
21979 2002-01-16 Kim F. Storm <storm@cua.dk>
21980
21981 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
21982 is invisible. This can happen if cursor is on top line of a
21983 window, and we switch to a buffer with a header line.
21984
21985 * w32term.c (x_erase_phys_cursor): Ditto.
21986
21987 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21988
21989 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
21990 `dont_resize' only when used.
21991
21992 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
21993
21994 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
21995
21996 * xdisp.c (display_mode_element): When computing charpos, depend
21997 on multibyteness of elt, not the text in field.
21998
21999 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22000
22001 * buffer.c (Fkill_all_local_variables):
22002 Increment `update_mode_lines' only once.
22003
22004 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22005
22006 * lisp.h (adjust_after_replace_noundo)
22007 (Fupdate_coding_systems_internal): Add prototypes.
22008
22009 * sound.c (Fplay_sound): Initialize header_size also for :data case.
22010
22011 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
22012
22013 Support for the --color command-line argument and tty-color-mode
22014 frame parameter:
22015
22016 * term.c (tty_default_color_capabilities, tty_setup_colors)
22017 (set_tty_color_mode): New functions.
22018 (term_init): Call tty_default_color_capabilities.
22019 (Qtty_color_mode_alist): New variable.
22020 (syms_of_term): Intern and staticpro it.
22021
22022 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
22023 frames.
22024 (do_switch_frame): For termcap frames, switch the tty
22025 color mode as specified by the frame's parameters.
22026 (Qtty_color_mode): New variable.
22027 (syms_of_frame): Intern and staticpro it.
22028
22029 * emacs.c (USAGE2): Add the --color option.
22030 (standard_args): Ditto.
22031
22032 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22033
22034 * xterm.h (struct x_output): New members want_fullscreen,
22035 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
22036 y_pixels_outer_diff.
22037 New enum for FULLSCREEN_* constants.
22038 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
22039 is NULL.
22040 (x_fullscreen_adjust): Add prototype.
22041
22042 * emacs.c (USAGE2): Add the new full-screen arguments.
22043 (standard_args): Ditto.
22044
22045 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
22046 New variables.
22047 (syms_of_xfns): Intern and staticpro them.
22048 (x_frame_parms) <"fullscreen">: New parameter.
22049 (x_fullscreen_move, x_set_fullscreen): New functions.
22050 (x_set_frame_parameters): Support for Qfullscreen.
22051 (x_real_positions): More accurate computation of the frame position.
22052 (x_figure_window_size): Support full-screen frames.
22053 (Fx_create_frame): Default the fullscreen parameter.
22054
22055 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
22056 (XTread_socket) <Expose>: Call x_check_fullscreen.
22057 <ConfigureNotify>: Don't resize to fullscreen.
22058 Call x_check_fullscreen_move, and set the want_fullscreen member of
22059 output_data.x.
22060
22061 2002-01-13 Jason Rumney <jasonr@gnu.org>
22062
22063 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
22064 for mice with more than 3 buttons.
22065
22066 * w32term.c (parse_button): New parameter xbutton. Callers changed.
22067 (w32_read_socket): Handle new "XBUTTON" messages.
22068
22069 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
22070 (syms_of_w32fns): DEFVAR_BOOL it.
22071 (w32_wnd_proc): Handle new "XBUTTON" messages.
22072
22073 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22074
22075 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
22076
22077 2002-01-13 Andreas Schwab <schwab@suse.de>
22078
22079 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
22080
22081 2002-01-12 Andreas Schwab <schwab@suse.de>
22082
22083 * .gdbinit (xbuffer): Remove address operator since data is now a
22084 pointer.
22085
22086 2002-01-11 Richard M. Stallman <rms@gnu.org>
22087
22088 * insdel.c (adjust_after_replace_noundo): New function.
22089
22090 * coding.c (code_convert_region): Don't copy old text if undo disabled.
22091
22092 2002-01-09 Jason Rumney <jasonr@gnu.org>
22093
22094 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
22095 when checking for multiple frames.
22096
22097 2002-01-08 Richard M. Stallman <rms@gnu.org>
22098
22099 * window.c (delete_window): Rewrite the code for changing the
22100 selected window to handle the case where WINDOW is not a leaf.
22101
22102 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
22103
22104 * process.c (send_process): Set src_multibyte to 1 after the call
22105 top setup_coding_system, not before the call.
22106
22107 2002-01-07 Jason Rumney <jasonr@gnu.org>
22108
22109 * xmenu.c (set_frame_menubar, xmenu_show):
22110 (xdialog_show): Initialize wv->help to Qnil.
22111
22112 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
22113 (w32_dialog_show): Initialize wv->help to Qnil.
22114
22115 2002-01-06 Jason Rumney <jasonr@gnu.org>
22116
22117 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
22118
22119 * w32menu.c (w32_menu_display_help): Revert last change.
22120
22121 * xmenu.c (menu_highlight_callback): Revert last change.
22122
22123 2002-01-06 Andreas Schwab <schwab@suse.de>
22124
22125 * insdel.c (make_gap_larger): Make sure buffer size does not
22126 overflow range of int.
22127
22128 2002-01-05 Jason Rumney <jasonr@gnu.org>
22129
22130 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
22131 OVERLAPS_P.
22132
22133 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
22134
22135 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
22136 to the left or to the right of the pointer, put it against
22137 the left screen edge.
22138 (x_frame_parms): Add missing braces around initializer.
22139
22140 * w32term.c (x_setup_relief_colors): Don't compute an image's
22141 background color if it doesn't have a Pixmap.
22142 (notice_overwritten_cursor): Don't depend on
22143 output_cursor and updated_area. Compare pixel coordinates with
22144 window's cursor pixel coordinates.
22145 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
22146 Call notice_overwritten_cursor with new arg list.
22147 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
22148 unconditionally.
22149 (x_draw_image_relief): Use predefined macro instead of
22150 constant when the value of `tool_bar_button_relief' is negative.
22151
22152 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
22153
22154 2002-01-04 Richard M. Stallman <rms@gnu.org>
22155
22156 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
22157
22158 2002-01-03 Richard M. Stallman <rms@gnu.org>
22159
22160 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
22161 (Fkey_binding): Try the `keymap' property map first.
22162 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
22163 minor mode bindings.
22164
22165 2002-01-03 Kim F. Storm <storm@cua.dk>
22166
22167 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
22168
22169 2002-01-02 Richard M. Stallman <rms@gnu.org>
22170
22171 * keyboard.c (read_key_sequence): Handle the keymap property
22172 before minor mode maps.
22173
22174 * editfns.c (Fformat): Update thissize from field_width
22175 based on the actual width, in the string case.
22176
22177 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22178
22179 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
22180 when used as truth value to prevent gcc warnings.
22181
22182 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
22183 * w32proc.c: Include <config.h>.
22184
22185 2002-01-01 Andreas Schwab <schwab@suse.de>
22186
22187 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
22188 not EMACS_INT, to make them compatible with DEFVAR_INT.
22189 * lisp.h (max_specpdl_size): Adjust declaration.
22190
22191 2002-01-01 Richard M. Stallman <rms@gnu.org>
22192
22193 * print.c (print_object): Test print_escape_nonascii only for
22194 unibyte strings.
22195 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
22196 when outputting to a multibyte buffer.
22197
22198 2001-12-29 Richard M. Stallman <rms@gnu.org>
22199
22200 * print.c (print_object): In multibyte string, use hex escapes.
22201 Use octal only for unibyte strings.
22202 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
22203
22204 * lread.c (read_escape): New arg BYTEREP for reporting whether
22205 escape forces unibyte or multibyte.
22206 (read1): When reading a string, take note of that info.
22207
22208 2001-12-29 Ken Raeburn <raeburn@gnu.org>
22209
22210 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
22211 comparison to test lisp value returned by Fget.
22212
22213 2001-12-29 Richard M. Stallman <rms@gnu.org>
22214
22215 * lisp.h (max_specpdl_size): Add declaration.
22216
22217 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
22218
22219 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
22220 Handle modifier bits. Correct typo in error message.
22221
22222 2001-12-28 Richard M. Stallman <rms@gnu.org>
22223
22224 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
22225 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
22226 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22227 Update calls to Fdefine_abbrev.
22228 (write_abbrev): Update for changed data format.
22229 Don't list "system" abbrevs.
22230 (Fexpand_abbrev): Update use count with new data format.
22231 (describe_abbrev): Update for changed data format.
22232 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
22233
22234 * config.in (HAVE_MBSINIT): Add #undef.
22235
22236 * strftime.c (mbsinit): Define as no-op if not available.
22237
22238 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
22239 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
22240
22241 * keymap.c (Flookup_key): Error message if key has wrong data type.
22242 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
22243 (exclude_key): New variable.
22244
22245 2001-12-28 Gerd Moellmann <gerd@gnu.org>
22246
22247 * xterm.c (x_setup_relief_colors): Don't compute an image's
22248 background color if it doesn't have a Pixmap.
22249
22250 * xterm.c (notice_overwritten_cursor): Don't depend on
22251 output_cursor and updated_area. Compare pixel coordinates with
22252 window's cursor pixel coordinates.
22253 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
22254 Call notice_overwritten_cursor with new arg list.
22255 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
22256 unconditionally.
22257
22258 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
22259 height of the cursor line to the amount to scroll.
22260
22261 2001-12-27 Richard M. Stallman <rms@gnu.org>
22262
22263 * intervals.c (set_point_both): The position after an invisible,
22264 intangible character is not an acceptable stopping point.
22265
22266 2001-12-27 Ken Raeburn <raeburn@gnu.org>
22267
22268 * window.c (enlarge_window): In new preserve_before code, convert
22269 CURBEG from lisp object to integer before doing arithmetic.
22270
22271 2001-12-27 Richard M. Stallman <rms@gnu.org>
22272
22273 * bytecode.c (Fbyte_code): Undo previous change.
22274
22275 2001-12-26 Kim F. Storm <storm@cua.dk>
22276
22277 * keyboard.c (record_char): Ignore duplicate help-echo events only
22278 separated by mouse-movement. When tracking mouse, only record
22279 first and last mouse-movement event in same window.
22280 Don't record mouse-movement events in keyboard macros.
22281
22282 2001-12-25 Richard M. Stallman <rms@gnu.org>
22283
22284 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
22285 (Fenlarge_window): New arg PRESERVE_BEFORE.
22286
22287 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
22288 instead of Fstring_as_unibyte.
22289
22290 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22291
22292 The following changes remove mocklisp support:
22293
22294 * mocklisp.h, mocklisp.c: Files removed.
22295
22296 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
22297 `Qmocklisp' and `Qmocklisp_arguments'.
22298 Remove prototype of syms_of_mocklisp.
22299
22300 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
22301
22302 * callint.c: Do not include mocklisp.h.
22303 (Fcall_interactively): Do not test for mocklisp case.
22304
22305 * eval.c: Remove variables `Qmocklisp_arguments',
22306 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
22307 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
22308 Do not test for mocklisp case.
22309 (Fwhile): Remove unused variable `tem'.
22310 (syms_of_eval): Remove variable `moclisp-arguments'.
22311
22312 * data.c (wrong_type_argument): Remove mocklisp case.
22313
22314 * doc.c (Fdocumentation): Remove mocklisp case.
22315
22316 * emacs.c (main): Do not call syms_of_mocklisp.
22317
22318 2001-12-21 Richard M. Stallman <rms@gnu.org>
22319
22320 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
22321 to the left or to the right of the pointer, put it against
22322 the left screen edge.
22323
22324 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
22325
22326 * Makefile.in (distclean): Remove .gdbinit if we are building
22327 outside the source tree.
22328
22329 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
22330
22331 * w32.c (emacs_root_dir): New function.
22332
22333 * msdos.c (emacs_root_dir): New function.
22334
22335 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
22336 of the current drive as the fallback for default_directory.
22337
22338 * dired.c (file_name_completion): Run the elements of
22339 completion-ignored-extensions through ENCODE_FILE.
22340
22341 * lisp.h (scmp): Remove prototype, since it's now a static
22342 function private to dired.c.
22343
22344 2001-12-18 Richard M. Stallman <rms@gnu.org>
22345
22346 * dired.c (scmp): Function moved from minibuf.c.
22347 Delete multibyte handling--used only on encoded strings.
22348
22349 * minibuf.c (scmp): Function moved to dired.c.
22350
22351 * fns.c (merge): Add QUIT call.
22352
22353 2001-12-18 Dave Love <fx@gnu.org>
22354
22355 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
22356 language/georgian.el.
22357
22358 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
22359
22360 * Makefile.in (lisp, shortlisp): Synchronize with changes to
22361 lisp/Makefile.in:DONTCOMPILE.
22362
22363 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22364
22365 * xdisp.c (window_box_height): Do not return negative values.
22366 From Gerd Moellmann <gerd@gnu.org>.
22367
22368 * keyboard.c (head_table): Add missing braces around initializer.
22369
22370 * term.c (keys): Likewise.
22371
22372 * xfns.c (x_frame_parms, visual_classes): Likewise.
22373
22374 2001-12-17 Sam Steingold <sds@gnu.org>
22375
22376 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
22377 patch (COMPOSING_P, not COMPOSING).
22378
22379 2001-12-17 Richard M. Stallman <rms@gnu.org>
22380
22381 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
22382
22383 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
22384 before calling decode_coding.
22385
22386 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
22387
22388 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
22389 instead of only for COMPOSITION_DISABLED.
22390
22391 2001-12-16 Richard M. Stallman <rms@gnu.org>
22392
22393 * alloc.c (pure_alloc): After overflow, allocate just a small block.
22394
22395 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
22396
22397 * buffer.h (struct buffer): New field `display_error_modiff'.
22398 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
22399
22400 * window.c (Frecenter): Clear display_error_modiff field.
22401
22402 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
22403 Call redisplay_window, but not if display_error_modiff field says no.
22404 (redisplay_window_error): New function.
22405 (displayed_buffer): New variable.
22406 (redisplay_internal, redisplay_windows): Call the new functions
22407 instead of redisplay_window directly.
22408
22409 2001-12-15 Richard M. Stallman <rms@gnu.org>
22410
22411 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
22412
22413 2001-12-14 Andrew Innes <andrewi@gnu.org>
22414
22415 * makefile.w32-in (EMACSLOADPATH): Define.
22416 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
22417 (bootstrap-temacs): Remove dependency on bootstrap-clean.
22418
22419 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
22420
22421 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
22422 parameter have a numeric value all the time.
22423
22424 * w32fns.c (x_report_frame_params): Likewise.
22425
22426 2001-12-12 Richard M. Stallman <rms@gnu.org>
22427
22428 * fileio.c (Fwrite_region): Doc fix.
22429
22430 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
22431 (redisplay_internal): Call clear_image_cache only for window terminals.
22432
22433 2001-12-12 Gerd Moellmann <gerd@gnu.org>
22434
22435 * xdisp.c (move_it_vertically_backward): Change heuristic
22436 for the case that we didn't move far enough initially.
22437
22438 * window.c (Frecenter): Simplify computation in the case of window
22439 system frames and ARG < 0; use window_box_height.
22440
22441 2001-12-11 Richard M. Stallman <rms@gnu.org>
22442
22443 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
22444 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
22445
22446 2001-12-11 Andrew Innes <andrewi@gnu.org>
22447
22448 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
22449 arg is negative.
22450
22451 2001-12-11 Richard M. Stallman <rms@gnu.org>
22452
22453 * m/hp800.h: Split the __hpux conditional into the parts
22454 that are right for GNU/Linux too and the parts that are not.
22455 Use the former if GNU_LINUX.
22456 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
22457
22458 * s/gnu-linux.h (GNU_LINUX): Defined.
22459
22460 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22461
22462 * macros.c, msdos.c, w16select.c: Change doc-string comments to
22463 `new style' [w/`doc:' keyword].
22464
22465 2001-12-10 Jason Rumney <jasonr@gnu.org>
22466
22467 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
22468 before using.
22469
22470 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22471
22472 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
22473 keyword].
22474
22475 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
22476
22477 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
22478
22479 * s/hpux10.h (srand48): Don't undefine.
22480
22481 2001-12-09 Jason Rumney <jasonr@gnu.org>
22482
22483 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
22484 Add comment to explain where the struct came from.
22485 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
22486 (add_menu_item): Process pop-up menus first to avoid memory leak.
22487 (add_menu_item, w32_menu_display_help): Use `help' field as
22488 Lisp_Object.
22489 (w32_free_submenu_strings): Only free owner-drawn strings.
22490
22491 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22492
22493 * COPYING: Moved back.
22494
22495 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
22496 Add parentheses around && within ||.
22497
22498 * indent.c (compute_motion): Likewise.
22499
22500 * intervals.c (merge_properties_sticky): Likewise.
22501
22502 * coding.c (setup_coding_system, shrink_encoding_region)
22503 (Fdecode_sjis_char): Likewise.
22504
22505 2001-12-07 Andreas Schwab <schwab@suse.de>
22506
22507 * xdisp.c (display_mode_element): Don't read past end of string if
22508 it ends with '%'.
22509
22510 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
22511 can hold.
22512
22513 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
22514 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
22515 type changed to Lisp_Object.
22516 (syms_of_data): DEFVAR_LISP them.
22517
22518 2001-12-07 Richard M. Stallman <rms@gnu.org>
22519
22520 * callproc.c (init_callproc): Set Vdata_directory based on the source
22521 location whenever Emacs was run uninstalled.
22522
22523 2001-12-06 Paul Eggert <eggert@twinsun.com>
22524
22525 * config.in (HAVE_WORKING_VFORK): New #undefs.
22526 * process.c (create_process):
22527 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
22528 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
22529 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
22530 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
22531 * m/intel386.h (HAVE_VFORK): Likewise.
22532 * m/mips-siemens.h (HAVE_VFORK): Likewise.
22533 * m/mips.h (HAVE_VFORK): Likewise.
22534 * s/freebsd.h (vfork): Remove #define.
22535 * s/lynxos.h (HAVE_VFORK): Remove #undef.
22536 * s/usg5-4-2.h: Fix comment about vfork.
22537
22538 2001-12-06 Richard M. Stallman <rms@gnu.org>
22539
22540 * s/hpux10.h (random): Add undef.
22541 (HAVE_RANDOM): Define it just once.
22542
22543 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
22544
22545 * eval.c: Undo last change: the standard syntax is not wanted.
22546
22547 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
22548
22549 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
22550 scroll bars of the frame before deleting the frame itself. If the
22551 frame has a widget, delete the frame with XtDestroyWidget, and do
22552 not call XDestroyWindow before that.
22553
22554 2001-12-06 Kim F. Storm <storm@cua.dk>
22555
22556 * xfns.c (x_report_frame_params): Return actual fringe widths.
22557
22558 * w32fns.c (x_report_frame_params): Return actual fringe widths.
22559
22560 2001-12-05 Andrew Innes <andrewi@gnu.org>
22561
22562 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
22563 excessively large.
22564
22565 * insdel.c (make_gap_larger): New function.
22566 (make_gap_smaller): New function.
22567 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
22568 Call make_gap_smaller if arg is negative.
22569
22570 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
22571
22572 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
22573 Pass a dummy argument when calling interrupt_signal.
22574 (parse_menu_item): Mark disabled items before checking for empty def.
22575 (read_char_minibuf_menu_prompt): Make safety more visible.
22576 (read_key_sequence): Add a `first_unbound' variable.
22577 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
22578 unbound prefix as soon as we can detect it.
22579
22580 * doc.c (Fsnarf_documentation): Add prototype.
22581 (get_doc_string): Handle negative arguments.
22582 (Fdocumentation): Use AREF and ASIZE.
22583 Move the calls to get_doc_string to a single place.
22584 Don't confuse an interactive-spec for a docstring reference.
22585 (Fdocumentation_property): Take advantage of the fact that
22586 get_doc_string now ignores the sign of the docstring position.
22587
22588 * eval.c: Use standard syntax for usage in docstrings.
22589
22590 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22591
22592 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
22593
22594 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22595
22596 * xterm.c (x_draw_image_relief): Use predefined macro instead of
22597 constant when the value of `tool_bar_button_relief' is negative.
22598
22599 2001-12-02 Richard M. Stallman <rms@gnu.org>
22600
22601 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
22602 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
22603
22604 * fileio.c (read_non_regular): Delete Fsignal call.
22605
22606 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
22607
22608 * lisp.h (run_hook_list_with_args): Undo last change.
22609
22610 2001-12-01 Gerd Moellmann <gerd@gnu.org>
22611
22612 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
22613
22614 2001-12-01 Jason Rumney <jasonr@gnu.org>
22615
22616 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
22617
22618 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
22619 [!WM_MOUSELEAVE]: Define.
22620
22621 * w32menu.c (current_popup_menu, get_menu_item_info):
22622 (set_menu_item_info): New vars.
22623 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
22624 (w32_menu_show): Set current_popup_menu.
22625 (add_menu_item): Allocate new strings for owner-drawn menu items
22626 and help strings.
22627 Use owner-draw for disabled menu items again.
22628 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
22629 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
22630
22631 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
22632 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
22633 <WM_EXITMENULOOP>: Free menu strings.
22634 <WM_MOUSELEAVE>: Stop tracking mouse.
22635 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
22636
22637 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
22638 and mouse face.
22639
22640 2001-12-01 Kim F. Storm <storm@cua.dk>
22641
22642 The following changes add left-fringe and right-fringe
22643 frame parameters to adjust fringe widths, or remove one or
22644 both fringes.
22645
22646 * frame.h (struct frame): Remove trunc_area_pixel_width and
22647 trunc_area_cols fields.
22648 (Qleft_fringe, Qright_fringe): Declare.
22649 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
22650
22651 * frame.c (Qleft_fringe, Qright_fringe): New vars.
22652 (syms_of_frame): Initialize them.
22653
22654 * window.c (coordinates_in_window): Handle separate left and right
22655 fringe widths.
22656
22657 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
22658 and fringe_cols fields.
22659 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
22660 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
22661 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
22662 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
22663 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
22664 (x_compute_fringe_widths): Add prototype.
22665
22666 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
22667 fill fringe evenly with small dashes.
22668 (x_draw_fringe_bitmap): Clear background if necessary. Align and
22669 clip the new ZV bitmap to avoid jitter between rows.
22670 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
22671 background. Don't draw fringe bitmaps if fringe width is zero.
22672 (x_compute_fringe_widths): New function.
22673 (x_new_font, x_set_window_size_1): Use it.
22674
22675 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
22676 (x_set_frame_parameters): Process `font' parameter before other
22677 parameters as fringe widths depend on it.
22678 (x_set_fringe_width): New function.
22679 (x_figure_window_size): Use x_compute_fringe_widths.
22680 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
22681 parameters.
22682
22683 * widget.c (set_frame_size): Use x_compute_fringe_widths.
22684 (EmacsFrameSetCharSize): Ditto.
22685
22686 * w32term.h: Merged changes from xterm.h.
22687 * w32term.c: Merged changes from xterm.c.
22688 * w32fns.c: Merged changes from xfns.c.
22689
22690 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22691
22692 * COPYING: Removed.
22693
22694 2001-11-29 Dave Love <fx@gnu.org>
22695
22696 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
22697 extra extra slot.
22698 (detect_coding_mask): Fix call of detect_coding_iso2022.
22699
22700 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22701
22702 * fileio.c (file-name-coding-system)
22703 (default-file-name-coding-system): Doc fix (links to referenced
22704 variables added).
22705
22706 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
22707
22708 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
22709 Add dummy uses of gcproN variables.
22710
22711 * category.c (describe_category, describe_category_1)
22712 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
22713 (syms_of_category): Don't defsubr Sdescribe_categories.
22714
22715 2001-11-28 Richard M. Stallman <rms@gnu.org>
22716
22717 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
22718
22719 * Makefile.in (lispdir): New variable, referring to build dir.
22720 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
22721
22722 2001-11-28 Andrew Innes <andrewi@gnu.org>
22723
22724 * w32menu.c (w32_menu_display_help): Actually add the new argument
22725 OWNER.
22726
22727 2001-11-28 Jason Rumney <jasonr@gnu.org>
22728
22729 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
22730 menu items. From David Ponce <dponce@wanadoo.fr>.
22731 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
22732 conditionally.
22733 (w32_menu_display_help): New argument OWNER. Rewritten to store a
22734 help event in the owner frame's keyboard buffer.
22735
22736 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
22737 (Fx_show_tip): Don't subtract last width from row width.
22738
22739 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
22740 (w32_read_socket): Use EQ to compare frames.
22741
22742 2001-11-28 Gerd Moellmann <gerd@gnu.org>
22743
22744 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
22745 OVERLAPS_P.
22746
22747 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22748
22749 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
22750 `gcpro3' and `gcpro4'.
22751
22752 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
22753
22754 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
22755
22756 * ccl.c: Use AREF and ASIZE.
22757
22758 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
22759
22760 * lisp.h (run_hook_list_with_args): Remove.
22761 (LIST_END_P): Fix call to wrong_type_argument.
22762 (make_fixnum_or_float): Use EMACS_INT rather than int.
22763
22764 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
22765
22766 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
22767 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
22768
22769 * eval.c: Use AREF and ASIZE.
22770 (Ffetch_bytecode): Add the file name to the error message.
22771
22772 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
22773 which match the end of the file-name.
22774 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
22775 is not a valid env var, but leave it as is instead.
22776
22777 * keymap.c (access_keymap): Handle t bindings like nil bindings.
22778 Make nil bindings in char-tables transparent.
22779 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
22780
22781 2001-11-26 Richard M. Stallman <rms@gnu.org>
22782
22783 * textprop.c (set_text_properties_1): Allow START, END in either order.
22784 Do nothing if range is empty.
22785
22786 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
22787
22788 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
22789 (clean): Not here.
22790
22791 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
22792
22793 * textprop.c (set_text_properties_1): Clearly mark that the
22794 interval should not be empty.
22795
22796 * intervals.c (graft_intervals_into_buffer):
22797 Don't call set_text_properties_1 on an empty interval.
22798
22799 2001-11-25 Richard M. Stallman <rms@gnu.org>
22800
22801 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
22802
22803 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
22804 don't lose the data in it.
22805
22806 2001-11-25 Juanma Barranquero <lektu@terra.es>
22807
22808 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
22809
22810 * buffer.c (Fkill_buffer): Likewise.
22811
22812 * print.c (temp_output_buffer_setup): Likewise.
22813
22814 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
22815
22816 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
22817
22818 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
22819
22820 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
22821 Niemitalo <kon@iki.fi>.
22822
22823 2001-11-25 Jason Rumney <jasonr@gnu.org>
22824
22825 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
22826
22827 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
22828 (Fx_show_tip): Block input during frame creation.
22829 (Fx_show_tip, Fx_hide_tip): Enable.
22830
22831 2001-11-24 Richard M. Stallman <rms@gnu.org>
22832
22833 * lread.c (Fload): Detect recursive load error for more than 3
22834 nestings of the same file.
22835 (Vrecursive_load_depth_limit): Variable deleted.
22836 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
22837
22838 2001-11-24 Jason Rumney <jasonr@gnu.org>
22839
22840 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
22841 mouse position if either left or top is not specified.
22842
22843 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
22844 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
22845 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
22846 (my_create_tip_window): Assign tip_window.
22847 (x_create_tip_frame): Use same defaults as X.
22848 (compute_tip_xy): Remove unused variable. Use full screen width.
22849 (Fx_show_tip): Do not double height. Call ShowWindow directly.
22850
22851 * w32term.c (x_after_update_window_line): Doc fix.
22852 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
22853 frames.
22854 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
22855
22856 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
22857 for all Windowed systems.
22858
22859 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
22860
22861 * msdos.c (IT_clear_screen): If the frame's faces are not yet
22862 realized, use the initial screen colors to clear the screen.
22863
22864 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22865
22866 * textprop.c (Fset_text_properties): Remove unused variables
22867 `unchanged', `prev_changed', `s' and `len'.
22868
22869 * search.c (Freplace_match): Remove unused variable `inslen'.
22870
22871 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
22872
22873 2001-11-22 Jason Rumney <jasonr@gnu.org>
22874
22875 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
22876 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
22877 (my_create_tip_window): New function.
22878 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
22879 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
22880
22881 2001-11-20 Jason Rumney <jasonr@gnu.org>
22882
22883 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
22884 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
22885
22886 * w32fns.c (Vw32_system_coding_system): Remove.
22887 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
22888
22889 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
22890
22891 * fileio.c (Fwrite_region): Move choose_write_coding_system to
22892 after build_annotations.
22893
22894 * syntax.c (describe_syntax): Add dummy arg.
22895 (describe_syntax_1): Update call to describe_vector.
22896
22897 * category.c (describe_category): Add dummy arg.
22898 (describe_category_1): Update call to describe_vector.
22899
22900 * keymap.c (Fdescribe_vector): Add `describer' parameter.
22901 (describe_command, describe_translation): Add dummy second param.
22902 (describe_map): Call elt_describer with two arguments.
22903 (describe_vector_princ): Add `fun' parameter.
22904 Call it instead of the hardcoded `princ'.
22905 (describe_vector): Add arg `args'.
22906 Pass it as a new second argument to elt_describer.
22907
22908 * keymap.h (describe_vector): Update prototype.
22909
22910 * frame.c: Don't include keymap.h any more.
22911 (keys_of_frame): Remove.
22912
22913 * lisp.h (keys_of_frame): Remove declaration.
22914
22915 * emacs.c (main): Don't call `keys_of_frame' any more.
22916
22917 2001-11-14 Andreas Schwab <schwab@suse.de>
22918
22919 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
22920 if defined, 0 otherwise.
22921 (MAP_FAILED): Define if not defined and use it to test mmap failure.
22922 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
22923
22924 2001-11-19 Richard M. Stallman <rms@gnu.org>
22925
22926 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
22927
22928 2001-11-18 Jason Rumney <jasonr@gnu.org>
22929
22930 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
22931 (x_draw_bar_cursor): If the background color of the glyph under
22932 the cursor equals the frame's cursor color, use the glyph's
22933 foreground color for drawing the bar cursor.
22934 (x_after_update_window_line): Clear internal border in different
22935 circumstances.
22936 (w32_set_vertical_scroll_bar): Check for width and height > 0.
22937 (w32_draw_relief_rect): Correct relief by 1 pixel.
22938 (x_set_glyph_string_background_width):
22939 Set extends_to_end_of_line_p if the row's fill_line_p is set and
22940 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
22941 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
22942 if cursor_in_non_selected_windows is false.
22943 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
22944 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
22945 Notice if cursor gets overwritten.
22946 (notice_overwritten_cursor): Renamed from
22947 note_overwritten_text_cursor. Rewritten to take glyph widths
22948 into account, and to take X positions as parameters.
22949 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
22950 around call to x_draw_glyphs.
22951 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
22952 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
22953 color to use for image glyph reliefs.
22954 (x_draw_image_relief): Accept zero tool_bar_button_relief.
22955 (glyph_rect): Remove unused variable `area'.
22956
22957 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
22958 some items.
22959 (x_set_internal_border_width): Set frame garbaged when window
22960 doesn't exist yet.
22961 (Fx_create_frame): Accept zero tool_bar_button_relief.
22962 (x_clear_image_1, four_corners_best, image_background)
22963 (image_background_transparent): New functions.
22964 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
22965 (gs_format): Add `:background' entry.
22966 (lookup_image): Set IMG's background color if specified.
22967 (pbm_load, xbm_load_image, png_load): Set IMG's background field
22968 when appropriate.
22969 (x_clear_image_1): Reset `background_valid' and
22970 `background_transparent_valid' fields.
22971 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
22972 calculating it here. Set IMG's background_transparent field.
22973 (enum xpm_keyword_index): Add XPM_BACKGROUND.
22974 (enum png_keyword_index): Add PNG_BACKGROUND.
22975 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
22976 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
22977 (enum gif_keyword_index): Add GIF_BACKGROUND.
22978 (enum gs_keyword_index): Add GS_BACKGROUND.
22979 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
22980 Pre-calculate image background color where necessary.
22981 (x_create_x_image_and_pixmap, xbm_load, gs_load):
22982 Use display info's n_cbits entry for screen depth.
22983 (Fx_show_tip): Remove unused variables `buffer', `top',
22984 `left', `max_width' and `max_height'.
22985
22986 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
22987
22988 2001-11-18 Gerd Moellmann <gerd@gnu.org>
22989
22990 * puresize.h (BASE_PURESIZE): Increase to 750000.
22991
22992 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22993
22994 * frame.c (Fframe_live_p): Doc fix.
22995
22996 2001-11-18 Richard M. Stallman <rms@gnu.org>
22997
22998 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
22999 (message_dolog_marker3): New static variables hold three markers.
23000 (syms_of_xdisp): Initialize and staticpro them.
23001 (message_dolog): Use message_dolog_marker1..3 instead of
23002 allocating markers each time. Unchain them when done.
23003
23004 2001-11-17 Richard M. Stallman <rms@gnu.org>
23005
23006 * doc.c (Fsnarf_documentation): Doc fix.
23007
23008 2001-11-17 Andreas Schwab <schwab@suse.de>
23009
23010 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
23011
23012 2001-11-17 Richard M. Stallman <rms@gnu.org>
23013
23014 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
23015
23016 2001-11-17 Jason Rumney <jasonr@gnu.org>
23017
23018 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
23019
23020 2001-11-17 Gerd Moellmann <gerd@gnu.org>
23021
23022 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
23023 with invalid position.
23024
23025 2001-11-16 Richard M. Stallman <rms@gnu.org>
23026
23027 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
23028
23029 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
23030 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
23031 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
23032
23033 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
23034
23035 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
23036
23037 * fileio.c (build_annotations): Split off the tail.
23038 (build_annotations_2): New fun. Extracted from build_annotations.
23039 (Fwrite_region): Split the call to build_annotations into two
23040 calls to build_annotations and build_annotations_2.
23041
23042 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23043
23044 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
23045 clear_waiting_for_input with argument.
23046
23047 * xterm.h (x_update_cursor): Remove duplicated prototype.
23048
23049 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
23050
23051 * xterm.c (waiting_for_input): Remove unnecessary declaration.
23052
23053 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
23054
23055 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
23056
23057 * fileio.c (choose_write_coding_system): New fun, extracted
23058 from Fwrite_region.
23059 (Fwrite_region): Use it.
23060
23061 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
23062 (funcall_lambda, run_hook_with_args): Make static and add prototype.
23063 (ml_apply, find_handler_clause): Add prototype.
23064
23065 2001-11-16 Eli Zaretskii <eliz@gnu.org>
23066
23067 * config.in: Add #undef HAVE_COFF_H.
23068
23069 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
23070 Required for ISC 4.1.
23071
23072 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
23073
23074 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
23075 Andrew Wiseman <a.wiseman@btclick.com>.
23076
23077 2001-11-16 Kim F. Storm <storm@cua.dk>
23078
23079 The following changes are made to clean up the various internal
23080 references to the fringes to actually use the term `fringe' for
23081 them. Previously, they were called `flags areas', `bitmap areas',
23082 `left/right side of windows', or implicitly as `flags' or
23083 `bitmaps':
23084
23085 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
23086 Comments fixed. Use renamed symbols.
23087
23088 * dispnew.c: Comment fix. Use renamed symbols.
23089
23090 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
23091 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
23092 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
23093
23094 * msdos.c: Comment fix.
23095
23096 * w32fns.c: Use renamed symbols.
23097
23098 * w32term.c: Comment fixes. Use renamed symbols.
23099 (fringe_bitmap_type): Renamed from bitmap_type.
23100 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
23101 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
23102 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
23103
23104 * w32term.h: Comment fixes. Use renamed symbols.
23105 (fringes_extra): Renamed from flags_areas_extra.
23106 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
23107 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
23108 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
23109 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
23110 (FRAME_X_LEFT_FRINGE_WIDTH):
23111 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
23112 (FRAME_X_RIGHT_FRINGE_WIDTH):
23113 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
23114
23115 * widget.c: Use renamed symbols.
23116
23117 * window.c: Comment fixes. Use renamed symbols.
23118 (coordinates-in-window-p): Doc fix.
23119
23120 * xdisp.c: Comment fixes. Use renamed symbols.
23121
23122 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
23123
23124 * xfns.c: Use renamed symbols.
23125
23126 * xterm.c: Comment fixes. Use renamed symbols.
23127 (fringe_bitmap_type): Renamed from bitmap_type.
23128 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
23129 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
23130 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
23131
23132 * xterm.h: Comment fixes. Use renamed symbols.
23133 (fringes_extra): Renamed from flags_areas_extra.
23134 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
23135 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
23136 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
23137 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
23138 (FRAME_X_LEFT_FRINGE_WIDTH):
23139 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
23140 (FRAME_X_RIGHT_FRINGE_WIDTH):
23141 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
23142
23143 2001-11-15 Jason Rumney <jasonr@gnu.org>
23144
23145 * w32menu.c (add-menu-item): Make help_echo and radio buttons
23146 work for most menu items. From David Ponce
23147 <david.ponce@wanadoo.fr>.
23148
23149 2001-11-15 Gerd Moellmann <gerd@gnu.org>
23150
23151 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
23152 Some x_set_* function expect to be called even if old and new
23153 value are equal.
23154
23155 * xdisp.c (build_desired_tool_bar_string): Accept zero
23156 tool_bar_button_relief.
23157
23158 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
23159
23160 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
23161
23162 * xterm.c (x_draw_bar_cursor): If the background color of the
23163 glyph under the cursor equals the frame's cursor color, use
23164 the glyph's foreground color for drawing the bar cursor.
23165
23166 * dispnew.c (direct_output_forward_char): Fix character/byte
23167 position comparison.
23168
23169 2001-11-15 Miles Bader <miles@gnu.org>
23170
23171 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
23172 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
23173 Update arguments to find_field.
23174 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
23175 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
23176 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
23177 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
23178
23179 2001-11-14 Richard M. Stallman <rms@gnu.org>
23180
23181 * editfns.c (Fpropertize): Allow call with 1 arg.
23182
23183 * dispextern.h (image_background, image_background_transparent):
23184 Conditionalize on HAVE_X_WINDOWS.
23185
23186 2001-11-13 Richard M. Stallman <rms@gnu.org>
23187
23188 * print.c (Fprin1_to_string): Doc fix.
23189
23190 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
23191
23192 * floatfns.c (Fceiling, Ffloor): Doc fixes.
23193
23194 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
23195
23196 * fileio.c (Ffile_accessible_directory_p): Doc fix.
23197
23198 * eval.c (syms_of_eval): Doc fix.
23199
23200 * coding.c (syms_of_coding): Doc fix.
23201
23202 * doc.c (Fsnarf_documentation): Doc fix.
23203
23204 * dispnew.c (syms_of_display): Doc fix.
23205
23206 * category.c (Fget_unused_category): Doc fix.
23207
23208 * buffer.c (syms_of_buffer): Doc fixes.
23209
23210 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
23211
23212 * print.c (prin1, print): Doc fix.
23213
23214 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23215
23216 * fontset.h: Remove declarations of variables
23217 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
23218
23219 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
23220 `Vclip_large_size_font'.
23221
23222 2001-11-13 Jason Rumney <jasonr@gnu.org>
23223
23224 * w32fns.c: Doc fix.
23225
23226 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23227
23228 * xfaces.c (Fface_attributes_as_vector): Doc fix.
23229
23230 * fns.c: Doc fix.
23231
23232 * emacs.c: Doc fix.
23233
23234 * coding.c: Doc fix.
23235
23236 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
23237 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
23238 `new style' [w/`doc:' keyword].
23239
23240 2001-11-12 Richard M. Stallman <rms@gnu.org>
23241
23242 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
23243 LeaveNotify events. Only FocusIn and FocusOut do that now.
23244 (x_display_and_set_cursor): Do display hollow cursors in active
23245 minibuffer windows when they are not selected.
23246
23247 2001-11-12 Jason Rumney <jasonr@gnu.org>
23248
23249 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
23250 * w32term.c: Change doc-string comments to `new style'
23251 [w/`doc:' keyword]. Doc fixes.
23252
23253 * w32fns.c: Don't define max.
23254 (Fx_open_connection): Only execute once.
23255
23256 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23257
23258 * ccl.c: Change macros to use do-while block instead of if-else.
23259 Use braces to follow GNU Coding Standards.
23260
23261 2001-11-11 Richard M. Stallman <rms@gnu.org>
23262
23263 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
23264
23265 * lread.c (read_escape): Use end_of_file_error for reporting eof.
23266
23267 * insdel.c (replace_range): Use adjust_markers_for_replace
23268 instead of adjust_markers_for_delete and adjust_markers_for_insert.
23269
23270 * intervals.h (set_text_properties, set_text_properties_1): Declare.
23271
23272 * textprop.c (set_text_properties_1): New subroutine
23273 broken out of set_text_properties.
23274 (set_text_properties): Use set_text_properties_1.
23275
23276 * intervals.c (graft_intervals_into_buffer):
23277 Use set_text_properties_1 to clear out properties.
23278
23279 * search.c (Freplace_match): Use replace_range to insert
23280 and delete. Don't request property inheritance from
23281 surrounding text.
23282
23283 2001-11-10 Jason Rumney <jasonr@gnu.org>
23284
23285 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
23286 vertical fonts. Allow them if face name is explicitly specified.
23287 Do not give up if we find a font that cannot be converted to an xlfd.
23288
23289 2001-11-10 Gerd Moellmann <gerd@gnu.org>
23290
23291 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
23292 instead of malloc/free.
23293
23294 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23295
23296 * xfaces.c (merge_face_vectors): Use braces to follow GNU
23297 Coding Standards.
23298 (Finternal_set_lisp_face_attribute): Likewise.
23299
23300 * buffer.c (Fbury_buffer): Likewise.
23301
23302 * indent.c (current_column_1): Remove unused variable `prev_col'.
23303
23304 * coding.c (encode_coding): Use precomputed value of `src'.
23305 (encode_coding): Remove unused variable `src_end'.
23306 (code_convert_region): Remove unused variables `count'.
23307
23308 2001-11-07 Jason Rumney <jasonr@gnu.org>
23309
23310 * w32term.c (x_display_and_set_cursor): Do not move system caret
23311 if cursor_glyph is NULL.
23312
23313 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23314
23315 * keymap.c (access_keymap): Fix compilation error.
23316
23317 2001-11-07 Miles Bader <miles@gnu.org>
23318
23319 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
23320
23321 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23322
23323 * intervals.c (graft_intervals_into_buffer):
23324 Remove #ifdef'd-out code.
23325 (graft_intervals_into_buffer): Remove unused variable `middle'.
23326
23327 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
23328 code (eval-current-buffer).
23329 Change doc-string comments to `new style' [w/`doc:' keyword].
23330
23331 2001-11-06 Richard M. Stallman <rms@gnu.org>
23332
23333 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
23334
23335 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
23336
23337 * lread.c (read1): Fix behavior with nested backquoting.
23338
23339 * keyboard.c (make_lispy_event): Check integerness and fix
23340 Lisp_Object/int mixup.
23341
23342 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23343
23344 * fns.c (copy_hash_table): Remove unused variable `v'.
23345
23346 * fontset.c (fontset_font_pattern): Remove unused variable
23347 `family_registry'.
23348
23349 * indent.c (current_column_1): Remove unused variable `prev_col'.
23350
23351 2001-11-05 Richard M. Stallman <rms@gnu.org>
23352
23353 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
23354
23355 * buffer.c (Fkill_buffer): Don't delete auto save file
23356 if buffer is modified.
23357
23358 2001-11-05 Andrew Innes <andrewi@gnu.org>
23359
23360 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
23361 CHECK_NUMBER_CDR.
23362
23363 2001-11-05 Richard M. Stallman <rms@gnu.org>
23364
23365 * unexelf.c (unexec): Minor changes; clean up comments.
23366
23367 2001-11-05 Sam Steingold <sds@gnu.org>
23368
23369 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
23370
23371 2001-11-05 Andreas Schwab <schwab@suse.de>
23372
23373 * sound.c (sound_perror): Save errno from being clobbered.
23374
23375 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
23376
23377 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
23378 the program image directly.
23379
23380 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23381
23382 * buffer.h (Fbuffer_local_value): Add prototype.
23383
23384 2001-11-04 Richard M. Stallman <rms@gnu.org>
23385
23386 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
23387 and CHECK_BUFFER.
23388
23389 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
23390 (record_char): Likewise.
23391
23392 * keyboard.c (make_lispy_event): Don't insist a drag event must
23393 move to a different buffer position. Instead, check for moving at
23394 least double_click_fuzz.
23395
23396 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
23397
23398 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
23399
23400 * indent.c (current_column_1, Fmove_to_column): Separate the code
23401 for display-table glyphs from the code for buffer text, to fix
23402 bugs in the former.
23403
23404 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
23405
23406 * buffer.c (Fbuffer_local_value): New function.
23407 (syms_of_buffer): Defsubr it.
23408
23409 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
23410 value of `cursor-in-non-selected-windows'.
23411
23412 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
23413 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
23414 (syms_of_xdisp): Initialize it.
23415
23416 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23417
23418 * xfns.c (Fx_create_frame): Doc fix.
23419
23420 * coding.c: Change doc-string comments to `new style' [w/`doc:'
23421 keyword].
23422
23423 * eval.c (top_level_value, top_level_set): Remove commented and
23424 #ifdef'd-out code.
23425 (Fdefvar): Fix usage in doc-string.
23426
23427 2001-11-03 Richard M. Stallman <rms@gnu.org>
23428
23429 * xfns.c: Include unistd.h, if it exists.
23430
23431 * editfns.c: Move the include of ctype.h after unistd.h.
23432
23433 * gmalloc.c: Test BROKEN_PROTOTYPES.
23434
23435 2001-11-03 Ken Raeburn <raeburn@gnu.org>
23436
23437 * lisp.h (CHECK_STRING_CAR): New macro.
23438 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
23439 treating XCAR and XCDR as lvalues.
23440 (openp): Use CHECK_STRING_CAR.
23441 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
23442
23443 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
23444
23445 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
23446 (SIGMASKTYPE): Define.
23447
23448 * syssignal.h (sigunblock): Don't define if already defined.
23449
23450 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23451
23452 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
23453 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
23454 Fix typos in comments.
23455
23456 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
23457 and #ifdef'd-out code.
23458 Fix and reindent comments.
23459
23460 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
23461
23462 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
23463 argument `i' in macros.
23464
23465 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
23466 `i' in macros.
23467
23468 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
23469 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
23470 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
23471 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
23472 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
23473 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
23474 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
23475 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
23476 in macros.
23477
23478 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
23479 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
23480 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
23481 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
23482 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
23483 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
23484 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
23485 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
23486 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
23487 (remove unused second argument).
23488
23489 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
23490
23491 * syntax.c (describe_syntax): New wrapper.
23492 (Finternal_describe_syntax_value): Rename from describe_syntax.
23493 Don't insert space at front and \n at the end.
23494 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
23495
23496 * regex.c (re_wctype): Try to fix some warnings.
23497 (regcomp, regexec): Don't forget the __restrict.
23498
23499 2001-11-02 Richard M. Stallman <rms@gnu.org>
23500
23501 * textprop.c (Fget_char_property): Doc fix.
23502
23503 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23504
23505 * process.c (Fstart_process): Add usage to doc-string.
23506
23507 * data.c (Fsetq_default): Ditto.
23508
23509 * callint.c (Finteractive): Ditto.
23510
23511 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
23512
23513 * macros.c: Don't include keymap.h any more.
23514
23515 2001-11-01 Richard M. Stallman <rms@gnu.org>
23516
23517 * data.c (Fmake_local_variable): Doc fix.
23518
23519 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
23520 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
23521
23522 * keymap.c (Fdescribe_buffer_bindings): Print character property
23523 bindings along with or instead of the buffer local map.
23524 Make the overriding maps override what they should.
23525
23526 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23527
23528 * window.c (grow_mini_window): Fix typo in comment.
23529
23530 2001-11-01 Gerd Moellmann <gerd@gnu.org>
23531
23532 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
23533 (XTset_vertical_scroll_bar): Likewise.
23534
23535 * xfns.c (x_build_heuristic_mask): Use four_corners_best
23536 instead of IMAGE_BACKGROUND.
23537
23538 * xfns.c (four_corners_best): Reindent.
23539
23540 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
23541 Handle :box so that it is possible to specify sexprs.
23542
23543 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
23544
23545 * s/hpux11.h: New file.
23546
23547 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23548
23549 * emacs.c (USAGE1): Show command line option --no-window-system
23550 instead of --no-windows in usage.
23551 (standard_args): Rename --no-windows to --no-window-system.
23552 (bug_reporting_address): Follow Emacs coding conventions.
23553
23554 * eval.c (Fcommandp): Doc fix.
23555 Change doc-string comments to `new style' [w/`doc:' keyword].
23556
23557 * frame.c (Fframe_live_p): Doc fix.
23558
23559 * buffer.c (selective-display-ellipses): Doc fix.
23560
23561 2001-10-31 Gerd Moellmann <gerd@gnu.org>
23562
23563 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
23564
23565 * xfaces.c (realize_x_face): If C is not a single-byte character,
23566 set the face's colors_copied_bitwise_p instead of the defaulted_p
23567 members which have a different meaning.
23568 (free_face_colors): Do nothing for a face whose colors have been
23569 copied bitwise.
23570
23571 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
23572
23573 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23574
23575 * marker.c, mocklisp.c: Change doc-string comments to `new style'
23576 [w/`doc:' keyword].
23577
23578 2001-10-31 Gerd Moellmann <gerd@gnu.org>
23579
23580 * fns.c (require_unwind): Return Lisp_Object.
23581
23582 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23583
23584 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
23585 (last-input-char): Revert doc-string to be the same as the
23586 doc-string of `last-input-event'.
23587
23588 * xdisp.c: Fix typos in comments.
23589
23590 2001-10-31 Gerd Moellmann <gerd@gnu.org>
23591
23592 * window.c (grow_mini_window): Handle case that the root
23593 window is already smaller than the nominal mininum height.
23594
23595 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
23596
23597 * emacs.c (main): Don't call keys_of_macros any more.
23598
23599 * lisp.h (keys_of_macros): Remove.
23600
23601 * macros.c (keys_of_macros): Remove.
23602
23603 * xfaces.c (Fface_attribute_relative_p): Declare args.
23604
23605 2001-10-30 Jason Rumney <jasonr@gnu.org>
23606
23607 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
23608 (enum_font_cb2): Ignore fonts with vertical orientation.
23609
23610 2001-10-30 Richard M. Stallman <rms@gnu.org>
23611
23612 * keyboard.c (Finput_pending_p): Doc fix.
23613
23614 2001-10-30 Gerd Moellmann <gerd@gnu.org>
23615
23616 * xterm.c (x_after_update_window_line): Don't run the code
23617 clearing in borders for rows whose visible height is 0.
23618
23619 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
23620 resized_p flag is set. If not set, use the much less flickering
23621 method previously used.
23622
23623 * dispnew.c (change_frame_size_1): Set frame's resized_p.
23624
23625 * frame.h (struct frame) <resized_p>: New member.
23626
23627 * lread.c (to_multibyte): Ensure read_buffer is at least twice
23628 as large as the number of bytes to convert.
23629
23630 * lread.c (to_multibyte): New function.
23631 (read1): Use it.
23632
23633 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
23634
23635 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
23636
23637 2001-10-30 Gerd Moellmann <gerd@gnu.org>
23638
23639 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
23640 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
23641 if the row's fill_line_p is set and drawing the last glyph with
23642 DRAW_IMAGE_{RAISED,SUNKEN}.
23643
23644 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
23645
23646 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
23647
23648 * xmenu.c: Include coding.h and charset.h.
23649 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
23650 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
23651 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
23652 Explicitly set wv->help. Use `TRUE' rather than `True'.
23653 (menu_help_callback): Use empty_string.
23654
23655 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
23656 (Fx_popup_dialog): Explicitly init f.
23657 (w32_menu_display_help): Use empty_string.
23658
23659 2001-10-29 Richard M. Stallman <rms@gnu.org>
23660
23661 * fns.c (Frequire): Detect recursive try to require the same
23662 feature 3 or more levels deep, and get error.
23663 (require_unwind): New subroutine.
23664 (require_nesting_list): New variable.
23665 (syms_of_fns): Init and staticpro it.
23666
23667 * print.c (print_object): Clarify indication of insertion type.
23668
23669 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
23670
23671 * coding.c (syms_of_coding): Document that locale-coding-system is
23672 used for decoding input on X.
23673
23674 * window.c (Fscroll_left, Fscroll_right): Doc fix.
23675
23676 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23677
23678 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
23679 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
23680
23681 2001-10-29 Gerd Moellmann <gerd@gnu.org>
23682
23683 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
23684 use NO_CURSOR if cursor_in_non_selected_windows is false.
23685
23686 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
23687 the slant attribute if FRAME is t.
23688
23689 * xfns.c (x_set_internal_border_width): Set frame garbaged
23690 when X window doesn't exist yet.
23691
23692 * xterm.c (x_after_update_window_line): Clear internal border
23693 in different circumstances.
23694
23695 * xterm.c (XTread_socket) <KeyPress>: Don't use
23696 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
23697 <handa@etl.go.jp>.
23698
23699 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
23700
23701 * m/ibms390.h: New file. From Adam Thornton
23702 <athornton@sinenomine.net>.
23703
23704 2001-10-28 Gerd Moellmann <gerd@gnu.org>
23705
23706 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
23707
23708 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
23709 a loop counter.
23710
23711 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23712
23713 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
23714
23715 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
23716 keyword].
23717 Fix typos in comments.
23718
23719 * emacs.c (bug_reporting_address): New function.
23720 Use it when displaying usage message.
23721
23722 * minibuf.c (read_minibuf): Remove unused external declaration of
23723 variable `Qread_only'.
23724
23725 * keymap.c (access_keymap): Remove unused variable `charset'.
23726
23727 2001-10-28 Miles Bader <miles@gnu.org>
23728
23729 * xfaces.c (merge_face_heights): Handle TO being relative as well.
23730 Remove #ifdef'd-out code.
23731 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
23732 (syms_of_xfaces): Initialize them.
23733
23734 2001-10-27 Jason Rumney <jasonr@gnu.org>
23735
23736 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
23737 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
23738 position using the system caret.
23739
23740 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
23741 (w32_system_caret_height, w32_system_caret_x)
23742 (w32_system_caret_y): New variables for tracking system caret.
23743 (w32_initialize): Initialize them.
23744 (x_display_and_set_cursor): Make system caret follow the active cursor.
23745
23746 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
23747 New messages types.
23748
23749 * w32term.c (note_mouse_highlight): Clear old help_echo.
23750
23751 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23752
23753 * xterm.c: Fix typo in a comment.
23754
23755 * emacs.c: Fix typos in comments.
23756 Remove unnecessary spaces.
23757 Change doc-string comments to `new style' [w/`doc:' keyword].
23758 (USAGE2): Fix typos in usage string.
23759
23760 * xterm.c: Fix typo in a comment.
23761
23762 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
23763 emacs.c.
23764
23765 2001-10-27 Gerd Moellmann <gerd@gnu.org>
23766
23767 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
23768 instead of 1/2 line_height in the heuristic for skipping
23769 farther backward when target_y was not reached.
23770
23771 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
23772 Display errno only if non-zero.
23773 (sound_warning): New function.
23774 (vox_configure): Don't treat failing to set sample rate as error.
23775 (various places): Improve error messages.
23776
23777 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
23778
23779 * fileio.c (Faccess_file): Run the argument filename through
23780 Fexpand_file_name, before using it.
23781
23782 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
23783 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
23784
23785 2001-10-26 Gerd Moellmann <gerd@gnu.org>
23786
23787 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
23788
23789 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
23790 Fix clearing in the case of scroll bars on the right.
23791
23792 2001-10-26 Juanma Barranquero <lektu@terra.es>
23793
23794 * w32gui.h (XImage): Add a dummy typedef.
23795
23796 2001-10-26 Gerd Moellmann <gerd@gnu.org>
23797
23798 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
23799
23800 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
23801
23802 * frame.c (Fframe_parameter): Fix last change.
23803
23804 * fileio.c: Revert last change (which removed old commented-out
23805 version of expand-file-name). Add a comment that explains why
23806 this old version should not be removed.
23807
23808 2001-10-25 Gerd Moellmann <gerd@gnu.org>
23809
23810 * frame.c (Fframe_parameter): Fix a bug whereby some
23811 ``artificial'' frame parameters, like `minibuffer' were not
23812 obtained by calling Fframe_parameters.
23813
23814 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
23815 cursor differently.
23816
23817 * xdisp.c (move_it_vertically_backward): Compute line height
23818 differently. Add heuristic to try to be more compatible to 20.x.
23819
23820 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
23821
23822 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
23823
23824 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
23825 boolean.
23826
23827 2001-10-25 Miles Bader <miles@gnu.org>
23828
23829 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
23830 BG is a pointer to a structure, not a structure.
23831 (gif_format, png_format): Add missing commas.
23832
23833 2001-10-24 Richard M. Stallman <rms@gnu.org>
23834
23835 * xfaces.c (Fface_attributes_as_vector): New function.
23836 (syms_of_xfaces): Defsubr it.
23837
23838 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23839
23840 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
23841 variable `area'.
23842
23843 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23844
23845 * search.c (scan_newline): Remove unused variable `selective_display'.
23846
23847 2001-10-25 Miles Bader <miles@gnu.org>
23848
23849 * dispextern.h (struct image): Add `background',
23850 `background_valid', and `background_transparent' fields.
23851 (image_background, image_background_transparent): New declarations.
23852 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
23853 * xfns.c (image_background, image_background_transparent)
23854 (four_corners_best): New functions.
23855 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
23856 (gs_format): Add `:background' entry.
23857 (lookup_image): Set IMG's background color if specified.
23858 (pbm_load, xbm_load_image, png_load): Set IMG's background field
23859 when appropriate.
23860 (x_clear_image_1): Reset `background_valid' and
23861 `background_transparent_valid' fields.
23862 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
23863 calculating it here. Set IMG's background_transparent field.
23864 (enum xpm_keyword_index): Add XPM_BACKGROUND.
23865 (enum png_keyword_index): Add PNG_BACKGROUND.
23866 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
23867 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
23868 (enum gif_keyword_index): Add GIF_BACKGROUND.
23869 (enum gs_keyword_index): Add GS_BACKGROUND.
23870 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
23871 Pre-calculate image background color where necessary.
23872 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
23873 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
23874 color to use for image glyph reliefs.
23875
23876 2001-10-24 Gerd Moellmann <gerd@gnu.org>
23877
23878 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
23879 in full-width rows.
23880
23881 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
23882 Fix clearing of area not covered by scroll bar.
23883
23884 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23885
23886 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
23887 and `real_start'.
23888 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
23889 (glyph_rect): Remove unused variable `area'.
23890
23891 2001-10-24 Gerd Moellmann <gerd@gnu.org>
23892
23893 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
23894
23895 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
23896 (row_containing_pos): Take additional argument DY.
23897 Treat rows ending in middle of char differently.
23898 (display_line): Handle tabs on window systems differently.
23899
23900 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
23901 with additional argument.
23902
23903 * dispextern.h (row_containing_pos): Adjust prototype.
23904
23905 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
23906 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
23907 (try_window_id, try_window_reusing_current_matrix)
23908 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
23909 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
23910
23911 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23912
23913 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
23914 gnuemacs).
23915 (HAVE_BOXES): Fix typo in comment.
23916 (push_menu_pane): Fix typo in comment.
23917
23918 * xdisp.c (display_prop_string_p): Remove unused local declaration
23919 of `Qwhen'.
23920 (single_display_prop_string_p): Remove unused local declarations
23921 of `Qwhen' and `Qmargin'.
23922 (string_buffer_position): Remove unused variable `around'.
23923 (store_frame_title): Remove unused variable `width'.
23924
23925 * window.c: Don't define max.
23926 (coordinates_in_window): Remove unused variable `uy'.
23927
23928 * widget.c: Don't define max.
23929
23930 * process.c: Don't define max.
23931 (create_process): Remove unused variable `buffer'.
23932
23933 2001-10-23 Gerd Moellmann <gerd@gnu.org>
23934
23935 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
23936
23937 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
23938
23939 * xfaces.c (Finternal_set_lisp_face_attribute)
23940 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
23941 frame is on a windowed display.
23942
23943 2001-10-23 Gerd Moellmann <gerd@gnu.org>
23944
23945 * dispnew.c (sync_window_with_frame_matrix_rows):
23946 Fix handling of windows which aren't full-width, fix handling
23947 of marginal areas.
23948
23949 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
23950
23951 2001-10-23 Andreas Schwab <schwab@suse.de>
23952
23953 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
23954 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
23955
23956 2001-10-23 Gerd Moellmann <gerd@gnu.org>
23957
23958 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
23959 REAL_END. Notice if cursor gets overwritten.
23960 (notice_overwritten_cursor): Take X positions as parameters.
23961 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
23962 around call to x_draw_glyphs.
23963
23964 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23965
23966 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
23967 instead of C) and usage.
23968
23969 * editfns.c (char-to-string): Fix argument names (use CHAR instead
23970 of C) and usage.
23971
23972 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
23973 `left', `max_width' and `max_height'.
23974
23975 2001-10-23 Gerd Moellmann <gerd@gnu.org>
23976
23977 * xdisp.c (display_line): For a tab continued to the next line,
23978 set row's ends_in_middle_of_char_p.
23979
23980 2001-10-22 Gerd Moellmann <gerd@gnu.org>
23981
23982 * xdisp.c (display_line): Fix computation of continuation lines
23983 width for TABs.
23984
23985 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23986
23987 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
23988 `Qlaplace'.
23989
23990 * fileio.c: Remove unused code.
23991
23992 2001-10-22 Miles Bader <miles@gnu.org>
23993
23994 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
23995 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
23996 Remove `DOC_STRINGS_IN_COMMENTS' cases.
23997
23998 2001-10-21 Jason Rumney <jasonr@gnu.org>
23999
24000 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
24001
24002 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
24003
24004 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
24005 (Finsert_string): Avoid the multi-line string literals warning.
24006
24007 2001-10-22 Miles Bader <miles@gnu.org>
24008
24009 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
24010 (Fdocumentation): Don't use it.
24011 (syms_of_doc): Don't initialize it.
24012
24013 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
24014 * print.c (Fwith_output_to_temp_buffer): Likewise.
24015 * window.c (Fsave_window_excursion): Likewise.
24016 * editfns.c (Fsave_excursion, Fsave_current_buffer)
24017 (Fsave_restriction): Likewise.
24018 * eval.c (Frun_hooks, Frun_hook_with_args)
24019 (Frun_hook_with_args_until_failure)
24020 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
24021 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
24022 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
24023 (Funwind_protect, Fcondition_case): Likewise.
24024 * coding.c (Ffind_operation_coding_system): Likewise.
24025 * keyboard.c (Ftrack_mouse): Likewise.
24026
24027 2001-10-21 Miles Bader <miles@gnu.org>
24028
24029 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
24030 (Fmake_hash_table): Add usage: string to doc string.
24031 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
24032 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
24033 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
24034 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
24035 (Fml_prefix_argument_loop): Likewise.
24036
24037 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24038
24039 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
24040
24041 * sysdep.c (init_sys_modes): Change doc-string comments to `new
24042 style' [w/`doc:' keyword].
24043
24044 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
24045 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
24046 comments to `new style' [w/`doc:' keyword].
24047
24048 2001-10-21 Jason Rumney <jasonr@gnu.org>
24049
24050 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
24051
24052 * w32term.c (remember_mouse_glyph): New function.
24053 (w32_mouse_position): Use it.
24054 (note_mouse_movement): If the mouse moved off the glyph, remember
24055 its new position.
24056
24057 * w32term.h (struct w32_output): Correct spelling of x_compatible.
24058 (w32_display_info): Add mouse_face_overlay.
24059
24060 * w32term.c (notice_overwritten_cursor): Renamed from
24061 note_overwritten_text_cursor. Rewritten to take glyph widths into
24062 account.
24063 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
24064 (fast_find_string_pos): New function.
24065 (fast_find_position): Return the correct vpos. Add parameter
24066 STOP. In the final row, stop before glyphs having STOP as object.
24067 Don't consider glyphs that are not from a buffer.
24068 (fast_find_position) [0]: Add a presumably more correct version
24069 for after 21.1.
24070 (expose_window_tree, expose_frame): Don't compute intersections here.
24071 (expose_window): Do it here instead.
24072 (expose_window_tree, expose_window, expose_line): Return 1 when
24073 overwriting mouse-face.
24074 (expose_window): If W is the window currently being updated, mark
24075 the frame garbaged.
24076 (expose_frame): If mouse-face was overwritten, redo it.
24077 (x_use_underline_position_properties): New variable.
24078 (syms_of_xterm): DEFVAR_BOOL it.
24079 (x_draw_glyph_string): Add comment to use it in future.
24080 (x_draw_glyph_string): Restore clipping after drawing box.
24081 Fix a computation of the underline position.
24082 (w32_get_glyph_string_clip_rect): Minor cleanup.
24083 (x_fill_stretch_glyph_string): Remove an assertion.
24084 (x_produce_glyphs): Don't convert multibyte characters
24085 to unibyte characters in unibyte buffers.
24086 (cursor_in_mouse_face_p): New function.
24087 (x_draw_stretch_glyph_string): Use it to choose a different GC
24088 when drawing a cursor within highlighted text. Don't draw
24089 background again if it has already been drawn.
24090 (x_draw_glyph_string_box): Don't draw a full-width
24091 box just because the glyph row's full_width_p flag is set.
24092 (x_draw_glyphs): Fix computation of rightmost x for
24093 full-width rows.
24094 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
24095 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
24096 change bottom shadow accordingly. Some cleanup.
24097 (x_update_window_end): Handle overwritten mouse face
24098 also for tool bar windows.
24099 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
24100 DRAW is DRAW_IMAGE_RAISED.
24101 (clear_mouse_face): Return 1 if text with mouse face was
24102 actually redrawn. Make the function static.
24103 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
24104 optimize away highlighting if we pass over that same overlay again.
24105 (note_mouse_highlight): Call mouse_face_overlay_overlaps
24106 to detect a case where we have to highlight a different region
24107 despite not having left the currently highlighted region.
24108 Set mouse_face_overlay in the x_display_info. Avoid changing the
24109 mouse pointer shape when show_mouse_face has already done it, or
24110 there is no need. Handle mouse-face and help-echo in strings.
24111 (glyph_rect): New function.
24112 (w32_mouse_position): Use it to raise the threshold for mouse
24113 movement event generation.
24114 (w32_initialize_display_info): Initialize the x_display_info's
24115 mouse_face_overlay.
24116 (w32_set_vertical_scroll_bar): Don't clear a zero height
24117 or width area.
24118 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
24119 a widget to zero height.
24120
24121 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
24122 Protect unibyte strings created by replacing their multibyte
24123 equivalents in menu_items.
24124 (w32_menu_show): Don't overwrite an item's name with its key
24125 description in case the description is a multibyte string.
24126 (single_submenu): Some cleanup.
24127
24128 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
24129 (postprocess_image): New function.
24130 (lookup_image): Call it for all image types except PostScript.
24131 (x_kill_gs_process): Call postprocess_image.
24132 (tiff_error_handler, tiff_warning_handler): New functions.
24133 (tiff_load): Install them as handlers.
24134 (x_kill_gs_process): Recognize if someone has cleared the image
24135 cache under us.
24136 (valid_image_p): Protect better against invalid image
24137 specifications. Previous code could signal an error.
24138 (Fx_hide_tip, Fshow_tip): Doc fix.
24139 (Fv_max_tooltip_size): New variable.
24140 (syns_of_xfns): DEFVAR_LISP it.
24141 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
24142 window buffer to *tip* right after creating the frame. Set frame's
24143 window_width. Use a maximum tooltip size specified by
24144 Vx_max_tooltip_size, if that has valid contents.
24145 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
24146 Make sure the tooltip is completely visible.
24147 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
24148 (Fx_create_frame): Adjust the frame's height for presence
24149 of the tool bar before calling x_figure_window_size.
24150 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
24151 when the window gets smaller.
24152 (x_set_foreground_color): Set frame's cursor_pixel.
24153 (x_set_foreground_color, x_set_background_color): Cleaned up.
24154 (x_set_font): Handle case of x_new_fontset returning the same name
24155 as before, although there was a change in fontsets.
24156
24157 2001-10-21 Miles Bader <miles@gnu.org>
24158
24159 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
24160 (Flogxor): Add usage: string to doc string.
24161 * charset.c (Fstring): Likewise.
24162 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
24163 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
24164
24165 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24166
24167 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
24168
24169 * alloc.c: Reindent DEFUNs with doc: keywords.
24170
24171 * abbrev.c (Finsert_abbrev_table_description): Reindent.
24172
24173 * frame.c: Change doc-string comments to `new style' [w/`doc:'
24174 keyword].
24175
24176 See ChangeLog.9 for earlier changes.
24177
24178 ;; Local Variables:
24179 ;; coding: iso-2022-7bit
24180 ;; End:
24181
24182 Copyright (C) 2001, 2002, 2003, 2004, 2005,
24183 2006 Free Software Foundation, Inc.
24184 Copying and distribution of this file, with or without modification,
24185 are permitted provided the copyright notice and this notice are preserved.
24186
24187 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4