]> code.delx.au - gnu-emacs/blob - src/ChangeLog
(x_set_name_internal): Set icon to `text', derived from name, when
[gnu-emacs] / src / ChangeLog
1 2006-06-02 John Paul Wallington <jpw@gnu.org>
2
3 * xfns.c (x_set_name_internal): Set icon to `text', derived from
4 name, when frame's icon_name isn't a string rather than only when
5 it is nil.
6
7 2006-06-03 Eli Zaretskii <eliz@gnu.org>
8
9 * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
10 and not nil.
11
12 2006-06-02 Chong Yidong <cyd@stupidchicken.com>
13
14 * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
15 string.
16
17 2006-06-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18
19 * xdisp.c (next_element_from_composition): Set it->object to
20 it->string if composition is coming from string.
21 (set_cursor_from_row): Don't return 0 unless row displays a
22 continued line.
23 (dump_glyph): Dump composite glyph.
24
25 2006-06-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
26
27 * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
28
29 2006-06-01 Richard Stallman <rms@gnu.org>
30
31 * window.c (Fsplit_window): Doc fix.
32
33 2006-06-01 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
34
35 * process.c (deleted_pid_list): New variable to store the pids
36 of deleted processes. Declare it only if SIGCHLD is defined.
37 (init_process): Initialize it.
38 (syms_of_process): Staticpro it.
39 (Fdelete_process): Add pid of the deleted process to it. Check after
40 the addition and before the kill if the process is already stopped,
41 in which case it is deleted from the list and not killed.
42 (sigchld_handler): Define it only if SIGCHLD is. Search the process
43 that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
44 Original idea by Stefan Monnier.
45
46 2006-06-01 Kim F. Storm <storm@cua.dk>
47
48 * dispnew.c (sit_for): Perform redisplay even if input is pending
49 when redisplay-dont-pause is non-nil.
50
51 2006-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
52
53 * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
54 (XTread_socket): Remove obsolete comment.
55
56 2006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
57
58 * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
59 menu-bar-open.
60
61 2006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
62
63 * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
64 menu-bar-open.
65
66 * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
67
68 2006-05-31 Juri Linkov <juri@jurta.org>
69
70 * minibuf.c (Vhistory_add_new_input): New variable.
71 (read_minibuf): Use it.
72 (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
73 (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
74
75 2006-05-31 Kim F. Storm <storm@cua.dk>
76
77 * process.c (select_wrapper): Add wrapper around select to work around
78 "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
79 select called from wait_reading_process_output.
80
81 2006-05-30 Andreas Schwab <schwab@suse.de>
82
83 * xmenu.c (Fmenu_bar_start): Return a value.
84
85 2006-05-30 Richard Stallman <rms@gnu.org>
86
87 * coding.c (Ffind_operation_coding_system): Doc fix.
88
89 2006-05-30 Eli Zaretskii <eliz@gnu.org>
90
91 * w32term.c (x_draw_hollow_cursor): Fix last change.
92
93 2006-05-29 Kim F. Storm <storm@cua.dk>
94
95 * w32term.c (x_draw_stretch_glyph_string): Fix last change.
96
97 2006-05-29 Eli Zaretskii <eliz@gnu.org>
98
99 * coding.c (Ffind_operation_coding_system): Doc fix.
100
101 2006-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
102
103 * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
104 Call mac_set_font_info_for_selection if font panel is made visible.
105
106 * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
107 (mac_font_panel_visible_p, mac_show_hide_font_panel)
108 [USE_MAC_FONT_PANEL]: New functions.
109 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Return
110 immediately if font panel is not visible.
111
112 * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
113 Add externs.
114
115 2006-05-29 Dan Nicolaescu <dann@ics.uci.edu>
116
117 * search.c (matcher_overflow): Mark as NO_RETURN.
118
119 * xterm.c (x_connection_closed): Likewise.
120
121 * sysdep.c (croak): Likewise.
122
123 * sound.c (sound_perror, alsa_sound_perror): Likewise.
124
125 * lisp.h (die, nsberror): Likewise.
126
127 2006-05-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
128
129 * sound.c (alsa_open, alsa_configure, alsa_write): Move
130 assignment to err out of if-statement.
131
132 * gtkutil.c (menu_nav_ended): New function.
133 (create_menus): Connect menu_nav_ended to "selection-done" to fix
134 grabs.
135
136 * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
137
138 2006-05-28 Dan Nicolaescu <dann@ics.uci.edu>
139
140 * charset.h (invalid_character): Mark as NO_RETURN.
141
142 2006-05-29 Kenichi Handa <handa@m17n.org>
143
144 * coding.c (Ffind_operation_coding_system): Call a function by
145 safe_call1 instead of call1.
146
147 2006-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
148
149 * window.c (struct saved_window): Add `dedicated'.
150 (Fset_window_configuration, save_window_save): Save/restore the
151 `dedicated' flag.
152
153 2006-05-28 Kim F. Storm <storm@cua.dk>
154
155 * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
156 don't update w->cursor and return 0. Return 1 on success.
157 (try_cursor_movement): Repeat set_cursor_from_row on successive rows
158 until it succeeds.
159
160 * dispextern.h (set_cursor_from_row): Update prototype.
161
162 2006-05-28 Kim F. Storm <storm@cua.dk>
163
164 * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
165 parameters. Adjust x and width in case cursor in on a partially
166 visible stretch glyph on the left edge.
167 (erase_phys_cursor): Don't erase into left fringe/margin in case
168 previous cursor glyph is a partially visible stretch glyph on left.
169
170 * dispextern.h (get_phys_cursor_geometry): Update prototype.
171
172 * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
173 cursor and erasing cursor on partially visible stretch glyph on left.
174 (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
175
176 * macterm.c: Likewise.
177
178 * w32term.c: Likewise.
179
180 2006-05-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
181
182 * macselect.c (mac_handle_apple_event):
183 Return errAEEventNotHandled if key binding is not found.
184
185 2006-05-26 Eli Zaretskii <eliz@gnu.org>
186
187 * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
188 [__MINGW32__]: MinGW-specific declaration of `etext'.
189
190 * w32heap.c (etext, edata): Remove unused definitions.
191
192 2006-05-26 Chong Yidong <cyd@stupidchicken.com>
193
194 * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
195 Incorporate the exclusive file-opening functionality into the behavior
196 when OK-IF-ALREADY-EXISTS is nil.
197 (Frename_file): Call Fcopy_file without MUSTBENEW argument.
198
199 2006-05-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
200
201 * sound.c (alsa_configure): Move get period/buffer_size after
202 setting hwparams.
203
204 2006-05-26 Kenichi Handa <handa@m17n.org>
205
206 * coding.c (Ffind_operation_coding_system): Allow (FILENAME
207 . BUFFER) in TARGET.
208
209 2006-05-25 Chong Yidong <cyd@stupidchicken.com>
210
211 * image.c (png_load): Don't call fclose on NULL.
212
213 2006-05-25 Luc Teirlinck <teirllm@auburn.edu>
214
215 * fns.c (Fyes_or_no_p):
216 * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
217 only seven args.
218
219 2006-05-25 Juri Linkov <juri@jurta.org>
220
221 * lisp.h (Fread_from_minibuffer): Decrement number of args.
222
223 * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed.
224 (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed.
225
226 * buffer.c (mode-line-format): Fix docstring.
227
228 2006-05-25 Richard Stallman <rms@gnu.org>
229
230 * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
231
232 2006-05-24 Luc Teirlinck <teirllm@auburn.edu>
233
234 * puresize.h (BASE_PURESIZE): Increase to 1210000.
235
236 2006-05-24 Alan Mackenzie <acm@muc.de>
237
238 * lread.c (Vload_history): Enhance doc-string to say that the file
239 is the absolute truename of the loaded file.
240
241 * lread.c (Vafter_load_alist): doc-string: state that an element
242 now has a regexp to match file names, not a file name as such.
243
244 * lread.c (readevalloop): Call file-truename on the name for
245 load-history, except at preloading time.
246
247 * lread.c (Fload): At preloading time, preserve the extension of
248 the filename which goes into load-history. New var hist_file_name.
249
250 * lread.c (Fload): Do eval-after-load stuff by calling the lisp
251 function do-after-load-evaluation.
252
253 2006-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
254
255 * mac.c (ae_attr_table): New variable.
256 (syms_of_mac): Intern and staticpro its elements.
257 (mac_aelist_to_lisp): Also convert Apple event attributes.
258 (mac_ae_put_lisp): New function.
259 (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
260
261 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
262
263 * macselect.c (Qemacs_suspension_id): New variable.
264 (syms_of_macselect): Intern and staticpro it.
265 (struct suspended_ae_info): New struct.
266 (deferred_apple_events, defer_apple_events)
267 (Fmac_process_deferred_apple_events): Use it.
268 (suspended_apple_events): New variable.
269 (mac_handle_apple_event_1): New function.
270 (mac_handle_apple_event): Use it. Don't process previously
271 suspended events.
272 (cleanup_suspended_apple_events, get_suspension_id)
273 (cleanup_all_suspended_apple_events): New functions.
274 (init_apple_event_handler): Call cleanup_all_suspended_apple_events
275 at exit.
276 (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
277 (Fmac_resume_apple_event): New defuns.
278 (syms_of_macselect): Defsubr them.
279
280 * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
281 Fix last change. Don't map `fn' modifier if pressed with F1 ... F12.
282
283 * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
284 (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
285 (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
286 (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
287 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
288 Likewise.
289 (typeUTF8Text, kEventParamWindowMouseLocation)
290 [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
291 (x_get_focus_frame, mac_ae_put_lisp): Add externs.
292
293 2006-05-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
294
295 * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
296 (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
297 (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
298 (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
299 (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
300 resource to backtranslate key with modifiers.
301 (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
302
303 2006-05-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
304
305 * xterm.c: Remove declarations already in xterm.h
306
307 * xterm.h: Add extern declarations for x_clear_errors,
308 x_fully_uncatch_errors, x_catching_errors and
309 x_alloc_lighter_color_for_widget. Remove duplicated declarations.
310
311 2006-05-21 Richard Stallman <rms@gnu.org>
312
313 * xfaces.c (best_matching_font): Abort for best == NULL
314 before we start to use it.
315
316 * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
317
318 2006-05-20 Kim F. Storm <storm@cua.dk>
319
320 * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
321
322 2006-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
323
324 * macterm.c (convert_fn_keycode): Fix last change.
325
326 2006-05-19 Eli Zaretskii <eliz@gnu.org>
327
328 * w32.c (init_environment): Perform the processing of environment
329 variables on a copy of default variables and their values, not on
330 the original. Simplify code that calls ExpandEnvironmentStrings
331 and make buf1[] and buf2[] more visible for easier debugging.
332
333 2006-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
334
335 * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
336
337 * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
338
339 * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
340
341 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
342 Forward keyUp events to toolbox_dispatcher.
343
344 * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
345
346 2006-05-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
347
348 * config.in: Regenerated (HAVE_ALSA).
349
350 * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
351 (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
352 (snd_error_quiet, alsa_init): New functions.
353 (vox_init): Return 0 if unable to open device.
354 (Fplay_sound_internal): Test for alsa first and use vox (oss) as
355 a fallback.
356 (struct sound_device): Add period_size.
357 (wav_play, au_play): Use period_size if set.
358
359 * Makefile.in (CFLAGS_SOUND): New flags for ALSA
360 (ALL_CFLAGS): Add CFLAGS_SOUND
361
362 2006-05-18 Kenichi Handa <handa@m17n.org>
363
364 * callproc.c (Fcall_process): Reject encoding arguments by
365 ascii-incompatible coding systems (e.g. utf-16).
366
367 * coding.c (Qascii_incompatible): New variable.
368 (syms_of_coding): Setup Qascii_incompatible.
369 (setup_coding_system): Be sure to initialize coding->common_flags.
370 Check `ascii-incompatible' property of the coding system.
371
372 * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
373
374 2006-05-18 Kim F. Storm <storm@cua.dk>
375
376 * xdisp.c (display_tool_bar_line): Restore entire tool-bar geometry when
377 backtracking in case last image doesn't fit on line.
378
379 2006-05-18 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
380
381 * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by more than
382 height of one frame default line.
383
384 2006-05-17 Richard Stallman <rms@gnu.org>
385
386 * xfaces.c (better_font_p): Any font beats no font.
387 (best_matching_font): Simplify based on above change.
388
389 * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
390
391 2006-05-16 Kim F. Storm <storm@cua.dk>
392
393 * xterm.c (handle_one_xevent): Check that f is not NULL before
394 calling x_kill_gs_process.
395
396 2006-05-14 Richard Stallman <rms@gnu.org>
397
398 * textprop.c (Fnext_single_char_property_change)
399 (Fprevious_single_char_property_change): Don't allow returning
400 value beyond LIMIT in any cases.
401 (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
402
403 * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
404
405 2006-05-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
406
407 * xterm.c (handle_one_xevent): Check that f is not NULL before
408 calling _XEditResCheckMessages.
409
410 2006-05-14 Kim F. Storm <storm@cua.dk>
411
412 * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
413
414 2006-05-13 Eli Zaretskii <eliz@gnu.org>
415
416 * frame.c (x_set_border_width): Fix error message to say "frame",
417 not "window".
418
419 * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
420
421 2006-05-12 Chong Yidong <cyd@stupidchicken.com>
422
423 * intervals.c (set_point_both): Fix mixup before before and after
424 in variable names.
425
426 * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
427 while setting point temporarily.
428
429 2006-05-11 Richard Stallman <rms@gnu.org>
430
431 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
432
433 2006-05-11 Kim F. Storm <storm@cua.dk>
434
435 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
436
437 2006-05-11 Kenichi Handa <handa@m17n.org>
438
439 * fileio.c (Finsert_file_contents): Fix for the case of IO error
440 while handling replace operation.
441
442 2006-05-10 Kenichi Handa <handa@m17n.org>
443
444 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
445 chosen for the default face was different from the frame font,
446 adjust the frame font.
447
448 2006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
449
450 * image.c (Qduration) [MAC_OS]: Undo previous change.
451 (syms_of_image) [MAC_OS]: Likewise.
452 [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
453
454 * macfns.c (x_to_mac_color): Fix shift amount change.
455 (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
456 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
457
458 * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
459 Vmac_services_selection. All uses changed.
460 (mac_store_service_event): Rename from mac_store_services_event in
461 extern and calls.
462
463 * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses
464 changed.
465 [MAC_OSX] (mac_store_service_event): Rename from
466 mac_store_services_event. All callers changed.
467 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
468 FACE_ID and C. All callers changed.
469 (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
470 mac_set_font_info_for_selection when focus frame is destroyed.
471 (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
472
473 * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
474 args in extern.
475
476 2006-05-09 Chong Yidong <cyd@stupidchicken.com>
477
478 * keymap.c (describe_map): Avoid generating duplicate entries if
479 the shadowed binding has the same definition.
480
481 2006-05-09 Kenichi Handa <handa@m17n.org>
482
483 * keymap.c (push_key_description): Handle invalid character key.
484
485 2006-05-08 Kenichi Handa <handa@m17n.org>
486
487 * callproc.c (Fcall_process): Use system_eol_type for encoding
488 arguments if eol_type is not yet decided.
489
490 * coding.h (system_eol_type): Extern it.
491
492 * coding.c (setup_coding_system): For invalid coding-system, set
493 coding->eol_type to CODING_EOL_UNDECIDED.
494 (encode_coding): Cancel previous change.
495 (shrink_encoding_region): Likewise.
496 (code_convert_region1): Likewise.
497 (code_convert_string1): Likewise.
498 (code_convert_string_norecord): Likewise.
499
500 * fileio.c (choose_write_coding_system): Use system_eol_type for
501 encoding if eol_type is not yet decided.
502
503 * process.c (setup_process_coding_systems): Use system_eol_type
504 for encoding if eol_type is not yet decided.
505 (read_process_output): Likewise.
506 (send_process): Likewise.
507
508 2006-05-07 Juanma Barranquero <lekktu@gmail.com>
509
510 * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
511
512 2006-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
513
514 * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
515 (syms_of_mac): Likewise for defsubr.
516
517 * macfns.c (mac_set_font): New function.
518 (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
519 (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
520 kWindowToolbarButtonAttribute when creating window.
521 (Fmac_clear_font_name_table): Move from macfns.c.
522 (syms_of_macfns): Likewise for defsubr.
523 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
524 (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
525
526 * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
527 and build is done on Mac OS X 10.2 and later.
528
529 * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
530 (mac_store_services_event): Change return type in extern.
531
532 * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
533 FMFontFamily value.
534 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
535 (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
536 (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
537 (QWindow) [MAC_OSX]: Likewise.
538 (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
539 (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
540 (syms_of_macterm) [USE_ATSUI]: Defvar it.
541 (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
542 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
543 (syms_of_macterm): Intern and staticpro them.
544 (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
545 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event): New
546 function.
547 [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
548 [MAC_OSX] (mac_store_services_event): Likewise.
549 [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
550 kEventWindowToolbarSwitchMode event.
551 (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
552 [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
553 [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
554 (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
555 (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
556
557 * macterm.h (mac_set_font_info_for_selection): Add extern.
558
559 2006-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
560
561 * image.c (Qduration) [MAC_OS]: New variable.
562 (syms_of_image) [MAC_OS]: Intern and staticpro it.
563 [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
564 [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
565 instead of cfstring_create_with_string.
566
567 2006-05-06 Kim F. Storm <storm@cua.dk>
568
569 * .gdbinit (xframe): Print frame name.
570 (xlist): New command to print a list (max 10 elements).
571 (xpr): Print lisp object of any type.
572 (pitx): Print it->pixel_width.
573
574 2006-05-05 Kenichi Handa <handa@m17n.org>
575
576 * xdisp.c (handle_composition_prop): Fix for the case of empty
577 composition component.
578
579 2006-05-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
580
581 * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
582 from event->arg.
583
584 * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
585 MAC_APPLE_EVENT.
586
587 * macterm.h (mac_make_lispy_event_code): Remove extern.
588 (mac_post_mouse_moved_event): Add extern.
589 (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
590 `const AEDesc *' in externs.
591 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
592
593 * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
594 `const AEDesc *'.
595 [TARGET_API_MAC_CARBON] (create_apple_event): New function.
596 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
597 Use xrealloc instead of repeated xmalloc/xfree.
598 [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref): New
599 function.
600
601 * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
602
603 * macselect.c: Update copyright year.
604 (mac_store_apple_event): Change return type to void in extern.
605 (mac_handle_apple_event): Don't get return value from
606 mac_store_apple_event.
607 [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
608 (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
609 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
610 macterm.c. Use Vmac_dnd_known_types as acceptable flavors.
611 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New
612 implementation using create_apple_event_from_drag_ref.
613 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
614 (mac_do_receive_dragUPP): Move variables from macterm.c.
615 (install_drag_handler, remove_drag_handler): New functions.
616
617 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
618 path select also for proxy icon click.
619 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
620 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
621 (xlfdpat_create): Remove unused label `error' and trailing sentences.
622 (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
623 (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
624 macselect.c.
625 (install_drag_handler, remove_drag_handler): Add extern.
626 (mac_store_apple_event): Change return type to void. All uses changed.
627 Create Lisp object from Apple event and store it into input event.
628 (mac_make_lispy_event_code): Remove function.
629 [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
630 (install_window_handler): Call install_drag_handler.
631 (remove_window_handler): Call remove_drag_handler.
632
633 2006-05-03 Richard Stallman <rms@gnu.org>
634
635 * sound.c (Fplay_sound_internal): Dynamically allocate
636 current_sound_device and current_sound.
637 (sound_cleanup): Free them.
638
639 * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
640 when inside a keyboard macro.
641
642 2006-05-02 Andreas Schwab <schwab@suse.de>
643
644 * xmenu.c (restore_menu_items): Return a value.
645
646 2006-05-01 Martin Rudalics <rudalics@gmx.at>
647
648 * syntax.c (Fforward_comment): Detect generic comment at beginning of
649 buffer when moving backwards.
650
651 2006-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
652
653 * dispnew.c (update_window): Don't set changed_p when mode/header
654 line is updated.
655
656 * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
657 (get_glyph_face_and_encoding, get_char_face_and_encoding):
658 Don't distinguish known faces from others.
659
660 * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
661 through typeFileURL failed.
662
663 * macfns.c (mac_update_title_bar): New function.
664 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
665 (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
666 Call mac_prepare_for_quickdraw.
667
668 * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
669 (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
670 (enum pcm_status): New enum.
671 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
672 (XCharStructRow): Remove. Now validity is represented by
673 non-negativeness of sum of ascent and descent.
674 (struct MacFontStruct): Change type of member `rows'.
675 (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
676
677 * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
678 Adjust endpoints of strictly horizontal/vertical lines.
679 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
680 (pcm_init, pcm_get_status): New functions.
681 (x_per_char_metric, XLoadQueryFont): Use them instead of
682 XCharStructRow and related macros.
683 (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
684 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
685 (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
686 and window path pop-up menu on title bar.
687 (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
688
689 * macterm.h (mac_update_title_bar): Add extern.
690 (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
691 (FRAME_FILE_NAME): New macro.
692
693 * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
694
695 2006-04-30 Richard Stallman <rms@gnu.org>
696
697 * keymap.c (Fdefine_key): Improve error message
698 when KEY begins with a non-prefix key.
699
700 2006-04-30 Martin Rudalics <rudalics@gmx.at>
701
702 * syntax.c (Fforward_comment): Don't forget to break out of the loop
703 when we skipped backward over a generic comment.
704
705 2006-04-27 Nick Roberts <nickrob@snap.net.nz>
706
707 * .gdbinit (pp1, pv1): Only print value as expression is now
708 printed out by gud-print.
709 (pv1): Correct doc string.
710
711 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
712
713 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
714 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
715 keymap.c:895: error: address of register variable `def' requested.
716
717 2006-04-26 Jason Rumney <jasonr@gnu.org>
718
719 * w32term.c (construct_mouse_wheel): Handle negative coordinates.
720
721 * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
722 <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
723 where we preempt mouse_button_timer.
724
725 2006-04-25 Miles Bader <miles@gnu.org>
726
727 * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
728
729 2006-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
730
731 * process.h: Include headers for pid_t.
732
733 2006-04-24 Kim F. Storm <storm@cua.dk>
734
735 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
736 does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
737 (produce_stretch_glyph): Assume that face box height and width is
738 already included in stretch glyph size so caller doesn't have to
739 consider the extra space otherwise added (fixes problem in ses.el).
740
741 * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
742 matrices to force recalculation of tool-bar height after font change.
743
744 * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
745 Clear it when done, so we don't accidentally draw a second copy of
746 the tool-bar after resetting f->n_tool_bar_rows.
747 (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
748 we recalculate f->n_tool_bar_rows.
749
750 2006-04-23 Lars Hansen <larsh@soem.dk>
751
752 * editfns.c (find_field): Fix comment.
753 (Ffield_beginning): Fix bug when POS is at field beginning.
754
755 2006-04-22 Eli Zaretskii <eliz@gnu.org>
756
757 * puresize.h (BASE_PURESIZE): Increase to 1205000.
758
759 2006-04-21 Kim F. Storm <storm@cua.dk>
760
761 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
762 window start is at BEGV.
763
764 * dispextern.h (struct image): New member `corners'.
765 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
766
767 * image.c (four_corners_best): New arg CORNERS specifies what pixels
768 to look at in case image has margin.
769 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
770 (image_background, image_background_transparent)
771 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
772 (gif_load): Set img->corners according to image's margin spec.
773 Use img->corners values directly where applicable.
774 Save image extension data in img->data.lisp_val.
775 (gif_clear_image): New function to free img->data.lisp_val.
776 (gif_type): Use it instead of generic x_clear_image.
777 (Fimage_extension_data): New defun.
778 (syms_of_image): Defsubr it.
779
780 2006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
781
782 * window.c (Fdisplay_buffer): Doc fix.
783
784 2006-04-21 Eli Zaretskii <eliz@gnu.org>
785
786 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
787
788 2006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
789
790 * image.c [MAC_OS] (xpm_load_image): Fill in background field
791 while we have ximg handy.
792
793 * macmenu.c (restore_menu_items, save_menu_items): New functions
794 from xmenu.c.
795 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
796 changes for xmenu.c.
797
798 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
799 (add_mac_font_name): New function.
800 (init_font_name_table): Use it. Adopt the first found font from
801 those having the same family name.
802
803 2006-04-21 Nick Roberts <nickrob@snap.net.nz>
804
805 * xdisp.c (note_mouse_highlight): Use build_string.
806
807 2006-04-20 Lars Hansen <larsh@soem.dk>
808
809 * textprop.c (Fremove_list_of_text_properties):
810 Ensure modify_region is called only when buffer is modified and that
811 signal_after_change is allways called in that case.
812
813 * print.c (PRINTFINISH): Call signal_after_change.
814
815 2006-04-20 Kim F. Storm <storm@cua.dk>
816
817 * xdisp.c (redisplay_window): Fix last change.
818
819 * xdisp.c (redisplay_window): If current window start is not at the
820 beginning of a line, select a new window start if buffer is modified
821 and window start is in the modified region, but the first change is
822 before window start.
823
824 2006-04-18 Richard Stallman <rms@gnu.org>
825
826 * xmenu.c (restore_menu_items, save_menu_items): New fns.
827 (set_frame_menubar): Use save_menu_items. Save updated vector in
828 the frame before unwinding it. Don't use unuse_menu_items.
829 Don't use discard_menu_items.
830 (digest_single_submenu): Abort if an item is not in a pane.
831 (init_menu_items): Put the error check at the top.
832
833 * keymap.c (describe_map): Make "shadowed" warning more verbose.
834
835 * window.c (adjust_window_trailing_edge): Correctly distinguish
836 series vs parallel cases, even when window has no parent.
837
838 * abbrev.c (record_symbol): New function.
839 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
840
841 2006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
842
843 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
844 value of xmalloc.
845
846 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
847 (create_apple_event_from_event_ref, xrm_get_preference_database)
848 (cfstring_create_normalized): Don't check return value of xmalloc.
849
850 * macselect.c (get_scrap_target_type_list, defer_apple_events)
851 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
852 return value of xmalloc/xrealloc.
853
854 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
855 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
856 (XLoadQueryFont, mac_store_apple_event): Don't check return value
857 of xmalloc.
858
859 2006-04-17 Kim F. Storm <storm@cua.dk>
860
861 * window.c (coordinates_in_window): On the vertical border,
862 calculate the row number measured from the top of the window, not
863 the top of the frame.
864 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
865 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
866
867 2006-04-16 Eli Zaretskii <eliz@gnu.org>
868
869 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
870
871 2006-04-16 Romain Francoise <romain@orebokech.com>
872
873 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
874
875 2006-04-16 Andreas Schwab <schwab@suse.de>
876
877 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
878
879 2006-04-15 Romain Francoise <romain@orebokech.com>
880
881 * puresize.h (BASE_PURESIZE): Increment to 1210000.
882
883 2006-04-13 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
884
885 * print.c (Fprin1_to_string): Mention in the `doc' that the
886 behavior is modified by `print-level' and `print-length'.
887
888 2006-04-13 Kenichi Handa <handa@m17n.org>
889
890 * coding.c (setup_coding_system): If eol-type is not yet decided
891 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
892 If coding_system is nil, return 0.
893 (code_convert_region1): Even if coding_system is nil, don't skip
894 conversion if system_eol_type is not LF.
895 (code_convert_string1): Likewise.
896 (code_convert_string_norecord): Likewise.
897
898 2006-04-13 Kenichi Handa <handa@m17n.org>
899
900 * coding.c (setup_coding_system): Fix previous change.
901 (encode_coding): If eol_type is not yet decided, use system_eol_type.
902 (shrink_encoding_region): If eol_type is not yet decided and
903 system_eol_type is not LF, don't shrink.
904
905 2006-04-13 Nick Roberts <nickrob@snap.net.nz>
906
907 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
908 line.
909
910 2006-04-12 Richard Stallman <rms@gnu.org>
911
912 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
913
914 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
915 (Fprocess_send_eof): Abort if fail to open null device.
916
917 2006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
918
919 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
920
921 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
922 assignment used as truth value. Add explicit braces to avoid
923 ambiguous `else'.
924 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
925
926 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
927 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
928 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
929 Put externs in #ifdef HAVE_X_WINDOWS.
930 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
931 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
932 (init_mac_osx_environment) [MAC_OSX]: Add extern.
933
934 * mac.c (init_process): Remove undef.
935 (select) [MAC_OSX]: Undefine before including sysselect.h.
936 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
937 Remove functions and prototypes.
938 (parse_value): Add parentheses around + inside shift.
939 (path_from_vol_dir_name): Make static.
940 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
941 [!MAC_OSX] (get_path_to_system_folder): Likewise.
942 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
943 variable `cCode'.
944 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
945 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
946
947 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
948 (x_set_mouse_color): Remove unused variable `dpy'.
949 (Fx_create_frame): Remove unused variable `x_frame_count'.
950 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
951 (x_sync): Move from macterm.c.
952 (Fx_file_dialog): Remove unused variable `default_filter_index'.
953
954 * macmenu.c (min_menu_id): Make element type explicit.
955
956 * macselect.c (get_flavor_type_from_symbol): Remove unused
957 variable `val'.
958 (get_scrap_private_timestamp, x_get_foreign_selection)
959 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
960 (Fmac_process_deferred_apple_events): Remove unused variables
961 `keyword', `reply', `apple_event', `count', and `err'.
962
963 * macterm.c: Don't include gnu.h.
964 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
965 (x_sync): Move to macfns.c.
966 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
967 variable `mask_bits'.
968 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
969 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
970 (x_mac_to_emacs_modifiers): Remove function.
971 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
972 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
973 Add explicit braces to avoid ambiguous `else'.
974 (x_make_frame_visible): Remove unused variables `type',
975 `original_top', and `original_left'.
976 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
977 (x_load_font): Remove unused variables `full_name', and `value'.
978 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
979 Remove functions.
980 (do_zoom_window): Reorganize variables with respect to conditionals.
981 (init_command_handler): Remove unused variable `err'.
982 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
983
984 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
985 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
986 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
987 (do_menu_choice, have_menus_p, x_real_positions)
988 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
989 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
990 (free_frame_menubar): Add externs.
991
992 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
993 (malloc, realloc, free): Add undefs.
994 (read_load_commands): Remove unused variable `n' and `j'.
995 (copy_data_segment): Remove unused variable `r'.
996
997 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
998 within ||. Add explicit braces to avoid ambiguous `else'.
999 (dump_glyph_row): Remove label for `inverse_p' from legend.
1000
1001 * xfaces.c (Finternal_merge_in_global_face, try_font_list):
1002 Add explicit braces to avoid ambiguous `else'.
1003
1004 2006-04-11 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
1005
1006 * dispnew.c (init_display): Don't init X display if the user asked
1007 for a non-X display.
1008
1009 2006-04-12 Kenichi Handa <handa@m17n.org>
1010
1011 * coding.c (setup_coding_system): Use system_eol_type for default
1012 coding->eol_type.
1013
1014 2006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1015
1016 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
1017
1018 * data.c (wrong_type_argument): Try to avoid compiler warnings due
1019 to the fact the function is now marked as NO_RETURN.
1020
1021 2006-04-10 Eli Zaretskii <eliz@gnu.org>
1022
1023 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
1024
1025 2006-04-10 Romain Francoise <romain@orebokech.com>
1026
1027 * xrdb.c (gethomedir): Use xstrdup.
1028
1029 2006-04-10 Andreas Schwab <schwab@suse.de>
1030
1031 * xrdb.c (gethomedir): Make sure to always return a pointer that
1032 can be passed to free.
1033
1034 2006-04-09 Richard Stallman <rms@gnu.org>
1035
1036 * lisp.h (Fkill_emacs): Undo previous change.
1037
1038 2006-04-08 Richard Stallman <rms@gnu.org>
1039
1040 * search.c (boyer_moore): Test ch >= 0400, not >.
1041
1042 2006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
1043
1044 * puresize.h (pure_write_error): Mark as NO_RETURN.
1045
1046 * lisp.h (args_out_of_range, args_out_of_range_3)
1047
1048 2006-04-08 Eli Zaretskii <eliz@gnu.org>
1049
1050 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
1051 if a menu is active on this frame.
1052
1053 2006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
1054
1055 * lisp.h (report_file_error): Mark as NO_RETURN.
1056
1057 2006-04-08 Eli Zaretskii <eliz@gnu.org>
1058
1059 * alloc.c [STDC_HEADERS]: Include stddef.h.
1060
1061 * lisp.h (PSEUDOVECSIZE): Fix last change.
1062
1063 2006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
1064
1065 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
1066 `raw_status_high', and `raw_status_low' with plain integers, and move
1067 them to the end of the structure.
1068
1069 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
1070 pseudovector's size field so only the Lisp_Object fields get GC'd.
1071
1072 * process.c (update_status, make_process, Fdelete_process)
1073 (Fprocess_status, list_processes_1, start_process_unwind)
1074 (create_process, Fmake_network_process, server_accept_connection)
1075 (wait_reading_process_output, send_process, Fprocess_running_child_p)
1076 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
1077 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
1078 `pid' and `raw_status'.
1079 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
1080 representing PIDs that are larger than most-positive-fixnum.
1081
1082 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
1083
1084 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
1085
1086 2006-04-08 Eli Zaretskii <eliz@gnu.org>
1087
1088 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
1089
1090 2006-04-03 Paul Eggert <eggert@cs.ucla.edu>
1091
1092 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
1093 ../lib-src/b2m.c and ../lib-src/editfns.c.
1094 (Fcurrent_time_string): Use it.
1095 Document that the year might not consume 4 columns if it's outside
1096 the range 1000-9999.
1097 Check for asctime failure.
1098 Don't assume that the output string length is always exactly 24.
1099
1100 2006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1101
1102 * macterm.c (XTread_socket): Initialize variable `f' before its use.
1103
1104 2006-04-03 Kenichi Handa <handa@m17n.org>
1105
1106 * image.c: Include "charset.h" and "coding.h".
1107 (x_find_image_file): Return an encoded file name.
1108
1109 2006-04-01 Eli Zaretskii <eliz@gnu.org>
1110
1111 * configure: Regenerated.
1112
1113 2006-03-31 Kenichi Handa <handa@m17n.org>
1114
1115 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
1116
1117 2006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1118
1119 * xdisp.c (syms_of_xdisp): Fix variable name.
1120
1121 2006-03-30 Kenichi Handa <handa@m17n.org>
1122
1123 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
1124
1125 2006-03-29 Juanma Barranquero <lekktu@gmail.com>
1126
1127 * keyboard.c (process_tool_bar_item): Reorder dummy args.
1128
1129 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
1130
1131 * keyboard.c (tool_bar_items): Use map_keymap.
1132 (process_tool_bar_item): Add dummy args to fit the required interface.
1133
1134 2006-03-25 Eli Zaretskii <eliz@gnu.org>
1135
1136 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
1137 to zero before calling debug_print or safe_debug_print.
1138
1139 * print.c (print_output_debug_flag): New global variable.
1140 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
1141 OutputDebugString if print_output_debug_flag is zero.
1142
1143 2006-03-24 Paul Eggert <eggert@cs.ucla.edu>
1144
1145 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
1146 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
1147 (Fdecode_time): Cast tm_year to EMACS_INT.
1148 (Fcurrent_time_string): Report an invalid time specification if
1149 the argument is invalid. Also, check for out-of-range time stamps.
1150
1151 2006-03-24 Kim F. Storm <storm@cua.dk>
1152
1153 * xterm.c (handle_one_xevent):
1154 * w32term.c (w32_read_socket):
1155 * macterm.c (XTread_socket): Don't let key-press clear mouse face
1156 on in toolbar window if mouse-highlight is an integer.
1157
1158 * fns.c (sxhash_list): Include last non-nil CDR in hash.
1159
1160 2006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1161
1162 * macmenu.c (enum mac_menu_kind): New enum.
1163 (min_menu_id): New variable.
1164 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
1165 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
1166 min_menu_id and enumerators in enum mac_menu_kind.
1167 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
1168 All uses changed. Add range check for menu ID.
1169 (fill_menubar): Add range check for menu ID.
1170 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
1171 GetEventParameter.
1172 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
1173 for each menu kind.
1174
1175 2006-03-22 Kim F. Storm <storm@cua.dk>
1176
1177 * xdisp.c: Undo 2006-03-21 change.
1178
1179 * term.c: Define aliases for append_glyph and produce_stretch_glyph
1180 when `static' is defined to avoid name clash with those in xdisp.c.
1181
1182 * process.c (Faccept_process_output): Fix to comply with lisp reference.
1183 Change arg "timeout" to "seconds" and allow both integer and float value.
1184 Change arg "timeout-msec" to "millisec" and interpret" as milliseconds
1185 rather than microseconds. Fix doc string accordingly.
1186
1187 2006-03-21 Ken Raeburn <raeburn@raeburn.org>
1188
1189 * xdisp.c (store_next_glyph): Rename from append_glyph.
1190 (generate_stretch_glyph): Rename from produce_stretch_glyph.
1191 All callers changed accordingly.
1192
1193 2006-03-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1194
1195 * xterm.c: x_session_initialized new variable.
1196 (x_term_init): Use x_session_initialized to check if
1197 x_session_initialize should be called.
1198 (x_initialize): Initialize x_session_initialized.
1199
1200 2006-03-21 Kim F. Storm <storm@cua.dk>
1201
1202 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
1203 bitmap here, but ...
1204 (update_window_fringes): ... here, so we can test if it has changed.
1205
1206 2006-03-20 Andreas Schwab <schwab@suse.de>
1207
1208 * dispnew.c (init_display): Check DISPLAY here.
1209
1210 * emacs.c (main): Don't check here.
1211
1212 * xterm.c (x_display_ok): Don't use DISPLAY env var.
1213
1214 2006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1215
1216 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
1217 mixup (YAILOM).
1218
1219 2006-03-20 Eli Zaretskii <eliz@gnu.org>
1220
1221 * emacs.c (main): Fix last change.
1222
1223 2006-03-20 Kenichi Handa <handa@m17n.org>
1224
1225 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
1226
1227 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
1228
1229 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
1230
1231 * xterm.c (x_term_init): Remove unnecessary GCPRO.
1232
1233 2006-03-19 Kim F. Storm <storm@cua.dk>
1234
1235 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
1236 so it doesn't associate overlay string with following glyph by default.
1237 Allow integer property value to specify explicit number of buffer
1238 positions associate with overlay string.
1239
1240 2006-03-18 Chong Yidong <cyd@stupidchicken.com>
1241
1242 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
1243
1244 2006-03-18 Nozomu Ando <nand@mac.com>
1245
1246 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
1247 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
1248 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
1249 Don't redefine.
1250
1251 * m/mips.h: Don't use unexmips on NetBSD.
1252 (LIBS_MACHINE): Move definition lower, so it doesn't use
1253 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
1254 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
1255
1256 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
1257 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
1258 option is broken (e.g., MIPS/NetBSD).
1259
1260 2006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
1261
1262 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
1263 Remove the HAVE_X_WINDOWS conditional.
1264
1265 2006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
1266
1267 * emacs.c (main): If user asks for a display that is unavailable,
1268 simulate -nw.
1269
1270 * xterm.c (x_display_ok): New function.
1271
1272 * xterm.h: Add prototype for x_display_ok.
1273
1274 2006-03-18 Eli Zaretskii <eliz@gnu.org>
1275
1276 * w32fns.c (Fw32_select_font): Doc fix.
1277
1278 2006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1279
1280 * image.c [MAC_OS] (XPutPixel, XGetPixel)
1281 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
1282 version when depth is 32.
1283 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
1284 New function.
1285 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
1286 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
1287
1288 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
1289 Create GWorld in ARGB pixel format.
1290 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
1291 Remove functions.
1292 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
1293 instead of mac_copy_area/mac_copy_area_with_mask.
1294
1295 2006-03-15 Kim F. Storm <storm@cua.dk>
1296
1297 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
1298 empty row. Fixes memory corruption revealed by 2006-03-02 change.
1299 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
1300 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
1301 width is exactly the same as the window width. Don't count a final
1302 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
1303
1304 2006-03-15 Juanma Barranquero <lekktu@gmail.com>
1305
1306 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
1307 conditional on HAVE_NTGUI, not WINDOWS_NT.
1308
1309 2006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1310
1311 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
1312
1313 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
1314
1315 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
1316 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
1317 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
1318 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
1319 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
1320 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
1321 instead of mac_draw_bitmap.
1322 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
1323 define_fringe_bitmap and destroy_fringe_bitmap.
1324
1325 2006-03-14 Chong Yidong <cyd@stupidchicken.com>
1326
1327 * xterm.c (x_uncatch_errors): Block input for entire function.
1328
1329 2006-03-12 Jason Rumney <jasonr@gnu.org>
1330
1331 * w32fns.c (Fx_create_frame): Remove call to
1332 Qface_set_after_frame_default (from xfns.c 2003-05-26).
1333
1334 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
1335 finished with the menu.
1336
1337 * w32term.c: Sync 2005-10-24 xterm.c changes.
1338 (last_mouse_glyph_frame): New var.
1339 (note_mouse_movement): Say mouse moved if current frame differs
1340 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
1341 (w32_mouse_position): Set last_mouse_glyph_frame.
1342 Remove OLD_REDISPLAY_CODE block.
1343
1344 2006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1345
1346 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
1347
1348 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
1349 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
1350
1351 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
1352
1353 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
1354
1355 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
1356 (x_draw_composite_glyph_string_foreground)
1357 (x_draw_image_foreground): Undo previous changes.
1358 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
1359 argument of mac_draw_rectangle.
1360 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
1361 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
1362 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
1363 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
1364 [USE_CG_DRAWING]: New functions.
1365 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
1366 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
1367 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
1368 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
1369 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
1370 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
1371 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
1372
1373 2006-03-12 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1374
1375 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
1376
1377 2006-03-11 Jason Rumney <jasonr@gnu.org>
1378
1379 * w32fns.c (signal_user_input): New function.
1380 (post_character_message): Use it for keyboard input.
1381 (w32_msg_pump): Use it for mouse input.
1382
1383 2006-03-11 Luc Teirlinck <teirllm@auburn.edu>
1384
1385 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
1386 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
1387
1388 2006-03-11 Eli Zaretskii <eliz@gnu.org>
1389
1390 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
1391 if a menu is already active (the menubar_active flag is on).
1392
1393 2006-03-11 David Ponce <david@dponce.com>
1394
1395 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
1396
1397 2006-03-11 Eli Zaretskii <eliz@gnu.org>
1398
1399 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
1400 the list of unused display error handling functions.
1401
1402 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
1403 HAVE_X_WINDOWS.
1404 (internal_condition_case, internal_condition_case_1)
1405 (internal_condition_case_2): Call x_catching_errors only if
1406 HAVE_X_WINDOWS.
1407
1408 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
1409 Don't include sys/resource.h unless defined.
1410
1411 2006-03-11 Richard Stallman <rms@gnu.org>
1412
1413 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
1414
1415 * vm-limit.c (get_lim_data, lim_data, data_space_start):
1416 Move from mem-limits.h.
1417 (enum warnlevel): New data type.
1418 (check_memory_limits): Rewrite the logic about warnings.
1419 Use standard `struct rlimit'. Check return values for nonsense.
1420 (memory_warnings): Always clear lim_data.
1421
1422 * mem-limits.h (get_lim_data, lim_data, data_space_start):
1423 Move to vm-limit.c.
1424
1425 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
1426
1427 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
1428 (internal_condition_case_1, internal_condition_case_2):
1429 Abort if within unclosed x_catch_errors.
1430
1431 2006-03-11 Romain Francoise <romain@orebokech.com>
1432
1433 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
1434
1435 2006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1436
1437 * lisp.h: Remove duplicate prototypes. Make the prototype of
1438 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
1439
1440 2006-03-11 Eli Zaretskii <eliz@gnu.org>
1441
1442 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
1443 argument of XDrawRectangle.
1444
1445 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
1446
1447 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
1448 (x_draw_glyph_string_foreground)
1449 (x_draw_composite_glyph_string_foreground)
1450 (x_draw_image_foreground): Don't subtract 1 from width and height
1451 arguments to mac_draw_rectangle.
1452 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
1453
1454 2006-03-10 Kim F. Storm <storm@cua.dk>
1455
1456 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
1457
1458 2006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
1459
1460 * alloc.c (USE_POSIX_MEMALIGN): New macro.
1461 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
1462
1463 2006-03-09 Kenichi Handa <handa@m17n.org>
1464
1465 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
1466 ASCII component of a composition.
1467
1468 2006-03-08 Luc Teirlinck <teirllm@auburn.edu>
1469
1470 * window.c: Declare preserve_y as a static global variable.
1471 (window_scroll_pixel_based): No longer declare preserve_y;
1472 it is global now.
1473 (syms_of_window): Set preserve_y to -1.
1474
1475 2006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1476
1477 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
1478 depth is 32.
1479 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
1480 depth is 32.
1481
1482 2006-03-06 Chong Yidong <cyd@stupidchicken.com>
1483
1484 * xdisp.c (handle_invisible_prop): Don't update it->position with
1485 a buffer position if we're in a display string.
1486
1487 2006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1488
1489 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
1490 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
1491
1492 * macfns.c (x_default_scroll_bar_color_parameter)
1493 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
1494 Remove unnecessary prototypes.
1495 (x_set_scroll_bar_default_width):
1496 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
1497 (mac_set_scroll_bar_width): New function.
1498 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
1499
1500 * macterm.c (get_control_part_bounds): Fix type of return value.
1501 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
1502 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
1503 scroll bar if it is not tall enough to display scroll bar thumb.
1504 [USE_CARBON_EVENTS] (mac_convert_event_ref)
1505 (mac_handle_command_event, mac_handle_window_event)
1506 (mac_handle_mouse_event): Check error code of GetEventParameter.
1507 (convert_fn_keycode) [MAC_OSX]: Likewise.
1508
1509 2006-03-05 Andreas Schwab <schwab@suse.de>
1510
1511 * xselect.c (x_catch_errors_unwind): Fix missing return value.
1512
1513 2006-03-02 Kim F. Storm <storm@cua.dk>
1514
1515 * frame.h (struct frame): New member n_tool_bar_rows.
1516
1517 * xdisp.c: Minimize the unpleasent visual impact of the requirement
1518 that non-toolkit tool-bars must occupy an integral number of screen
1519 lines, by distributing the rows evenly over the tool-bar screen area.
1520 (Vtool_bar_border): New variable.
1521 (syms_of_xdisp): DEFVAR_LISP it.
1522 (display_tool_bar_line): Add HEIGHT arg for desired row height.
1523 Make tool-bar row the desired height. Use default face for border
1524 below tool-bar.
1525 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
1526 actual tool-bar rows.
1527 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
1528 Adjust the height of the tool-bar rows to fill tool-bar screen area.
1529 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
1530 is resized.
1531
1532 2006-03-01 Luc Teirlinck <teirllm@auburn.edu>
1533
1534 * search.c (Fregexp_quote): Do not precede a literal `]' with two
1535 backslashes to try to make clear that it has a literal meaning; it
1536 does not do that. (It could close a character alternative
1537 containing a backslash.)
1538
1539 2006-02-28 Chong Yidong <cyd@stupidchicken.com>
1540
1541 * xselect.c (x_catch_errors_unwind): New function.
1542 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
1543 (Fx_get_atom_name): Call x_uncatch_errors earlier.
1544
1545 * window.c (Qscroll_up, Qscroll_down): New syms.
1546 (window_scroll_pixel_based): Make preserve_y static to avoid
1547 getting point stuck when scrolling 1 line.
1548
1549 2006-02-26 Chong Yidong <cyd@stupidchicken.com>
1550
1551 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
1552
1553 * xterm.c (x_load_font, x_term_init, XTmouse_position)
1554 (handle_one_xevent, x_connection_closed, x_list_fonts):
1555 No arg for x_uncatch_errors.
1556
1557 * xselect.c (x_own_selection, x_decline_selection_request)
1558 (x_reply_selection_request, x_get_foreign_selection)
1559 (Fx_get_atom_name, Fx_send_client_event): Likewise.
1560
1561 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
1562 Likewise.
1563
1564 2006-02-26 Luc Teirlinck <teirllm@auburn.edu>
1565
1566 * lread.c: Declare Vload_file_rep_suffixes instead of
1567 deleted variable default_suffixes.
1568 (Fget_load_suffixes): New function.
1569 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
1570 No longer use deleted variable default_suffixes. Update docstring.
1571 (syms_of_lread): defsubr Sget_load_suffixes.
1572 Expand `load-suffixes' docstring.
1573 Delete default_suffixes and DEFVAR_LISP the new variable
1574 `load-file-rep-suffixes'.
1575
1576 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
1577 of Vload_suffixes.
1578
1579 * lisp.h: EXFUN Fget_load_suffixes.
1580 Extern Vload_file_rep_suffixes.
1581
1582 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
1583 with lisp.h.
1584
1585 2006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
1586
1587 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
1588 qualifier which was trying to avoid the bug that was fixed by
1589 yesterday's changes to xterm.c.
1590
1591 2006-02-25 Chong Yidong <cyd@stupidchicken.com>
1592
1593 * xterm.h (x_catch_errors) Return value changed to void.
1594 (x_uncatch_errors): Delete unused count argument.
1595
1596 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
1597 it can be called in a signal handler.
1598 (x_catch_errors_unwind): Function deleted.
1599 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
1600 (x_check_errors): Call x_uncatch_errors before signalling error.
1601
1602 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
1603 (x_connection_closed, x_list_fonts): Use new versions of
1604 x_catch_errors and x_uncatch_errors.
1605
1606 * xselect.c (x_own_selection, x_decline_selection_request)
1607 (x_reply_selection_request, x_get_foreign_selection)
1608 (Fx_get_atom_name, Fx_send_client_event): Likewise.
1609
1610 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
1611 Likewise.
1612
1613 * eval.c (record_unwind_protect): Add an assertion.
1614
1615 2006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
1616
1617 * process.c (Fmake_network_process): Init the process's mark.
1618
1619 2006-02-25 Kim F. Storm <storm@cua.dk>
1620
1621 * buffer.c (modify_overlay): Force redisplay if we modify an
1622 overlay at the end of the buffer.
1623
1624 2006-02-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1625
1626 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
1627 nil the image file has been removed, in that case use the (cached)
1628 pixmap.
1629
1630 2006-02-24 Kenichi Handa <handa@m17n.org>
1631
1632 * fileio.c (Finsert_file_contents): When a text is replaced
1633 partially, be sure to set point before the inserted characters.
1634
1635 2006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
1636
1637 * xfns.c (Fx_file_dialog): Return a decoded file name.
1638
1639 2006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1640
1641 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
1642 glyph whose face is extended to the text area end.
1643
1644 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
1645 values if control is not visible or values are not changed.
1646
1647 2006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
1648
1649 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
1650 The default `window' should not be "on a different frame".
1651
1652 2006-02-22 Kim F. Storm <storm@cua.dk>
1653
1654 * indent.c (Fvertical_motion): Only try to move back if we can.
1655
1656 2006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1657
1658 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
1659 n_clip_rects.
1660
1661 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
1662 xmenu.c.
1663
1664 * macterm.c (GC_CLIP_REGION): Remove macro.
1665 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
1666 All uses changed. Don't do clipping if n_clip_rects is zero.
1667 (mac_set_clip_rectangles): Use xassert instead of abort.
1668 Set n_clip_rects. Don't make clip_region empty when number of
1669 clipping rectangles is zero.
1670 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
1671 calling mac_set_clip_rectangles.
1672 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
1673 avoid multiple redraws.
1674
1675 2006-02-22 Kim F. Storm <storm@cua.dk>
1676
1677 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
1678
1679 2006-02-21 Kim F. Storm <storm@cua.dk>
1680
1681 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
1682
1683 2006-02-21 Zhang Wei <brep@newsmth.org>
1684
1685 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
1686 returning it.
1687
1688 2006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1689
1690 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
1691 (standard_bitmaps): Use it.
1692
1693 2006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1694
1695 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
1696 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
1697 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
1698 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
1699 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
1700 Draw background if BG_WIDTH is not zero. Use float constants as
1701 divisors instead of double. Use alloca instead of xmalloc/xfree.
1702 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
1703 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
1704 mac_draw_image_string* functions.
1705 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
1706 some fonts when srcCopy text transfer mode might be used.
1707 (mac_begin_clip, mac_end_clip): Check if region is empty.
1708 (mac_set_clip_rectangles): When resetting clip region, make it
1709 empty instead of disposing of it.
1710
1711 2006-02-20 Kim F. Storm <storm@cua.dk>
1712
1713 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
1714
1715 * buffer.h (struct buffer): New members fringe_indicator_alist and
1716 fringe_cursor_alist.
1717
1718 * buffer.c (init_buffer_once): Set dummy default values for
1719 fringe-indicator-alist and fringe-cursor-alist. The proper
1720 default values are set by pre-loading fringe.el.
1721 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
1722 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
1723 corresponding default- variables.
1724
1725 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
1726 to use `int'.
1727 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
1728 Define explicitly.
1729 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
1730 (Qhollow_small): New variables.
1731 (syms_of_fringe): Intern and staticpro them.
1732 (question_mark_bits): Rename from unknown_bits.
1733 (left_curly_arrow_bits): Rename from continuation_bits.
1734 (right_curly_arrow_bits): Rename from continued_bits.
1735 (left_triangle_bits): Rename from ov_bits.
1736 (right_triangle_bits): Add.
1737 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
1738 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
1739 (filled_square_bits): Add.
1740 (vertical_bar_bits): Rename from bar_cursor_bits.
1741 (horizontal_bar_bits): Rename from hbar_cursor_bits.
1742 (empty_line_bits): Rename from zv_bits.
1743 (standard_bitmaps): Update to use new names.
1744 (draw_fringe_bitmap_1): Make static.
1745 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
1746 to map from logical cursors and indicators to physical bitmaps.
1747 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
1748 bitmaps using symbol names instead of bitmap numbers.
1749 (update_window_fringes): Use logical indicator symbol names
1750 instead of bitmap numbers for logical. Add bitmap cache.
1751 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
1752
1753 2006-02-20 Chong Yidong <cyd@stupidchicken.com>
1754
1755 * regex.c: Revert 2006-02-19 change.
1756 (xmalloc, xrealloc): Define these when not linked to Emacs.
1757 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
1758
1759 2006-02-19 Luc Teirlinck <teirllm@auburn.edu>
1760
1761 * regex.c (extend_range_table_work_area): Fix typo.
1762
1763 2006-02-19 Richard M. Stallman <rms@gnu.org>
1764
1765 * xterm.c (x_catch_errors): Use xmalloc.
1766
1767 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
1768 (regex_compile): Likewise.
1769 (regcomp): Use xmalloc.
1770
1771 * gtkutil.c (malloc_widget_value): Use xmalloc.
1772
1773 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
1774 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
1775
1776 * xmenu.c (digest_single_submenu): When pane_string is empty,
1777 do initialize save_wv.
1778
1779 2006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1780
1781 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
1782 w->update_mode_line if arg F is not the selected frame.
1783
1784 * macmenu.c (popup_activated_flag, submenu_id)
1785 (next_menubar_widget_id): Remove variables.
1786 (initialize_frame_menubar): Remove function.
1787 (pop_down_menu, mac_menu_show): Simplify save value.
1788 (dispose_menus): New function.
1789 (pop_down_menu, fill_menubar): Use it.
1790 (fill_submenu): Remove function. All uses changed to fill_menu.
1791 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
1792 POS. Don't call SetMenuItemHierarchicalID here.
1793 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
1794 used next. Call SetMenuItemHierarchicalID here.
1795 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
1796 objects if needed. Reuse existing menu bar titles if possible.
1797 (set_frame_menubar): Don't clean up menu objects here.
1798
1799 2006-02-18 Chong Yidong <cyd@stupidchicken.com>
1800
1801 * window.c (window_min_size_1): Ensure room for the scroll bar and
1802 fringes.
1803
1804 2006-02-17 Romain Francoise <romain@orebokech.com>
1805
1806 * puresize.h (BASE_PURESIZE): Increment to 1200000.
1807
1808 2006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
1809
1810 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
1811 addition of the BLOCK_INPUTs.
1812
1813 2006-02-17 Juanma Barranquero <lekktu@gmail.com>
1814
1815 * window.c (Fset_window_scroll_bars): Doc fix.
1816
1817 2006-02-17 Kenichi Handa <handa@m17n.org>
1818
1819 * xdisp.c (display_mode_element): Call display_string with correct
1820 PREC arg (which must be a number of characters, not column width).
1821
1822 2006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1823
1824 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
1825
1826 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
1827
1828 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
1829
1830 2006-02-14 Richard M. Stallman <rms@gnu.org>
1831
1832 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
1833
1834 * m/ibms390x.h: New file.
1835
1836 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1837
1838 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
1839 value of x-gtk-whole-detached-tool-bar.
1840 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
1841
1842 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
1843
1844 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1845
1846 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
1847
1848 * xterm.h: Declare x_x_to_emacs_modifiers.
1849
1850 * gtkutil.c (xg_tool_bar_button_cb): New function.
1851 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
1852 store modifiers in event.
1853 (update_frame_tool_bar): Connect button-release-event to
1854 xg_tool_bar_button_cb.
1855
1856 2006-02-13 Richard M. Stallman <rms@gnu.org>
1857
1858 * .gdbinit (xwindow): Update the code to show the window box.
1859
1860 2006-02-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1861
1862 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
1863
1864 2006-02-12 Richard M. Stallman <rms@gnu.org>
1865
1866 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
1867
1868 2006-02-11 Eli Zaretskii <eliz@gnu.org>
1869
1870 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
1871 (syms_of_keyboard): DEVFAR_LISP and initialize it.
1872 (parse_tool_bar_item, parse_menu_item): If that variable is
1873 non-nil, don't disable menu items and tool-bar buttons.
1874
1875 2006-02-11 Juanma Barranquero <lekktu@gmail.com>
1876
1877 * doc.c (Fsubstitute_command_keys): Doc fix.
1878
1879 2006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
1880
1881 * data.c (Findirect_function): Rewrite docstring.
1882 Fix omission bug: Declare new arg NOERROR.
1883
1884 2006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1885
1886 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
1887 if window_desc is not set yet.
1888 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
1889 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
1890 parameter `visibility' is `icon'.
1891 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
1892 instead of "fontset-mac".
1893 (Fx_focus_frame): New defun.
1894 (syms_of_macfns): Defsubr it.
1895
1896 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
1897 for unfocused frame.
1898 (x_raise_frame): Call BringToFront instead of SelectWindow.
1899 (x_lower_frame): Use NULL instead of nil.
1900 (x_make_frame_visible): Don't call SelectWindow.
1901 (XTread_socket): Increment handling_signal at the start, decrement
1902 it at the end.
1903 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
1904 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
1905
1906 2006-02-10 Kim F. Storm <storm@cua.dk>
1907
1908 * data.c (Findirect_function): Add NOERROR arg. All callers changed
1909 to pass Qnil for NOERROR.
1910
1911 * keymap.c (current_minor_maps_error): Remove.
1912 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
1913 instead of using internal_condition_case_1+current_minor_maps_error.
1914
1915 2006-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1916
1917 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
1918 frames for GTK, in that case it is the tool bar. This is so that
1919 highlighted text get reset properly.
1920
1921 2006-02-09 Juanma Barranquero <lekktu@gmail.com>
1922
1923 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
1924
1925 2006-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1926
1927 * window.c (adjust_window_trailing_edge): Check that shrinking
1928 does not set a window to size zero or less.
1929
1930 2006-02-08 Miles Bader <miles@gnu.org>
1931
1932 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
1933 of Fget_text_property (other field functions work with overlays as
1934 well as text-properties).
1935
1936 2006-02-07 Kenichi Handa <handa@m17n.org>
1937
1938 * dispextern.h (unibyte_display_via_language_environment): Extern it.
1939
1940 * xterm.h (unibyte_display_via_language_environment):
1941 * w32term.h (unibyte_display_via_language_environment):
1942 * macterm.h (unibyte_display_via_language_environment): Delete extern.
1943
1944 2006-02-07 Kenichi Handa <handa@m17n.org>
1945
1946 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
1947 (produce_glyphs): Set the character to print in
1948 it->char_to_display. Handle unibyte-display-via-language-environment.
1949 (produce_stretch_glyph): Set character to print in it->char_to_display.
1950
1951 2006-02-06 Kenichi Handa <handa@m17n.org>
1952
1953 * lread.c (openp): Initialize encoded_fn before GCPRO it.
1954
1955 2006-02-05 Ken Raeburn <raeburn@raeburn.org>
1956
1957 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
1958
1959 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
1960 Cast bitfield value to EMACS_INT, to suppress gcc warning.
1961
1962 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
1963 defining.
1964
1965 2006-02-03 Kim F. Storm <storm@cua.dk>
1966
1967 * xdisp.c: Cache last merged escape glyph face.
1968 (last_escape_glyph_frame, last_escape_glyph_face_id)
1969 (last_escape_glyph_merged_face_id): New variables.
1970 (get_next_display_element): Use/update them.
1971 (redisplay_internal): Reset them before redisplay.
1972
1973 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
1974 Only recheck faces after displaying ellipsis.
1975
1976 2006-02-02 Kenichi Handa <handa@m17n.org>
1977
1978 * coding.c (decode_composition_emacs_mule): Fix handling of
1979 incorrect format data.
1980
1981 2006-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1982
1983 * gtkutil.c (update_frame_tool_bar): Use new tool bar functions
1984 (gtk_toolbar_insert) so we can have tool bars of different sizes.
1985
1986 2006-01-30 Luc Teirlinck <teirllm@auburn.edu>
1987
1988 * data.c (Flistp): Doc fix.
1989
1990 2006-01-30 Juanma Barranquero <lekktu@gmail.com>
1991
1992 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
1993 Fix typos in docstrings.
1994
1995 2006-01-28 Luc Teirlinck <teirllm@auburn.edu>
1996
1997 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
1998
1999 2006-01-27 Chong Yidong <cyd@stupidchicken.com>
2000
2001 * alloc.c (make_interval, allocate_string)
2002 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
2003 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
2004 global variables.
2005
2006 2006-01-27 Eli Zaretskii <eliz@gnu.org>
2007
2008 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
2009 the MSDOS definition.
2010
2011 2006-01-26 Richard M. Stallman <rms@gnu.org>
2012
2013 * alloc.c (check_pure_size): Make overflow message an "error message".
2014
2015 * keymap.c (Fmap_keymap): Doc fix.
2016
2017 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
2018 unless they were cleared out.
2019
2020 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
2021
2022 2006-01-26 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2023
2024 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
2025 (find_field): Set before_field to after_field when pos is at BEGV.
2026 (Fline_beginning_position, Fline_end_position):
2027 Clarify confusing doc string.
2028
2029 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
2030 string.
2031
2032 2006-01-26 Kenichi Handa <handa@m17n.org>
2033
2034 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
2035 current_dir, and error_file. On reporting an error, decode them
2036 back.
2037
2038 2006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2039
2040 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
2041 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
2042 Don't check for quit, since any loop will go through fail or jump.
2043
2044 2006-01-24 Chong Yidong <cyd@stupidchicken.com>
2045
2046 * alloc.c (allocate_string_data): Update next_free immediately, to
2047 reduce risk of memory clobberage.
2048
2049 2006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2050
2051 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
2052 display when point moves across an ellipsis. If there are
2053 adjacent invisible texts, don't lose the second one's ellipsis.
2054 (x_produce_glyphs): Doc fix.
2055
2056 2006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
2057
2058 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
2059
2060 2006-01-23 Kim F. Storm <storm@cua.dk>
2061
2062 * xdisp.c (handle_single_display_spec): Fix handling of space
2063 property on char from string: set *position rather than
2064 it->current.pos.
2065 (produce_stretch_glyph): Reduce width of stretch glyphs so they
2066 don't get wider than the window (unless truncate-lines is on).
2067
2068 2006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
2069
2070 * xterm.c: Avoid allocating Lisp data from a signal handler.
2071 (x_error_message): New var to replace x_error_message_string.
2072 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
2073 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
2074 (syms_of_xterm): Use it instead of x_error_message_string.
2075
2076 * alloc.c (lisp_align_free): Add an assertion.
2077 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
2078 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
2079 a signal handler.
2080
2081 2006-01-21 Luc Teirlinck <teirllm@auburn.edu>
2082
2083 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
2084
2085 2006-01-21 Romain Francoise <romain@orebokech.com>
2086
2087 * xdisp.c (get_window_cursor_type): Fix last change.
2088 Update copyright year.
2089
2090 2006-01-20 Eli Zaretskii <eliz@gnu.org>
2091
2092 * lread.c (Fload): Don't leak the file descriptor returned by
2093 openp if we are going to signal an error.
2094
2095 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
2096 directly to _close.
2097 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
2098 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
2099 to _read.
2100 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
2101 directly to _write.
2102
2103 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
2104 if it is NULL.
2105
2106 2006-01-20 Kenichi Handa <handa@m17n.org>
2107
2108 * puresize.h (BASE_PURESIZE): Increment to 1190000.
2109
2110 2006-01-19 Chong Yidong <cyd@stupidchicken.com>
2111
2112 * xdisp.c (get_window_cursor_type): Use cursor type specified by
2113 the selected buffer for the echo area too.
2114
2115 2006-01-19 Richard M. Stallman <rms@gnu.org>
2116
2117 * keymap.c (Fmap_keymap): Doc fix.
2118
2119 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
2120
2121 * keyboard.c (echo_char): Don't omit the space between first two
2122 echoed chars.
2123
2124 * minibuf.c (read_minibuf): Fix previous change.
2125
2126 2006-01-19 Kenichi Handa <handa@m17n.org>
2127
2128 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
2129
2130 2006-01-17 Richard M. Stallman <rms@gnu.org>
2131
2132 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
2133 value in f->param_alist.
2134
2135 2006-01-15 Andreas Schwab <schwab@suse.de>
2136
2137 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
2138
2139 2006-01-13 Richard M. Stallman <rms@gnu.org>
2140
2141 * Makefile.in: Define new macro WINDOW_SUPPORT.
2142 (lisp): Use it.
2143 (SOME_MACHINE_LISP): Add conditionally loaded files.
2144
2145 2006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2146
2147 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
2148 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
2149 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
2150 decomposed form.
2151
2152 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
2153 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
2154 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
2155 macro. Also try member ifr_addr when getting netmask.
2156
2157 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
2158
2159 * fileio.c (Fexpand_file_name): Remove redundant tests.
2160 Fix elimination of // so that it doesn't prevent elimination of an
2161 immediately following /. or /..
2162
2163 2006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2164
2165 * gtkutil.c (xg_toggle_notify_cb): New function.
2166 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
2167 xg_toggle_notify_cb.
2168 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
2169 parameter value changes so the toggle button gets updated.
2170
2171 2006-01-06 Nick Roberts <nickrob@snap.net.nz>
2172
2173 * .gdbinit: Fix typo.
2174
2175 2006-01-05 Eli Zaretskii <eliz@gnu.org>
2176
2177 * .gdbinit: Fix last change.
2178
2179 2006-01-05 Kim F. Storm <storm@cua.dk>
2180
2181 * process.c (Fmake_network_process): Use AF_INET instead of
2182 AF_UNSPEC when AF_INET6 is not defined.
2183
2184 2006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2185
2186 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
2187 Don't check that the other type is known file-related one.
2188
2189 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
2190 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
2191 OS X 10.4 and later.
2192
2193 2006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2194
2195 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
2196 let GTK do all image processing. Importing Emacs own pixmaps to GTK
2197 looks bad for inactive tool bar items with some Gnome themes.
2198
2199 2006-01-04 Eli Zaretskii <eliz@gnu.org>
2200
2201 * .gdbinit: Avoid a warning message when x_error_quitter is not
2202 compiled in.
2203
2204 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
2205 for w32.
2206
2207 2006-01-04 Kim F. Storm <storm@cua.dk>
2208
2209 * process.c: Add IPv6 support.
2210 (Qipv4, Qipv6): New vars.
2211 (syms_of_process): Intern and staticpro them.
2212 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
2213 with or without port number. Handle 4 element vector as IPv4 address
2214 without port number.
2215 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
2216 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
2217 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
2218 request that address family only. :family nil or omitted means to
2219 determine address family from the specified :host and :service.
2220 (ifflag_table): Add missing OpenBSD IFF_ flags.
2221 (server_accept_connection): Handle IPv6 addresses.
2222 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
2223
2224 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
2225 determine which breakpoints to set.
2226
2227 2006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
2228
2229 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
2230
2231 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
2232
2233 2006-01-03 Romain Francoise <romain@orebokech.com>
2234
2235 * emacs.c (main): Update copyright year.
2236
2237 2006-01-03 Ken Raeburn <raeburn@gnu.org>
2238
2239 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
2240 nil for the call to internal_delete_file.
2241
2242 2006-01-01 Ken Raeburn <raeburn@gnu.org>
2243
2244 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
2245 to nil for the call to Fwrite_region.
2246
2247 2005-12-31 Richard M. Stallman <rms@gnu.org>
2248
2249 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
2250
2251 2005-12-31 Eli Zaretskii <eliz@gnu.org>
2252
2253 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
2254
2255 2005-12-30 Luc Teirlinck <teirllm@auburn.edu>
2256
2257 * textprop.c (set_text_properties): Reword description of return value.
2258 Return Qnil if caller wants to remove all text properties from a
2259 string and the string already has no intervals.
2260
2261 2005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
2262
2263 * term.c (visible_cursor): New boolean var.
2264 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
2265 visible_cursor.
2266 (syms_of_term): Export the new var as "visible-cursor".
2267
2268 2005-12-30 Eli Zaretskii <eliz@gnu.org>
2269
2270 * .gdbinit: Tell users not to worry about GDB warnings that some
2271 functions do not exist in the binary.
2272
2273 2005-12-30 Andreas Schwab <schwab@suse.de>
2274
2275 * process.c (Fnetwork_interface_info): Correctly terminate the
2276 loop over ifflag_table.
2277
2278 2005-12-29 Richard M. Stallman <rms@gnu.org>
2279
2280 * lread.c (readevalloop): Test for reading a whole buffer
2281 before actually reading anything. Handle all cases, including
2282 START = END = nil and an already-narrowed buffer.
2283 Convert END to a marker if it is a number.
2284
2285 * keymap.c (describe_map): Put sparse map elements into an array,
2286 sort them, then output a sequence of identical bindings on one line.
2287 (struct describe_map_elt): New data type.
2288 (describe_map_compare): New function.
2289
2290 2005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2291
2292 * gtkutil.c (xg_get_file_with_chooser): Change message shown
2293 in file chooser.
2294
2295 2005-12-27 Richard M. Stallman <rms@gnu.org>
2296
2297 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
2298 not the current one.
2299
2300 * minibuf.c (Fminibuffer_message): Doc fix.
2301 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
2302
2303 * eval.c (do_autoload): Ignore elements of Vautoload_queue
2304 where car is not symbol.
2305
2306 2005-12-27 Kenichi Handa <handa@m17n.org>
2307
2308 * charset.c (lisp_string_width): Check multibyteness of STRING.
2309
2310 2005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2311
2312 * xfns.c: x_show_hidden_files, new variable.
2313 (syms_of_xfns): Defvar it.
2314
2315 * gtkutil.c (xg_toggle_visibility_cb): New function.
2316 (xg_get_file_with_chooser): Add toggle hidden files and a message
2317 to the new file chooser dialog. Show hidden files if
2318 x_show_hidden_files is non-zero.
2319
2320 2005-12-26 Richard M. Stallman <rms@gnu.org>
2321
2322 * keyboard.h: Undo previous change.
2323
2324 * Makefile.in (undo.o): Undo previous change.
2325
2326 * undo.c: Undo previous change.
2327
2328 2005-12-26 Luc Teirlinck <teirllm@auburn.edu>
2329
2330 * keyboard.h: extern last_point_position_window.
2331
2332 * undo.c: include keyboard.h.
2333
2334 * Makefile.in (undo.o): Depend on keyboard.h.
2335
2336 2005-12-26 Richard M. Stallman <rms@gnu.org>
2337
2338 * commands.h (last_point_position_window): Declare.
2339
2340 * undo.c: Depend on window.h.
2341 (record_point): Save old point from the correct window.
2342
2343 * keyboard.c (last_point_position_window): New variable.
2344 (command_loop_1): Set last_point_position_window.
2345 (syms_of_keyboard): Init it.
2346
2347 * Makefile.in (undo.o): Depend on window.h.
2348
2349 2005-12-25 Richard M. Stallman <rms@gnu.org>
2350
2351 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
2352 to undo a `provide'.
2353
2354 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
2355
2356 2005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
2357
2358 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
2359 define for FreeBSD on this platform.
2360
2361 2005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2362
2363 * macterm.h (TYPE_FILE_NAME): New define.
2364 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
2365
2366 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
2367 Add prototypes. Make static.
2368 (mac_aedesc_to_lisp): Initialize err to noErr.
2369 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
2370 (init_coercion_handler): New functions.
2371 (Fmac_coerce_ae_data): Use coercion of Apple event data for
2372 translation from/to file names.
2373
2374 * macterm.c: Don't include sys/param.h.
2375 (init_coercion_handler): Add extern.
2376 [MAC_OS8] (main): Call init_coercion_handler.
2377 (mac_initialize) [MAC_OSX]: Likewise.
2378 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
2379 Apple event data for translation from/to file names.
2380
2381 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
2382
2383 * image.c [MAC_OS] (find_image_fsspec): Likewise.
2384
2385 2005-12-23 Martin Rudalics <rudalics@gmx.at>
2386
2387 * insdel.c (insert, insert_and_inherit, insert_before_markers)
2388 (insert_before_markers_and_inherit): Make sure FROM is correct
2389 when `after-change-functions' are called.
2390
2391 2005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2392
2393 * xfns.c (Fx_uses_old_gtk_dialog): New function.
2394
2395 * gtkutil.c (xg_uses_old_file_dialog): New function.
2396 (xg_get_file_name): Use xg_uses_old_file_dialog.
2397
2398 * gtkutil.h: Declare xg_uses_old_file_dialog.
2399
2400 2005-12-22 Richard M. Stallman <rms@gnu.org>
2401
2402 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
2403
2404 2005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2405
2406 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
2407
2408 * macgui.h (XCharStruct): Remove member `valid_p'.
2409 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
2410 (XCharStructRow): New typedef.
2411 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
2412 New macros.
2413 (struct MacFontStruct): Add member `bounds'. Remove member
2414 `per_char'. All uses for QuichDraw Text fonts are changed to
2415 `bounds.per_char'. ATSUI font bounds are represented as an array
2416 `bounds.rows' of XCharStructRow's, each of which consists of a
2417 bitmap of valid entries and an array of char bounds.
2418
2419 * macterm.c (mac_per_char_metric): Add prototype.
2420 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
2421 (mac_query_char_extents): New function.
2422 (x_per_char_metric): Use it.
2423 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
2424 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
2425 Use mac_per_char_metric instead of x_per_char_metric.
2426 (mac_text_extents_16): New function.
2427 (mac_compute_glyph_string_overhangs): Use it.
2428 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
2429
2430 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
2431
2432 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
2433 (Fminibuffer_completion_help): Remove duplicates before display.
2434
2435 2005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2436
2437 * print.c (print_preprocess): Don't lose print_depth levels while
2438 iterating.
2439
2440 2005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2441
2442 * macmenu.c (Qmac_apple_event): Add extern.
2443 (set_frame_menubar, mac_menu_show keymp_panes)
2444 (single_keymap_panes, list_of_panes, list_of_item)
2445 (single_menu_item): Add argument types to prototypes.
2446 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
2447 (struct skp): New struct (from xmenu.c).
2448 (single_keymap_panes, single_menu_item, list_of_panes)
2449 (list_of_item): Sync with xmenu.c.
2450 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
2451 POSITION if it is mac-apple-event event.
2452 (menubar_selection_callback): Don't use menu_command_in_progress.
2453 (set_frame_menubar): First parse all submenus, then make
2454 widget_value trees from them. Don't allocate any widget_value
2455 objects until we are done with the parsing.
2456 (parse_single_submenu, digest_single_submenu): New functions.
2457 (single_submenu): Function deleted, replaced by those two.
2458 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
2459 create or dispose of EventHandlerUPP. Install hander to all submenus.
2460 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
2461 instead of ENCODE_SYSTEM.
2462 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
2463 integer values.
2464 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
2465 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
2466 format menu item string. Don't use NULL for integer value.
2467
2468 * macterm.h (struct mac_output): Remove unused member
2469 menu_command_in_progress.
2470
2471 2005-12-20 Juri Linkov <juri@jurta.org>
2472
2473 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
2474 position is non-nil, else set it to nil.
2475
2476 * macmenu.c (Fx_popup_menu): Add `else' to set
2477 Vmenu_updating_frame to nil only if position is nil.
2478
2479 * w32menu.c (Fx_popup_menu): Add `else' to set
2480 Vmenu_updating_frame to nil only if position is nil.
2481
2482 2005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2483
2484 * keyboard.c (make_lispy_event): Drag-and-drop items are now
2485 stored in member `args' of struct input_event.
2486
2487 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
2488
2489 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
2490 stored in member `args' of struct input_event.
2491
2492 * w32term.c (construct_drag_n_drop): Likewise.
2493
2494 * macterm.c (mac_do_receive_drag): Likewise.
2495 (x_use_underline_position_properties): Undo 2005-07-13 change.
2496 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
2497 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
2498 (mac_pass_command_to_system, mac_pass_control_to_system):
2499 New boolean variables renamed from Lisp_Object ones
2500 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
2501 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
2502 All uses changed.
2503 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
2504 Make them user options.
2505 (mac_handle_command_event, mac_store_services_event):
2506 Call create_apple_event_from_event_ref without 5th argument.
2507 (backtranslate_modified_keycode): Mask off modifier keys that are
2508 mapped to some Emacs modifiers before passing it to KeyTranslate.
2509 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
2510 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
2511 Fix docstrings of `mac-*-modifier'.
2512
2513 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
2514 (do_applescript): Change argument types to Lisp_Object.
2515 All uses changed.
2516
2517 * macterm.h (create_apple_event_from_event_ref): Remove 5th
2518 argument from extern.
2519
2520 2005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
2521
2522 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
2523 the answer, return `lambda', not nil.
2524
2525 2005-12-17 Eli Zaretskii <eliz@gnu.org>
2526
2527 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
2528 enclosed in $(ARGQUOTE)s should not be split between two lines, as
2529 that will break with GNU Make >3.80, when sh.exe is used and
2530 arg quoting is with '..'.
2531
2532 2005-12-17 Chong Yidong <cyd@stupidchicken.com>
2533
2534 * print.c (print_preprocess): Just signal an error if print_depth
2535 is exceeded.
2536
2537 2005-12-17 Eli Zaretskii <eliz@gnu.org>
2538
2539 * .gdbinit: Set a breakpoint on w32_abort.
2540
2541 2005-12-16 Juri Linkov <juri@jurta.org>
2542
2543 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
2544 created from minibuffer_completion_contents.
2545 (minibuffer_completion_contents): Remove.
2546 (do_completion, Fminibuffer_complete_word)
2547 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
2548 with Fminibuffer_completion_contents.
2549 (syms_of_minibuf): Add Sminibuffer_completion_contents.
2550 (Fdisplay_completion_list): Doc fix.
2551 (display_completion_list_1): Use `nil' for second arg of
2552 `Fdisplay_completion_list'.
2553
2554 2005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2555
2556 * xfns.c (compute_tip_xy): Handle negative dx and dy.
2557
2558 * w32fns.c (compute_tip_xy): Ditto.
2559
2560 * macfns.c (compute_tip_xy): Ditto.
2561
2562 2005-12-14 Chong Yidong <cyd@stupidchicken.com>
2563
2564 * print.c (print_preprocess): Go to a deeper print_depth to avoid
2565 print_object loop.
2566
2567 2005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
2568
2569 * coding.c (code_convert_region_unwind): GCPRO arg.
2570
2571 2005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2572
2573 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
2574 i.e. dy is offset from top of frame instead of bottom.
2575
2576 * macfns.c (compute_tip_xy): Ditto.
2577
2578 * w32fns.c (compute_tip_xy): Ditto.
2579
2580 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
2581 (xg_get_image_for_pixmap, xg_create_frame_widgets)
2582 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
2583
2584 * xmenu.c (menubar_selection_callback): Do nothing if the callback
2585 is for an unselected radio menu item.
2586
2587 2005-12-11 Richard M. Stallman <rms@gnu.org>
2588
2589 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
2590
2591 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
2592
2593 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
2594 (Flookup_key): Doc fix.
2595 (syms_of_keymap) <function-key-map>: Doc fix.
2596
2597 * fns.c (Frequire): Treat evaluating from a source file
2598 like loading the file.
2599
2600 * floatfns.c (Flog): Doc fix.
2601
2602 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
2603 when we change the buffer.
2604
2605 2005-12-11 Juri Linkov <juri@jurta.org>
2606
2607 * minibuf.c (display_completion_list_1):
2608 Call `minibuffer_completion_contents' instead of using `nil' as
2609 second arg of `Fdisplay_completion_list'.
2610 (keys_of_minibuf): Unbind SPC in
2611 Vminibuffer_local_filename_completion_map (see also related
2612 change on 2005-12-06).
2613
2614 2005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2615
2616 * emacs.c (main) [MAC_OS8]: Undo previous change.
2617
2618 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
2619 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
2620
2621 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2622
2623 * Makefile.in (macselect.o): Depend on keymap.h.
2624
2625 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
2626 syms_of_macselect.
2627
2628 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
2629 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
2630
2631 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
2632 (syms_of_keyboard) [MAC_OS]: Initialize it.
2633 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
2634
2635 * mac.c (Qundecoded_file_name): New variable.
2636 (syms_of_mac): Initialize it.
2637 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
2638 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
2639 (Fmac_coerce_ae_data): New defun.
2640 (syms_of_mac): Defsubr it.
2641
2642 * macselect.c: Include keymap.h.
2643 (mac_ready_for_apple_events): New variable.
2644 (Vmac_apple_event_map, Qmac_apple_event_class)
2645 (Qmac_apple_event_id): New variables.
2646 (syms_of_macselect): Initialize them.
2647 (Qundefined, mac_store_apple_event): Add externs.
2648 (struct apple_event_binding): New struct.
2649 (find_event_binding_fun, find_event_binding)
2650 (mac_find_apple_event_spec, defer_apple_events)
2651 (mac_handle_apple_event, init_apple_event_handler)
2652 (copy_scrap_flavor_data): New functions.
2653 (Fmac_process_deferred_apple_events): New defun.
2654 (syms_of_macselect): Defsubr it.
2655 (mac_store_services_event): Fix extern.
2656 (mac_handle_service_event): Don't allocate Lisp objects during
2657 asynchronous input processing. Use mac_store_services_event
2658 instead of mac_store_application_menu_event.
2659
2660 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
2661 (Qpreferences): Remove variables.
2662 (syms_of_macterm) : Don't initialize them.
2663 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
2664 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
2665 (init_required_apple_events, do_ae_open_application)
2666 (do_ae_print_documents, do_ae_open_documents)
2667 (do_ae_quit_application): Remove functions and prototypes.
2668 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
2669 (mac_find_apple_event_spec): Add externs.
2670 (mac_store_application_menu_event): Remove function.
2671 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
2672 (mac_handle_command_event): Create Apple event from Carbon event.
2673 Use mac_store_apple_event instead of mac_store_application_menu_event.
2674 [MAC_OSX] (mac_store_services_event): Likewise.
2675 (struct SelectionRange, SelectionRange): Remove struct and typedef.
2676 [MAC_OS8] (main): Call init_apple_event_handler instead of
2677 init_required_apple_events.
2678 (mac_initialize) [MAC_OSX]: Likewise.
2679 [!USE_CARBON_EVENTS] (mac_wait_next_event):
2680 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
2681
2682 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
2683 Add externs.
2684 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
2685 (Fmac_get_preference): Add EXFUN.
2686
2687 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
2688 event.
2689
2690 2005-12-09 Richard M. Stallman <rms@gnu.org>
2691
2692 * xfns.c (Fx_create_frame): Reinstate previous change.
2693
2694 2005-12-09 Eli Zaretskii <eliz@gnu.org>
2695
2696 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
2697 GDB to the abort dialog.
2698
2699 2005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
2700
2701 * indent.c (Fvertical_motion): Force move if starting on
2702 stretch glyph.
2703
2704 2005-12-08 Richard M. Stallman <rms@gnu.org>
2705
2706 * lread.c (read_escape) <\s>: Don't treat strings specially.
2707
2708 * xfns.c (Fx_create_frame): Comment out previous change.
2709
2710 2005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2711
2712 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
2713 when needed.
2714
2715 2005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
2716
2717 * minibuf.c (keys_of_minibuf): Just unbind SPC in
2718 Vminibuffer_local_filename_completion_map rather than forcing it
2719 explicitly to the same binding as the global map.
2720
2721 2005-12-06 Ken Raeburn <raeburn@gnu.org>
2722
2723 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
2724 * bytecode.c (Fbyte_code): Likewise.
2725 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
2726 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
2727 * undo.c (truncate_undo_list): Likewise.
2728
2729 2005-12-05 Richard M. Stallman <rms@gnu.org>
2730
2731 * window.c (enlarge_window): Eliminate arg preserve_before.
2732 Assume it is 0. All callers changed.
2733 (Fenlarge_window, Fshrink_window): Likewise.
2734
2735 2005-12-02 Eli Zaretskii <eliz@gnu.org>
2736
2737 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
2738 fit below.
2739
2740 2005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2741
2742 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
2743
2744 * xfns.c (x_real_positions): int ign => unsigned int.
2745 (xg_set_icon_from_xpm_data): Remove unused variable err.
2746 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
2747 to remove compiler warning.
2748 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
2749
2750 2005-12-02 David Reitter <david.reitter@gmail.com>
2751
2752 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
2753 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
2754 and Vminibuffer_local_must_match_filename_map keymaps.
2755 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
2756
2757 * keymap.c (Vminibuffer_local_filename_completion_map)
2758 (Vminibuffer_local_must_match_filename_map): New variables.
2759 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
2760 parent to be Vminibuffer_local_completion_map and
2761 Vminibuffer_local_must_match_map, respectively.
2762
2763 * commands.h (Vminibuffer_local_filename_completion_map)
2764 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
2765
2766 2005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
2767
2768 * window.c (Fset_window_configuration): Don't accidentally copy the
2769 window-point of one window to another.
2770
2771 2005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2772
2773 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
2774
2775 2005-11-30 Kim F. Storm <storm@cua.dk>
2776
2777 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
2778 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
2779 passing it to `emacs_write'.
2780
2781 2005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
2782
2783 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
2784
2785 2005-11-27 Richard M. Stallman <rms@gnu.org>
2786
2787 * window.c (adjust_window_trailing_edge): New function.
2788 (Fadjust_window_trailing_edge): New function.
2789 (syms_of_window): Defsubr it.
2790 (window_deletion_count): New variable.
2791 (delete_window): Update window_deletion_count.
2792
2793 2005-11-26 Eli Zaretskii <eliz@gnu.org>
2794
2795 * minibuf.c (syms_of_minibuf): Mention the extension of
2796 `completion-auto-help's meaning by complete.el.
2797
2798 2005-11-26 Henrik Enberg <henrik.enberg@telia.com>
2799
2800 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
2801 Handle :inherit property as a lisp expression.
2802
2803 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2804
2805 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
2806 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
2807 Qsuper, and Qmodifier_value.
2808 (Vmac_control_modifier, Vmac_option_modifier)
2809 (Vmac_command_modifier, Vmac_function_modifier)
2810 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
2811 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
2812 (Vmac_charset_info_alist): Doc fixes.
2813
2814 2005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2815
2816 * emacs.c (main) [MAC_OSX]: Change working directory to home
2817 directory if `-psn_*' option is specified.
2818
2819 * mac.c (DECODE_UTF_8): Remove macro.
2820 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
2821 created from cfstring_to_lisp.
2822 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
2823 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
2824
2825 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
2826 Add prototype.
2827
2828 2005-11-21 Ken Raeburn <raeburn@gnu.org>
2829
2830 * keymap.c (shadow_lookup): Use make_number to pass a number to
2831 Fsubstring.
2832
2833 2005-11-21 Juri Linkov <juri@jurta.org>
2834
2835 * puresize.h (BASE_PURESIZE): Increment to 1180000.
2836
2837 2005-11-20 Chong Yidong <cyd@stupidchicken.com>
2838
2839 * xfaces.c (Finternal_set_lisp_face_attribute):
2840 Use :ignore-defface for new frame defaults when `unspecified' is
2841 supplied.
2842 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
2843 (merge_face_vectors): Don't do :ignore-defface overwriting here.
2844 (Finternal_merge_in_global_face): Do it here.
2845
2846 2005-11-20 Juri Linkov <juri@jurta.org>
2847
2848 * charset.c (invalid_character): Use Lisp-readable syntax
2849 for octal and hex. Reorder decimal, octal and hex values.
2850
2851 2005-11-20 Nick Roberts <nickrob@snap.net.nz>
2852
2853 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
2854 this type is recognised when debugging.
2855
2856 2005-11-19 Andreas Schwab <schwab@suse.de>
2857
2858 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
2859 Lisp_Cons and Lisp_Float.
2860
2861 2005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2862
2863 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
2864 New variable.
2865 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
2866 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
2867 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
2868 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
2869
2870 2005-11-17 Chong Yidong <cyd@stupidchicken.com>
2871
2872 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
2873
2874 * xfaces.c (Qignore_defface): New variable.
2875 (syms_of_xfaces): Provide `:ignore-defface'.
2876 (IGNORE_DEFFACE_P): New macro.
2877 (check_lface_attrs, lface_fully_specified_p)
2878 (Finternal_set_lisp_face_attribute)
2879 (Fface_attribute_relative_p, Fmerge_face_attribute):
2880 Handle Qignore_defface as a possible value.
2881 (merge_face_vectors): The merged face is `unspecified' if the
2882 mergee specifies `:ignore-defface'.
2883
2884 2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
2885
2886 * lread.c (readevalloop): Add missing GCPROs.
2887
2888 2005-11-16 Chong Yidong <cyd@stupidchicken.com>
2889
2890 * xfns.c (xg_set_icon_from_xpm_data): New function.
2891
2892 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
2893 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
2894
2895 * xterm.c (x_bitmap_icon): Use the xpm if available.
2896
2897 * image.c (x_create_bitmap_from_xpm_data): New function.
2898 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
2899
2900 2005-11-15 Luc Teirlinck <teirllm@auburn.edu>
2901
2902 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
2903
2904 2005-11-16 Nick Roberts <nickrob@snap.net.nz>
2905
2906 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
2907
2908 2005-11-15 Andreas Schwab <schwab@suse.de>
2909
2910 * lisp.h (struct Lisp_Cons): Make cdr a union.
2911 (XCDR_AS_LVALUE): Adjust.
2912 (struct Lisp_Float): Make data a union.
2913 (XFLOAT_DATA): Adjust.
2914
2915 * alloc.c (free_float): Make free list chaining aliasing-safe.
2916 (make_float): Likewise.
2917 (free_cons): Likewise.
2918 (Fcons): Likewise.
2919 (check_cons_list): Likewise.
2920 (Fmake_symbol): Likewise.
2921 (allocate_misc): Likewise.
2922 (free_misc): Likewise.
2923 (gc_sweep): Likewise.
2924
2925 2005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2926
2927 * mac.c (HASHKEY_QUERY_CACHE): New define.
2928 (xrm_create_database, xrm_q_put_resource): Empty query cache.
2929 (xrm_get_resource): Use query cache.
2930
2931 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
2932 inhibit_window_system is set.
2933
2934 2005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2935
2936 * macgui.h (USE_CG_TEXT_DRAWING): New define.
2937 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
2938 and cg_glyphs.
2939
2940 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
2941 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
2942 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
2943 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
2944 not used and font substitution never occurs for ASCII and Latin-1
2945 characters.
2946 (XLoadQueryFont): Maximum and minimum metrics are now those among
2947 ASCII characters.
2948 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
2949 height adjustments for Courier, Helvetica, and Times.
2950
2951 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
2952
2953 2005-11-11 David Reitter <david.reitter@gmail.com>
2954
2955 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
2956 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
2957 Vmac_control_modifier / mac-control-modifier,
2958 Vmac_option_modifier / mac-option-modifier,
2959 Vmac_command_modifier / mac-command-modifier.
2960 (mac_to_emacs_modifiers): Use the new style modifier
2961 variables. Return UInt32 (modifiers are longs now.)
2962 (backtranslate_modified_keycode): New function (refactoring).
2963 (XTread_socket): Use new modifier variables and refactored function.
2964 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
2965 no dedicated meta key. Not in use anyway.)
2966 (convert_fn_keycode): Map Fn-keys to their original keycode
2967 using a table (english keyboard only).
2968
2969 2005-11-11 Kim F. Storm <storm@cua.dk>
2970
2971 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
2972 Add post hook to "backtrace" to always dump lisp call stack to
2973 increase chance of people sending it to us when reporting bugs.
2974
2975 * doc.c (Fsubstitute_command_keys): Doc fix.
2976
2977 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
2978
2979 * xdisp.c (handle_stop): Skip overlay string handling if
2980 ignore_overlay_strings_at_pos_p is set.
2981 (set_iterator_to_next): At end of display vector, set
2982 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
2983 string, so we skip those overlay strings at current pos.
2984
2985 2005-11-10 Lars Hansen <larsh@soem.dk>
2986
2987 * fileio.c (file-regular-p): Doc fix.
2988
2989 2005-11-10 Kim F. Storm <storm@cua.dk>
2990
2991 * alloc.c (valid_lisp_object_p): New function to validate that
2992 an object is really a valid Lisp_Object.
2993
2994 * lisp.h (valid_lisp_object_p): Add prototype.
2995
2996 * print.c (safe_debug_print): New function to be called from gdb
2997 to print Lisp objects; use valid_lisp_object_p to avoid crashing
2998 if user tries to print something which is not a Lisp object.
2999
3000 * .gdbinit (pp, pp1): Use safe_debug_print.
3001 (pv, pv1): New commands to print value of a lisp variable.
3002
3003 2005-11-10 Nick Roberts <nickrob@snap.net.nz>
3004
3005 * .gdbinit (pp1): New user-defined function.
3006
3007 2005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3008
3009 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
3010
3011 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
3012 related variables for dumped executable.
3013
3014 * unexmacosx.c (unexec_write_zero): New function.
3015 (copy_data_segment): Clear uninitialized local variables in
3016 statically linked libraries.
3017
3018 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
3019
3020 2005-11-09 Juri Linkov <juri@jurta.org>
3021
3022 * keymap.c (shadow_lookup): If Flookup_key returns a number,
3023 call it again with a sub-key-sequence, and if its return value
3024 is non-nil (sub-key is bound), return nil.
3025
3026 2005-11-08 Kim F. Storm <storm@cua.dk>
3027
3028 * process.c (Fsignal_process): Recognize signal names with and
3029 without SIG prefix, e.g. SIGHUP and HUP.
3030
3031 * search.c (search_buffer): No need to initialize base_pat.
3032
3033 2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
3034
3035 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
3036 Don't abuse the `mini' arg. Use the `obj' arg instead.
3037
3038 2005-11-04 Kim F. Storm <storm@cua.dk>
3039
3040 * xdisp.c (show_mouse_face): Clear mouse face to eol.
3041
3042 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
3043
3044 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
3045 font-lock.elc and jit-lock.elc.
3046
3047 2005-11-03 Richard M. Stallman <rms@gnu.org>
3048
3049 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
3050 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
3051 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
3052
3053 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
3054
3055 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
3056
3057 2005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3058
3059 * window.c (Fdisplay_buffer): Fix last change to not use
3060 a dedicated window.
3061
3062 2005-11-01 Kim F. Storm <storm@cua.dk>
3063
3064 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
3065 Instead, rotate the bottom angle bitmap 180 degrees to indicate
3066 that the bottom row does not end in a newline.
3067
3068 2005-11-01 Andreas Schwab <schwab@suse.de>
3069
3070 * unexelf.c (unexec): Handle .plt section in BSS segment.
3071
3072 2005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
3073
3074 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
3075
3076 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
3077 determine whether to consider dedicated windows as well.
3078 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
3079 (Fdisplay_buffer): Do consider dedicated windows in those cases where
3080 we will split the window rather than reuse it.
3081 Don't try to use windows on other displays.
3082
3083 2005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
3084
3085 * puresize.h (BASE_PURESIZE): Increment to 1170000.
3086
3087 2005-10-31 Romain Francoise <romain@orebokech.com>
3088
3089 * macfns.c: Update copyright year.
3090 * m/gould.h: Likewise.
3091
3092 2005-10-30 Kim F. Storm <storm@cua.dk>
3093
3094 * xdisp.c (display_line): Restore it->current_x and call
3095 extend_face_to_end_of_line when last glyph doesn't fit on line.
3096 (set_glyph_string_background_width): Remove specific tests here
3097 to see if face background should extend to end of line. Simplify.
3098
3099 2005-10-30 Richard M. Stallman <rms@gnu.org>
3100
3101 * alloc.c (BYTES_USED): Use uordblks, not arena.
3102 (bytes_used_when_reconsidered): New variable.
3103 (emacs_blocked_free): Set that.
3104
3105 2005-10-29 Chong Yidong <cyd@stupidchicken.com>
3106
3107 * alloc.c (emacs_blocked_free): Fix typo.
3108
3109 2005-10-29 Richard M. Stallman <rms@gnu.org>
3110
3111 * data.c (Fmake_variable_frame_local): Doc fix.
3112
3113 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
3114 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
3115 controls whether to save and restore mode_line_proptrans_alist.
3116 Callers changed.
3117 (unwind_format_mode_line): Work with that feature.
3118 (redisplay_internal): Don't call prepare_menu_bars if memory full.
3119 (move_elt_to_front): New function.
3120 (display_mode_element): Use move_elt_to_front.
3121 Don't bother munging text props on a null string.
3122 Delete obsolete elts from mode_line_proptrans_alist.
3123 (decode_mode_spec): Test Vmemory_full, not spare_memory.
3124 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
3125
3126 * lisp.h (memory_full_cons_threshold): Declare.
3127 (internal_lisp_condition_case): Declare.
3128
3129 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
3130 (Fmemory_full_p): Function deleted.
3131 (syms_of_alloc): Don't defsubr it.
3132 (memory_full_cons_threshold): New variable.
3133 (spare_memory): Now a vector of 7 elts.
3134 (buffer_memory_full): Don't set Vmemory_full here.
3135 (xfree): Don't try to refill here.
3136 (emacs_blocked_free): Record BYTES_USED in local var.
3137 (memory_full): Now free all the slots in spare_memory.
3138 (refill_memory_reserve): Allocate each slot in spare_memory.
3139 (init_alloc_once): Call refill_memory_reserve.
3140
3141 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
3142
3143 * eval.c (internal_lisp_condition_case): New function.
3144 (Fcondition_case): Use internal_lisp_condition_case.
3145 (Feval): Test Vmemory_full and memory_full_cons_threshold.
3146 (Ffuncall): Likewise.
3147
3148 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
3149
3150 2005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
3151
3152 * syntax.c (Fparse_partial_sexp): Fix docstring.
3153
3154 2005-10-28 Romain Francoise <romain@orebokech.com>
3155
3156 * puresize.h (BASE_PURESIZE): Increment to 1130000.
3157
3158 2005-10-28 Richard M. Stallman <rms@gnu.org>
3159
3160 * xfns.c (syms_of_xfns): Provide `x' as feature.
3161
3162 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
3163
3164 * editfns.c (Fformat): Don't include string padding
3165 between info[n].start and info[n].end.
3166
3167 * alloc.c (spare_memory): No longer static.
3168 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
3169
3170 * puresize.h (BASE_PURESIZE): Increment to 1120000.
3171
3172 2005-10-27 Chong Yidong <cyd@stupidchicken.com>
3173
3174 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
3175
3176 * fringe.c (update_window_fringes): Handle case where buffer ends
3177 with a newline.
3178
3179 2005-10-27 Kenichi Handa <handa@m17n.org>
3180
3181 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
3182
3183 2005-10-24 Kenichi Handa <handa@m17n.org>
3184
3185 * charset.h (charset_mule_unicode_0100_24ff)
3186 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
3187 Extern them.
3188
3189 * charset.c (charset_mule_unicode_0100_24ff)
3190 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
3191 New variables.
3192 (Fsetup_special_charsets): Initialize them.
3193
3194 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
3195 supported Unicode characters.
3196
3197 2005-10-25 Jason Rumney <jasonr@gnu.org>
3198
3199 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
3200
3201 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3202
3203 * image.c [MAC_OS] (image_load_qt_1): Check image size.
3204 Use GraphicsImportGetImageDescription instead of
3205 GraphicsImportGetNaturalBounds.
3206 [MAC_OSX] (image_load_quartz2d): Check image size.
3207 [MAC_OS] (xpm_load_image): Likewise.
3208
3209 * macterm.c (last_mouse_glyph_frame): New var.
3210 (note_mouse_movement): Say mouse moved if current frame differs
3211 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
3212 (XTmouse_position): Set last_mouse_glyph_frame.
3213 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
3214 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
3215 Use EndianU16_BtoN.
3216 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
3217 (x_per_char_metric, XLoadQueryFont)
3218 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
3219 glyph bounds.
3220 (mac_to_x_fontname, mac_do_list_fonts)
3221 (mac_initialize_display_info): Change screen resolutions to 72dpi.
3222
3223 2005-10-25 Masatake YAMATO <jet@gyve.org>
3224
3225 * minibuf.c (Fdisplay_completion_list): Small doc fix.
3226
3227 2005-10-24 Kim F. Storm <storm@cua.dk>
3228
3229 * xterm.c: Undo 2005-10-23 change.
3230 (last_mouse_glyph_frame): New var.
3231 (note_mouse_movement): Say mouse moved if current frame differs
3232 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
3233 (XTmouse_position): Set last_mouse_glyph_frame.
3234 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
3235 last_mouse_glyph] on mouse up/down event.
3236
3237 * editfns.c (Fcompare_buffer_substrings): Fix last change.
3238
3239 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3240
3241 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
3242
3243 2005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3244
3245 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
3246 so tool tips don't interfere with press on tool bar button.
3247
3248 2005-10-23 Richard M. Stallman <rms@gnu.org>
3249
3250 * casetab.c (Fset_case_table): Doc fix.
3251
3252 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
3253 (readevalloop): Compute ENTIRE properly.
3254 (syms_of_lread) <load-history>: Doc fix.
3255
3256 2005-10-21 Richard M. Stallman <rms@gnu.org>
3257
3258 * lread.c (Fload): Simplify gcpro structure.
3259 Gcpro FOUND as well as FILE, but not EFOUND.
3260 Unless preloading, record FOUND instead of FILE in Vload_history.
3261 Rename repeat local FILE to MSG_FILE.
3262 (syms_of_lread) <load-history>: Doc fix.
3263
3264 2005-10-21 Kenichi Handa <handa@m17n.org>
3265
3266 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
3267
3268 2005-10-20 Kim F. Storm <storm@cua.dk>
3269
3270 * buffer.c (clone_per_buffer_values): Remove unused var tem.
3271 (init_buffer): Remove unused vars dotstat, pwdstat.
3272
3273 * ccl.c (check_ccl_update): Remove unused var vp.
3274
3275 * fileio.c (auto_save_error): Call SAFE_FREE.
3276
3277 * fns.c (Fchar_table_range): Remove unused var i.
3278
3279 * minibuf.c (display_completion_list_1): New wrapper function
3280 for Fdisplay_completion_list.
3281 (Fminibuffer_completion_help): Use it.
3282
3283 * term.c (encode_terminal_code): Remove unused var src_start.
3284
3285 * window.c (Fwindow_tree): Remove unused var alist.
3286
3287 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
3288
3289 2005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
3290
3291 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
3292
3293 2005-10-20 Olli Savia <ops@iki.fi> (tiny change)
3294
3295 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
3296
3297 2005-10-20 Andreas Schwab <schwab@suse.de>
3298
3299 * minibuf.c (Fdisplay_completion_list): Doc fix.
3300
3301 2005-10-19 Kim F. Storm <storm@cua.dk>
3302
3303 * image.c (check_image_size): Handle integer Vmax_image_size value
3304 directly as max pixel value. Use default frame size for null frame.
3305 (syms_of_image) <max-image-size>: Describe integer value.
3306
3307 2005-10-19 Romain Francoise <romain@orebokech.com>
3308
3309 * emacs.c (main): Update copyright year.
3310
3311 2005-10-18 Chong Yidong <cyd@stupidchicken.com>
3312
3313 * image.c (Vmax_image_size): New variable.
3314 (check_image_size): New function.
3315 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
3316 (gif_load, gs_load): Use it.
3317 (lookup_image): Try loading again if previous load failed.
3318 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
3319 to display in, NULL if none.
3320 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
3321 argument.
3322
3323 2005-10-18 Richard M. Stallman <rms@gnu.org>
3324
3325 * search.c (Fstring_match): Doc fix.
3326
3327 2005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3328
3329 * macterm.c (note_mouse_movement): Use PtInRect.
3330 (XTread_socket): Also ignore mouse motion just before a button
3331 release event. Don't process button release event when mouse is
3332 not grabbed.
3333
3334 2005-10-16 Masatake YAMATO <jet@gyve.org>
3335
3336 * minibuf.c (Fdisplay_completion_list): Add new optional
3337 argument COMMON_SUBSTRING. Bind `completion-common-substring'
3338 to the optional argument during running `completion-setup-hook'.
3339
3340 2005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3341
3342 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
3343 Allow nil as argument.
3344 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
3345 for encoding arguments as UTF-16 in native byte order, no BOM.
3346
3347 * macfns.c (Fx_create_frame): Add debugging code.
3348 (Fx_show_tip): Set frame pixel width and height.
3349
3350 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
3351 (FRAME_NORMAL_GC): New macro.
3352 (mac_draw_line, mac_clear_area, mac_clear_window)
3353 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
3354 (mac_draw_image_string, mac_draw_image_string_16): Rename from
3355 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
3356 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
3357 All uses changed.
3358 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
3359 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
3360 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
3361 (mac_draw_string_16, mac_draw_image_string)
3362 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
3363 (mac_scroll_area): Drawing functions now take frame as destination.
3364 All uses changed.
3365 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
3366 (x_draw_fringe_bitmap): Set clipping area in face->gc.
3367
3368 * macterm.h (mac_clear_area): Add extern.
3369
3370 2005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3371
3372 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
3373 changes for xterm.c.
3374
3375 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
3376
3377 2005-10-14 Kenichi Handa <handa@m17n.org>
3378
3379 * search.c (search_buffer): Give up BM search on case-fold-search
3380 if one of a target character has a case-equivalence of different
3381 charset even if that target charcter is an ASCII.
3382
3383 * casefiddle.c (casify_object): Fix for the case that case
3384 conversion change the byte length.
3385
3386 2005-10-14 Kim F. Storm <storm@cua.dk>
3387
3388 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
3389 (handle_one_xevent): Only clear help_echo_string; restore it if
3390 note_mouse_movement didn't record any mouse movement.
3391
3392 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
3393 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
3394
3395 * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
3396 (Fposn_at_x_y): Fix calculation of x coordinate.
3397 (Fposn_at_point): Return nil if point is hscrolled out of view.
3398
3399 2005-10-13 Andreas Schwab <schwab@suse.de>
3400
3401 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
3402 non-interactive mode.
3403
3404 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3405
3406 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
3407
3408 2005-10-12 Kim F. Storm <storm@cua.dk>
3409
3410 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
3411
3412 2005-10-12 Romain Francoise <romain@orebokech.com>
3413
3414 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
3415
3416 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3417
3418 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
3419 get end of text rows. Obtain header-line/mode-line rows directly.
3420
3421 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
3422 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
3423
3424 2005-10-12 Kim F. Storm <storm@cua.dk>
3425
3426 * xdisp.c (remember_mouse_glyph): New generic version based on
3427 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
3428 properly handle all different window areas.
3429
3430 * dispextern.h (remember_mouse_glyph): Add prototype.
3431
3432 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
3433 (note_mouse_movement, XTmouse_position): Use generic
3434 remember_mouse_glyph, add last_mouse_glyph arg.
3435
3436 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
3437 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
3438 (note_mouse_movement, w32_mouse_position): Use generic
3439 remember_mouse_glyph, add last_mouse_glyph arg.
3440
3441 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
3442 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
3443 (XTmouse_position): Adapt to use generic remember_mouse_glyph
3444 instead of pixel_to_glyph_coords.
3445
3446 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
3447 Fix x position for ON_TEXT when left margin width > 0.
3448
3449 2005-10-11 Kim F. Storm <storm@cua.dk>
3450
3451 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
3452
3453 * keyboard.c (make_lispy_position): Fix buffer calculations for
3454 mouse click or movement in right fringe and the margins.
3455
3456 2005-10-11 Juanma Barranquero <lekktu@gmail.com>
3457
3458 * image.c (fn_jpeg_stdio_src): Don't define it.
3459 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
3460 (our_common_init_source): Rename from `our_init_source'.
3461 (our_common_term_source): Rename from `our_term_source'.
3462 (our_memory_fill_input_buffer): Rename from
3463 `our_fill_input_buffer'.
3464 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
3465 (jpeg_memory_src): Use the new names.
3466 (struct jpeg_stdio_mgr): New struct.
3467 (JPEG_STDIO_BUFFER_SIZE): New constant.
3468 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
3469 (jpeg_file_src): New functions.
3470 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
3471
3472 2005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3473
3474 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
3475 (fm_font_family_alist): New variable.
3476 (syms_of_macterm): Initialize and staticpro it.
3477 (decode_mac_font_name): Replace '-' in family name with '_' if it
3478 occurs just once. Lower family name.
3479 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
3480 All uses changed. Remove argument MF and code conversion for it.
3481 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
3482 to CHARSET. Parse font size. Lower family name. Return integer
3483 value for status of parsing.
3484 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
3485 Don't use Fdowncase because family name is already lowered by
3486 decode_mac_font_name.
3487 (init_font_name_table): Always call decode_mac_font_name.
3488 Add pair of family name and its reference to fm_font_family_alist.
3489 (mac_clear_font_name_table): Clear fm_font_family_alist.
3490 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
3491 Lookup fm_font_family_alist to get font family reference.
3492 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
3493 name is already lowered by parse_x_font_name.
3494
3495 2005-10-11 Kim F. Storm <storm@cua.dk>
3496
3497 * xterm.c (glyph_rect): Return 0 if position is outside text area.
3498
3499 * keyboard.c (make_lispy_position): Fix buffer position calculation for
3500 mouse click or movement in fringe.
3501
3502 2005-10-10 Jason Rumney <jasonr@gnu.org>
3503
3504 * xterm.c (remember_mouse_glyph): New function.
3505 (note_mouse_movement): Use it to remember the current glyph if changed.
3506 (XTmouse_position): Fix calculation of fake glyph under mouse.
3507 Move code to calculate glyph under mouse into remember_mouse_glyph.
3508
3509 2005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3510
3511 * emacs.c (USAGE3, standard_args): -nb => -nbi.
3512
3513 2005-10-10 Juanma Barranquero <lekktu@gmail.com>
3514
3515 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
3516 (next_frame, prev_frame, set_term_frame_name): Make static.
3517
3518 * window.c (Fwindow_tree): Fix spelling.
3519
3520 2005-10-09 Romain Francoise <romain@orebokech.com>
3521
3522 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
3523
3524 2005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3525
3526 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
3527 Add options -nb, --no-bitmap-icon.
3528
3529 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
3530
3531 2005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3532
3533 * macgui.h (MAX_CLIP_RECTS): New define.
3534 (struct _XGC): New member clip_region.
3535 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
3536 clip_rects.
3537
3538 * macterm.c (GC_CLIP_REGION): New macro.
3539 (saved_port_clip_region): New variable.
3540 (mac_begin_clip, mac_end_clip): New functions.
3541 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
3542 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
3543 (mac_copy_area_with_mask, mac_scroll_area): Use them.
3544 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
3545 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
3546 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
3547 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
3548 rectangles stored in gc.
3549 (XFreeGC): Dispose of clipping region.
3550 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
3551 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
3552 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
3553 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
3554 (x_draw_bar_cursor): Use them.
3555 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
3556 get multiple clipping rectangles.
3557
3558 * macterm.h (mac_term_init): Add types to extern.
3559 (struct mac_output): Remove members mWP and pending_menu_activation.
3560 Put members scroll_bar_foreground_pixel and
3561 scroll_bar_background_pixel in #if 0.
3562 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
3563
3564 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
3565 Add debugging code.
3566
3567 2005-10-08 Kim F. Storm <storm@cua.dk>
3568
3569 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
3570
3571 2005-10-07 Kim F. Storm <storm@cua.dk>
3572
3573 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
3574 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
3575 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
3576
3577 2005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3578
3579 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
3580 to for_overlaps. Now occupy 3 bits.
3581 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
3582 (OVERLAPS_ERASED_CURSOR): New defines.
3583 (struct redisplay_interface): Add new OVERLAPS arg to member
3584 fix_overlapping_area.
3585 (x_fix_overlapping_area): Add new OVERLAPS arg.
3586 (get_glyph_string_clip_rects): Add extern.
3587
3588 * dispnew.c (redraw_overlapping_rows):
3589 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
3590
3591 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
3592 for_overlaps.
3593 (get_glyph_string_clip_rects): New function created from
3594 get_glyph_string_clip_rect. Set clipping rectangles according to the
3595 value of for_overlaps. Enable to store multiple clipping rectangles.
3596 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
3597 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
3598 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
3599 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
3600 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
3601 calculating clipping rectangles later. Call x_fix_overlapping_area
3602 with new OVERLAPS arg to draw only erased cursor area.
3603 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
3604 to draw overlaps in both preceding and succeeding rows.
3605
3606 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
3607 struct glyph_string to for_overlaps.
3608
3609 2005-10-04 Richard M. Stallman <rms@gnu.org>
3610
3611 * alloc.c (refill_memory_reserve): Conditionalize the body,
3612 not the function's existence.
3613
3614 2005-10-04 Kim F. Storm <storm@cua.dk>
3615
3616 * window.c (window_split_tree): New function.
3617 (Fwindow_split_tree): New defun.
3618 (syms_of_window): Defsubr it.
3619
3620 2005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3621
3622 * macterm.c (mac_invert_rectangle): New function.
3623 (XTflash): Use it.
3624
3625 2005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
3626
3627 * regex.h (re_char): Don't expose it in the interface.
3628 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
3629
3630 * regex.c (re_char): Move it back here.
3631 (re_set_whitespace_regexp): Change the arg's type to not use it.
3632
3633 * keyboard.c (make_lispy_event): If point has moved between down and up
3634 event, make it a drag, not a click, to mirror what
3635 mouse-drag-region expects.
3636
3637 2005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
3638
3639 * lisp.h (fatal): Undo previous change.
3640 * term.c (fatal): Undo previous change.
3641
3642 2005-10-01 Richard M. Stallman <rms@gnu.org>
3643
3644 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
3645
3646 2005-10-01 Kim F. Storm <storm@cua.dk>
3647
3648 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
3649
3650 2005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3651
3652 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
3653
3654 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
3655 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
3656 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
3657 Try ATSUI-compatible 12pt Monaco font first.
3658
3659 * macgui.h (struct _XCharStruct): New member valid_p.
3660 (STORE_XCHARSTRUCT): Set valid_p.
3661 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
3662
3663 * macterm.c (mac_draw_string_common, x_per_char_metric)
3664 (mac_compute_glyph_string_overhangs, init_font_name_table)
3665 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
3666 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
3667 (x_draw_glyph_string_background)
3668 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
3669 XDrawImageString. Always draw background and foreground separately.
3670 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
3671 functions for one-byte chars when using ATSUI-compatible fonts.
3672 (atsu_font_id_hash) [USE_ATSUI]: New variable.
3673 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
3674 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
3675 max_char_or_byte2 more in detail.
3676 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
3677
3678 2005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
3679
3680 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
3681 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
3682
3683 * unexelf.c (fatal): Fix prototype.
3684
3685 * term.c (fatal): Implement using varargs.
3686
3687 * regex.c (re_char): Move typedef ...
3688 * regex.h (re_char): ... here.
3689 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
3690
3691 * emacs.c (malloc_set_state): Fix return type.
3692 (endif): Fix type.
3693
3694 * lisp.h (fatal): Add argument types.
3695
3696 * dispextern.h (fatal): Delete prototype.
3697
3698 * systime.h (make_time): Prototype moved from ...
3699 * editfns.c (make_time): ... here.
3700
3701 * editfns.c: Move systime.h include after lisp.h.
3702 * dired.c:
3703 * xsmfns.c:
3704 * process.c: Likewise.
3705
3706 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
3707 Add parameter types.
3708 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
3709 (emacs_blocked_free): Change definition to match __free_hook.
3710 (emacs_blocked_malloc): Change definition to match __malloc_hook.
3711 (emacs_blocked_realloc): Change definition to match __realloc_hook.
3712
3713 2005-09-30 Romain Francoise <romain@orebokech.com>
3714
3715 * minibuf.c (Fread_buffer): Follow convention for reading from the
3716 minibuffer with a default value. Doc fix.
3717
3718 2005-09-29 Juri Linkov <juri@jurta.org>
3719
3720 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
3721 Rename argument name `string' to `format-string'.
3722 (Fformat): Doc fix.
3723
3724 2005-09-28 Kim F. Storm <storm@cua.dk>
3725
3726 * image.c (gif_load): Fix size of allocated image buffer
3727 for images where a sub-image may be larger than the image's
3728 total height/width specifications.
3729
3730 2005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3731
3732 * macgui.h (struct _XCharStruct): Each member now takes short value.
3733
3734 2005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
3735
3736 * xfaces.c (lookup_derived_face): Add parameter type.
3737
3738 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
3739
3740 * marker.c (verify_bytepos): Add parameter type.
3741
3742 * process.c (get_operating_system_release): Move prototype ...
3743
3744 * systime.h (get_operating_system_release): ... here.
3745
3746 * xterm.c (handle_one_xevent): Refer to union field to match the
3747 type required by the function definition.
3748 (set_vertical_scroll_bar): Move prototype ...
3749
3750 * xterm.h: ... here.
3751
3752 * fns.c (internal_equal, seed_random): Fix prototypes.
3753 (internal_equal): Add missing parameter.
3754
3755 2005-09-25 Richard M. Stallman <rms@gnu.org>
3756
3757 * keyboard.c (update_menu_bindings): Variable deleted.
3758 (syms_of_keyboard): Don't defvar it.
3759 (parse_menu_item): Don't test it.
3760
3761 2005-09-23 Richard M. Stallman <rms@gnu.org>
3762
3763 * editfns.c (Fformat): Explicitly test for end of format string
3764 and don't use `index'.
3765
3766 2005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
3767
3768 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
3769 Define BROKEN_GET_CURRENT_DIR_NAME.
3770
3771 * sysdep.c (get_current_dir_name): Also define if
3772 BROKEN_GET_CURRENT_DIR_NAME.
3773
3774 * m/ibmrs6000.h: Test for USG5, not USG5_4.
3775
3776 2005-09-22 Kim F. Storm <storm@cua.dk>
3777
3778 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
3779 (message2): Fix commentary. Ok to use alloca'ed memory.
3780 Still not ok to use Lisp string data (because of GC).
3781 (set_message): Add comment why GC cannot happen.
3782
3783 2005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3784
3785 * macterm.c (xlfdpat_block_match_1): Fix assertion.
3786 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
3787 variants for a scalable font multiple times.
3788
3789 2005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3790
3791 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
3792 Setup slave tty options before forking.
3793
3794 2005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3795
3796 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
3797 positions have been set for the frame (as is done for frames in
3798 special-display-buffer-names).
3799
3800 2005-09-19 Kim F. Storm <storm@cua.dk>
3801
3802 * editfns.c (Fformat): Don't scan past end of format string that
3803 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
3804
3805 2005-09-18 Andreas Schwab <schwab@suse.de>
3806
3807 * window.h (struct window): Remove height_fixed_p, no longer set.
3808
3809 * window.c (make_window): Don't initialize height_fixed_p.
3810 (window_fixed_size_p): Don't use it.
3811
3812 2005-09-18 John Paul Wallington <jpw@pobox.com>
3813
3814 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
3815
3816 2005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3817
3818 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
3819
3820 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
3821 New variables.
3822 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
3823 file selection.
3824
3825 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
3826
3827 2005-09-17 Eli Zaretskii <eliz@gnu.org>
3828
3829 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
3830 (obj): Use XMENU_OBJ, not a literal xmenu.o.
3831
3832 2005-09-16 Romain Francoise <romain@orebokech.com>
3833
3834 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
3835
3836 2005-09-15 Richard M. Stallman <rms@gnu.org>
3837
3838 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
3839 (display_mode_element): Instead of `lisp_string' and `this',
3840 record `offset' and increment that.
3841 `last_offset' replaces `last'.
3842
3843 * Makefile.in (XMENU_OBJ): Variable deleted.
3844 (obj): Use xmenu.o unconditionally.
3845 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
3846
3847 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
3848
3849 2005-09-15 Kim F. Storm <storm@cua.dk>
3850
3851 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
3852 (reseat_at_next_visible_line_start): Likewise (in xassert).
3853
3854 2005-09-14 Romain Francoise <romain@orebokech.com>
3855
3856 * fileio.c (write_region_inhibit_fsync): New variable.
3857 (Fwrite_region): Use it to skip call to fsync.
3858 (syms_of_fileio): Initialize it.
3859
3860 2005-09-14 Kenichi Handa <handa@m17n.org>
3861
3862 * coding.c (code_convert_region_unwind): Argument format changed.
3863 (run_pre_post_conversion_on_str): If pre-write-conversion function
3864 changed the current buffer, delete the new buffer.
3865 (run_pre_write_conversin_on_c_str): Likewise.
3866
3867 * fileio.c (Fexpand_file_name): Check multibyteness of
3868 default_directory.
3869
3870 2005-09-13 Kenichi Handa <handa@m17n.org>
3871
3872 * composite.c (compose_chars_in_text): Delete it.
3873
3874 * composite.h (compose_chars_in_text): Delete extern.
3875
3876 2005-09-13 Kim F. Storm <storm@cua.dk>
3877
3878 * print.c (print_error_message): Fix last change.
3879
3880 2005-09-12 Kim F. Storm <storm@cua.dk>
3881
3882 * composite.c (compose_chars_in_text): Fix setup of `pend'.
3883 Unconditionally reload `ptr' and `pend' after eval.
3884
3885 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
3886
3887 * print.c (print_error_message): Pass copy of caller name to
3888 message_dolog.
3889
3890 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
3891
3892 2005-09-12 Kenichi Handa <handa@m17n.org>
3893
3894 * xdisp.c (display_mode_element): Be sure to make variables THIS
3895 and LISP_STRING point into a string data of ELT.
3896
3897 2005-09-12 Kim F. Storm <storm@cua.dk>
3898
3899 * editfns.c (Ftranslate_region_internal): Reload `tt' after
3900 signal_after_change that may have GC'ed.
3901 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
3902
3903 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
3904 after insert while runs signal_after_change.
3905
3906 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
3907 declaration to where it is used.
3908
3909 * w32.c (check_windows_init_file): Fix allocation of error buffer.
3910
3911 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
3912 (x_set_name_internal): Call x_encode_text with new FREEP arg to
3913 know if xfree is needed instead of guessing.
3914
3915 * xterm.h (x_encode_text): Remove prototype.
3916
3917 2005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
3918
3919 * w32term.c (x_bitmap_icon): Load small icons too.
3920
3921 2005-09-10 Romain Francoise <romain@orebokech.com>
3922
3923 * buffer.c (init_buffer): Grow buffer to add directory separator
3924 and terminal zero. Fix typos.
3925
3926 2005-09-10 Eli Zaretskii <eliz@gnu.org>
3927
3928 * buffer.c (init_buffer): Fix error message for failed call to
3929 get_current_dir_name.
3930 (get_current_dir_name): Remove prototype.
3931
3932 * xsmfns.c (get_current_dir_name): Remove prototype.
3933
3934 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
3935 Add prototype.
3936
3937 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
3938 Don't #undef NULL after including blockinput.h.
3939
3940 * config.in: Regenerated.
3941
3942 2005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
3943
3944 Remove the MAXPATHLEN limitations:
3945
3946 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
3947 New function.
3948
3949 * buffer.c (init_buffer): Use it.
3950
3951 * xsmfns.c (smc_save_yourself_CB): Ditto.
3952
3953 2005-09-09 Kim F. Storm <storm@cua.dk>
3954
3955 * doc.c (Fsubstitute_command_keys): Lookup key binding for
3956 commands that are remapped from some other command.
3957
3958 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
3959 flag in disabled rows below the window.
3960
3961 * frame.h (struct frame): New member updated_p.
3962
3963 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
3964 member. Remove local `updated' array and associated variables.
3965
3966 2005-09-07 Kim F. Storm <storm@cua.dk>
3967
3968 * xdisp.c (handle_display_prop): Respect overlay window property.
3969
3970 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
3971 Fixes crash reported by YAMAMOTO Mitsuharu.
3972
3973 2005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3974
3975 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
3976 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
3977 (xlfdpat_block_match_1, xlfdpat_match): New functions.
3978 (xlfdpat_block_match): New macro.
3979 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
3980 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
3981 (add_font_name_table_entry): Increase font_name_table_size more
3982 rapidly.
3983 (mac_c_string_match): Remove function.
3984 (mac_do_list_fonts): Use XLFD pattern match instead of regular
3985 expression match.
3986
3987 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
3988
3989 2005-09-03 Richard M. Stallman <rms@gnu.org>
3990
3991 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
3992 (move_it_in_display_line_to): Stop after last char on line even
3993 on a windowing terminal, if that's the specified stop position.
3994
3995 * fns.c (Fsort): Doc fix.
3996
3997 * editfns.c (Fpropertize): Don't insist that properties be symbols.
3998
3999 2005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
4000
4001 * dired.c (directory_files_internal_unwind, directory_files_internal)
4002 (file_name_completion): Use a Save_Value object rather than a cons of
4003 two 16bit ints to store the DIR*.
4004 (directory_files_internal, file_name_completion): Handle both EINTR and
4005 EAGAIN consistently after `readdir'.
4006
4007 2005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
4008
4009 * intervals.c (update_interval): Add position info in error.
4010
4011 * dispnew.c (window_to_frame_hpos, update_window):
4012 Avoid gcc warning about unused variable `f'.
4013
4014 2005-08-31 Jason Rumney <jasonr@gnu.org>
4015
4016 * w32menu.c (add_menu_item): If unicode_append_menu returns an
4017 error, revert to using AppendMenu.
4018
4019 2005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4020
4021 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
4022 All uses changed.
4023 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
4024 cases.
4025 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
4026 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
4027 Use posix_pathname_to_fsspec.
4028 [MAC_OS] (xpm_load_image): Fill in background_transparent field
4029 while we have mask.
4030
4031 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
4032
4033 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
4034
4035 2005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4036
4037 * syntax.c (update_syntax_table): Properly reproduce the special +1
4038 setting of e_property at the end of the buffer when bumping into the
4039 INTERVALS_AT_ONCE limit.
4040
4041 2005-08-27 Eli Zaretskii <eliz@gnu.org>
4042
4043 * emacs.c (USAGE1): Fix the description of the -Q option.
4044
4045 2005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
4046
4047 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
4048
4049 2005-08-26 Kim F. Storm <storm@cua.dk>
4050
4051 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
4052 Don't move PT to new window start.
4053
4054 2005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4055
4056 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
4057 ICONIFY/DEICONIFY_EVENT.
4058
4059 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
4060 Restore background color.
4061 (mac_handle_visibility_change): New function.
4062 (x_make_frame_invisible, x_iconify_frame)
4063 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
4064 [USE_CARBON_EVENTS] (mac_handle_window_event)
4065 (install_window_handler): Handle visibility change events.
4066 (x_make_frame_visible): Don't reposition window if it is iconified
4067 or asked for visible before. Select and uncollapse window when it
4068 is made visible.
4069 (x_make_frame_invisible): Don't reset x_highlight_frame.
4070 (x_iconify_frame): Likewise. Make invisible frame visible before
4071 it is iconified.
4072 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
4073 (do_window_update): Don't change visibility of invisible frame.
4074
4075 2005-08-22 Juri Linkov <juri@jurta.org>
4076
4077 * term.c (turn_on_face): Check for TS_set_foreground and
4078 TS_set_background depending on standout_mode. Simplify.
4079
4080 2005-08-21 Kim F. Storm <storm@cua.dk>
4081
4082 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
4083 bitmaps on fully visible rows.
4084
4085 * fringe.c (update_window_fringes): Replace FORCE_P arg with
4086 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
4087 and return 0.
4088
4089 * xdisp.c (redisplay_window): Call update_window_fringes with
4090 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
4091
4092 2005-08-20 Richard M. Stallman <rms@gnu.org>
4093
4094 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
4095 (resize_mini_window): Set w->start, and PT, so as to display the tail
4096 end of the buffer, if it doesn't all fit.
4097
4098 2005-08-18 Kim F. Storm <storm@cua.dk>
4099
4100 * xdisp.c (calc_pixel_width_or_height): Use actual display
4101 resolution when available instead of Vdisplay_pixels_per_inch.
4102
4103 2005-08-17 Kim F. Storm <storm@cua.dk>
4104
4105 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
4106
4107 * dispnew.c (buffer_posn_from_coords): Check that target row is
4108 within matrix.
4109
4110 2005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4111
4112 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
4113 xg_set_frame_icon and call it.
4114
4115 * gtkutil.c (xg_set_frame_icon): New function.
4116
4117 * gtkutil.h (xg_set_frame_icon): Declare it.
4118
4119 2005-08-16 Kim F. Storm <storm@cua.dk>
4120
4121 * dispnew.c (increment_row_positions): Skip non-enabled rows.
4122
4123 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
4124 (Fcurrent_window_configuration): Use VECSIZE macro instead.
4125
4126 2005-08-15 Richard M. Stallman <rms@gnu.org>
4127
4128 * xdisp.c (message3_nolog): Clear echo_message_buffer.
4129
4130 2005-08-15 Kim F. Storm <storm@cua.dk>
4131
4132 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
4133
4134 * process.c (deactivate_process, status_notify, read_process_output)
4135 (update_status, status_convert, decode_status, allocate_pty)
4136 (make_process, remove_process, list_processes_1)
4137 (create_process_1, unwind_request_sigio, read_process_output)
4138 (send_process, keyboard_bit_set): Declare static.
4139 (Fdelete_process): Simplify. Pass process to status_notify, so we
4140 don't try to read output from it.
4141 (status_notify): New arg deleting_process--don't try to read
4142 output from that process.
4143
4144 * lisp.h (deactivate_process, status_notify, read_process_output):
4145 Remove prototypes.
4146
4147 2005-08-14 Richard M. Stallman <rms@gnu.org>
4148
4149 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
4150 define_image_type.
4151
4152 2005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4153
4154 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
4155 (xg_get_image_for_pixmap): Move some code to
4156 xg_get_pixbuf_from_pix_and_mask, and call it.
4157
4158 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
4159
4160 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
4161 to get an GTK icon and set it with GTK functions to avoid having GTK
4162 override an icon set with just X functions.
4163
4164 2005-08-11 Richard M. Stallman <rms@gnu.org>
4165
4166 * image.c (syms_of_image): Init image_types here, and call
4167 define_image_type.
4168 (init_image): Not here.
4169
4170 2005-08-09 Richard M. Stallman <rms@gnu.org>
4171
4172 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
4173
4174 * lisp.h (QUIT): Throw t to Vthrow_on_input.
4175
4176 2005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
4177
4178 * floatfns.c (Fexpt): Use floats for negative exponent.
4179
4180 2005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4181
4182 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
4183 should not be there, causing menu display errors with GTK 2.6.9.
4184
4185 2005-08-07 Richard M. Stallman <rms@gnu.org>
4186
4187 * floatfns.c (Fexpt): Undo previous change.
4188
4189 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
4190 so it can be used with various state vectors.
4191
4192 * emacs.c (endif): Convert -script into -scriptload.
4193 (standard_args): Add -scriptload. Allow -basic-display with one dash.
4194
4195 * fns.c (syms_of_fns): Add `emacs' to features.
4196
4197 * term.c (set_terminal_modes): If no TS_termcap_modes string,
4198 output newlines to scroll the old screen contents off the screen.
4199
4200 2005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
4201
4202 * floatfns.c (Fexpt): Use floats for negative exponent.
4203 Reported by D Goel.
4204
4205 2005-08-02 Richard M. Stallman <rms@gnu.org>
4206
4207 * frame.c (Fframe_char_width): Doc fix.
4208
4209 2005-07-30 Juanma Barranquero <lekktu@gmail.com>
4210
4211 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
4212 Defvar it.
4213
4214 2005-07-28 Juanma Barranquero <lekktu@gmail.com>
4215
4216 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
4217 (my_create_window, my_create_tip_window): Make static.
4218
4219 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
4220 (my_set_foreground_window, my_destroy_window): Make static.
4221
4222 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
4223
4224 Merge gnulib getopt implementation into Emacs.
4225
4226 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
4227 now part of lib-src.
4228
4229 2005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
4230
4231 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
4232
4233 2005-07-25 Jason Rumney <jasonr@gnu.org>
4234
4235 * w32menu.c (w32_menu_display_help): Suppress tooltip when
4236 navigating menus with the keyboard.
4237
4238 2005-07-23 Richard M. Stallman <rms@gnu.org>
4239
4240 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
4241
4242 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
4243 gc_relative_threshold, one by one.
4244
4245 * keyboard.c (read_char): Test gc_cons_threshold.
4246 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
4247
4248 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
4249 gc_relative_threshold, one by one.
4250
4251 * alloc.c (gc_cons_threshold): Not static.
4252 (gc_cons_combined_threshold): Var deleted.
4253 (gc_relative_threshold): New variable.
4254 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
4255 instead of gc_cons_combined_threshold.
4256
4257 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
4258 (gc_cons_combined_threshold): Declaration deleted.
4259
4260 2005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4261
4262 * mac.c: Don't include stdlib.h or string.h.
4263 (Fdo_applescript, Fmac_file_name_to_posix)
4264 (Fmac_file_name_to_posix): Doc fixes.
4265 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
4266 (Fmac_code_convert_string): Likewise.
4267 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
4268 if the executable is not contained in a bundle.
4269
4270 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
4271 (gray_width, gray_height): Remove defines.
4272 (gray_bits, gray_bitmap_width, gray_bitmap_height)
4273 (gray_bitmap_bits): Remove variables.
4274 (lispy_function_keys): Remove extern.
4275 (free_frame_menubar): Add extern.
4276 (x_window_to_frame): Remove function.
4277 (unwind_create_tip_frame): Add declaration.
4278 (x_set_name_internal): New function.
4279 (x_set_name, x_set_title): Use it.
4280 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
4281 (Fx_display_pixel_height, Fx_display_planes)
4282 (Fx_display_color_cells, Fx_server_max_request_size)
4283 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4284 (Fx_display_mm_height, Fx_display_mm_width)
4285 (Fx_display_backing_store, Fx_display_visual_class)
4286 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
4287
4288 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
4289
4290 * macselect.c (Fx_own_selection_internal): Follow error conventions.
4291 (Fx_get_selection_internal, Fx_selection_owner_p)
4292 (Fx_selection_exists_p): Doc fixes.
4293 (syms_of_macselect) <selection-converter-alist>: Likewise.
4294
4295 2005-07-21 Juanma Barranquero <lekktu@gmail.com>
4296
4297 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
4298
4299 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
4300 (Fccl_execute_on_string): Likewise; add usage info.
4301
4302 * composite.c (Fcompose_region_internal)
4303 (Fcompose_string_internal):
4304 Improve argument/docstring consistency.
4305
4306 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
4307 Fix typos in docstrings.
4308
4309 * textprop.c (Fnext_char_property_change)
4310 (Fprevious_char_property_change): Doc fixes.
4311
4312 * window.c (Fset_window_margins, Fset_window_fringes):
4313 Improve argument/docstring consistency.
4314
4315 * xfaces.c (Finternal_lisp_face_p): Doc fix.
4316
4317 2005-07-21 Andreas Schwab <schwab@suse.de>
4318
4319 * eval.c (restore_stack_limits): Return a value.
4320
4321 2005-07-20 Juanma Barranquero <lekktu@gmail.com>
4322
4323 * eval.c (Fdefvar): Doc fix.
4324
4325 2005-07-20 Kim F. Storm <storm@cua.dk>
4326
4327 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
4328 Use make_save_value to unwind protect stream.
4329
4330 * lread.c (Fload, load_unwind):
4331 Use make_save_value to unwind protect stream.
4332
4333 2005-07-19 Juanma Barranquero <lekktu@gmail.com>
4334
4335 * eval.c (Fprog2, Fcalled_interactively_p),
4336 (syms_of_eval) <debug-on-quit>: Doc fixes.
4337 (syms_of_eval) <max-specpdl-size>:
4338 (Finteractive_p): Fix typos in docstrings.
4339
4340 2005-07-19 Kim F. Storm <storm@cua.dk>
4341
4342 * w32fns.c (Vx_hand_shape): Variable removed.
4343 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
4344
4345 2005-07-19 Kenichi Handa <handa@m17n.org>
4346
4347 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
4348
4349 2005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
4350
4351 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
4352
4353 2005-07-18 Kim F. Storm <storm@cua.dk>
4354
4355 * frame.h (struct frame): New member already_hscrolled_p.
4356
4357 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
4358 to avoid redisplay looping hscrolling back and forth ad infinitum.
4359
4360 2005-07-18 Juri Linkov <juri@jurta.org>
4361
4362 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
4363 * keymap.c (Fminor_mode_key_binding):
4364 * macterm.c (mac-emulate-three-button-mouse):
4365 Delete duplicate duplicate words.
4366
4367 2005-07-18 Ken Raeburn <raeburn@gnu.org>
4368
4369 * minibuf.c (Ftest_completion): Fix odd syntax in test.
4370
4371 2005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4372
4373 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
4374
4375 * macgui.h (struct _XGC): New struct.
4376 (GC): Use it.
4377 (GCForeground, GCBackground, GCFont): Use X11 mask values.
4378 (XCreateGC, XParseGeometry): Move externs to macterm.h.
4379
4380 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
4381 (XSetFont): Add declaration.
4382 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
4383 Remove functions.
4384 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
4385 New defines.
4386 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
4387 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
4388 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
4389 Use them.
4390 (mac_erase_rectangle): New function.
4391 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
4392 (x_draw_stretch_glyph_string): Use it.
4393 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
4394 (XSetBackground, XSetFont): Adjust for new GC implementation.
4395 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
4396 (XTset_vertical_scroll_bar): Clear area under scroll bar.
4397
4398 * macterm.h (struct mac_display_info): Change types of
4399 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
4400 (XCreateGC, XParseGeometry): Move externs from macgui.h.
4401
4402 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
4403
4404 2005-07-16 Richard M. Stallman <rms@gnu.org>
4405
4406 * buffer.c (Fmake_overlay): Doc fix.
4407
4408 2005-07-16 Eli Zaretskii <eliz@gnu.org>
4409
4410 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
4411 Vw32_valid_locale_ids, and Vw32_valid_codepages.
4412
4413 2005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4414
4415 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
4416 Use Fstring_as_unibyte instead of string_make_unibyte.
4417
4418 2005-07-15 Richard M. Stallman <rms@gnu.org>
4419
4420 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
4421
4422 2005-07-15 Kim F. Storm <storm@cua.dk>
4423
4424 * xdisp.c: Fix redisplay loop in last change.
4425 (IT_POS_VALID_AFTER_MOVE_P): New macro.
4426 (move_it_vertically_backward, move_it_by_lines): Use it.
4427
4428 2005-07-14 Jason Rumney <jasonr@gnu.org>
4429
4430 * w32.c (init_environment): Default HOME directory to user's
4431 appdata directory if possible.
4432
4433 2005-07-14 Kim F. Storm <storm@cua.dk>
4434
4435 * .gdbinit (pitx): Fix output format. Print string charpos.
4436
4437 * lread.c (syms_of_lread): Initialize seen_list.
4438
4439 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
4440
4441 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
4442 Staticpro re_match_object.
4443
4444 2005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4445
4446 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
4447 dereference.
4448
4449 * macterm.c (mac_window_to_frame): Remove duplicate define.
4450
4451 2005-07-14 Kenichi Handa <handa@m17n.org>
4452
4453 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
4454 (code_convert_region): Adjust for the above change.
4455 (set_conversion_work_buffer): If the work buffer is already in
4456 use, generate a new buffer and return it. Otherwise return Qnil.
4457 (run_pre_post_conversion_on_str): Adjust for the above change.
4458 (run_pre_write_conversin_on_c_str): Likewise.
4459
4460 2005-07-13 Kim F. Storm <storm@cua.dk>
4461
4462 * xdisp.c (start_display): Don't reseat to next visible line start
4463 if current start position is in a string or image.
4464 (move_it_vertically_backward): Be sure to move out of strings and
4465 images when moving it2 forward.
4466 (move_it_by_lines): When moving forward, move to next buffer
4467 position if we end up in a string or image. When moving backward,
4468 count rows moved over when moving to start of current row in case
4469 row starts in middle of a string or image. Also move further
4470 backward if we end up in a string or image.
4471 (try_cursor_movement): If overlay string spans multiple lines,
4472 move backward to set cursor on start of an overlay string.
4473 (cursor_row_p): Row is ok if cursor is at newline from string, but
4474 string starts on this line (so we always position cursor at start
4475 of string).
4476
4477 * indent.c (Fvertical_motion): If start position is on an image,
4478 don't move back if we move too far (that's almost certain to happen).
4479
4480 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
4481 row in minibuffer windows.
4482 (try_window): Don't check margins in minibuffer windows.
4483
4484 2005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4485
4486 * macterm.c: Don't include stdlib.h or composite.h.
4487 (x_use_underline_position_properties, last_mouse_press_frame)
4488 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
4489 (syms_of_macterm, mac_initialize): Don't initialize them.
4490 (waiting_for_input, initial_argv, initial_argc)
4491 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
4492 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
4493 (extra_keyboard_modifiers): Fix type in extern.
4494 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
4495 (x_scroll_bar_report_motion): Add argument types to declaration.
4496 (mac_compute_glyph_string_overhangs): Add declaration.
4497 (disable_mouse_highlight): Remove unused variable.
4498 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
4499 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
4500 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
4501 All callers changed.
4502 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
4503 timestamp.
4504 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
4505 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
4506 only when its width is less than the height.
4507 (XTredeem_scroll_bar): Sync with xterm.c.
4508 (font_name_table, font_name_table_size, font_name_count):
4509 Make static.
4510 (drag_and_drop_file_list): Remove variable. Previous use is now
4511 local to function.
4512 (do_ae_open_documents): Move DRAG_N_DROP event construction part
4513 from XTread_socket.
4514 (XTread_socket): Consolidate setting of event timestamp.
4515 Move DRAG_N_DROP event construction part to do_ae_open_documents.
4516 Support extra_keyboard_modifiers.
4517
4518 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
4519 beginning with that for ASCII.
4520
4521 2005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
4522
4523 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
4524 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
4525 (syms_of_alloc): Declare gc-cons-percentage.
4526
4527 * eval.c (Feval, Ffuncall):
4528 * keyboard.c (read_char):
4529 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
4530
4531 * lisp.h (gc_cons_combined_threshold): Declare.
4532
4533 2005-07-12 Kim F. Storm <storm@cua.dk>
4534
4535 * coding.c (Qprocess_argument):
4536 * coding.h (Qprocess_argument): Remove unused var.
4537
4538 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
4539
4540 2005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4541
4542 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
4543 Endian.h.
4544 [!MAC_OSX] (fchmod, fchown): New functions.
4545 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
4546 Use SBYTES and EndianU32_BtoN.
4547 (mac_get_object_from_code): Return 4 byte string even if argument
4548 is 0. Use make_unibyte_string and EndianU32_NtoB.
4549 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
4550 (Fmac_set_file_type): Fix documents and argument declarations.
4551 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
4552
4553 2005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
4554
4555 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
4556
4557 2005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4558
4559 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
4560 Lucid if X_I18N, font otherwise.
4561
4562 2005-07-10 Steven Tamm <steventamm@mac.com>
4563
4564 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
4565 (Fmac_set_file_type, Fmac_set_file_creator): Add.
4566 (mac_get_object_from_code, mac_get_code_from_arg): Add.
4567
4568 2005-07-10 Richard M. Stallman <rms@gnu.org>
4569
4570 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
4571 (syms_of_lread): Set up eval-buffer-list.
4572 (Feval_buffer, Feval_region): Bind eval-buffer-list.
4573
4574 2005-07-08 Richard M. Stallman <rms@gnu.org>
4575
4576 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
4577
4578 2005-07-08 Kim F. Storm <storm@cua.dk>
4579
4580 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
4581 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
4582
4583 2005-07-07 Kim F. Storm <storm@cua.dk>
4584
4585 * window.c (Frecenter): Fix last change (set iarg before use).
4586
4587 2005-07-06 Richard M. Stallman <rms@gnu.org>
4588
4589 * window.c (Frecenter): When arg is inside the scroll margin,
4590 move it out of the margin.
4591
4592 2005-07-06 Jason Rumney <jasonr@gnu.org>
4593
4594 * w32console.c (initialize_w32_display): Detect when the console
4595 dimensions are insane, and default to 80x25 instead.
4596 (w32_use_full_screen_buffer): Default to NIL.
4597
4598 2005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4599
4600 * macterm.c (mac_draw_vertical_window_border): Use foreground of
4601 VERTICAL_BORDER_FACE_ID for vertical border line.
4602 (mac_encode_char): Call check_ccl_update in advance.
4603 (mac_to_x_fontname, x_font_name_to_mac_font_name)
4604 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
4605 Don't assume that font family length is less than 32.
4606 (x_compute_min_glyph_bounds): Make static.
4607 (x_load_font): Never set fonts_changed_p to zero.
4608
4609 2005-07-04 Lute Kamstra <lute@gnu.org>
4610
4611 * Update FSF's address in GPL notices.
4612
4613 2005-07-03 Richard M. Stallman <rms@gnu.org>
4614
4615 * xdisp.c (try_window): Fix previous change in how it handles
4616 a partially-visible line or one only partly past the margin.
4617
4618 * window.c (window_scroll_pixel_based): Take account
4619 of this_scroll_margin when finding point when scrolling up.
4620
4621 2005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
4622
4623 * window.c (window_scroll_pixel_based, window_scroll_line_based):
4624 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
4625 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
4626
4627 2005-07-02 Juri Linkov <juri@jurta.org>
4628
4629 * w32term.c (w32_draw_vertical_window_border): Use foreground of
4630 VERTICAL_BORDER_FACE_ID for vertical border line.
4631
4632 2005-07-02 Eli Zaretskii <eliz@gnu.org>
4633
4634 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
4635 fchmod so that chmod doesn't get called on MSDOS before the file
4636 is closed.
4637
4638 2005-07-01 Jason Rumney <jasonr@gnu.org>
4639
4640 * w32term.c (cleartype_active): New flag for enabling sub-pixel
4641 workaround.
4642 (w32_initialize): Initialize it.
4643 (w32_native_per_char_metric): Allow a couple of extra pixels when
4644 Cleartype is active.
4645
4646 * w32term.c (w32_initialize): Move check for screen reader here
4647 from syms_of_w32term.
4648
4649 2005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4650
4651 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
4652 is not zero.
4653
4654 2005-07-01 Masatake YAMATO <jet@gyve.org>
4655
4656 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
4657
4658 2005-06-30 Juri Linkov <juri@jurta.org>
4659
4660 * xdisp.c (x_draw_vertical_border): If left fringe is not present
4661 decrease x coord of vertical border by 1 pixel to not occupy text
4662 area of the right window.
4663
4664 * xterm.c (x_draw_vertical_window_border): Use foreground of
4665 VERTICAL_BORDER_FACE_ID for vertical border line.
4666
4667 * term.c (turn_on_face): In standout mode apply specified
4668 fg to bg, and specified bg to fg (this makes the logic of
4669 inversion on terminal consistent with X).
4670
4671 2005-06-29 Juanma Barranquero <lekktu@gmail.com>
4672
4673 * eval.c (user_variable_p_eh): New function.
4674 (Fuser_variable_p): Use it. Clarify docstring.
4675 Return t for aliases of user options, nil for alias loops.
4676
4677 2005-06-27 Richard M. Stallman <rms@gnu.org>
4678
4679 * eval.c (Fdefvar): Improve error message.
4680
4681 2005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4682
4683 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
4684 change.
4685
4686 2005-06-27 Juanma Barranquero <lekktu@gmail.com>
4687
4688 * eval.c (Fdefvar): Don't try to set constant symbols.
4689
4690 2005-06-25 Richard M. Stallman <rms@gnu.org>
4691
4692 * macfns.c (Fx_show_tip): Pass new arg to try_window.
4693
4694 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
4695
4696 * xfns.c (Fx_show_tip): Pass new arg to try_window.
4697
4698 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
4699 (redisplay_window): Handle try_window reporting point in scroll margin.
4700
4701 * dispextern.h (try_window): Declare new arg.
4702
4703 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
4704 Use fchmod to copy the file modes.
4705 (Frename_file): Don't copy UID and GID here;
4706 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
4707
4708 * eval.c (call_debugger): Take full care of extending stack limits
4709 to make space for the debugger, and restore the change afterward.
4710 Bind debug-on-error to nil.
4711 (restore_stack_limits): New subroutine.
4712 (Fsignal): Extend specpdl bound along with eval depth bound,
4713 for calling edebug. Don't do either one, for calling debugger.
4714 (find_handler_clause): Don't bind debug-on-error here.
4715 Don't unbind anything either.
4716 Temporarily advance max_specpdl_size for calling
4717 internal_with_output_to_temp_buffer.
4718 (grow_specpdl): Don't alter max_specpdl_size before signaling
4719 an error.
4720 (syms_of_eval) <max-specpdl-size>: Doc fix.
4721
4722 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
4723
4724 2005-06-24 Eli Zaretskii <eliz@gnu.org>
4725
4726 * fileio.c (Frename_file): Undo last change: no need to ifdef away
4727 chown on DOS_NT platforms.
4728
4729 * w32.c (sys_chown): New function.
4730
4731 * s/ms-w32.h (chown): New; define to sys_chown.
4732
4733 2005-06-24 Juanma Barranquero <lekktu@gmail.com>
4734
4735 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
4736 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
4737
4738 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
4739
4740 2005-06-23 Richard M. Stallman <rms@gnu.org>
4741
4742 * xdisp.c (get_next_display_element): Finish reversing the tests of
4743 Vnobreak_char_display.
4744
4745 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
4746 All uses changed.
4747 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
4748 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
4749
4750 * fileio.c (Frename_file): Preserve owner and group, if possible,
4751 when copying.
4752
4753 2005-06-23 Juanma Barranquero <lekktu@gmail.com>
4754
4755 * abbrev.c (Funexpand_abbrev):
4756 * category.c (Fmake_category_set):
4757 * dispnew.c (Fsleep_for, Fsit_for):
4758 * editfns.c (Fsubst_char_in_region):
4759 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
4760 * frame.c (make_frame_without_minibuffer):
4761 * lread.c (read_vector):
4762 * macfns.c (check_x_frame):
4763 * process.c (Fstop_process, Fcontinue_process):
4764 * search.c (Freplace_match):
4765 * syntax.c (Fstring_to_syntax):
4766 * w32fns.c (check_x_frame, check_x_display_info):
4767 * xfaces.c (x_supports_face_attributes_p):
4768 * xselect.c (Fx_own_selection_internal): Follow error conventions.
4769
4770 * image.c (fn_png_init_io): Don't define it.
4771 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
4772 (png_read_from_file): New function, based on png_read_from_memory.
4773 (png_load): Use it, instead of fn_png_init_io.
4774
4775 2005-06-23 Kim F. Storm <storm@cua.dk>
4776
4777 * search.c (Fmatch_data): Remove evaporate option.
4778 (Fset_match_data): Do not mention evaporate option in doc string.
4779 Add commentary explaining evaporate arg (for internal use only).
4780 (unwind_set_match_data): Add comment on evaporate use.
4781
4782 2005-06-22 Miles Bader <miles@gnu.org>
4783
4784 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
4785 (realize_basic_faces, syms_of_xfaces): Update references to it.
4786 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
4787 to `VERTICAL_BORDER_FACE_ID'.
4788 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
4789
4790 2005-06-21 Juri Linkov <juri@jurta.org>
4791
4792 * dispextern.h: Add extern Qframe_set_background_mode.
4793
4794 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
4795 Qframe_set_background_mode.
4796
4797 * frame.c (Fmodify_frame_parameters):
4798 Call frame-set-background-mode after changing the background color
4799 on non-window non-dos branch.
4800
4801 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
4802
4803 * fns.c (Fchar_table_range):
4804 * process.c (Fmake_network_process): Fix spellings.
4805
4806 2005-06-20 Kim F. Storm <storm@cua.dk>
4807
4808 * fns.c (Fsort): Doc fix.
4809
4810 2005-06-20 Miles Bader <miles@gnu.org>
4811
4812 * xfaces.c (Qvertical_divider): New variable.
4813 (realize_basic_faces): Realize its face.
4814 (syms_of_xfaces): Initialize it.
4815
4816 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
4817
4818 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
4819 window-separator on ttys using `vertical-divider' face by default.
4820
4821 2005-06-17 Richard M. Stallman <rms@gnu.org>
4822
4823 * xdisp.c (get_next_display_element):
4824 Reverse test of Vshow_nonbreak_escape.
4825
4826 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
4827 (Ftty_no_underline): New function.
4828 (syms_of_term): defsubr it.
4829
4830 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
4831
4832 * dispnew.c (spec_glyph_lookup_face): New function.
4833 (build_frame_matrix_from_leaf_window): Use it.
4834
4835 * dispextern.h (spec_glyph_lookup_face): Add declaration.
4836
4837 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
4838
4839 2005-06-12 Richard M. Stallman <rms@gnu.org>
4840
4841 * keyboard.c (read_char): After catching a longjmp,
4842 call restore_getcjmp.
4843
4844 2005-06-17 Juanma Barranquero <lekktu@gmail.com>
4845
4846 * xselect.c (lisp_data_to_selection_data): Fix spelling.
4847
4848 2005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4849
4850 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
4851 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
4852 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
4853 events.
4854 (XTread_socket): Don't pass keyboard events with the option
4855 modifier to the system when Vmac_command_key_is_meta is nil or
4856 Vmac_option_modifier is non-nil.
4857 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
4858 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
4859 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
4860 handler function.
4861 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
4862 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
4863 handler part to mac_handle_mouse_event.
4864
4865 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
4866
4867 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
4868 NEW-ALIAS and BASE-VARIABLE, respectively.
4869
4870 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
4871
4872 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
4873 (get_phys_cursor_geometry, format_mode_line_unwind_data)
4874 (get_line_height_property, x_produce_glyphs): Remove unused vars.
4875
4876 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
4877
4878 2005-06-13 Eli Zaretskii <eliz@gnu.org>
4879
4880 * w32term.c (x_use_underline_position_properties): New variable.
4881 (x_draw_glyph_string): Remind in a comment to change doc string of
4882 x-use-underline-position-properties if/when underline positioning
4883 is implemented.
4884 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
4885 and initialize it to nil.
4886
4887 2005-06-12 Jason Rumney <jasonr@gnu.org>
4888
4889 * w32fns.c (NEWOPENFILENAME): New struct.
4890 (Fx_file_dialog): Use it to trick the system into giving us up to
4891 date dialogs on systems that are documented to support it.
4892 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
4893
4894 2005-06-12 Eli Zaretskii <eliz@gnu.org>
4895
4896 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
4897 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
4898
4899 2005-06-11 Eli Zaretskii <eliz@gnu.org>
4900
4901 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
4902 to CreateDIBSection to avoid a compiler warning.
4903 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
4904 warning.
4905 (png_load): Cast return values of fn_png_create_read_struct and
4906 fn_png_create_info_struct, to avoid compiler warnings on W32.
4907 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
4908 to avoid compiler warnings.
4909 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
4910 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
4911 avoid a compiler warning.
4912 (tiff_load): Cast return values of fn_TIFFOpen and
4913 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
4914 to IMAGE_BACKGROUND to avoid a compiler warning.
4915 (gif_load): Cast return values of fn_DGifOpenFileName and
4916 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
4917 IMAGE_BACKGROUND to avoid a compiler warning.
4918 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
4919 before redefining.
4920
4921 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
4922 the call to CreateDIBSection, to avoid a compiler warning.
4923
4924 2005-06-11 Jason Rumney <jasonr@gnu.org>
4925
4926 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
4927 minibuffer.
4928 * macfns.c (Fx_file_dialog): Likewise.
4929
4930 2005-06-10 Eli Zaretskii <eliz@gnu.org>
4931
4932 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
4933
4934 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
4935
4936 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
4937 * w32fns.c (syms_of_w32fns): Fix spellings.
4938
4939 2005-06-10 Eli Zaretskii <eliz@gnu.org>
4940
4941 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
4942 `verbose'; print diagnostic messages only if it is non-zero.
4943 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4944 in the environment.
4945 (copy_executable_and_dump_data): Print section names with %.8s.
4946
4947 2005-06-10 Masatake YAMATO <jet@gyve.org>
4948
4949 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
4950 when mouse_face is not given.
4951
4952 2005-06-09 Luc Teirlinck <teirllm@auburn.edu>
4953
4954 * window.c (Fselect_window): Adapt call to Fselect_frame.
4955
4956 * lisp.h: Update EXFUN of Fselect_frame.
4957
4958 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
4959
4960 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
4961 no_enter.
4962 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
4963 Adapt to above change.
4964
4965 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
4966
4967 * fns.c (Fmemq, Fmaphash): Doc fixes.
4968
4969 2005-06-09 Juanma Barranquero <lekktu@gmail.com>
4970
4971 * xfaces.c (Fdisplay_supports_face_attributes_p):
4972 Fix typo in docstring.
4973
4974 2005-06-08 Steven Tamm <steventamm@mac.com>
4975
4976 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
4977 used by gcc4 on intel mac.
4978
4979 2005-06-09 Kim F. Storm <storm@cua.dk>
4980
4981 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
4982 in REUSE list if non-nil; free them if equal to evaporate.
4983 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
4984 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
4985 (restore_search_regs): Rename from restore_match_data. Uses changed.
4986 (unwind_set_match_data): New function.
4987 (record_unwind_save_match_data): New function like save-match-data.
4988
4989 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
4990 (record_unwind_save_match_data): Add prototype.
4991 (restore_search_regs): Rename from restore_match_data.
4992
4993 * composite.c (compose_chars_in_text):
4994 * eval.c (do_autoload):
4995 * macmenu.c (set_frame_menubar):
4996 * process.c (read_process_output, exec_sentinel):
4997 * xmenu.c (set_frame_menubar):
4998 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
4999 * w32menu.c (set_frame_menubar):
5000 Use record_unwind_save_match_data.
5001
5002 2005-06-08 Richard M. Stallman <rms@gnu.org>
5003
5004 * xdisp.c (get_next_display_element): Alter previous change:
5005 Distinguish Vshow_nonbreak_escape = t or not t.
5006 For t, use escape_glyph once again, as before previous change.
5007 Use space or hyphen for display, instead of the non-ASCII char.
5008 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
5009
5010 * process.c (Fstart_process): Don't touch command_channel_p slot.
5011
5012 * process.h (struct process): Delete command_channel_p.
5013
5014 2005-06-07 Masatake YAMATO <jet@gyve.org>
5015
5016 * xdisp.c (note_mode_line_or_margin_highlight):
5017 Check the overlapping of re-rendering area to avoid flickering.
5018 (note_mouse_highlight): Call clear_mouse_face if PART
5019 is not ON_MODE_LINE nor ON_HEADER_LINE.
5020
5021 2005-06-07 Kim F. Storm <storm@cua.dk>
5022
5023 * process.c: Improve commentary for adaptive read buffering.
5024
5025 2005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
5026
5027 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
5028 if available.
5029
5030 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5031
5032 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
5033 New functions for popping down menus on C-g.
5034 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
5035
5036 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
5037 non-static.
5038
5039 * config.in: Add HAVE_CANCELMENUTRACKING.
5040
5041 2005-06-06 Eli Zaretskii <eliz@gnu.org>
5042
5043 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
5044
5045 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
5046
5047 * w32proc.c (RVA_TO_PTR): New macro.
5048
5049 * w32heap.c (RVA_TO_PTR): No need to #undef now.
5050
5051 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
5052 Depend on w32heap.h.
5053
5054 2005-06-06 Luc Teirlinck <teirllm@auburn.edu>
5055
5056 * keyboard.c (command_loop_1): Update Vthis_original_command.
5057
5058 2005-06-06 Richard M. Stallman <rms@gnu.org>
5059
5060 * xmenu.c (popup_get_selection): Undo previous change.
5061
5062 2005-06-06 Juri Linkov <juri@jurta.org>
5063
5064 * xdisp.c (Qno_break_space): New variable.
5065 (syms_of_xdisp): Initialize it.
5066 (get_next_display_element): Add no-break space and soft hypen
5067 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
5068 Use `no-break-space' face for no-break spaces.
5069
5070 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5071
5072 * window.c (delete_window): Handle the case where a h/vchild has
5073 a h/vchild.
5074
5075 2005-06-05 Eli Zaretskii <eliz@gnu.org>
5076
5077 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
5078 call to pfn_setsockopt, cast optval to `const char *'.
5079
5080 2005-06-04 Eli Zaretskii <eliz@gnu.org>
5081
5082 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
5083 (open_unc_volume): Cast return value of map_w32_filename, to avoid
5084 compiler warnings.
5085
5086 * s/ms-w32.h (fileno): Don't define if already defined.
5087
5088 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
5089
5090 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
5091
5092 2005-06-04 Richard M. Stallman <rms@gnu.org>
5093
5094 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
5095
5096 2005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5097
5098 * macmenu.c (cleanup_popup_menu): New function.
5099 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
5100 mac_menu_show Quit:s.
5101 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
5102 a dialog).
5103
5104 2005-06-04 Kim F. Storm <storm@cua.dk>
5105
5106 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
5107
5108 * callproc.c (Fcall_process): Don't use alloca to gradually
5109 increase size of buf, as it effectively uses twice the necessary
5110 space on the stack. Instead, pre-allocate buf of full size, and
5111 gradually increase the read size.
5112
5113 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
5114
5115 * eval.c (unbind_to): Preserve value of Vquit_flag.
5116
5117 * xterm.c (handle_one_xevent): Also ignore mouse motion just
5118 before a button release event.
5119
5120 2005-06-03 Juanma Barranquero <lekktu@gmail.com>
5121
5122 * xfaces.c (Finternal_lisp_face_equal_p): Really report
5123 on faces in a frame, if the argument FRAME is non-nil.
5124 Improve argument/docstring consistency.
5125
5126 2005-06-02 Kim F. Storm <storm@cua.dk>
5127
5128 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
5129 (x_consider_frame_title, Fformat_mode_line): Save offset into
5130 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
5131
5132 2005-06-01 Kim F. Storm <storm@cua.dk>
5133
5134 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
5135
5136 2005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5137
5138 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
5139 resolution fields for scalable fonts to 0.
5140
5141 * xfaces.c (build_scalable_font_name): Round pixel size to the
5142 nearest integer.
5143
5144 2005-06-01 Kim F. Storm <storm@cua.dk>
5145
5146 * xdisp.c (display_mode_line): Support nested calls to redisplay
5147 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
5148
5149 2005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
5150
5151 * fileio.c (Finsert_file_contents):
5152 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
5153
5154 2005-05-31 Kim F. Storm <storm@cua.dk>
5155
5156 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
5157 (mode_line_noprop_ptr): Rename from frame_title_*.
5158 (store_mode_line_noprop_char): Rename from store_frame_title_char.
5159 (store_mode_line_noprop): Rename from store_frame_title.
5160 (mode_line_target): New enum to specify current output target
5161 for mode line formatting.
5162 (display_mode_element): Test it rather than frame_title_ptr and
5163 mode_line_string_list to determine where output should go.
5164 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
5165 (Vmode_line_unwind_vector): New variable.
5166 (format_mode_line_unwind_data, unwind_format_mode_line):
5167 New functions for unwind protection in mode line formatting.
5168 (x_consider_frame_title): Use them and new local var 'title_start'
5169 to support nested calls to format-mode-line and redisplay.
5170 Set mode_line_target to MODE_LINE_TITLE.
5171 (Fformat_mode_line): Use them and new local var 'string_start' to
5172 support nested calls to format-mode-line and redisplay.
5173 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
5174 Don't trim trailing dashes.
5175 (decode_mode_spec): Don't make infinite number of trailing dashes
5176 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
5177 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
5178 mode_line_string_face_prop, and Vmode_line_unwind_vector.
5179 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
5180 Initialize mode_line_target to MODE_LINE_DISPLAY.
5181
5182 2005-05-29 Richard M. Stallman <rms@gnu.org>
5183
5184 * buffer.c (Fbuffer_local_value): Call indirect_variable.
5185
5186 2005-05-28 Masatake YAMATO <jet@gyve.org>
5187
5188 * xdisp.c (note_mode_line_or_margin_highlight): Change the
5189 pointer to a hand cursor when hoovering over a mouse-face.
5190
5191 2005-05-27 Kenichi Handa <handa@m17n.org>
5192
5193 * xterm.c (x_encode_char): Call check_ccl_update in advance.
5194
5195 * ccl.c: Now an element of Vccl_program_table is a vector of
5196 length 4, not 3.
5197 (ccl_get_compiled_code): New arg idx. Caller changed.
5198 Adjust for the change of Vccl_program_table.
5199 (setup_ccl_program): Adjust for the change of Vccl_program_table.
5200 (check_ccl_update): New function.
5201 (Fregister_ccl_program): Use ASET to set an element of a vector.
5202 Adjusted for the change of Vccl_program_table.
5203
5204 * ccl.h (struct ccl_program): New member idx.
5205 (check_ccl_update): Extern it.
5206
5207 2005-05-27 Juanma Barranquero <lekktu@gmail.com>
5208
5209 * image.c (Vimage_library_alist): Move from image.el.
5210 (syms_of_image): Defvar it.
5211 (lookup_image_type): Use it.
5212
5213 * buffer.c (Fbuffer_local_value): Make argument name match its use
5214 in docstring.
5215
5216 2005-05-26 Juanma Barranquero <lekktu@gmail.com>
5217
5218 * keyboard.c (Frecursive_edit): Fix typo in docstring.
5219 (Fposn_at_x_y): Make argument name match its use in docstring.
5220
5221 2005-05-26 Lute Kamstra <lute@gnu.org>
5222
5223 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
5224
5225 2005-05-24 Masatake YAMATO <jet@gyve.org>
5226
5227 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
5228 as loop sentinels.
5229
5230 2005-05-24 Nick Roberts <nickrob@snap.net.nz>
5231
5232 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
5233 select frame title ("Question"/"Information").
5234 (xdialog_show): Use it.
5235
5236 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
5237
5238 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
5239
5240 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
5241 a third argument (Qnil).
5242
5243 * lisp.h: x-popup-dialog can have three arguments.
5244
5245 * editfns.c (Fmessage_box): Use "Information" for frame title.
5246
5247 2005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
5248
5249 * termcap.c [VMS]: Include <starlet.h>.
5250
5251 2005-05-23 Masatake YAMATO <jet@gyve.org>
5252
5253 * xdisp.c (note_mode_line_or_margin_highlight): Add code
5254 for mouse-face. Change the type of the first argument from `window'
5255 to `Lisp_Object'.
5256 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
5257 window instead of w.
5258
5259 2005-05-22 Andreas Schwab <schwab@suse.de>
5260
5261 * process.c (send_process): Move misplaced volatile.
5262
5263 2005-05-21 Richard M. Stallman <rms@gnu.org>
5264
5265 * xdisp.c (display_mode_element): If we're processing a list and
5266 padding is specified, put it after the last element.
5267
5268 2005-05-21 Eli Zaretskii <eliz@gnu.org>
5269
5270 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
5271 "superroot" on DOS_NT systems.
5272
5273 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
5274
5275 * process.c (send_process): Restore the SIGPIPE handler if we
5276 catch a SIGPIPE.
5277
5278 2005-05-20 Juanma Barranquero <lekktu@gmail.com>
5279
5280 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
5281 misleading comments).
5282 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
5283
5284 2005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
5285
5286 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
5287 Correct the right value.
5288
5289 2005-05-19 Nick Roberts <nickrob@snap.net.nz>
5290
5291 * keyboard.c (syms_of_keyboard): Remove Lisp variables
5292 post-command-idle-hook and post-command-idle-delay.
5293 (command_loop_1): Don't try to execute post-command-idle-hook.
5294
5295 2005-05-16 Kim F. Storm <storm@cua.dk>
5296
5297 * xdisp.c (handle_display_prop): Handle empty replacement.
5298 (handle_single_display_spec): Return -1 for empty replacement.
5299
5300 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
5301
5302 * .gdbinit (pitx): Print more info about iterator.
5303
5304 2005-05-16 Andreas Schwab <schwab@suse.de>
5305
5306 * unexmacosx.c (unexec_realloc): Move declarations before statements.
5307
5308 2005-05-14 Richard M. Stallman <rms@gnu.org>
5309
5310 * xdisp.c (message3): Call cancel_echoing.
5311
5312 * alloc.c (Fmemory_full_p): New function.
5313 (syms_of_alloc): defsubr it.
5314
5315 * process.c (send_process_trap): Unblock SIGPIPE.
5316 (send_process): Reset SIGPIPE handler before reporting error.
5317
5318 2005-05-14 Nick Roberts <nickrob@snap.net.nz>
5319
5320 * emacs.c (syms_of_emacs): Fix doc string for system-type.
5321
5322 2005-05-13 Richard M. Stallman <rms@gnu.org>
5323
5324 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
5325 (Finsert_file_contents): If we read 0 bytes from a special file,
5326 unlock the visited file if we locked it.
5327 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
5328 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
5329
5330 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5331
5332 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
5333
5334 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
5335 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5336 redisplay from being paused by them.
5337
5338 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
5339 [!MAC_OSX] (target_ticks): Remove variable.
5340 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
5341 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
5342 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
5343 event occurs before timeout, behave as if the function were interrupted.
5344 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
5345 handling using Time Manager routines.
5346 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
5347 New variables.
5348 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
5349 (setitimer): New functions.
5350
5351 * macfns.c, macmenu.c: Don't include signal.h.
5352
5353 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
5354 Rename from get_control_part_bound. All callers changed.
5355 (x_scroll_bar_clear): New function.
5356 (x_clear_frame): Use it.
5357 (XTset_vertical_scroll_bar): Don't call Draw1Control.
5358 (x_scroll_bar_handle_click): Change type of second argument from
5359 int to ControlPartCode.
5360 (check_alarm): Remove declaration.
5361 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
5362 (XTread_socket): Use ControlPartCode instead of SInt16.
5363
5364 2005-05-13 Nozomu Ando <nand@mac.com>
5365
5366 * unexmacosx.c: Include assert.h.
5367 (MACOSX_MALLOC_MULT16): New define.
5368 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
5369 ptr is in unexec regions by checking it is multiple of 16.
5370 (unexec_malloc_header_t): New typedef.
5371 (unexec_malloc, unexec_realloc, unexec_free): Store and use
5372 allocated size information in unexec_malloc_header.
5373
5374 2005-05-10 Richard M. Stallman <rms@gnu.org>
5375
5376 * xterm.c (noinclude): Add #undef.
5377
5378 * image.c, xfns.c, xmenu.c: Don't include signal.h.
5379
5380 2005-05-09 Juanma Barranquero <lekktu@gmail.com>
5381
5382 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
5383 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
5384 Doc fixes.
5385
5386 * dired.c (Ffile_name_completion): Make argument name
5387 match its use in docstring.
5388
5389 2005-05-08 Luc Teirlinck <teirllm@auburn.edu>
5390
5391 * eval.c (Fdefvaralias): Remove any pre-existing
5392 variable-documentation property of the alias.
5393
5394 2005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
5395
5396 * xfns.c (start_hourglass): Do nothing when running on a tty.
5397
5398 2005-05-07 Juanma Barranquero <lekktu@gmail.com>
5399
5400 * fns.c (Fchar_table_range): Fix typos in docstring.
5401
5402 2005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5403
5404 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
5405
5406 2005-05-06 Eli Zaretskii <eliz@gnu.org>
5407
5408 * lread.c (Flocate_file_internal): Doc fix.
5409
5410 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
5411
5412 2005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5413
5414 * macselect.c (x_own_selection): Accept Lisp string as result of
5415 selection converter function.
5416 (x_clear_frame_selections): Don't call x-lost-selection-functions
5417 if Emacs is not owner of the selection.
5418 (Vmac_services_selection): Put variable and initialization in
5419 #ifdef MAC_OSX.
5420 (syms_of_macselect) [MAC_OSX]: Set default value of
5421 Vmac_services_selection to PRIMARY.
5422
5423 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
5424 (mac_handle_tool_bar_click): Remove unused function and declaration.
5425 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
5426 (install_scroll_bar_timer, set_scroll_bar_timer)
5427 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
5428 (get_control_part_bound, x_scroll_bar_handle_press)
5429 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
5430 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
5431 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
5432 (scroll_bar_timer_event_posted_p): New variables.
5433 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
5434 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
5435 (x_scroll_bar_create): Set control reference with NewControl.
5436 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
5437 Initialize track_top and track_height to nil.
5438 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
5439 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
5440 (XTset_vertical_scroll_bar): Don't make space between scroll bar
5441 and associated window.
5442 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
5443 from window config.
5444 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
5445 Set track_top and track_height to nil when scroll bar size is changed.
5446 Recalculate them if they are nil.
5447 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
5448 clicked control is a scroll bar.
5449 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
5450 event handler functions. Don't add modifiers to scroll bar click
5451 events. Call scroll bar release handler when window is deactivated.
5452 (mac_initialize): Remove unused code for X toolkit.
5453 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
5454 Initialize Vx_toolkit_scroll_bars to nil.
5455
5456 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
5457 New members track_top and track_height.
5458
5459 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
5460 init_process when including sys/select.h.
5461
5462 2005-05-05 Luc Teirlinck <teirllm@auburn.edu>
5463
5464 * eval.c (Fdefvaralias): Doc fix.
5465
5466 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
5467
5468 2005-05-05 Kim F. Storm <storm@cua.dk>
5469
5470 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
5471 default value.
5472 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
5473 Fix type of cursor-in-non-selected-windows.
5474
5475 2005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5476
5477 * mac.c: #undef init_process so not to conflict with system headers.
5478
5479 2005-05-02 Richard M. Stallman <rms@gnu.org>
5480
5481 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
5482
5483 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
5484
5485 * xdisp.c (Vcursor_in_non_selected_windows)
5486 (Qcursor_in_non_selected_windows): Vars deleted.
5487 (syms_of_xdisp): Don't initialize them.
5488 (get_window_cursor_type): Use cursor_in_non_selected_windows
5489 buffer slot.
5490
5491 2005-05-02 Kim F. Storm <storm@cua.dk>
5492
5493 * macros.c (executing_kbd_macro_index): Rename from
5494 executing_macro_index. All uses changed.
5495 (executing_kbd_macro_iterations): Rename from
5496 executing_macro_iterations. All uses changed.
5497 (executing_kbd_macro): Rename from executing_macro.
5498 All uses changed.
5499 (syms_of_macros): Rename Lisp var executing-macro-index to
5500 executing-kbd-macro-index.
5501
5502 * xdisp.c (move_it_in_display_line_to): Fix last change.
5503
5504 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
5505
5506 * xmenu.c (Fx_popup_menu): Doc fix.
5507
5508 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
5509
5510 2005-05-02 Jason Rumney <jasonr@gnu.org>
5511
5512 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
5513
5514 2005-05-02 Nozomu Ando <nand@mac.com>
5515
5516 * sysselect.h: Fix typo.
5517
5518 2005-05-02 Nick Roberts <nickrob@snap.net.nz>
5519
5520 * charset.c (Fchars_in_region): Remove as obsolete.
5521
5522 2005-05-01 Kim F. Storm <storm@cua.dk>
5523
5524 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
5525 TO_CHARPOS. This may happen if last glyphs was an image or stretch
5526 glyph.
5527
5528 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
5529
5530 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
5531
5532 2005-05-01 Richard M. Stallman <rms@gnu.org>
5533
5534 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
5535 If user cancels the menu, quit unless FOR_CLICK.
5536
5537 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
5538 All uses changed.
5539 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
5540 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
5541 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
5542 * commands.h (Vexecuting_kbd_macro): Likewise.
5543
5544 2005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
5545
5546 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
5547
5548 2005-04-30 Richard M. Stallman <rms@gnu.org>
5549
5550 * fileio.c (Ffind_file_name_handler): Handle the `operations'
5551 property of the file name handler.
5552 (Qoperations): New variable.
5553 (syms_of_fileio): Initialize and staticpro it.
5554
5555 * xdisp.c (set_message_1): Delete xassert.
5556
5557 2005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5558
5559 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
5560
5561 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
5562
5563 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
5564 before/after including Carbon.h if there is a working mktime.
5565
5566 2005-04-28 Kim F. Storm <storm@cua.dk>
5567
5568 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
5569 Fix cyclic alias check. If alias loop is detected, signal
5570 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
5571
5572 2005-04-28 Lute Kamstra <lute@gnu.org>
5573
5574 * eval.c (do_autoload): Record only autoloads in the autoload
5575 property of symbols.
5576
5577 2005-04-28 Nick Roberts <nickrob@snap.net.nz>
5578
5579 * emacs.c (USAGE1): Add --basic-display and --quick options.
5580
5581 2005-04-27 Kim F. Storm <storm@cua.dk>
5582
5583 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
5584
5585 2005-04-26 Richard M. Stallman <rms@gnu.org>
5586
5587 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
5588 (syms_of_window): Doc fixes.
5589
5590 * indent.c (Fvertical_motion): Undo previous change.
5591
5592 2005-04-26 Kenichi Handa <handa@m17n.org>
5593
5594 * fns.c (char_table_range): New function.
5595 (Fchar_table_range): Signal an error if characters in the range
5596 have inconsistent values. Don't check the parent.
5597
5598 2005-04-25 Kenichi Handa <handa@m17n.org>
5599
5600 * fontset.c (fontset_set): Fix previous change.
5601
5602 2005-04-24 Richard M. Stallman <rms@gnu.org>
5603
5604 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
5605
5606 2005-04-24 Eli Zaretskii <eliz@gnu.org>
5607
5608 * regex.c (re_search_2, re_match_2_internal): Convert second arg
5609 of RE_TRANSLATE to int, to shut up GCC warnings.
5610
5611 * fileio.c (Fcopy_file): Doc fix.
5612 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
5613 not needed.
5614
5615 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5616
5617 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
5618 (SOME_MACHINE_OBJECTS): Likewise.
5619 (mac.o): Depend on ccl.h.
5620 (macselect.o): New target.
5621
5622 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
5623 Call syms_of_macselect.
5624
5625 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
5626
5627 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
5628 (QCLIPBOARD): Remove variable.
5629 (syms_of_mac): Don't initialize it.
5630 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
5631 Remove functions.
5632 (syms_of_mac): Don't defsubr them.
5633 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
5634 (QHFS_plus_D, QHFS_plus_C): New variables.
5635 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
5636 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
5637 (cfstring_create_normalized): New functions.
5638 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
5639 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
5640
5641 * macterm.c (handling_window_update, terminate_flag):
5642 Remove variables.
5643 (do_window_update, do_ae_quit_application, XTread_socket):
5644 Don't use them.
5645 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
5646 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
5647 (init_service_handler): Move to macselect.c. Remove declarations.
5648 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
5649 (Qapplication, Qabout): New variables.
5650 (syms_of_mac): Initialize them.
5651 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
5652 (Qperform): New variables.
5653 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
5654 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
5655 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
5656 (mac_store_application_menu_event, init_menu_bar): New functions.
5657 [USE_CARBON_EVENTS] (mac_handle_command_event)
5658 (init_command_handler): New functions.
5659 (mac_handle_window_event): Return noErr on window update event.
5660 (do_ae_quit_application): Call mac_store_application_menu_event.
5661 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
5662 and init_menu_bar.
5663
5664 * macterm.h (x_clear_frame_selections): Add extern.
5665
5666 * macselect.c: New file for selection processing on Mac OS.
5667
5668 2005-04-23 Richard M. Stallman <rms@gnu.org>
5669
5670 * fileio.c (Fcopy_file): New arg MUSTBENEW.
5671 (Frename_file): Pass new arg to Fcopy_file.
5672
5673 * window.c (window_size_fixed): Variable deleted.
5674 (syms_of_window): Initialize window-size-fixed to nil.
5675 But don't DEFVAR window_size_fixed.
5676
5677 2005-04-23 Andreas Schwab <schwab@suse.de>
5678
5679 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
5680 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
5681 use lib64 instead of lib.
5682 (_LP64) [_ARCH_PPC64]: Define if not defined.
5683
5684 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
5685
5686 * s/ms-w32.h (HAVE_PWD_H): Define.
5687
5688 2005-04-22 Kenichi Handa <handa@m17n.org>
5689
5690 * fns.c (copy_sub_char_table): Explicitly copy the default value
5691 of the sub-chartable.
5692
5693 * fontset.c (fontset_set): When a sub-chartable is created,
5694 explicitly sets the defalt value.
5695
5696 2005-04-22 Kim F. Storm <storm@cua.dk>
5697
5698 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
5699 (Fsafe_plist_get): Rename to Fplist_get.
5700 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
5701 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
5702
5703 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
5704
5705 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
5706 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5707 Use Fplist_get instead of Fsafe_plist_get.
5708
5709 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
5710
5711 2005-04-21 Miles Bader <miles@gnu.org>
5712
5713 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
5714
5715 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
5716
5717 * sysdep.c: Remove reference to defunct vms-pwd.h.
5718 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
5719 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
5720
5721 * config.in: Regenerate.
5722
5723 2005-04-20 Kenichi Handa <handa@m17n.org>
5724
5725 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
5726 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
5727 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
5728
5729 * alloc.c (make_sub_char_table): Argument changed to initial
5730 value of the slots.
5731
5732 * data.c (Faref): Handle special slots used as default values of
5733 ascii, eight-bit-control, eight-bit-control. Don't ignore a
5734 default value set for a group of characters.
5735 (Faset): Signal an error if IDXVAL is not a valid character code.
5736 Make a sub-chartable with correct initial value.
5737
5738 * fns.c (Fset_char_table_range): Don't set slots used as default
5739 values for ascii, eight-bit-control, eight-bit-graphic.
5740 Don't call Faref with charset-id.
5741 (Fset_char_table_default): Document how to treat normal character
5742 argument. Handle special slots used as default values of ascii,
5743 eight-bit-control, eight-bit-control. Make a sub chartable if
5744 necessary.
5745
5746 2005-04-20 Kenichi Handa <handa@m17n.org>
5747
5748 * search.c (boyer_moore): Fix previous change.
5749
5750 2005-04-19 Kim F. Storm <storm@cua.dk>
5751
5752 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
5753 face unless last visible char and first invisible char have the
5754 same face. Also use default face if saved_face_id is undefined.
5755
5756 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5757
5758 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
5759 `full_name'.
5760 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
5761 mac_scriptcode member.
5762
5763 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
5764 (syms_of_mac): Don't initialize them.
5765 (Vmac_charset_info_alist): New variable.
5766 (syms_of_mac): Defvar it.
5767 (create_text_encoding_info_alist): New function.
5768 (decode_mac_font_name, mac_to_x_fontname)
5769 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
5770 code the correspondence among XLFD charsets, Mac script codes, and
5771 Emacs coding systems. Use Vmac_charset_info_alist and result of
5772 create_text_encoding_info_alist instead.
5773 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
5774 routines also on Mac OS Classic.
5775 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
5776 Use add_font_name_table_entry.
5777 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
5778 specified. Derive unspecified scalable fields from specified one.
5779 (x_list_fonts): Consider Valternate_fontname_alist.
5780 (kDefaultFontSize): Change value from 9 to 12.
5781 (XLoadQueryFont): Get decoded font family, font face, and charset
5782 from x_font_name_to_mac_font_name. Set full name of loaded font.
5783 (mac_unload_font): Free `full_name' member.
5784 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
5785 NULL. Copy full_name member of struct MacFontStruct to that of
5786 struct font_info.
5787
5788 2005-04-19 Kim F. Storm <storm@cua.dk>
5789
5790 * xdisp.c (handle_stop): Set saved_face_id to current face if
5791 selective_display_ellipsis_p so ellipsis will be shown in same
5792 face as preceding text.
5793 (setup_for_ellipsis): Don't set saved_face_id here.
5794 (next_element_from_display_vector): Default to saved_face_id.
5795
5796 * fns.c (Fsafe_get): New function.
5797 (syms_of_fns): Defsubr it.
5798
5799 * lisp.h (Fsafe_get): EXFUN it.
5800
5801 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
5802 loops in case of bad face property lists. Limit number of face
5803 alias lookups to 10 (in case of face alias loops).
5804
5805 2005-04-18 Kim F. Storm <storm@cua.dk>
5806
5807 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
5808 It replaces the corresponding member from struct window, as a
5809 window may now show multiple overlay arrows.
5810 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
5811
5812 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
5813 Compare overlay_arrow_bitmap than overlay_arrow_p members.
5814
5815 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
5816 rather than from window.
5817 (update_window_fringes): Compare overlay_arrow_bitmap rather than
5818 overlay_arrow_p members.
5819 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
5820 if not default.
5821
5822 * window.h (struct window): Remove member overlay_arrow_bitmap.
5823
5824 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
5825
5826 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
5827 Calls changed. Don't check for overlay-arrow-bitmap property here.
5828 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
5829 fringe is present, return Lisp integer for bitmap (or -1 for default).
5830 Fix value of overlay-arrow-bitmap property to be a symbol, use
5831 lookup_fringe_bitmap to parse it.
5832 (display_line): Change call to overlay_arrow_at_row. Store integer
5833 return value as overlay bitmap in row rather than window.
5834 Only show overlay arrow if row displays text, or if no other overlay
5835 arrow is seen in window (if overlay marker is at point-max).
5836
5837 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
5838
5839 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
5840
5841 2005-04-18 Lute Kamstra <lute@gnu.org>
5842
5843 * lread.c (Vloads_in_progress): Static.
5844 * fns.c (Vloads_in_progress): Remove extern.
5845 (load_in_progress): Add extern.
5846 (Frequire): Use load_in_progress instead of Vloads_in_progress.
5847
5848 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
5849
5850 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
5851
5852 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5853
5854 * macterm.c (XTread_socket): Don't beep on keyboard input even if
5855 no frame is visible.
5856
5857 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
5858
5859 * term.c (struct keys): Add support for shifted keys.
5860
5861 2005-04-16 Richard M. Stallman <rms@gnu.org>
5862
5863 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
5864 (set_message): Call with_echo_area_buffer with WHICH = 0.
5865 (set_message_1): Erase the echo area buffer first thing.
5866 (echo_area_display): Don't clear echo_message_buffer.
5867
5868 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5869
5870 * Makefile.in (mac.o): Depend on charset.h and coding.h.
5871
5872 * mac.c: Include charset.h and coding.h.
5873 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
5874 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
5875 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
5876
5877 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
5878
5879 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
5880
5881 * macterm.c (x_autoselect_window_p): Remove variable.
5882 (last_window): New variable.
5883 (XTreassert_line_highlight, x_change_line_highlight):
5884 Remove declarations.
5885 (mac_focus_changed, x_detect_focus_change): New functions and
5886 declarations.
5887 (XTextExtents16, front_emacs_window): Remove function.
5888 (mac_focus_frame): New function.
5889 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
5890 (mac_check_for_quit_char): Use it instead of front_emacs_window.
5891 (x_scroll_bar_report_motion): Obtain window from control owner.
5892 (x_make_frame_invisible): Set window manager size hint.
5893 (do_mouse_moved): Remove function.
5894 (XTread_socket): Move its contents here. Generate select-window
5895 event on mouse movement if needed. Use x_detect_focus_change on
5896 activate/deactivate events. Don't deiconify frame or invalidate
5897 window rectangle when dnd items are dropped.
5898 Don't activate/deactivate root control.
5899 (frame_highlight, frame_unhighlight): Activate/deactivate root
5900 control here.
5901 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
5902
5903 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
5904 New extern.
5905
5906 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
5907
5908 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
5909 (lisp): Use it.
5910 (SOME_MACHINE_LISP): Add tooltip.
5911
5912 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5913
5914 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
5915 Don't include TextEncodingConverter.h.
5916 (mac_system_script_code, Vmac_system_locale): New variables.
5917 (syms_of_mac): Defvar them.
5918 (mac_get_system_locale): New function.
5919
5920 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
5921 Use ENCODE_SYSTEM to encode title bar string.
5922 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
5923 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
5924 Use CFStringGetSystemEncoding to get system default string encoding.
5925
5926 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
5927 TextEncodingConverter.h.
5928
5929 2005-04-13 Steven Tamm <steventamm@mac.com>
5930
5931 * macterm.c (syms_of_macterm): Remove redundant definition of
5932 mac-pass-control-to-system.
5933
5934 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5935
5936 * window.c (Fset_window_configuration): Be careful when you choose
5937 among several possible points for the new_current_buffer.
5938
5939 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5940
5941 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
5942 poll_for_input_1. Set interrupt_input_pending to 1 instead.
5943 (Qlanguage_change) [MAC_OS]: New variable.
5944 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
5945 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
5946
5947 * macterm.c (mac_keyboard_text_encoding)
5948 (current_mac_keyboard_text_encoding): Remove variables.
5949 (XTread_socket): Store language-change event if keyboard script change
5950 is detected. Don't convert input to `mac_keyboard_text_encoding'.
5951 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
5952
5953 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
5954
5955 2005-04-10 Richard M. Stallman <rms@gnu.org>
5956
5957 * emacs.c (standard_args): Rename --bare-bones to --quick.
5958 Add -D aka --basic-display.
5959
5960 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
5961
5962 2005-04-09 Richard M. Stallman <rms@gnu.org>
5963
5964 * keymap.c (where_is_internal): Convert a string used as event type
5965 into "(any string)".
5966
5967 * lread.c (Vloads_in_progress): Not static.
5968 * fns.c (Vloads_in_progress): Add extern.
5969 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
5970
5971 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
5972
5973 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
5974
5975 2005-04-09 Lute Kamstra <lute@gnu.org>
5976
5977 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
5978 within the accessible part of the buffer.
5979
5980 2005-04-09 Kim F. Storm <storm@cua.dk>
5981
5982 * lread.c (readevalloop): Add args START and END as region in
5983 current buffer to read. Callers changed.
5984 When specified, narrow to this region only when reading,
5985 not during eval. Track next point to read from during eval.
5986 Also restore point to "real" buffer position before eval.
5987 (Feval_region): Don't save excursion and restriction here, and
5988 don't narrow to region. Just pass region to readevalloop.
5989 Note: Point is now preserved even when PRINTFLAG is nil.
5990
5991 2005-04-08 Kim F. Storm <storm@cua.dk>
5992
5993 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
5994
5995 2005-04-06 Kim F. Storm <storm@cua.dk>
5996
5997 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
5998
5999 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6000
6001 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
6002 (Fmac_get_preference): Doc fix.
6003
6004 * macfns.c (Fx_create_frame, x_create_tip_frame):
6005 Add "fontset-mac" to fallback font/fontsets.
6006
6007 2005-04-04 Kim F. Storm <storm@cua.dk>
6008
6009 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
6010
6011 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
6012 Call it again after autoload.
6013
6014 2005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6015
6016 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
6017 mallopt.
6018
6019 * ralloc.c (r_alloc_init): Ditto.
6020
6021 2005-04-01 Kenichi Handa <handa@m17n.org>
6022
6023 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
6024 (Vascii_eqv_table): Extern them.
6025
6026 * casetab.c (set_case_table): If standard is nonzero, setup
6027 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
6028
6029 * search.c (looking_at_1): Use current_buffer->case_canon_table,
6030 not DOWNCASE_TABLE.
6031 (string_match_1): Likewise.
6032 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
6033 Vascii_downcase_table.
6034 (fast_string_match_ignore_case): Likewise.
6035 (search_buffer): Fix checking of boyer-moore usability.
6036 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
6037 No need of tranlating characters in PAT. Fix calculation of
6038 simple_translate.
6039
6040 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6041
6042 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
6043 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
6044 Use XtNtopShadowPixel and XtNbottomShadowPixel.
6045 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
6046 really work and that breaks with some versions of Xaw3d.
6047
6048 2005-03-31 Kenichi Handa <handa@m17n.org>
6049
6050 * coding.c (syms_of_coding): Fix previous change.
6051
6052 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
6053
6054 * fileio.c (search_embedded_absfilename): Fix last change.
6055
6056 2005-03-25 Kenichi Handa <handa@m17n.org>
6057
6058 * coding.c (syms_of_coding): Suggest to use set-coding-category in
6059 the docstring of coding-category-list.
6060
6061 2005-03-31 Kim F. Storm <storm@cua.dk>
6062
6063 * keyboard.c (Qmouse_fixup_help_message): New var.
6064 (syms_of_keyboard): Intern and staticpro it.
6065 (show_help_echo): Apply mouse-fixup-help-message to help string.
6066
6067 2005-03-30 Kim F. Storm <storm@cua.dk>
6068
6069 * xdisp.c (display_line): Allow multiple overlay arrows in window.
6070
6071 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6072
6073 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
6074 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
6075 (Ffile_name_absolute_p): Use it.
6076 (search_embedded_absfilename): New fun, extracted from
6077 Fsubstitute_in_file_name. Use file_name_absolute_p.
6078 Free the pw data after use.
6079 (Fsubstitute_in_file_name): Use it.
6080 After cutting a prefix, re-check file-name-handler.
6081
6082 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
6083
6084 * w32term.h (x_output): Add focus_state.
6085
6086 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
6087 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
6088
6089 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
6090
6091 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
6092 Use Fexit_minibuffer.
6093 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
6094
6095 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
6096
6097 * dired.c (Ffile_attributes): Add a missing gcpro.
6098
6099 * alloc.c (make_number): The arg can be bigger than `int'.
6100 * lisp.h (make_number): Make prototype more precise.
6101
6102 * process.c, dired.c (Vfile_name_coding_system)
6103 (Vdefault_file_name_coding_system):
6104 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
6105 (Vdefault_file_name_coding_system): Remove unused declarations.
6106
6107 2005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6108
6109 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
6110 if it failed to pop up (Gnome "show pointer on ctrl" option makes
6111 menus fail to pop up).
6112
6113 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
6114
6115 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
6116 Just prepend a backslash without replacing the NBSP by an SPC.
6117
6118 2005-03-22 Kim F. Storm <storm@cua.dk>
6119
6120 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
6121 * dispextern.h (lookup_derived_face): Fix prototype.
6122 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
6123
6124 * xdisp.c (handle_single_display_spec): Derive left-fringe and
6125 right-fringe face from fringe face.
6126
6127 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
6128 Derive face from fringe face.
6129
6130 2005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6131
6132 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
6133
6134 2005-03-22 David Kastrup <dak@gnu.org>
6135
6136 * textprop.c (Fnext_char_property_change)
6137 (Fprevious_char_property_change): Allow marker as limit.
6138 (Fnext_single_char_property_change)
6139 (Fprevious_single_char_property_change): Check that limit is a
6140 number in strings.
6141 (Fnext_single_char_property_change): Coerce position to integer.
6142 (Fprevious_single_char_property_change): Same here.
6143
6144 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
6145
6146 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
6147
6148 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
6149
6150 * frame.c (Fignore_event): Remove.
6151 (syms_of_frame): Don't defsubr it.
6152
6153 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
6154 redundant `ignore-event'.
6155
6156 2005-03-19 Eli Zaretskii <eliz@gnu.org>
6157
6158 * unexec.c (write_segment, unexec): Move these functions to avoid
6159 forward references (which cause errors with "gcc -gcoff").
6160
6161 2005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6162
6163 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
6164 that it doesn't become "tooltip". The specbind is enough.
6165
6166 * xrdb.c (x_load_resources): Use different char *helv when I18N
6167 is present.
6168
6169 2005-03-17 Kenichi Handa <handa@m17n.org>
6170
6171 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
6172
6173 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6174
6175 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
6176 Use xic_create_fontsetname even for non-Motif menus.
6177 Don't forget to free the fontsetname.
6178
6179 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
6180
6181 2005-03-17 Richard M. Stallman <rms@gnu.org>
6182
6183 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
6184
6185 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
6186 (Fmake_symbolic_link): Use G to read the new file name.
6187
6188 * callint.c (Finteractive): Document G option.
6189 (Fcall_interactively): Implement G option.
6190
6191 * buffer.c (buffer_lisp_local_variables): New function,
6192 broken out from Fbuffer_local_variables.
6193 (clone_per_buffer_values): Use buffer_lisp_local_variables.
6194
6195 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6196
6197 * xfns.c (xic_create_fontsetname): Add `motif' argument.
6198 Always return a freshly allocated string.
6199 (xic_create_xfontset): Adjust call.
6200
6201 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
6202 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
6203 (dump_realized_face): Fix warning.
6204
6205 * emacs.c (Fkill_emacs): YAILOM.
6206
6207 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
6208
6209 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6210
6211 * mac.c (HASHKEY_TERMINAL): Remove.
6212 (HASHKEY_MAX_NID): New macro.
6213 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
6214 argument.
6215 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
6216 (xrm_create_database, xrm_q_put_resource)
6217 (xrm_merge_string_database, xrm_q_get_resource_1)
6218 (xrm_q_get_resource): Change resource database representation so
6219 that it may not use multiple hash tables for a single database.
6220 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
6221
6222 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
6223
6224 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
6225
6226 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
6227 locale-coding-system, as was already done for WINDOWSNT.
6228
6229 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
6230 translation for chars in the 0-255 range.
6231
6232 2005-03-16 Lute Kamstra <lute@gnu.org>
6233
6234 * floatfns.c (Ffloor): Doc fix.
6235
6236 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6237
6238 * mac.c: Include macterm.h instead of directly including Carbon.h.
6239 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
6240 (Qarray, Qdictionary): New variables.
6241 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
6242 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
6243 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
6244 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
6245 in callback for CFDictionaryApplyFunction.
6246 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
6247 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
6248 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
6249 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
6250 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
6251 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
6252 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
6253 (skip_white_space, parse_comment, parse_include_file)
6254 (parse_binding, parse_component, parse_resource_name, parse_value)
6255 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
6256 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
6257 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
6258 New functions.
6259
6260 * macfns.c (mac_get_rdb_resource): Remove function.
6261 (x_get_string_resource): Use xrm_get_resource.
6262
6263 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
6264
6265 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
6266 name_list_element.
6267 (mac_make_rdb): Create resource database from preferences and
6268 argument string.
6269 (mac_term_init): Save resource database to cddr part of
6270 name_list_element.
6271
6272 * macterm.h (xrm_merge_string_database, xrm_get_resource)
6273 (xrm_get_preference_database): Add externs.
6274 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
6275 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
6276 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
6277
6278 * process.c (init_process): Change `#ifdef DARWIN' to `#if
6279 defined (DARWIN) || defined (MAC_OSX)'
6280
6281 * s/darwin.h (DARWIN): Don't define.
6282
6283 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6284
6285 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
6286 Remove unused variables.
6287 (syms_of_macfns): Don't initialize them. Likewise for
6288 Qface_set_after_frame_default. Defvar and initialize
6289 Vx_window_horizontal_drag_shape.
6290 (x_set_mouse_color): Change mouse pointer shape.
6291 (mac_window) [!MAC_OSX]: Create root control.
6292 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6293 (hourglass_started): New function (from xfns.c).
6294 (start_hourglass, cancel_hourglass): Put function body in #ifdef
6295 MAC_OSX.
6296 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
6297 indicator for each non-tooltip frame if needed, and show it.
6298 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6299
6300 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
6301 Controls.h. Use ThemeCursor instead of CursHandle.
6302
6303 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
6304 Remove functions and declarations.
6305 (mac_set_colors): Take argument for saving background color.
6306 All callers changed.
6307 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
6308 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
6309 background color.
6310 (x_update_end, mac_do_track_drag): Don't reset background color.
6311 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
6312 Use SetThemeCursor.
6313 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
6314 indicator control to the upper-right corner of the window.
6315 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
6316 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
6317 (do_window_update): Update controls after updating content area.
6318 (mac_handle_window_event): Remove unused extern.
6319 (XTread_socket): Check both control handle and control part code
6320 to determine whether a scroll bar is clicked. Activate/deactivate
6321 root control instead of contained scroll bar controls.
6322 (make_mac_terminal_frame): Use ThemeCursor constants.
6323
6324 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
6325 New member hourglass_control.
6326 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
6327 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6328
6329 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6330
6331 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6332 coincides with that in Apple X11 except `clear', `enter' on
6333 laptops, and fn + `enter' on laptops.
6334
6335 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
6336
6337 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
6338 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
6339 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
6340
6341 * xfns.c (xic_defaut_fontset): New constant.
6342 (xic_create_fontsetname): New function.
6343 Extracted from create_frame_xic. Try to generate a slightly
6344 better fontset.
6345 (xic_create_xfontset): Use it.
6346 (create_frame_xic): Simplify.
6347
6348 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
6349
6350 * fileio.c (Fmake_symbolic_link): Fix last change.
6351
6352 2005-03-11 Richard M. Stallman <rms@gnu.org>
6353
6354 * fileio.c (Frename_file, Fadd_name_to_file)
6355 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
6356 expand the basename of FILE relative to it.
6357
6358 2005-03-11 Kenichi Handa <handa@m17n.org>
6359
6360 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
6361 before calling setup_coding_system so that autoloading of a coding
6362 system work.
6363
6364 2005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6365
6366 * xfns.c (hourglass_started): New function.
6367
6368 * dispextern.h: Declare hourglass_started.
6369
6370 * keyboard.c (Fexecute_extended_command): Restart hourglass
6371 after call to Fcompleting_read if already started.
6372
6373 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
6374 GTK main loop is entered in xterm.c, thus doing the redraw.
6375
6376 2005-03-10 Kim F. Storm <storm@cua.dk>
6377
6378 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
6379
6380 2005-03-08 Kenichi Handa <handa@m17n.org>
6381
6382 * frame.c (x_set_font): Call set_default_ascii_font if an
6383 available font is found.
6384
6385 * fontset.c (set_default_ascii_font): New function.
6386 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
6387
6388 * fontset.h (set_default_ascii_font): Extern it.
6389
6390 2005-03-07 Kim F. Storm <storm@cua.dk>
6391
6392 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
6393 (clear_image_cache_count): New var.
6394 (redisplay_internal): Don't clear face and image caches in the
6395 middle of redisplay; do it afterwards.
6396
6397 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
6398
6399 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
6400 is valid. If not, clear phys_cursor_on_p and return.
6401
6402 2005-03-07 Andreas Schwab <schwab@suse.de>
6403
6404 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
6405
6406 2005-03-06 Richard M. Stallman <rms@gnu.org>
6407
6408 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
6409
6410 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
6411 (Feval, Ffuncall): Use CHECK_CONS_LIST.
6412
6413 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
6414
6415 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
6416 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
6417
6418 2005-03-05 Juri Linkov <juri@jurta.org>
6419
6420 * emacs.c (USAGE1): Replace Info node name "command arguments"
6421 with "emacs invocation".
6422 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
6423 allow arguments `--color' and `MODE' to be separated by space.
6424 Add --no-blinking-cursor, -nbc.
6425 (standard_args): Add -nbc, --no-blinking-cursor.
6426
6427 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
6428
6429 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
6430 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
6431 * fileio.c (Fexpand_file_name) [VMS]:
6432 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
6433 * doc.c (munge_doc_file_name) [VMS]: Likewise.
6434 (Fsnarf_documentation): Call munge_doc_file_name.
6435
6436 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
6437
6438 * s/vms.h (FILE_SYSTEM_CASE): New macro.
6439 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
6440 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
6441
6442 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6443
6444 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
6445 defined (MAC_OSX) && defined (HAVE_CARBON)'.
6446
6447 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
6448
6449 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
6450 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
6451 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
6452 (mac_clear_font_name_table): Move extern to macterm.h.
6453
6454 * macfns.c (install_window_handler): Move extern to macterm.h.
6455 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
6456 valid. Don't check !NILP (dir) because it is already checked with
6457 CHECK_STRING.
6458 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
6459 specifying the default location and obtaining the selected filename.
6460
6461 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
6462
6463 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
6464 are included via Carbon.h.
6465
6466 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
6467 Define USE_CARBON_EVENTS to 1.
6468 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
6469 (x_free_frame_resources): Call remove_window_handler for
6470 non-tooltip windows.
6471 [TARGET_API_MAC_CARBON]: Don't include headers that are included
6472 via Carbon.h.
6473 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
6474 (mac_do_receive_dragUPP): New variables.
6475 (mac_handle_service_event, init_service_handler): Put declarations
6476 and definitions in #ifdef MAC_OSX.
6477 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
6478 drag-and-drop handler functions and register them.
6479 (remove_window_handler): New function.
6480 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
6481 Use fsspec_to_posix_pathname.
6482 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
6483 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
6484 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
6485 Set default cursors.
6486 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
6487 init_service_handler or init_quit_char_handler.
6488 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
6489
6490 * macterm.h (install_window_handler, remove_window_handler)
6491 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
6492 (mac_clear_font_name_table): New externs.
6493
6494 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
6495
6496 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
6497 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
6498 (Fexpand_file_name): Likewise.
6499
6500 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
6501
6502 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
6503 no longer special-case VMS. Add bogus return value.
6504
6505 2005-03-02 Kim F. Storm <storm@cua.dk>
6506
6507 * dispextern.h (XASSERTS): Define to 0 if not already defined.
6508 (xassert) [!XASSERTS]: Define dummy version.
6509
6510 2005-03-02 Kim F. Storm <storm@cua.dk>
6511
6512 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
6513 Reported by David Kastrup.
6514
6515 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
6516
6517 * xdisp.c (get_next_display_element): Fix control and escape
6518 glyph from display vector.
6519
6520 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
6521
6522 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
6523
6524 2005-02-27 Richard M. Stallman <rms@gnu.org>
6525
6526 * xdisp.c (fast_find_position): Rename END to BEG.
6527 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
6528
6529 2005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6530
6531 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6532 gtk_window_resize and x_wm_set_size_hint.
6533
6534 2005-02-25 Kim F. Storm <storm@cua.dk>
6535
6536 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
6537
6538 * xdisp.c (init_from_display_pos): Don't read past end of
6539 it->overlay_strings array.
6540
6541 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
6542
6543 * buffer.c (syms_of_buffer): Fix typo.
6544
6545 2005-02-23 Lute Kamstra <lute@gnu.org>
6546
6547 * buffer.c (Foverlay_buffer): Doc fix.
6548
6549 2005-02-22 Kim F. Storm <storm@cua.dk>
6550
6551 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
6552 and symbol keys in alists and hash tables.
6553
6554 * xdisp.c (fast_find_position): Fix search for start of overlay.
6555
6556 2005-02-21 Kim F. Storm <storm@cua.dk>
6557
6558 * window.c (window_scroll_pixel_based): When scrolling backwards,
6559 handle partial visible line at end of window even when we hit PT.
6560
6561 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
6562
6563 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
6564
6565 2005-02-21 Kim F. Storm <storm@cua.dk>
6566
6567 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
6568 I think those asserts are bogus if buffer contains invisible text
6569 or images.
6570
6571 2005-02-21 David Kastrup <dak@gnu.org>
6572
6573 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
6574
6575 2005-02-20 Kim F. Storm <storm@cua.dk>
6576
6577 * xdisp.c (pos_visible_p): Be sure to move to the specified
6578 position. Always get the full ascent / descent of the
6579 corresponding row, to return reliable rtop and rbot values.
6580 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
6581 Must look one character back, as back_to_previous_line_start
6582 returns position after the newline.
6583 (move_it_vertically_backward): Fix heuristic for when to move further
6584 back in case line_height * 2/3 is larger than window height.
6585 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
6586 as it does not do anything anymore. Add arg current_matrix_p to
6587 use current matrix rather than desired matrix when set.
6588 (try_cursor_movement): Don't scroll to make cursor row fully
6589 visible if cursor didn't move. This avoids unexpected recentering
6590 in case of blinking cursor or accepting process output.
6591 Use current matrix to check cursor row visibility.
6592 (redisplay_window): Fix whether to recenter or move to top in case
6593 cursor line is taller than window height.
6594 (find_first_unchanged_at_end_row): Stop search if we reach a row
6595 which not enabled (instead of abort).
6596
6597 2005-02-18 Kim F. Storm <storm@cua.dk>
6598
6599 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
6600 to be nil in a :box attribute value list; customize prints that
6601 as lisp value when no box color is specified.
6602
6603 * .gdbinit (pitx, pit): Pretty print display iterator.
6604 (prowx, prow): Pretty print glyph row.
6605 (pcursorx, pcursor): Pretty print a window cursor.
6606 (pwinx, pwin): Pretty print struct window.
6607
6608 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6609
6610 * alloc.c (BLOCK_BYTES): Harmless typo.
6611
6612 2005-02-17 Andreas Schwab <schwab@suse.de>
6613
6614 * xfns.c (hack_wm_protocols): Use correct type for last parameter
6615 of XGetWindowProperty to avoid aliasing issues.
6616 (Fx_window_property): Likewise.
6617
6618 * xselect.c (Fx_disown_selection_internal): Use union of struct
6619 input_event and struct selection_input_event to avoid aliasing issues.
6620
6621 * xterm.c (handle_one_xevent): Use union of struct input_event and
6622 struct selection_input_event to avoid aliasing issues.
6623 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
6624
6625 2005-02-17 Kim F. Storm <storm@cua.dk>
6626
6627 * dispextern.h (enum it_method): New enum.
6628 (GET_FROM_*): Its members.
6629 (struct it): Change member method from function pointer to enum.
6630
6631 * xdisp.c (check_it, init_from_display_pos, handle_stop)
6632 (setup_for_ellipsis, handle_single_display_spec)
6633 (handle_composition_prop, next_overlay_string)
6634 (get_overlay_strings, reseat_1, reseat_to_string)
6635 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
6636 (in_display_vector_p, display_line, get_next_display_element):
6637 Change it->method from function pointer to enum.
6638 (get_next_element): New array to map it->method to function.
6639 (get_next_display_element): Use it.
6640 (set_iterator_to_next): Use switch instead of if/else chain.
6641
6642 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
6643
6644 * w32select.c: Summary: Thorough rework to implement Unicode
6645 clipboard operations and delayed rendering.
6646
6647 Drop last_clipboard_text and related code, keep track of
6648 ownership via clipboard_owner instead. Drop old #if0 sections.
6649
6650 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
6651 (clipboard_owner, modifying_clipboard, cfg_coding_system)
6652 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
6653 (current_coding_system, current_requires_encoding)
6654 (current_num_nls, current_clipboard_type, current_lcid):
6655 New static variables.
6656
6657 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
6658 (render, render_all, run_protected, lisp_error_handler)
6659 (owner_callback, create_owner, setup_config)
6660 (enum_locale_callback, cp_from_locale, coding_from_cp):
6661 New local functions.
6662
6663 (term_w32select, globals_of_w32select): New global functions.
6664
6665 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
6666 clipboard_owner instead. Use delayed rendering and provide
6667 all text formats. Provide CF_LOCALE if necessary.
6668
6669 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
6670 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
6671 available. Force DOS line-ends for decoding.
6672
6673 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
6674
6675 (syms_of_w32select): Init and register new variables.
6676
6677 * w32.h: Add prototypes for globals_of_w32select and
6678 term_w32select. Make the neighboring K&R declarations into
6679 prototypes, too.
6680
6681 * emacs.c: Include w32.h to get function prototypes.
6682 (main): Call globals_of_w32select.
6683
6684 * w32.c (term_ntproc): Call term_w32select.
6685
6686 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
6687
6688 2005-02-16 Kim F. Storm <storm@cua.dk>
6689
6690 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
6691 at end of display vector.
6692
6693 2005-02-15 Richard M. Stallman <rms@gnu.org>
6694
6695 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
6696 for mode and header lines.
6697
6698 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
6699
6700 * keymap.h (describe_map_tree): Change decl.
6701
6702 * keyboard.c (command_loop_1): Always use safe_run_hooks
6703 to run Qdeferred_action_function.
6704
6705 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
6706 (describe_map, describe_vector): Likewise. When it's 1,
6707 don't omit shadowed bindings, instead mark them as shadowed.
6708
6709 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
6710 for describe_map_tree. Pass 1 for MENTION_SHADOW.
6711
6712 * data.c (Fsetq_default): Allow no arg case.
6713
6714 2005-02-14 Kenichi Handa <handa@m17n.org>
6715
6716 * coding.c (encode_coding_string): Always return a unibyte string.
6717 If NOCOPY is nonzero and there's no need of encoding, make STR
6718 unibyte directly.
6719
6720 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
6721 multibyte string, signal an error instead of aborting.
6722
6723 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
6724
6725 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
6726
6727 2005-02-12 Kim F. Storm <storm@cua.dk>
6728
6729 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
6730
6731 2005-02-10 Kim F. Storm <storm@cua.dk>
6732
6733 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
6734 if it moves outside window or it doesn't display text.
6735
6736 2005-02-09 Kim F. Storm <storm@cua.dk>
6737
6738 * undo.c (Fprimitive_undo): Check that undo function does not
6739 switch buffer.
6740
6741 2005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6742
6743 * xselect.c (selection_data_to_lisp_data): For the special case
6744 type == XA_ATOM, data contains array of int, not array of Atom.
6745 (x_property_data_to_lisp, selection_data_to_lisp_data):
6746 Comment update: data must be array of int for format == 32.
6747
6748 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
6749
6750 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
6751
6752 2005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6753
6754 * xfns.c (Fx_change_window_property): Use long array when format is 32.
6755 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
6756 convert long array returned from XGetWindowProperty to an int array.
6757 (x_set_tool_bar_lines): Check that width and height is greater than
6758 zero before clearing area.
6759
6760 * xselect.c (x_reply_selection_request): Pass long array to
6761 XChangeProperty so that 64 bit longs are handeled correctly.
6762 (x_get_window_property): If format is 32 and long is bigger than 32
6763 bits convert data from XGetWindowProperty from long array to int array.
6764 (lisp_data_to_selection_data): When the input is a vector and the
6765 format is 32, allocate a long array even if long is bigger than 32 bits.
6766 (x_fill_property_data): Use char, short and long as the man page
6767 for XChangeProperty specifies. This way the data returned is OK for
6768 both 32 and 64 bit machines.
6769 (x_handle_dnd_message): Calculate size correctly even for 64 bit
6770 machines.
6771 (Fx_send_client_event): Undo change from 2005-02-05,
6772 x_fill_property_data now handles that case.
6773
6774 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
6775 reason for the approach in the code.
6776
6777 2005-02-07 Kim F. Storm <storm@cua.dk>
6778
6779 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
6780
6781 2005-02-06 Richard M. Stallman <rms@gnu.org>
6782
6783 * eval.c (Frun_hook_with_args)
6784 (Frun_hook_with_args_until_success)
6785 (Frun_hook_with_args_until_failure): Doc fixes.
6786
6787 2005-02-05 Andreas Schwab <schwab@suse.de>
6788
6789 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
6790
6791 2005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6792
6793 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
6794 the longs in a XClientMessageEvent correctly when long is 64 bits.
6795
6796 2005-02-05 Eli Zaretskii <eliz@gnu.org>
6797
6798 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
6799 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
6800
6801 2005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6802
6803 * xmenu.c (menubar_selection_callback): Force out GTK buffered
6804 events so the menu event comes after them. This is to prevent sit-for
6805 from exiting on buffered events directly after a menu selection,
6806 lisp code for Help => About Emacs uses sit-for.
6807
6808 * gtkutil.c (create_menus): Connect selection-done event instead of
6809 the deactivate event to deactivate_cb. This will make the last
6810 leave event come before the call to deactivate_cb, so the leave
6811 event does not make sit-for exit after a menu selection.
6812
6813 2005-02-03 Kim F. Storm <storm@cua.dk>
6814
6815 * dispnew.c (build_frame_matrix_from_leaf_window)
6816 [!GLYPH_DEBUG]: Fix xassert.
6817
6818 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
6819
6820 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6821
6822 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6823
6824 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
6825 the compiling OS version.
6826
6827 * macfns.c (x_create_tip_frame): Likewise.
6828
6829 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
6830
6831 2005-02-03 Richard M. Stallman <rms@gnu.org>
6832
6833 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
6834
6835 * xdisp.c (echo_area_display): Clear echo_message_buffer.
6836
6837 * buffer.c (Fbury_buffer): Doc fix.
6838
6839 2005-02-02 Steven Tamm <steventamm@mac.com>
6840
6841 * macfns.c (unwind_create_frame): Fix compile error due to
6842 xassert being uncondition, but predicate is.
6843 * dispnew.c (update_window): Fix compile error due to
6844 xassert being uncondition, but predicate is.
6845
6846 2005-02-02 Miles Bader <miles@gnu.org>
6847
6848 * dispextern.h (xassert): Enable unconditionally.
6849
6850 2005-02-02 Kim F. Storm <storm@cua.dk>
6851
6852 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
6853
6854 2005-02-02 Kenichi Handa <handa@m17n.org>
6855
6856 * casefiddle.c (casify_object): Enable changing characters of
6857 different byte length.
6858 (casify_region): Fix loop condition, args to replace_range_2, and
6859 update opoint_byte.
6860
6861 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
6862
6863 2005-02-01 Kim F. Storm <storm@cua.dk>
6864
6865 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
6866 stack before calling handle_display_prop.
6867
6868 2005-01-31 Kim F. Storm <storm@cua.dk>
6869
6870 * undo.c (Qapply): New lisp var.
6871 (syms_of_undo): Intern and staticpro it.
6872 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
6873 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
6874
6875 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
6876
6877 2005-01-30 Jesper Harder <harder@phys.au.dk>
6878
6879 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
6880 <mac-emulate-three-button-mouse>: Fix docstring indentation.
6881
6882 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
6883
6884 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6885 Increase value to 3 Meg.
6886
6887 2005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6888
6889 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
6890 button events are not received otherwise.
6891
6892 2005-01-29 Richard M. Stallman <rms@gnu.org>
6893
6894 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
6895
6896 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
6897
6898 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
6899
6900 * keymap.c (access_keymap): YAILOM.
6901
6902 2005-01-27 Kim F. Storm <storm@cua.dk>
6903
6904 * xdisp.c (get_phys_cursor_geometry): New function to calculate
6905 phys cursor position and size for hollow cursor. Position is
6906 aligned with get_glyph_string_clip_rect and ensures that a hollow
6907 cursor is shown, even when the actual glyph is not visible.
6908
6909 * dispextern.h (get_phys_cursor_geometry): Add prototype.
6910
6911 * xterm.c (x_clip_to_row): Ensure y >= 0.
6912 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
6913
6914 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
6915
6916 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
6917
6918 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
6919
6920 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
6921
6922 2005-01-27 Kim F. Storm <storm@cua.dk>
6923
6924 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
6925 glyph, even when row is only partially visible and actual cursor
6926 position is not visible.
6927
6928 2005-01-24 Richard M. Stallman <rms@gnu.org>
6929
6930 * xterm.c (x_error_quitter): No longer static, and moved after
6931 x_error_handler.
6932
6933 2005-01-24 Kim F. Storm <storm@cua.dk>
6934
6935 * xdisp.c (move_it_by_lines): If we move forward after going too
6936 far back, cancel move if end position is same as start position.
6937
6938 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6939
6940 * dispextern.h (struct glyph_string): New members clip_head and
6941 clip_tail.
6942
6943 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
6944 region to the area between clip_head and clip_tail.
6945 (draw_glyphs): Record the area that need to be actually redrawn to
6946 the new variables clip_head and clip_tail when there are
6947 overhangs. Set values of these variables to the corresponding
6948 members in struct glyph_string. Refine x coordinates for
6949 notice_overwritten_cursor using clip_head and clip_tail.
6950
6951 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
6952
6953 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
6954 QDTextBounds.
6955 (x_draw_glyph_string): Don't fill the background of the successor
6956 of a glyph with a right overhang if the successor will draw a cursor.
6957 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6958 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
6959
6960 2005-01-24 Kim F. Storm <storm@cua.dk>
6961
6962 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
6963 direction if window height was smaller than next-screen-context-lines.
6964 Now always scroll at least one line in the requested direction.
6965 Ensure that we actually do scroll backwards when requested to do so.
6966
6967 * xdisp.c (redisplay_window): Only try to make cursor line fully
6968 visible once (to avoid redisplay loop).
6969
6970 2005-01-23 Kim F. Storm <storm@cua.dk>
6971
6972 * window.c (Fpos_visible_in_window_p): Simplify return value for
6973 partially visible rows.
6974 (window_scroll_pixel_based): Adapt to that change.
6975
6976 * window.c (window_scroll_pixel_based): Force moving to next line
6977 if scrolling doesn't move start point, e.g. if looking at tall image.
6978
6979 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
6980 Clear last_height before calling line_bottom_y to get real height.
6981 Fix calculation of y.
6982
6983 2005-01-22 Steven Tamm <steventamm@mac.com>
6984
6985 * s/darwin.h: Removed PTY_ITERATION from here.
6986 (DARWIN): Define.
6987
6988 * process.c (init_process): Default process-connection-type to
6989 nil on darwin 6 or less, t if it is 7 or higher. This way the
6990 broken pty behavior is still allowed on darwin 6 for interactive
6991 processes for people that know what they are doing.
6992
6993 2005-01-22 Kim F. Storm <storm@cua.dk>
6994
6995 * window.c (auto_window_vscroll_p): New boolean.
6996 (syms_of_window): DEFVAR_BOOL it.
6997 (Fpos_visible_in_window_p): Extend return value to include RTOP
6998 and RBOT values if FULLY is nil.
6999 (window_scroll_pixel_based): Adjust vscroll for partially visible
7000 rows if auto_window_vscroll_p is set.
7001 (Fset_window_vscroll): Do nothing if vscroll is not modified.
7002
7003 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
7004 to return number of partially invisible pixels at top and bottom
7005 of the dislay row at POS.
7006
7007 * lisp.h (pos_visible_p): Fix prototype.
7008
7009 2005-01-21 Richard M. Stallman <rms@gnu.org>
7010
7011 * fileio.c (Fcopy_file): Doc fix.
7012
7013 2005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7014
7015 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
7016 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
7017 start of function for older compilers.
7018
7019 2005-01-20 Richard M. Stallman <rms@gnu.org>
7020
7021 * editfns.c (Fmessage): If arg is "", return "" (as before).
7022
7023 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
7024
7025 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
7026 variable.
7027
7028 2005-01-20 Steven Tamm <steventamm@mac.com>
7029
7030 * editfns.c (Voperating_system_release): Add.
7031 (init_editfns): Assign new variable operating-system-release
7032 based on call to uname if available.
7033 (get_operating_system_release): Add function to
7034 allow c-level access to operating system release.
7035
7036 * config.h: Regenerated.
7037
7038 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
7039 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
7040 using ptys as '7'.
7041
7042 2005-01-20 Kim F. Storm <storm@cua.dk>
7043
7044 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
7045
7046 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
7047 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
7048
7049 * macterm.c (x_draw_glyph_string_box): Likewise.
7050
7051 * w32term.c (x_draw_glyph_string_box): Likewise.
7052
7053 * indent.c (Fvertical_motion): Temporarily disable selective display.
7054
7055 2005-01-19 Kim F. Storm <storm@cua.dk>
7056
7057 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
7058 image property.
7059
7060 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
7061
7062 2005-01-18 Kim F. Storm <storm@cua.dk>
7063
7064 * xdisp.c (fast_find_position): Backtrack to find first row if
7065 charpos is inside a display overlay that spans multiple lines.
7066
7067 2005-01-18 Kenichi Handa <handa@m17n.org>
7068
7069 * coding.c (decode_coding_iso2022): Translate invalid codes if
7070 translation-table is specified.
7071
7072 2005-01-18 Kim F. Storm <storm@cua.dk>
7073
7074 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
7075 change. If handle_display_prop indicates newline is replaced by
7076 image or text, move back to start of relevant overlay or interval
7077 and continue scan from there. Simplify.
7078
7079 2005-01-17 Kim F. Storm <storm@cua.dk>
7080
7081 * dispnew.c (mode_line_string, marginal_area_string):
7082 Fix off-by-one error in search for glyph.
7083
7084 2005-01-16 Kim F. Storm <storm@cua.dk>
7085
7086 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
7087
7088 2005-01-16 Steven Tamm <steventamm@mac.com>
7089
7090 * macterm.c (mac_to_x_fontname): Remove spurious argument.
7091
7092 2005-01-16 Andreas Schwab <schwab@suse.de>
7093
7094 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
7095
7096 2005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7097
7098 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
7099 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
7100
7101 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7102
7103 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
7104 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
7105 New flags for readable_events.
7106 (get_filtered_input_pending, readable_filtered_events): Remove.
7107 (tracking_off): Call readable_events and get_input_pending with
7108 flag READABLE_EVENTS_DO_TIMERS_NOW.
7109 (readable_events): Move code from old readable_filtered_events here,
7110 but check new READABLE_EVENTS_* in argument flags instead of previous
7111 two boolean arguments do_timers_now and filter_events.
7112 If we are doing mouse tracking and the mouse moved, return only if
7113 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
7114 (swallow_events): Call get_input_pending with flag
7115 READABLE_EVENTS_DO_TIMERS_NOW.
7116 (get_input_pending): Move code from old get_filtered_input_pending
7117 here. Replace boolean arguments do_timers_now, filter_events with
7118 flags, and pass flags to readable_events. Document new
7119 READABLE_EVENTS_* flags.
7120 (detect_input_pending_ignore_squeezables): New function.
7121 (detect_input_pending_run_timers): Call get_input_pending with flag
7122 READABLE_EVENTS_DO_TIMERS_NOW.
7123 (Finput_pending_p): Call get_input_pending with flags
7124 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
7125
7126 * dispnew.c (update_window, update_frame_1): Replace calls to
7127 detect_input_pending with detect_input_pending_ignore_squeezables
7128 so that redisplay is not paused if the event queue contains only
7129 mouse movements.
7130
7131 * lisp.h: Declare detect_input_pending_ignore_squeezables.
7132
7133 2005-01-15 Steven Tamm <steventamm@mac.com>
7134
7135 * macterm.c (Vmac_use_core_graphics): Declare variable for
7136 mac-allow-anti-aliasing.
7137 (syms_of_macterm): DEFVAR_LISP and initialize it.
7138 (mac_draw_string_common): Use core graphics text rendering if
7139 mac-allow-anti-aliasing is enabled.
7140
7141 * macfns.c (Fx_file_dialog): Save As dialog includes only the
7142 file name in the text box.
7143
7144 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7145
7146 * macfns.c (x_set_foreground_color, x_set_background_color):
7147 Sync with xfns.c.
7148 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
7149 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
7150 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
7151
7152 2005-01-14 Kim F. Storm <storm@cua.dk>
7153
7154 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
7155
7156 2005-01-13 Richard M. Stallman <rms@gnu.org>
7157
7158 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
7159 if Voverriding_terminal_local_map is non-nil.
7160
7161 * keyboard.c (syms_of_keyboard): Doc fix.
7162
7163 2005-01-13 Kim F. Storm <storm@cua.dk>
7164
7165 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
7166 (specify 0 for FACE instead). Reorder arg list. Doc fix.
7167
7168 2005-01-12 Richard M. Stallman <rms@gnu.org>
7169
7170 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
7171 face property for characters that don't specify one.
7172
7173 * fns.c (Frequire): Record in load-history unconditionally.
7174
7175 2005-01-10 Kim F. Storm <storm@cua.dk>
7176
7177 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
7178
7179 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
7180 Callers changed.
7181 Add support to merge with lisp face id too (if face_name is t).
7182
7183 * xdisp.c (get_next_display_element, next_element_from_display_vector):
7184 Don't lookup lface_id from display table glyphs here; instead use
7185 merge_faces to merge the lisp face id into current face.
7186
7187 2005-01-09 Kim F. Storm <storm@cua.dk>
7188
7189 * dispextern.h (struct it): New member dpvec_face_id.
7190 (merge_into_realized_face): Add prototype.
7191
7192 * xfaces.c (merge_into_realized_face): New function. Used to
7193 merge escape-glyph face or face from display table into current face.
7194
7195 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
7196 (syms_of_xdisp): DEFVAR_LISP it.
7197 (escape_glyph_face): Remove var.
7198 (redisplay_window): Don't initialize it.
7199 (setup_for_ellipsis, get_next_display_element):
7200 Set it->dpvec_face_id to -1.
7201 (get_next_display_element): Test Vshow_nonbreak_escape.
7202 Do not setup escape_glyph_face.
7203 Properly merge escape-glyph face or face from display table with
7204 current face for escape and control characters.
7205 Set it->dpvec_face_id to relevant face id instead of adding it to each
7206 element of display vector.
7207 (next_element_from_display_vector): If it->dpvec_face_id is set,
7208 use that instead of lface_id from glyph itself.
7209
7210 2005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7211
7212 * xterm.h (struct x_output): New member, toolbar_detached.
7213
7214 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
7215 38.
7216 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
7217 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
7218 (xg_create_tool_bar): Initialize toolbar_detached.
7219 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
7220 toolbar_detached is zero.
7221
7222 2005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7223
7224 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
7225 gtk_menu_popup if not for_click, so callbacks for the menu are called.
7226
7227 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
7228 (xg_tool_bar_callback, xg_tool_bar_help_callback)
7229 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
7230
7231 * xselect.c (x_get_foreign_selection, x_fill_property_data)
7232 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
7233 XFLOAT_DATA to get extract number from Lisp object.
7234
7235 2005-01-07 Kim F. Storm <storm@cua.dk>
7236
7237 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
7238 Set stop_charpos to current charpos instead of 0.
7239
7240 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
7241
7242 * xdisp.c (Fformat_mode_line): First arg now required.
7243
7244 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7245
7246 * macterm.c (XLoadQueryFont): Correctly handle 0 size
7247 font widths that are returned from some Japanese fonts.
7248
7249 2005-01-06 Kim F. Storm <storm@cua.dk>
7250
7251 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
7252 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
7253 (destroy_fringe_bitmap): Set fringe_faces element to nil.
7254 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
7255 fringe_faces array and init elements to nil.
7256 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
7257 non-persistent face id.
7258 (mark_fringe_data): New function for GC.
7259
7260 * alloc.c (mark_fringe_data): Declare extern.
7261 (Fgarbage_collect): Call mark_fringe_data.
7262
7263 * alloc.c (overrun_check_free): Invalidate freed memory if
7264 XMALLOC_CLEAR_FREE_MEMORY is defined.
7265
7266 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7267
7268 * macfns.c: Include sys/param.h.
7269 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
7270 and function.
7271 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
7272 of filename string. Set event callback function when creating
7273 dialog boxes. Add code conversions for filenames. Don't dispose
7274 of apple event descriptor record if failed to create it.
7275
7276 * macterm.c: Include sys/param.h.
7277 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
7278 kEventWindowUpdate.
7279 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
7280 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
7281 of FSSpec from apple event descriptor record.
7282 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
7283 size of filename string.
7284 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
7285 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
7286 file dialog is in action.
7287 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
7288 Reject only when there are no filename items. Set background color
7289 before (un)highlighting the window below the dragged items.
7290 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
7291
7292 2005-01-05 Romain Francoise <romain@orebokech.com>
7293
7294 * term.c (encode_terminal_code): Fix buffer size computation.
7295
7296 2005-01-04 Richard M. Stallman <rms@gnu.org>
7297
7298 * xdisp.c (Fformat_mode_line): Doc fix.
7299
7300 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
7301
7302 * alloc.c (refill_memory_reserve): Move.
7303 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
7304 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
7305
7306 2005-01-03 Richard M. Stallman <rms@gnu.org>
7307
7308 * window.c (window_scroll_pixel_based): Don't correct preserve_y
7309 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
7310
7311 2005-01-03 Jason Rumney <jasonr@gnu.org>
7312
7313 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
7314 fontp->space_width to FONT_WIDTH so they are valid.
7315
7316 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
7317 average width. Set fontp->average_width and fontp->space_width to
7318 their appropriate values.
7319
7320 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
7321 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
7322 fontp->space_width.
7323
7324 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7325
7326 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
7327 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
7328 metrics for max and min bounds.
7329 (x_load_font): Correctly calculate average font width metrics.
7330
7331 2005-01-02 Richard M. Stallman <rms@gnu.org>
7332
7333 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
7334
7335 2004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7336
7337 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
7338
7339 2004-12-31 Richard M. Stallman <rms@gnu.org>
7340
7341 * xdisp.c (setup_for_ellipsis, get_next_display_element):
7342 Set it->ellipsis_p to 1 or 0.
7343 (display_line): Record whether row ends in mid-ellipsis.
7344 (set_cursor_from_row): If ends in ellipsis, find start of it.
7345 (cursor_row_p): If PT's at the end of the ellipsis the row
7346 ends within, don't display cursor on this row.
7347
7348 * dispextern.h (struct it): New element ellipsis_p.
7349 (struct glyph_row): New element ends_in_ellipsis_p.
7350
7351 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
7352 position if we're reading from something other than the buffer.
7353
7354 * window.c (window_scroll_pixel_based): Only look at
7355 Vscroll_preserve_screen_position if the old PT can't be kept.
7356 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
7357
7358 2004-12-30 Kim F. Storm <storm@cua.dk>
7359
7360 * xdisp.c (get_line_height_property): New function extracted from
7361 original calc_line_height_property.
7362 (calc_line_height_property): Rework. Handle t and (nil . ratio).
7363 (x_produce_glyphs): Use them to handle line-height and
7364 line-spacing according to new height spec.
7365 (Qtotal): Remove.
7366 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
7367
7368 2004-12-30 Kenichi Handa <handa@m17n.org>
7369
7370 * fileio.c (Finsert_file_contents): Don't use
7371 current_buffer->buffer_file_coding_system even if REPLACE is
7372 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
7373
7374 * fontset.h (struct font_info): New members space_width and
7375 average_width.
7376
7377 * frame.h (struct frame): New member space_width.
7378 (FRAME_SPACE_WIDTH): New macro.
7379
7380 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
7381
7382 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
7383 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
7384 fontp->space_width.
7385 (x_load_font): Calculate fontp->space_width and fontp->average_width.
7386 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
7387
7388 * xdisp.c (x_produce_glyphs): Calculate tab width by
7389 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
7390
7391 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
7392
7393 * macterm.c (SelectionRange): Add Xcode position apple event struct.
7394 (do_ae_open_documents): Handle Xcode-style file position open events.
7395
7396 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
7397
7398 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
7399
7400 2004-12-29 Richard M. Stallman <rms@gnu.org>
7401
7402 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
7403
7404 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7405
7406 * macfns.c (install_window_handler): Modify extern to return OSErr
7407 value.
7408 (mac_window): Handle return value of install_window_handler.
7409
7410 * macterm.c (reflect_byte): Remove function.
7411 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
7412 Lookup table instead.
7413 (mac_do_font_lists): Simplify calculation of the longest
7414 nonspecial string.
7415 (init_mac_drag_n_drop): Remove function and declaration.
7416 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
7417 init_mac_drag_n_drop.
7418 (mac_do_track_drag): New function and declaration.
7419 (install_window_handler): Return OSErr value.
7420 (install_window_handler) [TARGET_API_MAC_CARBON]:
7421 Register handlers for tracking/receiving drag-and-drop items.
7422 (do_ae_open_documents): Generate unibyte strings for filenames.
7423 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
7424 Reject only non-filename items. Set event modifiers, and return value.
7425
7426 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
7427
7428 * coding.c (decode_coding): Fix previous change.
7429
7430 2004-12-28 Richard M. Stallman <rms@gnu.org>
7431
7432 * xdisp.c (back_to_previous_visible_line_start):
7433 Don't call handle_display_prop.
7434
7435 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
7436
7437 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
7438 (decode_coding_emacs_mule, encode_coding_emacs_mule)
7439 (decode_coding_iso2022, encode_designation_at_bol)
7440 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
7441 (decode_coding): Constify arguments and local vars.
7442
7443 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7444
7445 * xmenu.c (popup_get_selection): Only pop down dialogs
7446 on C-g and Escape.
7447 (popup_get_selection): Remove parameter down_on_keypress.
7448 (create_and_show_popup_menu, create_and_show_dialog):
7449 Remove parameter down_on_keypress to popup_get_selection.
7450
7451 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7452
7453 * dispextern.h: Change HAVE_CARBON to MAC_OS.
7454 (struct glyph_string): Likewise.
7455
7456 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
7457 mac_initialize.
7458
7459 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
7460 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
7461
7462 * fns.c (vector): Change MAC_OSX to MAC_OS.
7463
7464 * frame.c (x_set_frame_parameters, x_report_frame_params)
7465 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
7466 (x_set_border_width, Vdefault_frame_scroll_bars):
7467 Change HAVE_CARBON to MAC_OS.
7468
7469 * image.c [MAC_OS]: Include sys/stat.h.
7470 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
7471 QuickTimeComponents.h.
7472
7473 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
7474 [!MAC_OSX] (select): Use mac_wait_next_event.
7475 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
7476 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
7477 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
7478 (mac_clear_font_name_table): Add extern.
7479 (Fmac_clear_font_name_table): New defun.
7480 (syms_of_mac): Defsubr it.
7481 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
7482 [MAC_OSX] (select_and_poll_event): New function.
7483 [MAC_OSX] (sys_select): Use it.
7484 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
7485 [MAC_OSX && SELECT_USE_CFSOCKET]
7486 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
7487 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
7488 RunLoop for simultaneously monitoring two kinds of inputs, window
7489 events and process outputs, without periodically polling.
7490
7491 * macfns.c (mac_initialized): Remove extern.
7492 (stricmp): Put in #if 0. All callers changed to use xstricmp in
7493 xfaces.c.
7494 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
7495 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
7496 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
7497 (mac_get_rdb_resource): New function (from w32reg.c).
7498 (x_get_string_resource): Use it.
7499 (install_window_handler): Add extern.
7500 (mac_window): New function.
7501 (Fx_create_frame): Use it instead of make_mac_frame.
7502 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
7503 (Fx_open_connection, Fx_close_connection): New defuns.
7504 (syms_of_macfns): Defsubr them.
7505 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
7506 Add kWindowNoUpdatesAttribute to the window attribute.
7507 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
7508 (x_create_tip_frame): Don't call ShowWindow.
7509 (Fx_show_tip): Call ShowWindow.
7510 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
7511 TARGET_API_MAC_CARBON'.
7512 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
7513 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
7514
7515 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
7516 (Window): Typedef to WindowPtr and move outside `#if
7517 TARGET_API_MAC_CARBON'.
7518 (XSizeHints): New struct.
7519
7520 * macterm.c (x_update_begin, x_update_end)
7521 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
7522 frame.
7523 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
7524 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
7525 (construct_mouse_click): Put in #if 0.
7526 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
7527 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
7528 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
7529 (activate_scroll_bars, deactivate_scroll_bars)
7530 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
7531 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
7532 if the position is neither user-specified nor program-specified.
7533 (x_free_frame_resources): Free size_hints.
7534 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
7535 (mac_clear_font_name_table): New function.
7536 (mac_do_list_fonts): Initialize font_name_table if needed.
7537 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
7538 around mac_do_list_fonts.
7539 (mac_unload_font): New function.
7540 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
7541 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
7542 and definitions with #if TARGET_API_MAC_CARBON.
7543 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
7544 (install_window_handler): Add decl.
7545 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
7546 window. Use UpdateControls. Get the rectangle that should be
7547 updated and restrict the target of expose_frame to it.
7548 (do_grow_window): Set minimum height/width according to size_hints.
7549 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
7550 (do_zoom_window): Don't use x_set_window_size.
7551 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
7552 (install_window_handler): New function.
7553 [!USE_CARBON_EVENTS] (mouse_region): New variable.
7554 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
7555 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
7556 GetEventDispatcherTarget inside BLOCK_INPUT.
7557 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
7558 Update mouse_region when mouse is moved.
7559 (make_mac_frame): Remove.
7560 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
7561 Initialize mouse pointer shapes. Change values of f->left_pos and
7562 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
7563 Don't call ShowWindow.
7564 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
7565 Vinvocation_name and Vsystem_name.
7566 (mac_make_rdb): New function (from w32term.c).
7567 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
7568 already been opened. Don't pass argument to
7569 mac_initialize_display_info. Don't set dpyinfo->height/width.
7570 Add entries to x_display_list and x_display_name_list.
7571 (x_delete_display): New function.
7572 (mac_initialize): Don't call mac_initialize_display_info.
7573 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
7574
7575 * macterm.h (check_mac): Add extern.
7576 (struct mac_output): New member size_hints.
7577 (FRAME_SIZE_HINTS): New macro.
7578 (mac_unload_font): Add extern.
7579
7580 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
7581
7582 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
7583
7584 2004-12-27 Richard M. Stallman <rms@gnu.org>
7585
7586 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
7587 (syms_of_buffer): Don't defsubr it.
7588
7589 * process.c (list_processes_1): Set undo_list instead
7590 of calling Fbuffer_disable_undo.
7591
7592 * xdisp.c (single_display_spec_string_p): Rename from
7593 single_display_prop_string_p.
7594 (single_display_spec_intangible_p): Rename from
7595 single_display_prop_intangible_p.
7596 (handle_single_display_spec): Rename from handle_single_display_prop.
7597 Rewritten to be easier to understand.
7598
7599 Change in load-history format. Functions now get (defun . NAME),
7600 and variables get just NAME.
7601
7602 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
7603
7604 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
7605 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
7606 (Qdefvar): Var deleted.
7607 (syms_of_eval): Don't initialze it.
7608
7609 * lread.c (syms_of_lread) <load-history>: Doc fix.
7610
7611 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7612
7613 * xmenu.c (popup_get_selection): Pop down on C-g.
7614 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
7615 pops down menu on C-g.
7616 (xdialog_show): If dialog popped down and no button in the dialog was
7617 pushed, call Fsignal to quit.
7618 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
7619 Fsignal to quit.
7620
7621 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
7622
7623 * gtkutil.c (xg_initialize): Install bindings for C-g so that
7624 dialogs and menus pop down.
7625
7626 2004-12-27 Kenichi Handa <handa@m17n.org>
7627
7628 * coding.c (code_convert_region): Fix calculation of `ratio'.
7629
7630 2004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7631
7632 * gtkutil.c (update_frame_tool_bar): Make the value of
7633 tool-bar-button-margin control margins of images in tool bar.
7634
7635 * alloc.c (check_depth): New variable.
7636 (overrun_check_malloc, overrun_check_realloc): Only add
7637 overhead and write check pattern if check_depth is 1 (to handle
7638 recursive calls). Increase/decrease check_depth in entry/exit.
7639 (overrun_check_free): Only check for overhead if check_depth is 1.
7640 Increase/decrease check_depth in entry/exit.
7641
7642 2004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7643
7644 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
7645 before touching input_available_clear_time, to avoid accessing it
7646 from multiple threads.
7647
7648 2004-12-23 Jason Rumney <jasonr@gnu.org>
7649
7650 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
7651 of JPEG library.
7652
7653 2004-12-22 Richard M. Stallman <rms@gnu.org>
7654
7655 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
7656
7657 * lisp.h (Vundo_outer_limit): Fix decl.
7658
7659 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
7660 Uses changed.
7661 (syms_of_undo): Initialize appropriately.
7662 (truncate_undo_list): If it's nil, there's no limit.
7663
7664 2004-12-22 Kenichi Handa <handa@m17n.org>
7665
7666 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
7667
7668 2004-12-21 Richard M. Stallman <rms@gnu.org>
7669
7670 * eval.c (unwind_to_catch): Clear immediate_quit.
7671
7672 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
7673 specially as `\ ' and `\-'.
7674
7675 * keyboard.c (kbd_buffer_store_event_hold):
7676 In the code for while-no-input, handle immediate_quit.
7677
7678 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
7679 Call that at the very start.
7680 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
7681 (syms_of_alloc): Don't define undo-limit,
7682 undo-strong-limit and undo-outer-limit here.
7683
7684 * undo.c (truncate_undo_list): Return void.
7685 Take just one argument, the buffer.
7686 Make it current, and inhibit recursive GC.
7687 Access and update the undo list directly; return void.
7688 Refer to the undo...limit variables directly.
7689 Test undo_outer_limit only after counting the whole current command.
7690 When it's exceeded, call the function in undo-outer-limit-function.
7691 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
7692 (Vundo_outer_limit_function): New variable.
7693 (syms_of_undo): Define undo-limit, undo-strong-limit
7694 and undo-outer-limit here, and undo-outer-limit-function.
7695 Doc fixes.
7696
7697 * lisp.h (truncate_undo_list): Update decl.
7698
7699 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
7700
7701 * fileio.c (Fread_file_name): Delete duplicates in
7702 file-name-history when history_delete_duplicates is true.
7703
7704 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7705
7706 * macterm.c (mac_do_list_fonts): Fix memory leak
7707
7708 2004-12-20 Richard M. Stallman <rms@gnu.org>
7709
7710 * regex.c (re_match_2_internal) <symend, wordend>:
7711 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
7712
7713 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7714
7715 * macterm.c (endif, x_font_name_to_mac_font_name):
7716 Use maccentraleurroman instead of maccentraleuropean
7717 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
7718 quickly finding a specific font without needing regexps.
7719
7720 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7721
7722 * syssignal.h: Declare main_thread.
7723 (SIGNAL_THREAD_CHECK): New macro.
7724
7725 * keyboard.c (input_available_signal): Move thread checking code
7726 to macro SIGNAL_THREAD_CHECK and call that macro.
7727 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
7728
7729 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
7730
7731 * emacs.c: Define main_thread.
7732 (main): Initialize main_thread.
7733 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
7734 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
7735
7736 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
7737
7738 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
7739
7740 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
7741
7742 * process.c (send_process_trap, sigchld_handler):
7743 Call SIGNAL_THREAD_CHECK.
7744
7745 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
7746
7747 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
7748
7749 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
7750 returning when xg_ignore_gtk_scrollbar is true.
7751
7752 2004-12-14 Kim F. Storm <storm@cua.dk>
7753
7754 * keyboard.c (read_char): Save and restore echo_string when
7755 handling input method.
7756
7757 2004-12-13 Richard M. Stallman <rms@gnu.org>
7758
7759 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
7760
7761 * keyboard.c (Vthrow_on_input): New variable.
7762 (syms_of_keyboard): Defvar and initialize it.
7763 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
7764
7765 * lisp.h (QUIT): Check for Vthrow_on_input.
7766 (Vthrow_on_input): Declare it.
7767
7768 2004-12-13 Kim F. Storm <storm@cua.dk>
7769
7770 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
7771 vector.
7772
7773 2004-12-12 Richard M. Stallman <rms@gnu.org>
7774
7775 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
7776
7777 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
7778 (Ftry_completion): Really use outer `zero'; eliminate inner one.
7779
7780 2004-12-12 Kenichi Handa <handa@m17n.org>
7781
7782 * term.c (encode_terminal_code): Fix previous change.
7783
7784 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
7785
7786 * keyboard.c (handle_async_input): Remove pthread mutex handling.
7787 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
7788
7789 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
7790 in macro arguments.
7791
7792 * minibuf.c (Ftry_completion, Fall_completions): Don't use
7793 XFASTINT blindly.
7794
7795 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
7796
7797 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7798
7799 * w32term.c (x_calc_absolute_position): Remove calculation of
7800 difference between inner and outer window. Don't subtract difference
7801 for left and top calculations.
7802
7803 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
7804 for left and top calculations. Remove call to x_real_positions.
7805 [Bug report by Drew Adams in November]
7806 (x_check_expected_move): Do not set change_gravity to 1 when calling
7807 x_set_offset.
7808
7809 2004-12-08 Richard M. Stallman <rms@gnu.org>
7810
7811 * xdisp.c (get_next_display_element): Use `escape-glyph' for
7812 control chars and escaped octal codes.
7813 (Qescape_glyph): New variable.
7814 (syms_of_xdisp): Initialize it.
7815 (escape_glyph_face): New variable.
7816 (redisplay_window): Initialize it.
7817
7818 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
7819
7820 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
7821 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
7822
7823 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7824
7825 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
7826 reset_malloc_hooks.
7827
7828 * keyboard.c (handle_async_input, input_available_signal):
7829 Add ! defined (SYSTEM_MALLOC) around thread code.
7830
7831 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
7832
7833 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
7834
7835 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
7836
7837 * config.in: Regenerate.
7838
7839 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7840
7841 * xmenu.c (Fx_popup_menu): Correct documentation about position.
7842 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
7843 if not given by a mouse click to correspond with x-popup-menu
7844 documentation.
7845
7846 * config.in: Regenerate.
7847
7848 * gtkutil.c: Include signal.h and syssignal.h.
7849 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
7850
7851 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
7852 new variables main_thread and alloc_mutex,
7853 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
7854 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
7855 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
7856 (UN)BLOCK_INPUT.
7857 (emacs_blocked_free, emacs_blocked_malloc)
7858 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
7859 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
7860 (reset_malloc_hooks): New function.
7861
7862 * lisp.h: Declare reset_malloc_hooks.
7863
7864 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
7865
7866 * keyboard.c: Conditionally include pthread.h
7867 (handle_async_input, input_available_signalt): If not in the main
7868 thread, block signal, send signal to main thread and return.
7869
7870 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
7871 Set current folder in file chooser if default_filename is a directory.
7872
7873 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
7874
7875 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
7876 Remove redundant correctness checks.
7877 (regex_compile): Fix up error codes for \{..\} expressions.
7878
7879 2004-12-05 Richard M. Stallman <rms@gnu.org>
7880
7881 * regex.c (regex_compile): Fix end-of-pattern case for space.
7882
7883 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7884
7885 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
7886 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
7887 crashes with invalid characters.
7888 * macmenu.c (add_menu_item): Use it.
7889 * image.c (image_load_quartz2d): Likewise.
7890 * macfns.c (x_set_name, x_set_title): Likewise.
7891 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
7892 creating them each time for labels.
7893
7894 2004-12-02 Richard M. Stallman <rms@gnu.org>
7895
7896 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
7897 don't use it here.
7898
7899 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
7900 (interactive_p): Skip Scalled_interactively_p frames
7901 like Sinteractive_p frames.
7902 (unwind_to_catch): Clear handling_signal.
7903
7904 * data.c (Fmake_variable_buffer_local): Doc fix.
7905 (Fmake_local_variable): Doc fix.
7906
7907 * insdel.c (insert_from_string_before_markers)
7908 (insert_from_string): Don't modify buffer on empty insertion.
7909
7910 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
7911
7912 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7913
7914 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
7915 menu text as UTF8 fails.
7916
7917 2004-12-01 Kim F. Storm <storm@cua.dk>
7918
7919 * alloc.c: Add commentary for last change.
7920 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
7921 sizeof(size_t) != 4.
7922 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
7923 Use them. Also clear header and trailer of freed memory.
7924 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
7925 (string_overrun_cookie): Rename from string_overrun_pattern.
7926 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
7927
7928 2004-12-01 Andreas Schwab <schwab@suse.de>
7929
7930 * lisp.h: Declare string_to_multibyte.
7931
7932 2004-12-01 Kenichi Handa <handa@m17n.org>
7933
7934 * w32console.c (w32con_write_glyphs): Decide coding here.
7935 Adjusted for the change of encode_terminal_code.
7936
7937 * term.c (encode_terminal_code): Don't make it "static".
7938
7939 2004-11-30 Kenichi Handa <handa@m17n.org>
7940
7941 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
7942 (encode_terminal_code): Argument changed. Encode all
7943 characters at once, and return a pointer to the result of encoding.
7944 (write_glyphs): Decide coding here. Adjusted for the above change.
7945 (insert_glyphs): Likewise.
7946 (term_init): Initialize encode_terminal_bufsize to 0.
7947
7948 * coding.c (Vcode_conversion_workbuf_name): New variable.
7949 (syms_of_coding): Initialize and staticpro it.
7950 (set_conversion_work_buffer): New function.
7951 (run_pre_post_conversion_on_str): Use it.
7952 (run_pre_write_conversin_on_c_str): New function.
7953
7954 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
7955
7956 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7957
7958 * keyboard.c: Don't undef SIGIO
7959 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
7960 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
7961 (macfns.o): Don't depend on ccl.h.
7962 * macfns.c (mac_frame_parm_handlers): Set handlers for
7963 Qleft_fringe and Qright_fringe.
7964 * macterm.c (mac_fill_rectangle_to_pixmap)
7965 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
7966 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
7967 Put in #if 0.
7968 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
7969 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
7970 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
7971 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
7972 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
7973 XDrawImageString. Always draw background and foreground separately.
7974 (x_draw_image_foreground): Use clipping instead of computing the
7975 intersection rectangle.
7976 (x_draw_image_glyph_string): Don't draw an image with mask to a
7977 pixmap.
7978 (x_redisplay_interface): Set flush_display_optional member to 0.
7979 (XTread_socket): Correctly reset the TEConverter
7980 object.
7981
7982 2004-11-30 Kim F. Storm <storm@cua.dk>
7983
7984 * lisp.h: New defines to enable buffer overrun checking.
7985 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
7986 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
7987
7988 * alloc.c: Add more checks for buffer overruns.
7989 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
7990 xmalloc_overrun_check_trailer, overrun_check_malloc)
7991 overrun_check_realloc, overrun_check_free): Add.
7992 (GC_STRING_EXTRA, string_overrun_pattern): Add.
7993 (check_sblock, allocate_string_data, compact_small_strings):
7994 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
7995 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
7996 (check_string_free_list): Add.
7997 (allocate_string, sweep_strings): Call check_string_free_list.
7998
7999 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
8000 XMALLOC_OVERRUN_CHECK to avoid crash during load.
8001
8002 2004-11-29 Kim F. Storm <storm@cua.dk>
8003
8004 * fns.c (concat): Use SAFE_ALLOCA.
8005
8006 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
8007
8008 * sysdep.c (emacs_write): Don't use QUIT.
8009
8010 2004-11-29 Kenichi Handa <handa@m17n.org>
8011
8012 * buffer.c (init_buffer): Set current_buffer->directory to a
8013 multibyte string made by string_to_multibyte.
8014
8015 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
8016
8017 2004-11-27 Andreas Schwab <schwab@suse.de>
8018
8019 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
8020
8021 * s/gnu-linux.h: Enable no-op gcpros on ia64.
8022 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
8023
8024 * filelock.c (lock_file_1): Call get_boot_time early.
8025 Increase buffer size.
8026
8027 2004-11-27 Eli Zaretskii <eliz@gnu.org>
8028
8029 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
8030 is not defined.
8031
8032 2004-11-27 Kim F. Storm <storm@cua.dk>
8033
8034 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
8035 marker out of doc string.
8036
8037 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
8038
8039 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
8040 which was not mentioned in the log.
8041
8042 2004-11-26 Kim F. Storm <storm@cua.dk>
8043
8044 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
8045 angle bitmaps at top/bottom line.
8046
8047 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
8048 set it when it->method is set to next_element_from_display_vector.
8049 (setup_for_ellipsis): Add LEN argument. Callers changed.
8050 Set it->saved_face_id.
8051 (get_next_display_element): Use loop instead of recursion.
8052 Set it->saved_face_id. Combine duplicate code for ctr chars.
8053 (next_element_from_display_vector): Do not set it->saved_face_id.
8054 (next_element_from_ellipsis): Use setup_for_ellipsis.
8055
8056 2004-11-26 Eli Zaretskii <eliz@gnu.org>
8057
8058 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
8059 prevent compiler warnings.
8060
8061 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
8062
8063 * keyboard.c (command_loop_1): Print a message describing the key
8064 the user just pressed when this key has no binding.
8065
8066 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
8067 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
8068
8069 * lread.c (readchar): Check QUIT when `getc' is interrupted.
8070
8071 2004-11-24 Richard M. Stallman <rms@gnu.org>
8072
8073 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
8074
8075 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
8076
8077 2004-11-24 Kim F. Storm <storm@cua.dk>
8078
8079 * xdisp.c (move_it_in_display_line_to, display_line):
8080 Restore saved_face_id also when truncate-lines or hscrolled.
8081
8082 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8083
8084 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
8085 x-use-old-gtk-file-dialog.
8086
8087 * xfns.c: Define x_use_old_gtk_file_dialog.
8088 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
8089 outside ifdef USE_GTK.
8090
8091 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
8092
8093 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
8094 Don't use XFASTINT blindly.
8095
8096 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
8097
8098 * indent.c (skip_invisible): Avoid non-idempotent side-effects
8099 in macro arguments.
8100
8101 * keymap.c (Flookup_key): Check INTEGERP before XINT.
8102
8103 * lread.c (oblookup): Don't use XFASTINT blindly.
8104
8105 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
8106 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
8107
8108 2004-11-23 Kim F. Storm <storm@cua.dk>
8109
8110 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
8111 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
8112
8113 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
8114 signal_p is zero and face name is unknown.
8115 (Fx_list_fonts): Don't signal error in lookup_named_face.
8116 (Fface_font): Signal error in lookup_named_face.
8117 (ascii_face_of_lisp_face): Likewise.
8118
8119 * dispextern.h (lookup_named_face): Fix prototype.
8120
8121 * xdisp.c (handle_single_display_prop): Don't signal error in
8122 lookup_named_face for unknown fringe face name.
8123 (highlight_trailing_whitespace): Don't signal error in
8124 lookup_named_face if trailing-whitespace face unknown.
8125 (calc_line_height_property): Don't signal error in
8126 lookup_named_face if specified face name is unknown.
8127
8128 * fringe.c (update_window_fringes): Show top row indicator if
8129 window has header-line. Don't show arrow at bob and eob
8130 if the boundary indicators are not used.
8131 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
8132
8133 * window.c (set_window_buffer): Clear display_error_modiff.
8134
8135 2004-11-22 Kim F. Storm <storm@cua.dk>
8136
8137 * fringe.c (update_window_fringes): Provide sensible fall-back
8138 value for non-nil indicate-buffer-boundaries setting.
8139
8140 2004-11-22 Markus Rost <rost@ias.edu>
8141
8142 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
8143
8144 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
8145
8146 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
8147
8148 2004-11-21 Kim F. Storm <storm@cua.dk>
8149
8150 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
8151
8152 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
8153 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
8154
8155 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
8156 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
8157
8158 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
8159 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
8160
8161 * xdisp.c (move_it_in_display_line_to, display_line):
8162 Restore saved_face_id if overflow-newline-into-fringe is enabled and
8163 line is continued before or in middle of element from display vector.
8164
8165 * indent.c (Fvertical_motion): Fix last change. Use another
8166 method to detect if iterator moved too far ahead after reseat.
8167
8168 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
8169 expand matrix width for overflow in zero-width area.
8170 (append_glyph, append_composite_glyph, produce_image_glyph)
8171 (append_stretch_glyph): Use it to avoid loop in redisplay.
8172 (note_mode_line_or_margin_highlight): Don't let help-echo from
8173 string override help-echo from image map.
8174
8175 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
8176
8177 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
8178 * callint.c (Fcall_interactively): Ditto.
8179
8180 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
8181
8182 * minibuf.c (Fminibuffer_complete_and_exit):
8183 Fixup the case of the completed value, for case-indep completion.
8184
8185 2004-11-20 Richard M. Stallman <rms@gnu.org>
8186
8187 * lisp.h (Fread_from_minibuffer): Add arg in decl.
8188
8189 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
8190 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
8191
8192 * search.c (Vsearch_spaces_regexp):
8193 Rename from Vsearch_whitespace_regexp. All uses changed.
8194
8195 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
8196
8197 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
8198
8199 2004-11-19 Richard M. Stallman <rms@gnu.org>
8200
8201 * search.c (Vsearch_whitespace_regexp): New variable.
8202 (syms_of_search): Defvar it.
8203 (compile_pattern_1): Call re_set_whitespace_regexp with it.
8204 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
8205 is non-nil.
8206 (struct regexp_cache): New element whitespace_regexp.
8207 (syms_of_search): Initialize whitespace_regexp elements.
8208 (compile_pattern): Compare whitespace_regexp elements.
8209 (compile_pattern_1): Set whitespace_regexp elements.
8210
8211 * regex.c (regex_compile): Substitute whitespace_regexp
8212 for spaces, if it is nonzero.
8213 (whitespace_regexp): New variable.
8214 (re_set_whitespace_regexp): New function.
8215
8216 2004-11-19 Kim F. Storm <storm@cua.dk>
8217
8218 * indent.c (Fvertical_motion): Fix last change.
8219
8220 2004-11-18 Kim F. Storm <storm@cua.dk>
8221
8222 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
8223 Instead, move back again if reseating moves too far ahead.
8224
8225 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
8226
8227 * xdisp.c (message3): Call clear_message.
8228
8229 2004-11-17 Kim F. Storm <storm@cua.dk>
8230
8231 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
8232
8233 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8234
8235 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
8236
8237 * xmenu.c (x_menu_in_use): Remove.
8238 (x_menu_set_in_use): Also set popup_activated_flag.
8239
8240 * xfns.c (Fx_file_dialog): Call popup_activated instead of
8241 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
8242
8243 * xterm.h (x_menu_in_use): Remove.
8244
8245 2004-11-16 Richard M. Stallman <rms@gnu.org>
8246
8247 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
8248 Use map-keymap-internal to implement that.
8249
8250 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
8251
8252 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
8253
8254 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
8255 a window before using XWINDOW.
8256
8257 * window.c (make_window, Fselect_window, make_dummy_parent)
8258 (save_window_save):
8259 * frame.c (make_frame):
8260 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
8261
8262 * lisp.h (NILP): Use EQ rather than XFASTINT.
8263
8264 2004-11-16 Kim F. Storm <storm@cua.dk>
8265
8266 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
8267
8268 * indent.c (Fvertical_motion): Fix last change. Only reseat when
8269 moving backwards.
8270
8271 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
8272
8273 * dispextern.h: Extern reseat_at_previous_visible_line_start.
8274
8275 2004-11-16 Kenichi Handa <handa@m17n.org>
8276
8277 * xdisp.c (display_mode_element): Fix previous change (calculate
8278 end position of substring to display correctly).
8279
8280 2004-11-16 Kim F. Storm <storm@cua.dk>
8281
8282 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
8283 Reported by Andrew M. Scott.
8284
8285 2004-11-15 Kim F. Storm <storm@cua.dk>
8286
8287 * fns.c (Fsafe_plist_get): New defun.
8288 (syms_of_fns): Defsubr it.
8289
8290 * lisp.h (Fsafe_plist_get): Add EXFUN.
8291
8292 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
8293 Use Fsafe_plist_get.
8294 (note_mode_line_or_margin_highlight, note_mouse_highlight):
8295 Fix image map element parsing. Use Fsafe_plist_get.
8296
8297 2004-11-15 Richard M. Stallman <rms@gnu.org>
8298
8299 * xdisp.c (get_next_display_element): Fix previous change.
8300
8301 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8302
8303 * window.c (shrink_windows): Handle special case of one window left
8304 when trying to shrink the final reminder. Grow windows if
8305 total_removed is less than total_shrink.
8306
8307 * xmenu.c (pop_down_menu): Remove global variable current_menu,
8308 extract pointer from arg with XSAVE_VALUE.
8309 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
8310 Construct arg to record_unwind_protect with make_save_value.
8311
8312 2004-11-13 Richard M. Stallman <rms@gnu.org>
8313
8314 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
8315 (get_next_display_element): Fix previous change to apply only to \n.
8316
8317 * indent.c (Fvertical_motion): Scan to PT from start of line to
8318 make iterator consistent.
8319
8320 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
8321
8322 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8323
8324 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
8325
8326 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
8327 Record unwind with clean_up_file_dialog.
8328
8329 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
8330 Declare.
8331
8332 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
8333
8334 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8335
8336 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
8337 (xg_file_sel_destroy): Remove.
8338 (xg_file_response_cb, pop_down_file_dialog)
8339 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
8340 New functions.
8341 (xg_get_file_with_chooser, xg_get_file_with_selection):
8342 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
8343 Move common code to xg_get_file_name. Return widget created.
8344 (xg_get_file_name): Set name, transient for, modal and destroy
8345 with parent here. Connect response signal to xg_file_response_cb,
8346 connect delete-event to gtk_true. Record pop_down_file_dialog
8347 for unwind. Do event loop and call x_menu_wait_for_event in loop.
8348 (xg_create_widget): Make dialogs modal.
8349
8350 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
8351 Lisp_Object.
8352 (popup_get_selection): Move unwind protect ...
8353 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
8354 Move destroy of widget to pop_down_menu.
8355 (popup_widget_loop): Move unwind protect ...
8356 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
8357 Move destroy of widget to pop_down_menu.
8358 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
8359 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
8360 x_mouse_leave and grabbed = 0 to pop_down_menu.
8361
8362 2004-11-13 Kim F. Storm <storm@cua.dk>
8363
8364 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
8365 (syms_of_xdisp): DEFVAR_BOOL it.
8366 (make_cursor_line_fully_visible, try_cursor_movement)
8367 (try_window_id): Use it.
8368
8369 2004-11-12 Kim F. Storm <storm@cua.dk>
8370
8371 * dispextern.h (struct glyph_row): New member extra_line_spacing.
8372 (struct it): New member max_extra_line_spacing.
8373 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
8374 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
8375 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
8376 part of last line is only extra line spacing (so the text on the
8377 line is fully visible). Use helper macros.
8378 Add W arg (to use them). All callers changed.
8379 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
8380 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
8381
8382 * window.c (window_scroll_pixel_based, Frecenter):
8383 Use move_it_vertically_backward directly.
8384 (Frecenter): Fix calculation of new start pos for negative arg.
8385 Before, the new start pos was sometimes chosen too far back, so
8386 the last line became only partially visible, and thus would be
8387 either only semi-visible or automatically scrolled to the middle
8388 of the window by redisplay.
8389
8390 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
8391 (move_it_vertically_backward): Don't recure to move further back.
8392 (move_it_vertically): Remove superfluous condition.
8393 (move_it_by_lines): Clear last_height when moved 0 lines.
8394 (resize_mini_window): Use it.max_extra_line_spacing.
8395 (display_tool_bar_line): Clear row->extra_line_spacing.
8396 (try_scrolling): Use move_it_vertically_backward directly.
8397 (redisplay_window): Likewise.
8398 (compute_line_metrics): Set row->extra_line_spacing.
8399 (display_line, display_string): Likewise.
8400 (x_produce_glyphs): Update it->max_extra_line_spacing.
8401
8402 * xmenu.c (pop_down_menu): Return nil.
8403
8404 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8405
8406 * xmenu.c (x_menu_wait_for_event): New function.
8407 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
8408 to handle timers.
8409 (popup_widget_loop): Add argument do_timers.
8410 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
8411 do_timers to popup_widget_loop.
8412 (xmenu_show): Call XMenuActivateSetWaitFunction so that
8413 x_menu_wait_for_event is called by XMenuActivate.
8414 (create_and_show_popup_menu): Pass 1 for do_timers to
8415 popup_get_selection.
8416 (pop_down_menu): New function.
8417 (popup_get_selection, popup_widget_loop): Unwind protect to
8418 pop_down_menu.
8419 (popup_widget_loop): Add argument widget.
8420 (create_and_show_popup_menu, create_and_show_dialog): Pass new
8421 argument widget to popup_widget_loop.
8422
8423 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
8424
8425 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
8426
8427 2004-11-09 Kim F. Storm <storm@cua.dk>
8428
8429 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
8430 Fix various comments referring to XEvents instead of input events.
8431 (x_queue_event): Fix format strings.
8432 (x_stop_queuing_selection_requests): Likewise.
8433
8434 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
8435 (pint2hrstr): Add extra braces to silence compiler.
8436
8437 * print.c (print_object): Fix format string.
8438
8439 * lread.c (read1): Fix next_char matching.
8440
8441 * lisp.h (Fdelete): Add EXFUN.
8442 (replace_range_2): Add prototype.
8443
8444 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
8445
8446 * intervals.h (NULL_INTERVAL_P): Add separate version when
8447 ENABLE_CHECKING is not defined to silence compiler.
8448 (compare_string_intervals): Add prototype.
8449
8450 * fringe.c (destroy_fringe_bitmap): Fix return type.
8451 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
8452
8453 * emacs.c (Fdump_emacs): Fix format string.
8454
8455 * doc.c: Include <ctype.h>.
8456 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
8457
8458 * data.c (store_symval_forwarding): Remove unused variables.
8459
8460 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
8461
8462 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8463
8464 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
8465 to ${OLDXMENU}.
8466
8467 2004-11-09 Kim F. Storm <storm@cua.dk>
8468
8469 * process.c (Fmake_network_process): Remove kludge for interrupted
8470 connects on BSD. If connect is interrupted, just close socket and
8471 start over rather than sleeping and retry with same socket.
8472
8473 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8474
8475 * .cvsignore: Add buildobj.lst.
8476
8477 * doc.c: New variable Vbuild_files.
8478 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
8479 file names from buildobj.lst. Only attach docstrings from files
8480 that are in Vbuild_files.
8481 (syms_of_doc): Defvar Vbuild_files.
8482
8483 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
8484 and w32*.o.
8485 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
8486 (mostlyclean): Rm buildobj.lst
8487
8488 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
8489 is linked.
8490
8491 2004-11-09 Kim F. Storm <storm@cua.dk>
8492
8493 * fringe.c (update_window_fringes): Update fringe bitmaps if
8494 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
8495 also update previous row to get rid of misc. artifacts.
8496
8497 2004-11-08 Kim F. Storm <storm@cua.dk>
8498
8499 * xdisp.c (fast_find_position): Fix start pos if header line present.
8500 (note_mouse_highlight): Clear mouse face if we move out of text area.
8501
8502 2004-11-08 Eli Zaretskii <eliz@gnu.org>
8503
8504 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
8505 Don't include <sys/time.h> explicitly.
8506 Include <stdio.h> unconditionally, not just on MacOS.
8507
8508 2004-11-08 Kenichi Handa <handa@m17n.org>
8509
8510 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
8511 don't pay attention to '\' before '*'.
8512 (fontset_pattern_regexp): Change the meaning of the second arg.
8513 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
8514 (check_fontset_name): Try NAME as literal at first, and if it
8515 failes, try NAME as pattern.
8516
8517 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8518
8519 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
8520
8521 2004-11-07 Andreas Schwab <schwab@suse.de>
8522
8523 * lisp.h (Fmsdos_downcase_filename): Declare.
8524 * dired.c (Fmsdos_downcase_filename): Don't declare here.
8525 * fileio.c: Likewise.
8526
8527 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8528
8529 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
8530 comparisons with integers instead of Lisp_Object address.
8531 (Fmsdos_set_keyboard): Declare argument allkeys.
8532
8533 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
8534
8535 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
8536 int/Lisp_Object mixup.
8537
8538 * fileio.c: Ditto.
8539
8540 2004-11-06 Steven Tamm <steventamm@mac.com>
8541
8542 * editfns.c: Need to include sys/time.h before resource.h on darwin.
8543
8544 2004-11-06 Richard M. Stallman <rms@gnu.org>
8545
8546 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
8547
8548 * xfaces.c (merge_named_face): GCPRO the face_name in the
8549 named_merge_point struct that we make.
8550 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
8551
8552 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
8553 before deciding whether to inactivate mark.
8554
8555 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
8556
8557 * config.in: Regenerate (add HAVE_GETRUSAGE).
8558 * editfns.c (Fget_internal_run_time): New function.
8559 (syms_of_data): Defsubr it.
8560 * fns.c (sxhash): As far as possible, merge calculation of
8561 hash code for symbols and strings.
8562
8563 2004-11-06 Eli Zaretskii <eliz@gnu.org>
8564
8565 * frame.c (syms_of_frame): Fix the example in the doc string.
8566
8567 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8568
8569 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
8570
8571 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
8572 (create_and_show_dialog): Revert change from 2004-10-31.
8573
8574 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
8575
8576 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
8577
8578 2004-11-05 Kim F. Storm <storm@cua.dk>
8579
8580 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
8581
8582 * fileio.c (Ffile_modes): Doc fix.
8583 (auto_save_1): Check for Ffile_modes nil value.
8584
8585 2004-11-05 Kim F. Storm <storm@cua.dk>
8586
8587 * xselect.c (struct selection_event_queue, selection_queue)
8588 (x_queue_selection_requests, x_queue_event)
8589 (x_start_queuing_selection_requests)
8590 (x_stop_queuing_selection_requests): Add new queue for selection
8591 input events to replace previous XEvent queue in xterm.c.
8592 (queue_selection_requests_unwind): Adapt to new queue.
8593 (x_reply_selection_request): Adapt to new queue.
8594 Unexpect wait_object in case of x errors (memory leak).
8595 (x_handle_selection_request, x_handle_selection_clear): Make static.
8596 (x_handle_selection_event): New function. May queue selection events.
8597 (wait_for_property_change_unwind): Use save_value instead of cons.
8598 Clear property_change_reply_object.
8599 (wait_for_property_change): Abort if already waiting.
8600 Use save_value instead of cons for unwind data.
8601 (x_handle_property_notify): Skip events already arrived, but don't
8602 free them, as "arrived" field is checked by wait_for_property_change,
8603 and it will be freed by unwind or explicit unexpect_property_change.
8604 (x_get_foreign_selection): Add to new queue.
8605 (receive_incremental_selection): Don't unexpect wait_object when done
8606 as it has already been freed by previous wait_for_property_change.
8607
8608 * xterm.h (x_start_queuing_selection_requests)
8609 (x_stop_queuing_selection_requests, x_handle_selection_request)
8610 (x_handle_selection_clear): Remove prototypes.
8611 (x_handle_selection_event): Add prototype.
8612
8613 * xterm.c (handle_one_xevent): Don't queue X selection events
8614 here, it may be too late if we start queuing after we have already
8615 stored some selection events into the kbd buffer.
8616 (struct selection_event_queue, queue, x_queue_selection_requests)
8617 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
8618 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
8619 (x_catch_errors_unwind): Block input around final XSync.
8620
8621 * keyboard.h (kbd_buffer_unget_event): Add prototype.
8622
8623 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
8624 (kbd_buffer_unget_event): New function.
8625 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
8626 and use x_handle_selection_event.
8627 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
8628
8629 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8630
8631 * xselect.c (TRACE3): New debug macro.
8632 (x_reply_selection_request): Use it.
8633 (receive_incremental_selection): In call to TRACE0, the name of
8634 a symbol is in xname.
8635
8636 2004-11-05 Kim F. Storm <storm@cua.dk>
8637
8638 * fontset.c (fontset_pattern_regexp): Use unsigned char.
8639
8640 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8641
8642 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
8643
8644 * gtkutil.h (use_old_gtk_file_dialog): Declare.
8645
8646 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
8647 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
8648 * xfns.c (syms_of_xfns): ... to here.
8649
8650 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
8651 it doesn't start with /.
8652
8653 2004-11-04 Kenichi Handa <handa@m17n.org>
8654
8655 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
8656 treat it as a literal character.
8657
8658 2004-11-03 Kim F. Storm <storm@cua.dk>
8659
8660 * .gdbinit (ppt): New function.
8661
8662 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8663
8664 * xterm.c (x_window_to_scroll_bar): Only call
8665 xg_get_scroll_id_for_window if toolkit scroll bars are used.
8666
8667 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
8668 of save.
8669
8670 2004-11-02 Andreas Schwab <schwab@suse.de>
8671
8672 * window.c (Fscroll_right): Fix last change.
8673
8674 2004-11-02 Kim F. Storm <storm@cua.dk>
8675
8676 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
8677
8678 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8679
8680 * callproc.c (Fcall_process): Block input around vfork.
8681
8682 2004-11-02 Kim F. Storm <storm@cua.dk>
8683
8684 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
8685 (syms_of_eval): Defsubr it.
8686
8687 2004-11-02 Richard M. Stallman <rms@gnu.org>
8688
8689 * insdel.c (replace_range_2): New function.
8690
8691 * casefiddle.c (casify_region): Handle changes in byte-length
8692 using replace_range_2.
8693
8694 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
8695
8696 * xdisp.c (back_to_previous_visible_line_start):
8697 Subtract 1 from pos when checking previous newline for invisibility.
8698
8699 * window.c (window_scroll_pixel_based): Update preserve_y
8700 for header line if any.
8701 (Fscroll_left, Fscroll_right): Don't call interactive_p;
8702 use a new second argument instead.
8703
8704 * eval.c (Fcall_interactive_p): New function.
8705 (interactive_p): Don't test INTERACTIVE here.
8706 (Finteractive_p): Doc fix.
8707
8708 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
8709
8710 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
8711
8712 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
8713 comparing font names.
8714
8715 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8716
8717 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
8718 Fx_file_dialog if only directories should be read.
8719
8720 * lisp.h: Fx_file_dialog takes 5 parameters.
8721
8722 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
8723 Add parameter only_dir_p.
8724 In Motif version, don't put DEFAULT_FILENAME in filter part of the
8725 dialog, just text field part. Do not add DEFAULT_FILENAME
8726 to list of files if it isn't there.
8727 In GTK version, pass only_dir_p parameter to xg_get_file_name.
8728
8729 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
8730 Check only_dir_p instead of comparing prompt to "Dired". When using
8731 a save dialog, add option kNavDontConfirmReplacement, change title
8732 to "Enter name", change text for save button to "Ok".
8733
8734 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
8735 Check only_dir_p instead of comparing prompt to "Dired".
8736
8737 * gtkutil.c (xg_get_file_with_chooser)
8738 (xg_get_file_with_selection): New functions, only defined ifdef
8739 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
8740 respectively.
8741 (xg_get_file_name): Add parameter only_dir_p.
8742 Call xg_get_file_with_chooser or xg_get_file_with_selection
8743 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
8744 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
8745
8746 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
8747
8748 * config.in: Rebuild (added HAVE_GTK_FILE_*).
8749
8750 2004-11-01 Kim F. Storm <storm@cua.dk>
8751
8752 * process.c (connect_wait_mask, num_pending_connects):
8753 Only declare and use them if NON_BLOCKING_CONNECT is defined.
8754 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
8755 (IF_NON_BLOCKING_CONNECT): New helper macro.
8756 (wait_reading_process_output): Only declare and use local vars
8757 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
8758
8759 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
8760
8761 * w32term.c (x_scroll_run): Delete region objects after use.
8762
8763 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8764
8765 * xmenu.c: Add prototypes for forward function declarations.
8766 (popup_get_selection): Remove parameter do_timers, remove call to
8767 timer_check.
8768 (create_and_show_popup_menu, create_and_show_dialog):
8769 Remove parameter do_timers from call to popup_get_selection.
8770
8771 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
8772 tool_bar_items and assign the result to f->tool_bar_items if
8773 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
8774 tool_bar_items to assignment of result.
8775
8776 * atimer.c (alarm_signal_handler): Do not call set_alarm if
8777 pending_atmers is non-zero.
8778
8779 2004-10-31 Kim F. Storm <storm@cua.dk>
8780
8781 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
8782
8783 2004-10-28 Will <will@glozer.net>
8784
8785 * macterm.c: Allow user to assign key modifiers to the Mac Option
8786 key via a 'mac-option-modifier' variable.
8787
8788 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8789
8790 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
8791 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
8792 (x_handle_selection_request, x_handle_selection_clear)
8793 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
8794
8795 2004-10-28 Richard M. Stallman <rms@gnu.org>
8796
8797 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
8798
8799 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
8800
8801 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
8802
8803 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
8804 comment-starter over a 1-char one.
8805
8806 2004-10-27 Richard M. Stallman <rms@gnu.org>
8807
8808 * xdisp.c (get_next_display_element): In mode lines,
8809 treat newline and tab like other control characters.
8810
8811 * editfns.c (Fmessage): Doc fix.
8812
8813 * indent.c (vmotion): When moving up, check the newline before.
8814 Make prevline an int, not a Lisp_Object.
8815
8816 2004-10-27 Kim F. Storm <storm@cua.dk>
8817
8818 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
8819 Only allocate info and discarded tables once.
8820
8821 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
8822 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
8823 (SAFE_FREE): Test it to determine if we need to unwind to free.
8824 Remove size arg. All users changed.
8825 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
8826
8827 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8828
8829 * gtkutil.c: Put empty line between comment and function body.
8830 (xg_destroy_widgets): Rename from remove_from_container.
8831 Just destroy all widgets in list. Argument wcont removed.
8832 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
8833 instead of remove_from_container.
8834 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
8835 (free_frame_tool_bar): Add comment.
8836
8837 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
8838 is not NULL before strcmp.
8839
8840 2004-10-26 Kim F. Storm <storm@cua.dk>
8841
8842 * callint.c (Fcall_interactively): Add 'U' code to get the
8843 up-event discarded by a previous 'k' or 'K' argument.
8844
8845 2004-10-26 David Kastrup <dak@gnu.org>
8846
8847 * buffer.c (syms_of_buffer): Fix a few typos.
8848
8849 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8850
8851 * xsmfns.c: Put empty line between comment and function body.
8852 Use two spaces before comment end.
8853
8854 2004-10-25 Kenichi Handa <handa@m17n.org>
8855
8856 * fontset.c (fontset_pattern_regexp): Optimize for the case that
8857 PATTERN is full XLFD.
8858
8859 2004-10-24 Kenichi Handa <handa@m17n.org>
8860
8861 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
8862
8863 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
8864 (regex_compile): Return REG_ERANGEX if appropriate.
8865
8866 2004-10-22 Kenichi Handa <handa@m17n.org>
8867
8868 * editfns.c (Ftranslate_region_internal): New function.
8869 (syms_of_editfns): Defsubr it.
8870
8871 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8872
8873 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
8874
8875 2004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
8876
8877 * xterm.h (x_output): New member `xic_base_fontname'.
8878 (FRAME_XIC_BASE_FONTNAME): New macro.
8879 (xic_free_xfontset): Declare.
8880
8881 * xfns.c (xic_create_xfontset): Share fontsets between frames
8882 based on base_fontname.
8883 (xic_free_xfontset): New function.
8884 (free_frame_xic): Use it.
8885 (xic_set_xfontset): Ditto.
8886
8887 * xterm.c (xim_destroy_callback): Ditto.
8888
8889
8890 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
8891
8892 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
8893
8894 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8895
8896 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
8897 XSync.
8898
8899 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
8900 New variables and constant.
8901 (main): Calculate heap_bss_diff. If we are dumping and the
8902 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
8903 and exec ourself again.
8904 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
8905 print a warning.
8906
8907 * lastfile.c: Make my_endbss and my_endbss_static available on all
8908 platforms.
8909
8910 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
8911 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
8912
8913 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
8914
8915 * data.c (Flocal_variable_if_set_p): Doc fix.
8916
8917 2004-10-19 Jason Rumney <jasonr@gnu.org>
8918
8919 * w32.c (init_environment): Set emacs_dir correctly when running
8920 emacs from the build directory.
8921
8922 2004-10-19 Richard M. Stallman <rms@gnu.org>
8923
8924 * editfns.c (Fdelete_and_extract_region):
8925 If region is empty, return null string.
8926
8927 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8928
8929 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
8930 and canon_width.
8931 (xg_frame_cleared): Remove.
8932
8933 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
8934 (xg_find_top_left_in_fixed): Remove.
8935 (xg_create_scroll_bar): Put an event box widget between
8936 the scroll bar widget and the edit widget.
8937 (xg_show_scroll_bar): Show the parent widget (the event box).
8938 (xg_remove_scroll_bar): Destroy parent (the event box) also.
8939 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
8940 Move the parent (the event box) widget inside the fixed widget.
8941 Move window clear to xterm.c.
8942
8943 * gtkutil.h (xg_frame_cleared): Remove.
8944
8945 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
8946 (x_scroll_bar_create, XTset_vertical_scroll_bar):
8947 Remove arguments left and width to xg_update_scrollbar_pos.
8948 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
8949
8950 2004-10-19 Kenichi Handa <handa@m17n.org>
8951
8952 * xdisp.c (display_mode_element): Fix display of wide chars.
8953
8954 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8955
8956 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
8957 gdk_window_clear and move gdk_window_process_all_updates after
8958 clear so events are sent to the X server in correct order.
8959
8960 2004-10-18 Kenichi Handa <handa@m17n.org>
8961
8962 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
8963 comparing font names.
8964 (fs_query_fontset): Use fast_string_match for comparing fontset names.
8965 (list_fontsets): Likewise.
8966
8967 * search.c (fast_string_match_ignore_case): New function.
8968
8969 * lisp.h (fast_string_match_ignore_case): Extern it.
8970
8971 2004-10-17 Kim F. Storm <storm@cua.dk>
8972
8973 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
8974 than bitmap if there is not left fringe.
8975 (get_overlay_arrow_glyph_row): Also used on windows system.
8976 (display_line): Display overlay string if no left fringe.
8977
8978 2004-10-16 Jason Rumney <jasonr@gnu.org>
8979
8980 * w32fns.c (w32_font_match): Encode font name being matched.
8981
8982 2004-10-16 Richard M. Stallman <rms@gnu.org>
8983
8984 * window.c (Fspecial_display_p): Doc fix.
8985
8986 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
8987
8988 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
8989 Don't ignore menus, because where-is-internal already does it for us.
8990
8991 2004-10-15 Kim F. Storm <storm@cua.dk>
8992
8993 * xdisp.c (redisplay_window): Only update fringes and vertical
8994 border on window frames.
8995
8996 2004-10-14 Andreas Schwab <schwab@suse.de>
8997
8998 * m/ia64.h (DATA_SEG_BITS): Don't define.
8999
9000 2004-10-14 Kim F. Storm <storm@cua.dk>
9001
9002 * xterm.h: Include Xutil.h after keysym.h to work around bug
9003 in some X versions.
9004
9005 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
9006
9007 * fns.c (map_char_table): Add missing gcpros.
9008
9009 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
9010
9011 * keymap.c (get_keymap): An autoload form is not a keymap.
9012
9013 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
9014
9015 2004-10-13 Kim F. Storm <storm@cua.dk>
9016
9017 * callproc.c (Fcall_process): Simplify handling of display arg.
9018 Resume `display_on_the_fly' once a coding system is determined.
9019
9020 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
9021
9022 2004-10-12 Kim F. Storm <storm@cua.dk>
9023
9024 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
9025 caller, such as call-process, is not going to poll for input.
9026 (calc_line_height_property): Handle case where it->object is nil.
9027
9028 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
9029
9030 2004-10-12 Kenichi Handa <handa@m17n.org>
9031
9032 * xdisp.c (get_next_display_element):
9033 If unibyte_display_via_language_environment is zero, display 8-bit
9034 chars in octal in unibyte buffer.
9035
9036 2004-10-12 Kim F. Storm <storm@cua.dk>
9037
9038 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
9039 are no ordinary bindings.
9040
9041 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9042
9043 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
9044
9045 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9046
9047 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
9048 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
9049 (make_mac_frame): Add BLOCK_INPUT around the making of a
9050 terminal frame.
9051 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
9052 * macgui.h (mktime): Use emacs_mktime.
9053 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
9054 Make a cancel file-open dialog be like C-g.
9055 * mac.c (mktime): Use emacs_mktime.
9056 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
9057 (Fmac_paste_function): Add better error handling for carbon cut/paste.
9058
9059 2004-10-10 Kim F. Storm <storm@cua.dk>
9060
9061 * keyboard.c (timer_resume_idle): New function to resume idle
9062 timer without resetting timers on the idle list.
9063 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9064 (timer_start_idle, timer_stop_idle): Declare static.
9065 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
9066
9067 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
9068
9069 2004-10-08 Steven Tamm <steventamm@mac.com>
9070
9071 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
9072 * macterm.c (mac_check_for_quit_char): Remove warning for using
9073 NULL where 0 should be used.
9074 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
9075 objc/malloc.h
9076 * mac.c: Include time.h for Tiger compatibility.
9077
9078 2004-10-07 Kim F. Storm <storm@cua.dk>
9079
9080 * xdisp.c (redisplay_window): Fix flicker on vertical line between
9081 windows. Update vertical line after drawing window fringes, but
9082 only if actually drawing any bitmaps--or there is no fringe.
9083
9084 * xterm.c (x_update_window_end): Likewise.
9085 * macterm.c (x_update_window_end): Likewise.
9086 * w32term.c (x_update_window_end): Likewise.
9087
9088 * fringe.c (draw_window_fringes): Return value now indicates if
9089 any fringe bitmaps were redrawn (or there are no fringes).
9090
9091 * dispextern.h (draw_window_fringes): Update prototype.
9092
9093 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9094
9095 * macfns.c (mac_get_window_bounds): Add extern.
9096 (x_real_positions): Use mac_get_window_bounds.
9097
9098 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
9099 xmenu.c (YAILOM).
9100
9101 * macterm.c [!MAC_OSX]: Include Windows.h.
9102 (front_emacs_window): Rename from mac_front_window. All uses
9103 changed. Return the frontmost non-tooltip emacs window.
9104 (mac_get_window_bounds): New function.
9105 (x_calc_absolute_position): Use the difference of width and height
9106 between the inner and outer window.
9107 (x_set_offset): Specify window position by the coordinae of the
9108 outer window. Adjust the position if the title bar is completely
9109 outside the screen.
9110 (app_is_suspended, app_sleep_time): Remove unused variables.
9111 (do_app_resume, do_app_suspend): Remove their contents because
9112 window-activate/deactivate events will do the job.
9113 (do_zoom_window): Remove unused variables. Make compliant to the
9114 standard way of zooming. Set f->left_pos and f->top_pos.
9115 (XTread_socket): Don't use argument `expected'. Don't use
9116 FrontWindow to determine the clicked window. Exclude unprocessed
9117 mouseUp cases in the early stage. Add parentheses to fix operator
9118 precedence.
9119 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
9120
9121 2004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
9122
9123 * config.in: Regenerate.
9124
9125 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
9126 HAVE_EXECSHIELD.
9127
9128 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9129
9130 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
9131 a row if Alt or Meta has been found for that row. Also stop scanning
9132 for Keysyms for that row.
9133
9134 2004-10-04 Kim F. Storm <storm@cua.dk>
9135
9136 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
9137 to list. Include overlay arrow bitmap in return value.
9138
9139 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
9140 bars with fractional column width. If scroll bar separates two
9141 windows, move it towards the window it belongs to. Only update
9142 the padding area below the scroll bar widget when necessary,
9143 i.e. when scroll bar widget is created, moved, or resized.
9144
9145 * xdisp.c (define_frame_cursor1): Do not change frame cursor
9146 while tracking/dragging mouse.
9147 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
9148
9149 * window.c (coordinates_in_window): Relax check for cursor
9150 on vertial border between mode lines.
9151 (Fset_window_fringes): Do not allow negative widths.
9152 (Fset_window_scroll_bars): Likewise.
9153
9154 * .gdbinit (pp): Shorthand for p ARG + pr.
9155 (ff): New command: flush frame updates (X only).
9156
9157 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
9158
9159 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
9160
9161 2004-09-30 Kenichi Handa <handa@m17n.org>
9162
9163 * process.c (send_process): Free composition data.
9164
9165 * fileio.c (Finsert_file_contents): Free composition data.
9166
9167 * coding.c (code_convert_region): Don't skip ASCIIs if there are
9168 compositions to encode.
9169 (encode_coding_string): Likewise. Free composition data.
9170
9171 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
9172
9173 * coding.c (code_convert_region): Free composition data.
9174
9175 2004-09-29 Kim F. Storm <storm@cua.dk>
9176
9177 * fringe.c: Remove limit on number of bitmaps.
9178 (fringe_bitmaps, fringe_faces): Change to pointers.
9179 (max_fringe_bitmaps): New var.
9180 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
9181 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
9182
9183 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
9184 (struct glyph_row): Reorder fringe_bitmap related fields.
9185 (struct it): Likewise.
9186
9187 * w32term.c (fringe_bmp): Change to pointer.
9188 (max_fringe_bmp): New var.
9189 (w32_define_fringe_bitmap): Expand fringe_bmp.
9190 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
9191 (w32_destroy_fringe_bitmap): Likewise.
9192
9193 2004-09-29 Kim F. Storm <storm@cua.dk>
9194
9195 * fringe.c: Simplify last change.
9196 (lookup_fringe_bitmap): New function.
9197 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
9198 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
9199 Keep standard bitmaps in Vfringe_bitmaps.
9200 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
9201 (Fset_fringe_bitmap_face): Likewise.
9202
9203 * dispextern.h (lookup_fringe_bitmap): Add prototype.
9204 (valid_fringe_bitmap_p): Remove prototype.
9205
9206 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
9207
9208 2004-09-29 Kim F. Storm <storm@cua.dk>
9209
9210 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
9211 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
9212
9213 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
9214
9215 * fringe.c (Vfringe_bitmaps): New variable.
9216 (syms_of_fringe): DEFVAR_LISP it.
9217 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
9218 Change arg to Lisp_Object and fail if not an integer.
9219 (get_fringe_bitmap_name, resolve_fringe_bitmap)
9220 (destroy_fringe_bitmap): New functions.
9221 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
9222 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
9223 clear its fringe property.
9224 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
9225 Fdestroy_fringe_bitmap.
9226 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
9227 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
9228 and set fringe property. Signal error if no free slots.
9229 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
9230 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
9231
9232 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
9233 symbols with a fringe property.
9234
9235 2004-09-27 Kim F. Storm <storm@cua.dk>
9236
9237 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
9238 Doc fix. Format may now be a symbol or alist, not a cons.
9239
9240 * fringe.c (update_window_fringes): Handle new formats of
9241 indicate-buffer-boundaries (symbol or alist). No longer
9242 allow a simple cons.
9243 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
9244
9245 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9246
9247 * config.in: Rebuild.
9248
9249 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9250
9251 * config.in: Rebuild.
9252
9253 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
9254
9255 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
9256
9257 * xterm.c (x_term_init): Work around a bug in some X servers.
9258
9259 2004-09-18 Richard M. Stallman <rms@gnu.org>
9260
9261 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
9262
9263 * xdisp.c (try_window_reusing_current_matrix):
9264 Handle the case where we reach the old displayed text,
9265 out of sync with the old line boundary.
9266
9267 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
9268
9269 * fileio.c (Finsert_file_contents): Fix case of replacement in a
9270 narrowed buffer.
9271
9272 2004-09-14 Kim F. Storm <storm@cua.dk>
9273
9274 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
9275
9276 * xfaces.c (Qface_no_inherit): New var.
9277 (syms_of_xfaces): Intern and staticpro it.
9278 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
9279 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
9280 Don't increment face_change_count when face has non-nil
9281 face-no-inherit property.
9282
9283 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
9284
9285 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
9286 (Fbyte_code): Remove dead code after `wrong_type_argument'.
9287
9288 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9289 before doing the mark_stack_check_gcpros since they're not on the stack.
9290
9291 2004-09-12 Kim F. Storm <storm@cua.dk>
9292
9293 * editfns.c (Fformat): Handle format strings with multiple text
9294 properties. Reverse text property list from the format string,
9295 so the positions are in increasing order.
9296
9297 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9298
9299 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
9300 x_uncatch_errors so that possible protocol errors are delivered.
9301
9302 2004-09-10 Eli Zaretskii <eliz@gnu.org>
9303
9304 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
9305 blockinput.h.
9306 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
9307 charset.h, and coding.h
9308 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
9309 (term.o): Depend on window.h and keymap.h.
9310 (abbrev.o): Depend on syntax.h.
9311 (callint.o): Depend on keymap.h.
9312 (casefiddle.o): Depend on charset.h and keymap.h.
9313 (category.o): Depend on keymap.h.
9314 (coding.o): Depend on dispextern.h.
9315 (cmds.o): Depend on keyboard.h and keymap.h.
9316 (dispnew.o): Depend on indent.h and intervals.h.
9317 (doc.o): Depend on keymap.h.
9318 (editfns.o): Depend on frame.h.
9319 (emacs.o): Depend on dispextern.h.
9320 (fileio.o): Don't depend on ccl.h.
9321 (filelock.o): Depend on charset.h and coding.h.
9322 (frame.o): Depend on w32term.h and macterm.h.
9323 (insdel.o): Depend on region-cache.h.
9324 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
9325 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
9326 (search.o): Depend on $(INTERVALS_SRC).
9327 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
9328 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
9329 xterm.h, w32term.h, and macterm.h.
9330 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
9331 w32term.h, and macterm.h.
9332 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
9333 region-cache.h, xterm.h, w32term.h, and macterm.h.
9334 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
9335 (data.o): Depend on frame.h.
9336 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
9337 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
9338 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
9339 (intervals.o): Depend on keymap.h.
9340
9341 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
9342 Add debugging print-out to termscript.
9343
9344 2004-09-09 Richard M. Stallman <rms@gnu.org>
9345
9346 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
9347
9348 2004-09-08 Richard M. Stallman <rms@gnu.org>
9349
9350 * window.c (Fset_window_buffer): Doc fix.
9351
9352 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
9353
9354 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
9355
9356 * minibuf.c (history_delete_duplicates): New variable.
9357 (read_minibuf): Use it.
9358 (syms_of_minibuf): Create the corresponding lisp variable.
9359
9360 2004-09-08 Kim F. Storm <storm@cua.dk>
9361
9362 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
9363 overlay just before point.
9364
9365 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
9366
9367 * buffer.h (struct buffer): Add auto_save_file_format field.
9368 * buffer.c (reset_buffer, init_buffer_once):
9369 Handle auto_save_file_format field.
9370 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
9371 `buffer-auto-save-file-format'.
9372 * fileio.c: Delete declaration for removed Vauto_save_file_format.
9373 (build_annotations): Adapt to replacement of
9374 `auto-save-file-format' with the new buffer-local variable
9375 `buffer-auto-save-file-format'.
9376 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
9377
9378 2004-09-07 Jason Rumney <jasonr@gnu.org>
9379
9380 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
9381
9382 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
9383 Handle Unicode menu titles.
9384
9385 2004-09-07 Kim F. Storm <storm@cua.dk>
9386
9387 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
9388 property from text property or overlay strings at point.
9389
9390 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9391
9392 * xmenu.c (update_submenu_strings): YAILOM.
9393 (set_frame_menubar): Make sure last_i is initialized.
9394
9395 2004-09-03 Jason Rumney <jasonr@gnu.org>
9396
9397 * w32menu.c (_widget_value): Add lname and lkey.
9398 (digest_single_submenu): Set lname and lkey in widget_value
9399 instead of name and key.
9400 (update_submenu_strings): New function.
9401 (set_frame_menubar): Remove call to inhibit_garbage_collection,
9402 call update_submenu_strings.
9403
9404 * w32menu.c (globals_of_w32menu): Check for Unicode API.
9405 (digest_single_submenu, w32_menu_show): Encode menu strings as
9406 UTF-8 if Unicode API is available.
9407 (utf8to16): New function.
9408 (add_menu_item): Use it when calling Unicode API.
9409
9410 2004-09-03 Kim F. Storm <storm@cua.dk>
9411
9412 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
9413 in overlay or text-property strings; set cursor on corresponding
9414 glyph rather than at end of the string.
9415
9416 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9417
9418 * macfns.c (x_real_positions): Save the current window port and
9419 set a new one before obtaining the global coordinate.
9420 Use FRAME_MAC_WINDOW.
9421 (x_set_name, x_set_title): Encode title to UTF8.
9422 Use SetWindowTitleWithCFString.
9423 (Fx_server_version): Get correct OS version.
9424
9425 * macmenu.c (add_menu_item): Remove unused variable `i'.
9426 Don't let separator items destroy refence constants of other menu items.
9427
9428 * macterm.c (x_update_end): Move SetPortWindowPort to inside
9429 BLOCK_INPUT.
9430 (x_set_offset): Use FRAME_MAC_WINDOW.
9431
9432 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
9433 nontext_cursor if it is on a scroll bar.
9434
9435 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
9436 Carbon support.
9437 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
9438 Use LIBS_CARBON.
9439
9440 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9441
9442 * xfns.c (x_set_name_internal): New function. Check if we shall call
9443 xfree before ENCODE_UTF_8.
9444 (x_set_name, x_set_title): Call x_set_name_internal.
9445
9446 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
9447
9448 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
9449 reload it.
9450
9451 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9452
9453 * macmenu.c (_widget_value): Add lname and lkey.
9454 (single_submenu): Set lname and lkey in widget_value
9455 instead of name and key.
9456 (update_submenu_strings): New function.
9457 (set_frame_menubar): Remove call to inhibit_garbage_collection,
9458 call update_submenu_strings.
9459
9460 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
9461 instead of name and key.
9462 (update_submenu_strings): New function.
9463 (set_frame_menubar): Remove call to inhibit_garbage_collection,
9464 call update_submenu_strings.
9465
9466 * gtkutil.h (_widget_value): Added lname and lkey.
9467
9468 2004-08-30 Steven Tamm <steventamm@mac.com>
9469
9470 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
9471 by using different names for inner loop variables.
9472
9473 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9474
9475 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
9476 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
9477
9478 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
9479 tool bar items is 0.
9480
9481 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9482
9483 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
9484 strings in menu items.
9485 (single_submenu): Use ENCODE_MENU_STRING
9486 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
9487 button release isn't passed to event loop
9488 (add_menu_item): Use SetMenuItemWithCFString
9489
9490 2004-08-26 Steven Tamm <steventamm@mac.com>
9491
9492 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
9493 tool-bar/menu click.
9494 * macfns.c (Fx_file_dialog): Implement using NavServices.
9495
9496 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9497
9498 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
9499
9500 * xfns.c (x_window_to_frame, x_any_window_to_frame)
9501 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
9502 (x_top_window_to_frame): Return 0 if wdesc is None.
9503
9504 2004-08-22 Richard M. Stallman <rms@gnu.org>
9505
9506 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
9507 HAVE_TERMIOS]: If there's no char for this signal, drop through
9508 and use system calls.
9509
9510 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
9511
9512 2004-08-20 Kim F. Storm <storm@cua.dk>
9513
9514 * process.c (wait_reading_process_output): Rename from
9515 wait_reading_process_input. All uses changed.
9516 (wait_reading_process_output_1): Rename from
9517 wait_reading_process_input_1. All uses changed.
9518
9519 * dispnew.c (Fsleep_for): Remove obsolete code.
9520
9521 2004-08-20 Kenichi Handa <handa@m17n.org>
9522
9523 * syntax.c (skip_chars): Fix for unibyte case.
9524
9525 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
9526
9527 * syntax.c (char_quoted): Mixup byte/char pos.
9528 (back_comment): Fixup globals in all cases.
9529
9530 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9531
9532 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
9533 passing it to gtk_window_set_title.
9534
9535 2004-08-19 Kim F. Storm <storm@cua.dk>
9536
9537 * process.c (wait_reading_process_input): Clean up.
9538 Add wait_for_cell, wait_proc, and just_wait_proc args
9539 to avoid overloading `read_kbd' and `do_display' args.
9540 Change read_kbd arg to int. All callers changed.
9541
9542 * process.c (process_send_signal): Use CDISABLE.
9543
9544 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
9545
9546 2004-08-18 Kim F. Storm <storm@cua.dk>
9547
9548 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
9549 forward to wait_reading_process_input via DO_DISPLAY arg.
9550 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
9551 object, only process output from that process; also inhibit
9552 running timers if DO_DISPLAY==-2.
9553
9554 2004-08-17 Kim F. Storm <storm@cua.dk>
9555
9556 * process.c (process_send_signal): Fix last change--use
9557 _POSIX_VDISABLE instead of CVDISABLE when available.
9558
9559 2004-08-16 Richard M. Stallman <rms@gnu.org>
9560
9561 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
9562 Set VQUIT and VINTR chars to the standard ones if they are unset.
9563 [AIX]: Don't do that here. And don't force VINTR to standard
9564 when SIGNALS_VIA_CHARACTERS.
9565
9566 * process.c (process_send_signal)
9567 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
9568 Do nothing if the character is CVDISABLE.
9569
9570 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
9571
9572 * intervals.c (move_if_not_intangible):
9573 Force POSITION to be between BEGV and ZV.
9574
9575 2004-08-14 John Paul Wallington <jpw@gnu.org>
9576
9577 * buffer.c (Frestore_buffer_modified_p): Doc fix.
9578
9579 * fileio.c (Fread_file_name): Doc fix.
9580
9581 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
9582
9583 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
9584
9585 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
9586
9587 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
9588
9589 * keyboard.c: Declare Qdisabled_command_function instead of
9590 Qdisabled_command_hook.
9591 (Fcommand_execute): Use Qdisabled_command_function instead of
9592 Qdisabled_command_hook.
9593 (syms_of_keyboard): Ditto.
9594
9595 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
9596
9597 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
9598 (syms_of_keymap) <key-translation-map>: Doc fixes.
9599
9600 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
9601
9602 * window.c (window_list_1): YAILOM.
9603
9604 * fileio.c (make_temp_name): Handle multibyte prefixes.
9605
9606 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
9607
9608 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
9609 Doc fix.
9610
9611 2004-08-03 Kenichi Handa <handa@m17n.org>
9612
9613 * coding.c (decode_coding_string): Adjust coding->consumed, and
9614 etc. with shrinked_bytes.
9615
9616 2004-08-03 Kim F. Storm <storm@cua.dk>
9617
9618 * indent.c (compute_motion): Fix check for full width window
9619 in non-window case. Do not count left truncation glyph on
9620 window systems.
9621
9622 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
9623
9624 * data.c (Finteractive_form): Doc fix.
9625
9626 2004-08-02 Kim F. Storm <storm@cua.dk>
9627
9628 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
9629 properly accounting for continuation glyph on non-window systems.
9630 (Fcompute_motion): Use actual window width if WIDTH is nil, and
9631 actual window width/height if TOPOS is nil, properly accounting for
9632 continuation glyphs on non-window systems, and optional header lines.
9633 (vmotion): Let compute_motion calculate actual window width.
9634
9635 * window.c (window_scroll_line_based): Let compute_motion
9636 calculate actual window width.
9637
9638 2004-08-02 Kim F. Storm <storm@cua.dk>
9639
9640 * process.c (read_process_output): Use whole read buffer.
9641 Don't trigger adaptive read buffering on errors.
9642
9643 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
9644
9645 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
9646
9647 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
9648
9649 * callint.c (Fcall_interactively): Doc fix.
9650
9651 2004-07-30 Richard M. Stallman <rms@gnu.org>
9652
9653 * abbrev.c (Fexpand_abbrev): Undo previous change.
9654
9655 2004-07-30 Kim F. Storm <storm@cua.dk>
9656
9657 * editfns.c (Fformat): Allocate extra (dummy) element in info.
9658
9659 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
9660
9661 * eval.c (Fdefvar, Fdefconst): Doc fixes.
9662
9663 2004-07-27 Kim F. Storm <storm@cua.dk>
9664
9665 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
9666 we have ensured that the glyph fits on the current line (or returned
9667 MOVE_LINE_CONTINUED otherwise).
9668
9669 2004-07-26 Kim F. Storm <storm@cua.dk>
9670
9671 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
9672 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
9673 if target position is at end of display line but char is not a newline.
9674
9675 2004-07-25 Richard M. Stallman <rms@gnu.org>
9676
9677 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
9678 instead of ON_VERTICAL_BORDER, when on scroll bar.
9679 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
9680
9681 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
9682
9683 * window.c (Fcoordinates_in_window_p):
9684 Take account of FRAME_INTERNAL_BORDER_WIDTH.
9685
9686 * alloc.c (check_cons_list): New function (contents commented out).
9687
9688 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
9689
9690 * xfaces.c (Fcolor_supported_p): Doc fix.
9691
9692 * frame.c (Fselect_frame, Fset_frame_selected_window)
9693 (Fframe_visible_p, Fraise_frame): Doc fixes.
9694
9695 2004-07-24 Richard M. Stallman <rms@gnu.org>
9696
9697 * keyboard.h (not_single_kboard_state): Declare.
9698
9699 * fileio.c (Fwrite_region): Doc fix.
9700
9701 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
9702
9703 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
9704 only when a real abbrev is present.
9705
9706 * xfns.c (x_icon_verify): New function.
9707 (Fx_create_frame): Use it.
9708
9709 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
9710
9711 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
9712
9713 2004-07-21 Kim F. Storm <storm@cua.dk>
9714
9715 * window.h (struct glyph_matrix): New members nrows_scale_factor
9716 and ncols_scale_factor.
9717
9718 * window.c (make_window): Initialize nrows_scale_factor and
9719 ncols_scale_factor members.
9720
9721 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
9722 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
9723 (required_matrix_height): Apply nrows_scale_factor.
9724 (required_matrix_width): Apply ncols_scale_factor.
9725
9726 * xdisp.c (display_line): Increment nrows_scale_factor and set
9727 fonts_changed_p if past last allocated row.
9728 (append_glyph, append_composite_glyph, produce_image_glyph)
9729 (append_stretch_glyph): Increment ncols_scale_factor and set
9730 fonts_changed_p if current area is full.
9731
9732 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9733
9734 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
9735
9736 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
9737
9738 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
9739 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
9740 (Fset_window_start, Fscroll_up, Fscroll_down)
9741 (Fother_window_for_scrolling, Fscroll_other_window)
9742 (Fsave_window_excursion, Fset_window_vscroll)
9743 (syms_of_window) <window-size-fixed>: Doc fixes.
9744
9745 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9746
9747 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
9748 ENCODE_SYSTEM for filenames.
9749
9750 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9751
9752 * mac.c (sys_select): Block input around call to
9753 ReceiveNextEvent to prevent breakage. Correctly handle
9754 blocking on event queue only by calling ReceiveNextEvent
9755 instead of select (since GUI events aren't on an fd).
9756 (sys_read): Remove function
9757 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
9758
9759 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9760
9761 * mac.c (sys_select): Redo sys_select to use alarm-based
9762 polling instead of 1 sec timeouts (like solaris).
9763
9764 * macterm.c (x_make_frame_visible): Comment in polling on
9765 frame creation.
9766
9767 * keyboard.c: Undef SIGIO on Carbon
9768
9769 * atimer.c (alarm_signal_handler): Call alarm handlers after
9770 scheduling.
9771
9772 * eval.c (Feval): Remove quit_char test
9773
9774 * process.c (wait_reading_process_input): Remove clearing
9775 stdin for select call on process input.
9776
9777 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
9778
9779 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
9780 capitalization error in docstring.
9781
9782 2004-07-17 Juanma Barranquero <lektu@terra.es>
9783
9784 * keyboard.c (not_single_kboard_state): Do nothing unless
9785 MULTI_KBOARD is defined.
9786
9787 2004-07-17 Richard M. Stallman <rms@gnu.org>
9788
9789 * window.c (coordinates_in_window): Inside the window but outside
9790 its box to the L or R, return ON_VERTICAL_BORDER.
9791 (window_list_1): Rotate the list to start with WINDOW.
9792
9793 * print.c (print_preprocess): Test for print_depth at limit
9794 before entering in being_printed.
9795
9796 * keyboard.c (not_single_kboard_state): New function.
9797 (stuff_buffered_input): Now no-op only if no SIGTSTP.
9798
9799 * frame.c (Fdelete_frame): If we're in single_bboard_state on
9800 this kboard, and we delete its last frame, go to any_kboard_state.
9801
9802 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
9803
9804 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9805
9806 * w32fns.c (Fx_file_dialog): Encode strings in system coding
9807 system before passing them to OS functions for display.
9808
9809 2004-07-15 David Kastrup <dak@gnu.org>
9810
9811 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
9812 Apparently fixes an abort condition.
9813
9814 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
9815
9816 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
9817 instead of a cons.
9818
9819 2004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
9820
9821 * keyboard.c (echo_dash): Do nothing if there already is a dash
9822 at the end of the echo string.
9823
9824 2004-07-12 Kim F. Storm <storm@cua.dk>
9825
9826 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
9827 if GC_MARK_STACK.
9828
9829 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
9830
9831 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
9832
9833 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
9834 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
9835 (Freplace_buffer_in_windows, Fset_window_buffer)
9836 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
9837 (syms_of_window): Expand docstring of `display-buffer-function'.
9838
9839 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
9840
9841 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
9842 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
9843 that time values of the type (HIGH . LOW) are considered obsolete.
9844
9845 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
9846
9847 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
9848 docstring.
9849
9850 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
9851
9852 2004-07-06 John Paul Wallington <jpw@gnu.org>
9853
9854 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
9855
9856 * fns.c (Fclear_string): Signal an error if STRING is not a string.
9857
9858 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9859
9860 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
9861 instead of CGMainDisplayID (only in OSX 10.2 and later).
9862
9863 2004-07-04 John Paul Wallington <jpw@gnu.org>
9864
9865 * fileio.c (read_file_name_completion_ignore_case): New variable.
9866 (syms_of_fileio): Declare and initialise it.
9867 (Fread_file_name): Bind `completion-ignore-case' to respect it.
9868
9869 2004-07-03 Eli Zaretskii <eliz@gnu.org>
9870
9871 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
9872 for event.x and event.y.
9873
9874 2004-07-01 Kenichi Handa <handa@m17n.org>
9875
9876 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
9877 after getting a new string by pre-write-conversion.
9878
9879 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
9880
9881 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
9882 (x_calc_absolute_position): Remove unused var `child'.
9883
9884 * xfaces.c (x_supports_face_attributes_p)
9885 (Fdisplay_supports_face_attributes_p): YAILOM.
9886 (tty_supports_face_attributes_p): Remove unused var `i'.
9887
9888 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
9889 back_unibyte_ok.
9890
9891 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
9892
9893 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
9894
9895 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
9896
9897 2004-06-30 Andreas Schwab <schwab@suse.de>
9898
9899 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
9900 (Finit_image_library): Pass LIBRARIES through to
9901 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
9902 (lookup_image_type): Pass Qnil as second argument to
9903 Finit_image_library.
9904
9905 * lisp.h (Finit_image_library): Declare.
9906
9907 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9908
9909 * macterm.c (do_window_activate, do_window_deactivate): Remove.
9910 (XTread_socket): Send mouse button events to the toolbox
9911 dispatcher even when the mouse is grabbed. Don't process window
9912 activate events for non-Emacs windows. Replace function calls to
9913 do_window_activate and do_window_deactivate with their contents.
9914 Reset mouse grabbing status when a window is deactivated.
9915
9916 2004-06-29 Steven Tamm <steventamm@mac.com>
9917
9918 * macterm.c (mac_get_emulated_btn)
9919 (mac_event_to_emacs_modifiers): Fix emulated mouse button
9920 support to correctly mask out modifiers.
9921
9922 2004-06-29 David Kastrup <dak@gnu.org>
9923
9924 * search.c (Fset_match_data): Allow buffer before end of list
9925 which can happen if set-match-data is using a pre-consed list.
9926
9927 2004-06-28 Steven Tamm <steventamm@mac.com>
9928
9929 * macterm.c (XTread_socket): Correctly set the frame position
9930 after the window is moved.
9931
9932 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9933
9934 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
9935 gpix and gmask just before return to avoid memory leak.
9936 (xg_get_image_for_pixmap): Add workaround for monochrome displays
9937 so insensitive and activated icons look ok.
9938
9939 2004-06-27 Jason Rumney <jasonr@gnu.org>
9940
9941 * w32fns.c (file_dialog_callback): Disable edit control if set
9942 to directories only on CDN_INITDONE message.
9943 (Fx_file_dialog): Default to directories only when prompt starts
9944 with "Dired".
9945
9946 2004-06-25 Kim F. Storm <storm@cua.dk>
9947
9948 * alloc.c (allocate_misc): Update total_free_markers.
9949 (free_misc): New function.
9950 (safe_alloca_unwind, free_marker): Use it.
9951
9952 * lisp.h (free_misc): Add prototype.
9953
9954 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
9955
9956 2004-06-24 Richard M. Stallman <rms@gnu.org>
9957
9958 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
9959 (syms_of_emacs): Lisp variables deleted.
9960
9961 2004-06-23 David Kastrup <dak@gnu.org>
9962
9963 * search.c (Freplace_match): Adjust the match-data more thoroughly
9964 when replacing strings in the buffer.
9965 (Fmatch_data): When INTEGERS is non-nil and the last match was in
9966 a buffer, add the buffer as last element to the match data.
9967 (Fset_match_data): If an additional element of the match-data is a
9968 buffer, restore it to last_thing_searched.
9969 (save_search_regs): Save last_thing_searched as part of the match data.
9970 (restore_match_data): Restore it again.
9971
9972 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
9973
9974 * keymap.c (Ftext_char_description): Doc fix.
9975 * doc.c (Fsnarf_documentation): Doc fix.
9976
9977 2004-06-22 Kim F. Storm <storm@cua.dk>
9978
9979 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
9980
9981 * lisp.h (struct Lisp_Save_Value): New member dogc.
9982 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
9983 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
9984 (SAFE_FREE_LISP): New macro.
9985
9986 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
9987 (make_save_value): Init new dogc member.
9988 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
9989
9990 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
9991 SAFE_FREE_LISP macros.
9992
9993 2004-06-22 Kim F. Storm <storm@cua.dk>
9994
9995 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
9996 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
9997 in that memory area are unknown to GC. Add comments.
9998
9999 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
10000
10001 2004-06-21 Kim F. Storm <storm@cua.dk>
10002
10003 * lisp.h (MAX_ALLOCA): Define here.
10004 (safe_alloca_unwind): Add prototype.
10005 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
10006
10007 * alloc.c (safe_alloca_unwind): New function.
10008
10009 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
10010
10011 * charset.c (Fstring): Use SAFE_ALLOCA.
10012
10013 * coding.c (MAX_ALLOCA): Remove define.
10014
10015 * data.c (MAX_ALLOCA): Remove define.
10016 (Faset): Use SAFE_ALLOCA.
10017
10018 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
10019
10020 * fns.c (string_make_multibyte, string_to_multibyte)
10021 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
10022 (MAX_ALLOCA): Remove define.
10023 (Fbase64_encode_region, Fbase64_encode_string)
10024 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
10025 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
10026 memory leak if encoding fails.
10027
10028 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
10029
10030 2004-06-21 Eli Zaretskii <eliz@gnu.org>
10031
10032 * print.c (Fwith_output_to_temp_buffer): Doc fix.
10033
10034 2004-06-20 Richard M. Stallman <rms@gnu.org>
10035
10036 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
10037
10038 * search.c (match_limit): Cleaner err msg when no match data available.
10039
10040 * window.c (syms_of_window): Doc fix.
10041
10042 * keyboard.c (command_loop_1): Handle values `only' and `identity'
10043 for Vtransient_mark_mode.
10044
10045 * buffer.c (syms_of_buffer): Doc fix.
10046
10047 2004-06-21 David Kastrup <dak@gnu.org>
10048
10049 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
10050 and unbinding of `case-fold-search' according to
10051 `completion-ignore-case' around calls of string-match and
10052 predicates, respectively. Should give satisfactory performance
10053 in all relevant cases.
10054
10055 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10056
10057 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
10058 clip_x/y_origin.
10059
10060 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
10061
10062 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
10063
10064 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
10065 on Mac OSX.
10066
10067 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
10068
10069 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
10070
10071 2004-06-16 Kim F. Storm <storm@cua.dk>
10072
10073 * dispextern.h (Vimage_types): Remove extern.
10074
10075 2004-06-16 Miles Bader <miles@gnu.org>
10076
10077 * image.c (lookup_image_type): Initialize image type if necessary.
10078
10079 2004-06-15 Kim F. Storm <storm@cua.dk>
10080
10081 * xdisp.c (try_cursor_movement): Exclude header line from scroll
10082 margin at top of window.
10083 (try_window_reusing_current_matrix): Calculate proper cursor position
10084 after scrolling up with non-zero scroll margin, as the old cursor
10085 position corresponds to value of PT before executing this command.
10086 (try_window_id): Consider scroll margin at bottom of window too;
10087 otherwise we fail to scroll when hl-line-mode is enabled.
10088
10089 * syntax.c (skip_chars): Only recognize [:class:] when it has the
10090 proper format and class is a lower-case word.
10091
10092 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10093
10094 * gtkutil.c (xg_get_image_for_pixmap): New function.
10095 (xg_get_gdk_pixmap_and_mask): Remove.
10096 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
10097 xg_get_gdk_pixmap_and_mask.
10098
10099 * xterm.h (struct x_display_info): Typo in comment fixed.
10100
10101 2004-06-14 Juanma Barranquero <lektu@terra.es>
10102
10103 * dispextern.h (Vimage_types): Make it conditional on
10104 HAVE_WINDOW_SYSTEM.
10105
10106 * image.c (Vimage_types): Move from xdisp.c.
10107 (Vimage_type_cache): New variable.
10108 (define_image_type): New argument indicating whether an image
10109 library was loaded; cache loaded status and return t on success,
10110 nil otherwise.
10111 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
10112 (w32_delayed_load): New function to load an image library from a
10113 list of possible filenames.
10114 (init_xpm_functions, init_png_functions, init_jpeg_functions)
10115 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
10116 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
10117 (Finit_image_library): New function, extracted from `init_image'.
10118 Try to initialize an image library on demand and cache whether we
10119 were successful or not.
10120 (syms_of_image): Initialize `Vimage_types' and
10121 `Vimage_type_cache'. Add recognized image types to Vimage_types.
10122 Export `init-image-library'.
10123 (init_image): Remove initialization of all image types, except xbm
10124 and pbm.
10125
10126 * xdisp.c (Vimage_types): Delete (moved to image.c).
10127
10128 2004-06-14 Andreas Schwab <schwab@suse.de>
10129
10130 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
10131 Avoid calling specbind when completion-regexp-list is empty.
10132
10133 2004-06-13 Richard M. Stallman <rms@gnu.org>
10134
10135 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
10136 (re_wctype, re_iswctype, re_wctype_to_bit):
10137 Non-function definitions moved here from regex.c.
10138
10139 * regex.c (re_wctype, re_iswctype): Function defs longer static.
10140 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
10141 (re_wctype, re_iswctype, re_wctype_to_bit):
10142 Non-function definitions moved to regex.h.
10143
10144 * window.c (Fselect_window): Doc fix.
10145
10146 * syntax.c: Include regex.h.
10147 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
10148 If requested, make a list of classes, then check the scanned
10149 chars for membership in them.
10150 (in_classes): New function.
10151 Doc fix.
10152
10153 * keyboard.c (cmd_error): Don't call any_kboard_state
10154 if inside a recursive edit level.
10155
10156 2004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
10157
10158 * keyboard.c (command_loop): Call any_kboard_state before
10159 command_loop_2 when at top level.
10160
10161 2004-06-13 Andreas Schwab <schwab@suse.de>
10162
10163 * print.c (print_object): Always use %ld for printing EMACS_INT.
10164
10165 * keyboard.c (cancel_hourglass_unwind): Return a value.
10166 (modify_event_symbol): Always use %ld for printing EMACS_INT.
10167 (Fexecute_extended_command): Likewise.
10168
10169 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
10170 avoid clashes.
10171 (SYNTAX): Likewise.
10172 (SYNTAX_WITH_FLAGS): Likewise.
10173 (SYNTAX_MATCH): Likewise.
10174
10175 * syntax.c (char_quoted): Avoid warning about undefined operation.
10176 (find_defun_start): Likewise.
10177 (scan_lists): Likewise.
10178 (INC_FROM): Likewise.
10179 (scan_sexps_forward): Likewise.
10180
10181 * image.c: Include <ctype.h>.
10182
10183 * xfaces.c (face_attr_equal_p): Declare parameters.
10184
10185 2004-06-13 Kenichi Handa <handa@m17n.org>
10186
10187 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
10188
10189 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
10190
10191 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
10192
10193 2004-06-12 Kenichi Handa <handa@m17n.org>
10194
10195 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
10196 ccl_prog_stack_struct and update it.
10197 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
10198 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
10199 ccl->eof_ic on EOF.
10200 (ccl_debug_hook): New function.
10201 (struct ccl_prog_stack): New member eof_ic.
10202 (ccl_driver): Handle EOF in subrountine call correctly.
10203
10204 2004-06-11 Kenichi Handa <handa@m17n.org>
10205
10206 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
10207
10208 2004-06-11 Kim F. Storm <storm@cua.dk>
10209
10210 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
10211
10212 2004-06-11 Juanma Barranquero <lektu@terra.es>
10213
10214 * keyboard.c (Fposn_at_point): Doc fix.
10215
10216 2004-06-11 David Kastrup <dak@gnu.org>
10217
10218 * search.c (match_limit): Don't flag an error if match-data
10219 exceeding the allocated search_regs.num_regs gets requested, just
10220 return Qnil.
10221
10222 2004-06-08 Miles Bader <miles@gnu.org>
10223
10224 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
10225
10226 2004-06-07 Juanma Barranquero <lektu@terra.es>
10227
10228 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
10229 (Fcurrent_time_string, Fcurrent_time_zone)
10230 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
10231
10232 2004-06-07 Miles Bader <miles@gnu.org>
10233
10234 * xfaces.c (struct named_merge_point): New type.
10235 (push_named_merge_point): New function.
10236 (merge_named_face): New function.
10237 (merge_face_ref, face_at_buffer_position, face_at_string_position):
10238 Use `merge_named_face'.
10239 (merge_face_inheritance): Function removed.
10240 (merge_face_ref): Rename from `merge_face_vector_with_property'.
10241 Add new `err_msgs' and `named_merge_points' args. Return error
10242 status. Only print error messages if ERR_MSGS is true. Don't try to
10243 do :inherit attribute validation.
10244 (merge_face_heights): Handle `unspecified' in both directions.
10245 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
10246 Call `merge_face_ref' instead of `merge_face_inheritance'.
10247 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
10248 (compute_char_face, face_at_buffer_position)
10249 (face_at_string_position): Call `merge_face_ref' instead of
10250 `merge_face_vector_with_property'.
10251
10252 2004-06-07 Kenichi Handa <handa@m17n.org>
10253
10254 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
10255 the necessary places.
10256
10257 2004-06-07 Kim F. Storm <storm@cua.dk>
10258
10259 * process.c (Fdelete_process): Undo 2004-05-28 change.
10260 Instead, call status_notify also for network process.
10261 (status_message): Use process instead of status as arg.
10262 Give messages "deleted" or "connection broken by remote peer" for
10263 an exited network process.
10264 (status_notify): Change call to status_message.
10265 (read_process_output): Increase readmax to 4096. Do not increase
10266 buffer size for datagram channels (default is now large enough).
10267
10268 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
10269
10270 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
10271 problem due to newly defined variable.
10272
10273 2004-06-06 Miles Bader <miles@gnu.org>
10274
10275 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
10276 immediately if non-interactive or not initialized.
10277
10278 2004-06-05 Richard M. Stallman <rms@gnu.org>
10279
10280 * minibuf.c (Fcompleting_read): Doc fix.
10281
10282 2004-06-05 Andreas Schwab <schwab@suse.de>
10283
10284 * macfns.c (x_create_tip_frame): Fix declaration after statement.
10285
10286 2004-06-05 Juanma Barranquero <lektu@terra.es>
10287
10288 * keymap.c (Fdescribe_vector): Fix docstring.
10289 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
10290
10291 2004-06-05 Miles Bader <miles@gnu.org>
10292
10293 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
10294 attributes have different values than the default face.
10295
10296 2004-06-04 Eli Zaretskii <eliz@gnu.org>
10297
10298 * xfaces.c (x_supports_face_attributes_p): Make this function
10299 conditional on HAVE_WINDOW_SYSTEM.
10300 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
10301 Don't call x_supports_face_attributes_p if it was not compiled in.
10302
10303 2004-06-04 Miles Bader <miles@gnu.org>
10304
10305 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
10306 from Ftty_supports_face_attributes_p.
10307 (x_supports_face_attributes_p): New function.
10308 (Ftty_supports_face_attributes_p): Function deleted.
10309 (Fdisplay_supports_face_attributes_p): New function.
10310 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
10311 (face_attr_equal_p): New function.
10312 (lface_equal_p): Use it.
10313
10314 2004-06-03 Juanma Barranquero <lektu@terra.es>
10315
10316 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
10317 (Vw32_color_map): Fix typo in docstring.
10318 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
10319 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
10320 Make argument names match their use in docstring.
10321
10322 2004-06-02 Juanma Barranquero <lektu@terra.es>
10323
10324 Work around bugs/problems with MinGW builds of graphics libraries
10325 called from MSVC builds of Emacs.
10326
10327 * image.c (lookup_image): Make pointer to img static.
10328 (png_read_from_memory): Disable "global" optimization.
10329
10330 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
10331
10332 * eval.c (Fcondition_case): Fix usage. Simplify.
10333
10334 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
10335
10336 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10337
10338 * macfns.c: Don't include ccl.h.
10339 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
10340 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
10341 TextUtils.h.
10342 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
10343 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
10344 display height/width.
10345 (compute_tip_xy, Vx_max_tooltip_size): Declare.
10346 (unwind_create_tip_frame, compute_tip_xy): New functions.
10347 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
10348 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
10349 and last_show_tip_args.
10350
10351 * macgui.h [!MAC_OSX]: Include Gestalt.h.
10352 (Cursor, No_Cursor): New defines.
10353 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
10354 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
10355
10356 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
10357
10358 * macterm.c: Don't include Gestalt.h.
10359 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
10360 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
10361 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
10362 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
10363 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
10364 (construct_mouse_click, XTmouse_position)
10365 (x_scroll_bar_report_motion, x_calc_absolute_position)
10366 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
10367 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
10368 (note_mouse_movement): Clear the mouse face and reset the pointer
10369 shape when the pointer goes outside the frame without grabbing.
10370 (mac_front_window): New function.
10371 (mac_window_to_frame): New macro.
10372 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
10373 (do_window_activate, do_window_deactivate, do_app_resume)
10374 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
10375 (do_zoom_window, mac_do_receive_drag, XTread_socket)
10376 (mac_check_for_quit_char): Use mac_front_window and/or
10377 mac_window_to_frame.
10378 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
10379 scroll-bar click event.
10380 (mac_define_frame_cursor): Change the pointer shape.
10381 (x_free_frame_resources): Reset tip_window to NULL when it is
10382 disposed of.
10383 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
10384 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
10385 (do_window_update): Don't do anything if the updated window is the
10386 tooltip window.
10387 (do_mouse_moved): Handle mouse movement events here (previously in
10388 XTread_socket). Clear the mouse face if
10389 dpyinfo->mouse_face_hidden is set.
10390 (do_os_event, do_events): Remove (now in XTread_socket).
10391 (XTread_socket): Immediately return if interrupt_input_blocked.
10392 Loop until all the events in the queue are processed.
10393 Rearrange codes for mouse grabbing. Add tooltip support. Include the
10394 contents of do_os_event and do_events. Remove mouse movement
10395 handling (now in do_mouse_moved). Add the case where
10396 Vmouse_highlight has an integer value.
10397 (NewMacWindow): Remove.
10398 (make_mac_frame): Do what NewMacWindow previously did. Don't do
10399 excess initializations.
10400 (make_mac_terminal_frame): Previous initializations in
10401 make_mac_frame are moved here.
10402 (mac_initialize_display_info):
10403 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
10404
10405 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
10406 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
10407
10408 2004-05-29 Richard M. Stallman <rms@gnu.org>
10409
10410 * lisp.h (truncate_undo_list): Update decl.
10411
10412 * alloc.c (undo_outer_limit): New variable.
10413 (syms_of_alloc): Defvar it.
10414 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
10415
10416 * undo.c (truncate_undo_list): New arg LIMITSIZE.
10417
10418 * alloc.c (lisp_align_malloc): Check for base == 0
10419 regardless of HAVE_POSIX_MEMALIGN.
10420 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
10421
10422 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10423
10424 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
10425 (marker_blocks_pending_free): Remove.
10426 (Fgarbage_collect): Sweep after cleaning up undo-lists.
10427 Mark the undo lists after claning them up.
10428 Don't free block in marker_blocks_pending_free.
10429 (mark_buffer): Don't mark undo_list.
10430 (gc_sweep): Sweep hash-tables and strings first.
10431 Do free marker blocks that are empty.
10432
10433 2004-05-28 Jim Blandy <jimb@redhat.com>
10434
10435 * regex.c (print_partial_compiled_pattern): Add missing 'break'
10436 after 'case wordend'. For symbeg and symend, print to stderr,
10437 like the other cases.
10438
10439 2004-05-28 Noah Friedman <friedman@splode.com>
10440
10441 * process.c (Fdelete_process): Do not call remove_process.
10442
10443 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10444
10445 * alloc.c (struct backtrace): Remove.
10446 (Fgarbage_collect): Use the new mark_backtrace.
10447
10448 * eval.c (mark_backtrace): New function.
10449
10450 * minibuf.c (run_exit_minibuf_hook): New function.
10451 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
10452 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
10453
10454 2004-05-27 Kim F. Storm <storm@cua.dk>
10455
10456 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
10457 over display properties, e.g. images, that replace buffer text.
10458
10459 2004-05-25 Kim F. Storm <storm@cua.dk>
10460
10461 * alloc.c (marker_blocks_pending_free): New var.
10462 (gc_sweep): Store free marker blocks on that list.
10463 (Fgarbage_collect): Free them after undo-list cleanup.
10464
10465 * process.c (wait_reading_process_input): Check connect_wait_mask
10466 before actually accepting connection in case it has already been
10467 accepted due to recursion.
10468
10469 2004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
10470
10471 * coding.c (Fset_safe_terminal_coding_system_internal):
10472 Set suppress_error in safe_terminal_coding, not terminal_coding.
10473
10474 2004-05-22 Richard M. Stallman <rms@gnu.org>
10475
10476 * alloc.c (Fmake_string): Doc fix.
10477
10478 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
10479 and the alist pairs too.
10480
10481 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
10482
10483 * emacs.c (main): Update copyright year.
10484
10485 * fileio.c (Fread_file_name): Expand DIR if not absolute.
10486
10487 * insdel.c (del_range_2, replace_range): Don't write an anchor
10488 if the gap is empty.
10489
10490 * xdisp.c (try_scrolling): If scroll-up-aggressively or
10491 scroll-down-aggressively is small but positive, put point
10492 near the screen edge.
10493
10494 2004-05-22 Juanma Barranquero <lektu@terra.es>
10495
10496 * keymap.c (Fdefine_key): Doc fix.
10497
10498 2004-05-22 Kim F. Storm <storm@cua.dk>
10499
10500 * alloc.c (struct backtrace): Add debug_on_exit member.
10501 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
10502 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
10503 the removed cons cells.
10504 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
10505 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
10506 any cons cells pointing to unallocated stings.
10507 Do not lisp_free any marker blocks, as there may still be pointers
10508 to them from buffer undo lists at this stage of GC.
10509
10510 * keyboard.c (struct backtrace): Add debug_on_exit member.
10511 (Fcommand_execute): Clear it.
10512
10513 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
10514
10515 * intervals.c (lookup_char_property): Do not prematurely return nil.
10516
10517 2004-05-19 Jim Blandy <jimb@redhat.com>
10518
10519 Add support for new '\_<' and '\_>' regexp operators, matching the
10520 beginning and end of symbols.
10521
10522 * regex.c (enum syntaxcode): Add Ssymbol.
10523 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
10524 (re_opcode_t): New opcodes `symbeg' and `symend'.
10525 (print_partial_compiled_pattern): Print the new opcodes properly.
10526 (regex_compile): Parse the new operators.
10527 (analyse_first): Skip sym(beg|end) (they match only the empty string).
10528 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
10529 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
10530 (re_match_2_internal): Match symbeg and symend.
10531
10532 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
10533
10534 2004-05-19 Kim F. Storm <storm@cua.dk>
10535
10536 * .gdbinit (xsymbol): Fix last change.
10537
10538 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
10539
10540 * .gdbinit (xprintstr): New fun.
10541 (xstring, xprintsym): Use it.
10542
10543 * w32proc.c (create_child): Use INTMASK.
10544
10545 * alloc.c (Fgarbage_collect): Do all the marking before flushing
10546 unmarked elements of the undo list.
10547
10548 2004-05-18 David Ponce <david@dponce.com>
10549
10550 * print.c (print): Reset print_depth before to call print_object.
10551
10552 2004-05-18 Jason Rumney <jasonr@gnu.org>
10553
10554 * w32console.c: Prefix RIF functions with w32con_ to avoid
10555 namespace clash with functions in term.c and w32term.c.
10556
10557 * w32menu.c (add_menu_item, w32_menu_display_help)
10558 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
10559
10560 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
10561
10562 2004-05-18 Eli Zaretskii <eliz@gnu.org>
10563
10564 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
10565
10566 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
10567 with make_number.
10568 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
10569 with XINT.
10570
10571 2004-05-18 Kim F. Storm <storm@cua.dk>
10572
10573 * blockinput.h (INPUT_BLOCKED_P): New macros.
10574
10575 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
10576 (Ftop_level): Unblock input if blocked.
10577
10578 * buffer.h (GET_OVERLAYS_AT): New macro.
10579 * msdos.c (IT_note_mouse_highlight): Use it.
10580 * textprop.c (get_char_property_and_overlay): Use it.
10581 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
10582 * xfaces.c (face_at_buffer_position): Use it.
10583
10584 * print.c (print_object): Increase buf size.
10585
10586 2004-05-17 Jason Rumney <jasonr@gnu.org>
10587
10588 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
10589 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
10590 Lisp_Object using i member.
10591 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
10592 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
10593 consistently.
10594
10595 * w32proc.c (create_child): Use make_number instead of masking pid.
10596
10597 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
10598 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
10599 Use EQ to compare Lisp_Objects.
10600 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
10601
10602 * w32term.c (w32_num_mouse_buttons): Rename from
10603 Vw32_num_mouse_buttons and make it an int.
10604
10605 * w32.c (init_environment): Use it.
10606
10607 * w32fns.c (w32_wnd_proc): Likewise.
10608
10609 * w32proc.c (w32_pipe_read_delay): Rename from
10610 Vw32_pipe_read_delay and make it an int.
10611
10612 * w32.c (_sys_read_ahead): Use it.
10613
10614 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
10615
10616 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
10617
10618 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
10619 (key_event): Don't mix Lisp_Object and int.
10620
10621 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
10622
10623 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
10624 modifiers in language change event.
10625
10626 2004-05-17 Kim F. Storm <storm@cua.dk>
10627
10628 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
10629 Such objects may be freed markers which still exist on an undo list.
10630
10631 2004-05-16 Juanma Barranquero <lektu@terra.es>
10632
10633 * data.c (Fset_default): Make argument names match their use in
10634 docstring.
10635
10636 2004-05-15 Andreas Schwab <schwab@suse.de>
10637
10638 * emacs.c (gdb_array_mark_flag): Define.
10639 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
10640
10641 2004-05-15 Eli Zaretskii <eliz@gnu.org>
10642
10643 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
10644 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
10645 defined for the MS-DOS build.
10646
10647 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
10648
10649 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
10650
10651 2004-05-14 Kenichi Handa <handa@m17n.org>
10652
10653 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
10654
10655 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10656
10657 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
10658 section to frame.c section.
10659 (Fxw_display_color_p, Fx_file_dialog): Declare if
10660 HAVE_WINDOW_SYSTEM defined.
10661
10662 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
10663
10664 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
10665
10666 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
10667 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
10668 (XTread_socket): Fix int/Lisp_Object mixup.
10669 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
10670
10671 * macterm.h (struct frame, struct face, struct image)
10672 (display_x_get_resource, Fx_display_color_p)
10673 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
10674 Add prototypes.
10675
10676 2004-05-14 Kim F. Storm <storm@cua.dk>
10677
10678 * process.c (wait_reading_process_input): Make reentrant.
10679 Make Available and Connecting non-static. Save and restore value
10680 of waiting_for_user_input_p.
10681
10682 2004-05-13 Kim F. Storm <storm@cua.dk>
10683
10684 * keyboard.c (mark_kboards): Don't mark x and y members
10685 that are overloaded in selection request events.
10686
10687 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10688
10689 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
10690
10691 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
10692
10693 * window.c (Fdisplay_buffer, Fsplit_window)
10694 (split-height-threshold): Doc fix.
10695
10696 2004-05-13 Juanma Barranquero <lektu@terra.es>
10697
10698 * xfaces.c (Ftty_supports_face_attributes_p)
10699 (Finternal_copy_lisp_face): Fix typo in docstring.
10700 (Finternal_get_lisp_face_attribute): Fix docstring.
10701
10702 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10703
10704 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
10705
10706 2004-05-11 Steven Tamm <steventamm@mac.com>
10707
10708 * macfns.c (Fx_create_frame): Default to using tool-bar by
10709 setting tool-bar-lines to 1 in default-frame-alist.
10710
10711 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10712
10713 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
10714 (xpm_get_color_table_v, xpm_make_color_table_h)
10715 (xpm_put_color_table_h, xpm_get_color_table_h)
10716 (xpm_str_to_color_key, xpm_load_image, xpm_load)
10717 (syms_of_image): Support XPM on Carbon Emacs. Does not
10718 depend on libXpm, but only supports XPM version 3 without extensions.
10719
10720 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10721
10722 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
10723 instead of FRAME_X_P
10724
10725 2004-05-11 Kim F. Storm <storm@cua.dk>
10726
10727 * process.c (read_process_output): Grow decoding_buf when needed;
10728 this could cause a crash in allocate_string and compact_small_strings.
10729
10730 2004-04-29 Jim Blandy <jimb@redhat.com>
10731
10732 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
10733 against proper opcode.
10734
10735 2004-05-10 Juanma Barranquero <lektu@terra.es>
10736
10737 * process.c (Fstart_process): Fix docstring.
10738
10739 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
10740 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
10741 (Fsplit_char, Fchar_charset): Make argument names match their use
10742 in docstring.
10743
10744 2004-05-10 Richard M. Stallman <rms@gnu.org>
10745
10746 * print.c (print_preprocess): Use being_printed, loop_count and
10747 halftail to detect overdeep nesting and cyclic cdr chains.
10748
10749 2004-05-10 Andreas Schwab <schwab@suse.de>
10750
10751 * lisp.h (Fmake_symbolic_link): Declare.
10752
10753 * fileio.c (Frename_file): Remove extra argument in call to
10754 Fmake_symbolic_link.
10755
10756 2004-05-10 Kim F. Storm <storm@cua.dk>
10757
10758 * xdisp.c (calc_line_height_property): Use string position when
10759 object is a string.
10760
10761 2004-05-10 Kenichi Handa <handa@m17n.org>
10762
10763 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
10764 inhibit-modification-hooks to t temporarily before calling
10765 Ferase_buffer.
10766
10767 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
10768 inhibit-modification-hooks to t temporarily before calling
10769 Ferase_buffer.
10770
10771 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
10772 inhibit-modification-hooks to t temporarily before calling
10773 Ferase_buffer.
10774
10775 * fns.c (count_combining): Delete it.
10776 (concat): Don't check combining bytes.
10777
10778 2004-05-09 Jason Rumney <jasonr@gnu.org>
10779
10780 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
10781 (globals_of_w32fns): Set it.
10782
10783 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
10784
10785 * data.c (Fquo): Simplify.
10786
10787 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
10788
10789 * data.c (Fquo): If any argument is float, do the computation in
10790 floating point.
10791
10792 2004-05-08 Juanma Barranquero <lektu@terra.es>
10793
10794 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
10795 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
10796 Fix spelling of Emacs on docstring.
10797 (Fset_process_coding_system, Fprocess_coding_system)
10798 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
10799 Make argument names match their use in docstring.
10800 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
10801 Fix docstring.
10802
10803 * editfns.c (Finsert_buffer_substring): Make argument names match their
10804 use in docstring.
10805
10806 * syntax.c (Fmodify_syntax_entry): Fix docstring.
10807
10808 2004-05-07 Steven Tamm <steventamm@mac.com>
10809
10810 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
10811 around call to ReceiveEvent to avoid certain crashes.
10812
10813 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10814
10815 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
10816 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
10817 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
10818 Save/restore the current graphics port and device handle when
10819 drawing into an offscreen graphics world.
10820
10821 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
10822 (gif_load): Likewise.
10823
10824 2004-05-07 Juanma Barranquero <lektu@terra.es>
10825
10826 * window.c (Fset_window_buffer): Fix docstring.
10827
10828 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
10829
10830 * emacs.c (main) [VMS]: Fix var ref.
10831
10832 2004-05-06 Romain Francoise <romain@orebokech.com>
10833
10834 * data.c (Fsetq_default): Fix docstring.
10835
10836 2004-05-06 Jason Rumney <jasonr@gnu.org>
10837
10838 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
10839 to avoid name clash.
10840
10841 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10842
10843 * fileio.c (barf_or_query_if_file_exists): Use lstat.
10844 (Frename_file): Handle renaming of symlinks across file systems.
10845 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
10846
10847 2004-05-04 Kim F. Storm <storm@cua.dk>
10848
10849 * xdisp.c (Qtotal): New var.
10850 (syms_of_xdisp): Intern and staticpro it.
10851 (calc_line_height_property): New arg total. Set it if
10852 line-spacing property has format (total . VALUE).
10853 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
10854 Handle total line-spacing property.
10855
10856 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10857
10858 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
10859 "under" scroll bar when size/position changes.
10860
10861 2004-05-03 Jason Rumney <jasonr@gnu.org>
10862
10863 * makefile.nt: Remove.
10864
10865 2004-05-02 Eli Zaretskii <eliz@gnu.org>
10866
10867 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
10868 Avoid compiler warnings.
10869
10870 * Makefile.in (region-cache.o): Depend on config.h.
10871
10872 2004-05-02 Romain Francoise <romain@orebokech.com>
10873
10874 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
10875 with continuation lines, too.
10876
10877 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
10878
10879 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
10880
10881 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
10882
10883 * xdisp.c (calc_line_height_property): YAILOM (yet another
10884 int/Lisp_Object mixup).
10885
10886 2004-05-01 Eli Zaretskii <eliz@gnu.org>
10887
10888 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
10889 undo bad effect of pack(4) in some versions of system headers.
10890
10891 2004-05-01 Jason Rumney <jasonr@gnu.org>
10892
10893 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
10894
10895 2004-04-30 Kim F. Storm <storm@cua.dk>
10896
10897 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
10898 (syms_of_buffer) <cursor-type>: Doc fix.
10899
10900 * dispextern.h (struct it): Remove member use_default_face.
10901 Add members override_ascent, override_descent, override_boff.
10902
10903 * xdisp.c (init_iterator): Handle line-spacing float value.
10904 Initialize override_ascent member.
10905 (append_space_for_newline): Reset override_ascent.
10906 Remove use_default_face.
10907 (calc_line_height_property): New function to calculate value of
10908 line-height and line-spacing properties. Look at overlays, too.
10909 Set override_ascent, override_descent, override_boff members when
10910 using another face than the current face. Float values are now
10911 relative to the frame default font, by default; accept a cons
10912 of ratio and face name to specify value relative to a specific face.
10913 (x_produce_glyphs): Use calc_line_height_property.
10914 Use override_ascent etc. when set to handle different face heights.
10915 A negative line-spacing property value is interpreted as a total
10916 line height, rather than inter-line spacing.
10917 (note_mouse_highlight): Allocate room for 40 overlays initially.
10918
10919 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
10920
10921 * data.c (Fsubr_name): New fun.
10922 (syms_of_data): Defsubr it.
10923
10924 2004-04-29 Kim F. Storm <storm@cua.dk>
10925
10926 * xdisp.c (null_glyph_slice): New var.
10927 (append_glyph, append_composite_glyph, append_stretch_glyph):
10928 Use it to initialize glyph slice.
10929
10930 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
10931
10932 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
10933 (on_hot_spot_p): Make sure we always return a value.
10934 (Flookup_image_map): Remove unused var ix and iy.
10935 (note_mode_line_or_margin_highlight): Remove unused var `image'.
10936
10937 2004-04-27 Eli Zaretskii <eliz@gnu.org>
10938
10939 * msdos.c (init_environment): If one of the TMP... environment
10940 variables is set to a drive letter without a trailing slash,
10941 append a slash.
10942
10943 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
10944
10945 * editfns.c (lisp_time_argument): Provide externally.
10946
10947 * fileio.c (Fset_file_times): New function.
10948 (syms_of_fileio): Intern and staticpro it.
10949
10950 2004-04-27 Kim F. Storm <storm@cua.dk>
10951
10952 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
10953 header line strings.
10954
10955 * dispextern.h (struct it): New member use_default_face.
10956
10957 * xdisp.c (Qline_height): New variable.
10958 (syms_of_xdisp): Intern and staticpro it.
10959 (append_space_for_newline): Partially undo 2004-04-25 change;
10960 add default_face_p arg, and restore callers.
10961 Clear it->use_default_face after use.
10962 (x_produce_glyphs): Set default font for ascii char if
10963 it->use_default_font is set. Change line-spacing property to set
10964 just extra line spacing. Handle new line-height property.
10965
10966 2004-04-26 Andreas Schwab <schwab@suse.de>
10967
10968 * print.c (print_object): Print non-ascii characters in bool
10969 vector representation as octal escapes.
10970
10971 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
10972 * print.c (print_object): Use it instead of BITS_PER_CHAR for
10973 bool vectors.
10974 * lread.c (read1): Likewise.
10975 * alloc.c (Fmake_bool_vector): Likewise.
10976 * data.c (Faref, Faset): Likewise.
10977 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
10978 (mapcar1): Likewise.
10979
10980 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
10981
10982 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
10983
10984 2004-04-26 Miles Bader <miles@gnu.org>
10985
10986 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
10987
10988 2004-04-26 Juanma Barranquero <lektu@terra.es>
10989
10990 * buffer.c (Fpop_to_buffer): Fix docstring.
10991
10992 2004-04-26 Steven Tamm <steventamm@mac.com>
10993
10994 * lread.c (init_lread): Don't display missing lisp directory
10995 warnings with Carbon Emacs because self-contained bundled Emacs
10996 may be built without correct installation path.
10997
10998 2004-04-25 Kim F. Storm <storm@cua.dk>
10999
11000 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
11001
11002 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
11003
11004 * xdisp.c (append_space_for_newline): Rename from append_space.
11005 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
11006 (x_produce_glyphs): Handle line-spacing property on newline char.
11007 If value is t, adjust ascent and descent to fit current row height.
11008 If value is an integer or float, set extra_line_spacing to integer
11009 value, or to float value x current line height.
11010
11011 2004-04-23 Kenichi Handa <handa@m17n.org>
11012
11013 * fontset.c (Finternal_char_font): If POSITION is nil, return
11014 font for displaying CH with the default face.
11015
11016 2004-04-23 Juanma Barranquero <lektu@terra.es>
11017
11018 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
11019
11020 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11021
11022 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
11023 Don't make assumptions about the relative place of i and val.
11024 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
11025
11026 2004-04-21 Kim F. Storm <storm@cua.dk>
11027
11028 * dispextern.h (struct glyph_slice): New struct.
11029 (struct glyph): New member slice.
11030 (GLYPH_SLICE_EQUAL_P): New macro.
11031 (GLYPH_EQUAL_P): Use it.
11032 (struct glyph_string): New member slice.
11033 (struct it_slice): New struct.
11034 (struct it): New member slice, add member to stack too.
11035 New member constrain_row_ascent_descent_p.
11036 (image_ascent): Add prototype.
11037
11038 * dispnew.c (buffer_posn_from_coords): Return full image width
11039 and height even for image slices (posn is relative to full image).
11040 (marginal_area_string): Adjust x0,y0 for image slice.
11041
11042 * image.c (image_ascent): Add slice arg; calculate ascent for
11043 image slice (or full image).
11044
11045 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
11046 (syms_of_keyboard): Defsubr them.
11047
11048 * lisp.h (pos_visible_p): Fix prototype.
11049
11050 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
11051 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
11052 (x_draw_image_foreground, x_draw_image_relief)
11053 (x_draw_image_foreground_1, x_draw_image_glyph_string):
11054 Draw sliced images.
11055
11056 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
11057 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
11058 (x_draw_image_foreground, x_draw_image_relief)
11059 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
11060 Draw sliced images.
11061
11062 * w32term.h (image_ascent): Remove prototype.
11063
11064 * window.c (Fpos_visible_in_window_p): Return pixel position if
11065 PARTIALLY arg is non-nil. Simplify. Doc fix.
11066 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
11067 to return/set vscroll in pixels.
11068
11069 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
11070
11071 * xdisp.c (Qslice): New variable.
11072 (syms_of_xdisp): Intern and staticpro it.
11073 (pos_visible_p): Return pixel position in new x and y args.
11074 (init_iterator): Reset it->slice info.
11075 (handle_display_prop): Parse (slice ...) property.
11076 (push_it, pop_it): Save/restore slice info.
11077 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
11078 force repositioning of tall row if window is vscrolled, as that
11079 would reset vscroll.
11080 (append_space): Set it->constrain_row_ascent_descent_p to avoid
11081 increasing row height if row is non-empty.
11082 (fill_image_glyph_string): Copy slice info.
11083 (take_vertical_position_into_account): Simplify.
11084 (produce_image_glyph): Handle iterator slice info, setup glyph
11085 slice info. Do not force minimum line height.
11086 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
11087 do not increase height (ascent/descent) of non-empty row when
11088 adding normal character glyph; instead reduce glyph ascent/descent
11089 appropriately; if row is higher than current glyph, adjust glyph
11090 descent/ascent to reposition glyph within the existing row.
11091 Likewise, when char is newline, only set ascent/descent if row is
11092 currently empty.
11093 (note_mouse_highlight): Handle hotspots with sliced image.
11094
11095 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
11096 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
11097 (x_draw_image_foreground, x_draw_image_relief)
11098 (x_draw_image_foreground_1, x_draw_image_glyph_string):
11099 Draw sliced images.
11100
11101 * xterm.h (image_ascent): Remove prototype.
11102
11103 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
11104
11105 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
11106
11107 2004-04-20 John Paul Wallington <jpw@gnu.org>
11108
11109 * fns.c (Fassoc, Feql): Fix indentation.
11110
11111 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
11112
11113 2004-04-19 John Paul Wallington <jpw@gnu.org>
11114
11115 * fns.c (Feql): New function.
11116 (syms_of_fns): Defsubr it.
11117
11118 2004-04-18 Jason Rumney <jasonr@gnu.org>
11119
11120 * w32select.c (Fw32_set_clipboard_data): Get sequence number
11121 after closing the clipboard.
11122
11123 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
11124
11125 * buffer.c (Fbuffer_base_buffer): Doc fix.
11126
11127 2004-04-17 Kim F. Storm <storm@cua.dk>
11128
11129 * keymap.c (Fkey_description): Add optional PREFIX arg.
11130 Combine prefix with KEYS to make up the full key sequence to describe.
11131 Correlate meta_prefix_char and following (simple) key to describe
11132 as meta modifier. All callers changed.
11133 (describe_map): Rename arg `keys' to `prefix'. Remove local
11134 `elt_prefix' var. Use Fkey_description with prefix instead of
11135 elt_prefix combined with Fsingle_key_description.
11136 (describe_vector): Declare static. Replace arg `elt_prefix' with
11137 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
11138 if !KEYMAP_P. Use Fkey_description with prefix instead of
11139 Fsingle_key_description.
11140
11141 * keymap.h (Fkey_description): Fix prototype.
11142 (describe_vector): Remove prototype.
11143
11144 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
11145
11146 * image.c (PNG_BG_COLOR_SHIFT): Remove.
11147 (png_load): Fix calculation of transparent background color on X
11148 and W32 platforms.
11149
11150 2004-04-16 Juanma Barranquero <lektu@terra.es>
11151
11152 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
11153 not too large before computing how much to scroll.
11154
11155 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
11156
11157 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
11158
11159 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
11160
11161 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
11162 Add hyperlink to Elisp manual to the docstring.
11163
11164 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
11165
11166 * callint.c (fix_command): Use XDCR.
11167
11168 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
11169
11170 * window.c (Fget_lru_window): Doc fix.
11171
11172 2004-04-14 Kim F. Storm <storm@cua.dk>
11173
11174 * editfns.c (Fformat): Fix allocation size of precision array.
11175
11176 * dispnew.c (update_window): Only set changed_p if
11177 scrolling_window actually did scroll.
11178 (scrolling_window): Only return 1 if we actually did scroll.
11179
11180 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
11181 height to glyph height when cursor row is not fully visible.
11182 (make_cursor_line_fully_visible): Add FORCE_P arg to return
11183 failure in case row is higher than window. Callers changed.
11184 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
11185 Try to scroll partially visible, higher-than-window cursor row.
11186 (redisplay_window): Always try to scroll partially visible,
11187 higher-than-window cursor row - both initially and again with
11188 centering_position = 0.
11189 Clear desired matrix before retrying with centering_position = 0.
11190
11191 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
11192
11193 * syntax.c (scan_lists): Simplify backward string scan.
11194 Fix off-by-one boundary check for string and comment fences.
11195
11196 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
11197
11198 * sheap.c, unexcw.c: New files.
11199
11200 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
11201
11202 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
11203 base buffer has been killed. Correct the error message if the
11204 base buffer does not exist.
11205
11206 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
11207
11208 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
11209 Cygwin itself. Add support for Xaw3d scrollbars.
11210
11211 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
11212
11213 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
11214
11215 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
11216 before Cygwin unexec.
11217
11218 * Makefile.in: Link changes for Cygwin unexec() support.
11219
11220 2004-04-12 Andreas Schwab <schwab@suse.de>
11221
11222 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
11223
11224 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
11225
11226 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
11227 IGNORE argument equals NAME. Doc fix.
11228
11229 2004-04-11 Masatake YAMATO <jet@gyve.org>
11230
11231 * buffer.c (fix_start_end_in_overlays): Make overlays
11232 empty if they are backwards.
11233
11234 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11235
11236 * xfaces.c (face_color_supported_p): Fix compilation without X11.
11237
11238 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
11239
11240 * doc.c (Fsnarf_documentation): Ignore new file name entries.
11241
11242 2004-04-06 Kim F. Storm <storm@cua.dk>
11243
11244 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
11245 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
11246
11247 * w32term.c (w32_read_socket): Set mouse_face_hidden after
11248 clearing highlight.
11249
11250 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
11251
11252 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
11253 clearing highlight.
11254
11255 * indent.c (vmotion): Do not reserve one column for continuation
11256 marks on window frames.
11257
11258 2004-04-04 Eli Zaretskii <eliz@gnu.org>
11259
11260 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
11261 from GCC.
11262
11263 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11264
11265 * .gdbinit-union: Remove.
11266
11267 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
11268 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
11269 ($nonvalbits): Remove.
11270 ($valmask): Set it by calling xreload to avoid redundancy.
11271
11272 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
11273 (gdb_emacs_intbits): Remove.
11274
11275 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11276
11277 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
11278
11279 2004-03-30 Kenichi Handa <handa@m17n.org>
11280
11281 * editfns.c (Fformat): Fix initialization of the array info.
11282
11283 2004-03-30 Kim F. Storm <storm@cua.dk>
11284
11285 * xterm.c (x_mouse_click_focus_ignore_position): New var.
11286 (syms_of_xterm): DEFVAR_BOOL it.
11287 (ignore_next_mouse_click_timeout): New var.
11288 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
11289 Use it to filter mouse clicks following focus event.
11290
11291 2004-03-29 David Ponce <david@dponce.com>
11292
11293 * callint.c (Fcall_interactively): Fix last change.
11294
11295 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
11296
11297 * eval.c (Fcommandp): Simplify.
11298
11299 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
11300 Extend to handle all kinds of functions.
11301
11302 * lisp.h (Finteractive_form): Declare.
11303
11304 * callint.c (Fcall_interactively): Use it.
11305
11306 2004-03-26 Kim F. Storm <storm@cua.dk>
11307
11308 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
11309 to catch errors in calc_pixel_width_or_height during redisplay.
11310
11311 2004-03-26 Masatake YAMATO <jet@gyve.org>
11312
11313 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
11314
11315 * lisp.h (fix_start_end_in_overlays): Likewise.
11316
11317 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
11318
11319 * editfns.c (Ftranspose_regions): Likewise.
11320
11321 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11322
11323 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
11324
11325 2004-03-19 Richard M. Stallman <rms@gnu.org>
11326
11327 * s/sol2-6.h: Delete previous change.
11328
11329 2004-03-19 Kim F. Storm <storm@cua.dk>
11330
11331 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
11332 to_charpos corresponds to newline in right fringe. Use local
11333 BUFFER_POS_REACHED_P macro.
11334
11335 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11336
11337 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
11338 to compile on non-window system.
11339
11340 2004-03-19 Kim F. Storm <storm@cua.dk>
11341
11342 * dispextern.h (calc_pixel_width_or_height): Add prototype.
11343
11344 * image.c (Qcenter): Move to xdisp.c.
11345
11346 * xdisp.c (Qcenter): Declare here.
11347 (syms_of_xdisp): Intern and staticpro it.
11348 (handle_single_display_prop): Allow space display property on all
11349 platforms.
11350 (display_mode_line): Set mode_line_p before displaying line.
11351 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
11352 handling. Remove complex cases for fringes and scroll-bars.
11353 Add left, right, and center alignment positions. Add text (area)
11354 width/height. Return width or height for image specs.
11355 (produce_stretch_glyph): Improve handling of :align-to. Is now
11356 relative to left of text area by default, but other base offsets
11357 can be specified -- also for text lines.
11358
11359 * term.c (produce_glyphs): Handle IT_STRETCH.
11360 (produce_stretch_glyph): New function to handle space width and
11361 align-to display properties on non-window systems.
11362
11363 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11364
11365 * fileio.c (Fread_file_name): Set completion-ignore-case for
11366 case-insensitive systems.
11367
11368 2004-03-14 Masatake YAMATO <jet@gyve.org>
11369
11370 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
11371 when keymap and cursor are setup.
11372
11373 2004-03-14 Steven Tamm <steventamm@mac.com>
11374
11375 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
11376
11377 2004-03-14 Kim F. Storm <storm@cua.dk>
11378
11379 * dispextern.h (x_find_image_file): Add prototype.
11380
11381 * image.c (x_find_image_file): Make extern.
11382
11383 * xfns.c (x_find_image_file): Remove prototype.
11384
11385 2004-03-13 Eli Zaretskii <eliz@gnu.org>
11386
11387 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
11388
11389 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
11390
11391 2004-03-12 Richard M. Stallman <rms@gnu.org>
11392
11393 * fns.c (internal_equal): New arg PROPS controls comparing
11394 text properties. All callers changed.
11395 (Fequal_including_properties): New function.
11396 (syms_of_fns): defsubr it.
11397
11398 2004-03-12 Kim F. Storm <storm@cua.dk>
11399
11400 Fix image support on MAC. From YAMAMOTO Mitsuharu.
11401
11402 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
11403 (image_background, image_background_transparent): Fix prototypes.
11404
11405 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
11406
11407 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
11408 (x_query_font, x_find_ccl_program, x_set_window_size)
11409 (x_make_frame_visible, mac_initialize, XCreatePixmap)
11410 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
11411 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
11412
11413 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
11414 (x_query_font, x_find_ccl_program, x_set_window_size)
11415 (x_make_frame_visible, mac_initialize, XCreatePixmap)
11416 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
11417 (mac_draw_line_to_pixmap): Add prototypes.
11418
11419 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11420
11421 * macterm.c (XTread_socket): Fix mouse click on tool bar.
11422
11423 2004-03-11 Kim F. Storm <storm@cua.dk>
11424
11425 * dispextern.h: Move image related prototypes from xfns.c section
11426 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
11427 HAVE_X_WINDOWS.
11428
11429 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
11430 Move gtkutil.o to new GTK_OBJ list.
11431 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
11432 (GTK_OBJ) [USE_GTK]: New declaration.
11433 (obj): Add $(GTK_OBJ) to list.
11434
11435 2004-03-11 Steven Tamm <steventamm@mac.com>
11436
11437 * image.c [MAC_OSX]: Include sys/stat.h.
11438
11439 * macfns.c (syms_of_macfns): Remove definitions of things now
11440 defined in image.c.
11441
11442 2004-03-11 Kim F. Storm <storm@cua.dk>
11443
11444 The following changes consolidates the identical/similar image
11445 support code previously found in xfns.c, w32fns.c, and macfns.c
11446 into a new file image.c.
11447
11448 * makefile.w32-in (OBJ1): Add image.o.
11449 ($(BLD)/image.$(O)): Add dependencies.
11450
11451 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
11452 (image.o): Add dependencies.
11453
11454 * image.c: New file with consolidated image support code.
11455 (COLOR_TABLE_SUPPORT): New define to control whether
11456 color table support is available (X only).
11457 (Bitmap_Record): Common name for x_bitmap_record,
11458 w32_bitmap_record, and mac_bitmap_record.
11459 (XImagePtr): Common name for pointer to XImage or equivalent.
11460 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
11461 to XImagePtr on X+MAC, and to HDC on W32.
11462 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
11463 (NO_PIXMAP): Common name for "None" or equivalent.
11464 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
11465 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
11466 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
11467 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
11468 Define with suitable equivalents on W32 and MAC for code sharing.
11469 (XDrawLine): Define on MAC for code sharing.
11470 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
11471 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
11472 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
11473 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11474 (x_reference_bitmap, x_create_bitmap_from_data)
11475 (x_create_bitmap_from_file, x_destroy_bitmap)
11476 (x_destroy_all_bitmaps, x_create_bitmap_mask)
11477 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11478 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
11479 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
11480 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
11481 (define_image_type, lookup_image_type, valid_image_p)
11482 (image_error, enum image_value_type, struct image_keyword)
11483 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
11484 (make_image, free_image, prepare_image_for_display, image_ascent)
11485 (four_corners_best, image_background, image_background_transparent)
11486 (x_clear_image_1, x_clear_image, x_alloc_image_color)
11487 (make_image_cache, free_image_cache, clear_image_cache)
11488 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
11489 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
11490 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
11491 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
11492 (init_image_func_pointer, image_load_quartz2d)
11493 (struct ct_color, init_color_table, free_color_table)
11494 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
11495 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
11496 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
11497 (x_disable_image, x_build_heuristic_mask)
11498 (XBM support, XPM support, PBM support, PNG support, JPEG support)
11499 (TIFF support, GIF support, Ghostscript support): Consolidate image
11500 code from xfns.c, w32fns.c, and macfns.c.
11501 (syms_of_image): Consolidate image related symbol setup here.
11502 (init_image): Consolidate image related initializations here.
11503
11504 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
11505 and init_image. Remove call to init_xfns.
11506
11507 * macterm.h (struct mac_bitmap_record): Add file member.
11508 Not currently used, but simplifies code sharing.
11509
11510 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
11511 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11512 (x_reference_bitmap, x_create_bitmap_from_data)
11513 (x_create_bitmap_from_file, x_destroy_bitmap)
11514 (x_destroy_all_bitmaps, x_create_bitmap_mask)
11515 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11516 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
11517 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
11518 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
11519 (define_image_type, lookup_image_type, valid_image_p)
11520 (image_error, enum image_value_type, struct image_keyword)
11521 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
11522 (make_image, free_image, prepare_image_for_display, image_ascent)
11523 (four_corners_best, image_background, image_background_transparent)
11524 (x_clear_image_1, x_clear_image, x_alloc_image_color)
11525 (make_image_cache, free_image_cache, clear_image_cache)
11526 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
11527 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
11528 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
11529 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
11530 (init_image_func_pointer, image_load_quartz2d)
11531 (struct ct_color, init_color_table, free_color_table)
11532 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
11533 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
11534 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
11535 (x_disable_image, x_build_heuristic_mask)
11536 (XBM support, XPM support, PBM support, PNG support, JPEG support)
11537 (TIFF support, GIF support, Ghostscript support): Merge with image
11538 code from xfns.c and macfns.c into image.c.
11539 (syms_of_xfns): Move image related symbols to image.c.
11540 (init_external_image_libraries, init_xfns): Remove; initialization
11541 moved to init_image in image.c.
11542
11543 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
11544 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11545 (x_reference_bitmap, x_create_bitmap_from_data)
11546 (x_create_bitmap_from_file, x_destroy_bitmap)
11547 (x_destroy_all_bitmaps, x_create_bitmap_mask)
11548 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
11549 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
11550 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
11551 (define_image_type, lookup_image_type, valid_image_p)
11552 (image_error, enum image_value_type, struct image_keyword)
11553 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
11554 (make_image, free_image, prepare_image_for_display, image_ascent)
11555 (four_corners_best, image_background, image_background_transparent)
11556 (x_clear_image_1, x_clear_image, x_alloc_image_color)
11557 (make_image_cache, free_image_cache, clear_image_cache)
11558 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
11559 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
11560 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
11561 (struct ct_color, init_color_table, free_color_table)
11562 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
11563 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
11564 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
11565 (x_disable_image, x_build_heuristic_mask)
11566 (XBM support, XPM support, PBM support, PNG support, JPEG support)
11567 (TIFF support, GIF support, Ghostscript support): Merge with image
11568 code from xfns.c and macfns.c into image.c.
11569 (syms_of_xfns): Move image related symbols to image.c.
11570 (init_external_image_libraries, init_xfns): Remove; initialization
11571 moved to init_image in image.c.
11572
11573 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
11574 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11575 (x_reference_bitmap, x_create_bitmap_from_data)
11576 (x_create_bitmap_from_file, x_destroy_bitmap)
11577 (x_destroy_all_bitmaps, x_create_bitmap_mask)
11578 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
11579 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
11580 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
11581 (define_image_type, lookup_image_type, valid_image_p)
11582 (image_error, enum image_value_type, struct image_keyword)
11583 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
11584 (make_image, free_image, prepare_image_for_display, image_ascent)
11585 (four_corners_best, image_background, image_background_transparent)
11586 (x_clear_image_1, x_clear_image, x_alloc_image_color)
11587 (make_image_cache, free_image_cache, clear_image_cache)
11588 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
11589 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
11590 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
11591 (struct ct_color, init_color_table, free_color_table)
11592 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
11593 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
11594 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
11595 (x_disable_image, x_build_heuristic_mask)
11596 (XBM support, XPM support, PBM support, PNG support, JPEG support)
11597 (TIFF support, GIF support, Ghostscript support): Merge with
11598 w32fns.c and macfns.c image code into image.c.
11599 (syms_of_xfns): Move image related symbols to image.c.
11600 (init_xfns): Remove; initialization moved to init_image in image.c.
11601
11602 * lisp.h (syms_of_image, init_image): Add protoypes.
11603 (init_xfns): Remove prototype.
11604
11605 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11606 (x_reference_bitmap, x_create_bitmap_from_data)
11607 (x_create_bitmap_from_file, x_destroy_bitmap)
11608 (x_create_bitmap_mask): Move prototypes from dispextern.h.
11609 (gamma_correct) [MAC_OS]: Add prototype.
11610
11611 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11612 (x_reference_bitmap, x_create_bitmap_from_data)
11613 (x_create_bitmap_from_file, x_destroy_bitmap)
11614 (x_create_bitmap_mask): Move prototypes to dispextern.h.
11615
11616 2004-03-09 Kenichi Handa <handa@etlken2>
11617
11618 * coding.c (decode_coding_emacs_mule): Handle insufficent source
11619 correctly.
11620
11621 2004-03-04 Richard M. Stallman <rms@gnu.org>
11622
11623 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
11624
11625 * window.c (Fdisplay_buffer): Doc fix.
11626
11627 * buffer.c (Fpop_to_buffer): Doc fix.
11628
11629 2004-03-03 Kim F. Storm <storm@cua.dk>
11630
11631 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
11632
11633 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
11634
11635 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
11636
11637 2004-03-02 Richard M. Stallman <rms@gnu.org>
11638
11639 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
11640
11641 2004-03-02 Kenichi Handa <handa@m17n.org>
11642
11643 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
11644
11645 2004-03-02 Kim F. Storm <storm@cua.dk>
11646
11647 * window.h (struct window): New member overlay_arrow_bitmap.
11648
11649 * window.c (make_window): Initialize overlay_arrow_bitmap.
11650
11651 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
11652 implement and integrate multiple overlay arrows with redisplay.
11653 (syms_of_xdisp): DEFVAR_LISP and initialize it.
11654 (last_arrow_position, last_arrow_string): Replace by properties.
11655 (Qlast_arrow_position, Qlast_arrow_string)
11656 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
11657 (syms_of_xdisp): Intern and staticpro them.
11658 (overlay_arrow_string_or_property, update_overlay_arrows)
11659 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
11660 (overlay_arrow_at_row): New functions for multiple overlay arrows.
11661 (redisplay_internal): Use them instead of directly accessing
11662 Voverlay_arrow_position etc. for multiple overlay arrows.
11663 (mark_window_display_accurate): Use update_overlay_arrows.
11664 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
11665 (try_window_id): Use overlay_arrows_changed_p.
11666 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
11667 (display_line): Use overlay_arrow_at_row to check multiple
11668 overlay arrows, and get relevant overlay-arrow-string and
11669 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
11670 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
11671 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
11672
11673 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
11674 (update_window_fringes): Remove unused code.
11675
11676 2004-03-01 Jason Rumney <jasonr@gnu.org>
11677
11678 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
11679
11680 2004-03-01 Juanma Barranquero <lektu@terra.es>
11681
11682 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
11683
11684 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
11685
11686 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11687
11688 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
11689 how many colors can be displayed.
11690
11691 2004-03-01 Kenichi Handa <handa@m17n.org>
11692
11693 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
11694 correctly.
11695
11696 2004-02-28 Kim F. Storm <storm@cua.dk>
11697
11698 * dispnew.c (update_window): Update header line also if there are
11699 no other changes in window (move code after set_cursor label).
11700
11701 * lisp.h (mark_window_display_accurate): Remove prototype.
11702
11703 * window.c (window_loop, Fforce_window_update): Force mode line
11704 updates by setting prevent_redisplay_optimizations_p and
11705 update_mode_lines.
11706
11707 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11708
11709 * xfns.c (x_window): Fix indentation.
11710
11711 * xterm.c (x_calc_absolute_position): Call x_real_positions
11712 to get WM window sizes and use those to calculate position.
11713 (x_set_offset): Remove code commented out.
11714
11715 2004-02-28 Miles Bader <miles@gnu.org>
11716
11717 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
11718
11719 2004-02-28 Kim F. Storm <storm@cua.dk>
11720
11721 * keyboard.c (kbd_buffer_store_event_hold): New function to store
11722 an event into kbd fifo, but with special handling of quit event;
11723 a quit event is saved for later, and further events are discarded
11724 until the saved quit event has been processed.
11725 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
11726 (gen_help_event): Store help event in kbd fifo.
11727 (NREAD_INPUT_EVENTS): Remove.
11728 (read_avail_input): Adapt to new read_socket_hook interface.
11729 Remove allocation and initialization of local input_event buffer,
11730 as read_socket_hook stores events directly in fifo. Allocate and
11731 initialize local hold_quit event to handle postponed quit event
11732 (and store it if set by kbd_buffer_store_event_hold).
11733
11734 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
11735 (gen_help_event): Fix prototype.
11736
11737 * macterm.c (XTread_socket): Remove bufp_r and
11738 numcharsp args. Add hold_quit arg.
11739 Rework to use just one, local, inev input_event. Store inev
11740 directly in fifo using kbd_buffer_store_event_hold.
11741
11742 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
11743 (read_input_waiting): Adapt to new read_socket_hook interface.
11744 Remove allocation and initialization of local input_event buffer,
11745 as read_socket_hook stores events directly in fifo. Allocate and
11746 initialize local hold_quit event to handle postponed quit event
11747 (and store it if set by kbd_buffer_store_event_hold).
11748
11749 * term.c (read_socket_hook): Fix arg list.
11750
11751 * termhooks.h (read_socket_hook): Fix prototype.
11752
11753 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
11754 numcharsp args. Add hold_quit arg.
11755 Rework to use just one, local, inev input_event. Store inev
11756 directly in fifo using kbd_buffer_store_event_hold.
11757
11758 * w32inevt.h (w32_console_mouse_position): Fix prototype.
11759
11760 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
11761 Add hold_quit arg. Rework to use just one, local, inev
11762 input_event. Store inev directly in fifo using
11763 kbd_buffer_store_event_hold. Update count in one place.
11764 Postpone call to gen_help_event until inev is stored; use new
11765 local do_help for this.
11766 Remove local emacs_event in handing of ButtonPress event; just use
11767 inev instead (so no reason to copy it later).
11768
11769 * xsmfns.c (x_session_check_input): Remove numchars arg.
11770
11771 * xterm.c (x_focus_changed, x_detect_focus_change):
11772 Remove numchars arg. Always store event into bufp arg.
11773 Return nothing. Callers changed accordingly.
11774 (glyph_rect): Simplify.
11775 (STORE_KEYSYM_FOR_DEBUG): New macro.
11776 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
11777 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
11778 (current_hold_quit) [USE_GTK]: Add.
11779 (event_handler_gdk): Adapt to new handle_one_xevent.
11780 (handle_one_xevent): Remove bufp_r and numcharsp args.
11781 Add hold_quit arg. Rework to use just one, local, inev
11782 input_event. Store inev directly in fifo using
11783 kbd_buffer_store_event_hold. Update count in one place.
11784 Postpone call to gen_help_event until inev is stored; use new
11785 local do_help for this.
11786 Simplify handling of keysyms (consolidate common code). Fix bug
11787 where count was updated with nchars instead of nbytes.
11788 Remove local emacs_event in handing of ButtonPress event; just use
11789 inev instead (so no reason to copy it later).
11790 Remove `out' label. Rename label `ret' to `done'; add various
11791 `goto done' to clarify code flow in deeply nested blocks.
11792 (x_dispatch_event): Simplify as handle_one_xevent now calls
11793 kbd_buffer_store_event itself.
11794 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
11795 arg. Call handle_one_xevent with new arglist. Store event from
11796 x_session_check_input in fifo.
11797 [USE_GTK]: Setup current_hold_quit.
11798 Decrement handling_signal before unblocking input.
11799 (x_initialize) [USE_GTK]: Initialize current_count.
11800
11801 * xterm.h (x_session_check_input): Fix prototype.
11802
11803 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11804
11805 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
11806
11807 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
11808 macgui.h).
11809
11810 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
11811
11812 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
11813 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
11814 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
11815 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
11816 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
11817 (Bitmap): Remove typedef.
11818 (Pixmap): Change int to GWorldPtr.
11819
11820 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
11821
11822 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
11823 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
11824 New #define to extract 16-bit depth color components from unsigned
11825 long representation.
11826 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
11827 colors used for masks.
11828 (struct mac_display_info): Add color_p. Remove n_cbits.
11829
11830 * macfns.c: Include sys/types.h and sys/stat.h.
11831 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
11832 Include QuickTime/QuickTime.h.
11833 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11834 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
11835 functions defined in macterm.c.
11836 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
11837 (ZPixmap): New #define for compatibility with xfns.c.
11838 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11839 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11840 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
11841 New functions.
11842 (four_corners_best, x_create_x_image_and_pixmap)
11843 (x_destroy_x_image, unwind_create_frame, x_disable_image)
11844 (x_edge_detection, init_color_table, colors_in_color_table)
11845 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
11846 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
11847 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
11848 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
11849 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
11850 long mixup.
11851 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
11852 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
11853 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
11854 (x_set_cursor_type, Fxw_color_values, valid_image_p)
11855 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
11856 (x_alloc_image_color, clear_image_cache, lookup_image)
11857 (x_find_image_file, xbm_read_bitmap_file_data)
11858 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
11859 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
11860 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
11861 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
11862 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
11863 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
11864 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
11865 #if 0.
11866 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
11867 #if 0. Free white_relief.gc and black_relief.gc.
11868 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
11869 New functions (from xfns.c).
11870 (Fx_create_frame): Record unwind_create_frame.
11871 (Fxw_display_color_p): Use dpyinfo->color_p.
11872 (Fx_display_grayscale_p, Fx_display_planes): Don't use
11873 dpyinfo->n_cbits.
11874 (Fx_display_color_cells): Use dpyinfo->n_planes;
11875 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
11876 (Qheuristic, cross_disabled_images, emboss_matrix)
11877 (laplace_matrix): New variables (from xfns.c).
11878 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
11879 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
11880 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
11881 (image_background_transparent): New function (from xfns.c).
11882 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
11883 (image_load_quicktime): Add declaration.
11884 [MAC_OSX] (image_load_quartz2d): Likewise.
11885 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
11886 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
11887 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
11888 (xbm_load_image_from_file, x_laplace_read_row)
11889 (x_laplace_write_row, pbm_read_file): Remove functions.
11890 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
11891 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
11892 (colors_in_color_table): Sync with xfns.c (although not used).
11893 (lookup_rgb_color): Don't lookup color table. Just do gamma
11894 correction.
11895 (COLOR_INTENSITY): New #define (from xfns.c).
11896 (x_disable_image): New function (from xfns.c).
11897 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
11898 (x_build_heuristic_mask): Sync with xfns.c.
11899 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
11900 (HAVE_PBM): Remove #ifdef.
11901 (pbm_load): Sync with xfns.c. Set img->width and img->height
11902 before IMAGE_BACKGROUND.
11903 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
11904 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
11905 Don't enclose with #if HAVE_PNG.
11906 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
11907 symbol _CGImageCreateWithPNGDataProvider is defined.
11908 Otherwise use image_load_quicktime.
11909 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
11910 [HAVE_PNG] (png_load): Sync with xfns.c.
11911 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
11912 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
11913 HAVE_JPEG.
11914 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
11915 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
11916 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
11917 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
11918 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
11919 (tiff_image_p, tiff_load): Don't enclose declarations with #if
11920 HAVE_TIFF.
11921 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
11922 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
11923 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
11924 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
11925 New functions (from xfns.c).
11926 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
11927 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
11928 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
11929 Don't enclose with #if HAVE_GIF.
11930 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
11931 animated gif. Otherwise use image_load_quicktime.
11932 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
11933 gif_DrawText to avoid conflict with QuickdrawText.h.
11934 [HAVE_GIF] (gif_load): Sync with xfns.c.
11935 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
11936 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
11937 Ghostscript is not supported yet).
11938 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
11939 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
11940 cross_disabled_images (from xfns.c). Remove #if 0 for supported
11941 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
11942 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
11943 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
11944 HAVE_PNG. Call EnterMovies to support animated gifs.
11945 Call init_image_func_pointer to bind a symbol
11946 _CGImageCreateWithPNGDataProvider if it is defined.
11947
11948 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
11949 (x_draw_bar_cursor): Sync declaration with xterm.c.
11950 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
11951 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
11952 graphics).
11953 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
11954 (mac_draw_line_to_pixmap, XCreatePixmap)
11955 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
11956 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
11957 New functions.
11958 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
11959 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
11960 Cast bits to char *.
11961 (reflect_byte): New function (from w32fns.c).
11962 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
11963 due to byte alignment.
11964 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
11965 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
11966 (XSetForeground): Remove static (now used in macfns.c).
11967 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
11968 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
11969 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
11970 (x_draw_glyph_string_box, x_draw_image_foreground)
11971 (x_draw_image_foreground_1, x_draw_image_glyph_string)
11972 (x_draw_stretch_glyph_string, x_draw_glyph_string)
11973 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
11974 Sync with xterm.c.
11975 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
11976 than the xterm.c version when a strictly horizontal or vertical
11977 line is drawn.
11978 (XTset_terminal_window): Add static.
11979 (x_make_frame_visible): Add UNBLOCK_INPUT.
11980 (x_free_frame_resources): New funcion (from xterm.c).
11981 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
11982 occurs in tool bar area.
11983 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
11984 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
11985 Initialize image cache.
11986 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
11987 Enclose unused functions with #if 0.
11988 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
11989 (decode_mac_font_name): New function to apply code conversions
11990 from a mac font name to an XLFD font name according to its script code.
11991 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
11992 font name to a mac font name according to REGISTRY and ENCODING fields.
11993 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
11994 whose name starts with `.'.
11995 (init_font_name_table): Use decode_mac_font_name. Add both
11996 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
11997 of a font is smJapanese.
11998 (mac_do_list_fonts): New function to list fonts that match a given
11999 pattern.
12000 (x_list_fonts, XLoadQueryFont): Use it.
12001 (XLoadQueryFont): Set rbearing field for each variable width
12002 character to avoid needless redraw.
12003 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
12004
12005 2004-02-26 Kim F. Storm <storm@cua.dk>
12006
12007 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
12008 as read_socket_hook handler on X aborts if buffer is too small
12009 and W32 handler doesn't always check buffer limit.
12010
12011 * xdisp.c (handle_single_display_prop): Handle left-fringe and
12012 right-fringe similar to a display margin image. Specifically,
12013 the characters having the fringe prop are no longer shown, and
12014 we use IT_IMAGE/next_element_from_image with image_id = -1 to
12015 do this. Set fringe bitmap face_id in it->face_id.
12016 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
12017 still realize it->face (i.e. the fringe bitmap face).
12018
12019 2004-02-25 Miles Bader <miles@gnu.org>
12020
12021 * xdisp.c (check_it): Check string/string_pos consistency.
12022 (init_iterator): Initialize string-related fields properly.
12023
12024 2004-02-11 Miles Bader <miles@gnu.org>
12025
12026 * xdisp.c (produce_image_glyph): Force negative descents to zero.
12027
12028 2004-02-10 Miles Bader <miles@gnu.org>
12029
12030 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
12031 BLOCK_INPUT can be nested, so it doesn't make much sense.
12032
12033 2004-02-24 Michael Mauger <mmaug@yahoo.com>
12034
12035 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
12036 (xbm_read_bitmap_data): Use unsigned char for image data.
12037
12038 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
12039
12040 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
12041
12042 2004-02-22 Jason Rumney <jasonr@gnu.org>
12043
12044 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
12045 correctly over other bitmaps.
12046
12047 2004-02-21 Eli Zaretskii <eliz@gnu.org>
12048
12049 * emacs.c (USAGE1): Split into two halves.
12050 (USAGE2): Second half of the old USAGE1.
12051 (USAGE3): Rename from USAGE2.
12052 (USAGE4): Rename from USAGE3.
12053
12054 2004-02-21 Juri Linkov <juri@jurta.org>
12055
12056 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
12057 Fix --multibyte. Move --help, --version to USAGE2. Add alias
12058 --file. Fix -f, -l. Sort options. Untabify.
12059 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
12060
12061 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
12062
12063 * category.c (Fdefine_category, Fcategory_docstring)
12064 (Fget_unused_category, Fset_category_table)
12065 (Fcategory_set_mnemonics): Doc fixes.
12066
12067 2004-02-20 Kim F. Storm <storm@cua.dk>
12068
12069 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
12070 The following changes are relative to the 2004-01-21 revision.
12071 (NREAD_INPUT_EVENTS): Define as max number of input events to read
12072 in one call to read_socket_hook. Value is 8.
12073 (read_avail_input): Separate and rework handling of read_socket_hook
12074 and non-read_socket_hook cases. Use smaller input_event buffer
12075 in read_socket_hook case, and repeat if full buffer is read.
12076 Use new local variable 'discard' to skip input after C-g.
12077 In non-read_socket_hook case, just use a single input_event, and
12078 call kbd_buffer_store_event on the fly for each character.
12079
12080 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12081
12082 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
12083 Remove unused `gu' alternative.
12084
12085 2004-02-19 Andreas Schwab <schwab@suse.de>
12086
12087 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
12088 warning.
12089
12090 2004-02-18 Kim F. Storm <storm@cua.dk>
12091
12092 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
12093 Fix last change.
12094
12095 2004-02-17 Kim F. Storm <storm@cua.dk>
12096
12097 * xdisp.c (fast_find_position): Fix return value of new version;
12098 it was inverted compared to the 21.1 version.
12099 (get_window_cursor_type): Don't look at glyph if NULL.
12100 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
12101
12102 * keyboard.c: Rework previous change; it didn't consider that the
12103 buf array was allocated on the stack.
12104 (prev_read): Remove variable.
12105 (read_avail_input_buf): New static event buffer array.
12106 (in_read_avail_input): New static variable to handle re-entrancy.
12107 (read_avail_input): Change buf to pinter to read_avail_input_buf.
12108 Use in_read_avail_input to handle re-entrance; when re-entered,
12109 fully initialize and use tmp_buf array instead of read_avail_input_buf.
12110 Do not initialize read_avail_input_buf in full here; instead assume it
12111 is always cleared on entry. To ensure that, we clear (just) the
12112 entries that were used before we return.
12113 (init_keyboard): Initialize read_avail_input_buf here.
12114
12115 2004-02-16 Jesper Harder <harder@ifa.au.dk>
12116
12117 * cmds.c (Fend_of_line): Doc fix.
12118
12119 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
12120
12121 * keyboard.c (prev_read): New static variable.
12122 (read_avail_input): Use it to zero out only those slots in buf[]
12123 that were used last time we were called.
12124
12125 2004-02-16 Eli Zaretskii <eliz@gnu.org>
12126
12127 * Makefile.in (obj): Move fringe.o from here...
12128 (XOBJ, MAC_OBJ): ...to here.
12129
12130 2004-02-16 Stephen Eglen <stephen@gnu.org>
12131
12132 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
12133
12134 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
12135
12136 * data.c (Fbyteorder):
12137 * fringe.c (Fdefine_fringe_bitmap):
12138 * xdisp.c (handle_single_display_prop):
12139 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
12140
12141 2004-02-16 Jason Rumney <jasonr@gnu.org>
12142
12143 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
12144
12145 2004-02-15 Steven Tamm <steventamm@mac.com>
12146
12147 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
12148 controlling emulation of a three button mouse with option and
12149 command keys.
12150 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
12151 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
12152
12153 2004-02-15 Kim F. Storm <storm@cua.dk>
12154
12155 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
12156
12157 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
12158 Perform byte-swapping.
12159
12160 2004-02-14 Kim F. Storm <storm@cua.dk>
12161
12162 * dispextern.h (struct draw_fringe_bitmap_params): Change member
12163 bits from char to short to facilitate wider bitmaps.
12164 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
12165 member.
12166
12167 * fringe.c (struct fringe_bitmap): Change member bits from char to
12168 short to facilitate 16 bits wide bitmaps. Modify all standard
12169 bitmaps accordingly.
12170 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
12171 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
12172 (draw_fringe_bitmap): Ditto.
12173 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
12174 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
12175 handle up to 16 bits wide bitmaps.
12176 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
12177 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12178
12179 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
12180 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
12181 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
12182
12183 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
12184 so it is no longer necessary to expand them here.
12185
12186 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
12187
12188 2004-02-12 Kim F. Storm <storm@cua.dk>
12189
12190 * window.c (Fwindow_fringes): Doc fix.
12191
12192 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12193
12194 * xselect.c (x_get_foreign_selection): Add new optional parameter
12195 time_stamp.
12196 (Fx_get_selection_internal): Ditto, pass time_stamp to
12197 x_get_foreign_selection.
12198
12199 * data.c (Fbyteorder): New function.
12200
12201 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12202
12203 * atimer.c: Move include stdio.h to same place as in other files.
12204
12205 * region-cache.c: Ditto.
12206
12207 * sysdep.c: Ditto.
12208
12209 * xfaces.c: Ditto.
12210
12211 2004-02-09 Sam Steingold <sds@gnu.org>
12212
12213 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
12214
12215 2004-02-09 Kim F. Storm <storm@cua.dk>
12216
12217 * fringe.c: New file. Move original fringe related declarations
12218 and code from dispextern.h and xdisp.c here.
12219 Rework code to support user defined fringe bitmaps, redefining
12220 standard bitmaps, ability to overlay user defined bitmap with
12221 overlay arrow bitmap, and add faces to bitmaps.
12222 (Voverflow_newline_into_fringe): Declare here.
12223 (enum fringe_bitmap_align): New enum.
12224 (..._bits): All bitmaps are now defined without bitswapping; that
12225 is now done in init_fringe_once (if necessary).
12226 (standard_bitmaps): New array with specifications for the
12227 standard fringe bitmaps.
12228 (fringe_faces): New array.
12229 (valid_fringe_bitmap_id_p): New function.
12230 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
12231 (draw_fringe_bitmap): New function which draws fringe bitmap,
12232 possibly overlaying bitmap with cursor in right fringe or the
12233 overlay arrow in the left fringe.
12234 (update_window_fringes): Do not handle overlay arrow here.
12235 Compare and copy fringe bitmap faces.
12236 (init_fringe_bitmap): New function.
12237 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
12238 define and destroy user defined fringe bitmaps.
12239 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
12240 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
12241 (syms_of_fringe): New function. Defsubr new DEFUNs.
12242 DEFVAR_LISP Voverflow_newline_into_fringe.
12243 (init_fringe_once, init_fringe): New functions.
12244 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
12245
12246 * Makefile.in (obj): Add fringe.o.
12247 (fringe.o): New dependencies.
12248
12249 * dispextern.h (FRINGE_ID_BITS): New definition for number of
12250 bits allocated to hold a fringe number. Increase number of bits
12251 from 4 to 8 to allow user defined fringe bitmaps.
12252 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
12253 left_user_fringe_face_id, right_user_fringe_bitmap,
12254 right_user_fringe_face_id.
12255 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
12256 Move to new file fringe.c.
12257 (MAX_FRINGE_BITMAPS): Define here.
12258 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
12259 and overlay_p. Change member which to int.
12260 (struct redisplay_interface): New members define_fringe_bitmap
12261 and destroy_fringe_bitmap.
12262 (valid_fringe_bitmap_id_p): Add prototype.
12263 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
12264
12265 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
12266 arrows.
12267 (update_frame): Do flush_display if force_flush_display_p to
12268 ensure display (specifically fringes) are updated in a timely
12269 manner when resizing the frame by dragging the mouse.
12270 (update_window_line): Update row if overlay arrow changed.
12271 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
12272 or overlay arrow changed.
12273
12274 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
12275 syms_of_fringe, and init_fringe.
12276
12277 * frame.h (struct frame): New member force_flush_display_p.
12278
12279 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
12280 Add prototypes.
12281
12282 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
12283 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
12284 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
12285 Use cursor color for displaying cursor in fringe.
12286 (x_redisplay_interface): Add null handlers for
12287 define_fringe_bitmap and destroy_fringe_bitmap functions.
12288
12289 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
12290 xterm.c to handle overlayed fringe bitmaps and to use cursor color
12291 for displaying cursor in fringe.
12292 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
12293 specific functions to define and destroy fringe bitmaps in fringe_bmp.
12294 (w32_redisplay_interface): Add them to redisplay_interface.
12295 (w32_term_init): Call w32_init_fringe instead of explicitly
12296 defining fringe bitmaps in fringe_bmp array.
12297 (x_delete_display): Call w32_reset_fringes instead of explicitly
12298 destroying fringe bitmaps in fringe_bmp array.
12299
12300 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
12301 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
12302 (continued_bits, continuation_bits, ov_bits, first_line_bits)
12303 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
12304 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
12305 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
12306 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
12307 Move fringe handling vars and code to new file fringe.c.
12308 (handle_display_prop): Handle left-fringe and right-fringe
12309 display properties; store user fringe bitmaps in iterator.
12310 (move_it_in_display_line_to): Handle cursor in fringe at eob.
12311 (clear_garbaged_frames): Set force_flush_display_p if resized.
12312 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
12313 (display_line): Handle cursor in fringe at eob.
12314 (display_line): Set row user fringe bitmaps from iterator.
12315
12316 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
12317 Use cursor color for displaying cursor in fringe.
12318 (x_redisplay_interface): Add null handlers for
12319 define_fringe_bitmap and destroy_fringe_bitmap functions.
12320
12321 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12322
12323 * macfns.c (Fx_change_window_property): Make doc string and
12324 parameters same as for X version.
12325
12326 * w32fns.c (Fx_change_window_property): Ditto.
12327
12328 2004-02-07 Kim F. Storm <storm@cua.dk>
12329
12330 * xdisp.c (hscroll_window_tree): Position cursor near to right
12331 margin in hscrolled window when jumping to end of line (rather
12332 than centering cursor).
12333
12334 * process.c (wait_reading_process_input): Don't do adaptive read
12335 buffering if waiting for a specific process.
12336
12337 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
12338
12339 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
12340 (Fread_minibuffer, Feval_minibuffer)
12341 (Fread_string, Fread_no_blanks_input)
12342 (Fcompleting_read): Doc fixes.
12343 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
12344 completion-regexp-list. Define Qcase_fold_search and staticpro it.
12345 (read_minibuf): Fix initial comment.
12346 (Ftry_completion, Fall_completions, Ftest_completion): Bind
12347 case-fold-search to the value of completion-ignore-case when
12348 checking completion-regexp-list.
12349 (Fdisplay_completion_list): Make it handle arguments that are
12350 symbols. Doc fix.
12351
12352 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12353
12354 * xterm.h: Add declaration of free_frame_menubar.
12355
12356 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
12357 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
12358 (Fx_change_window_property): Add declaration of parameters type and
12359 format. Remove unused variable cons.
12360
12361 * xselect.c: Include stdio.h.
12362
12363 2004-02-05 Kenichi Handa <handa@m17n.org>
12364
12365 * fns.c (Fset_char_table_range): Fix previous change.
12366
12367 * buffer.c (Fset_buffer_multibyte): Fix docstring.
12368
12369 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
12370
12371 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
12372
12373 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
12374
12375 * keymap.c (Vmouse_events): Rename from Vmenu_events.
12376 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
12377
12378 2004-02-04 Kenichi Handa <handa@m17n.org>
12379
12380 * fns.c (Fset_char_table_range): Handle charsets ascii,
12381 eight-bit-control, and eight-bit-graphic correctly.
12382
12383 2004-02-03 Jason Rumney <jasonr@gnu.org>
12384
12385 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
12386
12387 * w32fns.c (x_to_w32_font): Likewise.
12388
12389 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12390
12391 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
12392 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
12393
12394 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
12395 ClientMessages.
12396
12397 * xselect.c: Include termhooks.h and X11/Xproto.h
12398 (x_check_property_data, x_fill_property_data)
12399 (x_property_data_to_lisp, mouse_position_for_drop)
12400 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
12401 (Fx_send_client_event): Move here from xfns.c.
12402 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
12403
12404 * xfns.c (x-send-client-message): Move to xselect.c
12405 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
12406 OUTER_P.
12407 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
12408 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
12409 if vector_ret_p is true.
12410 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
12411
12412 2004-02-02 Eli Zaretskii <eliz@gnu.org>
12413
12414 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
12415 basename of FILE relative to it, not FILE itself.
12416
12417 2004-02-02 Kenichi Handa <handa@m17n.org>
12418
12419 * coding.c (coding_restore_composition): Check invalid
12420 composition data more rigidly.
12421
12422 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
12423
12424 * fileio.c (Fread_file_name_internal): Correctly handle the case
12425 where insert-default-directory is nil.
12426 (Fread_file_name): Always return an empty string if the user exits
12427 with an empty minibuffer. Adapt the docstring accordingly.
12428 (syms_of_fileio): Adapt the docstring of insert-default-directory
12429 to the change in Fread_file_name.
12430
12431 2004-01-29 Eli Zaretskii <eliz@gnu.org>
12432
12433 * alloca.c [!alloca]: Fix the prototype for xfree.
12434
12435 2004-01-29 Kenichi Handa <handa@m17n.org>
12436
12437 * fns.c (string_char_to_byte): Optimize for ASCII only string.
12438 (string_byte_to_char): Likewise.
12439
12440 2004-01-28 Peter Runestig <peter@runestig.com>
12441
12442 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
12443
12444 2004-01-27 Steven Tamm <steventamm@mac.com>
12445
12446 * unexmacosx.c (unexec_copy): Do not copy more than was
12447 requested to prevent overwriting during unexec.
12448
12449 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12450
12451 * process.c (sigchld_handler): Add comment about not calling malloc.
12452
12453 * process.h: Add extern to synch_process_termsig.
12454
12455 2004-01-27 Steven Tamm <steventamm@mac.com>
12456
12457 * macterm.c (make_mac_frame, make_mac_terminal_frame):
12458 Move setting of scroll bars from make_mac_frame to
12459 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
12460
12461 2004-01-26 Richard M. Stallman <rms@gnu.org>
12462
12463 * search.c (Freplace_match): Handle nonexistent
12464 back-references properly.
12465
12466 2004-01-03 Richard M. Stallman <rms@gnu.org>
12467
12468 * window.c (decode_any_window): New function.
12469 (Fwindow_height, Fwindow_width, Fwindow_edges)
12470 (Fwindow_pixel_edges, Fwindow_inside_edges)
12471 (Fwindow_inside_pixel_edges): Use decode_any_window.
12472
12473 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12474
12475 * process.h: synch_process_termsig new variable.
12476
12477 * callproc.c: Define synch_process_termsig.
12478 (Fcall_process): Initiate synch_process_termsig to zero and
12479 check if non-zero and get signal name after subprocess has ended.
12480
12481 * process.c (sigchld_handler): Set synch_process_termsig
12482 if terminated by a signal. synch_process_death setting removed.
12483
12484 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
12485
12486 2004-01-26 Andreas Schwab <schwab@suse.de>
12487
12488 * print.c (print_preprocess): Declare size as EMACS_INT to not
12489 lose bits.
12490 (print_object): Likewise.
12491 * alloc.c (Fpurecopy): Likewise.
12492
12493 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
12494
12495 * window.c (Fwindow_minibuffer_p): Doc fix.
12496
12497 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
12498
12499 * editfns.c (Fformat): Make both passes accept the same set of flags.
12500
12501 2004-01-23 Kenichi Handa <handa@m17n.org>
12502
12503 * fns.c (Fmd5): If OBJECT is a buffer different from the current
12504 one, set buffer to OBJECT temporarily.
12505
12506 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
12507
12508 * keyboard.c (kbd_buffer_gcpro): Remove.
12509 (kbd_buffer_store_event, clear_event, Fdiscard_input)
12510 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
12511 Don't initialize and/or maintain the variable any more. It was made
12512 redundant by my commit of 2003-06-15.
12513
12514 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
12515
12516 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12517
12518 * lisp.h: Add undef DECL_ALIGN.
12519
12520 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
12521
12522 * process.c (wait_reading_process_input) [SYNC_INPUT]:
12523 Check interrupt_input_pending explicitly.
12524
12525 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
12526
12527 * keyboard.c (handle_async_input): New fun,
12528 extracted from input_available_signal.
12529 (input_available_signal, reinvoke_input_signal): Use it.
12530
12531 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
12532
12533 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
12534
12535 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
12536 manipulation macros for when tags are in the lower bits.
12537 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
12538 (DECL_ALIGN): New macro.
12539 (DEFUN): Use it.
12540
12541 * lisp.h [ENABLE_CHECKING]: Don't force union type.
12542
12543 * s/darwin.h (__attribute__): Remove outdated workaround.
12544
12545 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
12546
12547 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
12548 Don't check range of malloc address.
12549 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
12550
12551 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
12552
12553 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
12554
12555 2004-01-19 Kenichi Handa <handa@m17n.org>
12556
12557 * fontset.c (fontset_font_pattern): Fix previous change.
12558
12559 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
12560
12561 * xdisp.c (Voverflow_newline_into_fringe)
12562 (move_it_in_display_line_to, redisplay_internal)
12563 (update_window_fringes, redisplay_window, display_line, window):
12564 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
12565 that it compiles without a window-system.
12566 * dispnew.c (direct_output_for_insert, update_window): Likewise.
12567
12568 2004-01-16 Kim F. Storm <storm@cua.dk>
12569
12570 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
12571
12572 * buffer.c (init_buffer_once): Set buffer_defaults and
12573 buffer_local_flags for indicate_buffer_boundaries.
12574 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
12575 default- variable for it.
12576
12577 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
12578 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
12579 New members exact_window_width_line_p and cursor_in_fringe_p for
12580 overflowing newlines into right fringe.
12581 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
12582 and indicate_bottom_line_p for buffer boundaries and scrolling.
12583 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
12584 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
12585 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
12586 and HOLLOW_SQUARE_BITMAP.
12587 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
12588 Add prototypes.
12589
12590 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
12591 instead of related indicator fields.
12592 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
12593 (direct_output_for_insert): Handle exact width lines like
12594 contined lines. Call update_window_fringes.
12595 (update_window): Call update_window_fringes.
12596 (scrolling_window): Don't skip desired rows with changed bitmaps.
12597 Check if fringe bitmaps changes when assigning scrolled rows.
12598
12599 * xdisp.c (Voverflow_newline_into_fringe): New variable.
12600 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
12601 (move_it_in_display_line_to): Overflow newline into fringe for
12602 rows that are exactly as wide as the window.
12603 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
12604 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
12605 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
12606 (fringe_bitmaps): Add new bitmaps.
12607 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
12608 Select proper bitmap for cursor in fringe when appropriate.
12609 Handle alignment of bitmap to top or bottom of row.
12610 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
12611 done by update_window_fringes.
12612 (update_window_fringes, draw_window_fringes): New functions.
12613 (redisplay_internal): Call update_window_fringes in case only
12614 cursor row is updated.
12615 (redisplay_window): Call update_window_fringes.
12616 Explicitly call draw_window_fringes if redisplay was done using
12617 the current matrix or the overlay arrow is in the window.
12618 (try_window_reusing_current_matrix): Mark scrolled rows for
12619 fringe update (to update buffer-boundaries / scrolling icons).
12620 (find_last_unchanged_at_beg_row): Handle exact width lines line
12621 continued lines.
12622 (display_line): Overflow newline into fringe for rows that are
12623 exactly as wide as the window. Don't append space for newline
12624 in this case.
12625 (notice_overwritten_cursor): Explicitly clear cursor bitmap
12626 in fringe as if it had been overwritten.
12627 (erase_phys_cursor): Erase cursor bitmap in fringe.
12628 (syms_of_xdisp): Mark show-trailing-whitespace and
12629 void-text-area-pointer as user options.
12630 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
12631
12632 * xterm.c (x_update_window_end): Call draw_window_fringes.
12633 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
12634 in row instead of actually drawing fringe bitmaps.
12635 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
12636 (x_draw_window_cursor): Draw cursor in fringe.
12637
12638 * w32term.c (x_update_window_end): Call draw_window_fringes.
12639 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
12640 in row instead of actually drawing fringe bitmaps.
12641 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
12642 (w32_draw_window_cursor): Draw cursor in fringe.
12643
12644 * macterm.c (x_update_window_end): Call draw_window_fringes.
12645 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
12646 in row instead of actually drawing fringe bitmaps.
12647 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
12648 (mac_draw_window_cursor): Draw cursor in fringe.
12649
12650 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12651
12652 * xterm.c (handle_one_xevent): Don't handle characters that are part
12653 of an old style (XLookupString) compose sequence.
12654
12655 2004-01-15 Kenichi Handa <handa@m17n.org>
12656
12657 * search.c (Freplace_match): Use make_multibyte_string or
12658 make_unibyte_string according to the buffer multibyteness.
12659
12660 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
12661
12662 * alloc.c (struct interval_block, struct string_block)
12663 (struct symbol_block, struct marker_block, live_string_p)
12664 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
12665 Better preserve alignment for objects in blocks.
12666 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
12667
12668 * lread.c (defvar_per_buffer): Remove dead declaration.
12669
12670 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
12671 space size.
12672
12673 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12674
12675 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
12676 if a key press should pop down. Only pop down if a key is pressed
12677 outside the menu/dialog.
12678 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
12679 popup_get_selection.
12680 (create_and_show_dialog): Pass 1 for down_on_keypress to
12681 popup_get_selection.
12682
12683 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12684
12685 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
12686 BLOCK/UNBLOCK_INPUT.
12687
12688 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12689
12690 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
12691 specified.
12692
12693 2004-01-08 Kenichi Handa <handa@m17n.org>
12694
12695 * editfns.c (Fformat): Fix '&' to '&&'.
12696
12697 2004-01-08 Andreas Schwab <schwab@suse.de>
12698
12699 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
12700 size if PSEUDOVECTOR_FLAG is set.
12701
12702 2004-01-07 Kenichi Handa <handa@m17n.org>
12703
12704 * charset.c (Fdeclare_equiv_charset): Fix docstring.
12705
12706 * fontset.c (fontset_ref_via_base): Fix previous change.
12707
12708 2004-01-07 Kim F. Storm <storm@cua.dk>
12709
12710 * process.c (read_process_output): Only activate adaptive
12711 buffering if we read less than 256 bytes at a time.
12712
12713 2004-01-06 Kim F. Storm <storm@cua.dk>
12714
12715 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
12716 object and image object. Return glyph width and height.
12717 (mode_line_string, marginal_area_string): Ditto.
12718
12719 * dispextern.h (buffer_posn_from_coords, mode_line_string)
12720 (marginal_area_string): Fix prototypes.
12721
12722 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
12723 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
12724 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
12725
12726 * keyboard.c (make_lispy_position): Use modified mode_line_string,
12727 buffer_posn_from_coords, and marginal_area_string functions to
12728 include both string object and image object in the lispy position.
12729 Also add actual glyph width and height to position.
12730 (read_key_sequence): Use real buffer position from mouse
12731 event to find keymap property even when click is in marginal area.
12732
12733 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
12734 mode_line_string and marginal_area_string functions to handle
12735 both string object and image object properties.
12736
12737 2004-01-06 Andreas Schwab <schwab@suse.de>
12738
12739 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
12740 character.
12741
12742 2004-01-02 Andreas Schwab <schwab@suse.de>
12743
12744 * macterm.c (emacs_options, x_initialized, same_x_server):
12745 Remove unused (and duplicated) definitions.
12746
12747 2004-01-02 Kim F. Storm <storm@cua.dk>
12748
12749 * process.h (struct Lisp_Process): New members for adaptive read
12750 buffering: adaptive_read_buffering, read_output_delay, and
12751 read_output_skip.
12752
12753 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
12754 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
12755 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
12756 (process_output_delay_count, process_output_skip): New vars.
12757 (Vprocess_adaptive_read_buffering): New variable.
12758 (make_process): Initialize adaptive read buffering members.
12759 (Fstart_process): Set adaptive_read_buffering member.
12760 (deactivate_process): Cleanup adaptive read buffering.
12761 (wait_reading_process_input): Temporarily omit delayed
12762 subprocesses from the set of file descriptors to read from;
12763 adjust the select timeout if we skipped any subprocesses.
12764 (read_process_output): Increase adaptive read buffering delay if
12765 we read less than a full buffer; reduce delay when we read a
12766 full buffer.
12767 (send_process): Simplify using local Lisp_Process var.
12768 Reset adaptive read buffering delay after write.
12769 (init_process): Initialize process_output_delay_count and
12770 process_output_skip.
12771 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
12772
12773 2004-01-01 Jason Rumney <jasonr@gnu.org>
12774
12775 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
12776
12777 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
12778
12779 * print.c (Ferror_message_string): Add hyperlink in the docstring
12780 to the definition of `signal' in the Elisp manual.
12781 * eval.c (Fsignal): Ditto.
12782
12783 2003-12-29 James Clark <jjc@jclark.com>
12784
12785 * fns.c (internal_equal): Return t for two NaN arguments.
12786
12787 2003-12-29 Richard M. Stallman <rms@gnu.org>
12788
12789 * data.c (store_symval_forwarding): Handle setting
12790 default-fill-column, etc., by changing the value in
12791 buffers that use the default.
12792
12793 * minibuf.c (Fset_minibuffer_window): Doc fix.
12794
12795 * fileio.c (choose_write_coding_system): Ignore auto_saving
12796 if using the visited file for auto saves.
12797 (Fwrite_region): Don't update SAVE_MODIFF
12798 if auto-saving in visited file.
12799
12800 2003-12-29 Kenichi Handa <handa@m17n.org>
12801
12802 * dispextern.h (face_font_available_p): Extern it.
12803
12804 * fontset.c (Voverriding_fontspec_alist): New variable.
12805 (lookup_overriding_fontspec): New function.
12806 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
12807 (fontset_font_pattern): Likewise.
12808 (regulalize_fontname): New function.
12809 (Fset_fontset_font): Call regulalize_fontname.
12810 (Fset_overriding_fontspec_internal): New function.
12811 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
12812 Defsubr Sset_overriding_fontspec_internal.
12813
12814 * xfaces.c (face_font_available_p): New function.
12815
12816 2003-12-28 Richard M. Stallman <rms@gnu.org>
12817
12818 * buffer.c (Fother_buffer): Don't crash if BUF is nil
12819 or if its name is nil.
12820
12821 * buffer.c (Fkill_buffer): Don't delete auto-save file
12822 if it's the same as the visited file.
12823
12824 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
12825
12826 * coding.c (Fcheck_coding_system): Doc fix.
12827
12828 2003-12-28 Kim F. Storm <storm@cua.dk>
12829
12830 * Makefile.in (eval.o): Depend on dispextern.h.
12831
12832 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
12833 image glyph using image's ascent.
12834 (mode_line_string): Return image glyph as object clicked on.
12835 Adjust y0 for image glyph using image's ascent.
12836
12837 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
12838 (struct glyph): New members, ascent and descent. Used to save
12839 this glyph's ascent and descent, instead of having.
12840 (struct glyph): Declare member face_id using FACE_ID_BITS.
12841 (find_hot_spot): Add prototype.
12842
12843 * keyboard.c (Qimage): Remove extern (now in lisp.h).
12844 (QCmap): Declare extern.
12845 (make_lispy_position): When position is inside image hot-spot,
12846 use hot-spot element's id as posn element.
12847
12848 * lisp.h (IMAGEP): New macro to test for image object type.
12849 (Qimage): Declare extern.
12850
12851 * macfns.c (Qimage): Remove extern (now in lisp.h).
12852 (valid_image_p, parse_image_spec): Use IMAGEP macro.
12853
12854 * macterm.c (Qface, Qmouse_face): Remove unused externs.
12855
12856 * w32fns.c (Qimage): Remove extern (now in lisp.h).
12857 (valid_image_p, parse_image_spec): Use IMAGEP macro.
12858
12859 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
12860
12861 * w32term.c (Qface, Qmouse_face): Remove unused externs.
12862
12863 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
12864 pointer types.
12865 (Qrelative_width, Qalign_to): Remove unused variables.
12866 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
12867 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
12868 image maps.
12869 (x_y_to_hpos_vpos): Return glyph relative coordinates through
12870 new dx and dy args.
12871 Remove buffer_only_p arg (always 0). Simplify code accordingly.
12872 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
12873 than row's ascent and height, to get sensible height on tall rows.
12874 (build_desired_tool_bar_string): Remove Qimage extern.
12875 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
12876 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
12877 image glyph is alone on the last line.
12878 (append_glyph, append_composite_glyph, produce_image_glyph)
12879 (append_stretch_glyph): Set glyph's ascent and descent.
12880 (on_hot_spot_p): New function to check if position is inside an
12881 rectangular, circular, or polygon-shaped image hot-spot,
12882 (find_hot_spot): New function to search for image hot-spot.
12883 (Flookup_image_map): New defun to search for image hot-spot.
12884 (define_frame_cursor1): New aux function to determine frame pointer.
12885 (note_mode_line_or_margin_highlight, note_mouse_highlight):
12886 Handle `pointer' text property and :pointer image property to
12887 control frame pointer shape. Detect image hot-spots for pointer
12888 and help_echo properties. Use define_frame_cursor1.
12889 (note_mouse_highlight): Use Vvoid_text_area_pointer.
12890 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
12891 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
12892
12893 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
12894
12895 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
12896 (Qimage): Remove extern (now in lisp.h).
12897 (valid_image_p, parse_image_spec): Use IMAGEP macro.
12898
12899 * xmenu.c (show_help_event): Remove unused code.
12900
12901 * xterm.c (Qface, Qmouse_face): Remove unused externs.
12902 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
12903 row's ascent and descent, to get a sensible height on tall rows.
12904
12905 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
12906
12907 * minibuf.c (Fcompleting_read): Undo previous change.
12908
12909 2003-12-25 Lars Hansen <larsh@math.ku.dk>
12910
12911 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
12912 Arguments GCPRO'ed in call to file name handler.
12913
12914 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
12915
12916 * termcap.c (tgetst1): Scan for "%pN"; if all
12917 N are continuous in [1,9], remove all "%pN".
12918
12919 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12920
12921 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
12922
12923 * xfaces.c (lface_fully_specified_p): Take into account that
12924 MAC OS always have unspecified stipple.
12925
12926 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
12927
12928 * tparam.c (tparam1): Add handling for `%pN', which
12929 means use param N for the next substitution.
12930
12931 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
12932
12933 * xfaces.c (Fcolor_gray_p): Fix omission bug:
12934 In case `frame' is nil, consult the selected frame.
12935 (Fcolor_supported_p): Likewise.
12936
12937 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
12938
12939 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
12940 Doc fixes.
12941
12942 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
12943 and an integer. Adapt the introductory comment accordingly.
12944 (Fread_from_minibuffer): Delete code moved into read_minibuf.
12945 Doc fix.
12946 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
12947 read_minibuf.
12948 (Fcompleting_read): Delete code moved into read_minibuf.
12949 (Ftest_completion): Make it handle obarrays and hash tables correctly.
12950
12951 2003-12-03 Kenichi Handa <handa@m17n.org>
12952
12953 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
12954 encoding sequence.
12955
12956 2003-12-01 Kenichi Handa <handa@m17n.org>
12957
12958 * composite.c (syms_of_composite): Don't make the compostion hash
12959 table week.
12960
12961 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
12962
12963 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
12964 * textprop.c (Fget_char_property_and_overlay): New function.
12965 (syms_of_textprop): Defsubr it.
12966
12967 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12968
12969 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
12970 to compile on terminal configuration.
12971
12972 * fileio.c (Fread_file_name): Check use_file_dialog also before
12973 calling Fx_file_dialog.
12974
12975 * fns.c (use_file_dialog): New variable.
12976 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
12977
12978 2003-11-29 Kim F. Storm <storm@cua.dk>
12979
12980 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
12981 (syms_of_msdos): Don't intern and staticpro them.
12982
12983 2003-11-27 Kim F. Storm <storm@cua.dk>
12984
12985 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
12986 coordinates relative to glyph at posn. If glyph is an image,
12987 return that as object at posn. Callers changed.
12988 (mode_line_string, marginal_area_string): Calculate and return
12989 pixel coordinates relative to glyph. Callers changed.
12990
12991 * dispextern.h (buffer_posn_from_coords, mode_line_string)
12992 (marginal_area_string): Fix prototypes.
12993 (window_box_left_offset, window_box_right_offset): Add prototypes.
12994
12995 * frame.h (get_specified_cursor_type, get_window_cursor_type):
12996 Remove prototypes.
12997
12998 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
12999
13000 * keyboard.c (make_lispy_position): Add x and y coordinates
13001 relative to the current glyph as 7th element of position.
13002 If glyph is an image, return it in the object element.
13003 (read_key_sequence): Skip checks for keymap property in cases
13004 where POSN_STRING is not a string (e.g. an image).
13005
13006 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
13007 (Vshow_text_cursor_in_void): New variable.
13008 (glyph_to_pixel_coords): Don't use negative hpos.
13009 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
13010 (append_stretch_glyph): Change ascent arg to be actual value
13011 in pixels rather than ratio to height. Callers changed.
13012 (calc_pixel_width_or_height): New aux function, implementing
13013 pixel based artihmetic for glyph widths and heights.
13014 (produce_stretch_glyph): Use calc_pixel_width_or_height for
13015 :width, :height, :align-to, and :ascent, thus allowing these to
13016 be specified in pixels as well as multiples of characters.
13017 Don't produce stretch glyphs with zero width or height.
13018 (get_specified_cursor_type): Declare static.
13019 (get_window_cursor_type): Declare static. Add glyph arg to be
13020 able to know when cursor is on an image; always substitute
13021 hollow-box cursor for filled-box cursor on images, to avoid
13022 negative images and flicker when blinking the cursor.
13023 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
13024 (note_mode_line_or_margin_highlight): Use non-text cursor rather
13025 than vertical scroll-bar cursor in display margins.
13026 (note_mouse_highlight): Use non-text cursor rather than text
13027 cursor in fringes and over images in the text area.
13028 Use non-text cursor when mouse pointer is outside editable text,
13029 i.e. in the void after end-of-line or end-of-buffer; this was
13030 already done for W32, but is now standard for all systems --
13031 user can toggle show-text-cursor-in-void to get old behaviour.
13032 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
13033 Vdisplay_pixels_per_inch.
13034
13035 2003-11-25 Andreas Schwab <schwab@suse.de>
13036
13037 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
13038 EMACS_INT to not lose bits.
13039 (Ffillarray): Don't set bits beyond the size of a bool vector.
13040
13041 2003-11-25 Kim F. Storm <storm@cua.dk>
13042
13043 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
13044 define this defun on systems that cannot use stderr as lvalue.
13045
13046 2003-11-24 Gerd Moellmann <gerd@gnu.org>
13047
13048 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
13049 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
13050 ld's default is incompatible with unexec.
13051
13052 2003-11-23 Kim F. Storm <storm@cua.dk>
13053
13054 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
13055 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
13056 (Fforce_window_update): New defun.
13057 (syms_of_window): Defsubr it.
13058 (Fset_window_margins, Fset_window_fringes): Doc fix.
13059
13060 * print.c (Fredirect_debugging_output): New defun.
13061 (syms_of_print): Defsubr it.
13062
13063 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
13064
13065 * fns.c (Fset_char_table_parent): Doc fix.
13066
13067 2003-11-22 Kim F. Storm <storm@cua.dk>
13068
13069 * dispnew.c (buffer_posn_from_coords): Return actual row/column
13070 for glyph clicked on, rather than (unused) pixel positions.
13071 (mode_line_string, marginal_area_string): Change X and Y args to
13072 pointers for returning actual row/column for glyph clicked on.
13073 Simplify and optimize loops.
13074
13075 * dispextern.h (mode_line_string, marginal_area_string):
13076 Update prototypes.
13077
13078 * keyboard.c (make_lispy_position): New function for generating
13079 mouse click positions from frame and pixel coordinates.
13080 Enhanced to return buffer position and actual row/column for
13081 events outside the text area using updated mode_line_string and
13082 marginal_area_string functions.
13083 Return left-fringe and right-fringe clicks as such, rather than
13084 clicks in text area.
13085 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
13086 pixel_to_glyph_coords, as we never use the results.
13087 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
13088 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
13089 Eliminate unused code in WHEEL_EVENT handling.
13090 (make_lispy_movement): Use make_lispy_position.
13091
13092 * window.c (coordinates_in_window): Remove redundant tests.
13093 Fix returned X pixel value for left-margin.
13094
13095 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
13096 mode_line_string and marginal_area_string parameters.
13097
13098 2003-11-22 Lars Hansen <larsh@math.ku.dk>
13099
13100 * w32.c (struct the_group, getgrgid): Add.
13101 * mac.c (struct my_group, getgrgid): Add.
13102
13103 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
13104
13105 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
13106
13107 2003-11-21 Lars Hansen <larsh@math.ku.dk>
13108
13109 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
13110 include in call to file name handler. Optionally translate numeric
13111 UID and GID to strings. Update docstring.
13112 (directory_files_internal): Add parameter ID-FORMAT.
13113 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
13114 include in call to file name handler and call to
13115 directory_files_internal. Update Docstring.
13116 (Fdirectory_files): Add dummy parameter in call to
13117 directory_files_internal.
13118 * lisp.h (Qinteger): Add.
13119 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
13120 (Ffile_attributes): Add parameter.
13121 * data.c (Qinteger): Export.
13122
13123 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
13124
13125 * fns.c (Freverse, Fnreverse): Doc fixes.
13126
13127 2003-11-19 Kim F. Storm <storm@cua.dk>
13128
13129 * xdisp.c (init_iterator): Initialize it->start to position
13130 before reseating (in case start position is invisible).
13131 (init_to_row_start): Set it->start to row-start.
13132 (redisplay_window): Accept optional_new_start if start position
13133 is invisible (in which case IT_CHARPOS overshoots PT).
13134 (display_line): Setup row->start from it->start (rather than
13135 it->current which is wrong if first char on line is invisible).
13136 When done, reseat it->start to it->current (= start of next row).
13137 (expose_area): Fix exposure of text area when first char (e.g. TAB)
13138 is only partially visible.
13139
13140 * dispextern.h (struct it): New member start.
13141
13142 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
13143
13144 * alloc.c (make_float, Fcons): Clear the markbit at init time.
13145 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
13146 of block_index outside of the macro call.
13147 (Fgarbage_collect): Remove null code.
13148
13149 * m/amdx86-64.h: Don't redefine XPNTR.
13150
13151 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
13152 of VALMASK.
13153
13154 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
13155 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
13156 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
13157
13158 * lisp.h (VALMASK): Only define for non-union type.
13159 (MARKBIT): Remove.
13160 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
13161 (XTYPE): Define unconditionally.
13162 (XSETTYPE): Remove one more remnant.
13163 (EQ): Define differently for the union and non-union cases.
13164 (INTMASK): New bit mask.
13165 (struct Lisp_Marker): Move down to prepare for upcoming patch.
13166 (GC_EQ): Delegate to EQ.
13167
13168 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
13169
13170 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13171
13172 * xterm.c (x_window_to_scroll_bar): Move check of display to
13173 where window_id is compared.
13174
13175 2003-11-17 Kim F. Storm <storm@cua.dk>
13176
13177 * dispextern.h (struct it): New member first_vpos.
13178
13179 * xdisp.c (start_display): Set it->first_vpos.
13180 (try_window_id): Use first_vpos to start display in first _text_
13181 line if no reusable lines at start of window with header line.
13182
13183 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13184
13185 * w32fns.c (XPutPixel):
13186 * w32bdf.c (w32_init_bdf_font):
13187 * sunfns.c (sel_read):
13188 * process.c (Fmake_network_process):
13189 * frame.c (store_frame_param):
13190 * fontset.c (Fset_fontset_font):
13191 * emacs.c (shut_down_emacs):
13192 * ccl.c (ccl_driver): Remove period at end of error message.
13193
13194 * config.in: Regenerate.
13195
13196 * xfns.c (x_window_to_frame, x_any_window_to_frame)
13197 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
13198 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
13199 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
13200 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
13201
13202 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
13203
13204 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
13205 (XTmouse_position, handle_one_xevent): Pass Display* to
13206 x_window_to_scroll_bar.
13207 (x_window_to_scroll_bar): Take a Display* argument.
13208 Check that display for frame is equal to Display* argument.
13209 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
13210 x_display_info_for_display instead. Use Display in xev instead
13211 of GDK_DISPLAY.
13212 (x_dispatch_event): Call x_display_info_for_display.
13213 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
13214 (x_connection_closed): Call xg_display_close for GTK.
13215 (x_term_init): Call xg_display_open for additional displays.
13216 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
13217 for GTK.
13218
13219 * xmenu.c (single_menu_item, mouse_position_for_popup)
13220 (x_activate_menubar): Formatting adjustments.
13221
13222 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
13223 adjustments.
13224
13225 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
13226 (xg_display_close, xg_create_default_cursor)
13227 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
13228 handling.
13229 (xg_left_ptr_cursor): Remove.
13230 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
13231 cursor here.
13232 (xg_win_to_widget): Take Display* argument, call
13233 gdk_xid_table_lookup_for_display.
13234 (xg_create_frame_widgets, xg_get_file_name, create_menus)
13235 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
13236 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
13237 in FRAME_X_DISPLAY_INFO.
13238 (xg_get_scroll_id_for_window): Take Display* argument.
13239 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
13240 (xg_initialize): Remove xg_left_ptr_cursor.
13241
13242 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
13243 Display* argument.
13244 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
13245
13246 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13247
13248 * xterm.c (x_detect_focus_change): Do not change focus frame for
13249 Enter/LeaveNotify if the current focus frame has explicit focus.
13250
13251 2003-11-14 Kim F. Storm <storm@cua.dk>
13252
13253 * dispnew.c (update_text_area): Fix redisplay error when hscroll
13254 is active and first glyph is only partially visible.
13255
13256 2003-11-13 Kenichi Handa <handa@m17n.org>
13257
13258 * xdisp.c (select_frame_for_redisplay): New function.
13259 (redisplay_internal): Record also selected_frame for
13260 unwind_redisplay. Call select_frame_for_redisplay before
13261 redrawing each frame.
13262 (unwind_redisplay): Argument changed to a cons.
13263
13264 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
13265
13266 * fns.c (Fstring_to_multibyte): Doc fix.
13267
13268 2003-11-11 Kenichi Handa <handa@m17n.org>
13269
13270 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
13271
13272 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13273
13274 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
13275 program specified positions.
13276
13277 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13278
13279 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
13280
13281 2003-11-08 Kenichi Handa <handa@m17n.org>
13282
13283 * Makefile.in (lisp): Add kannada.el.
13284 (shortlisp): Likewise.
13285
13286 2003-11-07 Kenichi Handa <handa@m17n.org>
13287
13288 * coding.c (coding_allocate_composition_data):
13289 Reset coding->composing to COMPOSITION_NO.
13290 (coding_restore_composition): Detect invalid composition data.
13291 Give Fstring and Fvector a Lispy integer, not C int.
13292
13293 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
13294
13295 * floatfns.c (Flogb): Don't use VALMASK.
13296
13297 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
13298 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
13299
13300 * lisp.h (XINT): Move the cast to clarify what is going on.
13301 (GCTYPEMASK, XSETTYPE): Remove.
13302 (XGCTYPE): Make it an alias of XTYPE.
13303
13304 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13305
13306 * xterm.c (x_term_init): Fix formatting.
13307
13308 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13309
13310 * gtkutil.h (xg_have_tear_offs): Declare.
13311 (xg_keep_popup, xg_did_tearoff): Remove.
13312
13313 * gtkutil.c: Remove variable xg_did_tearoff.
13314 (xg_have_tear_offs): New function.
13315 (tearoff_remove): Just decrease xg_detached_menus.
13316 (tearoff_activate): Increase xg_detached_menus and call
13317 tearoff_remove when tearoff is removed.
13318 (xg_keep_popup): Remove function.
13319 (create_menus): Give add_tearoff_p as argument to recursive
13320 call to create_menus.
13321 (xg_create_widget): Use variables instead of multiple
13322 strcmp. Tell create_menus to create tear off only for
13323 menu bar menus.
13324 (xg_update_menubar): Change title for a detached menu also.
13325 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
13326 of deep_p.
13327 (xg_initialize): Initialize xg_detached_menus, remove
13328 initialization of xg_did_tearoff.
13329
13330 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
13331 xg_have_tear_offs returns non-zero.
13332 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
13333 call to xg_keep_popup.
13334
13335 2003-11-01 Andrew Choi <akochoi@shaw.ca>
13336
13337 * macterm.c (XTread_socket): Handle menubar selection and grow
13338 window only for mouseDown events.
13339
13340 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13341
13342 * xterm.c (x_term_init): For GTK part, increase x_initialized
13343 to check for more than one display. Use error instead of return 0.
13344
13345 2003-10-31 Andrew Choi <akochoi@shaw.ca>
13346
13347 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
13348 (copy_dysymtab): Call it.
13349
13350 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
13351
13352 * eval.c (Fdefvaralias): Doc fix.
13353
13354 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
13355
13356 * data.c (Fsetplist): Doc fix.
13357
13358 2003-10-14 Lute Kamstra <lute@gnu.org>
13359
13360 * window.c (Fset_window_fringes): Clarify docstring.
13361
13362 2003-10-14 Kim F. Storm <storm@cua.dk>
13363
13364 * window.c (Fset_window_margins): Simplify arg checking.
13365
13366 2003-10-13 Richard M. Stallman <rms@gnu.org>
13367
13368 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
13369 (print_partial_compiled_pattern): Replace assert with a printout.
13370 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
13371
13372 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
13373
13374 * window.c (Fset_window_margins): Allow only integers as args.
13375 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
13376 Doc fixes.
13377
13378 2003-10-13 Lute Kamstra <lute@gnu.org>
13379
13380 * window.c (Fset_window_fringes): Elaborate docstring.
13381
13382 2003-10-12 Andrew Choi <akochoi@shaw.ca>
13383
13384 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
13385
13386 * s/darwin.h (GC_MARK_STACK): Define.
13387
13388 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13389
13390 * window.c (shrink_windows): New function.
13391 (size_window): Call shrink_windows to calculate window sizes when
13392 shrinking frame with more than one window.
13393
13394 2003-10-12 Kim F. Storm <storm@cua.dk>
13395
13396 * xdisp.c (compute_fringe_widths): Doc fix.
13397
13398 2003-10-08 Kenichi Handa <handa@m17n.org>
13399
13400 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
13401
13402 2003-10-07 Kenichi Handa <handa@m17n.org>
13403
13404 * coding.c (Qcoding_system_define_form): New variable.
13405 (syms_of_coding): Intern and staticpro it.
13406 (Fcheck_coding_system): Try to autoload the definition of
13407 CODING-SYSTEM.
13408
13409 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
13410
13411 * fns.c (Frequire): Doc fix.
13412
13413 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13414
13415 * xfns.c (Fx_send_client_event): New function as a base for
13416 manipulating extended window manager hints.
13417 (Fx_send_client_event): Remove unused variable s.
13418
13419 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
13420 that function is removed.
13421
13422 * xterm.c (x_set_offset): Use move_offset_left/top instead of
13423 x/y_pixels_outer_diff.
13424 (x_check_expected_move): Calculate move_offset_left/top.
13425
13426 * xterm.h (struct x_output): New members: move_offset_top/left.
13427
13428 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
13429 call x_set_offset directly.
13430
13431 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
13432
13433 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
13434
13435 * xterm.c (x_delete_display): Free font names and font_encoder
13436 in dpyinfo->font_table.
13437
13438 * xfns.c (Fx_close_connection): Only call XFreeFont here.
13439 Move xfree of font names to x_delete_display.
13440
13441 * xterm.h (struct x_display_info): New member, wm_type.
13442 (struct x_output): New members, expected_top/left and
13443 check_expected_move.
13444
13445 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
13446 is received.
13447 (handle_one_xevent): Rename x_check_expected_move from
13448 x_check_fullscreen_move.
13449 (x_set_offset): Only add WM decoration sizes to modified_top/left
13450 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
13451 (x_check_expected_move): Rename from x_check_fullscreen_move.
13452 Removed fullscreen specific code. Use check_expected_move,
13453 expected_left/top instead. Also, set wm_type.
13454 (x_term_init): Initialize wm_type to unknown.
13455
13456 * frame.c (x_fullscreen_move): Remove addition of WM decoration
13457 sizes to move_x/y.
13458
13459 2003-10-03 Kenichi Handa <handa@m17n.org>
13460
13461 * macterm.c (x_load_font): Clear all members of FONTP before start
13462 filling them.
13463
13464 2003-10-02 Kenichi Handa <handa@m17n.org>
13465
13466 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
13467 before calling find_ccl_program_func. Call find_ccl_program_func
13468 only when fontp->font_encoder is not NULL.
13469
13470 * xterm.c (x_load_font): Clear all members of FONTP before start
13471 filling them.
13472
13473 2003-10-03 John Paul Wallington <jpw@gnu.org>
13474
13475 * keymap.c (map_keymap): Don't abort when binding is a vector.
13476
13477 2003-10-02 Jason Rumney <jasonr@gnu.org>
13478
13479 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
13480 Sync dependencies with Makefile.in.
13481 (alloca.o): Remove.
13482
13483 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
13484 filling them.
13485
13486 * w32bdf.c (w32_load_bdf_font): Likewise.
13487
13488 2003-09-30 Richard M. Stallman <rms@gnu.org>
13489
13490 * term.c (set_tty_color_mode): Calculate current_mode_spec
13491 regardless of value of VAL.
13492
13493 * intervals.c (graft_intervals_into_buffer):
13494 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
13495 Handle over_used when splitting UNDER.
13496
13497 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13498
13499 * regex.c (regex_compile): Free the stack when returning from function.
13500
13501 2003-09-28 Kenichi Handa <handa@m17n.org>
13502
13503 * fontset.c (Finternal_char_font): Change return value to
13504 cons (FONT-NAME . GLYPH-CODE).
13505
13506 2003-09-28 Eli Zaretskii <eliz@gnu.org>
13507
13508 * term.c (tty_setup_colors): Treat any negative argument as -1.
13509
13510 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
13511
13512 * process.c (send_process): Delete unused temp_buf.
13513
13514 2003-09-26 Dave Love <fx@gnu.org>
13515
13516 * xterm.c (x_bitmap_mask): Declare.
13517
13518 2003-09-25 Dave Love <fx@gnu.org>
13519
13520 * Makefile.in (fns.o): Depend on md5.h.
13521
13522 2003-09-25 Kim F. Storm <storm@cua.dk>
13523
13524 * window.c (set_window_buffer): Fix redisplay problems when
13525 switching between buffers with different display margin widths.
13526
13527 2003-09-23 Kim F. Storm <storm@cua.dk>
13528
13529 * process.c (set_socket_option): Fix :bindtodevice option.
13530 (Fset_network_process_option): Update process contact list when
13531 setting option succeeds.
13532 (Fmake_network_process): Doc fix.
13533
13534 2003-09-23 Dave Love <fx@gnu.org>
13535
13536 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
13537
13538 2003-09-22 Eli Zaretskii <eliz@gnu.org>
13539
13540 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
13541 color mode is an integer number (it could be -1).
13542
13543 2003-09-22 Richard M. Stallman <rms@gnu.org>
13544
13545 * intervals.c (graft_intervals_into_buffer): Correct the main loop
13546 in the case where OVER is longer than UNDER.
13547
13548 2003-09-22 Masatake YAMATO <jet@gyve.org>
13549
13550 * window.c (Fset_window_scroll_bars): Validate the value of
13551 `vertical_type'.
13552
13553 2003-09-21 Kim F. Storm <storm@cua.dk>
13554
13555 * frame.c (Vdefault_frame_scroll_bars): New variable.
13556 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
13557 (syms_of_frame): DEFVAR_LISP it, and initialize according to
13558 window-system default scroll bar position.
13559
13560 * window.c (Fwindow_scroll_bars): Doc fix.
13561
13562 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13563
13564 * xterm.c (x_set_offset): Take window manager decorations into account.
13565
13566 2003-09-19 Richard M. Stallman <rms@gnu.org>
13567
13568 * atimer.h: Don't include lisp.h.
13569 (P_): Define it here (as well as elsewhere).
13570
13571 * print.c (Fprin1_to_string): Move the PRINTPREPARE
13572 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
13573
13574 * data.c (Fvariable_binding_locus): New function.
13575 (syms_of_data): defsubr it.
13576 (Flocal_variable_p): Delete duplicate call to indirect_variable.
13577
13578 2003-09-18 Dave Love <fx@gnu.org>
13579
13580 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
13581
13582 * process.c (Fnetwork_interface_info): Fix type error.
13583 (Fnetwork_interface_list): Doc fix.
13584 (read_process_output, read_process_output): Delete unused var.
13585
13586 2003-09-17 Kim F. Storm <storm@cua.dk>
13587
13588 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
13589 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
13590 (Fnetwork_interface_info): Check that ifreq struct has required
13591 fields before accessing them; this requires that those fields are
13592 defined as macros, which may be too restrictive on some platforms,
13593 but it is better than failing on other platforms.
13594 (syms_of_process): Only defsubr above fns when included.
13595
13596 2003-09-17 Dave Love <fx@gnu.org>
13597
13598 * unexalpha.c: Don't include varargs.h.
13599
13600 2003-09-17 Kim F. Storm <storm@cua.dk>
13601
13602 * process.c (Fset_process_sentinel): Add sentinel to childp plist
13603 for network process.
13604 (socket_options): Add `:' prefix to option names. Add optbit field.
13605 (set_socket_option): Remove no_error arg and special handling of s < 0.
13606 Return 1<<optbit for known option, 0 for unknown.
13607 Do not interpret 0 as false for boolean option (only nil).
13608 Pass failed option and value to report_file_error.
13609 (Fset_network_process_options): Replace by Fset_network_process_option.
13610 (Fset_network_process_option): New function to set just one option.
13611 (Fmake_network_process): Allow :coding arg to be a cons.
13612 Allow :server arg to be an integer specifying backlog size.
13613 Remove :options arg, and allow options to be specified directly
13614 as :KEY, VALUE pairs. Parse these options before binding socket.
13615 As before, :reuseaddr t is default for a server process, but this
13616 can now be disabled by specifying :reuseaddr nil.
13617 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
13618 (init_process): Availability of network options is now checked with
13619 simpler syntax (featurep 'make-network-process :OPTION); use loop to
13620 setup features.
13621 (syms_of_process): Fix defsubr's for the replaced functions.
13622
13623 2003-09-16 Dave Love <fx@gnu.org>
13624
13625 * Makefile.in: Depend on coding.h.
13626
13627 2003-09-14 Kim F. Storm <storm@cua.dk>
13628
13629 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
13630 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
13631 (syms_of_process): Defsubr them.
13632
13633 * config.in: Regenerate.
13634
13635 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
13636
13637 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
13638 * m/news-r6.h (XUNMARK): Remove.
13639 * m/mips.h (XUNMARK): Remove.
13640 * m/mips-siemens.h (XUNMARK): Remove.
13641 * m/iris4d.h (XUNMARK): Remove.
13642 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
13643
13644 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
13645
13646 * lisp.h (VALBITS): Don't remove 1 for the markbit.
13647 (union Lisp_Object): Use unsigned int for types. Remove markbit.
13648 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
13649 (XTYPE): Use unsigned right-shift.
13650 (XMARKBIT, XMARK, XUNMARK): Remove.
13651
13652 * alloc.c (init_intervals, init_symbol, init_marker):
13653 Don't preallocate anything.
13654 (Fgarbage_collect, mark_object): Ignore the markbit.
13655
13656 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
13657
13658 2003-09-08 Lute Kamstra <lute@gnu.org>
13659
13660 * xdisp.c (pint2hrstr): New function.
13661 (decode_mode_spec): Add `%i' and `%I' specs.
13662 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
13663 for `mode-line-format'.
13664
13665 2003-09-07 Andreas Schwab <schwab@suse.de>
13666
13667 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
13668 avoid warning.
13669
13670 2003-09-07 Eli Zaretskii <eliz@gnu.org>
13671
13672 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
13673
13674 2003-09-03 Kim F. Storm <storm@cua.dk>
13675
13676 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
13677 change (superseded by 2002-08-30 change); the default blink-off
13678 cursor is now again "no cursor".
13679
13680 2003-09-01 Jason Rumney <jasonr@gnu.org>
13681
13682 * makefile.w32-in (alloca.o): Remove.
13683 (coding.o): Depend on intervals.h
13684 (emacs.o, bytecode.o): Depend on window.h
13685
13686 2003-09-01 Dave Love <fx@gnu.org>
13687
13688 * Makefile.in (alloca.o): Remove commands.
13689 (coding.o): Depend on intervals.h composite.h window.h.
13690 (emacs.o): Depend on window.h keyboard.h keymap.h.
13691 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
13692 (bytecode.o): Depend on window.h.
13693
13694 2003-08-31 Jason Rumney <jasonr@gnu.org>
13695
13696 * w32term.c (w32_per_char_metric): Allow cached metrics to be
13697 returned even when font_type is unknown.
13698
13699 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
13700
13701 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13702
13703 * xterm.c (x_term_init): Initialize new fields in x_display_info.
13704
13705 * xterm.h (struct x_display_info): Add red/green/blue_bits and
13706 *_offset.
13707
13708 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
13709 calculate pixel value.
13710
13711 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
13712
13713 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
13714 Don't tell redisplay display is accurate when it's actually been
13715 paused for pending input.
13716
13717 2003-08-29 Richard M. Stallman <rms@gnu.org>
13718
13719 * dispnew.c (adjust_glyph_matrix): Call window_box
13720 whenever W is nonzero.
13721
13722 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13723 (Fkill_local_variable, Fmake_variable_frame_local)
13724 (Flocal_variable_p, Flocal_variable_if_set_p):
13725 Use indirect_variable to trace thru variable aliases.
13726
13727 * config.in: Updated.
13728
13729 * callint.c (Fcall_interactively): Save and restore
13730 Vthis_command, Vthis_original_command, real_this_command,
13731 and current_kboard->Vlast_command.
13732
13733 * abbrev.c (Fexpand_abbrev): Insert before deleting.
13734
13735 2003-08-29 Gerd Moellmann <gerd@gnu.org>
13736
13737 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
13738
13739 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
13740
13741 * coding.c (decode_coding_iso2022): Initialize local variable c2.
13742 (decode_coding_sjis_big5): Likewise.
13743
13744 2003-08-27 Jason Rumney <jasonr@gnu.org>
13745
13746 * w32.c (sys_pipe): Protect against file descriptor overflow.
13747
13748 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
13749
13750 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
13751
13752 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
13753
13754 * xfns.c (Vgtk_version_string): New variable.
13755 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
13756
13757 2003-08-24 Eli Zaretskii <eliz@gnu.org>
13758
13759 * term.c (term_init): Remove `const' from buffer_size's declaration.
13760
13761 * Makefile.in (msdos.o): Depend on intervals.h.
13762
13763 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
13764
13765 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13766
13767 * xterm.h (struct x_display_info): New fields: client_leader_window
13768 and Xatom_wm_client_leader.
13769
13770 * xterm.c (x_initialize): Move call to x_session_initialize to ...
13771 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
13772
13773 * xsmfns.c (create_client_leader_window): New function.
13774 (x_session_initialize): Call create_client_leader_window, take
13775 dpyinfo as argument.
13776
13777 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
13778
13779 * Makefile.in (xsmfns.o): Add more depenedencies.
13780
13781 2003-08-21 Dave Love <fx@gnu.org>
13782
13783 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
13784
13785 2003-08-21 Kenichi Handa <handa@m17n.org>
13786
13787 * term.c (term_init): Fix previous change; don't rely on the
13788 length of `buffer' if TERMINFO is defined.
13789
13790 2003-08-20 Dave Love <fx@gnu.org>
13791
13792 * atimer.h: Include lisp.h.
13793
13794 * lisp.h (EMACS_LISP_H): New.
13795 (popup_activated_flag): Don't declare.
13796
13797 * alloca.c: Some merging with gnulib. Change logic and doc
13798 concerning (x)malloc/(x)free -- no longer Emacs-specific.
13799 [DO_BLOCK_INPUT]: Don't include lisp.h.
13800 (xmalloc, xfree): Declare.
13801 (malloc): Don't declare.
13802
13803 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
13804 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
13805 atimer.h, blockinput.h.
13806
13807 * alloc.c (lisp_align_malloc): Change type of `aligned'.
13808
13809 * alloca.s: Remove.
13810
13811 2003-08-19 Gerd Moellmann <gerd@gnu.org>
13812
13813 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
13814 use -lncurses.
13815
13816 * term.c (term_init): Use a buffer of size 4096 for tgetent since
13817 FreeBSD returns something longer than 2044. Abort if the end of
13818 the buffer is overwritten.
13819
13820 2003-08-19 Miles Bader <miles@gnu.org>
13821
13822 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
13823
13824 2003-08-19 Gerd Moellmann <gerd@gnu.org>
13825
13826 * alloc.c (lisp_align_malloc): Check for memory full when
13827 allocating ablocks, which also avoids freeing a pointer into an
13828 ablocks structure.
13829
13830 * puresize.h (BASE_PURESIZE): Increase to 1100000.
13831
13832 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
13833
13834 2003-08-16 Richard M. Stallman <rms@gnu.org>
13835
13836 * editfns.c (Fencode_time): Doc fix.
13837
13838 2003-08-16 David Ponce <david@dponce.com>
13839
13840 * fileio.c (Fwrite_region): Fix conditional expression to issue
13841 the right message.
13842
13843 2003-08-16 Juri Linkov <juri@jurta.org>
13844
13845 * syntax.c (Fforward_word): Argument changed to optional.
13846 Set default value to 1.
13847
13848 2003-08-15 Kenichi Handa <handa@m17n.org>
13849
13850 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
13851 what autoscaled.
13852 (best_matching_font): Once we find a better scalable font, set
13853 non_scalable_has_exact_height_p to 1.
13854 (try_font_list): Call try_alternative_families to try any family
13855 with the given registry.
13856
13857 2003-08-09 Andreas Schwab <schwab@suse.de>
13858
13859 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
13860
13861 * print.c (print_string): Fix printing of multibyte string with
13862 nontrivial printcharfun.
13863
13864 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13865
13866 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
13867
13868 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
13869
13870 2003-07-31 Kenichi Handa <handa@m17n.org>
13871
13872 * process.c (read_process_output): Return the actually read bytes
13873 instead of the result of decoding.
13874
13875 2003-07-31 Kenichi Handa <handa@m17n.org>
13876
13877 * xterm.h (struct x_bitmap_record): New member have_mask.
13878
13879 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
13880 to 0.
13881 (x_create_bitmap_from_file): Likewise.
13882 (x_destroy_bitmap): Check have_mask member before freeing a mask.
13883 (x_destroy_all_bitmaps): Likewise.
13884 (x_create_bitmap_mask): Set have_mask member to 1.
13885
13886 2003-07-30 Richard M. Stallman <rms@gnu.org>
13887
13888 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
13889
13890 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13891
13892 * gtkutil.c (xg_mark_data): Update calls to mark_object.
13893
13894 2003-07-29 Richard M. Stallman <rms@gnu.org>
13895
13896 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
13897 Conditionalize XIM code on HAVE_XIM.
13898
13899 * fns.c (Fclear_string): New function.
13900 (syms_of_fns): defsubr it.
13901
13902 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
13903
13904 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
13905
13906 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
13907
13908 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
13909
13910 * buffer.c (delete_all_overlays): New function.
13911 * buffer.h (delete_all_overlays): Declare.
13912 * coding.c (run_pre_post_conversion_on_str):
13913 * print.c (temp_output_buffer_setup):
13914 * fileio.c (Finsert_file_contents):
13915 * minibuf.c (get_minibuffer): Use it.
13916
13917 2003-07-22 Andrew Choi <akochoi@shaw.ca>
13918
13919 * unexmacosx.c (unexec_regions_sort_compare):
13920 (unexec_regions_merge): New functions. Sort and merge unexec
13921 regions before dumping them.
13922
13923 2003-07-22 Dave Love <fx@gnu.org>
13924
13925 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
13926
13927 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
13928
13929 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
13930 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
13931 MARKBIT as the gcmarkbit for strings.
13932
13933 2003-07-21 Richard M. Stallman <rms@gnu.org>
13934
13935 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
13936
13937 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
13938 (syms_of_fns): Corresponding change.
13939
13940 * alloc.c (syms_of_alloc): Doc fixes.
13941
13942 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
13943
13944 * s/netbsd.h: Use -Wl syntax.
13945
13946 2003-07-17 Richard M. Stallman <rms@gnu.org>
13947
13948 * xterm.c (xim_initialize): Redo 6/24 change.
13949
13950 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
13951
13952 * buffer.c (copy_overlays): Use EMACS_INT for positions.
13953 (Fswitch_to_buffer): Don't signal an error when switching to the same
13954 buffer in a dedicated window.
13955
13956 * alloc.c: Use bitmaps for cons, as was done for floats.
13957 (init_float, init_cons): Let the normal code allocate the first block.
13958 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
13959 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
13960 New macros.
13961 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
13962 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
13963 (live_cons_p): Check the pointer is not past the `conses' array.
13964 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
13965 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
13966 (survives_gc_p): Use CONS_MARKED_P and simplify.
13967 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
13968
13969 2003-07-13 Paul Eggert <eggert@twinsun.com>
13970
13971 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
13972 puts it into BSS instead, at least on Solaris 8 and 9.
13973 This is a valid optimization, and it may occur on other platforms,
13974 so Emacs should not assume that initializing a static variable to
13975 zero puts it into data.
13976 * alloc.c (pure, staticvec):
13977 Initialize these arrays to nonzero, so that they're not
13978 put into BSS by that optimization.
13979
13980 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
13981
13982 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
13983 (lisp_align_malloc): Use posix_memalign is available.
13984 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
13985 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
13986 for consistency. Update users.
13987
13988 2003-07-13 Richard M. Stallman <rms@gnu.org>
13989
13990 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
13991
13992 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
13993
13994 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
13995 and use the Gtk+ function gtk_window_icon_from_file if available.
13996
13997 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
13998 handle mask of bitmaps.
13999 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
14000 mask property.
14001 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
14002
14003 * xterm.h (xg_set_icon): New function.
14004
14005 2003-07-12 Paul Eggert <eggert@twinsun.com>
14006
14007 * unexelf.c (unexec): Consider a section to precede the .bss
14008 section if its addresses overlap that of .bss.
14009
14010 2003-07-12 Richard M. Stallman <rms@gnu.org>
14011
14012 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
14013
14014 * config.in (HAVE_CRTIN): Add #undef.
14015 (INLINE): Really inline only if OPTIMIZE is defined.
14016
14017 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
14018 END_FILES_1.
14019 (START_FILES_1, END_FILES_1): New macros (conditional).
14020 (LD_SWITCH_SYSTEM_TEMACS): Define.
14021
14022 * s/openbsd.h: Don't include bsd4-3.h.
14023 (TERMINFO): Define.
14024 (LIBS_TERMCAP): Define.
14025 (LD_SWITCH_SYSTEM): Define (two definitions).
14026
14027 * xfns.c: Include libpng/png.h instead of png.h.
14028
14029 2003-07-11 Andreas Schwab <schwab@suse.de>
14030
14031 * buffer.c (modify_overlay): Update prototype.
14032 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
14033 Likewise.
14034
14035 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
14036
14037 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
14038 (struct interval): Move to intervals.h.
14039 (struct Lisp_Marker): Use EMACS_INT for position info.
14040 (forward_point): Remove prototype of defunct function.
14041 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
14042 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
14043 (syms_of_textprop, set_text_properties): Remove prototypes that are
14044 already in intervals.h.
14045
14046 * intervals.h (struct interval): Move from lisp.h.
14047 Use EMACS_INT for position and size info.
14048
14049 * coding.c: Include intervals.h for Fset_text_properties.
14050
14051 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
14052 position and length information.
14053
14054 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
14055
14056 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
14057 position and length information.
14058
14059 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
14060
14061 Change overlays_after and overlays_before so the overlays themselves
14062 are linked into lists, rather than using cons cells. After all each
14063 Lisp_Misc already occupies 5 words, so we can add a `next' field to
14064 Lisp_Overlay for free and save up one cons cell per overlay (not
14065 to mention one indirection when traversing the list of overlay).
14066
14067 * lisp.h (struct Lisp_Overlay): New field `next'.
14068
14069 * buffer.h (struct buffer): Change overlays_before and overlays_after
14070 from Lisp lists of overlays to pointers to overlays.
14071
14072 * buffer.c (overlay_strings, recenter_overlay_lists):
14073 Fix typo in eassert in last commit.
14074 (unchain_overlay): New function.
14075 (add_overlay_mod_hooklist): Use AREF.
14076 (copy_overlays, reset_buffer, overlays_at, overlays_in)
14077 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
14078 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
14079 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
14080 (report_overlay_modification, evaporate_overlays, init_buffer_once):
14081 Adjust to new type of overlays_(before|after).
14082
14083 * alloc.c (mark_object): Mark the new `next' field of overlays.
14084 (mark_buffer): Manually mark the overlays_(after|before) fields.
14085
14086 * coding.c (run_pre_post_conversion_on_str):
14087 * editfns.c (overlays_around):
14088 * xdisp.c (load_overlay_strings):
14089 * fileio.c (Finsert_file_contents):
14090 * indent.c (current_column):
14091 * insdel.c (signal_before_change, signal_after_change):
14092 * intervals.c (set_point_both):
14093 * print.c (temp_output_buffer_setup): Use new type for
14094 overlays_(before|after).
14095
14096 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
14097
14098 * buffer.c (report_overlay_modification): Don't run hooks while
14099 traversing the list of overlays.
14100
14101 * buffer.h (struct buffer): Use an int for overlay_center.
14102 (overlays_at, evaporate_overlays, recenter_overlay_lists)
14103 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
14104
14105 * buffer.c (reset_buffer, recenter_overlay_lists)
14106 (adjust_overlays_for_insert, adjust_overlays_for_delete)
14107 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
14108 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
14109 (overlays_at, evaporate_overlays, recenter_overlay_lists)
14110 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
14111
14112 * xdisp.c (fast_find_position): Remove unused var.
14113
14114 * cmds.c (Qexpand_abbrev): New sym.
14115 (syms_of_cmds): Initialize it.
14116 (internal_self_insert): Use it to call expand-abbrev.
14117
14118 2003-07-09 Kim F. Storm <storm@cua.dk>
14119
14120 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
14121 was configured with --without-xim.
14122 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
14123
14124 2003-07-07 Richard M. Stallman <rms@gnu.org>
14125
14126 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
14127
14128 * alloc.c (Fgarbage_collect): Doc fix.
14129
14130 2003-07-07 Nozomu Ando <nand@mac.com>
14131
14132 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
14133
14134 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
14135
14136 * minibuf.c (read_minibuf): UNGCPRO before returning.
14137 (Ftry_completion, Fall_completions): Doc fix.
14138
14139 * alloc.c (live_float_p): Check that p is not past the `floats' array,
14140 now that `floats' is not the last element of the struct any more.
14141
14142 2003-07-06 Jason Rumney <jasonr@gnu.org>
14143
14144 * w32term.h (ClipboardSequence_Proc): New type.
14145
14146 * w32fns.c (clipboard_sequence_fn): New variable.
14147 (globals_of_w32fns): Initialize it.
14148
14149 * w32select.c (last_clipboard_sequence_number): New variable.
14150 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
14151 number if possible.
14152
14153 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
14154
14155 * m/amdx86-64.h (MARKBIT):
14156 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
14157 MARKBIT and ARRAY_MARK_FLAG any more.
14158
14159 * m/hp800.h (XSETMARKBIT):
14160 * m/sr2k.h (XSETMARKBIT):
14161 * lisp.h (XSETMARKBIT): Remove unused macro.
14162
14163 * lisp.h (mark_object): Change prototype.
14164
14165 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
14166 (last_marked): Change accordingly.
14167 (mark_interval, mark_maybe_object, mark_maybe_pointer)
14168 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
14169 (mark_buffer): Update calls to mark_object.
14170
14171 * bytecode.c (mark_byte_stack):
14172 * fns.c (sweep_weak_table):
14173 * keyboard.c (mark_kboards): Update calls to mark_object.
14174
14175 2003-07-06 Jason Rumney <jasonr@gnu.org>
14176
14177 * alloc.c (struct ablock): Only include padding when there is some.
14178
14179 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
14180
14181 * alloc.c (ALIGN): Add casts to simplify usage.
14182 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
14183 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
14184 (struct ablock, struct ablocks): New types.
14185 (free_ablock): New global var.
14186 (lisp_align_malloc, lisp_align_free): New functions.
14187 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
14188 (struct float_block): Reorder and add gcmarkbits.
14189 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
14190 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
14191 (init_float, make_float): Use lisp_align_malloc.
14192 (free_float, live_float_p): Don't use `type' any more.
14193 (make_float): Use FLOAT_UNMARK to access to mark bit.
14194 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
14195 Use FLOAT_MARKED_P to access the mark bit.
14196 (pure_alloc): Simplify use of ALIGN.
14197 (mark_object): Use FLOAT_MARK to access the mark bit.
14198 (gc_sweep): Use new macros to access the float's mark bit.
14199 (init_alloc_once): Init free_ablock.
14200
14201 * lisp.h (struct Lisp_Float): Remove unused field `type'.
14202
14203 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
14204
14205 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
14206 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
14207 (allocate_buffer): Move.
14208 (string_bytes): Don't mask markbit of `size_byte'.
14209 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
14210 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
14211 Use the `size' field of buffers (rather than the `name' field) for
14212 the mark bit, as is done for all other vectorlike objects.
14213 Use the new macros to access the mark bit of vectorlike objects.
14214
14215 2003-06-26 Richard M. Stallman <rms@gnu.org>
14216
14217 * puresize.h (BASE_PURESIZE): Increment base size.
14218
14219 * xdisp.c (fast_find_position): Enable Gerd's new definition.
14220
14221 * xterm.c (xim_initialize): Undo previous change.
14222
14223 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
14224
14225 * alloc.c (survives_gc_p): Simplify.
14226
14227 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
14228
14229 * window.c (Fset_window_dedicated_p): Simplify.
14230 (display_buffer_1): Don't raise the win from which minibuf was entered.
14231 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
14232 (Fminibuffer_selected_window): Simplify.
14233
14234 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
14235
14236 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
14237 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
14238
14239 * insdel.c (check_markers, adjust_markers_for_delete)
14240 (adjust_markers_for_insert, adjust_markers_for_replace)
14241 (prepare_to_modify_buffer, RESTORE_VALUE):
14242 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
14243 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
14244 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
14245 * alloc.c (Fmake_marker, free_marker, gc_sweep):
14246 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
14247 * editfns.c (save_excursion_restore, transpose_markers):
14248 * window.c (delete_window):
14249 * xdisp.c (message_dolog): Update for new types.
14250
14251 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14252
14253 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
14254 (realize_default_face): Use default_face_done_p for the force_p
14255 argument to set_lface_from_font_name. Set default_face_done_p to one.
14256
14257 * frame.c (make_frame): Initialize default_face_done_p.
14258
14259 * frame.h (struct frame): Add default_face_done_p.
14260
14261 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
14262 will be defined.
14263
14264 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
14265
14266 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
14267 Initialize the new field `gcmarkbit'.
14268 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
14269 (mark_interval_tree): Don't mark the tree separately from the nodes.
14270 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
14271 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
14272 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
14273
14274 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
14275 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
14276 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
14277 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
14278 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
14279
14280 2003-06-24 Dave Love <fx@gnu.org>
14281
14282 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
14283
14284 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
14285 from gnulib.
14286
14287 2003-06-21 Richard M. Stallman <rms@gnu.org>
14288
14289 * fileio.c (Fwrite_region): Alternate messages
14290 for append and partial write.
14291
14292 * keyboard.c (read_key_sequence): When converting upcase fn key to
14293 downcase, update fkey and keytran so `backspace' gets translated.
14294
14295 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
14296
14297 * process.c (wait_reading_process_input): Don't signal SIGIO
14298 in batch mode.
14299
14300 2003-06-17 Kenichi Handa <handa@m17n.org>
14301
14302 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
14303 composite.h.
14304
14305 * xselect.c: Don't include charset.h, coding.h, composite.h.
14306 (Qforeign_selection): New variable.
14307 (syms_of_xselect): Intern and static it.
14308 (selection_data_to_lisp_data): Return a unibyte string made from
14309 data with `foreign-selection' text property.
14310
14311 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
14312
14313 * termhooks.h (EVENT_INIT): New macro.
14314
14315 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
14316
14317 * alloc.c (mark_kboards): Move to keyboard.c.
14318
14319 * keyboard.c (record_asynch_buffer_change, read_avail_input):
14320 * xterm.c (x_dispatch_event):
14321 * xmenu.c (find_and_call_menu_selection):
14322 * xdisp.c (handle_tool_bar_click):
14323 * w32menu.c (menubar_selection_callback):
14324 * sysdep.c (kbd_input_ast, read_input_waiting):
14325 * msdos.c (dos_rawgetc):
14326 * macterm.c (mac_check_for_quit_char):
14327 * macmenu.c (menubar_selection_callback):
14328 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
14329 data to kbd_buffer_store_event.
14330
14331 2003-06-15 Kim F. Storm <storm@cua.dk>
14332
14333 * xdisp.c (x_fix_overlapping_area): Always use area relative X
14334 to fix redisplay problem with tall characters (such as \e,AC\e(B).
14335
14336 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
14337
14338 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
14339
14340 2003-06-12 Kenichi Handa <handa@m17n.org>
14341
14342 * fileio.c (Fwrite_region): Save and restore restriction.
14343
14344 2003-06-12 Dave Love <fx@gnu.org>
14345
14346 * alloca.c (alloca): Declare arg as size_t.
14347
14348 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
14349 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
14350
14351 2003-06-11 Dave Love <fx@gnu.org>
14352
14353 * search.c (shrink_regexp_cache): Use xrealloc.
14354 (syms_of_search): Use xmalloc.
14355
14356 2003-06-10 Kim F. Storm <storm@cua.dk>
14357
14358 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
14359 Adjust phys_cursor.x to be relative to window box, rather than
14360 text area before checking -- to ensure cursor is redrawn when
14361 exposing window.
14362 Note: This also fixes a similar (older) bug if display margins
14363 are present.
14364
14365 2003-06-06 Kenichi Handa <handa@m17n.org>
14366
14367 * coding.c (encoding_buffer_size): If coding->type is
14368 coding_type_ccl, double magnification on CRLF encoding.
14369
14370 2003-06-06 Jason Rumney <jasonr@gnu.org>
14371
14372 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
14373 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
14374
14375 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
14376 Mac too.
14377
14378 2003-06-05 Dave Love <fx@gnu.org>
14379
14380 * strftime.c: Merge changes from gnulib.
14381
14382 * mktime.c (__mktime_internal): Merge changes from gnulib
14383 involving year 69 and dst2.
14384
14385 Changes to merge with gnulib version and be consistent with the
14386 autoconf test:
14387
14388 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
14389 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
14390 [HAVE_LOCALE_H]: Include locale.h.
14391 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
14392
14393 2003-06-05 Kim F. Storm <storm@cua.dk>
14394
14395 * window.c (coordinates_in_window): Convert X and Y to window
14396 relative coordinates inside mode-line and header-line parts.
14397 Convert X and Y to margin area relative coordinates inside left
14398 and right display margin parts.
14399
14400 2003-06-05 Jason Rumney <jasonr@gnu.org>
14401
14402 * w32fns.c (add_system_logical_colors_to_map): New function.
14403 (Fx_open_connection): Use it.
14404
14405 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
14406
14407 * process.c (allocate_pty): Revert part of the previous patch.
14408 (Faccept_process_output): Simplify.
14409
14410 2003-06-04 Jason Rumney <jasonr@gnu.org>
14411
14412 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
14413
14414 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
14415 (lispy_mouse_wheel_names): Remove.
14416 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
14417 Always define drag_and_drop_syms.
14418
14419 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
14420 WHEEL_EVENT events.
14421
14422 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
14423
14424 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
14425
14426 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
14427
14428 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14429
14430 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
14431 menu item label.
14432
14433 2003-06-03 Richard M. Stallman <rms@gnu.org>
14434
14435 * window.c (Fwindow_edges): Doc fix.
14436 (Fwindow_pixel_edges, Fwindow_inside_edges)
14437 (Fwindow_inside_pixel_edges): New functions.
14438 (syms_of_window): defsubr them.
14439
14440 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
14441 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
14442
14443 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
14444
14445 * dispnew.c (Fsit_for): Don't lie about the number of args.
14446
14447 2003-06-02 Dave Love <fx@gnu.org>
14448
14449 * callproc.c: Use HAVE_FCNTL_H, not USG5.
14450 (syms_of_callproc) <process-environment>: Doc fix.
14451
14452 * doc.c: Use HAVE_FCNTL_H, not USG5.
14453
14454 * xfaces.c (font_rescale_ratio): Fix for K&R.
14455
14456 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
14457
14458 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
14459
14460 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
14461
14462 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
14463 (xg_create_frame_widgets): Use ENCODE_UTF_8.
14464
14465 * xterm.c (Qutf_8): Move to coding.c
14466
14467 * xmenu.c (ENCODE_MENU_STRING): New.
14468 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
14469 Use it.
14470
14471 * coding.h (ENCODE_UTF_8): New.
14472 (Qutf_8): Declare.
14473
14474 * coding.c (Qutf_8): New.
14475 (syms_of_coding): Intern it.
14476
14477 * fns.c: Doc fixes.
14478
14479 2003-06-02 Kenichi Handa <handa@m17n.org>
14480
14481 * buffer.c (Fset_buffer_multibyte): Fix previous change.
14482
14483 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
14484
14485 * lread.c (openp): Make sure STR is a string.
14486
14487 2003-06-01 David Ponce <david@dponce.com>
14488
14489 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
14490 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
14491
14492 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
14493 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
14494 (discard_mouse_events): Discard WHEEL_EVENT events too.
14495 (lispy_wheel_names, wheel_syms): New.
14496 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
14497 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
14498 (make_lispy_event): Add WHEEL_EVENT handler.
14499
14500 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
14501 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
14502 WHEEL_EVENT events.
14503
14504 2003-05-31 John Paul Wallington <jpw@gnu.org>
14505
14506 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
14507 timer are in lisp/emacs-lisp.
14508
14509 2003-05-31 Kenichi Handa <handa@m17n.org>
14510
14511 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
14512 region when a buffer is changed to unibyte.
14513
14514 * charset.h (VALID_LEADING_CODE_P): New macro.
14515 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
14516
14517 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
14518 is nonzero, accept multibyte form of eight-bit-control chars.
14519 (decode_composition_emacs_mule): Likewise.
14520 (decode_coding_emacs_mule): Likewise.
14521 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
14522 multibyte form of eight-bit-control chars.
14523
14524 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
14525 (Finsert_file_contents): If coding-system-for-read is bound to
14526 Qauto_save_coding, use the coding system emacs-mule with special
14527 setting for recovering a file.
14528 (choose_write_coding_system): On auto saving, use the coding
14529 system emacs-mule with special setting for auto saving.
14530 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
14531
14532 2003-05-30 Kenichi Handa <handa@m17n.org>
14533
14534 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
14535 properly before calling ccl_driver.
14536
14537 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
14538
14539 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
14540 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
14541 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
14542
14543 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
14544
14545 * xfaces.c (realize_default_face): Do not abort if lface is
14546 non-existent - reverts change from 2003-05-19.
14547
14548 2003-05-29 Kenichi Handa <handa@m17n.org>
14549
14550 * coding.c (decode_coding_iso2022): Pay attention to the byte
14551 sequence of CTEXT extended segment, and retain those bytes as is.
14552
14553 2003-05-28 Kenichi Handa <handa@m17n.org>
14554
14555 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
14556 of CODING_REPLACEMENT_CHARACTER.
14557 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
14558 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
14559 check this flag on encoding.
14560 (encode_coding_sjis_big5):
14561 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
14562 (Fset_terminal_coding_system_internal):
14563 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
14564 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
14565
14566 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
14567 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
14568 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
14569
14570 2003-05-28 Richard M. Stallman <rms@gnu.org>
14571
14572 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
14573
14574 * eval.c (unbind_to): Move init of this_binding to separate statement.
14575
14576 2003-05-28 Kim F. Storm <storm@cua.dk>
14577
14578 * xdisp.c (expose_window): Fix error in calculation of
14579 window relative coordinates of area to redisplay.
14580
14581 2003-05-27 Jason Rumney <jasonr@gnu.org>
14582
14583 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
14584
14585 2003-05-27 David Ponce <david@dponce.com>
14586
14587 Handle W32 mouse wheel events as mouse click events, like in X.
14588
14589 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
14590 MOUSE_WHEEL_EVENT anymore.
14591
14592 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
14593 Scrolling down/up the mouse wheel is respectively mapped to mouse
14594 button 4 and 5.
14595 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
14596 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
14597 WM_MOUSEWHEEL events.
14598
14599 2003-05-27 Andreas Schwab <schwab@suse.de>
14600
14601 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
14602
14603 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
14604 partially visible line.
14605
14606 * alloc.c (Fgarbage_collect): Fix last change.
14607
14608 2003-05-26 John Paul Wallington <jpw@gnu.org>
14609
14610 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
14611
14612 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
14613
14614 * window.c (Fset_window_buffer): Add type of `keep_margins'.
14615 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
14616
14617 * window.h (window_box_text_cols): Declare.
14618
14619 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
14620 (x_draw_vertical_border): Remove unused var `f'.
14621
14622 * xfaces.c (build_scalable_font_name): Remove `unused var
14623 pixel_size' warning.
14624
14625 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
14626
14627 * unexelf.c (unexec): Remove `unused var n' warning.
14628
14629 * strftime.c (my_strftime_localtime_r): Remove `defined but
14630 unused' warning.
14631
14632 * process.c (allocate_pty): Remove `unused var stb' and
14633 `cp might be used uninitialized' warnings.
14634
14635 * dispnew.c (mode_line_string): Remove unused var `f'.
14636
14637 * coding.c (find_safe_codings): Remove unused var `i'.
14638
14639 * bytecode.c (Fbyte_code): Remove `unused val' warning.
14640
14641 * buffer.c (Fkill_buffer): Remove unused var `list'.
14642
14643 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
14644
14645 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14646
14647 * frame.c (make_frame): Condition want_fullscreen with
14648 HAVE_WINDOW_SYSTEM.
14649
14650 2003-05-25 Juanma Barranquero <lektu@terra.es>
14651
14652 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
14653 (Fwindow_scroll_bars): Fix typo in docstring.
14654
14655 2003-05-24 Kim F. Storm <storm@cua.dk>
14656
14657 The following changes serve several purposes:
14658
14659 1) Swap the position of fringes and display margins in windows, i.e.
14660 the fringes are now displayed between the margins and the text area
14661 (by default).
14662
14663 2) Allow fringe and scroll bar parameters to be set per-buffer and
14664 per-window (like display margins). Such settings are now stored
14665 in window configurations, preserved when frames are resized, and
14666 copied when windows are split vertically or horizontally.
14667 Several bugs related to display margins have been fixed.
14668
14669 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
14670
14671 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
14672 rather than FRAME_WIDTH (FRAME_FONT (f)).
14673
14674 5) Introduce a consistent naming of variables, members and macros
14675 depending on whether their value is measured in pixels or in
14676 canonical columns/lines. Pixel dimensions are named *_width and
14677 *_height, while canonical columns/lines are named *_cols and
14678 *_lines. Pixel positions are named *_x and *_y, while column/line
14679 positions are named *_col and *_line.
14680
14681 6) Consolidate more of the X, W32, and MAC gui code by moving
14682 common data into struct frame, and generalize it for the non-gui
14683 case by using suitable defaults.
14684
14685 7) Cleanup and consolidate the macros controlling frame and window
14686 layout into frame.h and window.h, and generalize the use of the
14687 various window_box_* functions (enhanced to handle the new fringe
14688 position and the per-window fringe and scroll bar settings).
14689
14690 * frame.h (struct frame): Rename members height to text_lines,
14691 width to text_cols, window_height to total_lines, window_width to
14692 total_cols, new_height to new_text_lines, new_width to
14693 new_text_cols. All uses changed.
14694 (struct frame): New members which consolidate common members of
14695 x_output, w32_output, and mac_output structures: left_pos,
14696 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
14697 win_gravity, size_hint_flags, border_width, internal_border_width,
14698 line_height, fringe_cols, left_fringe_width, right_fringe_width,
14699 want_fullscreen. All uses changed.
14700 (struct frame): New member column_width contaning the canonical
14701 column width, analogue to line_height. All uses changed.
14702 (struct frame): Rename members scroll_bar_pixel_width to
14703 config_scroll_bar_width, and scroll_bar_cols to
14704 config_scroll_bar_cols. All uses changed.
14705 (struct frame): New member scroll_bar_actual_width which
14706 consolidates and renames the vertical_scroll_bar_extra member of
14707 x_output, w32_output, and mac_output structures. All uses changed.
14708 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
14709 from x/w32/macterm.h files. All uses changed. Also change code
14710 which referred to f->output_data...->pixel_height.
14711 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
14712 from x/w32/macterm.h files. All uses changed. Also change code
14713 which referred to f->output_data...->pixel_width.
14714 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
14715 Also change code which referred to f->height.
14716 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
14717 Also change code which referred to f->width.
14718 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
14719 to update new_text_lines and new_text_cols members directly.
14720 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
14721 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
14722 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
14723 FRAME_SCROLL_BAR_COLS. All uses changed.
14724 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
14725 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
14726 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
14727 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
14728 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
14729 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
14730 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
14731 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
14732 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
14733 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
14734 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
14735 Unconditionally return line_height member (it now has proper value
14736 also for non-window frames).
14737 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
14738 return new column_width member (rather than the default font width).
14739 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
14740 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
14741 from x/w32/macterm.h files. Unconditionally return corresponding
14742 member of frame structure (they now have proper values also for
14743 non-window frames).
14744 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
14745 Calculate return value from left and right widths.
14746 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
14747 internal_border_width member (has proper value for non-window frame).
14748 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
14749 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
14750 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
14751 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
14752 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
14753 consolidated from xterm.h, macterm.h, and w32term.h.
14754 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
14755 consolidated from xterm.h, macterm.h, and w32term.h.
14756 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
14757 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
14758 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
14759 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
14760 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
14761 consolidated from x/mac/w32term.h.
14762 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
14763 consolidated from x/mac/w32term.h.
14764 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
14765 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
14766 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
14767 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
14768
14769 * window.h (struct window): Rename members left to left_col,
14770 top to top_line, height to total_lines, width to total_cols,
14771 left_margin_width to left_margin_cols, right_margin_width to
14772 right_margin_cols, orig_height to orig_total_lines, orig_top to
14773 orig_top_line. All uses changed.
14774 (struct window): New members left_fringe_width, right_fringe_width,
14775 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
14776 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
14777 New macros primarily used to simplify other macros.
14778 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
14779 referred to XINT (w->width).
14780 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
14781 referred to XINT (w->height).
14782 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
14783 referred to XINT (w->width) * canon_x_unit.
14784 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
14785 referred to XINT (w->height) * canon_y_unit.
14786 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
14787 referred to XINT (w->left).
14788 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
14789 all uses and code that referred to XINT (w->left) + XINT (w->width).
14790 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
14791 referred to XINT (w->top).
14792 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
14793 referred to XINT (w->top) + XINT (w->height).
14794 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
14795 referred to XINT (w->left) * canon_x_unit.
14796 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
14797 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
14798 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
14799 referred to XINT (w->top) * canon_y_unit.
14800 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
14801 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
14802 (WINDOW_LEFTMOST_P): New macro.
14803 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
14804 All uses changed.
14805 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
14806 All uses changed.
14807 (WINDOW_BOX_LEFT_EDGE_X): Rename from
14808 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
14809 Do not exclude left fringe width.
14810 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
14811 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
14812 Do not exclude fringe widths.
14813 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
14814 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
14815 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
14816 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
14817 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
14818 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
14819 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
14820 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
14821 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
14822 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
14823 New macros. Change code which referenced corresponding
14824 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
14825 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
14826 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
14827 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
14828 allow per-window scroll-bar settings.
14829 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
14830 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
14831 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
14832 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
14833 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
14834 FRAME_SCROLL_BAR_WIDTH.
14835 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
14836 (WINDOW_SCROLL_BAR_AREA_X): New macros.
14837 (WINDOW_HEADER_LINE_HEIGHT): Rename from
14838 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
14839 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
14840 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
14841 (WINDOW_BOX_TEXT_HEIGHT): Rename from
14842 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
14843 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
14844 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
14845 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
14846 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
14847 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
14848 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
14849 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
14850 (window_from_coordinates): Update prototype.
14851 (Fset_window_buffer): Update EXFUN.
14852 (set_window_buffer): Update prototype.
14853
14854 * dispextern.h (struct glyph_matrix): Rename members window_left_x
14855 to window_left_col, window_top_y to window_top_line. All uses
14856 changed.
14857 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
14858 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
14859 internal_border_width is now set to 0 for non-window frames.
14860 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
14861 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
14862 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
14863 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
14864 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
14865 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
14866 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
14867 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
14868 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
14869 Move to window.h and renamed [see window.h changes].
14870 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
14871 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
14872 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
14873 Use WINDOW_TOTAL_LINES.
14874 (frame_update_line_height): Remove prototype.
14875
14876 * buffer.h (struct buffer): Rename members measured in columns:
14877 left_margin_width to left_margin_cols, right_margin_width to
14878 right_margin_cols. All uses changed.
14879 New members left_fringe_width, right_fringe_width,
14880 fringes_outside_margins for per-buffer fringe settings.
14881 New members scroll_bar_width and vertical_scroll_bar_type for
14882 per-buffer scroll bar settings.
14883
14884 * buffer.c (init_buffer_once): Set buffer_defaults and
14885 buffer_local_flags for new buffer-local variables
14886 left_fringe_width, right_fringe_width, fringes_outside_margins,
14887 scroll_bar_width, and vertical_scroll_bar_type.
14888 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
14889 default-* variables for them.
14890
14891 * dispnew.c: Make (many) trivial substitutions for renamed and
14892 new macros in dispextern.h, frame.h and window.h.
14893 (mode_line_string): No need to adjust width for mode lines, as it
14894 is already adjusted by the caller.
14895 (marginal_area_string): Handle fringes inside/outside margins.
14896
14897 * frame.c: Make (many) trivial substitutions for renamed and
14898 new macros in dispextern.h, frame.h and window.h.
14899 (make_frame): Initialize left_fringe_width, right_fringe_width,
14900 fringe_cols, scroll_bar_actual_width, border_width,
14901 internal_border_width, column_width, line_height, x_pixels_diff,
14902 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
14903 members with values suitable for a non-window frames.
14904
14905 * gtkutil.c: Make (many) trivial substitutions for renamed and
14906 new macros in dispextern.h, frame.h and window.h.
14907
14908 * indent.c: Make (few) trivial substitutions for renamed and
14909 new macros in dispextern.h, frame.h and window.h.
14910
14911 * keyboard.c: Make (many) trivial substitutions for renamed and
14912 new macros in dispextern.h, frame.h and window.h.
14913 (make_lispy_event): Use window positions returned from
14914 window_from_coordinates when constructing the lisp event for
14915 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
14916 (incorrect) values locally.
14917 (make_lispy_movement): Use window positions returned from
14918 window_from_coordinates when constructing the lisp event, rather
14919 than calculating (incorrect) values locally.
14920
14921 * scroll.c: Make (some) trivial substitutions for renamed and
14922 new macros in dispextern.h, frame.h and window.h.
14923
14924 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
14925 scroll-bars.
14926
14927 * sysdep.c: Make (few) trivial substitutions for renamed and
14928 new macros in dispextern.h, frame.h and window.h.
14929
14930 * term.c: Make (some) trivial substitutions for renamed and
14931 new macros in dispextern.h, frame.h and window.h.
14932
14933 * widget.c: Make (few) trivial substitutions for renamed and
14934 new macros in dispextern.h, frame.h and window.h.
14935
14936 * window.c: Make (many) trivial substitutions for renamed and
14937 new macros in dispextern.h, frame.h and window.h.
14938 (make_window): Initialize new members
14939 left_margin_cols, right_margin_cols, left_fringe_width,
14940 right_fringe_width, fringes_outside_margins, scroll_bar_width,
14941 and vertical_scroll_bar_type.
14942 (coordinates_in_window): Adapt to new fringe/margin positions
14943 and per-window fringes and scroll-bars.
14944 Fix bug related to incorrectly adjusting coordinates by
14945 frame's internal_border_width (the effect normally negible since
14946 the internal_border_width is typically 0 or 1 pixel, but very
14947 noticeable for an internal_border_width of e.g. 25 pixels).
14948 Upon successful return (other than ON_NOTHING), the coordinates
14949 are now always properly converted to window relative for the
14950 given display element.
14951 (window_from_coordinates): Add new parameters wx and wy to
14952 return the window relative x and y position in the returned
14953 window and part. A null arg means, don't return the position.
14954 All callers changed.
14955 (adjust_window_margins): New function which may reduce the width
14956 of the display margins if a window's text area is too small after
14957 resizing or splitting windows.
14958 (size_window): Fix bug that did not account for display margin
14959 widths when checking the minimum width of a window; use
14960 adjust_window_margins.
14961 (set_window_buffer): Call Fset_window_fringes and
14962 Fset_window_scroll_bars to setup per-window elements.
14963 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
14964 existing display margin, fringe widths, and scroll bar settings
14965 (e.g. after splitting a window or resizing the frame).
14966 All callers changed.
14967 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
14968 (Fsplit_window): Duplicate original window's display margin,
14969 fringe, and scroll-bar settings; then call Fset_window_buffer with
14970 KEEP_MARGINS non-nil. This fixes a bug which caused a split
14971 window to only preserve the display margins in one of the windows.
14972 When splitting horizontally, call adjust_window_margins on both
14973 windows to ensure that the text area of the new windows is non too
14974 narrow. This fixes a bug which could cause Emacs to trap if the
14975 width of the split window was less than the width of the display
14976 margins.
14977 (window_box_text_cols): Rename from window_internal_width.
14978 All uses changed. Adapt to per-window fringes and scroll bars.
14979 Fix bug that caused vertical separator to be subtracted also on
14980 window frames. Fix another bug that did not reduce the returned
14981 value by the columns used for display margins.
14982 (window_scroll_line_based): Fix bug related to scrolling too much
14983 when display margins are present (implicitly fixed by the fix to
14984 window_box_text_cols).
14985 (scroll_left, scroll_right): Fix bug related to scrolling too far
14986 by default when display margins are present (implicitly fixed by
14987 the fix to window_box_text_cols).
14988 (struct saved_window): Rename members left to left_col, top to
14989 top_line, width to total_cols, height to total_lines, orig_top to
14990 orig_top_line, orig_height to orig_total_lines. All uses changed.
14991 New members left_margin_cols, right_margin_cols,
14992 left_fringe_width, right_fringe_width, fringes_outside_margins,
14993 scroll_bar_width, and vertical_scroll_bar_type for saving
14994 per-window display elements.
14995 (Fset_window_configuration): Restore display margins, fringes,
14996 and scroll bar settings. This fixes a bug which caused display
14997 margins to be discarded when saving and restoring a window
14998 configuration.
14999 (save_window_save): Save display margins, fringes, and scroll bar
15000 settings. This fixes a bug which caused display margins to be
15001 discarded when saving and restoring a window configuration.
15002 (Fset_window_margins): Do nothing if display margins are not
15003 really changed. Otherwise, call adjust_window_margins to ensure
15004 the text area doesn't get too narrow. This fixes a bug which
15005 could cause Emacs to trap if setting display margins wider than
15006 the width of the window.
15007 (Fset_window_fringes): New defun to allow user to specifically set
15008 this window's fringe widths and position vs. display margins.
15009 (Fwindow_fringes): New defun to return window's actual fringe settings.
15010 (Fset_window_scroll_bars): New defun to allow user to specifically
15011 set this window's scroll bar width and position.
15012 (Fwindow_scroll_bars): New defun to return window's actual scroll
15013 bar settings.
15014 (compare_window_configurations): Also compare display margins,
15015 fringes, and scroll bar settings.
15016 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
15017
15018 * xdisp.c: Make (many) trivial substitutions for renamed and
15019 new macros in dispextern.h, frame.h and window.h.
15020 (window_box_width): Adapt to per-window fringes and scroll bars,
15021 and new fringe vs. display margin position. Note that returned
15022 value is no longer guaranteed to be a whole multiple of the frame
15023 column width, since per-window fringes may now be any width.
15024 (window_box_left_offset): New function like window_box_left, but
15025 value is relative to left border of window (rather than frame).
15026 (window_box_right_offset): New function like window_box_right,
15027 but value is relative to left border of window.
15028 (window_box_left): Adapt to per-window fringes and scroll bars,
15029 and new fringe vs. display margin position. Simplify by using
15030 WINDOW_LEFT_EDGE_X and window_box_left_offset.
15031 (window_box): Allow null args for unnecessary return values;
15032 change/simplify relevant callers.
15033 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
15034 and new fringe vs. display margin position.
15035 Use window_box_left_offset and window_box_right_offset
15036 (get_glyph_string_clip_rect): Adapt to per-window fringes and
15037 scroll bars, and new fringe vs. display margin position.
15038 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
15039 (draw_fringe_bitmap): Rework to handle per-window fringes and new
15040 fringe vs. display margin position.
15041 (hscroll_window_tree): Use window_box_width instead of window_box.
15042 (redisplay_window): Adapt to per-window scroll bars.
15043 (draw_glyphs): Rework to handle per-window fringes and scroll
15044 bars, and new fringe vs. display margin position.
15045 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
15046 (x_clear_end_of_line): Adapt to per-window fringes and scroll
15047 bars, and new fringe vs. display margin position. Fix bug which
15048 increased total width of full_width rows by width of scroll bars
15049 although window's total width already includes that.
15050 (x_fix_overlapping_area): Simplify using window_box_left_offset.
15051 (expose_area): Simplify using window_box_left_offset.
15052 (x_draw_vertical_border): Handle per-window scroll bar settings,
15053 mixing windows with left, right and no scroll bars.
15054
15055 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
15056 where it's used in x_list_fonts (for clarity).
15057 (frame_update_line_height): Remove unused function; functionality
15058 is now done directly when setting the default font in x_set_font.
15059
15060 * xfns.c: Make (many) trivial substitutions for renamed and
15061 new macros in dispextern.h, frame.h and window.h.
15062
15063 * xmenu.c: Make (some) trivial substitutions for renamed and
15064 new macros in dispextern.h, frame.h and window.h.
15065
15066 * xterm.h (struct x_output): Move members left_pos, top_pos,
15067 border_width, pixel_height, pixel_width, line_height,
15068 internal_border_width, vertical_scroll_bar_extra,
15069 left_fringe_width, right_fringe_width, fringe_cols,
15070 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
15071 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
15072 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
15073 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
15074 (PIXEL_WIDTH, PIXEL_HEIGHT)
15075 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
15076 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
15077 frame.h and renamed [see frame.h changes].
15078 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
15079 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
15080 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
15081 and renamed [see frame.h changes].
15082
15083 * xterm.c: Make (several) trivial substitutions for renamed and
15084 new macros in dispextern.h, frame.h and window.h.
15085 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
15086 (scroll_run): Adapt to new fringe position.
15087 (glyph_rect): Use window coordinates returned from
15088 window_from_coordinates rather than frame_to_window_pixel_xy.
15089 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
15090 scroll-bars.
15091 (handle_one_xevent): Simplify a USE_GTK conditional.
15092 (x_clip_to_row): Remove superfluous whole_line_p arg and code
15093 (fringes are now inside margins, i.e. always in the clipping area).
15094 All callers changed.
15095 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
15096 directly, then call compute_fringe_widths. Don't call
15097 frame_update_line_height.
15098
15099 * w32term.h (struct w32_output): Move members left_pos, top_pos,
15100 border_width, pixel_height, pixel_width, line_height,
15101 internal_border_width, vertical_scroll_bar_extra,
15102 left_fringe_width, right_fringe_width, fringe_cols,
15103 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
15104 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
15105 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
15106 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
15107 (PIXEL_WIDTH, PIXEL_HEIGHT)
15108 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
15109 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
15110 frame.h and renamed [see frame.h changes].
15111 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
15112 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
15113 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
15114 and renamed [see frame.h changes].
15115
15116 * w32term.c: Make (several) trivial substitutions for renamed and
15117 new macros in dispextern.h, frame.h and window.h.
15118 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
15119 (glyph_rect): Use window coordinates returned from
15120 window_from_coordinates rather than frame_to_window_pixel_xy.
15121 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
15122 scroll-bars.
15123 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
15124 (fringes are now inside margins, i.e. always in the clipping area).
15125 All callers changed.
15126 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
15127 directly, then call compute_fringe_widths. Don't call
15128 frame_update_line_height.
15129
15130 * w32console.c: Make (few) trivial substitutions for renamed and
15131 new macros in dispextern.h, frame.h and window.h.
15132
15133 * w32fns.c: Make (many) trivial substitutions for renamed and
15134 new macros in dispextern.h, frame.h and window.h.
15135
15136 * w32menu.c: Make (few) trivial substitutions for renamed and
15137 new macros in dispextern.h, frame.h and window.h.
15138
15139 * macterm.h (struct mac_output): Move members left_pos, top_pos,
15140 border_width, pixel_height, pixel_width, line_height,
15141 internal_border_width, vertical_scroll_bar_extra,
15142 left_fringe_width, right_fringe_width, fringe_cols,
15143 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
15144 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
15145 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
15146 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
15147 (PIXEL_WIDTH, PIXEL_HEIGHT)
15148 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
15149 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
15150 frame.h and renamed [see frame.h changes].
15151 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
15152 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
15153 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
15154 and renamed [see frame.h changes].
15155
15156 * macterm.c: Make (several) trivial substitutions for renamed and
15157 new macros in dispextern.h, frame.h and window.h.
15158 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
15159 (glyph_rect): Use window coordinates returned from
15160 window_from_coordinates rather than frame_to_window_pixel_xy.
15161 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
15162 scroll-bars.
15163 (x_clip_to_row): Remove superfluous whole_line_p arg and code
15164 (fringes are now inside margins, i.e. always in the clipping area).
15165 All callers changed.
15166 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
15167 directly, then call compute_fringe_widths. Don't call
15168 frame_update_line_height.
15169
15170 * macfns.c: Make (several) trivial substitutions for renamed and
15171 new macros in dispextern.h, frame.h and window.h.
15172 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
15173
15174 * macmenu.c: Make (few) trivial substitutions for renamed and
15175 new macros in dispextern.h, frame.h and window.h.
15176
15177 * msdos.h (struct x_output): Remove members left_pos, top_pos,
15178 and line_height, and use corresponding new members in struct
15179 frame. All uses changed.
15180 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
15181 superseeded by corresponding macros in frame.h.
15182
15183 * msdos.c: Make (several) trivial substitutions for renamed and
15184 new macros in dispextern.h, frame.h and window.h.
15185 (IT_note_mouse_highlight): Use updated window coordinates returned
15186 by window_from_coordinates, rather than adjusting them locally.
15187 (internal_terminal_init): No need to initialize line_height here;
15188 it now defaults to 1.
15189
15190 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
15191
15192 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
15193 dropping `down' events.
15194
15195 2003-05-24 Andreas Schwab <schwab@suse.de>
15196
15197 * coding.c (find_safe_codings): Fix last change.
15198
15199 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
15200
15201 * xfns.c (x_window): Fix typo from 2003-05-21 change.
15202
15203 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
15204
15205 * xdisp.c (display_mode_element): Increase max depth.
15206 Simplify the error handling code. Use a different error string
15207 for the case where we hit the depth limit.
15208
15209 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
15210
15211 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
15212
15213 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
15214
15215 * intervals.c (get_local_map): Don't get char-property of previous
15216 point any more: get_pos_property already does it and better.
15217
15218 2003-05-21 Dave Love <fx@gnu.org>
15219
15220 [Merged from unicode branch.]
15221
15222 * xfns.c (x_window, x_window): Use use_xim.
15223
15224 * xterm.c (use_xim): Initialize.
15225 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15226 (x_term_init): Maybe set use_xim.
15227
15228 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15229
15230 2003-05-21 Jason Rumney <jasonr@gnu.org>
15231
15232 * unexw32.c (_start): Remove _fmode initialization.
15233
15234 * emacs.c (main) [WINDOWSNT]: Move it here.
15235
15236 2003-05-20 Dave Love <fx@gnu.org>
15237
15238 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
15239
15240 2003-05-19 Richard M. Stallman <rms@gnu.org>
15241
15242 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
15243 as value for QCfont attribute.
15244 (realize_default_face): lface should already exist; crash if not.
15245 Specify 0 for FORCE_P when calling set_lface_from_font_name.
15246
15247 * frame.c (Fignore_event): Doc fix.
15248
15249 2003-05-19 Kenichi Handa <handa@m17n.org>
15250
15251 * coding.c (decode_coding_string): Handle post-read-conversion
15252 even if the coding doesn't require decoding.
15253
15254 2003-05-18 Richard M. Stallman <rms@gnu.org>
15255
15256 * callproc.c (Fcall_process_region): Doc fix.
15257
15258 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
15259
15260 * lread.c (Fload): Print a message if package is obsolete.
15261
15262 * window.c (Fselect_window): Add optional `norecord' arg.
15263 (select_window_1): Fold into Fselect_window.
15264 (select_window_norecord): New function.
15265 (temp_output_buffer_show): Use it. Preserve current buffer.
15266
15267 * window.h (Fselect_window): Update declaration.
15268
15269 * window.c (delete_window, Fother_window, Fset_window_configuration):
15270 * minibuf.c (read_minibuf):
15271 * macterm.c (x_new_focus_frame):
15272 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
15273 * callint.c (Fcall_interactively):
15274 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
15275
15276 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
15277
15278 2003-05-17 David Kastrup <dak@gnu.org>
15279
15280 * process.c (read_process_output): Back out change from 2003-03-09.
15281
15282 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
15283
15284 * editfns.c (get_pos_property): Don't assume that `object' = nil.
15285
15286 * textprop.c (text_property_stickiness): New arg `buffer'.
15287
15288 * intervals.h (text_property_stickiness): New arg `buffer'.
15289 (get_pos_property): Declare.
15290
15291 * intervals.c (get_local_map): Use get_pos_property, to obey
15292 stickiness and empty overlays.
15293 (create_root_interval, graft_intervals_into_buffer): Use BEG.
15294 (merge_properties, intervals_equal, merge_properties_sticky):
15295 Use XCAR, XCDR.
15296 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
15297
15298 2003-05-17 Richard M. Stallman <rms@gnu.org>
15299
15300 * minibuf.c (read_minibuf): If buffer is empty, record the default
15301 in the history.
15302 (Fminibuffer_complete_word): When deleting the overlap, take account
15303 of its real position.
15304
15305 * fns.c (map_char_table): Fix previous change.
15306
15307 * syntax.c (find_defun_start):
15308 When open_paren_in_column_0_is_defun_start,
15309 return beginning of buffer.
15310
15311 * lisp.h (map_char_table): Declare added arg.
15312
15313 * fns.c (map_char_table): New arg TABLE gets the master table.
15314 All calls changed.
15315 Process default and inheritance, resorting to Faref if necessary.
15316
15317 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15318 (Faccessible_keymaps): Pass new arg to map_char_table.
15319
15320 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
15321
15322 * casetab.c (set_case_table): Pass new arg to map_char_table.
15323
15324 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
15325
15326 * lisp.h (specbinding_func): New typedef.
15327 (struct specbinding): Use specbinding_func, to put the `volatile'
15328 in the right place.
15329
15330 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
15331 to avoid GCC warning.
15332
15333 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
15334
15335 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
15336
15337 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
15338
15339 * keyboard.c (apply_modifiers): Don't fill the other cache.
15340
15341 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
15342
15343 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
15344
15345 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
15346 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
15347 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
15348 (Fset_window_configuration, Fcurrent_window_configuration)
15349 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
15350 (Fpos_visible_in_window_p, mark_window_cursors_off)
15351 (window_internal_height, window_internal_width, Frecenter)
15352 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
15353 (replace_buffer_in_all_windows, init_window_once, init_window)
15354 (syms_of_window, keys_of_window): Move from lisp.h.
15355 * lisp.h: Move window.c declarations to window.h.
15356
15357 * bytecode.c: Include window.h.
15358 * emacs.c: Include window.h.
15359
15360 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
15361 (keyremap): Add `parent' field.
15362 (keyremap_step): Use it. Remove `parent' argument.
15363 (read_key_sequence): Setup and use the new `parent' field.
15364
15365 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
15366
15367 * keyboard.c (adjust_point_for_property): Ensure termination.
15368
15369 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
15370
15371 * keyboard.c (follow_key): Remove dead variable `did_meta'.
15372 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
15373 duplicated handling of function-key-map and key-translation-map
15374 in read_key_sequence.
15375 (read_key_sequence): Use them.
15376
15377 * keyboard.c (adjust_point_for_property): Try harder to move point
15378 to the non-sticky end of an invisible property.
15379
15380 * xdisp.c (single_display_prop_intangible_p): Make `space' display
15381 property intangible as well.
15382
15383 2003-05-10 Andreas Schwab <schwab@suse.de>
15384
15385 * xmenu.c (single_menu_item): Change last parameter to void* to
15386 avoid warning.
15387
15388 2003-05-09 Richard M. Stallman <rms@gnu.org>
15389
15390 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
15391 Bind Qinhibit_modification_hooks to t so there will be no GC.
15392 Rename local `tem' to `save_deactivate_mark'.
15393
15394 * eval.c (specpdl_ptr): Declare volatile.
15395 (unbind_to): Copy the whole binding and decrement specpdl_ptr
15396 before doing the work of unbinding it.
15397
15398 * lisp.h (struct specbinding): Declare elements volatile.
15399 (specpdl_ptr): Declare volatile.
15400
15401 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
15402
15403 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
15404 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
15405
15406 2003-05-08 Dave Love <fx@gnu.org>
15407
15408 * coding.c (Vlast_coding_system_used): Doc fix.
15409
15410 2003-05-07 Jason Rumney <jasonr@gnu.org>
15411
15412 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
15413 when system does not support them.
15414
15415 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
15416
15417 * fileio.c (Qwrite_region_annotate_functions): New var.
15418 (build_annotations): Use it to process the global part of the hook.
15419 (syms_of_fileio): Init and staticpro it.
15420
15421 * keyboard.c (safe_run_hooks_error): Display a message instead of
15422 silently ignoring the error.
15423
15424 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
15425
15426 * keyboard.c (input_available_signal): Mark static.
15427 (menu_bar_items): Use map_keymap.
15428 (menu_bar_one_keymap): Remove.
15429 (menu_bar_item): Adjust arglist (for use in map_keymap).
15430 Properly hide a second binding when not both are keymaps.
15431
15432 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
15433 (single_keymap_panes): Use it and map_keymap.
15434 (single_menu_item): Use skp as well.
15435
15436 * keymap.h (map_keymap_function_t): New type.
15437 (map_keymap): Declare.
15438
15439 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
15440 (map_keymap_call, Fmap_keymap): New functions.
15441 (syms_of_keymap): Defsubr map-keymap.
15442
15443 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15444
15445 * gtkutil.c (create_dialog, make_widget_for_menu_item)
15446 (make_menu_item, create_menus, xg_update_menu_item): Don't call
15447 ..._with_mnemonic functions for menu items.
15448
15449 2003-05-01 Kenichi Handa <handa@m17n.org>
15450
15451 * coding.c (coding_system_accept_latin_extra_p): Delete this
15452 function.
15453 (find_safe_codings): Pay attention to
15454 the property tranlsation-table-for-encode of each codings.
15455 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
15456
15457 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
15458
15459 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
15460
15461 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
15462
15463 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
15464
15465 * lisp.h (CHECK): Wrap args in parenthesis.
15466 (specbind): Fix doc: symbol = Qnil is not supported any more.
15467
15468 * bytecode.c (Fbyte_code) <unwind-protect>:
15469 Use Fprogn rather than 0 and Qnil.
15470
15471 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
15472 `double', and `triple' modifiers as well.
15473
15474 2003-04-30 Richard M. Stallman <rms@gnu.org>
15475
15476 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
15477
15478 * alloc.c (abort_on_gc): New variable.
15479 (Fgarbage_collect): Abort if abort_on_gc is set.
15480
15481 * lisp.h (abort_on_gc): Add decl.
15482
15483 * eval.c (Fsignal): Clear abort_on_gc.
15484
15485 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
15486 Reinit FORMAT_START and END before second scan.
15487
15488 * xdisp.c (move_it_vertically_backward): Do the final big else
15489 even if nlines is 0.
15490
15491 * xdisp.c (redisplay_internal): Finish the per-frame loop
15492 even if redisplay is suspended by input.
15493
15494 2003-04-24 Andrew Choi <akochoi@shaw.ca>
15495
15496 * macterm.c (x_list_fonts): Return all fonts that match if
15497 maxnames = -1.
15498
15499 2003-04-25 Kenichi Handa <handa@m17n.org>
15500
15501 * syntax.c (skip_chars): Fix previous change.
15502
15503 2003-04-24 Kenichi Handa <handa@m17n.org>
15504
15505 * syntax.c (skip_chars): Make the code faster by using the common
15506 technique of *p, *stop, and *endp.
15507
15508 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15509
15510 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
15511 tool_bar_items so GTK tool bar expose callback does not access items
15512 being updated.
15513
15514 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
15515
15516 * eval.c (Fapply): Undo last change and add a comment about why.
15517
15518 2003-04-18 Miles Bader <miles@gnu.org>
15519
15520 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
15521 pickier PARSE_MULTIBYTE_SEQ.
15522
15523 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
15524
15525 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
15526 Use XCDR, XCAR, CONSP.
15527 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
15528 (Fapply): Remove unnecessary GCPRO.
15529
15530 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
15531
15532 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
15533
15534 * buffer.h: Don't hardcode BEG==1.
15535
15536 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
15537
15538 2003-04-16 Richard M. Stallman <rms@gnu.org>
15539
15540 * xdisp.c (try_window, try_window_reusing_current_matrix):
15541 When at end of window, set window_end_pos to Z-ZV.
15542
15543 * buffer.c (Foverlay_recenter): Doc fix.
15544
15545 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
15546
15547 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
15548
15549 2003-04-14 Andrew Choi <akochoi@shaw.ca>
15550
15551 * macterm.c (mac_check_for_quit_char): Don't check more often than
15552 once a second.
15553
15554 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
15555
15556 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
15557 specially, so that they can't hide an implicit switch-frame event.
15558 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
15559 (head_table): Use switch-frame as event_kind for select-window.
15560 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
15561
15562 * editfns.c (Fformat): Lisp_Object/int mixup.
15563 (format2): Remove unused var numargs.
15564
15565 2003-04-11 Kenichi Handa <handa@m17n.org>
15566
15567 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
15568 (Qafter_insert_file_set_coding): New variable.
15569 (syms_of_fileio): Initialize and staticpro it. Delete declaration
15570 for after-insert-file-adjust-coding-function.
15571 (Finsert_file_contents): Call Qafter_insert_file_set_coding
15572 instead of Vafter_insert_file_adjust_coding_function.
15573
15574 2003-04-11 Kenichi Handa <handa@m17n.org>
15575
15576 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
15577
15578 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
15579 string. Callers changed.
15580
15581 2003-04-10 Kenichi Handa <handa@m17n.org>
15582
15583 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
15584 (syms_of_fileio): Declare it as a lisp variable.
15585 (Finsert_file_contents):
15586 Call Vafter_insert_file_adjust_coding_function before calling
15587 decode-format.
15588
15589 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15590
15591 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
15592 get GtkAdjustment as widget now is a GtkRange.
15593
15594 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
15595 GtkRange to avoid memory leak.
15596
15597 2003-04-09 Kenichi Handa <handa@m17n.org>
15598
15599 * xfaces.c (Vface_font_rescale_alist): New variable.
15600 (struct font_name): New member rescale_ratio.
15601 (font_rescale_ratio): New function.
15602 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
15603 (better_font_p): On comparing point sized, pay attention to
15604 recale_ratio member of fonts.
15605 (build_scalable_font_name): Reflect font->rescale_ratio in the
15606 font name.
15607 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15608
15609 * lread.c (read1): Before calling index, check if the 2nd
15610 arguemnt is in ASCII range.
15611
15612 2003-04-08 Richard M. Stallman <rms@gnu.org>
15613
15614 * fileio.c (Ffile_symlink_p): Doc fix.
15615
15616 * editfns.c (Fformat): Translate positions of text properties
15617 in the format string to apply them to the result.
15618
15619 * fileio.c (Finsert_file_contents): Doc fix.
15620 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
15621
15622 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
15623
15624 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
15625
15626 2003-04-08 Steven Tamm <steventamm@mac.com>
15627
15628 * mac.c (init_mac_osx_environment): Switch libexec and bin so
15629 that self-contained application finds libexec files.
15630
15631 2003-04-08 Kenichi Handa <handa@m17n.org>
15632
15633 * coding.c (code_convert_region_unwind):
15634 Set Vlast_coding_system_used to the argument.
15635 (code_convert_region): If post-read-conversion function changed
15636 the value of last-coding-sytem, keep the new value in
15637 coding->symbol so that it won't be overridden.
15638 (run_pre_post_conversion_on_str): Likewise.
15639 (coding_system_accept_latin_extra_p): New function.
15640 (find_safe_codings): Pay attention to characters registered in
15641 latin-extra-code-table.
15642
15643 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
15644
15645 * Makefile.in (md5.o): Add missing dependency info.
15646
15647 2003-04-06 Richard M. Stallman <rms@gnu.org>
15648
15649 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
15650
15651 * marker.c (verify_bytepos): New function.
15652
15653 * intervals.c (set_intervals_multibyte_1): When becoming
15654 multibyte, adjust right and left child sizes to a whole set of
15655 characters. If an interval gets zero total-length, delete it.
15656 If an interval consists of just its children, delete one of them.
15657
15658 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
15659 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
15660
15661 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
15662 All calls deleted.
15663 (lisp_malloc): Do the work here directly.
15664
15665 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
15666
15667 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
15668 char tables.
15669
15670 2003-04-04 Kenichi Handa <handa@m17n.org>
15671
15672 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
15673 destructively change "%S" to "%s".
15674
15675 2003-04-03 Miles Bader <miles@gnu.org>
15676
15677 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
15678 always set.
15679
15680 2003-04-01 Dave Love <fx@gnu.org>
15681
15682 * xfns.c (xpm_lookup_color): Grok "opaque".
15683
15684 2003-03-31 Andrew Choi <akochoi@shaw.ca>
15685
15686 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
15687 parent window ID.
15688
15689 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
15690
15691 * macterm.h (struct mac_output): Define x_pixels_diff and
15692 y_pixels_diff.
15693
15694 2003-03-31 Juanma Barranquero <lektu@terra.es>
15695
15696 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
15697 blockinput.h and files included from it.
15698
15699 2003-03-31 Kim F. Storm <storm@cua.dk>
15700
15701 The following changes consolidates the common code related to
15702 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
15703 files into frame.c.
15704
15705 * frame.c: Include blockinput.h.
15706 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
15707 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
15708 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
15709 related vars here.
15710 (struct frame_parm_table, frame_parms): New table for describing
15711 frame parameters and their associated Q-variable.
15712 The order of the parameters corresponds to the sequence of the
15713 frame_parm_handlers table in redisplay_interface.
15714 (x_fullscreen_move, x_set_frame_parameters)
15715 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
15716 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
15717 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
15718 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
15719 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
15720 Generic functions for processing of frame parameters.
15721 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
15722 (display_x_get_resource, x_get_resource_string): Functions for
15723 generic access to X resources.
15724 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
15725 (x_default_parameter, Fx_parse_geometry): Functions for generic
15726 access to frame parameters.
15727 (x_figure_window_size): Generic calculation of frame size.
15728 Fixed to add space needed for tool bar. Also setup size_hint_flags.
15729 (syms_of_frame): Intern and staticpro frame parameter variables.
15730 Defvar_lisp Vx_resource_class and Vx_resource_name here.
15731 Defsubr Sx_get_resource and Sx_parse_geometry.
15732
15733 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
15734 parameter related vars defined in frame.c.
15735 (EMACS_CLASS): Define here.
15736 (enum FULLSCREEN_*): Define here.
15737 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
15738 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
15739 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
15740 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
15741 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
15742 (x_set_visibility, x_set_autoraise, x_set_autolower)
15743 (x_set_unsplittable, x_set_vertical_scroll_bars)
15744 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
15745 (x_figure_window_size): Add prototypes.
15746
15747 * dispextern.h (frame_parm_handler): New typedef.
15748 (struct redisplay_interface): New member frame_parm_handlers.
15749 (enum resource_types): Move declaration here.
15750 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
15751 (x_default_parameter): Add prototypes.
15752
15753 * window.c: Remove extern decl for frame parameter vars.
15754 (change_window_heights): New generic function;
15755 replaces x_change_window_heights. All users changed.
15756
15757 * window.h (change_window_heights): Add prototype.
15758
15759 * xfaces.c: Remove extern decl for frame parameter vars.
15760
15761 * xterm.h (EMACS_CLASS): Remove. Use generic define.
15762 (struct w32_display_info): Fix type of xrdb member.
15763 (enum FULLSCREEN_*): Remove.
15764 Remove prototypes for generic functions (in frame.h).
15765
15766 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
15767 parameters now defined in frame.h and frame.c.
15768 (Vx_resource_name): Remove. Use generic var.
15769 (enum x_frame_parms): Remove (bogus, unused enum).
15770 (check_x_display_info): Make non-static (for frame.c).
15771 (struct x_frame_parm_table, x_frame_parms): Remove.
15772 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
15773 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
15774 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
15775 (x_change_window_heights, x_set_autoraise, x_set_autolower)
15776 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
15777 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
15778 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
15779 Remove. Use generic functions instead.
15780 (enum resource_types): Remove.
15781 (x_set_scroll_bar_default_width): New global function (for frame.c).
15782 (Fx_create_frame): Depend on x_figure_window_size to add space for
15783 toolbar and setup size_hint_flags.
15784 (x_frame_parm_handlers): New table for redisplay_interface.
15785 (syms_of_xfns): Don't intern/staticpro removed vars.
15786
15787 * xterm.c: Remove unnecessary extern declarations.
15788 (x_fullscreen_adjust): Remove. Use generic instead.
15789 (x_redisplay_interface): Add x_frame_parm_handlers member.
15790
15791 * w32gui.h (XrmDatabase): New (dummy) typedef.
15792
15793 * w32term.h (EMACS_CLASS): Remove. Use generic define.
15794 (struct w32_display_info): Fix type of xrdb member.
15795 (enum FULLSCREEN_*): Remove.
15796 (x_fullscreen_adjust): Remove prototype.
15797
15798 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
15799 parameters now defined in frame.h and frame.c.
15800 (Vx_resource_name): Remove. Use generic var.
15801 (enum x_frame_parms): Remove (bogus, unused enum).
15802 (check_x_display_info): Make non-static (for frame.c).
15803 (struct x_frame_parm_table, x_frame_parms): Remove.
15804 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
15805 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
15806 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
15807 (x_change_window_heights, x_set_autoraise, x_set_autolower)
15808 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
15809 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
15810 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
15811 Remove. Use generic functions instead.
15812 (enum resource_types): Remove.
15813 (x_set_scroll_bar_default_width): New global function (for frame.c).
15814 (Fx_create_frame): Depend on x_figure_window_size to add space for
15815 toolbar and setup size_hint_flags.
15816 (w32_frame_parm_handlers): New table for redisplay_interface.
15817 (syms_of_w32fns): Don't intern/staticpro removed vars.
15818
15819 * w32term.c: Remove unnecessary extern declarations.
15820 (x_fullscreen_adjust): Remove. Use generic instead.
15821 (x_redisplay_interface): Add w32_frame_parm_handlers member.
15822
15823 * w32reg.c (x_get_string_resource): Use XrmDatabase.
15824
15825 * macgui.h (XrmDatabase): New (dummy) typedef.
15826
15827 * macterm.h (EMACS_CLASS): Remove.
15828 (struct mac_display_info): Add xrdb member.
15829 (struct mac_output): Add want_fullscreen member.
15830
15831 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
15832 parameters now defined in frame.h and frame.c.
15833 (Vx_resource_name): Remove. Use generic var.
15834 (check_x_display_info): Make non-static (for frame.c).
15835 (struct x_frame_parm_table, x_frame_parms): Remove.
15836 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
15837 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
15838 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
15839 (x_change_window_heights, x_set_autoraise, x_set_autolower)
15840 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
15841 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
15842 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
15843 Remove. Use generic functions instead.
15844 (enum resource_types): Remove.
15845 (x_set_scroll_bar_default_width): New global function (for frame.c).
15846 (mac_frame_parm_handlers): New table for redisplay_interface.
15847 (syms_of_macfns): Don't intern/staticpro removed vars.
15848
15849 * macterm.c: Remove unnecessary extern declarations.
15850 (x_redisplay_interface): Add mac_frame_parm_handlers member.
15851
15852 * Makefile.in (frame.o): Add dependency on blockinput.h and files
15853 included from it (atimer.h and systime.h).
15854
15855 2003-03-30 Andreas Schwab <schwab@suse.de>
15856
15857 * xdisp.c (x_insert_glyphs): Fix swapped width and height
15858 parameters for shift_glyphs_for_insert.
15859
15860 * macterm.c (x_redisplay_interface): Add missing entry for
15861 draw_vertical_window_border.
15862
15863 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
15864
15865 * fileio.c (Fexpand_file_name): In the no-handler case, after
15866 expanding, look again for a handler and invoke it. This is needed
15867 for filenames like "/foo/../user@host:/bar/../baz" -- the first
15868 expansion produces "/user@host:/bar/../baz" which needs to be
15869 expanded again for the finame result "/user@host:/baz".
15870
15871 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15872
15873 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
15874 of area to be redrawn for better performance.
15875
15876 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
15877
15878 * xterm.c (take_vertical_position_into_account): Remove.
15879 (xt_action_hook): Call set_vertical_scroll_bar if needed.
15880 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
15881 (xm_scroll_callback, x_create_toolkit_scroll_bar)
15882 (x_set_toolkit_scroll_bar_thumb): Simplify.
15883 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
15884 (XTread_socket): Remove unused var.
15885 (x_make_frame_invisible): Replace goto with else.
15886
15887 * xdisp.c (set_vertical_scroll_bar): New fun.
15888 (redisplay_window): Use it.
15889
15890 2003-03-26 Richard M. Stallman <rms@gnu.org>
15891
15892 * xdisp.c (update_tool_bar): Recompute tool bar if
15893 update_mode_lines is set. Set w->update_mode_line
15894 only if the tool bar contents actually change.
15895 (update_menu_bar): Undo previous change.
15896
15897 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15898
15899 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
15900 (xg_frame_set_char_size): Calculate scroll bar width before frame
15901 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
15902 (xg_separator_p): Check for all documented separator types.
15903 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
15904 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
15905
15906 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
15907 so tool bar gets updated.
15908
15909 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
15910
15911 * data.c (store_symval_forwarding): Re-instate part of the code
15912 that was deleted with too much enthusiasm.
15913
15914 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
15915
15916 * data.c (store_symval_forwarding): Delete special read-only
15917 hack for type == -1, since we now use ->constant instead.
15918 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
15919
15920 * buffer.c (overlays_in): Declare static.
15921 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
15922 `constant' field rather than the variable's `type' field.
15923
15924 2003-03-24 Andrew Choi <akochoi@shaw.ca>
15925
15926 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
15927
15928 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
15929
15930 * fns.c [MAC_OSX]: Do not redefine vector.
15931
15932 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
15933
15934 * macgui.h: Remove definition of No_Cursor.
15935
15936 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
15937
15938 * xdisp.c: Define No_Cursor.
15939 (x_write_glyphs, notice_overwritten_cursor)
15940 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
15941 (note_mouse_highlight): Remove Mac-specific code.
15942 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
15943
15944 2003-03-24 John Paul Wallington <jpw@gnu.org>
15945
15946 * xdisp.c (redisplay_window): If mini window's buffer is not
15947 empty, then redisplay it like other windows.
15948
15949 2003-03-23 Kim F. Storm <storm@cua.dk>
15950
15951 * w32term.c (w32_draw_window_cursor): Fix last change.
15952
15953 2003-03-23 Kenichi Handa <handa@m17n.org>
15954
15955 * alloc.c (make_string_from_bytes, make_specified_string):
15956 Add `const' for the arg CONTENTS.
15957
15958 * lisp.h (make_string_from_bytes, make_specified_string):
15959 Prototypes adjusted.
15960
15961 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15962
15963 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
15964
15965 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
15966 (XG_SB_RANGE): New define.
15967
15968 * gtkutil.c (xg_fixed_handle_expose): New function.
15969 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
15970 expose events.
15971 (xg_update_scrollbar_pos): Take two more arguments, left and width
15972 of scroll bar including borders.
15973 Clear left and right part outside scroll bar separately as some
15974 themes have bars that are not an even number of pixels.
15975 Don't set reallocate_redraws, don't call
15976 gdk_window_process_all_updates.
15977 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
15978 so no need to change it. Calculate size and value with XG_SB_RANGE.
15979
15980 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
15981 Pass left and width of scroll bar including borders to
15982 xg_update_scrollbar_pos.
15983
15984 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
15985
15986 * Makefile.in: Make sure space precedes end-of-line backslashes.
15987
15988 2003-03-22 Kim F. Storm <storm@cua.dk>
15989
15990 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
15991 Add generic versions here. Remove system specific versions
15992 defined elsewhere.
15993
15994 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
15995 Add prototypes.
15996
15997 * xterm.h (STORE_NATIVE_RECT): New macro.
15998
15999 2003-03-21 Kim F. Storm <storm@cua.dk>
16000
16001 * xdisp.c (get_glyph_string_clip_rect):
16002 Use FRAME_INTERNAL_BORDER_WIDTH.
16003
16004 * dispextern.h (struct redisplay_interface): Add active_p
16005 argument to draw_window_cursor member. All uses changed.
16006
16007 2003-03-21 Kim F. Storm <storm@cua.dk>
16008
16009 The following changes consolidate code related to writing and
16010 inserting glyphs, exposing frame, the tool bar, the mouse face,
16011 the output cursor, and help echo from xterm.c, w32term.c and
16012 macterm.c into xdisp.c. It also generalizes the use of the
16013 window_part enum instead of using numeric values throughout.
16014
16015 * xdisp.c: Consolidate gui-independent code here.
16016 Include keymap.h.
16017 (Qhelp_echo): Import.
16018 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
16019 (help_echo_string, help_echo_window, help_echo_object)
16020 (previous_help_echo_string, help_echo_pos): Declare here.
16021 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
16022 (estimate_mode_line_height): Define here. Handle windowing
16023 systems directly (without using estimate_mode_line_height_hook).
16024 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
16025 (update_window_cursor, update_cursor_in_window_tree)
16026 (fast_find_position, fast_find_string_pos)
16027 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
16028 (expose_area, expose_line, expose_overlaps, expose_window)
16029 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
16030 declared static as they are only used locally in xdisp.c.
16031 (draw_glyphs): Rename from x_draw_glyphs and make static.
16032 (tool_bar_item_info, notice_overwritten_cursor): Make static.
16033 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
16034 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
16035 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
16036 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
16037 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
16038 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
16039 (note_mouse_highlight, x_clear_window_mouse_face)
16040 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
16041 (x_intersect_rectangles): New generic functions for use by xdisp.c
16042 and GUI front-ends.
16043 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
16044 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
16045
16046 * dispextern.h (Display_Info): Generic typedef for *_display_info.
16047 (NativeRectangle): Generic typedef for rectangle type.
16048 (enum window_part): Move here from window.c.
16049 (struct redisplay_interface): New members flush_display_optional,
16050 define_frame_cursor, clear_frame_area, draw_window_cursor,
16051 draw_vertical_window_border, shift_glyphs_for_insert.
16052 Rename member clear_mouse_face to clear_window_mouse_face.
16053 (estimate_mode_line_height_hook): Remove hook.
16054 (auto_raise_tool_bar_buttons_p): Don't declare extern.
16055 (tool_bar_item_info): Remove prototype.
16056 (help_echo_string, help_echo_window, help_echo_object)
16057 (previous_help_echo_string, help_echo_pos)
16058 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
16059 (x_stretch_cursor_p, output_cursor): Declare extern.
16060 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
16061 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
16062 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
16063 (display_and_set_cursor, set_output_cursor, x_cursor_to)
16064 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
16065 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
16066 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
16067 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
16068 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
16069 Add prototypes.
16070 (mode_line_string, marginal_area_string): Fix prototypes.
16071
16072 * window.c (enum window_part): Move to dispextern.h.
16073 (coordinates_in_window): Use enum window_part member names
16074 instead of numbers to describe return value.
16075 (struct check_window_data): Change part member to window_part.
16076 (check_window_containing): Return window_part unaltered.
16077 (window_from_coordinates): Change part arg from int to enum
16078 window_part. Allow part arg to be null. All users changed.
16079
16080 * window.h (window_from_coordinates): Fix prototype.
16081
16082 * term.c (estimate_mode_line_height): Move to xdisp.c.
16083
16084 * keyboard.c (make_lispy_event): Use enum window_part.
16085
16086 * dispnew.c (mode_line_string, marginal_area_string): Use enum
16087 window_part instead of int in arg list. Users changed.
16088
16089 * xterm.h (No_Cursor): Declare as None for X.
16090 (struct mac_output): Replace member cross_cursor by hand_cursor.
16091
16092 * xterm.c: Remove consolidated defines and code.
16093 (BETWEEN): Remove unused macro.
16094 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
16095 (x_define_frame_cursor, x_clear_frame_area)
16096 (x_draw_window_cursor): New X-specific functions for RIF.
16097 (x_redisplay_interface): Add new members.
16098
16099 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
16100
16101 * w32term.h (struct w32_output): Remove cross_cursor member.
16102
16103 * w32term.c: Remove consolidated defines and code.
16104 (BETWEEN): Remove unused macro.
16105 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
16106 (w32_define_frame_cursor, w32_clear_frame_area)
16107 (w32_draw_window_cursor): New W32-specific functions for RIF.
16108 (w32_redisplay_interface): Add new members.
16109
16110 * w32gui.h (No_Cursor): Define as 0 for W32.
16111 (XRectangle): Add X compatible rectangle type.
16112 (NativeRectangle): Declare as RECT for W32.
16113 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
16114
16115 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
16116
16117 * w32console.c: Remove consolidated defines and code.
16118
16119 * msdos.h (Display_Info): Add generic typedef.
16120
16121 * msdos.c: Remove consolidated defines and code.
16122 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
16123
16124 * macterm.h (struct mac_output): Replace member cross_cursor by
16125 hand_cursor.
16126 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
16127
16128 * macterm.c: Remove consolidated defines and code.
16129 (BETWEEN): Remove unused macro.
16130 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
16131 (mac_define_frame_cursor, mac_clear_frame_area)
16132 (mac_draw_window_cursor): New Mac-specific functions for RIF.
16133 (x_redisplay_interface): Add new members.
16134
16135 * macgui.h (No_Cursor): Define as 0 for Mac.
16136 (XRectangle): Add X compatible rectangle type.
16137 (NativeRectangle): Declare as Rect for Mac.
16138 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
16139
16140 * macfns.c (x_set_mouse_color): Setup hand_cursor.
16141 (x_set_cursor_color): Use x_display_and_set_cursor.
16142
16143 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
16144 included from it. Add dependency on keymap.h.
16145
16146 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
16147
16148 2003-03-21 Kenichi Handa <handa@m17n.org>
16149
16150 * fileio.c (Fexpand_file_name): Fix previous change.
16151
16152 2003-03-19 Kenichi Handa <handa@m17n.org>
16153
16154 * fileio.c (Ffile_name_directory): Reconstruct file name by
16155 make_specified_string.
16156 (Ffile_name_nondirectory, Ffile_name_as_directory)
16157 (Fdirectory_file_name, Fexpand_file_name)
16158 (Fsubstitute_in_file_name): Likewise.
16159 (Fread_file_name): Compare decoded homedir with DIR and
16160 DEFAULT_FILENAME.
16161
16162 * alloc.c (make_specified_string): If NCHARS is negative, count
16163 the number of characters.
16164
16165 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16166
16167 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
16168 all widgets.
16169
16170 * gtkutil.h: Removed xg_ignore_next_thumb.
16171
16172 2003-03-18 Kenichi Handa <handa@m17n.org>
16173
16174 * coding.c (Vchar_coding_system_table): Remove this variable.
16175 (Vcoding_system_safe_chars): New variable.
16176 (intersection): Remove this function.
16177 (find_safe_codings): Don't use Vchar_coding_system_table, but try
16178 all codings in SAFE_CODINGS.
16179 (Ffind_coding_systems_region_internal): Adjust for the change of
16180 find_safe_codings. Get generic coding systems from
16181 Vcoding_system_safe_chars.
16182 (Fdefine_coding_system_internal): New function.
16183 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
16184 Initialize and staticpro Vcoding_system_safe_chars.
16185
16186 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16187
16188 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
16189 equal old values before updating.
16190
16191 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
16192
16193 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
16194
16195 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16196
16197 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
16198 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
16199 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
16200 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
16201 (xg_create_scroll_bar): Pass bar to button event callback.
16202 (xg_find_top_left_in_fixed): New function.
16203 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
16204 whole scroll bar area. Get old position with
16205 xg_find_top_left_in_fixed, calculate and only clear needed areas.
16206 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
16207 dragging is in progress. Calculate whole as for Motif.
16208 Remove code that saved last values. Call gtk_range functions to
16209 set scroll bar sizes.
16210
16211 * gtkutil.h: Removed xg_ignore_next_thumb.
16212
16213 2003-03-17 Juanma Barranquero <lektu@terra.es>
16214
16215 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
16216 and files included from it.
16217
16218 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
16219
16220 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
16221 multiple occurrences of the same keymap under different prefixes.
16222 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
16223
16224 2003-03-16 Jason Rumney <jasonr@gnu.org>
16225
16226 * w32gui.h: Use HDC for Display.
16227
16228 * w32term.c (w32_encode_char): Prevent double-byte chars from
16229 crashing Emacs.
16230
16231 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
16232 as binary.
16233
16234 2003-03-16 Juanma Barranquero <lektu@terra.es>
16235
16236 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
16237
16238 2003-03-16 Kim F. Storm <storm@cua.dk>
16239
16240 The following changes consolidate some of the gui-independent
16241 parts of the processing and drawing of "glyph strings" from
16242 xterm.c, w32term.c, and macterm.c into xdisp.c.
16243
16244 * dispextern.h (struct glyph): Reduce face_id member from 22 to
16245 21 bits (this reduces number of faces from 4M to 2M).
16246 Replace W32 specific w32_font_type member (2 bits) by generic
16247 font_type member (3 bits) for portability.
16248 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
16249 (enum draw_glyphs_face): Define here.
16250 (struct glyph_string): Define here. Merge W32 and X versions.
16251 (struct redisplay_interface): New members per_char_metric,
16252 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
16253 (VCENTER_BASELINE_OFFSET): Define here.
16254 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
16255 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
16256
16257 * xdisp.c: Consolidate gui-independent "glyph string" code here.
16258 (dump_glyph_string): Moved here.
16259 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
16260 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
16261 (fill_composite_glyph_string, fill_glyph_string)
16262 (fill_image_glyph_string, fill_stretch_glyph_string)
16263 (left_overwritten, left_overwriting, right_overwritten)
16264 (right_overwriting, get_char_face_and_encoding)
16265 (set_glyph_string_background_width, compute_overhangs_and_x)
16266 (append_glyph, append_composite_glyph, produce_image_glyph)
16267 (take_vertical_position_into_account, append_stretch_glyph)
16268 (produce_stretch_glyph): New generic functions (based on X version).
16269 Call platform specific functions through rif.
16270 (INIT_GLYPH_STRING): New macro, hides W32 details.
16271 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
16272 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
16273 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
16274 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
16275 (notice_overwritten_cursor):
16276 Generic functions exported to platform modules. Users changed.
16277
16278 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
16279 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
16280 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
16281 New macros for consolidated code.
16282
16283 * xterm.c: Remove consolidated defines and code.
16284 (x_per_char_metric, x_encode_char)
16285 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
16286 (x_redisplay_interface): Add new members.
16287
16288 * w32gui.h (Display): Add dummy typedef for consolidation.
16289 (XChar2b): Define alias for wchar_t for consolidation.
16290 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
16291
16292 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
16293 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
16294 New macros for consolidation.
16295
16296 * w32term.c: Remove consolidated defines and code.
16297 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
16298 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
16299 (w32_per_char_metric): Change font_type arg to int for RIF.
16300 (w32_encode_char): Return int according to RIF requirements.
16301 (w32_compute_glyph_string_overhangs): Adapt to RIF.
16302 (w32_get_glyph_overhangs): New function for RIF. Uses generic
16303 x_get_glyph_overhangs.
16304 (w32_redisplay_interface): Add new members.
16305
16306 * macgui.h (XChar2b): Move typedef here for consolidation.
16307 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
16308
16309 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
16310 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
16311 consolidation.
16312
16313 * macterm.c: Remove consolidated defines and code.
16314 (mac_per_char_metric): New function for RIF.
16315 (mac_encode_char): Adapt to new RIF requirements.
16316 (mac_compute_glyph_string_overhangs): Adapt for RIF.
16317 (x_redisplay_interface): Add new members.
16318
16319 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
16320
16321 * keymap.c (Vmenu_events): New var.
16322 (syms_of_keymap): Initialize it.
16323 (where_is_internal): Check more carefully what is a menu event.
16324
16325 2003-03-14 Richard M. Stallman <rms@gnu.org>
16326
16327 * lread.c (read1): After #!, exit loop on eof.
16328
16329 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16330
16331 * gtkutil.h: Add declaration for xg_frame_cleared.
16332
16333 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
16334
16335 * gtkutil.c (struct xg_last_sb_pos): New structure.
16336 (handle_fixed_child): New function.
16337 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
16338 and force a redraw on them.
16339 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
16340 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
16341 so we can avoid unneeded redraws.
16342 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
16343 and force a redraw on the scroll bar.
16344 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
16345 if xg_last_sb_pos shows the positions are up to date.
16346 (xg_frame_cleared): New function.
16347
16348 2003-03-13 Kenichi Handa <handa@m17n.org>
16349
16350 * coding.c (Fdetect_coding_region): Fix docstring.
16351 (Fdetect_coding_string): Fix docstring.
16352
16353 2003-03-13 Andreas Schwab <schwab@suse.de>
16354
16355 * gtkutil.c: Add prototype for create_menus.
16356
16357 * data.c (long_to_cons): Fix type of top.
16358
16359 * xselect.c (selection_data_to_lisp_data): Use int instead of
16360 long for an integer of size 4.
16361
16362 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
16363 (xg_tool_bar_help_callback): Likewise.
16364
16365 2003-03-12 Andreas Schwab <schwab@suse.de>
16366
16367 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
16368
16369 2003-03-12 Kim F. Storm <storm@cua.dk>
16370
16371 The following changes consolidate the fringe handling from
16372 xterm.c, w32term.c, and macterm.c into xdisp.c.
16373
16374 * xdisp.c: Consolidate fringe handling code here.
16375 (left_bits, right_bits, continued_bits, continuation_bits)
16376 (ov_bits, zv_bits): Define fringe bitmaps.
16377 (fringe_bitmaps): New array holding fringe bitmaps.
16378 (draw_fringe_bitmap): Draw a specific bitmap; call display
16379 specific drawing routine via rif->draw_fringe_bitmap.
16380 (draw_row_fringe_bitmaps): Generic replacement for
16381 x_draw_row_fringe_bitmaps; all callers changed.
16382 (compute_fringe_widths): Generic replacement for
16383 x_compute_fringe_widths; all callers changed.
16384
16385 * dispextern.h (enum fringe_bitmap_type): Define here.
16386 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
16387 (fringe_bitmaps): Declare extern.
16388 (struct redisplay_interface): New member draw_fringe_bitmap.
16389 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
16390
16391 * xterm.c: Remove generic fringe code.
16392 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
16393 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
16394
16395 * w32term.c: Remove generic fringe code.
16396 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
16397 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
16398
16399 * macterm.c: Remove generic fringe code.
16400 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
16401 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
16402
16403 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
16404
16405 * print.c (Fprin1_to_string): Return unibyte string if possible.
16406
16407 2003-03-09 David Kastrup <dak@gnu.org>
16408
16409 * process.c (read_process_output): We have allocated enough space
16410 for readmax and carryover, so actually use the alloted space.
16411
16412 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16413
16414 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
16415 toolkit scrollbar click.
16416
16417 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
16418 for USE_GTK.
16419 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
16420 also.
16421 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
16422 scrollbar and control is pressed, call x_scroll_bar_handle_click.
16423
16424 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
16425
16426 * gtkutil.c (xg_get_scroll_id_for_window): New function.
16427 (xg_tool_bar_item_expose_callback): New function.
16428 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
16429 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
16430 on the tool bar widget.
16431 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
16432 to expose on the tool bar item widgets.
16433
16434 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16435
16436 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
16437 struct image* when deciding to update (struct image* may have been
16438 deleted from the image cache).
16439
16440 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
16441 the event isn't for a frame (i.e. for dialogs).
16442
16443 2003-03-07 Kenichi Handa <handa@m17n.org>
16444
16445 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
16446 composition components reaches the limit, terminate composing.
16447 (COMPOSITION_OK): New macro.
16448 (detect_coding_iso2022): Use it if an escape sequence for
16449 composition is found.
16450 (coding_restore_composition): Adjust the number of composition
16451 components if it is not sane.
16452
16453 2003-03-06 Juanma Barranquero <lektu@terra.es>
16454
16455 * w32term.h (struct w32_display_info): Add xrdb member to support
16456 passing resources via -xrm on Windows.
16457
16458 * w32term.c (w32_make_rdb): New function.
16459 (w32_term_init): Use it to initialize xrdb member of w32_display_info
16460 struct. Delete leftover code.
16461
16462 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
16463 for resources passed on the command line.
16464
16465 * w32reg.c (w32_get_rdb_resource): New function.
16466 (x_get_string_resource): Use it, so resources passed with -xrm
16467 supercede the ones in the registry.
16468
16469 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16470
16471 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
16472 instead of x_top_window_to_frame.
16473
16474 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16475
16476 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
16477 when restarting Emacs.
16478
16479 2003-03-03 Richard M. Stallman <rms@gnu.org>
16480
16481 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
16482 to run kill-buffer-query-functions.
16483 (Qkill_buffer_query_functions): New var.
16484 (syms_of_buffer): Init and staticpro it.
16485
16486 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16487
16488 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
16489
16490 2003-02-25 Kim F. Storm <storm@cua.dk>
16491
16492 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
16493 If centering point failed to make whole line visible and vscroll
16494 is non-zero, disable vscroll and try centering point again.
16495
16496 * lread.c (read1): Accept `single space' syntax like (? x).
16497
16498 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16499
16500 * keyboard.c (cancel_hourglass_unwind): Surround with
16501 #ifdef HAVE_X_WINDOWS
16502
16503 2003-02-25 Kenichi Handa <handa@m17n.org>
16504
16505 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
16506 process only when "subprocesses" is defined.
16507
16508 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
16509
16510 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
16511
16512 2003-02-24 Juanma Barranquero <lektu@terra.es>
16513
16514 * callint.c (fix_command): Declare as static void and move before
16515 Fcall_interactively.
16516
16517 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
16518 (syms_of_xdisp): Don't initialize Qwhen.
16519
16520 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16521
16522 * keyboard.c (cancel_hourglass_unwind): New function.
16523 (command_loop_1): Cancel hourglass with unwind-protect.
16524
16525 2003-02-23 Richard M. Stallman <rms@gnu.org>
16526
16527 * callint.c (fix_command): New subroutine, from Fcall_interactively.
16528 Detect (when ... (region-beginning)) etc.
16529 (Fcall_interactively): Call fix_command.
16530 (Qif, Qwhen): New variables.
16531 (syms_of_callint): Init and staticpro them.
16532
16533 * regex.c (print_partial_compiled_pattern): Output to stderr.
16534
16535 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
16536
16537 * dired.c (directory_files_internal): Don't expand directory.
16538 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
16539 instead. From Lars Hansen <larsh@math.ku.dk>.
16540
16541 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
16542
16543 * fns.c (string_to_multibyte): Remove unused var i.
16544 (Flanginfo): Fix int/Lisp_Object mixup.
16545 (void_call2): New fun.
16546 (Fmap_char_table): Use it in place of call2.
16547
16548 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
16549
16550 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
16551
16552 * keymap.c (copy_keymap_1): Make it static.
16553
16554 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
16555
16556 2003-02-22 David Ponce <david@dponce.com>
16557
16558 * lread.c (Fload): Don't check STRING_MULTIBYTE.
16559
16560 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16561
16562 * process.h: Removed subtty field from struct Lisp_Process.
16563
16564 * process.c (create_process): Remove setting of subtty.
16565 (emacs_get_tty_pgrp): New function.
16566 (Fprocess_running_child_p, process_send_signal):
16567 Call emacs_get_tty_pgrp instead of ioctl.
16568 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
16569
16570 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
16571
16572 * keymap.c (Fdefine_key): Doc fix.
16573
16574 2003-02-21 Juanma Barranquero <lektu@terra.es>
16575
16576 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
16577
16578 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
16579 POLLING_PROBLEM_IN_SELECT.
16580
16581 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
16582 Delete #undef of POLLING_PROBLEM_IN_SELECT.
16583
16584 * s/hpux10-20.h: New file.
16585
16586 * process.c (wait_reading_process_input):
16587 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
16588
16589 2003-02-20 Kenichi Handa <handa@m17n.org>
16590
16591 * fontset.c (check_fontset_name): If NAME is nil, return the
16592 default fontset.
16593 (override_font_info): New function.
16594 (Fset_fontset_font): Document that NAME nil means the default fontset.
16595 (Ffontset_info): If FONTSET is not the default fontset, merge
16596 FONTSET onto the copy of the default fontset, and work on that
16597 copy. Document that NAME nil means the default fontset.
16598 (Ffontset_font): Document that NAME nil means the default fontset.
16599
16600 * process.c (setup_process_coding_systems): If the process's
16601 in/out descriptor is -1, do nothing.
16602
16603 2003-02-19 Andreas Schwab <schwab@suse.de>
16604
16605 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
16606 Add prototypes.
16607
16608 2003-02-19 Kenichi Handa <handa@m17n.org>
16609
16610 * xfaces.c (try_alternative_families): Try all scalable fonts if
16611 Vscalable_fonts_allowed is not Qt.
16612
16613 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16614
16615 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
16616
16617 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16618
16619 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
16620 names.
16621
16622 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
16623 (sorted_font_list): Move allocation of struct font_name to
16624 x_face_list_fonts.
16625 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
16626 (Fx_list_fonts): Set maxnames to -1 to get all font names.
16627
16628 2003-02-18 Kim F. Storm <storm@cua.dk>
16629
16630 * lread.c (read1): Fix last change.
16631 "`" is not always special. Allow "?" after a character constant.
16632
16633 2003-02-18 Andrew Choi <akochoi@shaw.ca>
16634
16635 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
16636
16637 2003-02-18 Andreas Schwab <schwab@suse.de>
16638
16639 * window.c (window_scroll_pixel_based): Move outside a
16640 multi-glyph character before setting new window start.
16641
16642 * xdisp.c (in_display_vector_p): New function.
16643 * dispextern.h (in_display_vector_p): Declare.
16644
16645 2003-02-18 Kim F. Storm <storm@cua.dk>
16646
16647 * lread.c (read1): Fix and relax read syntax.
16648 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
16649 Only recognize "," after dotted-pair dot if inside backquote.
16650 Never include "`" or "," (inside backquote) in a symbol.
16651 Allow dotted-pair dot after a character constant.
16652 Allow "`" and "," (inside backquote) after a character constant.
16653
16654 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16655
16656 * gtkutil.c (xg_tool_bar_expose_callback): New function.
16657 (xg_create_tool_bar): Force style of tool bar to be horizontal with
16658 icons. Set name of tool bar to emacs-toolbar.
16659 (update_frame_tool_bar): Connect expose event to
16660 xg_tool_bar_expose_callback.
16661
16662 2003-02-17 Richard M. Stallman <rms@gnu.org>
16663
16664 * keyboard.c (this_command_key_count_reset): New variable.
16665 Initiatize to 0 where this_command_key_count is set.
16666 (read_char): Save and restore this_command_key_count_reset
16667 around input method code.
16668 (read_char): If this_command_key_count_reset, echo reread commands.
16669 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
16670
16671 2003-02-17 Kenichi Handa <handa@m17n.org>
16672
16673 * fns.c (string_to_multibyte): Always return a multibyte string.
16674
16675 2003-02-16 Jason Rumney <jasonr@gnu.org>
16676
16677 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
16678 Negative max_fonts parameter means list all.
16679
16680 2003-02-14 Dave Love <fx@gnu.org>
16681
16682 * fns.c (Flanginfo): Doc fix.
16683
16684 2003-02-13 Kim F. Storm <storm@cua.dk>
16685
16686 * lread.c (read_escape): Interpret \s as a SPACE character, except
16687 for \s-X in a character constant which still is the super modifier.
16688 (read1): Signal an `invalid read syntax' error if a character
16689 constant is immediately followed by a digit or symbol character.
16690
16691 * search.c (Fmatch_data): Doc fix. Explicitly state that
16692 match-data is undefined if last search failed.
16693
16694 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
16695 All uses changed.
16696
16697 2003-02-12 Juanma Barranquero <lektu@terra.es>
16698
16699 * eval.c (Fdefmacro): Fix typo.
16700
16701 2003-02-12 Kim F. Storm <storm@cua.dk>
16702
16703 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
16704 macro is a string, convert meta modifiers in string when copying
16705 the string into a vector.
16706
16707 2003-02-11 Kim F. Storm <storm@cua.dk>
16708
16709 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
16710
16711 2003-02-11 Kenichi Handa <handa@m17n.org>
16712
16713 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
16714
16715 2003-02-10 Kim F. Storm <storm@cua.dk>
16716
16717 * process.c: Doc fixes.
16718 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
16719
16720 2003-02-10 Kenichi Handa <handa@m17n.org>
16721
16722 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
16723
16724 * process.c (QCfilter_multibyte): New variable.
16725 (setup_process_coding_systems): New function.
16726 (Fset_process_buffer, Fset_process_filter):
16727 Call setup_process_coding_systems.
16728 (Fstart_process): Initialize the member `filter_multibyte' of
16729 struct Lisp_Process.
16730 (create_process): Call setup_process_coding_systems.
16731 (Fmake_network_process): New keyward `:filter-multibyte'.
16732 Initialize the member `filter_multibyte' of struct Lisp_Process.
16733 Call setup_process_coding_systems.
16734 (server_accept_connection): Call setup_process_coding_systems.
16735 (read_process_output): If the process has a filter, decide the
16736 multibyteness of a string to given to the filter by
16737 `filter_multibyte' member of the process. If the process doesn't
16738 have a filter and the result of conversion is unibyte, use
16739 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
16740 multibyte form.
16741 (Fset_process_coding_system): Call setup_process_coding_systems.
16742 (Fset_process_filter_multibyte): New function.
16743 (Fprocess_filter_multibyte_p): New function.
16744 (syms_of_process): Intern and staticpro QCfilter_multibyte.
16745 Defsubr Sset_process_filter_multibyte and
16746 Sprocess_filter_multibyte_p.
16747
16748 * process.h (struct Lisp_Process): New member filter_multibyte.
16749
16750 * lisp.h (setup_process_coding_systems): Add prototype.
16751
16752 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
16753 process, update coding systems for the process.
16754
16755 2003-02-09 Kenichi Handa <handa@m17n.org>
16756
16757 * fns.c (string_to_multibyte): New function.
16758 (Fstring_to_multibyte): New function.
16759 (syms_of_fns): Defsubr it.
16760
16761 2003-02-08 Andreas Schwab <schwab@suse.de>
16762
16763 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
16764 instead of the substitution.
16765
16766 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16767
16768 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
16769
16770 * xmenu.c (menu_position_func): Adjust menu popup position so that
16771 the menu is fully visible.
16772
16773 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16774
16775 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
16776 (x_make_frame_invisible, x_wm_set_icon_position):
16777 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
16778
16779 * xfns.c (x_set_name, x_set_title): Ditto.
16780
16781 2003-02-04 Richard M. Stallman <rms@gnu.org>
16782
16783 * keyboard.c (echo_now): Update before_command_echo_length.
16784 (Freset_this_command_lengths): Reset this_command_key_count etc.
16785 immediately rather than arranging to do it later.
16786 (before_command_key_count_1, before_command_echo_length_1)
16787 (before_command_restore_flag): Vars deleted.
16788 (add_command_key): Don't handle before_command_restore_flag.
16789 (read_char, record_menu_key): Don't update before_command_key_count or
16790 before_command_echo_length.
16791 (read_char): Don't handle before_command_restore_flag.
16792
16793 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
16794 in direct-output clauses if it wouldn't be called in the ordinary case.
16795
16796 2003-02-04 Kim F. Storm <storm@cua.dk>
16797
16798 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
16799
16800 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16801
16802 * gtkutil.c (remove_from_container): Copying list is not needed.
16803 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
16804 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
16805 on list returned from gtk_container_get_children to avoid memory leak.
16806
16807 2003-02-01 Jason Rumney <jasonr@gnu.org>
16808
16809 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
16810 local malloc.
16811 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
16812 definitions in xpm.h.
16813 (init_xpm_functions): New function.
16814 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
16815 (init_external_image_libraries): Try to load libXpm.dll.
16816
16817 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
16818 timestamp.
16819
16820 2003-01-31 Dave Love <fx@gnu.org>
16821
16822 * syntax.c (Fskip_chars_forward)
16823 (open-paren-in-column-0-is-defun-start): Doc fix.
16824
16825 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
16826
16827 * fileio.c: Support // at start of name for Cygwin (just added proper
16828 preprocessor tests).
16829
16830 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
16831
16832 * Makefile.in: Use @EXEEXT@ for Cygwin.
16833
16834 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
16835
16836 * s/cygwin.h: Added for Cygwin port.
16837
16838 2003-01-31 Juanma Barranquero <lektu@terra.es>
16839
16840 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
16841 when including gif_lib.h.
16842 (init_gif_functions, init_tiff_functions): New functions.
16843 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
16844 Windows. Disable color table lookups. Call library functions
16845 through pointers determined at runtime.
16846 (init_external_image_libraries): Try to load libungif.dll and
16847 libtiff.dll.
16848
16849 2003-01-31 Kenichi Handa <handa@m17n.org>
16850
16851 * xdisp.c (SKIP_GLYPHS): New macro.
16852 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
16853
16854 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16855
16856 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
16857
16858 2003-01-30 Dave Love <fx@gnu.org>
16859
16860 * alloc.c (Vgc_elapsed, gcs_done): New variables.
16861 (Fgarbage_collect): Use them.
16862 (init_alloc, syms_of_alloc): Set them up.
16863
16864 2003-01-30 Juanma Barranquero <lektu@terra.es>
16865
16866 * w32fns.c (init_external_image_libraries): Add missing operator.
16867
16868 2003-01-29 Jason Rumney <jasonr@gnu.org>
16869
16870 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
16871 an alternative name for jpeg.dll.
16872
16873 2003-01-29 Kenichi Handa <handa@m17n.org>
16874
16875 * xdisp.c (set_cursor_from_row): Pay attention to string display
16876 properties.
16877
16878 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
16879
16880 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
16881 <escape>.
16882 (keycode_to_xkeysym_table): Reformat and add more comments.
16883 (XTread_socket): Drop special case for backspace.
16884
16885 2003-01-28 Andrew Choi <akochoi@shaw.ca>
16886
16887 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
16888 values in old-style RGB specs.
16889
16890 2003-01-27 Juanma Barranquero <lektu@terra.es>
16891
16892 * w32fns.c (init_external_image_libraries): Try alternate names for the
16893 jpeg dll.
16894
16895 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16896
16897 * gtkutil.c (create_dialog, xg_separator_p)
16898 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
16899 before calling strcmp or strlen.
16900
16901 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16902
16903 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
16904 and handle image load failure.
16905
16906 2003-01-26 Jason Rumney <jasonr@gnu.org>
16907
16908 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
16909 New functions.
16910 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
16911 Disable color table lookups. Call jpeg library functions
16912 through pointers determined at runtime.
16913 (init_external_image_libraries): Try to load jpeg.dll.
16914
16915 2003-01-25 Richard M. Stallman <rms@gnu.org>
16916
16917 * lisp.h: Declare format2 instead of format1.
16918
16919 * fileio.c (barf_or_query_if_file_exists):
16920 Call format2 instead of format1.
16921
16922 * editfns.c (format2): New function, replaces format1
16923 but takes exactly two Lisp Objects as format args.
16924
16925 * buffer.c (Fkill_buffer): Call format2 instead of format1.
16926
16927 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16928
16929 * xterm.h: Change to return value of x_dispatch_event to int.
16930
16931 * xterm.c (x_filter_event): New function.
16932 (event_handler_gdk, XTread_socket): Call x_filter_event.
16933 (x_dispatch_event): Change to return value of finish.
16934 (event_handler_gdk): Use return value from x_dispatch_event.
16935
16936 * xfns.c (x_window): Call create_frame_xic for GTK version to
16937 initialize input methods.
16938
16939 * gtkutil.h: Add (void) prototypes.
16940
16941 * gtkutil.c (create_menus): Remove code that puts the help menu to
16942 the right.
16943
16944 2003-01-25 Jason Rumney <jasonr@gnu.org>
16945
16946 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
16947 [HAVE_PNG]: Sync with xfns.c version.
16948 (png_load): Adjust colors for Windows. Use Windows
16949 bitmaps. Disable color table lookups.
16950 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
16951 (init_png_functions): New function.
16952 (png_read_from_memory, png_load): Call png library functions
16953 through pointers determined at runtime.
16954 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
16955 (init_external_image_libraries): New function.
16956 (init_xfns): Call it.
16957
16958 2003-01-24 Andreas Schwab <schwab@suse.de>
16959
16960 * minibuf.c (Fminibuffer_message): Verify type of parameter.
16961
16962 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16963
16964 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
16965 of static initializer.
16966
16967 2003-01-24 Dave Love <fx@gnu.org>
16968
16969 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
16970 architectures.
16971
16972 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
16973 Use __alignof__.
16974
16975 2003-01-24 Kenichi Handa <handa@m17n.org>
16976
16977 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
16978 It it is nonzero, don't pretend that an invisible area doesn't exist.
16979 (command_loop_1): Call adjust_point_for_property with proper
16980 second arg.
16981
16982 2003-01-22 Jason Rumney <jasonr@gnu.org>
16983
16984 Sync changes with xterm.c and xfns.c.
16985
16986 * w32term.c (x_draw_glyph_string_foreground)
16987 (x_draw_composite_glyph_string_foreground): Implement overstriking.
16988
16989 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
16990 phys_cursor's hpos is overwritten. This is still not completely
16991 correct, as it doesn't really make sense to use hpos at all to
16992 get the cursor glyph (as that is relative to the width of the
16993 characters on the line, which may have changed during the update).
16994
16995 * w32term.c (notice_overwritten_cursor): Handle the special case
16996 of the cursor being in the first blank non-text line at the
16997 end of a window.
16998
16999 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
17000 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
17001 Compute from the x position returned by x_draw_glyphs.
17002
17003 (x_display_and_set_cursor): Don't set phys_cursor_width here,
17004 except for NO_CURSOR and system caret, to make phys_cursor_width
17005 contain what its name suggests.
17006 (notice_overwritten_cursor): Consider the cursor image erased if
17007 the output area intersects the cursor image in y-direction.
17008
17009 * w32term.c (note_mode_line_or_margin_highlight): Rename from
17010 note_mode_line_highlight and extend.
17011
17012 * w32term.c (last_window): New variable.
17013 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
17014 (note_mouse_movement): Remove reimplemented code in #if 0.
17015
17016 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
17017 not update_mode_lines, and always set it to 1.
17018
17019 2003-01-21 Jason Rumney <jasonr@gnu.org>
17020
17021 * w32fns.c (IDC_HAND): Define it if system headers don't.
17022
17023 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17024
17025 * w32term.h (struct w32_output): New member hand_cursor.
17026 (WM_EMACS_SETCURSOR): New message definition.
17027
17028 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
17029 function w32_define_cursor.
17030 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
17031 position, change member name output_data.x to output_data.w32 and
17032 add function w32_define_cursor.
17033 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
17034 and change member name output_data.x to output_data.w32.
17035 (w32_initialize_display_info):
17036 Setup dpyinfo->vertical_scroll_bar_cursor.
17037
17038 * w32fns.c (Vx_hand_shape): New variable.
17039 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
17040 WM_EMACS_SETCURSOR.
17041 (x-create-frame): Setup Cursor types.
17042
17043 2003-01-21 David Ponce <david@dponce.com>
17044
17045 * w32term.c (w32_encode_char): For DIM=1 charset, set
17046 ccl->reg[2] to -1 before calling ccl_driver.
17047 (Sync. with xterm.c x_encode_char change by Kenichi Handa
17048 <handa@m17n.org> on 2002-09-30.)
17049 (w32_draw_relief_rect): Declare all args.
17050 (w32_define_cursor): New.
17051
17052 * w32fns.c (w32_load_cursor): New function.
17053 (w32_init_class): Use it.
17054 (x_put_x_image): Declare all args.
17055
17056 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
17057
17058 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
17059
17060 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17061
17062 * gtkutil.c: Must include stdio.h before termhooks.h
17063
17064 2003-01-21 Dave Love <fx@gnu.org>
17065
17066 * alloc.c (Fgc_status): Print zombie list.
17067 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
17068 Fix assignment of zombies.
17069 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
17070 Don't take car of non-cons.
17071
17072 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
17073
17074 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
17075
17076 2003-01-20 David Ponce <david@dponce.com>
17077
17078 * w32menu.c (digest_single_submenu): Declare all args.
17079
17080 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
17081 changes in xmenu.c:
17082
17083 (parse_single_submenu): Use individual keymap's prompt
17084 string as pane name, if there is one.
17085 (set_frame_menubar): Save menu_items_n_panes from each call to
17086 parse_single_submenu and use it when calling digest_single_submenu.
17087
17088 2003-01-20 Steven Tamm <steventamm@mac.com>
17089
17090 * macterm.c (XTread_socket): Check for valid, visible window
17091 before sending a scroll-wheel event.
17092
17093 2003-01-20 Richard M. Stallman <rms@gnu.org>
17094
17095 * xdisp.c (redisplay_window): If mini window's buffer is not
17096 a minibuffer, then redisplay it like other windows.
17097
17098 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17099
17100 * gtkutil.c (xg_create_frame_widgets): Check if there is an
17101 external tool bar before setting tool bar height.
17102
17103 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17104
17105 * xterm.c (handle_one_xevent): Surround popup_activated
17106 with #ifdef:s for non-toolkit version.
17107
17108 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
17109 (gtkutil.o): New file.
17110 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
17111 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
17112
17113 * gtkutil.c: New file for GTK version.
17114
17115 * gtkutil.h: New file for GTK version.
17116
17117 * xterm.h: Add xt_or_gtk_widget.
17118 Include gtk files for USE_GTK.
17119 (struct x_output): Add toolbar_height.
17120 (struct x_output): Add GTK widgets and Gdk size_hints.
17121 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
17122 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
17123 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
17124
17125 * xterm.c: Include gtkutil.h for USE_GTK.
17126 (free_frame_menubar): Declare extern void for USE_GTK.
17127 (note_mouse_highlight): Check popup_activated for USE_GTK.
17128 (xt_action_hook): Don't compile if USE_GTK.
17129 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
17130 (xg_scroll_callback): New function.
17131 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
17132 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
17133 for USE_GTK.
17134 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
17135 xg_show_scroll_bar for USE_GTK.
17136 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
17137 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
17138 (event_handler_gdk): New function for USE_GTK.
17139 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
17140 (handle_one_xevent): Make sure widget is mapped before
17141 calling x_real_positions for USE_GTK.
17142 (XTread_socket): Add GTK event loop for USE_GTK.
17143 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
17144 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
17145 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
17146 (x_iconify_frame): Add code for USE_GTK.
17147 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
17148 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
17149 is in gtkutil.c.
17150 (x_term_init): Add initialization for GTK.
17151 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
17152
17153 * xmenu.c: Include gtkutil.h for USE_GTK.
17154 (Fx_popup_menu): Use current position if x and y is NIL.
17155 (single_menu_item, single_menu_item, Fx_popup_dialog):
17156 Check for USE_GTK.
17157 (popup_widget_loop): New function for USE_GTK.
17158 (x_activate_menubar): Add code for USE_GTK.
17159 (popup_activate_callback, popup_deactivate_callback)
17160 (menu_highlight_callback, menubar_selection_callback):
17161 Add USE_GTK versions.
17162 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
17163 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
17164 (free_frame_menubar): Only compile if not USE_GTK. GTK version
17165 is in gtkutil.c.
17166 (popup_selection_callback): New version for USE_GTK.
17167 (create_and_show_popup_menu): New fuction, one USE_GTK version and
17168 one USE_X_TOOLKIT version.
17169 (xmenu_show): Call create_and_show_popup_menu.
17170 (dialog_selection_callback): New version for USE_GTK.
17171 (create_and_show_dialog): New fuction, one USE_GTK version and
17172 one USE_X_TOOLKIT version.
17173 (xdialog_show): Call create_and_show_dialog.
17174
17175 * xfns.c: Include gtkutil for USE_GTK.
17176 (x_window_to_frame, x_any_window_to_frame)
17177 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
17178 (x_top_window_to_frame): Add code for USE_GTK.
17179 (x_set_background_color): Call xg_set_background_color for GTK.
17180 (x_set_menu_bar_lines): Check for USE_GTK.
17181 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
17182 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
17183 (x_window): Call xg_create_frame_widgets for USE_GTK.
17184 (Fx_create_frame): Check for USE_GTK
17185 (Fx_file_dialog): New implementation for USE_GTK.
17186
17187 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
17188 (update_menu_bar): Add check for USE_GTK.
17189 (update_tool_bar): Add check for USE_GTK and external tool bar.
17190 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
17191 (redisplay_internal): Add check for USE_GTK and popup_activated.
17192 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
17193 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
17194 (display_menu_bar): Add check for USE_GTK
17195
17196 * lisp.h (Vx_resource_name): Declare extern.
17197
17198 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
17199 for USE_GTK.
17200 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
17201
17202 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
17203 (FRAME_EXTERNAL_TOOL_BAR): New macro.
17204 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
17205
17206 * fileio.c (Fread_file_name): Add check for USE_GTK.
17207
17208 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
17209 Add check for USE_GTK.
17210
17211 * config.in: Added HAVE_GTK
17212
17213 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
17214
17215 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
17216
17217 * charset.h (Funibyte_char_to_multibyte): Export.
17218
17219 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17220
17221 * xmenu.c (mouse_position_for_popup): New function.
17222 (Fx_popup_menu): Call mouse_position_for_popup for X and
17223 mouse_position_hook for others.
17224
17225 2003-01-17 Kim F. Storm <storm@cua.dk>
17226
17227 * editfns.c (Finsert): Mention `string-make-multibyte' and
17228 `string-as-multibyte' in doc string.
17229
17230 2003-01-17 Kenichi Handa <handa@m17n.org>
17231
17232 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
17233
17234 * editfns.c (Fformat): Convert an unibyte char argument that is
17235 formatted by "%c" to multibyte if the total result must be a
17236 multibyte string.
17237
17238 2003-01-16 Kim F. Storm <storm@cua.dk>
17239
17240 * process.c (set-process-filter): Document unibyte/multibyte-ness
17241 of string argument.
17242
17243 2003-01-16 Kenichi Handa <handa@m17n.org>
17244
17245 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
17246
17247 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
17248 (re_search_2): Likewise.
17249
17250 2003-01-15 Kenichi Handa <handa@m17n.org>
17251
17252 * xdisp.c (message_dolog): Fix bug of the case that *Message*
17253 buffer is unibyte.
17254
17255 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
17256
17257 * fns.c (Fsubstring): Clarify doc string.
17258
17259 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
17260 (Fprevious_char_property_change)
17261 (Fnext_single_char_property_change)
17262 (Fprevious_single_char_property_change, Fnext_property_change)
17263 (Fnext_single_property_change, Fprevious_property_change)
17264 (Fprevious_single_property_change, Fadd_text_properties)
17265 (Fput_text_property, Fset_text_properties)
17266 (Fremove_text_properties, Fremove_list_of_text_properties)
17267 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
17268
17269 2003-01-14 Kim F. Storm <storm@cua.dk>
17270
17271 * process.h (struct Lisp_Process): New member plist replaces old
17272 member private_vars. All uses changed.
17273
17274 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
17275 (QCplist): Rename from QCvars. Change all uses.
17276 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
17277 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
17278 (syms_of_process): Intern, staticpro, defsubr these.
17279 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
17280
17281 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
17282
17283 * m/delta.h: Remove (obsolete).
17284
17285 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
17286
17287 * fileio.c (Fdelete_directory, Fdelete_file): Document the
17288 behaviour in front of symlinks.
17289 (Fdelete_file): Raise an error on directories.
17290
17291 2003-01-13 Dave Love <fx@gnu.org>
17292
17293 * fns.c (Freverse): Use QUIT.
17294
17295 2003-01-13 Richard M. Stallman <rms@gnu.org>
17296
17297 * minibuf.c (minibuffer_completion_contents):
17298 Error if point is inside prompt.
17299
17300 * keyboard.c (command_loop_1): Don't redisplay directly
17301 if there's a post-command-hook.
17302
17303 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
17304 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
17305
17306 2003-01-12 Kim F. Storm <storm@cua.dk>
17307
17308 * process.h (struct Lisp_Process): New member private_vars.
17309
17310 * process.c (QCvars): New variable.
17311 (syms_of_process): Intern and staticpro it.
17312 (Fset_process_contact): Removed function.
17313 (Fprocess_variable, Fset_process_variable): New functions.
17314 (syms_of_process): Defsubr them.
17315 (Fstart_process): Initialize private_vars plist to nil.
17316 (Fmake_network_process): New arg :vars to setup the private
17317 variables for new network process.
17318 (server_accept_connection): Copy server's private variables to
17319 client process.
17320
17321 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
17322 crashes). Code rewritten and simplified. Now directly aligns the
17323 pointer and recalculates pure_bytes_used, rather than aligning the
17324 size and adjusting the pointer.
17325
17326 2003-01-11 Kim F. Storm <storm@cua.dk>
17327
17328 * process.c (Fset_process_contact): New function.
17329 (syms_of_process): defsubr it.
17330 (make-network-process): Update doc.
17331
17332 2003-01-10 Andreas Schwab <schwab@suse.de>
17333
17334 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
17335 Reported by Berthold Gunreben <b.gunreben@web.de>.
17336
17337 2003-01-10 Dave Love <fx@gnu.org>
17338
17339 * composite.c (syms_of_composite): Make composition_hash_table weak.
17340
17341 2003-01-09 Kim F. Storm <storm@cua.dk>
17342
17343 * process.c (Fmake_network_process): Convert new port number
17344 to host byte order for `:service t' case. From Mario Lang.
17345
17346 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17347
17348 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
17349 instead of XtAppProcessEvent.
17350
17351 * xterm.c (handle_one_xevent): New function.
17352 (x_dispatch_event): New function.
17353 (XTread_socket): Call handle_one_xevent.
17354
17355 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
17356
17357 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
17358 call XQueryPointer to get coordinates.
17359 (popup_get_selection): Do not set popup_activated_flag to zero,
17360 let popup_deactivate_callback do that. Needed for Motif.
17361 Call x_dispatch_event instead of XtDispatchEvent.
17362 (xmenu_show): Calculate root coordinate from frame top/left position.
17363
17364 2003-01-08 Kim F. Storm <storm@cua.dk>
17365
17366 * process.c (server_accept_connection): Fix recording of new
17367 connection's local address in :local property of contact info.
17368 (Fmake_network_process): Record local network address for new
17369 client processes in :local property of contact info.
17370 (format-network-address): Add arg OMIT-PORT. Change callers.
17371
17372 2003-01-07 Dave Love <fx@gnu.org>
17373
17374 * Makefile.in (fns.o): Depend on coding.h.
17375
17376 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
17377
17378 * minibuf.c (Fread_variable): Doc fix.
17379
17380 * eval.c (Fuser_variable_p): Doc change. For custom variables,
17381 use the same test as for custom-variable-p.
17382
17383 2003-01-05 Richard M. Stallman <rms@gnu.org>
17384
17385 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
17386 Count LAST_LINE_MISFIT in scroll margin for end of window.
17387 Move label too_near_end before setting SCROLL_MARGIN_POS.
17388 Set LAST_LINE_MISFIT before jumping there.
17389
17390 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
17391 scroll_conservatively case. If scrolling that much doesn't change
17392 STARTP, move it down one line.
17393
17394 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
17395 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
17396
17397 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
17398 selected frame.
17399
17400 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
17401 (syms_of_keymap): Staticpro them.
17402 (Fapropos_internal): Initialize them and clear them out.
17403 Don't GCPRO them.
17404
17405 * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
17406
17407 * lisp.h: New misc type Lisp_Save_Value.
17408 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
17409 (XSAVE_VALUE): New macro.
17410 (struct Lisp_Save_Value): New data type.
17411 (union Lisp_Misc): Add u_save_value alternative.
17412 (make_save_value): Declare.
17413
17414 * alloc.c (make_save_value): New function.
17415
17416 * xterm.c (x_catch_errors): Save dpy using make_save_value.
17417 (x_catch_errors_unwind): Call XSync.
17418
17419 2003-01-01 Richard M. Stallman <rms@gnu.org>
17420
17421 * window.c (window_scroll_pixel_based): Partially undo last change.
17422
17423 * keyboard.c (command_loop_1): Call adjust_point_for_property
17424 in direct action cases for Qforward_char and Qbackward_char.
17425 Set already_adjusted so it won't be done twice.
17426
17427 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
17428
17429 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
17430 type definition of size_t.
17431
17432 2003-01-02 Steven Tamm <steventamm@mac.com>
17433
17434 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
17435 distinguish Carbon GUI builds from X11 builds on darwin.
17436
17437 2002-12-30 Steven Tamm <steventamm@mac.com>
17438
17439 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
17440 to default to t.
17441
17442 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
17443
17444 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
17445
17446 2002-12-28 Steven Tamm <steventamm@mac.com>
17447
17448 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
17449 allow building in a different directory than source. Uses some
17450 GNU Make extensions, but there is no other make on Mac OS X.
17451
17452 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
17453
17454 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
17455 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
17456 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
17457 (Fstring_to_number): Mention the returned value in the doc strings.
17458
17459 2002-12-23 Richard M. Stallman <rms@gnu.org>
17460
17461 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
17462 <scroll-down-aggressively>: Doc fix.
17463
17464 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
17465 string as pane name, if there is one.
17466 (set_frame_menubar): Save menu_items_n_panes from each call to
17467 parse_single_submenu and use it when calling digest_single_submenu.
17468
17469 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
17470 Don't try to make last line fully visible if it is past end of window.
17471
17472 2002-12-22 Steven Tamm <steventamm@mac.com>
17473
17474 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
17475 (mac_menu_show): Add support for hierarchical popup menus.
17476 (add_menu_item): Remove indentation support.
17477 (fill_submenu, fill_menu): Create hierarchical menus
17478 instead of using indentation.
17479
17480 2002-12-22 Richard M. Stallman <rms@gnu.org>
17481
17482 * xdisp.c (try_cursor_movement): Don't call try_window here.
17483 (redisplay_window): Never redisplay minibuffer when inactive.
17484
17485 * window.c (select_window_1): Undo 9/21 change.
17486
17487 2002-12-22 Steven Tamm <steventamm@mac.com>
17488
17489 * macterm.c (XTread_socket): Call KeyTranslate for control and
17490 meta to deal correctly shifted non-alpha characters, like C-S-5
17491 being treated like C-%. Do not look for shift key to deal
17492 with masking off control-key with mac-reverse-ctrl-meta.
17493
17494 2002-12-21 Richard M. Stallman <rms@gnu.org>
17495
17496 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
17497 If it is non-nil, run timers. Use an unwind-protect to requeue
17498 the events that were read ahead.
17499 (popup_get_selection_unwind): New subroutine.
17500 (popup_get_selection_queue): File-scope variable now holds that queue.
17501 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
17502 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
17503 Use an unwind-protect to pop down the dialog box.
17504 (xdialog_show_unwind): New subroutine implements that.
17505
17506 * xdisp.c (row_containing_pos): Change exit test using last_y.
17507 (try_window_id): Abort if row_containing_pos returns null.
17508
17509 * lread.c (load_error_handler): New function.
17510 (Fload): Handle errors in Fsubstitute_in_file_name.
17511 Don't expect Fsignal to return.
17512
17513 * eval.c: Errors and throws work right with interrupt blocking.
17514 (struct catchtag): New elt interrupt_input_blocked.
17515 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
17516 (internal_catch, Fcondition_case, internal_condition_case)
17517 (internal_condition_case_1, internal_condition_case_2): Save it.
17518 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
17519
17520 * editfns.c (Fformat): Add parens.
17521
17522 * dired.c (file_name_completion): Fix that change.
17523 Delete special quit-handling code; just use QUIT.
17524
17525 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
17526
17527 * dired.c (file_name_completion): Close directory on error
17528 just as in directory_files_internal.
17529
17530 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
17531
17532 * window.c (Fset_window_configuration): Set old_point to correct
17533 value when new_current_buffer == current_buffer.
17534
17535 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
17536
17537 Revisited my earlier fix for the following entry in etc/PROBLEMS:
17538 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
17539 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
17540
17541 These changes were in part based upon suggestions made by Peter
17542 'Luna' Runestig [peter@runestig.com].
17543
17544 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
17545 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
17546 (g_b_init_get_sid_identifier_authority ): Add several static
17547 global variables.
17548
17549 * w32.c (globals_of_w32): New function. Used to initialize those
17550 global variables that must always be initialized on startup even
17551 when the global variable initialized is non zero. Its primary
17552 purpose at this time is to set the global variables
17553 g_b_init_is_windows_9x, g_b_init_open_process_token,
17554 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
17555 g_b_init_get_sid_identifier_authority to 0 on startup.
17556 Called from main.
17557
17558 * w32.c (is_windows_9x): Perform initialization only if
17559 g_b_init_is_windows_9x is equal to 0. On initialization set
17560 g_b_init_is_windows_9x equal to 1.
17561
17562 * w32.c (open_process_token): Perform initialization only if
17563 g_b_init_open_process_token is equal to 0. On initialization set
17564 g_b_init_open_process_token equal to 1.
17565
17566 * w32.c (get_token_information): Perform initialization only if
17567 g_b_init_get_token_information is equal to 0. On initialization
17568 set g_b_init_get_token_information equal to 1.
17569
17570 * w32.c (lookup_account_sid): Perform initialization only if
17571 g_b_init_lookup_account_sid is equal to 0. On initialization
17572 set g_b_init_lookup_account_sid equal to 1.
17573
17574 * w32.c (get_sid_identifier_authority): Perform initialization
17575 only if g_b_init_get_sid_identifier_authority is equal to 0.
17576 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
17577
17578 * w32fns.c (globals_of_w32fns): New function. Used to initialize
17579 those global variables that must always be initialized on startup
17580 even when the global variable initialized is non zero.
17581 Its primary purpose at this time is to initialize the global variable
17582 track_mouse_event_fn.
17583
17584 * w32fns.c (w32_wnd_proc): Remove initialization of
17585 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
17586
17587 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
17588
17589 * w32menu.c (globals_of_w32menu): New function. Used to
17590 initialize those global variables that must always be initialized
17591 on startup even when the global variable initialized is non zero.
17592 Its primary purpose at this time is to initialize the global
17593 variables get_menu_item_info and set_menu_item_info.
17594
17595 * w32menu.c (initialize_frame_menubar): Remove initialization of
17596 get_menu_item_info and set_menu_item_info.
17597
17598 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
17599
17600 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
17601 Declare them.
17602
17603 * emacs.c (main): Call globals_of_w32 prior to calling
17604 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
17605 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
17606 is defined.
17607
17608 * w32term.c (x_update_window_begin): Fix Windows API error
17609 detected by BoundsChecker. Test to determine if
17610 w32_system_caret_hwnd is NULL prior to attempting to use
17611 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
17612
17613 * w32term.c (x_update_window_end): Fix Windows API error
17614 detected by BoundsChecker. Test to determine if
17615 w32_system_caret_hwnd is NULL prior to attempting to use
17616 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
17617
17618 2002-12-17 Kenichi Handa <handa@m17n.org>
17619
17620 * coding.c (coding_system_require_warning): New variable.
17621 (syms_of_coding): DEFVAR it.
17622
17623 * coding.h (coding_system_require_warning): Extern it.
17624
17625 * fileio.c (choose_write_coding_system): Even if
17626 Vcoding_system_for_write is non-nil, if
17627 coding_system_require_warning is nonzero, call
17628 Vselect_safe_coding_system_function.
17629
17630 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
17631
17632 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
17633 (lisp): Add font-core.
17634
17635 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
17636
17637 * textprop.c (text_read_only): New arg `propval'.
17638 (get_char_property_and_overlay): Remove unused var `next_overlay'.
17639 (verify_interval_modification): Use text_read_only's new arg.
17640
17641 2002-12-13 Kenichi Handa <handa@m17n.org>
17642
17643 * coding.c (Funencodable_char_position): Set pend correctly.
17644
17645 2002-12-12 Jason Rumney <jasonr@gnu.org>
17646
17647 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
17648 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
17649 Be more careful about when help_events are generated.
17650
17651 2002-12-12 Steven Tamm <steventamm@mac.com>
17652
17653 * macterm.c (mac_check_for_quit_char): Correctly set the
17654 modifiers of the event to 0.
17655 * mac.c (sys_select): Duplicate rfds before calling select to
17656 ensure that rfds survive the while loop.
17657
17658 2002-12-11 Kim F. Storm <storm@cua.dk>
17659
17660 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
17661 row_containing_pos returned NULL.
17662
17663 2002-12-10 Steven Tamm <steventamm@mac.com>
17664
17665 * mac.c (sys_read): Fix sys_read to not call select if IO is
17666 non-blocking.
17667 (sys_select): Fix sys_select to not use a timeout larger than
17668 the one given.
17669
17670 2002-12-10 Juanma Barranquero <lektu@terra.es>
17671
17672 * editfns.c (Fformat): Use alloca, not _alloca.
17673
17674 2002-12-09 Richard M. Stallman <rms@gnu.org>
17675
17676 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
17677 as the last thing.
17678
17679 2002-12-09 Dave Love <fx@gnu.org>
17680
17681 * s/sol2-8.h: Removed. (Not necessary.)
17682
17683 2002-12-09 Matthew Swift <swift@alum.mit.edu>
17684
17685 * editfns.c (Fformat): Handle precision in string conversion
17686 specifiers like libc functions do (ie, print at most that many
17687 characters).
17688
17689 2002-12-08 Richard M. Stallman <rms@gnu.org>
17690
17691 * xdisp.c (row_containing_pos): Check more carefully
17692 whether charpos is really in the row before returning it.
17693
17694 2002-12-07 Steven Tamm <steventamm@mac.com>
17695
17696 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
17697
17698 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
17699 each stack frame. This may change as it could be time consuming.
17700
17701 * macterm.c (mac_check_for_quit_char, quit_char_comp)
17702 (init_quit_char_handler, mac_determine_quit_char_modifiers)
17703 (mac_initialize): Add code to check for pressing of quit_char
17704 in the OS event queue.
17705
17706 * mac.c (sys_select): Call mac_check_for_quit_char every second
17707 while blocking on select.
17708
17709 * mac.c (sys_read): Use sys_select to test for input first
17710 before calling read, to allow C-g to break.
17711
17712 2002-12-07 Richard M. Stallman <rms@gnu.org>
17713
17714 * minibuf.c (Fcompleting_read): Doc fix.
17715
17716 * lread.c (syms_of_lread) <load-history>: Doc fix.
17717
17718 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
17719
17720 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
17721 autoload.
17722
17723 * data.c (Fdefalias): Record in load-history redefining an autoload.
17724
17725 * alloca.c: Undo ifdef change accidentally made on 12-04.
17726
17727 2002-12-06 Francesco Potorti` <pot@gnu.org>
17728
17729 * xfns.c (png_load): Avoid double gamma correction for PNG images.
17730
17731 2002-12-04 Richard M. Stallman <rms@gnu.org>
17732
17733 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
17734
17735 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
17736
17737 * alloca.c: Don't use #error.
17738
17739 2002-12-03 Dave Love <fx@gnu.org>
17740
17741 * buffer.c (Qucs_set_table_for_input): New.
17742 (Fget_buffer_create): Use it.
17743 (Qset_buffer_major_mode_hook): Deleted.
17744 (Fset_buffer_major_mode): Revert previous change.
17745 (init_buffer_once): Intern ucs-set-table-for-input.
17746 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
17747 Add &Qucs_set_table_for_input.
17748
17749 2002-12-03 Andreas Schwab <schwab@suse.de>
17750
17751 * callint.c (Fcall_interactively): Use next_event only if less
17752 than key_count.
17753
17754 2002-12-02 Andrew Choi <akochoi@shaw.ca>
17755
17756 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
17757 names to 255 characters.
17758
17759 * macterm.c (XTread_socket): If all frames have been collapsed,
17760 expand the first one before handling drag-and-drop events.
17761
17762 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
17763 which is detected by autoconf.
17764
17765 2002-12-01 Steven Tamm <steventamm@mac.com>
17766
17767 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
17768 offset in two hints table to allow prebinding to be redone and
17769 allow the executable to be stripped.
17770
17771 2002-11-29 Dave Love <fx@gnu.org>
17772
17773 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
17774 already provided.
17775
17776 2002-11-29 Richard M. Stallman <rms@gnu.org>
17777
17778 * xdisp.c (start_display): Check more intelligently for
17779 whether the line is continued.
17780 (move_it_vertically_backward): Clear it->continuation_lines_width.
17781
17782 2002-11-28 Dave Love <fx@gnu.org>
17783
17784 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
17785 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
17786
17787 2002-11-27 Steven Tamm <steventamm@mac.com>
17788
17789 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
17790 more descriptive error output from lread.c:Fload upon most require
17791 cycles during boostrapping.
17792
17793 2002-11-27 Jason Rumney <jasonr@gnu.org>
17794
17795 * fileio.c (Finsert_file_contents): Give a more appropriate error
17796 for files bigger than 2Gb when off_t is 32 bit.
17797
17798 * dired.c (Ffile_attributes): Don't return negative file sizes for
17799 files bigger than 2Gb when off_t is 32 bit.
17800
17801 2002-11-27 Dave Love <fx@gnu.org>
17802
17803 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
17804
17805 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
17806 Test GETPGRP_VOID instead.
17807 [BSD_TERMIOS]: Remove definitions (never used).
17808
17809 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
17810 Don't define.
17811 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
17812
17813 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
17814
17815 2002-11-25 Jason Rumney <jasonr@gnu.org>
17816
17817 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
17818 supported.
17819
17820 2002-11-25 Dave Love <fx@gnu.org>
17821
17822 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
17823
17824 * Makefile.in (TEMACS_LDFLAGS): Update last change.
17825
17826 2002-11-25 Andreas Schwab <schwab@suse.de>
17827
17828 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
17829
17830 2002-11-24 Steven Tamm <steventamm@mac.com>
17831
17832 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
17833 determine the size of pointers alloced in unexed space instead
17834 of using possibly invalid emacs_zone pointers. This fixes the
17835 binary incompatibility problems caused by updates to libSystem.B.
17836
17837 2002-11-24 Richard M. Stallman <rms@gnu.org>
17838
17839 * search.c (Fstring_match): Doc fix.
17840
17841 * callint.c (Fcall_interactively): If a command fails because
17842 `*' detects a read-only buffer, but RECORD_FLAG is set,
17843 record it anyway if the args don't actually do tty input.
17844
17845 2002-11-22 Dave Love <fx@gnu.org>
17846
17847 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
17848
17849 * keyboard.c (interrupt_signal): Provide forward declaration.
17850 (kbd_buffer_store_event): Don't declare interrupt_signal.
17851
17852 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
17853
17854 2002-11-21 Richard M. Stallman <rms@gnu.org>
17855
17856 * eval.c (interactive_p): Skip any number of bytecode
17857 and special form frames, in any order.
17858
17859 2002-11-20 Jason Rumney <jasonr@gnu.org>
17860
17861 * w32fns.c (convert_mono_to_color_image): New function.
17862 (xbm_load, xbm_load_image): Use it when foreground or background
17863 is explicitly set.
17864
17865 2002-11-19 Dave Love <fx@gnu.org>
17866
17867 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
17868
17869 2002-11-18 Jason Rumney <jasonr@gnu.org>
17870
17871 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
17872 (XPutPixel): Swap blue and red.
17873 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
17874 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
17875 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
17876 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
17877
17878 2002-11-18 Dave Love <fx@gnu.org>
17879
17880 * m/orion105.h (HAVE_ALLOCA): Don't define.
17881
17882 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
17883
17884 * m/intel386.h: Don't include alloca.h or define alloca.
17885
17886 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
17887 malloc, realloc, calloc.
17888
17889 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
17890 (bcmp): Don't define.
17891
17892 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
17893
17894 * m/amdahl.h: Don't define LIB_STANDARD.
17895
17896 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
17897
17898 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
17899
17900 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
17901 Don't include alloca.h.
17902
17903 * s/aix3-2.h (HAVE_FSYNC): Don't define.
17904
17905 * regex.c (_GNU_SOURCE): Don't define.
17906
17907 * process.c (_GNU_SOURCE): Don't define.
17908
17909 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
17910
17911 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
17912
17913 * s/sol2-8.h: Include sol2-6.h.
17914
17915 2002-11-18 Miles Bader <miles@gnu.org>
17916
17917 * dispextern.h (struct face): Add `overstrike' field.
17918 * xterm.c (x_draw_glyph_string_foreground)
17919 (x_draw_composite_glyph_string_foreground): Implement overstriking.
17920 * xfaces.c (load_face_font): Set `face->overstrike' based on
17921 result from choose_face_font.
17922 (best_matching_font, choose_face_font): Add `needs_overstrike'
17923 argument, and use it to return whether overstriking is desirable
17924 for this face/font combo.
17925 (set_font_frame_param: Pass new argument to choose_face_font.
17926
17927 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
17928
17929 This change is my fix for the following entry in etc/PROBLEMS:
17930 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
17931 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
17932
17933 * w32.c: Added wrapper functions around the win32 API functions
17934 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
17935 GetSidIdentifierAuthority. These wrapper functions serve two
17936 purposes:
17937 1. They ensure that the wrapped function can never be called
17938 when Emacs is running on an operating system on which they are
17939 not supported (Microsoft Windows 95 / 98 / ME).
17940 2. They call the wrapped functions via function pointers rather
17941 than calling them directly. This avoids taking advantage of the
17942 undocumented fact that although these functions are not supported
17943 in the 9x branch of Microsoft Windows, the functions do exist in
17944 the version of advapi32.dll that is found in the 9x branch of
17945 Microsoft Windows.
17946
17947 * w32.c (init_user_info): Replace the calls to the win32 API
17948 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
17949 and GetSidIdentifierAuthority with calls to the newly added
17950 wrapper functions.
17951
17952 * w32.h: Added extern declarations for the following functions:
17953 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
17954 syms_of_w32menu, and void syms_of_fontset.
17955
17956 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
17957 function pointer track_mouse_event_fn in the handler for the
17958 WM_SETFOCUS message.
17959
17960 * w32menu.c (initialize_frame_menubar): Add code to
17961 reinitialize the function pointers set_menu_item_info and
17962 get_menu_item_info.
17963
17964 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
17965
17966 * sound.c: Added a partial implementation of play-sound-internal
17967 for Microsoft Windows. Added various #ifdef / #else / #endif
17968 code blocks to separate the code that will compile under
17969 Microsoft Windows from the code that is specific to GNU/Linux.
17970 Moved several blocks of code around to make this separation of code
17971 into Windows compatible and GNU/Linux compatible code blocks easier.
17972
17973 * makefile.w32-in: Include sound.c and link with WinMM.lib.
17974
17975 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
17976 added support for play-sound-internal under Windows would be
17977 included in the build of Emacs.
17978
17979 2002-11-16 Jason Rumney <jasonr@gnu.org>
17980
17981 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
17982
17983 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
17984
17985 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
17986
17987 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
17988 (adjust_point_for_property): Move out of display and invisible even if
17989 we were already inside before (in case a property was added while
17990 we weren't looking). Be more careful when handling invisible props.
17991 Skip invisible text as if it really wasn't there at all.
17992
17993 2002-11-15 Jason Rumney <jasonr@gnu.org>
17994
17995 * w32term.c (x_draw_image_foreground)
17996 (w32_draw_image_foreground_1): Use standard copy and invert
17997 operations to draw images.
17998
17999 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
18000 depth of 1.
18001 (xbm_read_bitmap_data): Invert bits as xbm is read in.
18002 (XPutPixel): Don't invert bits here.
18003
18004 2002-11-15 Jason Rumney <jasonr@gnu.org>
18005
18006 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
18007 (w32_draw_image_foreground_1): Handle image masks.
18008 (x_draw_image_glyph_string): Don't BitBlt transparently.
18009
18010 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
18011 (x_from_xcolors): Adjust RGB values for W32.
18012 (image_background, image_background_transparent)
18013 (postprocess_image, x_to_xcolors, x_disable_image)
18014 (x_build_heuristic_mask): Adapt for W32 and enable.
18015 (x_create_x_image_and_pixmap): Mark images with palettes as such.
18016 (xbm_load): Remove unused variable.
18017
18018 2002-11-14 Richard M. Stallman <rms@gnu.org>
18019
18020 * buffer.c (syms_of_buffer): Doc fix.
18021
18022 2002-11-14 Dave Love <fx@gnu.org>
18023
18024 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
18025
18026 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
18027 * xmenu.c (unuse_menu_items, digest_single_submenu):
18028 * xfns.c (x_put_x_image):
18029 * xdisp.c (message2_nolog, set_message):
18030 * undo.c (record_point):
18031 * terminfo.c (tparam):
18032 * syntax.c (scan_sexps_forward):
18033 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18034 * composite.c (update_compositions):
18035 * cm.c (calccost, cmgoto):
18036 * charset.c (c_string_width): Declare all args (per C99).
18037
18038 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
18039
18040 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
18041 Don't declare.
18042
18043 * emacs.c (main) [!VMS]: Avoid third arg.
18044
18045 * fns.c (Fcopy_sequence): Doc fix.
18046 (Fmap_char_table): Cast `call2'.
18047
18048 2002-11-14 Francesco Potorti` <pot@gnu.org>
18049
18050 * s/sol2-8.h: New file.
18051
18052 2002-11-14 Kim F. Storm <storm@cua.dk>
18053
18054 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
18055 dependency on `risky-local-variable' and the :propertize form.
18056
18057 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
18058
18059 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
18060
18061 * syntax.c (scan_sexps_forward): Undo last patch.
18062 Use a more obvious fix: check eob before updating the syntax table.
18063
18064 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
18065
18066 * syntax.c (scan_sexps_forward): Update syntax table before reading
18067 a char rather than after so we don't update the table past eob.
18068
18069 2002-11-09 Dave Love <fx@gnu.org>
18070
18071 * buffer.c (Fset_buffer_major_mode): Fix last change.
18072
18073 * regex.c (regexec): Fix pmatch declaration.
18074
18075 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
18076
18077 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
18078 to self-inserting characters.
18079 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
18080
18081 * coding.c (Vtranslation_table_for_input): New.
18082 (syms_of_coding): DEFVAR it.
18083
18084 2002-11-08 Juanma Barranquero <lektu@terra.es>
18085
18086 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
18087 window.
18088
18089 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18090
18091 * process.c (Fformat_network_address): Remove unused locals p,
18092 cp, and i.
18093
18094 2002-11-06 Dave Love <fx@gnu.org>
18095
18096 * buffer.c (Qset_buffer_major_mode_hook): New.
18097 (Fset_buffer_major_mode): Use it.
18098
18099 2002-11-06 Richard M. Stallman <rms@gnu.org>
18100
18101 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
18102 and stop_polling.
18103
18104 * process.c (wait_reading_process_input):
18105 Test POLLING_PROBLEM_IN_SELECT, not hpux.
18106 Avoid initialization for auto Lisp_Object var.
18107
18108 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
18109
18110 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
18111
18112 2002-11-05 Richard M. Stallman <rms@gnu.org>
18113
18114 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
18115
18116 * callint.c (Fcall_interactively): New local filter_specs.
18117 (Fcall_interactively): Check for progn as well as let.
18118 Add a gcpro.
18119 (Qprogn): New variable.
18120 (syms_of_callint): Staticpro and init Qprogn.
18121
18122 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
18123
18124 * lread.c (Feval_buffer): Doc fix.
18125
18126 2002-11-04 Dave Love <fx@gnu.org>
18127
18128 * keyboard.c (read_char): Always translate iff
18129 Vkeyboard_translate_table is a char table and c is valid.
18130
18131 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18132 and fix C types.
18133
18134 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
18135
18136 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
18137
18138 * editfns.c (get_pos_property): Don't hardcode Qfield.
18139
18140 * keyboard.c (adjust_point_for_property): Handle `display' prop on
18141 overlays. Also handle `invisible' prop.
18142
18143 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
18144
18145 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
18146 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
18147
18148 2002-11-01 Andreas Schwab <schwab@suse.de>
18149
18150 * editfns.c (Fmessage): Revert last change to properly handle %%.
18151
18152 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
18153
18154 * xmenu.c (unuse_menu_items): New fun.
18155 (menu_items_inuse): New var.
18156 (syms_of_xmenu): Initialize it.
18157 (init_menu_items): Use it to detect re-entrance.
18158 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
18159 (Fx_popup_menu): Remove spurious XSETFRAME.
18160
18161 * editfns.c (find_field): Make an exception for nil fields.
18162
18163 2002-11-01 Dave Love <fx@gnu.org>
18164
18165 * m/gec63.h: Deleted.
18166
18167 2002-10-31 Dave Love <fx@gnu.org>
18168
18169 * xterm.c (XTread_socket): Fix last change.
18170 (xaw_scroll_callback): Cast call_data to long to avoid warning.
18171
18172 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
18173
18174 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
18175
18176 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
18177
18178 * editfns.c (overlays_around, get_pos_property): New funs.
18179 (find_field): Use them.
18180 Also be careful not to modify POS before its last use.
18181 (Fmessage): Don't Fformat if there's nothing to format.
18182
18183 2002-10-30 Dave Love <fx@gnu.org>
18184
18185 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
18186 [HAVE_PTY_H]; Include pty.h.
18187
18188 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
18189
18190 * xterm.c (Qeql): Declare.
18191 (Vx_keysym_table): New.
18192 (syms_of_xterm): Initialize it.
18193 (XTread_socket): Use it. Deal with ASCII keysyms.
18194 (XSetIMValues) [HAVE_X11R6]: Prototype.
18195
18196 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
18197 (lispy_kana_keys): Comment out.
18198 (make_lispy_event) [XK_kana_A]: Comment out.
18199 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
18200 Fix sprintf call.
18201
18202 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
18203 regexp.h change).
18204 (TERMINFO, LIBS_TERMCAP): Define.
18205
18206 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
18207 (bcmp): Define conditional on HAVE_BCMP.
18208 (NO_SIOCTL_H): Don't define.
18209 (TIOCSIGSEND): Don't make conditional on IRIX6.
18210
18211 * s/sol2-5.h: Don't include strings.h.
18212 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
18213
18214 * s/irix6-0.h (IRIX6): Don't define.
18215 (bcopy, bcmp, bzero): Don't undef.
18216
18217 * s/irix6-5.h: Don't include strings.h.
18218 (IRIX6): Don't define.
18219 (bcopy, bcmp, bzero): Don't undef.
18220
18221 * syntax.c (Fforward_comment): Doc fix.
18222
18223 2002-10-29 Kim F. Storm <storm@cua.dk>
18224
18225 * process.c (Fsignal_process): Allow PROCESS to be specified by
18226 name in addition to pid (as integer or string).
18227
18228 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
18229
18230 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
18231 environments.
18232
18233 2002-10-27 Kim F. Storm <storm@cua.dk>
18234
18235 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
18236
18237 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
18238
18239 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
18240
18241 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
18242
18243 2002-10-26 Richard M. Stallman <rms@gnu.org>
18244
18245 * editfns.c (Fformat): Detect invalid format letters for floats.
18246
18247 2002-10-25 Kenichi Handa <handa@m17n.org>
18248
18249 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
18250 (x_set_title): Likewise.
18251
18252 2002-10-25 Juanma Barranquero <lektu@terra.es>
18253
18254 * macgui.h:
18255 * w32gui.h: Remove definition of XColor.
18256
18257 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
18258
18259 2002-10-24 Kim F. Storm <storm@cua.dk>
18260
18261 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
18262 Callers changed (supply dummy arg).
18263
18264 * lisp.h (get_window_cursor_type): Update prototype.
18265
18266 * w32term.c (x_display_and_set_cursor): Get active_cursor from
18267 get_window_cursor_type to track system caret.
18268
18269 2002-10-24 Kim F. Storm <storm@cua.dk>
18270
18271 * process.c (Fformat_network_address): New function.
18272 (syms_of_process): Defsubr it.
18273 (list_processes_1): Use it to format :local/:remote address if
18274 service/host is not set; before Emacs would crash in that case.
18275 (Fmake_network_process): Don't use Ffind_operation_coding_system
18276 to setup coding system if host or service is not set.
18277
18278 2002-10-23 Juanma Barranquero <lektu@terra.es>
18279
18280 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
18281
18282 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
18283 COLORREF.
18284
18285 * macgui.h:
18286 * w32gui.h: Add definition of XColor.
18287
18288 * macfns.c:
18289 * w32fns.c:
18290 * xfaces.c: Remove definition of XColor.
18291
18292 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
18293
18294 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
18295
18296 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
18297 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
18298 window if it is dedicated.
18299 (Fshrink_window): Add preserve_before as was done for enlarge_window.
18300 (Vspecial_display_function): Update docstring.
18301
18302 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
18303 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
18304 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
18305
18306 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
18307
18308 * casefiddle.c (casify_region): Don't treat a prefix char as part
18309 of a word when at the beginning.
18310
18311 2002-10-17 Juanma Barranquero <lektu@terra.es>
18312
18313 * lread.c (syms_of_lread): Fix typos.
18314
18315 2002-10-17 Dave Love <fx@gnu.org>
18316
18317 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
18318
18319 2002-10-16 Richard M. Stallman <rms@gnu.org>
18320
18321 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
18322
18323 2002-10-14 Juanma Barranquero <lektu@terra.es>
18324
18325 * w16select.c (syms_of_win16select): Fix docstring for
18326 `selection-coding-system'.
18327
18328 * w32select.c (syms_of_w32select): Likewise.
18329
18330 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
18331
18332 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
18333 a backslash-quoted char.
18334 (scan_lists, scan_sexps_forward): Pacify the compiler.
18335
18336 2002-10-13 Richard M. Stallman <rms@gnu.org>
18337
18338 * window.c (window_scroll): Set immediate_quit.
18339
18340 * print.c (print): When backquote form is the car of a list,
18341 output in old style. Use old_backquote_output to output all
18342 comma forms inside it in old style too.
18343
18344 * buffer.h (struct buffer): Move `undo_list' down below `name'.
18345
18346 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
18347
18348 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
18349 batch mode).
18350
18351 * lread.c (Fload): Doc fix (load-suffixes).
18352
18353 2002-10-10 Steven Tamm <steventamm@mac.com>
18354
18355 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
18356 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
18357 Also switch the default to Qnil from Qt.
18358
18359 2002-10-08 Kenichi Handa <handa@m17n.org>
18360
18361 * coding.c (code_convert_region): When we need more GAP for
18362 conversion, pay attention to the case that coding->produced is not
18363 greater than coding->consumed.
18364
18365 2002-10-07 Richard M. Stallman <rms@gnu.org>
18366
18367 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
18368
18369 2002-10-06 Andrew Choi <akochoi@shaw.ca>
18370
18371 * macmenu.c (mac_menu_show): Add j to count menu items; match
18372 menu_item_selection to it to find selected item.
18373
18374 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18375
18376 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
18377 cases. The correct fix is to pass ReparentNotify to Xt.
18378 The shell widget interprets ConfigureNotify differently depending
18379 on if it has been reparented or not.
18380
18381 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
18382
18383 * editfns.c (Fformat_time_string): Doc fix.
18384
18385 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
18386
18387 * fns.c (Flength): Doc fix.
18388
18389 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
18390
18391 * keyboard.c (keyremap): New struct.
18392 (read_key_sequence): Use it: globally replace keytran_foo with
18393 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
18394 keytran_next and fkey_next to just `next'.
18395
18396 2002-10-04 Steven Tamm <steventamm@mac.com>
18397
18398 * macterm.c (keycode_to_xkeysym_table): Change return to be
18399 treated like an X keysym.
18400
18401 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18402
18403 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
18404 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
18405 This is to also handle x/y changes that occur because of a resize.
18406
18407 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
18408
18409 * frame.c (Vdelete_frame_functions): New variable.
18410 (syms_of_frame): Initialize and defvar it.
18411 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
18412 it when frame's `tooltip' parameter is non-nil.
18413
18414 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
18415
18416 * w32fns.c (x_create_tip_frame): Likewise.
18417
18418 * macfns.c (x_create_tip_frame): Likewise.
18419
18420 2002-09-30 Kenichi Handa <handa@m17n.org>
18421
18422 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
18423 -1 before calling ccl_driver.
18424
18425 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
18426 Only when it is non-nil, handle composition sequence.
18427 (setup_coding_system) <0>: Don't force composition handling.
18428
18429 * Makefile.in (lisp, shortlisp): Add utf-16.elc
18430
18431 2002-09-29 Richard M. Stallman <rms@gnu.org>
18432
18433 * search.c (Freplace_match): Adjust match data for the substitution
18434 just made in the buffer.
18435
18436 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
18437 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
18438
18439 2002-09-27 Richard M. Stallman <rms@gnu.org>
18440
18441 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
18442 (read_char): Use them. Do all exits thru the end of the function.
18443
18444 2002-09-27 Kenichi Handa <handa@etl.go.jp>
18445
18446 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
18447 is nil.
18448
18449 2002-09-26 Richard M. Stallman <rms@gnu.org>
18450
18451 * regex.h (__restrict_arr): Don't define if already defined.
18452
18453 * coding.c (run_pre_post_conversion_on_str):
18454 Save and restore Vdeactivate_mark.
18455
18456 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
18457
18458 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
18459
18460 2002-09-26 Kenichi Handa <handa@etl.go.jp>
18461
18462 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
18463 nonzero, try face's family at first. Otherwise try FAMILY at first.
18464 (choose_face_font): If C is a single byte char or latin-1, call
18465 try_font_list with PREFER_FACE_FAMILY 1.
18466
18467 2002-09-21 Richard M. Stallman <rms@gnu.org>
18468
18469 * window.c (select_window_1): Don't select frame.
18470 Set frame's selected window only when frame itself is selected.
18471 (Fselect_window): Doc fix.
18472
18473 2002-09-18 Kim F. Storm <storm@cua.dk>
18474
18475 * process.c (make-network-process): Doc fix (there is no
18476 network-server-log-function hook).
18477
18478 2002-09-18 Richard M. Stallman <rms@gnu.org>
18479
18480 * print.c (print): Clear out the unused parts of Vprint_number_table.
18481 (syms_of_print): Doc fix for `print-number-table'.
18482
18483 * unexelf.c (unexec): Undo previous change.
18484
18485 2002-09-17 Andreas Schwab <schwab@suse.de>
18486
18487 * m/alpha.h [LINUX]: Don't define DATA_START.
18488
18489 2002-09-16 Dave Love <fx@gnu.org>
18490
18491 * unexelf.c (unexec): Deal with .got, reinstating change from
18492 25-08-1999.
18493
18494 2002-09-13 Richard M. Stallman <rms@gnu.org>
18495
18496 * s/sol2-6.h (UNEXEC): Comment out definition.
18497
18498 * unexsol.c (unexec): Don't downcase first letter of error msg.
18499
18500 * xfaces.c (Fcolor_supported_p): Just one arg is required.
18501
18502 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
18503
18504 * unexsol.c: Include buffer.h, charset.h, coding.h.
18505
18506 2002-09-11 Richard M. Stallman <rms@gnu.org>
18507
18508 * unexsol.c: Don't use report_file_error; do it by hand
18509 using dlerror.
18510
18511 * process.c (wait_reading_process_input, both versions):
18512 Before calling turn_on_atimers, call stop_polling.
18513
18514 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
18515
18516 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
18517 we go to too_near_end, call clear_glyph_matrix.
18518 (redisplay_window): After make_cursor_line_fully_visible,
18519 call clear_glyph_matrix and bypass `goto done'.
18520
18521 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
18522 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
18523
18524 2002-09-10 Richard M. Stallman <rms@gnu.org>
18525
18526 * fileio.c (Fdo_auto_save): Catch error making directory.
18527 Only call push_message if we need to.
18528 At the same time, make an unwind-protect to pop it.
18529 Rename local message_p to old_message_p.
18530 (do_auto_save_make_dir, do_auto_save_eh): New functions.
18531 (do_auto_save_unwind): Don't call pop_message.
18532
18533 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
18534
18535 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
18536
18537 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
18538
18539 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
18540
18541 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
18542
18543 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
18544 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
18545 (re_match_2_internal): Be more careful with infinite loops.
18546
18547 2002-09-10 Kim F. Storm <storm@cua.dk>
18548
18549 * macros.c (end_kbd_macro): New function.
18550 (Fend_kbd_macro): Use it.
18551
18552 * macros.h (end_kbd_macro): Declare extern.
18553
18554 * keyboard.c (Fdiscard_input): If defining keyboard macro,
18555 end and save it instead of discarding it.
18556
18557 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
18558
18559 * s/sol2-6.h: Fix typo. Add comment.
18560
18561 2002-09-09 Richard M. Stallman <rms@gnu.org>
18562
18563 * regex.c (regnum_t): Use signed int, not unsigned int.
18564
18565 * s/sol2-6.h: New file.
18566
18567 * s/sol2-5.h (UNEXEC): Definition deleted.
18568
18569 2002-09-08 Kim F. Storm <storm@cua.dk>
18570
18571 * macros.c (executing_macro_index): Change type to EMACS_INT.
18572 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
18573
18574 * macros.h (executing_macro_index): Change type to EMACS_INT.
18575
18576 2002-09-06 Richard M. Stallman <rms@gnu.org>
18577
18578 * casetab.c (set_case_table): Make canon table point to eqv table.
18579
18580 2002-09-06 Juanma Barranquero <lektu@terra.es>
18581
18582 * coding.c (syms_of_coding): Fix spacing.
18583
18584 * composite.c (Fcompose_region_internal)
18585 (Fcompose_string_internal): Likewise.
18586
18587 * data.c (Flsh): Likewise.
18588
18589 * fontset.c (Fset_fontset_font): Likewise.
18590
18591 * macfns.c (Fx_server_max_request_size): Likewise.
18592
18593 * w16select.c (syms_of_win16select): Likewise.
18594
18595 * w32select.c (syms_of_w32select): Likewise.
18596
18597 * xselect.c (syms_of_xselect): Likewise.
18598
18599 2002-09-05 Richard M. Stallman <rms@gnu.org>
18600
18601 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
18602 call EXTEND_RANGE_TABLE and return a proper value.
18603 (set_image_of_range): Don't call set_image_of_range_1
18604 if no TRANSLATE or if range includes all of Latin-1.
18605 Only call it for the Latin-1 part of the range.
18606 For other cases, make two separate ranges,
18607 one for the original specified characters and one for
18608 their case-conversions.
18609
18610 2002-09-04 Richard M. Stallman <rms@gnu.org>
18611
18612 * s/sol2-5.h (UNEXEC): Use unexsol.o.
18613
18614 * window.c (displayed_window_lines): Correct for one-off bug
18615 in HEIGHT on non-window displays.
18616
18617 * regex.c (set_image_of_range_1): New function.
18618 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
18619 Return a value to indicate running out of memory.
18620 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
18621 (extend_range_table_work_area): New subroutine.
18622 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
18623 Different calling conventions, and used from set_image_of_range{,_1}.
18624 (IMMEDIATE_QUIT_CHECK): Definitions moved.
18625
18626 2002-09-04 Juanma Barranquero <lektu@terra.es>
18627
18628 * makefile.w32-in: All dependencies updated.
18629
18630 2002-09-01 Richard M. Stallman <rms@gnu.org>
18631
18632 * unexsol.c: New file.
18633
18634 * xfns.c (Qbox): Declare external, don't define.
18635
18636 * xdisp.c (redisplay_window) <force-start case>:
18637 If point is on semi-visible last line, reposition
18638 it at previous line.
18639
18640 * alloc.c (display_malloc_warning): Use display-warning.
18641 (malloc_warning_1): Function deleted.
18642
18643 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
18644
18645 * lread.c (read1): Handle #! by skipping the line.
18646
18647 2002-08-31 Richard M. Stallman <rms@gnu.org>
18648
18649 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
18650 Don't include LDFLAGS.
18651 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
18652
18653 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
18654
18655 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
18656 member of x_display_info unless we compile for some window system.
18657
18658 2002-08-31 Kim F. Storm <storm@cua.dk>
18659
18660 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
18661 (get_window_cursor_type): Don't use them.
18662 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
18663
18664 2002-08-30 Kenichi Handa <handa@etl.go.jp>
18665
18666 * xdisp.c (get_next_display_element): Fix previous change.
18667
18668 2002-08-30 Andrew Choi <akochoi@shaw.ca>
18669
18670 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
18671 (expose_window): Use it to fix the display of overlapping
18672 rows (merge code from xterm.c).
18673
18674 * macfns.c (Qbox): Add extern declaration.
18675
18676 2002-08-30 Juanma Barranquero <lektu@terra.es>
18677
18678 * w32fns.c (Qbox): Make extern.
18679 (syms_of_w32fns): Remove initialization of Qbox.
18680
18681 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
18682
18683 * xfns.c (Fx_open_connection): Fix error message.
18684
18685 2002-08-30 Kim F. Storm <storm@cua.dk>
18686
18687 The following changes consolidates the handling of the cursor
18688 type in xdisp.c, moving duplicate code and functionality from
18689 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
18690
18691 * frame.h (enum text_cursor_kinds): Consolidated here.
18692 Added DEFAULT_CURSOR value.
18693 (struct frame) <desired_cursor, cursor_width>
18694 <blink_off_cursor, blink_off_cursor_width>: New fields.
18695 Consolidated from output_x, output_w32 and output_mac structs.
18696 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
18697 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
18698
18699 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
18700 Variables consolidated here.
18701 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
18702 (Vcursor_in_non_selected_windows): Renamed from
18703 cursor_in_non_selected_windows and changed to Lisp_Object.
18704 (syms_of_xdisp): Define and staticpro new and moved variables.
18705 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
18706 consolidated here. Recognize Qhollow setting.
18707 (set_frame_cursor_types): New function to set frame cursor types
18708 based on the frame parameters.
18709 (get_window_cursor_type): New function to calculate new cursor
18710 type and width for the specified window. Based on duplicated
18711 code consolidated here.
18712 Enhancements: cursor-in-non-selected-windows may be a cursor type,
18713 check buffer-local alternate-cursor-type and blink-cursor-alist
18714 before using built-in blink off methods.
18715
18716 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
18717
18718 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
18719 (get_specified_cursor_type, get_window_cursor_type)
18720 (set_frame_cursor_types): Added prototypes.
18721
18722 * macfns.c (x_specified_cursor_type): Removed.
18723 (x_set_cursor_type): Use set_frame_cursor_types.
18724 (Qbar, Qbox): Removed.
18725 (syms_of_macfns): Don't intern or staticpro them.
18726
18727 * macterm.c (x_specified_cursor_type): Remove prototype.
18728 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
18729 (x_display_and_set_cursor): Use get_window_cursor_type.
18730 Remove unused local variables cursor_non_selected, active_cursor.
18731 Redraw cursor if hbar cursor width changes.
18732 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
18733
18734 * macterm.h (enum text_cursor_kinds): Removed.
18735 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
18736 <blink_off_cursor, blink_off_cursor_width>: Members removed.
18737 (FRAME_DESIRED_CURSOR): Macro removed.
18738
18739 * w32fns.c (Vblink_cursor_alist): Removed.
18740 (Qbar, Qhbar, Qbox, Qhollow): Removed.
18741 (syms_of_w32fns): Don't intern, staticpro, or define them.
18742 (x_specified_cursor_type): Removed.
18743 (x_set_cursor_type): Use set_frame_cursor_types.
18744
18745 * w32term.c (x_specified_cursor_type): Remove prototype.
18746 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
18747 (x_display_and_set_cursor): Use get_window_cursor_type.
18748 Remove unused local variables cursor_off_state.
18749 Redraw cursor if hbar cursor width changes.
18750 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
18751
18752 * w32term.h (enum text_cursor_kinds): Removed.
18753 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
18754 <blink_off_cursor, blink_off_cursor_width>: Members removed.
18755 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
18756 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
18757 (struct w32_display_info) <x_highlight_frame>: Renamed member from
18758 w32_highlight_frame.
18759
18760 * xfns.c (Vblink_cursor_alist): Removed.
18761 (Qbar, Qhbar, Qbox, Qhollow): Removed.
18762 (syms_of_xfns): Don't intern, staticpro, or define them.
18763 (x_specified_cursor_type): Removed.
18764 (x_set_cursor_type): Use set_frame_cursor_types.
18765
18766 * xterm.c (x_specified_cursor_type): Remove prototype.
18767 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
18768 (x_display_and_set_cursor): Use get_window_cursor_type.
18769 Remove unused local variables cursor_off_state.
18770 Redraw cursor if hbar cursor width changes.
18771
18772 * xterm.h (enum text_cursor_kinds): Removed.
18773 (struct output_x) <current_cursor, desired_cursor, cursor_width>
18774 <blink_off_cursor, blink_off_cursor_width>: Members removed.
18775 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
18776 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
18777 (x_specified_cursor_type): Remove prototype.
18778
18779 2002-08-28 Richard M. Stallman <rms@gnu.org>
18780
18781 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
18782 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
18783 (Vblink_cursor_alist): New variable.
18784 (syms_of_w32fns): Initialize and defvar it.
18785 (x_specified_cursor_type): Recognize Qbox for filled box.
18786 Exceptions are hollow boxes.
18787 (Qbox, Qhollow): New variables.
18788 (syms_of_w32fns): Initialize and staticpro them.
18789
18790 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
18791 New macros.
18792 (struct w32_output): New fields blink_off_cursor,
18793 blink_off_cursor_width.
18794 (FRAME_CURSOR_WIDTH): New macro.
18795
18796 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
18797 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
18798
18799 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
18800 for bar cursor.
18801
18802 * w32term.c (expose_overlaps): New function.
18803 (expose_window): Use it to fix the display of overlapping rows.
18804
18805 2002-08-28 Simon Josefsson <jas@extundo.com>
18806
18807 * xfns.c (Fx_open_connection): Improve help when X connection
18808 fails, xhost is insecure and xauth is better.
18809
18810 2002-08-28 Juanma Barranquero <lektu@terra.es>
18811
18812 * makefile.w32-in: Add missing dependencies on w32term.h and
18813 composite.h.
18814
18815 * emacs.c (USAGE1): Add missing newline.
18816
18817 2002-08-27 Andrew Choi <akochoi@shaw.ca>
18818
18819 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
18820
18821 2002-08-27 Richard M. Stallman <rms@gnu.org>
18822
18823 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
18824 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
18825 (Vblink_cursor_alist): New variable.
18826 (syms_of_xfns): Initialize and defvar it.
18827 (x_specified_cursor_type): Recognize Qbox for filled box.
18828 Exceptions are hollow boxes.
18829 (Qbox, Qhollow): New variables.
18830 (syms_of_xfns): Initialize and staticpro them.
18831
18832 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
18833 New macros.
18834 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
18835
18836 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
18837 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
18838
18839 * emacs.c (main): Handle --script.
18840 (USAGE1): Mention --script.
18841 (standard_args): Define sort order for --script.
18842
18843 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
18844
18845 * xdisp.c (redisplay_updating_p): Variable removed.
18846 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
18847 New variables.
18848 (init_iterator): Don't free realized faces if
18849 inhibit_free_realized_faces is set.
18850 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
18851 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
18852 initialize Qinhibit_free_realized_faces.
18853
18854 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
18855 when iterator is adding glyphs to a glyph matrix.
18856
18857 2002-08-27 Kenichi Handa <handa@etl.go.jp>
18858
18859 * xdisp.c (get_next_display_element): In unibyte case, don't use
18860 octal form for such eight-bit characters that can be converted to
18861 multibyte char.
18862
18863 2002-08-26 Kim F. Storm <storm@cua.dk>
18864
18865 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
18866 foreground and background colors. From Joe Buehler.
18867
18868 2002-08-26 Miles Bader <miles@gnu.org>
18869
18870 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
18871
18872 2002-08-25 Andrew Choi <akochoi@shaw.ca>
18873
18874 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
18875 defined instead of MAC_OSX.
18876
18877 * s/darwin.h (select): Define select to sys_select only if
18878 HAVE_CARBON is defined.
18879 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
18880 (DONT_REOPEN_PTY): #def it.
18881
18882 * macterm.c (XTread_socket): Remove code to call
18883 SendEventToEventTarget for keys with command modifiers when
18884 mac_command_key_is_meta is nil.
18885
18886 2002-08-24 Andreas Schwab <schwab@suse.de>
18887
18888 * eval.c (Fdefvar): Fix last change.
18889
18890 2002-08-23 Richard M. Stallman <rms@gnu.org>
18891
18892 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
18893 Record variables in load history as (defvar . VAR).
18894 (Fdefvar): Don't record in load history if no initial value.
18895 (Qdefvar): New variable.
18896 (syms_of_eval): Init and staticpro it.
18897
18898 * lread.c (syms_of_lread): Doc fix.
18899 (build_load_history): Use Fmember to see if a definition
18900 is already in the Vload_history element.
18901
18902 * process.c (Fstart_process): Remove /: from program name.
18903
18904 * emacs.c (decode_env_path): Don't add /: if file name handler
18905 has a `safe-magic' property.
18906
18907 * callproc.c (Fcall_process): Remove /: from program name.
18908
18909 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
18910
18911 * regex.c (PATFETCH): Remove the translating fetch.
18912 (PATFETCH_RAW): Rename to PATFETCH.
18913 (set_image_of_range): New fun.
18914 (SET_RANGE_TABLE_WORK_AREA): Use it.
18915 (regex_compile): Don't translate the pattern chars so eagerly.
18916 Only do it when inserting an `exactn' bytecode or when handling
18917 a char-range.
18918 (mutually_exclusive_p): Avoid empty statement.
18919
18920 2002-08-22 Kim F. Storm <storm@cua.dk>
18921
18922 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
18923 end up on a partially visible line; this reverts a specific part
18924 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
18925 display error which has been reported several times now.
18926 However it introduces the problem that changes was supposed to fix.
18927 See my comments in the source if you want to debug this further.
18928
18929 2002-08-20 Kenichi Handa <handa@etl.go.jp>
18930
18931 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18932
18933 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
18934
18935 * msdos.c (croak): Add `void' to definition.
18936
18937 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
18938 Don't define them, they are defined in msdos.c.
18939
18940 * mem-limits.h [MSDOS]: Declare etext.
18941
18942 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
18943 `const' since CORRECT_DIR_SEPS modifies its target.
18944
18945 2002-08-19 Kim F. Storm <storm@cua.dk>
18946
18947 * keyboard.c (Fclear_this_command_keys): Add optional arg
18948 KEEP-RECORD to avoid clearing lossage when we just want to clear
18949 the current key sequence (kmacro needs this).
18950
18951 2002-08-19 Kenichi Handa <handa@localhost>
18952
18953 * composite.c (run_composition_function): Call FUNC if it is fboundp.
18954
18955 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
18956 cons, return Qnil.
18957
18958 2002-08-17 Richard M. Stallman <rms@gnu.org>
18959
18960 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
18961
18962 * sysdep.c [!VMS]: Include sys/files.h.
18963
18964 * editfns.c (save_restriction_restore): Defend from unchained marker.
18965
18966 * buffer.c (overlays_at): Handle extending vec uniformly.
18967 (overlays_in): Handle extending vec from length 0 as in overlays_at.
18968
18969 2002-08-15 Andrew Choi <akochoi@shaw.ca>
18970
18971 * mac.c (init_mac_osx_environment): New function.
18972
18973 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
18974
18975 2002-08-14 Kim F. Storm <storm@cua.dk>
18976
18977 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
18978 executing macro before appending to it (when used from Lisp).
18979 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
18980 which is called prior to each iteration of macro (for kmacro.el).
18981 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
18982
18983 * lisp.h (Fexecute_kbd_macro): Update prototype.
18984
18985 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
18986
18987 2002-08-14 Kenichi Handa <handa@etl.go.jp>
18988
18989 * xselect.c (QUTF8_STRING): New variable.
18990 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
18991 (x_atom_to_symbol): Likewise.
18992 (x_get_local_selection): New argument local_request. If it is
18993 nonzero, call handler_fn with the second arg nil.
18994 (x_handle_selection_request): Call x_get_local_selection with
18995 local_request 0.
18996 (lisp_data_to_selection_data): Don't encode the string here.
18997 (Fx_get_selection_internal): Call x_get_local_selection with
18998 local_request 1.
18999 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
19000
19001 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
19002
19003 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
19004
19005 2002-08-13 Richard M. Stallman <rms@gnu.org>
19006
19007 * minibuf.c (Fminibufferp): New function.
19008 (syms_of_minibuf): Defsubr it.
19009 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
19010
19011 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
19012
19013 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
19014
19015 2002-08-12 Richard M. Stallman <rms@gnu.org>
19016
19017 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
19018 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
19019 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
19020 already.
19021
19022 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
19023
19024 2002-08-11 Andrew Choi <akochoi@shaw.ca>
19025
19026 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
19027 (Vmac_pass_command_to_system): New variable.
19028 (Vmac_pass_control_to_system): New variable.
19029 (do_mouse_moved): Check wp with is_emacs_window.
19030 (XTread_socket): Check window_ptr with is_emacs_window.
19031 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
19032 events back to Mac Toolbox for processing, depending on values of
19033 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
19034 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
19035 Vmac_pass_control_to_system.
19036
19037 2002-08-10 Kenichi Handa <handa@etl.go.jp>
19038
19039 * coding.c (unencodable_char_position): New function.
19040 (Funencodable_char_position): New function.
19041 (syms_of_coding): Defsubr Funencodable_char_position.
19042
19043 2002-08-10 Andrew Choi <akochoi@shaw.ca>
19044
19045 * mac.c (sys_select) [MAC_OSX]: New function.
19046
19047 * macterm.c (MakeMeTheFrontProcess): New function.
19048 (mac_initialize): Call MakeMeTheFrontProcess.
19049
19050 * s/darwin.h: Define select to sys_select.
19051
19052 2002-08-09 Richard M. Stallman <rms@gnu.org>
19053
19054 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
19055
19056 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
19057
19058 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
19059 end of the buffer.
19060
19061 2002-08-08 Ken Raeburn <raeburn@gnu.org>
19062
19063 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
19064
19065 * puresize.h (BASE_PURESIZE): Increase to 910000.
19066
19067 2002-08-08 Kenichi Handa <handa@etl.go.jp>
19068
19069 * coding.c (Ffind_operation_coding_system): For write-region, if
19070 VISIT is a filename, make it the target.
19071
19072 2002-08-07 Richard M. Stallman <rms@gnu.org>
19073
19074 * alloc.c (mark_object): Detect long lists for debugging.
19075 (mark_object_loop_halt): New variable.
19076
19077 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
19078
19079 * data.c (Fmake_variable_frame_local): Doc fix.
19080
19081 2002-08-01 David Ponce <david@dponce.com>
19082
19083 * w32menu.c (local_heap, local_alloc, local_free): New macros.
19084 (malloc_widget_value, free_widget_value)
19085 (w32_free_submenu_strings): Use them.
19086
19087 (push_submenu_start, push_submenu_end, push_left_right_boundary)
19088 (push_menu_pane, push_menu_item, single_keymap_panes)
19089 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
19090 (single_submenu, set_frame_menubar)
19091 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
19092
19093 (Fx_popup_menu): Don't show pop up menu until preceding one is
19094 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
19095
19096 * w32menu.c: Changes adapted from xmenu.c
19097 (set_frame_menubar): First parse all submenus,
19098 then make widget_value trees from them.
19099 Don't allocate any widget_value objects
19100 until we are done with the parsing.
19101 (parse_single_submenu): New function.
19102 (digest_single_submenu): New function.
19103 (single_submenu): Function deleted, replaced by those two.
19104
19105 2002-08-04 Andrew Choi <akochoi@shaw.ca>
19106
19107 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
19108 returns a valid window pointer before proceeding for keyDown and
19109 autoKey events.
19110
19111 2002-08-03 Andrew Choi <akochoi@shaw.ca>
19112
19113 * macterm.c (USE_CARBON_EVENTS): New macro.
19114 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
19115 (x_iconify_frame): Call CollapseWindow.
19116 (Vmac_reverse_ctrl_meta): New variable.
19117 (Vmac_wheel_button_is_mouse_2): New variable.
19118 (init_mac_drag_n_drop): New function.
19119 (mac_do_receive_drag): New function.
19120 (mac_handle_service_event): New function.
19121 (init_service_handler): New function.
19122 (mac_to_emacs_modifiers): New function.
19123 (mac_event_to_emacs_modifiers): New function.
19124 (mac_get_mouse_btn): New function.
19125 (mac_convert_event_ref): New function.
19126 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
19127 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
19128 mac_get_mouse_btn.
19129 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
19130
19131 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
19132 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
19133 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
19134 TOOL_BAR_EVENT for MAC_OS as well.
19135 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
19136 as for WINDOWS_NT.
19137 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
19138
19139 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
19140
19141 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
19142
19143 * xdisp.c (forward_to_next_line_start): Fix a condition that
19144 lead to a newline being skipped.
19145
19146 2002-08-02 Andrew Choi <akochoi@shaw.ca>
19147
19148 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
19149
19150 2002-08-01 Richard M. Stallman <rms@gnu.org>
19151
19152 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
19153
19154 2002-07-31 Andrew Choi <akochoi@shaw.ca>
19155
19156 * macfns.c: #undef init_process before #define-ing it.
19157
19158 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
19159 HAVE_CARBON is defined.
19160
19161 2002-07-31 Richard M. Stallman <rms@gnu.org>
19162
19163 * xmenu.c (set_frame_menubar): First parse all submenus,
19164 then make widget_value trees from them.
19165 Don't allocate any widget_value objects
19166 until we are done with the parsing.
19167 (parse_single_submenu): New function.
19168 (digest_single_submenu): New function.
19169 (single_submenu): Function deleted, replaced by those two.
19170
19171 2002-07-30 Juanma Barranquero <lektu@terra.es>
19172
19173 * w32proc.c (syms_of_ntproc): Fix docstring of
19174 `w32-get-true-file-attributes'.
19175
19176 2002-07-28 Richard M. Stallman <rms@gnu.org>
19177
19178 * s/hpux8.h (HPUX8): Define this before including hpux.h.
19179 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
19180
19181 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
19182
19183 * keyboard.c (make_lispy_event):
19184 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
19185 Explicitly clear up_modifier in event->modifiers.
19186
19187 2002-07-27 Richard M. Stallman <rms@gnu.org>
19188
19189 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
19190
19191 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
19192 for bar cursor.
19193
19194 2002-07-26 Kenichi Handa <handa@etl.go.jp>
19195
19196 * coding.c (detect_coding_iso2022): While checking a byte sequence
19197 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
19198 it in the normal loop.
19199
19200 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
19201
19202 * xterm.c (expose_overlaps): New function.
19203 (expose_window): Use it to fix the display of overlapping rows.
19204
19205 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
19206
19207 2002-07-23 Ken Raeburn <raeburn@gnu.org>
19208
19209 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
19210 since it only depends on XUINT.
19211
19212 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
19213 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
19214 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
19215 Macros deleted.
19216
19217 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
19218 its value over other approaches.
19219 * sysdep.c (start_of_data): Don't define the function if a macro
19220 form has been defined.
19221
19222 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
19223
19224 * xdisp.c (redisplay_updating_p): New variable.
19225 (init_iterator): Don't free realized faces when
19226 redisplay_updating_p is set.
19227 (redisplay_internal): Set redisplay_updating_p while updating
19228 the display.
19229
19230 2002-07-23 Richard M. Stallman <rms@gnu.org>
19231
19232 * editfns.c (Fmessage): Treat "" like nil.
19233
19234 2002-07-23 Kenichi Handa <handa@etl.go.jp>
19235
19236 * xdisp.c (face_before_or_after_it_pos):
19237 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19238
19239 2002-07-22 Juanma Barranquero <lektu@terra.es>
19240
19241 * callproc.c (init_callproc) [DOS_NT]:
19242 Initialize Vshared_game_score_directory to nil.
19243 (syms_of_callproc) [DOS_NT]: Likewise.
19244
19245 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
19246
19247 * xdisp.c (display_line): Replace an abort with xassert.
19248
19249 2002-07-21 Richard M. Stallman <rms@gnu.org>
19250
19251 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
19252 and END_UNCHANGED when setting buffer_unchanged_p.
19253 Use current_matrix_up_to_date_p to decide whether to use
19254 try_cursor_movement.
19255
19256 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
19257
19258 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
19259
19260 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
19261 Set to nil if dir does not exist.
19262 (syms_of_callproc): Init unconditionally and simply.
19263
19264 * buffer.c (Fbuffer_list): Doc fix.
19265
19266 2002-07-21 Ken Raeburn <raeburn@gnu.org>
19267
19268 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
19269
19270 * buffer.c (mmap_realloc): When shrinking, make sure number of
19271 pages to unmap is rounded towards zero.
19272
19273 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
19274 (XSETINT): Deleted.
19275
19276 * m/att3b.h (XINT): Don't define.
19277 (VALBITS, VALMASK, XTYPE): Deleted.
19278 (DATA_SEG_BITS): Define.
19279 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
19280 ARRAY_MARK_FLAG): Deleted.
19281 (DATA_SEG_BITS): Define.
19282 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
19283 (DATA_SEG_BITS): Define.
19284
19285 2002-07-20 Richard M. Stallman <rms@gnu.org>
19286
19287 * print.c (print_error_message): New args CONTEXT and CALLER.
19288 Calls changed.
19289
19290 * lisp.h (print_error_message): Declare new args.
19291
19292 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
19293 and CONTEXT to print_error_message, don't print them here.
19294 For a Quit, don't use Vsignaling_function.
19295 Call message_log_maybe_newline.
19296
19297 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
19298
19299 2002-07-20 Kim F. Storm <storm@cua.dk>
19300
19301 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
19302
19303 2002-07-19 Ken Raeburn <raeburn@gnu.org>
19304
19305 * bytecode.c (struct byte_stack): Pointers into byte string now
19306 point to const.
19307 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
19308 const.
19309 * charset.h (BCOPY_SHORT): Source pointer now points to const.
19310 * coding.c (encode_eol, detect_coding, detect_eol):
19311 (decode_coding, encode_coding, detect_coding_system):
19312 Source strings now treated as const.
19313 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
19314 modify Lisp string contents.
19315 * coding.h (decode_coding, encode_coding, detect_coding,
19316 detect_eol): Declarations updated.
19317 * composite.c (compose_chars_in_text): Treat Lisp string contents
19318 as const.
19319 * dispnew.c (safe_bcopy): Source pointer now points to const.
19320 * lisp.h (STRING_COPYIN): New macro.
19321 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
19322 (internal_with_output_to_temp_buffer): Declarations updated.
19323 * print.c (temp_output_buffer_setup):
19324 (internal_with_output_to_temp_buffer): Buffer name argument is now
19325 pointer to const.
19326 * sound.c (struct sound_device): Function pointer field "write"
19327 buffer argument now points to const.
19328 (vox_write): Buffer argument points to const.
19329 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
19330 contents as const.
19331 * sysdep.c (emacs_write): Buffer pointer now const.
19332 * term.c (encode_terminal_code): Buffer pointer now const.
19333 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
19334 (x_face_list_fonts, x_update_menu_appearance):
19335 (hash_string_case_insensitive): Treat Lisp string contents as const.
19336
19337 2002-07-19 Juanma Barranquero <lektu@terra.es>
19338
19339 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
19340
19341 * fileio.c (syms_of_fileio): Likewise.
19342 (Ffile_name_as_directory): Fix argument name in docstring.
19343 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
19344
19345 2002-07-18 Richard M. Stallman <rms@gnu.org>
19346
19347 * data.c (Fdefalias): Doc fix.
19348
19349 2002-07-17 Dave Love <fx@gnu.org>
19350
19351 * intervals.h (text_property_stickiness): Use P_.
19352
19353 * ccl.c: Remove `emacs' conditionals.
19354 (ccl_backtrace_table): Fix size spec.
19355 (ccl_driver): Fix type errors.
19356
19357 2002-07-16 Ken Raeburn <raeburn@gnu.org>
19358
19359 * alloc.c (xstrdup, make_string, make_unibyte_string)
19360 (make_multibyte_string, build_string): String pointer args now
19361 point to const.
19362 * charset.c (find_charset_in_text, c_string_width):
19363 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
19364 * fileio.c (report_file_error):
19365 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
19366 (count_combining_before, count_combining_after, insert_1_both):
19367 (insert, insert_and_inherit, insert_string):
19368 (insert_before_markers, insert_before_markers_and_inherit):
19369 * lread.c (intern, oblookup, hash_string):
19370 * minibuf.c (temp_echo_area_glyphs):
19371 * search.c (fast_c_string_match_ignore_case):
19372 * sysdep.c (emacs_open, set_file_times):
19373 * xfaces.c (xstricmp):
19374 * xdisp.c (store_frame_title, string_char_and_length):
19375 (message_dolog, message2, message2_nolog, set_message): Likewise.
19376 (set_message_1): Cast message string argument to const pointer.
19377 * editfns.c (general_insert_function): Insertion function now
19378 takes pointer to const for input data.
19379 * charset.h (find_charset_in_text, c_string_width):
19380 (parse_str_as_multibyte): Declarations updated.
19381 * dispextern.h (xstricmp): Declaration updated.
19382 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
19383 (count_size_as_multibyte, count_combining_before):
19384 (count_combining_after, insert_1, insert_1_both, message_dolog):
19385 (insert, insert_and_inherit, insert_before_markers)
19386 (insert_before_markers_and_inherit, set_message, message2):
19387 (message2_dolog, build_string, make_string, make_unibyte_string):
19388 (make_multibyte_string, intern, oblookup, report_file_error):
19389 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
19390 (emacs_open, xstrdup): Declarations updated.
19391 * systime.h (set_file_times): Declaration updated.
19392
19393 * charset.c (find_charset_in_text, lisp_string_width): Use const
19394 for pointer to lisp string data.
19395 * charset.h (FETCH_STRING_CHAR_ADVANCE):
19396 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
19397 * coding.c (Ffind_coding_systems_region_interval):
19398 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
19399 (Fmake_directory_internal, Fdelete_directory):
19400 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
19401 * fontset.c (font_family_registry, fs_query_fontset):
19402 (list_fontsets):
19403 * frame.c (Fframe_parameter):
19404 * keyboard.c (cmd_error_internal):
19405 * keymap.c (Fdescribe_buffer_bindings):
19406 * lread.c (complete_filename_p, openp):
19407 * minibuf.c (Fminibuffer_complete_word):
19408 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
19409 (face_before_or_after_it_pos, next_element_from_string):
19410 (get_overlay_arrow_glyph_row, display_mode_element):
19411 (decode_mode_spec_coding):
19412 * xterm.c (same_x_server): Likewise.
19413
19414 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
19415 settings of non-existent fields.
19416
19417 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
19418 copy a lisp value.
19419
19420 * lread.c (Fintern_soft): Use string macros instead of
19421 Lisp_String fields.
19422 * keyboard.c (echo_char, parse_modifiers_uncached):
19423 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
19424 * textprop.c (validate_interval_range, interval_of): Likewise.
19425
19426 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
19427
19428 * charset.h (FETCH_STRING_CHAR_ADVANCE)
19429 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
19430 XSTRING()->size_byte.
19431
19432 * lisp.h (SDATA, SREF): Produce rvalue.
19433 (SSET): New macro.
19434 * alloc.c (make_event_array): Use SSET for storing into a string.
19435 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
19436 a string.
19437 * casefiddle.c (casify_object): Use SSET.
19438 * charset.h (FETCH_STRING_CHAR_ADVANCE)
19439 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
19440 address of string contents.
19441 * data.c (Faref): Use SDATA.
19442 (Faset): Use SDATA, SSET.
19443 * dired.c (directory_files_internal): Use SSET.
19444 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
19445 (Fread_file_name): Use SREF, SSET.
19446 * fns.c (concat): Use SSET.
19447 (concat, Fdelete): Use SDATA.
19448 * insdel.c (insert_from_string_1): Use SDATA.
19449 * keyboard.c (Fevent_convert_list): Use SREF.
19450 * lread.c (Fload): Use SDATA, SSET.
19451 * macfns.c (validate_x_resource_name): Use SSET.
19452 * process.c (status_message): Use SSET.
19453 * search.c (wordify): Use SDATA.
19454 (Freplace_match): Use SREF.
19455 * w32fns.c (validate_x_resource_name): Use SSET.
19456 * xfns.c (validate_x_resource_name): Use SSET.
19457 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
19458
19459 2002-07-16 Richard M. Stallman <rms@gnu.org>
19460
19461 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
19462
19463 * xdisp.c (reconsider_clip_changes):
19464 Don't test prevent_redisplay_optimizations_p.
19465 (redisplay_internal): Test prevent_redisplay_optimizations_p
19466 along with clip_changed in some cases.
19467 (try_window_id): Likewise.
19468 (redisplay_window): New local var buffer_unchanged_p.
19469
19470 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
19471
19472 * process.c (create_process): Test USG_SUBTTY_WORKS.
19473 (process_send_signal): Clean up handling of GID.
19474 Detect errors in ioctls meant to set GID.
19475
19476 * window.c (temp_output_buffer_show):
19477 Don't set prevent_redisplay_optimizations_p.
19478
19479 2002-07-15 Juanma Barranquero <lektu@terra.es>
19480
19481 * eval.c (Fdefvaralias): Add docstring argument.
19482
19483 2002-07-15 Ken Raeburn <raeburn@gnu.org>
19484
19485 * lisp.h (STRING_INTERVALS): Produce rvalue.
19486 (STRING_SET_INTERVALS): New macro.
19487 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
19488 * fns.c (Fstring_as_multibyte): Likewise.
19489 * intervals.c (balance_possible_root_interval, delete_interval)
19490 (create_root_interval, copy_intervals_to_string): Likewise.
19491 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
19492 instead of 0.
19493
19494 2002-07-14 Ken Raeburn <raeburn@gnu.org>
19495
19496 * lisp.h (STRING_SET_CHARS): New macro.
19497 (SCHARS, SBYTES): Produce rvalues.
19498 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
19499 * fns.c (concat): Likewise.
19500 * lread.c (read_vector): Likewise.
19501
19502 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
19503 (STRING_SET_UNIBYTE): New macro.
19504 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
19505 length of -1) changed to use STRING_SET_UNIBYTE.
19506 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
19507 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
19508 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
19509 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
19510 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
19511 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
19512 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
19513 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
19514 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
19515 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
19516 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
19517 STRING_BYTES or indirection changed to SCHARS, SBYTES,
19518 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
19519 unchanged for now.
19520
19521 2002-07-13 Kim F. Storm <storm@cua.dk>
19522
19523 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
19524
19525 2002-07-12 Richard M. Stallman <rms@gnu.org>
19526
19527 * fileio.c (Fwrite_region): Doc fix.
19528
19529 * print.c (print_error_message): Don't handle Vsignaling_function here.
19530
19531 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
19532 (command_loop_1): Avoid certain actions after memory-full error.
19533
19534 * eval.c (Fsignal): Don't call cancel_hourglass.
19535 For a memory-full error, don't call Vsignal_hook_function
19536 and don't set Vsignaling_function.
19537
19538 * process.c (process_send_signal): Add abort call.
19539
19540 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
19541
19542 * keymap.c (Fkey_binding): Fix typo.
19543
19544 2002-07-11 Richard M. Stallman <rms@gnu.org>
19545
19546 * alloc.c (Vmemory_full): New variable.
19547 (Vmemory_signal_data): Rename from memory_signal_data.
19548 Uses changed.
19549 (syms_of_alloc): Defvar them.
19550 (memory_full, buffer_memory_full): Set Vmemory_full.
19551
19552 * lisp.h (Vmemory_full): Add declaration.
19553 (current_column, indented_beyond_p): Change declaration.
19554
19555 * indent.c (last_known_column): Declare as double, not float.
19556 (current_column, current_column_1, string_display_width)
19557 (position_indentation): Return `double'.
19558 (indented_beyond_p): Arg `column' is `double'. Callers changed.
19559
19560 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
19561 (back_to_previous_visible_line_start)
19562 (reseat_at_next_visible_line_start, next_element_from_buffer):
19563 Use `double', not `float', when calling indented_beyond_p.
19564
19565 * s/hpux11.h (BROKEN_SA_RESTART): Define.
19566
19567 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
19568
19569 2002-07-11 Juanma Barranquero <lektu@terra.es>
19570
19571 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
19572 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
19573 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
19574 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
19575 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
19576 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
19577
19578 2002-07-10 Juanma Barranquero <lektu@terra.es>
19579
19580 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
19581 All callers changed.
19582
19583 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
19584
19585 * data.c (Fdefalias): Add an optional `docstring' argument.
19586 (set_internal, Fsetq_default): Use XCAR/XCDR.
19587
19588 * composite.c (HASH_VALUE, HASH_KEY):
19589 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
19590
19591 2002-07-09 Kenichi Handa <handa@etl.go.jp>
19592
19593 * callproc.c (Fcall_process): Fix previous change.
19594
19595 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
19596
19597 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
19598 Add support for hash-tables.
19599 (Ftry_completion): Return t even if the string appears multiple times.
19600
19601 * fns.c (Fnconc): Use XCDR.
19602 (Fprovide): Use CONSP and XCDR.
19603 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
19604 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
19605 (Fmake_hash_table): Accept `:size nil'.
19606 (Fmakehash): Delete: moved to subr.el.
19607 (syms_of_fns): Don't defsubr makehash.
19608
19609 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
19610 (HASH_TABLE_SIZE): Move from fns.c.
19611
19612 2002-07-07 Richard M. Stallman <rms@gnu.org>
19613
19614 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
19615 Instead just return 0 when there is something to be done.
19616 (try_scrolling): If make_cursor_line_fully_visible returns 0,
19617 retry scrolling as if cursor were off the bottom.
19618 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
19619 return CURSOR_MOVEMENT_MUST_SCROLL.
19620 (redisplay_window): If make_cursor_line_fully_visible returns 0,
19621 go to try_to_scroll.
19622
19623 * buffer.c (Fbuffer_local_value): Store current value into its binding
19624 so we get the up-to-date value for the binding that is loaded.
19625
19626 * eval.c (Fdefmacro): Doc fix.
19627
19628 2002-07-05 Dave Love <fx@gnu.org>
19629
19630 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
19631 correctly.
19632
19633 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
19634 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
19635 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
19636 CCL_LookupCharConstTbl.
19637 (syms_of_ccl): Defvar translation-hash-table-vector.
19638
19639 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19640
19641 * xdisp.c: Remove unused variable `face'.
19642
19643 2002-07-04 Juanma Barranquero <lektu@terra.es>
19644
19645 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
19646 obsolescence information.
19647
19648 2002-07-03 Andrew Choi <akochoi@shaw.ca>
19649
19650 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
19651 pattern. Search cache first.
19652 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
19653 for Japanese font.
19654 (XLoadQueryFont): Use it.
19655
19656 2002-07-02 Richard M. Stallman <rms@gnu.org>
19657
19658 * keymap.c (Fdefine_key): Doc fix.
19659
19660 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
19661
19662 2002-07-02 Juanma Barranquero <lektu@terra.es>
19663
19664 * keymap.c (syms_of_keymap): Fix typo.
19665
19666 2002-07-01 Andrew Choi <akochoi@shaw.ca>
19667
19668 * s/darwin.h: Define POSIX_SIGNALS.
19669
19670 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
19671 and FSRefMakePath to convert FSSpec returned with Apple Event to
19672 Posix pathname.
19673 (mac_initialize) [TARGET_API_MAC_CARBON]:
19674 Call init_required_apple_events and disable the `Quit' menu item
19675 provided automatically by the Carbon Toolbox.
19676
19677 2002-07-01 Dave Love <fx@gnu.org>
19678
19679 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19680 for K&R.
19681
19682 * xterm.c: Fix prototype for K&R.
19683
19684 * term.c (costs_set): Declare static, non-initialized for pcc.
19685
19686 2002-07-01 Richard M. Stallman <rms@gnu.org>
19687
19688 * keyboard.c (timer_last_idleness_start_time): New variable.
19689 (timer_start_idle): Set that.
19690 (read_key_sequence): Use that to reset timer_idleness_start_time
19691 to previous value.
19692
19693 * window.c (Frecenter): With arg, set optional_new_start.
19694
19695 * xdisp.c (redisplay_internal): Make optional_new_start really work.
19696
19697 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
19698 buffer for completion.
19699
19700 2002-06-29 Ken Raeburn <raeburn@gnu.org>
19701
19702 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
19703
19704 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19705
19706 * keyboard.c (readable_filtered_events): New function that filters
19707 FOCUS_IN_EVENT depending on parameter.
19708 (readable_events): Calls readable_filtered_events, not filtering
19709 FOCUS_IN_EVENT.
19710 (get_filtered_input_pending): New function, filtering parameter passed
19711 to readable_filtered_events.
19712 (get_input_pending): Calls get_filtered_input_pending, not filtering
19713 FOCUS_IN_EVENT.
19714 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
19715 FOCUS_IN_EVENT.
19716
19717 * xterm.h (struct x_output): Add focus_state.
19718
19719 * xterm.c (x_focus_changed): New function.
19720 (x_detect_focus_change): New function.
19721 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
19722 EnterNotify and LeaveNotify to track X focus changes.
19723
19724 2002-06-28 Andreas Schwab <schwab@suse.de>
19725
19726 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
19727
19728 2002-06-27 Kim F. Storm <storm@cua.dk>
19729
19730 * xdisp.c (mode_line_string_list, mode_line_string_face)
19731 (mode_line_string_face_prop): New variables.
19732 (store_mode_line_string): New function.
19733 (display_mode_element): Use store_mode_line_string to
19734 add mode-line string elements to mode_line_string_list
19735 when mode_line_string_list is non-nil.
19736 (Fformat_mode_line): Now returns propertized string by
19737 default. New arg NO-PROPS to ignore properties.
19738 (decode_mode_spec): Only add two dashes for %- in propertized
19739 mode-line string.
19740 (syms_of_xdisp): Init and staticpro mode_line_string_list.
19741
19742 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
19743
19744 * minibuf.c (minibuffer_completion_contents): Add return type.
19745
19746 2002-06-27 Juanma Barranquero <lektu@terra.es>
19747
19748 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
19749
19750 2002-06-26 Juanma Barranquero <lektu@terra.es>
19751
19752 * fileio.c (read_file_name_cleanup): Add missing return.
19753
19754 2002-06-26 Richard M. Stallman <rms@gnu.org>
19755
19756 * window.c (Frecenter): Don't set force_start flag.
19757
19758 * minibuf.c (do_completion, Fminibuffer_complete_word)
19759 (Fminibuffer_completion_help): Complete just the text before point.
19760 (minibuffer_completion_contents): New function.
19761
19762 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
19763
19764 * frame.c (frames_bury_buffer): Function deleted.
19765
19766 2002-06-25 Miles Bader <miles@gnu.org>
19767
19768 * callint.c (Fcall_interactively): When checking to see if doprnt hit
19769 the end of callint_message, allow for a terminating '\0'.
19770
19771 2002-06-24 Juanma Barranquero <lektu@terra.es>
19772
19773 * w32select.c: Include composite.h.
19774
19775 * w16select.c: Likewise.
19776
19777 2002-06-24 Kenichi Handa <handa@etl.go.jp>
19778
19779 * callproc.c (Fcall_process): If code detection is necessary,
19780 call detect_coding directly here.
19781
19782 * coding.c (detect_eol): Preserve coding->cmp_data.
19783
19784 * w16select.c (Fw16_get_clipboard_data):
19785 * w32fns.c (w32_to_x_font):
19786 * w32select.c (Fw32_get_clipboard_data):
19787 * xselect.c (selection_data_to_lisp_data):
19788 * xterm.c (XTread_socket): Disable composition handling.
19789
19790 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
19791
19792 * print.c (temp_output_buffer_setup): Kill all local variables.
19793
19794 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
19795
19796 * lread.c (Fread): Remove redundant and imprecise declaration.
19797
19798 * xfns.c (check_x_display_info): Use check_x_frame.
19799
19800 * .gdbinit (xprintsym): Use the new `xname' field.
19801 (xsymbol): Use it.
19802
19803 2002-06-22 Jason Rumney <jasonr@gnu.org>
19804
19805 * w32fns.c (file_dialog_callback): New function.
19806 (Fx_file_dialog): Allow selecting directories as well as files.
19807
19808 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19809
19810 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
19811 OpenBSD. Add support for mipseb-*-netbsd* machines.
19812
19813 2002-06-17 Andrew Choi <akochoi@shaw.ca>
19814
19815 * macterm.c (mac_scroll_area): Set foreground and backcolor to
19816 black and white before scrolling. Restore frame background and
19817 foreground color after scrolling.
19818 (do_window_update): Call XClearWindow before calling expose_frame.
19819 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
19820 FRAME_FOREGROUND_PIXEL of frame.
19821
19822 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
19823 test Mac command key as <ALT> key.
19824
19825 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
19826
19827 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
19828
19829 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
19830 Lookup keys in function-key-map immediately so that key-translation-map
19831 can be applied earlier.
19832 Remove function_key_possible and key_translation_possible, replaced
19833 by checking `keytran_start < t'.
19834
19835 * .gdbinit (xsymbol): Use the new `xname' field.
19836
19837 2002-06-17 Andrew Choi <akochoi@shaw.ca>
19838
19839 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
19840 test Mac command key as <ALT> key.
19841
19842 * mac.c (do_applescript): Call initialize_applescript if necessary
19843 when first called. Dispose of result_desc only when there is no error.
19844 (Fdo_applescript): Use %d format specifier instead of %ld.
19845
19846 2002-06-16 Andrew Choi <akochoi@shaw.ca>
19847
19848 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
19849 of FrontWindow for cases keyDown and autoKey.
19850
19851 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
19852 Vdefault_fontset to Monaco with mac-roman coding.
19853
19854 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
19855 init_process before and after inclusion of Carbon/Carbon.h, resp.
19856
19857 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
19858 cursor_gc.
19859 (add_font_name_table_entry): New function.
19860 (init_font_name_table): Use add_font_name_table_entry; add italic,
19861 bold, and bold-italic entries for truetype fonts.
19862
19863 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
19864 for Mac too.
19865 (try_font_list) [MAC_OS]: If no font matches given registry, try
19866 fonts with any registry matching face_family.
19867 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
19868
19869 * s/darwin.h: If autoconf detects the Ncurses library, define
19870 LIBS_TERMCAP to -lncurses to use it.
19871
19872 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
19873
19874 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
19875
19876 2002-06-15 Richard M. Stallman <rms@gnu.org>
19877
19878 * window.c (Fset_window_configuration): Explicitly preserve
19879 the point value that new_current_buffer had at the start.
19880
19881 2002-06-14 Juanma Barranquero <lektu@terra.es>
19882
19883 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
19884 Fix typos.
19885
19886 2002-06-14 Kim F. Storm <storm@cua.dk>
19887
19888 * insdel.c (insert_1_both, insert_from_string_1)
19889 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
19890 insert happened in the end_unchanged region. Otherwise, the
19891 redisplay may be confused and duplicate the last line in the
19892 buffer [seen after save-buffer when require-final-newline==t].
19893
19894 2002-06-13 Jason Rumney <jasonr@gnu.org>
19895
19896 * w32.c (init_environment): Remove EMACSLOCKDIR.
19897 (stat): Swap _S_IFDIR and _S_IFREG.
19898
19899 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19900
19901 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
19902 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
19903 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
19904 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
19905 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
19906 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
19907 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
19908 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
19909 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
19910 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
19911 SELECTION_REQUEST_EVENT, selection_clear_event to
19912 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
19913 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
19914 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
19915 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
19916 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
19917 no_event to NO_EVENT.
19918
19919 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19920
19921 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
19922
19923 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
19924
19925 * intervals.c (textget): Don't forget to `return'.
19926 (lookup_char_property): Use XCAR/XCDR.
19927
19928 2002-06-12 Juanma Barranquero <lektu@terra.es>
19929
19930 * xdisp.c (Fformat_mode_line): Fix typo.
19931
19932 2002-06-12 Kim F. Storm <storm@cua.dk>
19933
19934 * xdisp.c (Fformat_mode_line): New function.
19935 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
19936 (store_frame_title_char, store_frame_title): Use unconditionally.
19937 (init_xdisp): Defsubr Fformat_mode_line.
19938 Initialize frame_title_buf etc. unconditionally.
19939
19940 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
19941
19942 * keyboard.c (read_key_sequence):
19943 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
19944 things through those maps after downcasing events.
19945 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
19946 applies after function-key-map.
19947 Make sure that keytran can be done in the middle in the sequence.
19948 Be careful not to throw away events past the one we downcase.
19949
19950 * lread.c (read_integer): Remove unused var `tem'.
19951 (read1): Fix int/Lisp_Object mixup.
19952
19953 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
19954
19955 2002-06-11 Richard M. Stallman <rms@gnu.org>
19956
19957 * keyboard.c (readable_events): Ignore any number of
19958 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
19959
19960 2002-06-09 Miles Bader <miles@gnu.org>
19961
19962 * xfaces.c (Ftty_supports_face_attributes_p): New function.
19963 (parse_rgb_list, tty_lookup_color): New functions.
19964 (tty_defined_color): Use `tty_lookup_color' to do all the work.
19965 (color_distance, Fcolor_distance): New functions.
19966 (TTY_SAME_COLOR_THRESHOLD): New macro.
19967 (Qtty_color_standard_values): New variable.
19968 (syms_of_xfaces): Initialize new vars & functions.
19969
19970 2002-06-08 Colin Walters <walters@verbum.org>
19971
19972 * textprop.c (Vchar_property_alias_alist): New variable.
19973 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
19974
19975 * intervals.c (lookup_char_property): New function for looking up
19976 overlay and text properties, created from textget.
19977 (textget): Use it.
19978
19979 * intervals.h (lookup_char_property): Declare.
19980 (Vchar_property_alias_alist): Declare.
19981
19982 * buffer.c (Foverlay_get): Use lookup_char_property.
19983
19984 2002-06-07 Sam Steingold <sds@gnu.org>
19985
19986 * xselect.c (lisp_data_to_selection_data): Fix last change:
19987 *data_ret is not a Lisp string, while unibyte_string is.
19988
19989 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
19990
19991 * xselect.c (lisp_data_to_selection_data): Fix last change:
19992 set size_ret.
19993
19994 2002-06-07 Andreas Schwab <schwab@suse.de>
19995
19996 * m/amdx86-64.h: New file.
19997
19998 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
19999
20000 * fns.c (Fstring_make_unibyte): Doc fix.
20001
20002 * xselect.c (lisp_data_to_selection_data): If the requested type
20003 is STRING, call string_make_unibyte to encode the selected text
20004 as a string.
20005
20006 * window.c (Fset_window_hscroll): Doc fix.
20007
20008 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20009
20010 * fileio.c (choose_write_coding_system):
20011 Call select-safe-coding-system properly.
20012
20013 2002-06-03 Richard M. Stallman <rms@gnu.org>
20014
20015 * xdisp.c (message_with_string): Error if STRING is not a string.
20016
20017 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
20018
20019 * fileio.c (choose_write_coding_system): Pass FILE arg to
20020 Vselect_safe_coding_system_function.
20021
20022 2002-06-03 Ken Raeburn <raeburn@gnu.org>
20023
20024 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
20025
20026 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
20027
20028 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
20029 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
20030 * keymap.c (describe_command): Likewise.
20031 * minibuf.c (read_minibuf): Likewise.
20032
20033 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
20034 Cast `current_column' return value to int.
20035 (back_to_previous_visible_line_start)
20036 (reseat_at_next_visible_line_start, next_element_from_buffer):
20037 Cast `indented_beyond_p' 3rd arg to float.
20038
20039 * indent.c (last_known_column): Now a float.
20040 (current_column_1, position_indentation, current_column)
20041 (string_display_width): Return float.
20042 (Fcurrent_column): Cast `current_column' return value to int.
20043 (Fcurrent_indentation): Cast `position_indentation' retval to int.
20044 (indented_beyond_p): Third arg now a float.
20045 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
20046
20047 * lisp.h (current_column): Now returns float.
20048 (indented_beyond_p): 3rd arg now a float.
20049
20050 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
20051
20052 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
20053 is Qcompound_text_with_extensions.
20054
20055 * xselect.c (lisp_data_to_selection_data): Always set selection
20056 type as string if x_encode_text returns streingp non-NULL.
20057
20058 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
20059
20060 2002-05-30 Richard M. Stallman <rms@gnu.org>
20061
20062 * window.c (Fset_window_configuration): Correct the handling
20063 of point in current buffer, to work with multiple windows.
20064
20065 2002-05-29 Colin Walters <walters@verbum.org>
20066
20067 * lread.c (Fread_from_string): Don't depend on order of evaluation
20068 for C function parameters.
20069
20070 2002-05-28 Richard M. Stallman <rms@gnu.org>
20071
20072 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
20073 way for blinked-off state and for a nonselected window.
20074
20075 * window.c (window_scroll_pixel_based): Don't call Fbolp;
20076 instead, see if the new start pos is at beginning of line.
20077
20078 * fileio.c (Fwrite_region): If START is a string, don't
20079 make any annotations.
20080
20081 * eval.c (syms_of_eval): Doc fix.
20082
20083 2002-05-28 Colin Walters <walters@debian.org>
20084
20085 * emacs.c (USAGE1): Add --no-splash.
20086 (standard_args): Ditto.
20087
20088 2002-05-28 Colin Walters <walters@gnu.org>
20089
20090 * lread.c (readchar_count): New variable.
20091 (readchar): Increment it.
20092 (unreadchar): Decrement it.
20093 (read_multibyte): Decrement it.
20094 (Vread_with_symbol_positions): New variable.
20095 (Vread_symbol_positions_list): New variable.
20096 (read_internal_start): New function, created from Fread and
20097 Fread_from_string. Handle Vread_symbol_positions_list and
20098 Vread_with_symbol_positions.
20099 (readevalloop, Fread, Fread_from_string): Use it.
20100 (read1): Use readchar_count to add symbol positions to
20101 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
20102 (syms_of_lread): DEFVAR_LISP and initialize them.
20103
20104 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
20105 (substitute_object_recurse, substitute_object_in_subtree)
20106 (substitute_in_interval): Prototype.
20107 (read_multibyte): Return c if it's less than zero.
20108
20109 2002-05-28 Kim F. Storm <storm@cua.dk>
20110
20111 * fileio.c (Fread_file_name_internal): Added brute-force
20112 speed up for using predicate file-directory-p.
20113
20114 2002-05-28 Kim F. Storm <storm@cua.dk>
20115
20116 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
20117 New variables.
20118 (syms_of_fileio): DEFVAR_LISP them.
20119 (read_file_name_cleanup): New unwind function.
20120 (Fread_file_name_internal): Only return completions satifying
20121 Vread_file_name_predicate. Temporarily unwind protect and rebind
20122 default-directory while checking completions against the predicate.
20123 (Fread_file_name): Added PREDICATE argument. Specbind it to
20124 Vread_file_name_predicate during completion.
20125 Call Vread_file_name_function to read the file name if non-nil.
20126
20127 * lisp.h (Fread_file_name): Now has 6 args.
20128
20129 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
20130 predicate for Fread_file_name when reading directory name.
20131 Supply Qnil for predicate in other calls to Fread_file_name.
20132
20133 2002-05-26 Miles Bader <miles@gnu.org>
20134
20135 * term.c (tty_capable_p): New function.
20136 * dispextern.h (tty_capable_p): New function declaration.
20137 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
20138 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
20139
20140 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
20141
20142 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
20143 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
20144 (Vwrite_region_annotate_functions): Docstring fix.
20145
20146 2002-05-23 Kim F. Storm <storm@cua.dk>
20147
20148 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
20149 phys_cursor's hpos is overwritten. This is still not completely
20150 correct, as it doesn't really make sense to use hpos at all to
20151 get the cursor glyph (as that is relative to the width of the
20152 characters on the line, which may have changed during the update).
20153
20154 2002-05-22 Jason Rumney <jasonr@gnu.org>
20155
20156 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
20157 Lisp_Object.
20158 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
20159 Use modified enumfont_t struct.
20160
20161 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
20162
20163 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
20164 Handle the `hbar' cursor type.
20165 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
20166
20167 * w32fns.c (Qhbar): New variable.
20168 (x_specified_cursor_type): Use it.
20169
20170 2002-05-21 Ken Raeburn <raeburn@gnu.org>
20171
20172 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
20173 now, when the address is needed.
20174
20175 2002-05-21 Colin Walters <walters@gnu.org>
20176
20177 * Makefile.in (shortlisp): Add font-core.el.
20178
20179 2002-05-20 Richard M. Stallman <rms@gnu.org>
20180
20181 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
20182
20183 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
20184 equivalent key bindings here.
20185
20186 2002-05-20 Ken Raeburn <raeburn@gnu.org>
20187
20188 Change symbol structure to contain a lisp object for the symbol
20189 name:
20190 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
20191 object field named "xname".
20192 (SYMBOL_NAME): New macro.
20193 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
20194 name field.
20195 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
20196 (mark_object, gc_sweep): Use symbol xname field and XSTRING
20197 instead of name field.
20198 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
20199 SYMBOL_NAME instead of XSYMBOL and name field.
20200 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
20201 instead of XSYMBOL and name field.
20202 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
20203 and SYMBOL_NAME instead of XSYMBOL and name field.
20204 * coding.c (Fread_coding_system, code_convert_region1)
20205 (code_convert_string1, code_convert_string_norecord)
20206 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
20207 XSYMBOL and name field.
20208 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
20209 (Fmake_variable_buffer_local, Fmake_local_variable)
20210 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
20211 of XSYMBOL and name field.
20212 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
20213 XSYMBOL and name field.
20214 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
20215 instead of XSYMBOL and name field.
20216 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
20217 XSYMBOL and name field.
20218 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
20219 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
20220 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
20221 instead of XSYMBOL and name field.
20222 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
20223 (parse_modifiers, apply_modifiers, Fevent_convert_list)
20224 (parse_solitary_modifier, Fexecute_extended_command):
20225 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
20226 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
20227 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
20228 of XSYMBOL and name field.
20229 (describe_command, describe_translation): Use SYMBOL_NAME and
20230 assignment instead of XSYMBOL and name field and XSETSTRING.
20231 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
20232 instead of XSYMBOL and name field.
20233 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
20234 name field and XSETSTRING.
20235 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
20236 of XSYMBOL and name field.
20237 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
20238 assignment instead of XSYMBOL and name field and XSETSTRING.
20239 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
20240 XSTRING instead of XSYMBOL and name field.
20241 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
20242 and XSTRING instead of XSYMBOL and name field.
20243 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
20244 and XSTRING instead of XSYMBOL and name field.
20245 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
20246 XSTRING instead of XSYMBOL and name field.
20247 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
20248 of XSYMBOL and name field.
20249 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
20250 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
20251
20252 2002-05-19 Ken Raeburn <raeburn@gnu.org>
20253
20254 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
20255 and XCDR real rvalues in most configurations.
20256
20257 * buffer.c (fix_overlays_in_range, fix_overlays_before):
20258 Don't take the address of the cdr part of a cons cell; instead, track
20259 the parent cell and call XSETCDR, or set the variable for the head
20260 of the list if we haven't started down the list yet.
20261
20262 2002-05-19 Richard M. Stallman <rms@gnu.org>
20263
20264 * doc.c (reread_doc_file): Don't ask for confirmation.
20265
20266 2002-05-18 Jason Rumney <jasonr@gnu.org>
20267
20268 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
20269 (xbm_load_image): Use it.
20270 (xbm_load): Ditto.
20271 (xbm_read_bitmap_data): Reverted to xfns.c version.
20272 From David Ponce <david@dponce.com>.
20273
20274 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
20275
20276 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
20277 2.02 and later.
20278
20279 2002-05-16 Juanma Barranquero <lektu@terra.es>
20280
20281 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
20282
20283 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
20284
20285 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
20286 meaningful test.
20287 (read_char_minibuf_menu_prompt): Fix typo.
20288
20289 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
20290
20291 * eval.c (Fcommandp): Doc fix.
20292
20293 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
20294
20295 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
20296 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
20297 (Fset_keymap_parent): Gcpro a bit more.
20298 (access_keymap): Gcpro around meta_map call and around the main loop.
20299 (get_keyelt): Gcpro when following indirect references.
20300 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
20301 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
20302 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
20303 Remove useless ad-hoc remap code.
20304
20305 2002-05-13 Richard M. Stallman <rms@gnu.org>
20306
20307 * search.c (search_buffer): Give up boyer moore search if inverse
20308 translation change charset_base.
20309
20310 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
20311
20312 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
20313 characters is carried over from the previous block of text, adjust
20314 coding->produced to account for the extra character.
20315
20316 2002-05-11 Andreas Schwab <schwab@suse.de>
20317
20318 * coding.c (intersection): Keep the elements of the returned list
20319 in the same order as in the first list.
20320
20321 2002-05-11 Kim F. Storm <storm@cua.dk>
20322
20323 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
20324 only update cmm_size if realloc actually succeeds.
20325 Testing with initial size of 2 elements revealed that using
20326 realloc on GNU/Linux would cause a random trap in xmalloc
20327 later on, so I rewrote the code to use malloc/bcopy/free instead
20328 of realloc.
20329
20330 2002-05-10 Jason Rumney <jasonr@gnu.org>
20331
20332 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
20333
20334 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
20335
20336 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
20337 parens, to ensure correct evaluation order.
20338
20339 2002-05-10 Kim F. Storm <storm@cua.dk>
20340
20341 * keymap.c (Vemulation_mode_map_alists): New variable.
20342 (syms_of_keymap): DEFVAR_LISP it.
20343 (current_minor_maps): Process keymap alists in that list before
20344 minor-mode-overriding-map-alist and minor-mode-map-alist.
20345
20346 2002-05-09 Richard M. Stallman <rms@gnu.org>
20347
20348 * search.c (Freplace_match): Doc fix.
20349
20350 2002-05-09 Kim F. Storm <storm@cua.dk>
20351
20352 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
20353 Enlarge cursor rectangle drawn around image with non-zero relief.
20354
20355 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
20356 Enlarge cursor rectangle drawn around image with non-zero relief.
20357
20358 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
20359 Enlarge cursor rectangle drawn around image with non-zero relief.
20360
20361 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
20362
20363 * xselect.c (lisp_data_to_selection_data): Don't set selection
20364 type if comes from the Lisp object's car. If the selection
20365 contains a pure ASCII text, always return QSTRING as its type.
20366
20367 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20368
20369 * mac.c (mac-cut-function): Doc fix.
20370
20371 2002-05-05 Richard M. Stallman <rms@gnu.org>
20372
20373 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
20374
20375 2002-05-04 Jason Rumney <jasonr@gnu.org>
20376
20377 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
20378 for event-click-count.
20379
20380 * process.c (init_process): Only add server subfeature if we can
20381 use non-blocking I/O.
20382
20383 2002-05-04 Andrew Choi <akochoi@shaw.ca>
20384
20385 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
20386 repeatedly.
20387
20388 2002-05-03 Jason Rumney <jasonr@gnu.org>
20389
20390 * process.c (Fmake_network_process): Only support server sockets
20391 when we can make them non-blocking.
20392
20393 * s/ms-w32.h (HAVE_SELECT): Define.
20394
20395 * w32.h (FILE_NDELAY): New flag.
20396
20397 * w32.c (sys_getpeername, fcntl): New functions.
20398 (_sys_read_ahead): Temporarily block on non-blocking sockets.
20399
20400 * w32proc.c: Include sys/file.h.
20401
20402 2002-05-03 Colin Walters <walters@verbum.org>
20403
20404 * callproc.c (Vgame_score_directory): Renamed to
20405 Vshared_game_score_directory.
20406
20407 2002-04-30 Richard M. Stallman <rms@gnu.org>
20408
20409 * s/gnu.h [emacs]: Include stdio.h.
20410 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
20411
20412 * eval.c (do_autoload): Error if called while preparing to dump.
20413
20414 * fns.c (Frequire): Error if need to load while preparing to dump.
20415
20416 2002-04-28 Colin Walters <walters@verbum.org>
20417
20418 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
20419 Default to "~/.emacs.d/games".
20420
20421 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
20422
20423 * lread.c (openp): Change arg exec_only to predicate.
20424 (build_load_history): Use XCAR/XCDR.
20425 (Flocate_file_internal): New fun.
20426 (syms_of_lread): Defsubr it.
20427 (Fload): Update call to openp.
20428
20429 * lisp.h (openp): Update prototype.
20430
20431 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
20432 * w32proc.c (sys_spawnve):
20433 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
20434 * w32.c (check_windows_init_file):
20435 * sound.c (Fplay_sound_internal):
20436 * process.c (Fstart_process):
20437 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
20438 * mac.c (run_mac_command):
20439 * emacs.c (init_cmdargs):
20440 * callproc.c (Fcall_process): Update call to openp.
20441
20442 * textprop.c (remove_properties): Don't use XCAR without CONSP.
20443
20444 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
20445
20446 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20447
20448 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
20449 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
20450
20451 2002-04-28 Richard M. Stallman <rms@gnu.org>
20452
20453 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
20454
20455 * eval.c (Fcommandp): New arg for_call_interactively.
20456 * lisp.h (Fcommandp): Declare new arg.
20457
20458 2002-04-28 Jason Rumney <jasonr@gnu.org>
20459
20460 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
20461
20462 * w32.c (stat, fstat): Use file index information to generate
20463 inodes for directories where available.
20464
20465 2002-04-26 Andrew Choi <akochoi@shaw.ca>
20466
20467 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
20468 [HAVE_CARBON]: Include Mac object files.
20469
20470 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
20471 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
20472 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
20473 MAC_OSX, and MAC_OS instead of macintosh.
20474
20475 * editfns.c [MAC_OS8]: Include stdio.h.
20476
20477 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
20478
20479 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
20480 Apple Monaco.
20481
20482 * process.c (QCfamily, QCfilte): Declare extern.
20483 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
20484 calling select.
20485
20486 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
20487
20488 * tparam.c [MAC_OSX]: Don't define BC and UP.
20489
20490 * config.in [HAVE_CARBON]: Add.
20491
20492 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
20493 Move here from mac/src and mac/inc.
20494
20495 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
20496
20497 2002-04-26 Gerd Moellmann <gerd@gnu.org>
20498
20499 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
20500 Compute phys_cursor_width from the x position returned
20501 by x_draw_glyhs, which is cheaper.
20502 (x_display_and_set_cursor): Compute the buffer-local value
20503 of `cursor-in-non-selected-windows' only when needed.
20504
20505 2002-04-25 Gerd Moellmann <gerd@gnu.org>
20506
20507 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
20508 cursor on a stretch glyph has a width that depends on
20509 x_stretch_cursor_p.
20510
20511 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20512
20513 * abbrev.c (abbrev-start-location): Doc fix.
20514
20515 * indent.c (Fvertical_motion): Fix last change.
20516
20517 2002-04-25 Gerd Moellmann <gerd@gnu.org>
20518
20519 * indent.c (Fvertical_motion): Move to the start of the line
20520 containing PT before moving up or down.
20521
20522 2002-04-24 Gerd Moellmann <gerd@gnu.org>
20523
20524 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
20525 case of writing a whole row, more or less analogous to the case of
20526 writing only parts of a row.
20527
20528 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
20529 0 for NO_CURSOR.
20530
20531 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
20532
20533 2002-04-23 Colin Walters <walters@verbum.org>
20534
20535 * buffer.c (syms_of_buffer): Doc fix.
20536
20537 2002-04-23 Gerd Moellmann <gerd@gnu.org>
20538
20539 * xterm.c (notice_overwritten_cursor): Handle the special case
20540 of the cursor being in the first blank non-text line at the
20541 end of a window.
20542
20543 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
20544 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
20545 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
20546 bar cursors only, to make phys_cursor_width contain what its name
20547 suggests.
20548 (notice_overwritten_cursor): Consider the cursor image erased if
20549 the output area intersects the cursor image in y-direction.
20550
20551 2002-04-23 Simon Marshall <simon@gnu.org>
20552
20553 * xfns.c (x_set_mouse_color): Change default for cross_cursor
20554 to XC_hand2.
20555
20556 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20557
20558 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
20559
20560 2002-04-22 Kim F. Storm <storm@cua.dk>
20561
20562 * textprop.c (remove_properties): Fixed trap for malformed plist.
20563
20564 2002-04-22 Richard M. Stallman <rms@gnu.org>
20565
20566 * cmds.c (Fend_of_line): Handle intangible text in mid line.
20567
20568 * window.c (make_window): Initialize height_fixed_p,
20569 last_cursor_off_p, and p->cursor_off_p slots.
20570
20571 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20572
20573 * fns.c (use-dialog-box): Doc fix.
20574
20575 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20576
20577 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
20578 variables `row', `i' and `area'.
20579 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
20580 toolkit library.
20581
20582 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
20583
20584 * xfaces.c (clear_font_table): Don't free the default font of
20585 a frame even if it's on another display.
20586 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
20587 that could be Qt.
20588
20589 2002-04-19 Juanma Barranquero <lektu@terra.es>
20590
20591 * indent.c (Fmove_to_column): Remove unused local variable
20592 `next_boundary_byte'.
20593 (current_column_1): Likewise.
20594
20595 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
20596
20597 * msdos.c (Qhbar): New variable.
20598 (syms_of_msdos): Intern and staticpro it.
20599 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
20600 cursor type.
20601
20602 2002-04-19 Dave Lambert <dlambert@acm.org>
20603
20604 Theses change implement an underscore-like (`hbar') cursor.
20605
20606 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
20607
20608 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
20609 Handle the `hbar' cursor type.
20610 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
20611
20612 * xfns.c (Qhbar): New variable.
20613 (syms_of_xfns): Intern and staticpro it.
20614 (x_specified_cursor_type): Handle `hbar' cursor.
20615
20616 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
20617 not defined.
20618
20619 2002-04-18 Richard M. Stallman <rms@gnu.org>
20620
20621 * textprop.c (remove_properties): New arg LIST allows scanning
20622 either a list or a plist.
20623 (interval_has_some_properties_list): New function, like
20624 interval_has_some_properties using list instead of plist.
20625 All callers changed.
20626 (Fremove_list_of_text_properties): New function.
20627 (syms_of_textprop): Defsubr it.
20628
20629 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
20630
20631 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
20632
20633 2002-04-17 Juanma Barranquero <lektu@terra.es>
20634
20635 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
20636
20637 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
20638
20639 * window.c (coordinates_in_window): Don't report on margin area
20640 if its width is zero.
20641
20642 2002-04-16 Jason Rumney <jasonr@gnu.org>
20643
20644 * w32fns.c (Fx_file_dialog): Decode file name before using.
20645
20646 * w32term.c (construct_drag_n_drop): Likewise.
20647
20648 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
20649
20650 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
20651 store load-history in pure space.
20652
20653 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
20654
20655 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
20656
20657 * xterm.c (Qlatin_1, Qutf_8): New vars.
20658 (syms_of_xterm): Initialize them.
20659 (XTread_socket): Eliminate incorrect optimization that tried to avoid
20660 decoding the output of X*LookupString.
20661 Always use latin-1 to decode the output of XLookupString.
20662 Try Xutf8LookupString if XmbLookupString failed.
20663
20664 * region-cache.c (new_region_cache): Use BEG.
20665
20666 2002-04-16 Gerd Moellmann <gerd@gnu.org>
20667
20668 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
20669 configuration files.
20670 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
20671 returns 0.
20672
20673 2002-04-15 Andreas Schwab <schwab@suse.de>
20674
20675 * config.in: Regenerated using autoheader.
20676
20677 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
20678 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
20679 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
20680 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
20681 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
20682 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
20683 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
20684 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
20685 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
20686 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
20687 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
20688 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
20689 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
20690 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
20691 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
20692 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
20693 STACK_DIRECTION, now set by autoconf.
20694
20695 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20696
20697 * dispnew.c (marginal_area_string): Sort arguments.
20698
20699 * dispextern.h (marginal_area_string): Add prototype.
20700
20701 2002-04-13 Richard M. Stallman <rms@gnu.org>
20702
20703 * fileio.c (Finsert_file_contents):
20704 Don't call temp_output_buffer_setup--do just part, by hand.
20705
20706 * coding.c (run_pre_post_conversion_on_str):
20707 Don't call temp_output_buffer_setup--do just part, by hand.
20708
20709 * keyboard.c (command_loop_1): Don't call start_hourglass
20710 or cancel_hourglass when executing a macro.
20711
20712 * marker.c (count_markers): New function.
20713
20714 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
20715 grow without limit. Move recently used elements to the front.
20716
20717 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
20718
20719 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
20720
20721 2002-04-12 Gerd Moellmann <gerd@gnu.org>
20722
20723 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
20724 rows marginal areas.
20725 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
20726 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
20727
20728 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
20729
20730 2002-04-12 Dave Love <fx@gnu.org>
20731
20732 * dispnew.c (marginal_area_string): New.
20733
20734 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
20735 (Qleft_margin, Qright_margin): Declare.
20736 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
20737
20738 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
20739 note_mode_line_highlight and extended.
20740
20741 * keyboard.c (Qleft_margin, Qright_margin): Declare.
20742 (make_lispy_event): Deal with mouse events in margins.
20743
20744 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
20745
20746 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
20747
20748 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
20749 than deactivating the mark if tmm is set to `lambda'.
20750 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
20751 Use a single event for HELP_EVENT.
20752 (Fexecute_extended_command): Save last_point_position.
20753
20754 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20755
20756 * lisp.h (Fpropertize): Add prototype.
20757
20758 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
20759
20760 2002-04-10 Colin Walters <walters@verbum.org>
20761
20762 * config.in: Add HAVE_SHARED_GAME_DIR.
20763
20764 * callproc.c (Vgame_score_directory): New variable.
20765 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
20766
20767 2002-04-10 Richard M. Stallman <rms@gnu.org>
20768
20769 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
20770
20771 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
20772
20773 * minibuf.c (read_minibuf): Use empty_string.
20774 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
20775 Short-circuit the search as soon as it "failed".
20776 (Fall_completions): Allow lambda forms and lists of strings for alist.
20777 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
20778 when require_match is nil.
20779 (Ftest_completion): Rename from `test_completion' and export to elisp.
20780 Call the predicate also when alist is a list.
20781 Obey Vcompletion_regexp_list.
20782 (do_completion, Fminibuffer_complete_and_exit): Use it.
20783 (Fassoc_string): Rename from `assoc_for_completion'.
20784 Allow list of strings as well and export to elisp.
20785
20786 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
20787
20788 * puresize.h (BASE_PURESIZE): Increase to 900KB.
20789
20790 2002-04-08 Juanma Barranquero <lektu@terra.es>
20791
20792 * w32.c (sys_accept): Don't hide variable `s'.
20793
20794 2002-04-05 Gerd Moellmann <gerd@gnu.org>
20795
20796 * callint.c (Fcall_interactively): Use INTEGERP instead of
20797 NUMBERP for checking Vhistory_length.
20798
20799 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20800
20801 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
20802 Doc fix to reflect it.
20803
20804 2002-04-04 Richard M. Stallman <rms@gnu.org>
20805
20806 * xdisp.c (display_mode_element): New arg RISKY.
20807 Disregard text props found or specified within a variable
20808 that isn't marked risky-local-variable.
20809 (Qrisky_local_variable): New variable.
20810 (syms_of_xdisp): Init and staticpro it.
20811
20812 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
20813
20814 * undo.c (record_point): New fun.
20815 (record_delete, record_insert): Use it.
20816
20817 2002-04-03 Juanma Barranquero <lektu@terra.es>
20818
20819 * doc.c (Fdocumentation): Add missing parentheses.
20820 (Fdocumentation_property): Likewise.
20821
20822 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
20823
20824 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
20825 data is 0, just return nil.
20826
20827 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
20828
20829 * msdos.c (syms_of_msdos): Fix last change with
20830 mouse_autoselect_window.
20831
20832 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20833
20834 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
20835 mouse_autoselect_window.
20836
20837 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
20838
20839 * keyboard.c (make_lispy_event): Handle unknown keysyms together
20840 with system-specific keysyms. Use it also for unknown function keys.
20841
20842 * doc.c (reread_doc_file): Return whether reload was attempted.
20843 (Fdocumentation, Fdocumentation_property): Don't try to reload
20844 if the doc is 0 and only ask once.
20845
20846 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
20847
20848 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
20849
20850 * keyboard.c (read_char): If the event was Qselect_window,
20851 restore timer_idleness_start_time to its previous value.
20852
20853 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
20854
20855 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
20856
20857 * region-cache.c (new_region_cache): Use BEG.
20858
20859 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
20860 Use BEG and BEG_BYTE.
20861
20862 * doc.c (get_doc_string): Return nil if the location is wrong.
20863 (reread_doc_file): New fun.
20864 (Fdocumentation, Fdocumentation_property):
20865 Call it if get_doc_string fails.
20866 (Fsnarf_documentation): Make it work for a dumped Emacs.
20867
20868 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
20869 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
20870
20871 * charset.c (Fstring): Allow 0 arguments.
20872
20873 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
20874
20875 * process.c (DATAGRAM_CONN_P, list_processes_1)
20876 (Fprocess_datagram_address, Fset_process_datagram_address)
20877 (Fset_network_process_options, server_accept_connection):
20878 Fix some int/Lisp_Object confusions (thank you union types).
20879
20880 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20881
20882 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
20883
20884 * w32term.c: Likewise.
20885 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
20886
20887 * keyboard.c (Qselect_window): New symbol.
20888 (head_table): Use it.
20889 (keys_of_keyboard): Bound select-window event to handle-select-window.
20890 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
20891
20892 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
20893 (last_window): New variable.
20894 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
20895 (note_mouse_movement): Remove reimplemented code in #if 0.
20896 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
20897 Emacs windows.
20898
20899 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
20900
20901 2002-03-31 Gerd Moellmann <gerd@gnu.org>
20902
20903 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
20904 Callers changed.
20905
20906 2002-03-30 Richard M. Stallman <rms@gnu.org>
20907
20908 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
20909 loop whenever it stops making progress.
20910
20911 * widget.c (set_frame_size): Don't call change_frame_size.
20912
20913 2002-03-30 Gerd Moellmann <gerd@gnu.org>
20914
20915 * dispnew.c (direct_output_for_insert):
20916 Call mark_window_display_accurate.
20917
20918 2002-03-29 Jason Rumney <jasonr@gnu.org>
20919
20920 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
20921
20922 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
20923
20924 * Makefile.in (lread.o): Depend on coding.h.
20925
20926 * lread.c (openp, Fload): Encode the file name before passing it
20927 to `stat', `access', and `emacs_open'.
20928 (openp): GCPRO the encoded file name. Don't recompute Lisp
20929 strings unnecessarily.
20930
20931 2002-03-29 Kim F. Storm <storm@cua.dk>
20932
20933 * fns.c (Flax_plist_put): Doc fix.
20934
20935 2002-03-28 Miles Bader <miles@gnu.org>
20936
20937 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
20938
20939 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20940
20941 * process.c (set-network-process-options): Add usage.
20942 (make-network-process): Doc fix.
20943
20944 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
20945
20946 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
20947
20948 2002-03-26 Richard M. Stallman <rms@gnu.org>
20949
20950 * fns.c (Fsubstring_no_properties): New function.
20951 (Flax_plist_get, Flax_plist_put): New functions.
20952 (syms_of_fns): defsubr them.
20953
20954 * xdisp.c (update_menu_bar): Test only update_mode_lines;
20955 don't test or alter w->update_mode_line.
20956
20957 * window.c (Fdisplay_buffer): Doc fix.
20958
20959 2002-03-24 Richard M. Stallman <rms@gnu.org>
20960
20961 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
20962
20963 2002-03-24 Gerd Moellmann <gerd@gnu.org>
20964
20965 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
20966 (Fdefmacro): Handle `(declare ...)'.
20967 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
20968 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
20969
20970 2002-03-24 Jason Rumney <jasonr@gnu.org>
20971
20972 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
20973 (xbm_file_p): Add prototypes.
20974 (xbm_format, xbm_image_p): Sync with xfns.c.
20975 (reflect_byte): New function.
20976 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
20977 (xbm_load_image): Create bitmaps with a depth of 1.
20978 (init_xfns): Enable XBM images.
20979
20980 2002-03-23 Jason Rumney <jasonr@gnu.org>
20981
20982 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
20983 correctly. Do not pass up_modifier to keyboard buffer.
20984
20985 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
20986
20987 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
20988
20989 * Makefile.in (bootstrapclean): New target.
20990 (bootstrap-temacs, bootstrap-doc): Remove.
20991 (bootstrap-emacs): Use a bog-standard `temacs'.
20992 Don't bother to build a DOC file.
20993
20994 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
20995
20996 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
20997 in temacs even if !CANNOT_DUMP.
20998 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
20999
21000 * alloc.c (check_pure_size): Only output a warning.
21001
21002 2002-03-22 Jason Rumney <jasonr@gnu.org>
21003
21004 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
21005 supported.
21006
21007 * w32term.c (zv_bits): Declare as short, for word alignment.
21008 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
21009 (syms_of_w32term): Define x-use-underline-position-properties.
21010
21011 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
21012 (clear_image_cache): Block input, fix logic, clear matrices in
21013 all frames that share this cache.
21014
21015 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
21016
21017 * emacs.c (main): Update the Copyright year in the blurb printed
21018 by "emacs --version".
21019
21020 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
21021
21022 * xterm.c (XTread_socket): If XK_ISO_Lock and
21023 XK_ISO_Last_Group_Lock are defined, handle keysyms between
21024 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
21025
21026 2002-03-21 Kim F. Storm <storm@cua.dk>
21027
21028 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
21029 menu-bar bindings in keymap and local-map properties _are_ used.
21030 But try keymap property first in accordance with 2002-01-03 patch.
21031 Added comment describing why this is not always reliable.
21032 (tool_bar_items): Ditto for tool-bar.
21033
21034 2002-03-21 Jason Rumney <jasonr@gnu.org>
21035
21036 * w32fns.c (x_clear_image_1): Disable color table code.
21037
21038 2002-03-21 Kim F. Storm <storm@cua.dk>
21039
21040 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
21041 removed the wrong version of the DEFUN macro; fixed it.
21042
21043 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
21044 Fmember rather than Fmemq).
21045 (Fprovide): Check that subfeatures is a list.
21046
21047 * process.c (QCfeature, QCdatagram): Removed variables.
21048 (QCtype, Qdatagram): New variables.
21049 (network_process_featurep): Removed function.
21050 (Fmake_network_process): Removed :feature check.
21051 Use :type 'datagram instead of :datagram t to create a datagram
21052 socket. This allows us to add other connection types (e.g. raw
21053 sockets) later in a consistent manner.
21054 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
21055 supported subfeatures for feature make-network-process.
21056 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
21057 Intern and staticpro QCtype and Qdatagram.
21058 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
21059
21060 * xfns.c (QCtype): Remove duplicate declaration and
21061 initialization (is now declared in process.c).
21062
21063 * w32fns.c (QCtype): Remove duplicate declaration and
21064 initialization (is now declared in process.c).
21065
21066 2002-03-21 Richard M. Stallman <rms@gnu.org>
21067
21068 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
21069 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
21070 when jumping to `fail' to avoid undoing reg changes in the
21071 last iteration of the loop.
21072 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
21073
21074 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
21075 Depend on process.h.
21076
21077 2002-03-20 Jason Rumney <jasonr@gnu.org>
21078
21079 Most of the following changes are still conditional on HAVE_IMAGES
21080 which is not set by default on Windows.
21081
21082 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
21083
21084 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
21085 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
21086 (four_corners_best, x_clear_image_1, x_clear_image)
21087 (x_alloc_image_color, postprocess_image)
21088 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
21089 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
21090 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
21091
21092 * w32gui.h (struct XImage): Define.
21093
21094 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
21095 extract mouse co-ordinates.
21096
21097 2002-03-20 Jason Rumney <jasonr@gnu.org>
21098
21099 * w32.c (init_winsock): Dynamically load new server and UDP
21100 socket functions.
21101 (socket_to_fd): New function.
21102 (sys_socket): Use it.
21103 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
21104 (sys_recvfrom, sys_sendto): New wrapper functions.
21105
21106 * process.c (QCfamily, QCfilter): Remove duplicate declaration
21107 and initialization.
21108
21109 * makefile.w32-in (LIBS): Remove $(WSOCK32).
21110
21111 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
21112
21113 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
21114 Don't use "sun" as a variable, it's a predefined constant on Sun
21115 machines.
21116
21117 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21118
21119 * bytecode.c (Fbyte_code): Revert last change.
21120
21121 2002-03-19 Kim F. Storm <storm@cua.dk>
21122
21123 * makefile.w32-in (LIBS): Add $(WSOCK32).
21124 From David Ponce <dponce@voila.fr>.
21125
21126 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21127
21128 * process.c (wait_reading_process_input): Move variables `pname'
21129 and `pnamelen' down where they are used.
21130
21131 * bytecode.c (Fbyte_code): Discard unused computed value to
21132 prevent gcc warning.
21133
21134 * lisp.h (Fplist_member): Add prototype.
21135
21136 2002-03-18 Kim F. Storm <storm@cua.dk>
21137
21138 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
21139 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
21140
21141 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
21142 Remove explicit GNU_LINUX settings for datagram support.
21143
21144 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21145
21146 * process.c (Fmake_network_process): Remove unused variable `sa'.
21147 Doc fix. Add usage:.
21148 (set_socket_options): Remove unused variables `optnum' and `opttype'.
21149
21150 2002-03-17 Richard M. Stallman <rms@gnu.org>
21151
21152 * xdisp.c (cursor_type_changed): New variable.
21153 (redisplay_internal): Redisplay all windows if cursor_type_changed.
21154 Clear it when clearing windows_or_buffers_changed.
21155 (try_cursor_movement, redisplay_window, try_window_id)
21156 (try_window_reusing_current_matrix): Test cursor_type_changed
21157 along with windows_or_buffers_changed.
21158
21159 * window.h (cursor_type_changed): New variable.
21160
21161 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
21162 not update_mode_lines, and always set it to 1.
21163
21164 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
21165 if no frames needed redrawing.
21166
21167 2002-03-17 Kim F. Storm <storm@cua.dk>
21168
21169 The following changes add support for network server processes,
21170 datagram connections, and local (unix) sockets.
21171
21172 * process.h (struct Lisp_Process): New member log.
21173 Doc fix: Member command used to indicate stopped network process.
21174 Doc fix: Member childp contains plist for network process.
21175 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
21176
21177 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
21178 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
21179 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
21180 New variables.
21181 (NETCONN1_P): New macro.
21182 (DATAGRAM_SOCKETS): New conditional symbol.
21183 (datagram_address): New array.
21184 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
21185 (status_message): Use concat3.
21186 (Fprocess_status): Add `listen' status to doc string. Return `stop'
21187 for a stopped network process.
21188 (Fset_process_buffer): Update contact plist for network process.
21189 (Fset_process_filter): Ditto. Don't enable input for stopped
21190 network processes. Server must listen, even if filter is t.
21191 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
21192 New functions.
21193 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
21194 (Fprocess_contact): Added KEY argument. Handle datagrams.
21195 (list_processes_1): Optionally show only processes with the query
21196 on exit flag set. Dynamically adjust column widths. Omit tty
21197 column if not needed. Report stopped network processes.
21198 Identify server and datagram network processes.
21199 (Flist_processes): New optional arg `query-only'.
21200 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
21201 (conv_lisp_to_sockaddr, set_socket_options)
21202 (network_process_featurep, unwind_request_sigio): New helper functions.
21203 (Fprocess_datagram_address, Fset_process_datagram_address):
21204 (Fset_network_process_options): New lisp functions.
21205 (Fopen_network_stream): Removed. Now defined in simple.el.
21206 (Fmake_network_process): New lisp function. Code is based on previous
21207 Fopen_network_stream, but heavily reworked with new property list based
21208 argument list, support for datagrams, server processes, and local
21209 sockets in addition to old client-only functionality.
21210 (server_accept_connection): New function.
21211 (wait_reading_process_input): Use it to handle incoming connects.
21212 Do not enable input on a new connection if process is stopped.
21213 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
21214 (send_process): Handle datagram sockets.
21215 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
21216 network process is indicated by setting command field to t .
21217 (Fprocess_send_eof): No-op if datagram connection.
21218 (Fstatus_notify): Don't read input for a stream server socket or a
21219 stopped network process.
21220 (init_process): Initialize datagram_address array.
21221 (syms_of_process): Intern and staticpro new variables, defsubr new
21222 functions.
21223
21224 2002-03-16 Jason Rumney <jasonr@gnu.org>
21225
21226 * w32fns.c (w32_to_all_x_charsets): Return correct type in
21227 startup case.
21228
21229 2002-03-16 Richard M. Stallman <rms@gnu.org>
21230
21231 * xdisp.c (redisplay_internal, redisplay_windows):
21232 Use list_of_error to call internal_condition_case_1.
21233 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
21234 so as to catch all errors with no possibility of debugger redisplay.
21235 (list_of_error): New variable.
21236 (syms_of_xdisp): Init and staticpro it.
21237
21238 * print.c (print_object): Delete `\ ' from printed rep of frame.
21239
21240 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
21241
21242 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
21243 until its implementation is fixed.
21244
21245 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21246
21247 * xfns.c (png_load): Remove unused variable `gamma_str'.
21248
21249 2002-03-14 Richard M. Stallman <rms@gnu.org>
21250
21251 * xfns.c (x_real_positions): Handle failure in XQueryTree.
21252
21253 2002-03-14 Miles Bader <miles@gnu.org>
21254
21255 * intervals.c (adjust_for_invis_intang): New function.
21256 (set_point_both): Use `adjust_for_invis_intang' to do most of the
21257 work for dealing with invisible+intangible regions. Do so before
21258 and after both forward and backward movements, to handle both
21259 front-sticky and rear-sticky cases.
21260 * textprop.c (text_property_stickiness): Function moved here from
21261 `editfns.c'.
21262 * intervals.h (text_property_stickiness): New declaration.
21263 * editfns.c (char_property_eq): Function removed.
21264 (text_property_stickiness): Function moved to `textprop.c'.
21265
21266 2002-03-13 Jason Rumney <jasonr@gnu.org>
21267
21268 * config.in: Add STRFTIME_NO_POSIX2.
21269
21270 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
21271 and %OX when underlying strftime does not.
21272
21273 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
21274
21275 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
21276 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
21277 line) to avoid annoying flicker.
21278 (xm_scroll_callback): Get rid of the now unnecessary kludge.
21279 (XTread_socket): Mark it static.
21280
21281 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
21282
21283 2002-03-13 Kim F. Storm <storm@cua.dk>
21284
21285 * puresize.h (BASE_PURESIZE): Increase to 775000.
21286
21287 2002-03-12 Juanma Barranquero <lektu@terra.es>
21288
21289 * editfns.c (syms_of_editfns): Fix typo.
21290
21291 2002-03-12 Gerd Moellmann <gerd@gnu.org>
21292
21293 * xsmfns.c: Include stdio.h because termhooks.h needs it.
21294 Include termopt.h for interrupt_input.
21295
21296 2002-03-11 Andreas Schwab <schwab@suse.de>
21297
21298 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
21299
21300 2002-03-11 Gerd Moellmann <gerd@gnu.org>
21301
21302 * xterm.c (note_mouse_movement): Put code for
21303 x_autoselect_window_p in #if 0.
21304
21305 * lread.c (Fload): Don't assume that message_with_string uses the
21306 string it is given like a C string.
21307
21308 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21309
21310 * xterm.h (x_session_check_input, x_session_initialize): Declare.
21311
21312 * xterm.c (XTread_socket): Add call to x_session_check_input and
21313 x_session_have_connection.
21314 (x_initialize): Add call to x_session_initialize.
21315
21316 * termhooks.h (enum event_kind): Add save_session_event.
21317
21318 * keyboard.c: Add Emacs event save_session_event.
21319
21320 * emacs.c (main): Add call to syms_of_xsmfns.
21321
21322 * lisp.h (syms_of_xsmfns): Declare extern.
21323
21324 * config.in: Add HAVE_X_SM.
21325
21326 * Makefile.in (LIBXT): Add -lSM -lICE
21327 if HAVE_X_SM and not USE_X_TOOLKIT.
21328 (XOBJ): New file xsmfns.c added.
21329
21330 * xsmfns.c: New file for X session management.
21331
21332 2002-03-09 Jason Rumney <jasonr@gnu.org>
21333
21334 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
21335 read-only when setting modified time.
21336
21337 2002-03-08 Gerd Moellmann <gerd@gnu.org>
21338
21339 * xdisp.c (move_it_vertically_backward): At the end of the function,
21340 when moving forward by lines, treat terminal frames specially.
21341
21342 * keyboard.c (echo_char): Make sure to add a separator between
21343 keys even if echo_dash hasn't been called.
21344
21345 * xdisp.c: Use new string macros.
21346 (update_echo_area): Pass number of bytes to message3 instead of
21347 number of chars.
21348 (set_message_1): Don't access a string's size_byte directly.
21349 (decode_mode_spec_coding): Use number of bytes of eoltype string
21350 instead number of chars.
21351
21352 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
21353
21354 2002-03-08 Juanma Barranquero <lektu@terra.es>
21355
21356 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
21357 24-bit.
21358
21359 2002-03-06 Jason Rumney <jasonr@gnu.org>
21360
21361 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
21362
21363 2002-03-06 Gerd Moellmann <gerd@gnu.org>
21364
21365 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
21366 (cancel_echoing, echo_length, echo_truncate): Changed to
21367 work with new kboard definition.
21368 (echo_now): Use message3_nolog instead of message2_nolog.
21369
21370 * alloc.c (mark_kboards): Mark echo_string.
21371
21372 * keyboard.h (ECHOBUFSIZE): Removed.
21373 (struct kboard): Member echoptr removed, member echobuf renamed
21374 to echo_string.
21375
21376 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
21377 message3 instead of message2 to display the message using STRING's
21378 text properties.
21379
21380 2002-03-05 Andreas Schwab <schwab@suse.de>
21381
21382 * xdisp.c (hscroll_margin): Change to EMACS_INT.
21383
21384 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
21385
21386 * frame.c (default-frame-alist): Explain that setting it doesn't
21387 affect existing frames.
21388
21389 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
21390
21391 * indent.c (skip_invisible): Fix my brain fart.
21392
21393 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
21394
21395 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
21396
21397 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
21398 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
21399 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
21400 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
21401 and variables to use EMACS_INT instead of just int.
21402
21403 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
21404
21405 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
21406
21407 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
21408 environment, pass it down with corrected value.
21409
21410 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21411
21412 * lread.c (read_filtered_event): Do not call start_hourglass
21413 before returning.
21414
21415 2002-03-04 Juanma Barranquero <lektu@terra.es>
21416
21417 * w32term.c (x_display_and_set_cursor): Fix typo.
21418
21419 2002-03-03 Richard M. Stallman <rms@gnu.org>
21420
21421 * fileio.c (Fmake_temp_name): Doc fix.
21422
21423 2002-03-03 Gary Wong <gtw@gnu.org>
21424
21425 * termcap.c [!emacs]: Replace ospeed for building standalone
21426 libtermcap, for binary compatibility.
21427
21428 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
21429
21430 2002-03-03 Richard M. Stallman <rms@gnu.org>
21431
21432 * xrdb.c (file_p): Rename arg `path' to `filename'.
21433
21434 * abbrev.c (Fexpand_abbrev): Increment plist as use count
21435 only if it is an integer.
21436
21437 * xfns.c (png_load): Set screen_gamma based on f->gamma.
21438 If png_get_sRGB gives an answer, call png_set_gamma
21439 using the default image gamma value.
21440
21441 * lread.c (read1): When reading from a file, default string to
21442 multibyte only if it has some multibyte characters.
21443
21444 * print.c (print_object): Output multibyte chars 128...255
21445 using \x even if ! print_escape_multibyte.
21446
21447 * xdisp.c (display_mode_element): Move the places where
21448 bytepos, charpos, this, and lisp_string are set.
21449 Use lisp_string to set bytepos.
21450
21451 * xdisp.c (redisplay_internal):
21452 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
21453
21454 * xdisp.c (display_mode_element): Merge properties specified with
21455 :propertize onto those that come with the string.
21456
21457 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
21458
21459 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
21460 automatic-hscrolling. Users changed.
21461 <hscroll-margin>: Renamed from automatic-hscroll-margin.
21462 Users changed.
21463 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
21464
21465 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
21466
21467 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
21468
21469 2002-03-02 Kim F. Storm <storm@cua.dk>
21470
21471 * window.c (Fminibuffer_selected_window): New function.
21472 (syms_of_window): Defsubr it.
21473
21474 2002-03-01 Kim F. Storm <storm@cua.dk>
21475
21476 * window.h (struct window): New member phys_cursor_width.
21477
21478 * window.c (make_window, replace_window): Init phys_cursor_width.
21479
21480 * xterm.c (x_display_and_set_cursor): Blink box cursor using
21481 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
21482
21483 * w32term.c (x_display_and_set_cursor): Blink box cursor using
21484 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
21485
21486 * lisp.h (GCPRO6): New macro.
21487
21488 * process.c (Fopen_network_stream): Use GCPRO6.
21489
21490 2002-03-01 Kim F. Storm <storm@cua.dk>
21491
21492 * process.c (Qconnect, Qfailed): New variables.
21493 (syms_of_process): Intern and staticpro them.
21494 (Fprocess_status): Document connect and failed return values.
21495 [NON_BLOCKING_CONNECT]: New conditional.
21496 (connect_wait_mask, num_pending_connects): New variables.
21497 (status_message): Convert Qfailed status.
21498 (Fopen_network_stream): Added support for non-blocking connect.
21499 New optional args: filter, sentinel, non_blocking. Doc updated.
21500 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
21501 (deactivate_process): Handle pending non-blocking connect.
21502 (wait_reading_process_input): Poll for status of non-blocking
21503 connects. Exec sentinel directly when connect succeeds.
21504 (status_notify): Don't read process output if not yet connected.
21505
21506 2002-02-28 Kim F. Storm <storm@cua.dk>
21507
21508 * window.c (minibuf_selected_window): Renamed from
21509 Vminibuf_selected_window. Users changed.
21510 (syms_of_window): Staticpro it.
21511
21512 2002-02-26 Kim F. Storm <storm@cua.dk>
21513
21514 The following changes add a new Vminibuf_selected_window variable
21515 which is similar to Vminibuf_scroll_window, but which is only set
21516 on entry to the minibuffer (from a non-minibuffer window):
21517
21518 * window.c (Vminibuf_selected_window): New variable.
21519 (struct save_window_data): New member minibuf_selected_window.
21520 (Fset_window_configuration): Restore Vminibuf_selected_window.
21521 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
21522 Set minibuf_scroll_window member to nil if minibuf_level is 0.
21523 (compare_window_configurations): Compare minibuf_selected_window.
21524
21525 * window.h (Vminibuf_selected_window): Declare extern.
21526
21527 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
21528 entry to minibuffer or on entry from a non-minibuffer window.
21529
21530 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
21531 Vminibuf_selected_window instead of Vminibuf_scroll_window.
21532
21533 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
21534 instead of Vminibuf_scroll_window when deciding in which window
21535 the region should be highlighted. Consequently, the region remains
21536 highlighteded even when a completion buffer is also displayed.
21537
21538 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
21539
21540 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
21541
21542 * xselect.c (Qcompound_text_with_extensions): Renamed from
21543 Qcompound_text_no_extensions.
21544 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
21545
21546 2002-02-26 Juanma Barranquero <lektu@terra.es>
21547
21548 * w32proc.c (syms_of_ntproc): Doc fix.
21549
21550 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21551
21552 * intervals.h: Include "dispextern.h" unconditionally.
21553
21554 2002-02-24 Jason Rumney <jasonr@gnu.org>
21555
21556 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
21557 and disp-table.elc.
21558 (lisp): Add emacs-lisp/backquote.elc.
21559
21560 2002-02-24 Kim F. Storm <storm@cua.dk>
21561
21562 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
21563 The validation of the event type was too strict as it didn't
21564 allow string events; buffer names are used in bindings for
21565 menu-bar-select-buffer (see `menu-bar-update-buffers').
21566
21567 2002-02-23 Kim F. Storm <storm@cua.dk>
21568
21569 The following changes rework my patch of 2002-02-06 which
21570 added command remapping by entering the commands directly into
21571 the keymaps. Now, command remapping uses an explicit `remap'
21572 prefix in the keymaps, i.e. [remap COMMAND].
21573
21574 * keymap.c (Qremap, remap_command_vector): New variables.
21575 (is_command_symbol): Remove function.
21576 (Fdefine_key): No longer accept a symbol for KEY.
21577 Added validation of [remap COMMAND] argument for KEY.
21578 The DEF is no longer required to be a symbol when remapping a command.
21579 (Fremap_command): New function to remap command through keymaps.
21580 (Flookup_key): Perform command remapping initiated by
21581 Fremap_command directly for speed.
21582 (Fkey_binding): Use Fremap_command for command remapping.
21583 (where_is_internal): Handle new command remapping representation.
21584 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
21585 staticpro them. Defsubr Fremap_command.
21586
21587 * keymap.h (Fremap_command): Declare extern.
21588 (is_command_symbol): Remove extern.
21589
21590 * keyboard.c (command_loop_1): Use Fremap_command for command
21591 remapping; now try command remapping for all symbols.
21592
21593 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
21594
21595 * coding.h (run_pre_post_conversion_on_str): Add prototype.
21596
21597 2002-02-23 Jason Rumney <jasonr@gnu.org>
21598
21599 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
21600 on the string before encoding it.
21601 (Fw32_get_clipboard_data): Run post-read-conversion on the string
21602 after decoding it.
21603
21604 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
21605
21606 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21607
21608 * w32term.c (enter_timestamp): Remove unused static variable to
21609 prevent warning.
21610
21611 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
21612
21613 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
21614
21615 * w16select.c (Fw16_get_clipboard_data): Fix last change.
21616
21617 * xselect.c (selection_data_to_lisp_data): Fix last change.
21618
21619 2002-02-22 Jason Rumney <jasonr@gnu.org>
21620
21621 * w32term.h (struct w32_output): New member menu_command_in_progress.
21622
21623 * w32menu.c (menubar_selection_callback): Free the menu and
21624 clear the menu_command_in_progress flag.
21625
21626 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
21627 (menu_free_timer): New variable.
21628 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
21629 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
21630 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
21631 menu command is in progress.
21632 <WM_COMMAND>: Set the menu_command_in_progress flag.
21633 Kill any menu_free_timer that is running.
21634
21635 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
21636 Call ExtTextOutA rather than ExtTextOut.
21637
21638 2002-02-22 Eli Zaretskii <eliz@gnu.org>
21639
21640 * puresize.h (BASE_PURESIZE): Increase to 755000.
21641
21642 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
21643
21644 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
21645 on the string before encoding it.
21646 (Fw16_get_clipboard_data): Run post-read-conversion on the string
21647 after decoding it.
21648
21649 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
21650
21651 Support for ICCCM Extended Segments in X selections:
21652
21653 * xselect.c <Qcompound_text_no_extensions>: New variable.
21654 (syms_of_xselect): Intern and staticpro it.
21655 (selection_data_to_lisp_data): Run post-read-conversion on decoded
21656 selection text.
21657 (lisp_data_to_selection_data): If next-selection-coding-system is
21658 compound-text-no-extensions, set the type of selection to be
21659 compound-text.
21660
21661 * xterm.h (x_encode_text): Update prototype.
21662
21663 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
21664 callers changed. If SELECTIONP is non-zero, run the
21665 pre-write-conversion function before encoding the selection text.
21666
21667 2002-02-21 Kim F. Storm <storm@cua.dk>
21668
21669 * frame.c (syms_of_frame): Change mouse-highlight default to t.
21670
21671 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
21672 Correct composing of language-change event.
21673
21674 2002-02-20 Kim F. Storm <storm@cua.dk>
21675
21676 * keyboard.c (menu_bar_items): Don't include keymap or local-map
21677 bindings at PT when building menu (the menu is not updated often
21678 enough for this to work reliable).
21679 (tool_bar_items): Likewise.
21680 (current_active_maps): Removed unused (and buggy) function.
21681
21682 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21683
21684 * xfns.c (gif_load): Use correct width and height for GIF images.
21685
21686 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
21687
21688 * floatfns.c (Fatan): Accept an optional second arg and call
21689 atan2 if passed 2 args.
21690
21691 2002-02-18 Jason Rumney <jasonr@gnu.org>
21692
21693 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
21694
21695 2002-02-17 Jason Rumney <jasonr@gnu.org>
21696
21697 * w32term.c (x_autoselect_window_p): New variable.
21698 (syms_of_w32term): DEFVAR_BOOL and initialize it.
21699 (note_mouse_movement): Use it.
21700
21701 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
21702
21703 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
21704
21705 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
21706 New variables.
21707 (syms_of_w32fns): Intern and staticpro them.
21708 (x_frame_parms) <"fullscreen">: New parameter.
21709 (x_fullscreen_move, x_set_fullscreen): New functions.
21710 (x_set_frame_parameters): Support Qfullscreen.
21711 (x_real_positions): Save x/y_pixels_diff frame params.
21712 (x_figure_window_size): Support full-screen frames.
21713 (Fx_create_frame): Default the fullscreen parameter.
21714
21715 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
21716 (x_fullscreen_adjust): New functions.
21717 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
21718 fullscreen. Call x_check_fullscreen_move, and set the
21719 want_fullscreen member of output_data.w32
21720 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
21721
21722 * w32term.h: New enum for FULLSCREEN_* constants.
21723 (struct w32_output): New members want_fullscreen, x_pixels_diff,
21724 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
21725 (x-fullscreen-adjust): New prototype.
21726
21727 2002-02-17 Kim F. Storm <storm@cua.dk>
21728
21729 * frame.c (Vmouse_highlight): New variable.
21730 (syms_of_frame): DEFVAR_LISP it.
21731
21732 * frame.h (Vmouse_highlight): Declare extern.
21733
21734 * xterm.h (struct x_display_info): Add mouse_face_hidden.
21735
21736 * xterm.c (disable_mouse_highlight): Removed variable.
21737 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
21738 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
21739 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
21740 and on after keyboard input.
21741 (x_term_init): Initialize mouse_face_hidden.
21742
21743 * msdos.h (struct display_info): Add mouse_face_hidden.
21744
21745 * msdos.c (disable_mouse_highlight): Removed variable.
21746 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
21747 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
21748 (internal_terminal_init): Initialize mouse_face_hidden.
21749 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
21750 and on after keyboard input.
21751
21752 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
21753
21754 * w32term.c (disable_mouse_highlight): Removed variable.
21755 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
21756 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
21757 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
21758 and on after keyboard input.
21759 (w32_initialize_display_info): Initialize mouse_face_hidden.
21760
21761 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
21762
21763 * msdos.c (last_mouse_window): New variable.
21764 (dos_rawgetc): Fix last change--if the mouse is in the same window
21765 as recorded in last_mouse_window, don't select this window.
21766
21767 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
21768
21769 * msdos.c (x_autoselect_window_p): New variable.
21770 (syms_of_msdos): Defvar it.
21771 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
21772 which the last mouse movement occured, unless it is already selected.
21773
21774 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
21775 New variables.
21776 (syms_of_xdisp): DEVFAR them.
21777 (hscroll_window_tree): Use automatic_hscroll_margin and
21778 Vautomatic_hscroll_step to compute the amount of window scrolling.
21779
21780 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21781
21782 * xterm.c (x-autoselect-window): New variable.
21783 (note_mouse_movement): Use it.
21784
21785 * keyboard.c: Do not include "systime.h" twice.
21786
21787 2002-02-15 Andreas Schwab <schwab@suse.de>
21788
21789 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
21790
21791 * alloc.c (NSTATICS): Increase to 1280.
21792
21793 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
21794
21795 * alloc.c (NSTATICS): Bump to 1026.
21796
21797 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
21798 (Vx_super_keysym): New variables.
21799 (syms_of_xterm): DEFVAR_LISP them.
21800 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
21801 variables to determine which keys to use for the various modifiers.
21802
21803 2002-02-13 Kim F. Storm <storm@cua.dk>
21804
21805 * window.c (Vmode_line_in_non_selected_windows): Removed.
21806 (mode_line_in_non_selected_windows): New variable.
21807 (syms_of_window): DEFVAR_BOOL it.
21808
21809 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
21810 Use mode_line_in_non_selected_windows.
21811 (mode_line_in_non_selected_windows): Declare extern.
21812 (Vmode_line_in_non_selected_windows): Removed extern.
21813
21814 2002-02-13 Richard M. Stallman <rms@gnu.org>
21815
21816 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
21817 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
21818 (Fclear_this_command_keys): Doc fixes.
21819
21820 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
21821 (update_face_from_frame_parameter): Increment face_change_count
21822 and windows_or_buffers_changed to force redisplay using changed faces.
21823
21824 * xdisp.c (QCpropertize): New variable.
21825 (mode_line_proptrans_alist): New variable.
21826 (display_mode_element): New arg PROPS; all calls changed.
21827 Implement this, for strings.
21828 Handle literal output of strings by sharing the
21829 main-line code for strings, using local var `literal'.
21830 Handle :propertize feature.
21831 (syms_of_xdisp): Initialze and staticpro QCpropertize and
21832 mode_line_proptrans_alist.
21833
21834 2002-02-11 Kim F. Storm <storm@cua.dk>
21835
21836 * window.c (Vmode_line_in_non_selected_windows): New variable.
21837 (syms_of_window): DEFVAR_LISP it.
21838
21839 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
21840 (CURRENT_MODE_LINE_FACE_ID): Use it.
21841 (Vmode_line_in_non_selected_windows): Declare extern.
21842
21843 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
21844 to get mode line face.
21845
21846 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
21847
21848 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
21849 variables; cus-start.el doesn't need them anymore.
21850
21851 2002-02-09 Kim F. Storm <storm@cua.dk>
21852
21853 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
21854 reduction. This fixes a display problem where stray newlines were
21855 inserted in the window (corrected by C-l). Clarified code (IMHO).
21856
21857 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
21858
21859 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
21860
21861 * xdisp.c (display_mode_lines): Fix last change.
21862
21863 2002-02-09 Jason Rumney <jasonr@gnu.org>
21864
21865 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
21866 match each other.
21867 (w32_load_system_font): Prevent Cleartype fonts from loading.
21868 (Fx_show_tip): Ensure tip frames are above other topmost windows.
21869
21870 2002-02-09 Kim F. Storm <storm@cua.dk>
21871
21872 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
21873 (CURRENT_MODE_LINE_HEIGHT): Use it.
21874 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
21875
21876 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
21877 (pos_visible_p, handle_face_prop): Likewise.
21878 (display_mode_lines): Likewise, but for the real selected window.
21879 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
21880
21881 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
21882 in non-selected windows.
21883 (realize_basic_faces): Realize it.
21884 (syms_of_term): Intern and staticpro it.
21885
21886 2002-02-08 Kim F. Storm <storm@cua.dk>
21887
21888 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
21889 Changed mail addresses to emacs-devel@gnu.org.
21890
21891 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
21892
21893 * fileio.c (Fsubstitute_in_file_name): If the file name includes
21894 ~user, and there's no such user, don't discard everything before ~user.
21895
21896 * floatfns.c (Fround): Doc fix.
21897
21898 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21899
21900 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
21901
21902 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
21903
21904 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
21905
21906 2002-02-07 Kim F. Storm <storm@cua.dk>
21907
21908 * keymap.c (where_is_internal): Only check whether definition is
21909 remapped if it fulfills is_command_symbol.
21910
21911 2002-02-07 Andreas Schwab <schwab@suse.de>
21912
21913 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
21914
21915 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
21916
21917 2002-02-06 Kim F. Storm <storm@cua.dk>
21918
21919 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
21920 defining command remapping. Doc updated.
21921 (Flookup_key): Remap command through keymap if KEY is a symbol.
21922 (is_command_symbol): New function.
21923 (Fkey_binding): Use it. New optional argument NO-REMAP.
21924 Doc updated. Callers changed. Perform command remapping via
21925 recursive call unless that arg is non-nil.
21926 (where_is_internal): New argument no_remap. Callers changed.
21927 Call recursively to find original key bindings for a remapped
21928 comand unless that arg is non-nil.
21929 (Fwhere_is_internal): New optional argument NO-REMAP.
21930 Doc updated. Callers changed. Pass arg to where_is_internal.
21931
21932 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
21933 (is_command_symbol): Add prototype.
21934
21935 * keyboard.c (Vthis_original_command): New variable.
21936 (syms_of_keyboard): DEFVAR_LISP it.
21937 (command_loop_1): Set it, and perform command remapping.
21938
21939 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21940
21941 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
21942
21943 2002-02-06 Jason Rumney <jasonr@gnu.org>
21944
21945 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
21946
21947 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
21948
21949 * charset.c (get_charset_id): Use if-else instead of ?:.
21950
21951 2002-02-06 Richard M. Stallman <rms@gnu.org>
21952
21953 * filelock.c (S_ISLNK): Define if not defined.
21954
21955 2002-02-03 Richard M. Stallman <rms@gnu.org>
21956
21957 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
21958
21959 * lread.c (read1): Redesign strategy for force_multibyte and
21960 force_singlebyte. Now is_multibyte records whether read_buffer
21961 is multibyte. Encountering any multibyte character makes it so.
21962
21963 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
21964
21965 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
21966 with the same sequence, map that sequence to f10 rather than f0.
21967
21968 2002-02-03 Andreas Schwab <schwab@suse.de>
21969
21970 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
21971 latter never being defined on GNU/Linux.
21972
21973 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
21974
21975 * xfaces.c (realize_default_face): Don't set the weight and slant of
21976 the default face to Qnormal, unless these attributes are unspecified.
21977
21978 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21979
21980 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
21981 Call cancel_hourglass unconditionally.
21982
21983 * eval.c (Fsignal): Remove duplicated declaration of
21984 the variable `display_hourglass_p'.
21985
21986 2002-01-31 Richard M. Stallman <rms@gnu.org>
21987
21988 * editfns.c (region_limit): Nicer error message.
21989
21990 * coding.c (decode_composition_emacs_mule):
21991 Give up if NCOMPONENT gets too large to index `component'.
21992
21993 * callint.c (check_mark): New arg to specify clearer error message.
21994 Callers changed.
21995
21996 2002-01-27 Richard M. Stallman <rms@gnu.org>
21997
21998 * minibuf.c (Fcompleting_read): Doc fix.
21999
22000 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22001
22002 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
22003 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
22004 Fix doc-strings.
22005
22006 2002-01-26 Richard M. Stallman <rms@gnu.org>
22007
22008 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
22009
22010 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
22011 and scroll_up_aggressively.
22012
22013 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22014
22015 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
22016
22017 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
22018
22019 * textprop.c (Fnext_property_change, Fnext_single_property_change)
22020 (Fprevious_property_change, Fprevious_single_property_change):
22021 Stay within the narrowed-buffer boundaries.
22022
22023 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
22024
22025 * term.c (Ftty_display_color_cells): New function.
22026 (syms_of_term): Defsubr it.
22027 (Ftty_display_color_cells, Ftty_display_color_p): Change the
22028 argument name to DISPLAY. Doc fix.
22029
22030 * dispextern.h: Add prototype for set_tty_color_mode and
22031 tty_setup_colors.
22032
22033 2002-01-24 Jason Rumney <jasonr@gnu.org>
22034
22035 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
22036 If region left to draw is not what was expected, mark the frame as
22037 garbaged.
22038
22039 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
22040 Combine the regions returned by BeginPaint and GetUpdateRect.
22041
22042 2002-01-23 Jason Rumney <jasonr@gnu.org>
22043
22044 * w32term.c (x_update_window_begin): Only hide caret if
22045 w32_use_visible_system_caret is set.
22046 (x_update_window_end): Only show caret if
22047 w32_use_visible_system_caret is set.
22048 (syms_of_w32term): Handle SystemParametersInfo call failing.
22049
22050 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
22051
22052 2002-01-22 Richard M. Stallman <rms@gnu.org>
22053
22054 * unexelf.c (unexec): Define n so as to cause compilation error
22055 for the code where people have often written n instead of nn.
22056
22057 * .gdbinit (hookpost-run): Defined.
22058
22059 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22060
22061 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
22062
22063 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22064
22065 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
22066 if fullscreen is being set.
22067
22068 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22069
22070 * minibuf.c (Fminibuffer_contents)
22071 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
22072 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
22073
22074 2002-01-21 Richard M. Stallman <rms@gnu.org>
22075
22076 * window.c (check_frame_size): Fix minimum height calculation.
22077
22078 2002-01-20 Ken Raeburn <raeburn@gnu.org>
22079
22080 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
22081 height before comparison.
22082 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
22083
22084 2002-01-20 Jason Rumney <jasonr@gnu.org>
22085
22086 * w32term.c (w32_system_caret_width): Remove.
22087 (w32_use_visible_system_caret): New user flag.
22088 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
22089 Windows reports a screen reader running.
22090 (x_update_window_begin): Hide the system caret.
22091 (x_update_window_end): Show the system caret.
22092 (x_display_and_set_cursor): Don't draw a cursor when
22093 w32_use_visible_system_caret is set. Do not adjust width.
22094
22095 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
22096 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
22097 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
22098 the user requests it. Use system default width when creating.
22099 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
22100
22101 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
22102 New window messages.
22103
22104 2002-01-20 Richard M. Stallman <rms@gnu.org>
22105
22106 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
22107
22108 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22109
22110 * doprnt.c (doprnt1): Fix typos in error call.
22111
22112 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
22113
22114 * unexelf.c (unexec) [__sgi]: Support the .got sections.
22115
22116 2002-01-20 Jason Rumney <jasonr@gnu.org>
22117
22118 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
22119 that Windows returns. If a double check fails, try to guess how
22120 ExtTextOut is going to act.
22121
22122 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
22123 in place of stricmp.
22124 (w32_list_synthesized_fonts): Removed.
22125 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
22126 (struct enumfont_t): New element; list.
22127 (enum_font_cb2): List all style and charset variations of a font.
22128 (Fw32_select_font): New optional argument; include_proportional.
22129 Exclude vertical fonts. Exclude proportional fonts unless
22130 include_proportional is non-nil.
22131 (w32_enable_synthesized_fonts): Change to a boolean.
22132 (Fw32_send_sys_command): Doc fix.
22133
22134 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22135
22136 * dispnew.c (update_frame): Move the variable `tem' to the block
22137 where it is used.
22138
22139 2002-01-19 Jason Rumney <jasonr@gnu.org>
22140
22141 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
22142 call to face-set-after-frame-default.
22143
22144 2002-01-18 Richard M. Stallman <rms@gnu.org>
22145
22146 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
22147 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
22148
22149 2002-01-17 Richard M. Stallman <rms@gnu.org>
22150
22151 * window.c (enlarge_window): When exceeding size of parent,
22152 directly delete all the siblings instead of trying to resize it.
22153
22154 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22155
22156 * term.c (set_tty_color_mode): Remove unused variable `tem'.
22157
22158 2002-01-16 Henrik Enberg <henrik@enberg.org>
22159
22160 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
22161
22162 2002-01-16 Kim F. Storm <storm@cua.dk>
22163
22164 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
22165 is invisible. This can happen if cursor is on top line of a
22166 window, and we switch to a buffer with a header line.
22167
22168 * w32term.c (x_erase_phys_cursor): Ditto.
22169
22170 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22171
22172 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
22173 `dont_resize' only when used.
22174
22175 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
22176
22177 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
22178
22179 * xdisp.c (display_mode_element): When computing charpos, depend
22180 on multibyteness of elt, not the text in field.
22181
22182 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22183
22184 * buffer.c (Fkill_all_local_variables):
22185 Increment `update_mode_lines' only once.
22186
22187 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22188
22189 * lisp.h (adjust_after_replace_noundo)
22190 (Fupdate_coding_systems_internal): Add prototypes.
22191
22192 * sound.c (Fplay_sound): Initialize header_size also for :data case.
22193
22194 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
22195
22196 Support for the --color command-line argument and tty-color-mode
22197 frame parameter:
22198
22199 * term.c (tty_default_color_capabilities, tty_setup_colors)
22200 (set_tty_color_mode): New functions.
22201 (term_init): Call tty_default_color_capabilities.
22202 (Qtty_color_mode_alist): New variable.
22203 (syms_of_term): Intern and staticpro it.
22204
22205 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
22206 frames.
22207 (do_switch_frame): For termcap frames, switch the tty
22208 color mode as specified by the frame's parameters.
22209 (Qtty_color_mode): New variable.
22210 (syms_of_frame): Intern and staticpro it.
22211
22212 * emacs.c (USAGE2): Add the --color option.
22213 (standard_args): Ditto.
22214
22215 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22216
22217 * xterm.h (struct x_output): New members want_fullscreen,
22218 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
22219 y_pixels_outer_diff.
22220 New enum for FULLSCREEN_* constants.
22221 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
22222 is NULL.
22223 (x_fullscreen_adjust): Add prototype.
22224
22225 * emacs.c (USAGE2): Add the new full-screen arguments.
22226 (standard_args): Ditto.
22227
22228 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
22229 New variables.
22230 (syms_of_xfns): Intern and staticpro them.
22231 (x_frame_parms) <"fullscreen">: New parameter.
22232 (x_fullscreen_move, x_set_fullscreen): New functions.
22233 (x_set_frame_parameters): Support for Qfullscreen.
22234 (x_real_positions): More accurate computation of the frame position.
22235 (x_figure_window_size): Support full-screen frames.
22236 (Fx_create_frame): Default the fullscreen parameter.
22237
22238 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
22239 (XTread_socket) <Expose>: Call x_check_fullscreen.
22240 <ConfigureNotify>: Don't resize to fullscreen.
22241 Call x_check_fullscreen_move, and set the want_fullscreen member of
22242 output_data.x.
22243
22244 2002-01-13 Jason Rumney <jasonr@gnu.org>
22245
22246 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
22247 for mice with more than 3 buttons.
22248
22249 * w32term.c (parse_button): New parameter xbutton. Callers changed.
22250 (w32_read_socket): Handle new "XBUTTON" messages.
22251
22252 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
22253 (syms_of_w32fns): DEFVAR_BOOL it.
22254 (w32_wnd_proc): Handle new "XBUTTON" messages.
22255
22256 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22257
22258 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
22259
22260 2002-01-13 Andreas Schwab <schwab@suse.de>
22261
22262 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
22263
22264 2002-01-12 Andreas Schwab <schwab@suse.de>
22265
22266 * .gdbinit (xbuffer): Remove address operator since data is now a
22267 pointer.
22268
22269 2002-01-11 Richard M. Stallman <rms@gnu.org>
22270
22271 * insdel.c (adjust_after_replace_noundo): New function.
22272
22273 * coding.c (code_convert_region): Don't copy old text if undo disabled.
22274
22275 2002-01-09 Jason Rumney <jasonr@gnu.org>
22276
22277 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
22278 when checking for multiple frames.
22279
22280 2002-01-08 Richard M. Stallman <rms@gnu.org>
22281
22282 * window.c (delete_window): Rewrite the code for changing the
22283 selected window to handle the case where WINDOW is not a leaf.
22284
22285 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
22286
22287 * process.c (send_process): Set src_multibyte to 1 after the call
22288 top setup_coding_system, not before the call.
22289
22290 2002-01-07 Jason Rumney <jasonr@gnu.org>
22291
22292 * xmenu.c (set_frame_menubar, xmenu_show):
22293 (xdialog_show): Initialize wv->help to Qnil.
22294
22295 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
22296 (w32_dialog_show): Initialize wv->help to Qnil.
22297
22298 2002-01-06 Jason Rumney <jasonr@gnu.org>
22299
22300 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
22301
22302 * w32menu.c (w32_menu_display_help): Revert last change.
22303
22304 * xmenu.c (menu_highlight_callback): Revert last change.
22305
22306 2002-01-06 Andreas Schwab <schwab@suse.de>
22307
22308 * insdel.c (make_gap_larger): Make sure buffer size does not
22309 overflow range of int.
22310
22311 2002-01-05 Jason Rumney <jasonr@gnu.org>
22312
22313 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
22314 OVERLAPS_P.
22315
22316 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
22317
22318 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
22319 to the left or to the right of the pointer, put it against
22320 the left screen edge.
22321 (x_frame_parms): Add missing braces around initializer.
22322
22323 * w32term.c (x_setup_relief_colors): Don't compute an image's
22324 background color if it doesn't have a Pixmap.
22325 (notice_overwritten_cursor): Don't depend on
22326 output_cursor and updated_area. Compare pixel coordinates with
22327 window's cursor pixel coordinates.
22328 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
22329 Call notice_overwritten_cursor with new arg list.
22330 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
22331 unconditionally.
22332 (x_draw_image_relief): Use predefined macro instead of
22333 constant when the value of `tool_bar_button_relief' is negative.
22334
22335 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
22336
22337 2002-01-04 Richard M. Stallman <rms@gnu.org>
22338
22339 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
22340
22341 2002-01-03 Richard M. Stallman <rms@gnu.org>
22342
22343 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
22344 (Fkey_binding): Try the `keymap' property map first.
22345 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
22346 minor mode bindings.
22347
22348 2002-01-03 Kim F. Storm <storm@cua.dk>
22349
22350 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
22351
22352 2002-01-02 Richard M. Stallman <rms@gnu.org>
22353
22354 * keyboard.c (read_key_sequence): Handle the keymap property
22355 before minor mode maps.
22356
22357 * editfns.c (Fformat): Update thissize from field_width
22358 based on the actual width, in the string case.
22359
22360 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22361
22362 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
22363 when used as truth value to prevent gcc warnings.
22364
22365 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
22366 * w32proc.c: Include <config.h>.
22367
22368 2002-01-01 Andreas Schwab <schwab@suse.de>
22369
22370 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
22371 not EMACS_INT, to make them compatible with DEFVAR_INT.
22372 * lisp.h (max_specpdl_size): Adjust declaration.
22373
22374 2002-01-01 Richard M. Stallman <rms@gnu.org>
22375
22376 * print.c (print_object): Test print_escape_nonascii only for
22377 unibyte strings.
22378 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
22379 when outputting to a multibyte buffer.
22380
22381 2001-12-29 Richard M. Stallman <rms@gnu.org>
22382
22383 * print.c (print_object): In multibyte string, use hex escapes.
22384 Use octal only for unibyte strings.
22385 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
22386
22387 * lread.c (read_escape): New arg BYTEREP for reporting whether
22388 escape forces unibyte or multibyte.
22389 (read1): When reading a string, take note of that info.
22390
22391 2001-12-29 Ken Raeburn <raeburn@gnu.org>
22392
22393 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
22394 comparison to test lisp value returned by Fget.
22395
22396 2001-12-29 Richard M. Stallman <rms@gnu.org>
22397
22398 * lisp.h (max_specpdl_size): Add declaration.
22399
22400 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
22401
22402 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
22403 Handle modifier bits. Correct typo in error message.
22404
22405 2001-12-28 Richard M. Stallman <rms@gnu.org>
22406
22407 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
22408 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
22409 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22410 Update calls to Fdefine_abbrev.
22411 (write_abbrev): Update for changed data format.
22412 Don't list "system" abbrevs.
22413 (Fexpand_abbrev): Update use count with new data format.
22414 (describe_abbrev): Update for changed data format.
22415 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
22416
22417 * config.in (HAVE_MBSINIT): Add #undef.
22418
22419 * strftime.c (mbsinit): Define as no-op if not available.
22420
22421 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
22422 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
22423
22424 * keymap.c (Flookup_key): Error message if key has wrong data type.
22425 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
22426 (exclude_key): New variable.
22427
22428 2001-12-28 Gerd Moellmann <gerd@gnu.org>
22429
22430 * xterm.c (x_setup_relief_colors): Don't compute an image's
22431 background color if it doesn't have a Pixmap.
22432
22433 * xterm.c (notice_overwritten_cursor): Don't depend on
22434 output_cursor and updated_area. Compare pixel coordinates with
22435 window's cursor pixel coordinates.
22436 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
22437 Call notice_overwritten_cursor with new arg list.
22438 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
22439 unconditionally.
22440
22441 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
22442 height of the cursor line to the amount to scroll.
22443
22444 2001-12-27 Richard M. Stallman <rms@gnu.org>
22445
22446 * intervals.c (set_point_both): The position after an invisible,
22447 intangible character is not an acceptable stopping point.
22448
22449 2001-12-27 Ken Raeburn <raeburn@gnu.org>
22450
22451 * window.c (enlarge_window): In new preserve_before code, convert
22452 CURBEG from lisp object to integer before doing arithmetic.
22453
22454 2001-12-27 Richard M. Stallman <rms@gnu.org>
22455
22456 * bytecode.c (Fbyte_code): Undo previous change.
22457
22458 2001-12-26 Kim F. Storm <storm@cua.dk>
22459
22460 * keyboard.c (record_char): Ignore duplicate help-echo events only
22461 separated by mouse-movement. When tracking mouse, only record
22462 first and last mouse-movement event in same window.
22463 Don't record mouse-movement events in keyboard macros.
22464
22465 2001-12-25 Richard M. Stallman <rms@gnu.org>
22466
22467 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
22468 (Fenlarge_window): New arg PRESERVE_BEFORE.
22469
22470 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
22471 instead of Fstring_as_unibyte.
22472
22473 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22474
22475 The following changes remove mocklisp support:
22476
22477 * mocklisp.h, mocklisp.c: Files removed.
22478
22479 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
22480 `Qmocklisp' and `Qmocklisp_arguments'.
22481 Remove prototype of syms_of_mocklisp.
22482
22483 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
22484
22485 * callint.c: Do not include mocklisp.h.
22486 (Fcall_interactively): Do not test for mocklisp case.
22487
22488 * eval.c: Remove variables `Qmocklisp_arguments',
22489 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
22490 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
22491 Do not test for mocklisp case.
22492 (Fwhile): Remove unused variable `tem'.
22493 (syms_of_eval): Remove variable `moclisp-arguments'.
22494
22495 * data.c (wrong_type_argument): Remove mocklisp case.
22496
22497 * doc.c (Fdocumentation): Remove mocklisp case.
22498
22499 * emacs.c (main): Do not call syms_of_mocklisp.
22500
22501 2001-12-21 Richard M. Stallman <rms@gnu.org>
22502
22503 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
22504 to the left or to the right of the pointer, put it against
22505 the left screen edge.
22506
22507 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
22508
22509 * Makefile.in (distclean): Remove .gdbinit if we are building
22510 outside the source tree.
22511
22512 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
22513
22514 * w32.c (emacs_root_dir): New function.
22515
22516 * msdos.c (emacs_root_dir): New function.
22517
22518 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
22519 of the current drive as the fallback for default_directory.
22520
22521 * dired.c (file_name_completion): Run the elements of
22522 completion-ignored-extensions through ENCODE_FILE.
22523
22524 * lisp.h (scmp): Remove prototype, since it's now a static
22525 function private to dired.c.
22526
22527 2001-12-18 Richard M. Stallman <rms@gnu.org>
22528
22529 * dired.c (scmp): Function moved from minibuf.c.
22530 Delete multibyte handling--used only on encoded strings.
22531
22532 * minibuf.c (scmp): Function moved to dired.c.
22533
22534 * fns.c (merge): Add QUIT call.
22535
22536 2001-12-18 Dave Love <fx@gnu.org>
22537
22538 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
22539 language/georgian.el.
22540
22541 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
22542
22543 * Makefile.in (lisp, shortlisp): Synchronize with changes to
22544 lisp/Makefile.in:DONTCOMPILE.
22545
22546 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22547
22548 * xdisp.c (window_box_height): Do not return negative values.
22549 From Gerd Moellmann <gerd@gnu.org>.
22550
22551 * keyboard.c (head_table): Add missing braces around initializer.
22552
22553 * term.c (keys): Likewise.
22554
22555 * xfns.c (x_frame_parms, visual_classes): Likewise.
22556
22557 2001-12-17 Sam Steingold <sds@gnu.org>
22558
22559 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
22560 patch (COMPOSING_P, not COMPOSING).
22561
22562 2001-12-17 Richard M. Stallman <rms@gnu.org>
22563
22564 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
22565
22566 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
22567 before calling decode_coding.
22568
22569 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
22570
22571 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
22572 instead of only for COMPOSITION_DISABLED.
22573
22574 2001-12-16 Richard M. Stallman <rms@gnu.org>
22575
22576 * alloc.c (pure_alloc): After overflow, allocate just a small block.
22577
22578 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
22579
22580 * buffer.h (struct buffer): New field `display_error_modiff'.
22581 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
22582
22583 * window.c (Frecenter): Clear display_error_modiff field.
22584
22585 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
22586 Call redisplay_window, but not if display_error_modiff field says no.
22587 (redisplay_window_error): New function.
22588 (displayed_buffer): New variable.
22589 (redisplay_internal, redisplay_windows): Call the new functions
22590 instead of redisplay_window directly.
22591
22592 2001-12-15 Richard M. Stallman <rms@gnu.org>
22593
22594 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
22595
22596 2001-12-14 Andrew Innes <andrewi@gnu.org>
22597
22598 * makefile.w32-in (EMACSLOADPATH): Define.
22599 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
22600 (bootstrap-temacs): Remove dependency on bootstrap-clean.
22601
22602 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
22603
22604 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
22605 parameter have a numeric value all the time.
22606
22607 * w32fns.c (x_report_frame_params): Likewise.
22608
22609 2001-12-12 Richard M. Stallman <rms@gnu.org>
22610
22611 * fileio.c (Fwrite_region): Doc fix.
22612
22613 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
22614 (redisplay_internal): Call clear_image_cache only for window terminals.
22615
22616 2001-12-12 Gerd Moellmann <gerd@gnu.org>
22617
22618 * xdisp.c (move_it_vertically_backward): Change heuristic
22619 for the case that we didn't move far enough initially.
22620
22621 * window.c (Frecenter): Simplify computation in the case of window
22622 system frames and ARG < 0; use window_box_height.
22623
22624 2001-12-11 Richard M. Stallman <rms@gnu.org>
22625
22626 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
22627 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
22628
22629 2001-12-11 Andrew Innes <andrewi@gnu.org>
22630
22631 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
22632 arg is negative.
22633
22634 2001-12-11 Richard M. Stallman <rms@gnu.org>
22635
22636 * m/hp800.h: Split the __hpux conditional into the parts
22637 that are right for GNU/Linux too and the parts that are not.
22638 Use the former if GNU_LINUX.
22639 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
22640
22641 * s/gnu-linux.h (GNU_LINUX): Defined.
22642
22643 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22644
22645 * macros.c, msdos.c, w16select.c: Change doc-string comments to
22646 `new style' [w/`doc:' keyword].
22647
22648 2001-12-10 Jason Rumney <jasonr@gnu.org>
22649
22650 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
22651 before using.
22652
22653 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22654
22655 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
22656 keyword].
22657
22658 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
22659
22660 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
22661
22662 * s/hpux10.h (srand48): Don't undefine.
22663
22664 2001-12-09 Jason Rumney <jasonr@gnu.org>
22665
22666 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
22667 Add comment to explain where the struct came from.
22668 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
22669 (add_menu_item): Process pop-up menus first to avoid memory leak.
22670 (add_menu_item, w32_menu_display_help): Use `help' field as
22671 Lisp_Object.
22672 (w32_free_submenu_strings): Only free owner-drawn strings.
22673
22674 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22675
22676 * COPYING: Moved back.
22677
22678 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
22679 Add parentheses around && within ||.
22680
22681 * indent.c (compute_motion): Likewise.
22682
22683 * intervals.c (merge_properties_sticky): Likewise.
22684
22685 * coding.c (setup_coding_system, shrink_encoding_region)
22686 (Fdecode_sjis_char): Likewise.
22687
22688 2001-12-07 Andreas Schwab <schwab@suse.de>
22689
22690 * xdisp.c (display_mode_element): Don't read past end of string if
22691 it ends with '%'.
22692
22693 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
22694 can hold.
22695
22696 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
22697 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
22698 type changed to Lisp_Object.
22699 (syms_of_data): DEFVAR_LISP them.
22700
22701 2001-12-07 Richard M. Stallman <rms@gnu.org>
22702
22703 * callproc.c (init_callproc): Set Vdata_directory based on the source
22704 location whenever Emacs was run uninstalled.
22705
22706 2001-12-06 Paul Eggert <eggert@twinsun.com>
22707
22708 * config.in (HAVE_WORKING_VFORK): New #undefs.
22709 * process.c (create_process):
22710 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
22711 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
22712 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
22713 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
22714 * m/intel386.h (HAVE_VFORK): Likewise.
22715 * m/mips-siemens.h (HAVE_VFORK): Likewise.
22716 * m/mips.h (HAVE_VFORK): Likewise.
22717 * s/freebsd.h (vfork): Remove #define.
22718 * s/lynxos.h (HAVE_VFORK): Remove #undef.
22719 * s/usg5-4-2.h: Fix comment about vfork.
22720
22721 2001-12-06 Richard M. Stallman <rms@gnu.org>
22722
22723 * s/hpux10.h (random): Add undef.
22724 (HAVE_RANDOM): Define it just once.
22725
22726 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
22727
22728 * eval.c: Undo last change: the standard syntax is not wanted.
22729
22730 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
22731
22732 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
22733 scroll bars of the frame before deleting the frame itself. If the
22734 frame has a widget, delete the frame with XtDestroyWidget, and do
22735 not call XDestroyWindow before that.
22736
22737 2001-12-06 Kim F. Storm <storm@cua.dk>
22738
22739 * xfns.c (x_report_frame_params): Return actual fringe widths.
22740
22741 * w32fns.c (x_report_frame_params): Return actual fringe widths.
22742
22743 2001-12-05 Andrew Innes <andrewi@gnu.org>
22744
22745 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
22746 excessively large.
22747
22748 * insdel.c (make_gap_larger): New function.
22749 (make_gap_smaller): New function.
22750 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
22751 Call make_gap_smaller if arg is negative.
22752
22753 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
22754
22755 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
22756 Pass a dummy argument when calling interrupt_signal.
22757 (parse_menu_item): Mark disabled items before checking for empty def.
22758 (read_char_minibuf_menu_prompt): Make safety more visible.
22759 (read_key_sequence): Add a `first_unbound' variable.
22760 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
22761 unbound prefix as soon as we can detect it.
22762
22763 * doc.c (Fsnarf_documentation): Add prototype.
22764 (get_doc_string): Handle negative arguments.
22765 (Fdocumentation): Use AREF and ASIZE.
22766 Move the calls to get_doc_string to a single place.
22767 Don't confuse an interactive-spec for a docstring reference.
22768 (Fdocumentation_property): Take advantage of the fact that
22769 get_doc_string now ignores the sign of the docstring position.
22770
22771 * eval.c: Use standard syntax for usage in docstrings.
22772
22773 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22774
22775 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
22776
22777 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22778
22779 * xterm.c (x_draw_image_relief): Use predefined macro instead of
22780 constant when the value of `tool_bar_button_relief' is negative.
22781
22782 2001-12-02 Richard M. Stallman <rms@gnu.org>
22783
22784 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
22785 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
22786
22787 * fileio.c (read_non_regular): Delete Fsignal call.
22788
22789 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
22790
22791 * lisp.h (run_hook_list_with_args): Undo last change.
22792
22793 2001-12-01 Gerd Moellmann <gerd@gnu.org>
22794
22795 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
22796
22797 2001-12-01 Jason Rumney <jasonr@gnu.org>
22798
22799 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
22800
22801 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
22802 [!WM_MOUSELEAVE]: Define.
22803
22804 * w32menu.c (current_popup_menu, get_menu_item_info):
22805 (set_menu_item_info): New vars.
22806 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
22807 (w32_menu_show): Set current_popup_menu.
22808 (add_menu_item): Allocate new strings for owner-drawn menu items
22809 and help strings.
22810 Use owner-draw for disabled menu items again.
22811 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
22812 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
22813
22814 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
22815 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
22816 <WM_EXITMENULOOP>: Free menu strings.
22817 <WM_MOUSELEAVE>: Stop tracking mouse.
22818 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
22819
22820 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
22821 and mouse face.
22822
22823 2001-12-01 Kim F. Storm <storm@cua.dk>
22824
22825 The following changes add left-fringe and right-fringe
22826 frame parameters to adjust fringe widths, or remove one or
22827 both fringes.
22828
22829 * frame.h (struct frame): Remove trunc_area_pixel_width and
22830 trunc_area_cols fields.
22831 (Qleft_fringe, Qright_fringe): Declare.
22832 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
22833
22834 * frame.c (Qleft_fringe, Qright_fringe): New vars.
22835 (syms_of_frame): Initialize them.
22836
22837 * window.c (coordinates_in_window): Handle separate left and right
22838 fringe widths.
22839
22840 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
22841 and fringe_cols fields.
22842 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
22843 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
22844 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
22845 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
22846 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
22847 (x_compute_fringe_widths): Add prototype.
22848
22849 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
22850 fill fringe evenly with small dashes.
22851 (x_draw_fringe_bitmap): Clear background if necessary. Align and
22852 clip the new ZV bitmap to avoid jitter between rows.
22853 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
22854 background. Don't draw fringe bitmaps if fringe width is zero.
22855 (x_compute_fringe_widths): New function.
22856 (x_new_font, x_set_window_size_1): Use it.
22857
22858 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
22859 (x_set_frame_parameters): Process `font' parameter before other
22860 parameters as fringe widths depend on it.
22861 (x_set_fringe_width): New function.
22862 (x_figure_window_size): Use x_compute_fringe_widths.
22863 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
22864 parameters.
22865
22866 * widget.c (set_frame_size): Use x_compute_fringe_widths.
22867 (EmacsFrameSetCharSize): Ditto.
22868
22869 * w32term.h: Merged changes from xterm.h.
22870 * w32term.c: Merged changes from xterm.c.
22871 * w32fns.c: Merged changes from xfns.c.
22872
22873 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22874
22875 * COPYING: Removed.
22876
22877 2001-11-29 Dave Love <fx@gnu.org>
22878
22879 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
22880 extra extra slot.
22881 (detect_coding_mask): Fix call of detect_coding_iso2022.
22882
22883 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22884
22885 * fileio.c (file-name-coding-system)
22886 (default-file-name-coding-system): Doc fix (links to referenced
22887 variables added).
22888
22889 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
22890
22891 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
22892 Add dummy uses of gcproN variables.
22893
22894 * category.c (describe_category, describe_category_1)
22895 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
22896 (syms_of_category): Don't defsubr Sdescribe_categories.
22897
22898 2001-11-28 Richard M. Stallman <rms@gnu.org>
22899
22900 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
22901
22902 * Makefile.in (lispdir): New variable, referring to build dir.
22903 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
22904
22905 2001-11-28 Andrew Innes <andrewi@gnu.org>
22906
22907 * w32menu.c (w32_menu_display_help): Actually add the new argument
22908 OWNER.
22909
22910 2001-11-28 Jason Rumney <jasonr@gnu.org>
22911
22912 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
22913 menu items. From David Ponce <dponce@wanadoo.fr>.
22914 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
22915 conditionally.
22916 (w32_menu_display_help): New argument OWNER. Rewritten to store a
22917 help event in the owner frame's keyboard buffer.
22918
22919 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
22920 (Fx_show_tip): Don't subtract last width from row width.
22921
22922 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
22923 (w32_read_socket): Use EQ to compare frames.
22924
22925 2001-11-28 Gerd Moellmann <gerd@gnu.org>
22926
22927 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
22928 OVERLAPS_P.
22929
22930 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22931
22932 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
22933 `gcpro3' and `gcpro4'.
22934
22935 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
22936
22937 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
22938
22939 * ccl.c: Use AREF and ASIZE.
22940
22941 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
22942
22943 * lisp.h (run_hook_list_with_args): Remove.
22944 (LIST_END_P): Fix call to wrong_type_argument.
22945 (make_fixnum_or_float): Use EMACS_INT rather than int.
22946
22947 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
22948
22949 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
22950 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
22951
22952 * eval.c: Use AREF and ASIZE.
22953 (Ffetch_bytecode): Add the file name to the error message.
22954
22955 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
22956 which match the end of the file-name.
22957 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
22958 is not a valid env var, but leave it as is instead.
22959
22960 * keymap.c (access_keymap): Handle t bindings like nil bindings.
22961 Make nil bindings in char-tables transparent.
22962 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
22963
22964 2001-11-26 Richard M. Stallman <rms@gnu.org>
22965
22966 * textprop.c (set_text_properties_1): Allow START, END in either order.
22967 Do nothing if range is empty.
22968
22969 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
22970
22971 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
22972 (clean): Not here.
22973
22974 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
22975
22976 * textprop.c (set_text_properties_1): Clearly mark that the
22977 interval should not be empty.
22978
22979 * intervals.c (graft_intervals_into_buffer):
22980 Don't call set_text_properties_1 on an empty interval.
22981
22982 2001-11-25 Richard M. Stallman <rms@gnu.org>
22983
22984 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
22985
22986 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
22987 don't lose the data in it.
22988
22989 2001-11-25 Juanma Barranquero <lektu@terra.es>
22990
22991 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
22992
22993 * buffer.c (Fkill_buffer): Likewise.
22994
22995 * print.c (temp_output_buffer_setup): Likewise.
22996
22997 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
22998
22999 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
23000
23001 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
23002
23003 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
23004 Niemitalo <kon@iki.fi>.
23005
23006 2001-11-25 Jason Rumney <jasonr@gnu.org>
23007
23008 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
23009
23010 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
23011 (Fx_show_tip): Block input during frame creation.
23012 (Fx_show_tip, Fx_hide_tip): Enable.
23013
23014 2001-11-24 Richard M. Stallman <rms@gnu.org>
23015
23016 * lread.c (Fload): Detect recursive load error for more than 3
23017 nestings of the same file.
23018 (Vrecursive_load_depth_limit): Variable deleted.
23019 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
23020
23021 2001-11-24 Jason Rumney <jasonr@gnu.org>
23022
23023 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
23024 mouse position if either left or top is not specified.
23025
23026 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
23027 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
23028 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
23029 (my_create_tip_window): Assign tip_window.
23030 (x_create_tip_frame): Use same defaults as X.
23031 (compute_tip_xy): Remove unused variable. Use full screen width.
23032 (Fx_show_tip): Do not double height. Call ShowWindow directly.
23033
23034 * w32term.c (x_after_update_window_line): Doc fix.
23035 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
23036 frames.
23037 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
23038
23039 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
23040 for all Windowed systems.
23041
23042 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
23043
23044 * msdos.c (IT_clear_screen): If the frame's faces are not yet
23045 realized, use the initial screen colors to clear the screen.
23046
23047 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23048
23049 * textprop.c (Fset_text_properties): Remove unused variables
23050 `unchanged', `prev_changed', `s' and `len'.
23051
23052 * search.c (Freplace_match): Remove unused variable `inslen'.
23053
23054 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
23055
23056 2001-11-22 Jason Rumney <jasonr@gnu.org>
23057
23058 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
23059 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
23060 (my_create_tip_window): New function.
23061 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
23062 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
23063
23064 2001-11-20 Jason Rumney <jasonr@gnu.org>
23065
23066 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
23067 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
23068
23069 * w32fns.c (Vw32_system_coding_system): Remove.
23070 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
23071
23072 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
23073
23074 * fileio.c (Fwrite_region): Move choose_write_coding_system to
23075 after build_annotations.
23076
23077 * syntax.c (describe_syntax): Add dummy arg.
23078 (describe_syntax_1): Update call to describe_vector.
23079
23080 * category.c (describe_category): Add dummy arg.
23081 (describe_category_1): Update call to describe_vector.
23082
23083 * keymap.c (Fdescribe_vector): Add `describer' parameter.
23084 (describe_command, describe_translation): Add dummy second param.
23085 (describe_map): Call elt_describer with two arguments.
23086 (describe_vector_princ): Add `fun' parameter.
23087 Call it instead of the hardcoded `princ'.
23088 (describe_vector): Add arg `args'.
23089 Pass it as a new second argument to elt_describer.
23090
23091 * keymap.h (describe_vector): Update prototype.
23092
23093 * frame.c: Don't include keymap.h any more.
23094 (keys_of_frame): Remove.
23095
23096 * lisp.h (keys_of_frame): Remove declaration.
23097
23098 * emacs.c (main): Don't call `keys_of_frame' any more.
23099
23100 2001-11-14 Andreas Schwab <schwab@suse.de>
23101
23102 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
23103 if defined, 0 otherwise.
23104 (MAP_FAILED): Define if not defined and use it to test mmap failure.
23105 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
23106
23107 2001-11-19 Richard M. Stallman <rms@gnu.org>
23108
23109 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
23110
23111 2001-11-18 Jason Rumney <jasonr@gnu.org>
23112
23113 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
23114 (x_draw_bar_cursor): If the background color of the glyph under
23115 the cursor equals the frame's cursor color, use the glyph's
23116 foreground color for drawing the bar cursor.
23117 (x_after_update_window_line): Clear internal border in different
23118 circumstances.
23119 (w32_set_vertical_scroll_bar): Check for width and height > 0.
23120 (w32_draw_relief_rect): Correct relief by 1 pixel.
23121 (x_set_glyph_string_background_width):
23122 Set extends_to_end_of_line_p if the row's fill_line_p is set and
23123 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
23124 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
23125 if cursor_in_non_selected_windows is false.
23126 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
23127 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
23128 Notice if cursor gets overwritten.
23129 (notice_overwritten_cursor): Renamed from
23130 note_overwritten_text_cursor. Rewritten to take glyph widths
23131 into account, and to take X positions as parameters.
23132 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
23133 around call to x_draw_glyphs.
23134 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
23135 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
23136 color to use for image glyph reliefs.
23137 (x_draw_image_relief): Accept zero tool_bar_button_relief.
23138 (glyph_rect): Remove unused variable `area'.
23139
23140 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
23141 some items.
23142 (x_set_internal_border_width): Set frame garbaged when window
23143 doesn't exist yet.
23144 (Fx_create_frame): Accept zero tool_bar_button_relief.
23145 (x_clear_image_1, four_corners_best, image_background)
23146 (image_background_transparent): New functions.
23147 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
23148 (gs_format): Add `:background' entry.
23149 (lookup_image): Set IMG's background color if specified.
23150 (pbm_load, xbm_load_image, png_load): Set IMG's background field
23151 when appropriate.
23152 (x_clear_image_1): Reset `background_valid' and
23153 `background_transparent_valid' fields.
23154 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
23155 calculating it here. Set IMG's background_transparent field.
23156 (enum xpm_keyword_index): Add XPM_BACKGROUND.
23157 (enum png_keyword_index): Add PNG_BACKGROUND.
23158 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
23159 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
23160 (enum gif_keyword_index): Add GIF_BACKGROUND.
23161 (enum gs_keyword_index): Add GS_BACKGROUND.
23162 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
23163 Pre-calculate image background color where necessary.
23164 (x_create_x_image_and_pixmap, xbm_load, gs_load):
23165 Use display info's n_cbits entry for screen depth.
23166 (Fx_show_tip): Remove unused variables `buffer', `top',
23167 `left', `max_width' and `max_height'.
23168
23169 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
23170
23171 2001-11-18 Gerd Moellmann <gerd@gnu.org>
23172
23173 * puresize.h (BASE_PURESIZE): Increase to 750000.
23174
23175 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23176
23177 * frame.c (Fframe_live_p): Doc fix.
23178
23179 2001-11-18 Richard M. Stallman <rms@gnu.org>
23180
23181 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
23182 (message_dolog_marker3): New static variables hold three markers.
23183 (syms_of_xdisp): Initialize and staticpro them.
23184 (message_dolog): Use message_dolog_marker1..3 instead of
23185 allocating markers each time. Unchain them when done.
23186
23187 2001-11-17 Richard M. Stallman <rms@gnu.org>
23188
23189 * doc.c (Fsnarf_documentation): Doc fix.
23190
23191 2001-11-17 Andreas Schwab <schwab@suse.de>
23192
23193 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
23194
23195 2001-11-17 Richard M. Stallman <rms@gnu.org>
23196
23197 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
23198
23199 2001-11-17 Jason Rumney <jasonr@gnu.org>
23200
23201 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
23202
23203 2001-11-17 Gerd Moellmann <gerd@gnu.org>
23204
23205 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
23206 with invalid position.
23207
23208 2001-11-16 Richard M. Stallman <rms@gnu.org>
23209
23210 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
23211
23212 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
23213 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
23214 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
23215
23216 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
23217
23218 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
23219
23220 * fileio.c (build_annotations): Split off the tail.
23221 (build_annotations_2): New fun. Extracted from build_annotations.
23222 (Fwrite_region): Split the call to build_annotations into two
23223 calls to build_annotations and build_annotations_2.
23224
23225 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23226
23227 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
23228 clear_waiting_for_input with argument.
23229
23230 * xterm.h (x_update_cursor): Remove duplicated prototype.
23231
23232 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
23233
23234 * xterm.c (waiting_for_input): Remove unnecessary declaration.
23235
23236 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
23237
23238 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
23239
23240 * fileio.c (choose_write_coding_system): New fun, extracted
23241 from Fwrite_region.
23242 (Fwrite_region): Use it.
23243
23244 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
23245 (funcall_lambda, run_hook_with_args): Make static and add prototype.
23246 (ml_apply, find_handler_clause): Add prototype.
23247
23248 2001-11-16 Eli Zaretskii <eliz@gnu.org>
23249
23250 * config.in: Add #undef HAVE_COFF_H.
23251
23252 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
23253 Required for ISC 4.1.
23254
23255 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
23256
23257 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
23258 Andrew Wiseman <a.wiseman@btclick.com>.
23259
23260 2001-11-16 Kim F. Storm <storm@cua.dk>
23261
23262 The following changes are made to clean up the various internal
23263 references to the fringes to actually use the term `fringe' for
23264 them. Previously, they were called `flags areas', `bitmap areas',
23265 `left/right side of windows', or implicitly as `flags' or
23266 `bitmaps':
23267
23268 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
23269 Comments fixed. Use renamed symbols.
23270
23271 * dispnew.c: Comment fix. Use renamed symbols.
23272
23273 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
23274 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
23275 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
23276
23277 * msdos.c: Comment fix.
23278
23279 * w32fns.c: Use renamed symbols.
23280
23281 * w32term.c: Comment fixes. Use renamed symbols.
23282 (fringe_bitmap_type): Renamed from bitmap_type.
23283 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
23284 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
23285 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
23286
23287 * w32term.h: Comment fixes. Use renamed symbols.
23288 (fringes_extra): Renamed from flags_areas_extra.
23289 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
23290 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
23291 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
23292 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
23293 (FRAME_X_LEFT_FRINGE_WIDTH):
23294 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
23295 (FRAME_X_RIGHT_FRINGE_WIDTH):
23296 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
23297
23298 * widget.c: Use renamed symbols.
23299
23300 * window.c: Comment fixes. Use renamed symbols.
23301 (coordinates-in-window-p): Doc fix.
23302
23303 * xdisp.c: Comment fixes. Use renamed symbols.
23304
23305 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
23306
23307 * xfns.c: Use renamed symbols.
23308
23309 * xterm.c: Comment fixes. Use renamed symbols.
23310 (fringe_bitmap_type): Renamed from bitmap_type.
23311 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
23312 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
23313 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
23314
23315 * xterm.h: Comment fixes. Use renamed symbols.
23316 (fringes_extra): Renamed from flags_areas_extra.
23317 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
23318 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
23319 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
23320 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
23321 (FRAME_X_LEFT_FRINGE_WIDTH):
23322 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
23323 (FRAME_X_RIGHT_FRINGE_WIDTH):
23324 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
23325
23326 2001-11-15 Jason Rumney <jasonr@gnu.org>
23327
23328 * w32menu.c (add-menu-item): Make help_echo and radio buttons
23329 work for most menu items. From David Ponce
23330 <david.ponce@wanadoo.fr>.
23331
23332 2001-11-15 Gerd Moellmann <gerd@gnu.org>
23333
23334 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
23335 Some x_set_* function expect to be called even if old and new
23336 value are equal.
23337
23338 * xdisp.c (build_desired_tool_bar_string): Accept zero
23339 tool_bar_button_relief.
23340
23341 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
23342
23343 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
23344
23345 * xterm.c (x_draw_bar_cursor): If the background color of the
23346 glyph under the cursor equals the frame's cursor color, use
23347 the glyph's foreground color for drawing the bar cursor.
23348
23349 * dispnew.c (direct_output_forward_char): Fix character/byte
23350 position comparison.
23351
23352 2001-11-15 Miles Bader <miles@gnu.org>
23353
23354 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
23355 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
23356 Update arguments to find_field.
23357 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
23358 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
23359 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
23360 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
23361
23362 2001-11-14 Richard M. Stallman <rms@gnu.org>
23363
23364 * editfns.c (Fpropertize): Allow call with 1 arg.
23365
23366 * dispextern.h (image_background, image_background_transparent):
23367 Conditionalize on HAVE_X_WINDOWS.
23368
23369 2001-11-13 Richard M. Stallman <rms@gnu.org>
23370
23371 * print.c (Fprin1_to_string): Doc fix.
23372
23373 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
23374
23375 * floatfns.c (Fceiling, Ffloor): Doc fixes.
23376
23377 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
23378
23379 * fileio.c (Ffile_accessible_directory_p): Doc fix.
23380
23381 * eval.c (syms_of_eval): Doc fix.
23382
23383 * coding.c (syms_of_coding): Doc fix.
23384
23385 * doc.c (Fsnarf_documentation): Doc fix.
23386
23387 * dispnew.c (syms_of_display): Doc fix.
23388
23389 * category.c (Fget_unused_category): Doc fix.
23390
23391 * buffer.c (syms_of_buffer): Doc fixes.
23392
23393 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
23394
23395 * print.c (prin1, print): Doc fix.
23396
23397 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23398
23399 * fontset.h: Remove declarations of variables
23400 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
23401
23402 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
23403 `Vclip_large_size_font'.
23404
23405 2001-11-13 Jason Rumney <jasonr@gnu.org>
23406
23407 * w32fns.c: Doc fix.
23408
23409 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23410
23411 * xfaces.c (Fface_attributes_as_vector): Doc fix.
23412
23413 * fns.c: Doc fix.
23414
23415 * emacs.c: Doc fix.
23416
23417 * coding.c: Doc fix.
23418
23419 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
23420 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
23421 `new style' [w/`doc:' keyword].
23422
23423 2001-11-12 Richard M. Stallman <rms@gnu.org>
23424
23425 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
23426 LeaveNotify events. Only FocusIn and FocusOut do that now.
23427 (x_display_and_set_cursor): Do display hollow cursors in active
23428 minibuffer windows when they are not selected.
23429
23430 2001-11-12 Jason Rumney <jasonr@gnu.org>
23431
23432 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
23433 * w32term.c: Change doc-string comments to `new style'
23434 [w/`doc:' keyword]. Doc fixes.
23435
23436 * w32fns.c: Don't define max.
23437 (Fx_open_connection): Only execute once.
23438
23439 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23440
23441 * ccl.c: Change macros to use do-while block instead of if-else.
23442 Use braces to follow GNU Coding Standards.
23443
23444 2001-11-11 Richard M. Stallman <rms@gnu.org>
23445
23446 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
23447
23448 * lread.c (read_escape): Use end_of_file_error for reporting eof.
23449
23450 * insdel.c (replace_range): Use adjust_markers_for_replace
23451 instead of adjust_markers_for_delete and adjust_markers_for_insert.
23452
23453 * intervals.h (set_text_properties, set_text_properties_1): Declare.
23454
23455 * textprop.c (set_text_properties_1): New subroutine
23456 broken out of set_text_properties.
23457 (set_text_properties): Use set_text_properties_1.
23458
23459 * intervals.c (graft_intervals_into_buffer):
23460 Use set_text_properties_1 to clear out properties.
23461
23462 * search.c (Freplace_match): Use replace_range to insert
23463 and delete. Don't request property inheritance from
23464 surrounding text.
23465
23466 2001-11-10 Jason Rumney <jasonr@gnu.org>
23467
23468 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
23469 vertical fonts. Allow them if face name is explicitly specified.
23470 Do not give up if we find a font that cannot be converted to an xlfd.
23471
23472 2001-11-10 Gerd Moellmann <gerd@gnu.org>
23473
23474 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
23475 instead of malloc/free.
23476
23477 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23478
23479 * xfaces.c (merge_face_vectors): Use braces to follow GNU
23480 Coding Standards.
23481 (Finternal_set_lisp_face_attribute): Likewise.
23482
23483 * buffer.c (Fbury_buffer): Likewise.
23484
23485 * indent.c (current_column_1): Remove unused variable `prev_col'.
23486
23487 * coding.c (encode_coding): Use precomputed value of `src'.
23488 (encode_coding): Remove unused variable `src_end'.
23489 (code_convert_region): Remove unused variables `count'.
23490
23491 2001-11-07 Jason Rumney <jasonr@gnu.org>
23492
23493 * w32term.c (x_display_and_set_cursor): Do not move system caret
23494 if cursor_glyph is NULL.
23495
23496 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23497
23498 * keymap.c (access_keymap): Fix compilation error.
23499
23500 2001-11-07 Miles Bader <miles@gnu.org>
23501
23502 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
23503
23504 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23505
23506 * intervals.c (graft_intervals_into_buffer):
23507 Remove #ifdef'd-out code.
23508 (graft_intervals_into_buffer): Remove unused variable `middle'.
23509
23510 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
23511 code (eval-current-buffer).
23512 Change doc-string comments to `new style' [w/`doc:' keyword].
23513
23514 2001-11-06 Richard M. Stallman <rms@gnu.org>
23515
23516 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
23517
23518 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
23519
23520 * lread.c (read1): Fix behavior with nested backquoting.
23521
23522 * keyboard.c (make_lispy_event): Check integerness and fix
23523 Lisp_Object/int mixup.
23524
23525 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23526
23527 * fns.c (copy_hash_table): Remove unused variable `v'.
23528
23529 * fontset.c (fontset_font_pattern): Remove unused variable
23530 `family_registry'.
23531
23532 * indent.c (current_column_1): Remove unused variable `prev_col'.
23533
23534 2001-11-05 Richard M. Stallman <rms@gnu.org>
23535
23536 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
23537
23538 * buffer.c (Fkill_buffer): Don't delete auto save file
23539 if buffer is modified.
23540
23541 2001-11-05 Andrew Innes <andrewi@gnu.org>
23542
23543 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
23544 CHECK_NUMBER_CDR.
23545
23546 2001-11-05 Richard M. Stallman <rms@gnu.org>
23547
23548 * unexelf.c (unexec): Minor changes; clean up comments.
23549
23550 2001-11-05 Sam Steingold <sds@gnu.org>
23551
23552 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
23553
23554 2001-11-05 Andreas Schwab <schwab@suse.de>
23555
23556 * sound.c (sound_perror): Save errno from being clobbered.
23557
23558 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
23559
23560 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
23561 the program image directly.
23562
23563 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23564
23565 * buffer.h (Fbuffer_local_value): Add prototype.
23566
23567 2001-11-04 Richard M. Stallman <rms@gnu.org>
23568
23569 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
23570 and CHECK_BUFFER.
23571
23572 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
23573 (record_char): Likewise.
23574
23575 * keyboard.c (make_lispy_event): Don't insist a drag event must
23576 move to a different buffer position. Instead, check for moving at
23577 least double_click_fuzz.
23578
23579 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
23580
23581 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
23582
23583 * indent.c (current_column_1, Fmove_to_column): Separate the code
23584 for display-table glyphs from the code for buffer text, to fix
23585 bugs in the former.
23586
23587 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
23588
23589 * buffer.c (Fbuffer_local_value): New function.
23590 (syms_of_buffer): Defsubr it.
23591
23592 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
23593 value of `cursor-in-non-selected-windows'.
23594
23595 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
23596 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
23597 (syms_of_xdisp): Initialize it.
23598
23599 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23600
23601 * xfns.c (Fx_create_frame): Doc fix.
23602
23603 * coding.c: Change doc-string comments to `new style' [w/`doc:'
23604 keyword].
23605
23606 * eval.c (top_level_value, top_level_set): Remove commented and
23607 #ifdef'd-out code.
23608 (Fdefvar): Fix usage in doc-string.
23609
23610 2001-11-03 Richard M. Stallman <rms@gnu.org>
23611
23612 * xfns.c: Include unistd.h, if it exists.
23613
23614 * editfns.c: Move the include of ctype.h after unistd.h.
23615
23616 * gmalloc.c: Test BROKEN_PROTOTYPES.
23617
23618 2001-11-03 Ken Raeburn <raeburn@gnu.org>
23619
23620 * lisp.h (CHECK_STRING_CAR): New macro.
23621 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
23622 treating XCAR and XCDR as lvalues.
23623 (openp): Use CHECK_STRING_CAR.
23624 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
23625
23626 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
23627
23628 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
23629 (SIGMASKTYPE): Define.
23630
23631 * syssignal.h (sigunblock): Don't define if already defined.
23632
23633 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23634
23635 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
23636 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
23637 Fix typos in comments.
23638
23639 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
23640 and #ifdef'd-out code.
23641 Fix and reindent comments.
23642
23643 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
23644
23645 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
23646 argument `i' in macros.
23647
23648 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
23649 `i' in macros.
23650
23651 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
23652 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
23653 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
23654 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
23655 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
23656 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
23657 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
23658 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
23659 in macros.
23660
23661 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
23662 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
23663 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
23664 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
23665 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
23666 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
23667 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
23668 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
23669 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
23670 (remove unused second argument).
23671
23672 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
23673
23674 * syntax.c (describe_syntax): New wrapper.
23675 (Finternal_describe_syntax_value): Rename from describe_syntax.
23676 Don't insert space at front and \n at the end.
23677 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
23678
23679 * regex.c (re_wctype): Try to fix some warnings.
23680 (regcomp, regexec): Don't forget the __restrict.
23681
23682 2001-11-02 Richard M. Stallman <rms@gnu.org>
23683
23684 * textprop.c (Fget_char_property): Doc fix.
23685
23686 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23687
23688 * process.c (Fstart_process): Add usage to doc-string.
23689
23690 * data.c (Fsetq_default): Ditto.
23691
23692 * callint.c (Finteractive): Ditto.
23693
23694 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
23695
23696 * macros.c: Don't include keymap.h any more.
23697
23698 2001-11-01 Richard M. Stallman <rms@gnu.org>
23699
23700 * data.c (Fmake_local_variable): Doc fix.
23701
23702 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
23703 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
23704
23705 * keymap.c (Fdescribe_buffer_bindings): Print character property
23706 bindings along with or instead of the buffer local map.
23707 Make the overriding maps override what they should.
23708
23709 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23710
23711 * window.c (grow_mini_window): Fix typo in comment.
23712
23713 2001-11-01 Gerd Moellmann <gerd@gnu.org>
23714
23715 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
23716 (XTset_vertical_scroll_bar): Likewise.
23717
23718 * xfns.c (x_build_heuristic_mask): Use four_corners_best
23719 instead of IMAGE_BACKGROUND.
23720
23721 * xfns.c (four_corners_best): Reindent.
23722
23723 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
23724 Handle :box so that it is possible to specify sexprs.
23725
23726 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
23727
23728 * s/hpux11.h: New file.
23729
23730 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23731
23732 * emacs.c (USAGE1): Show command line option --no-window-system
23733 instead of --no-windows in usage.
23734 (standard_args): Rename --no-windows to --no-window-system.
23735 (bug_reporting_address): Follow Emacs coding conventions.
23736
23737 * eval.c (Fcommandp): Doc fix.
23738 Change doc-string comments to `new style' [w/`doc:' keyword].
23739
23740 * frame.c (Fframe_live_p): Doc fix.
23741
23742 * buffer.c (selective-display-ellipses): Doc fix.
23743
23744 2001-10-31 Gerd Moellmann <gerd@gnu.org>
23745
23746 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
23747
23748 * xfaces.c (realize_x_face): If C is not a single-byte character,
23749 set the face's colors_copied_bitwise_p instead of the defaulted_p
23750 members which have a different meaning.
23751 (free_face_colors): Do nothing for a face whose colors have been
23752 copied bitwise.
23753
23754 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
23755
23756 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23757
23758 * marker.c, mocklisp.c: Change doc-string comments to `new style'
23759 [w/`doc:' keyword].
23760
23761 2001-10-31 Gerd Moellmann <gerd@gnu.org>
23762
23763 * fns.c (require_unwind): Return Lisp_Object.
23764
23765 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23766
23767 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
23768 (last-input-char): Revert doc-string to be the same as the
23769 doc-string of `last-input-event'.
23770
23771 * xdisp.c: Fix typos in comments.
23772
23773 2001-10-31 Gerd Moellmann <gerd@gnu.org>
23774
23775 * window.c (grow_mini_window): Handle case that the root
23776 window is already smaller than the nominal mininum height.
23777
23778 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
23779
23780 * emacs.c (main): Don't call keys_of_macros any more.
23781
23782 * lisp.h (keys_of_macros): Remove.
23783
23784 * macros.c (keys_of_macros): Remove.
23785
23786 * xfaces.c (Fface_attribute_relative_p): Declare args.
23787
23788 2001-10-30 Jason Rumney <jasonr@gnu.org>
23789
23790 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
23791 (enum_font_cb2): Ignore fonts with vertical orientation.
23792
23793 2001-10-30 Richard M. Stallman <rms@gnu.org>
23794
23795 * keyboard.c (Finput_pending_p): Doc fix.
23796
23797 2001-10-30 Gerd Moellmann <gerd@gnu.org>
23798
23799 * xterm.c (x_after_update_window_line): Don't run the code
23800 clearing in borders for rows whose visible height is 0.
23801
23802 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
23803 resized_p flag is set. If not set, use the much less flickering
23804 method previously used.
23805
23806 * dispnew.c (change_frame_size_1): Set frame's resized_p.
23807
23808 * frame.h (struct frame) <resized_p>: New member.
23809
23810 * lread.c (to_multibyte): Ensure read_buffer is at least twice
23811 as large as the number of bytes to convert.
23812
23813 * lread.c (to_multibyte): New function.
23814 (read1): Use it.
23815
23816 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
23817
23818 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
23819
23820 2001-10-30 Gerd Moellmann <gerd@gnu.org>
23821
23822 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
23823 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
23824 if the row's fill_line_p is set and drawing the last glyph with
23825 DRAW_IMAGE_{RAISED,SUNKEN}.
23826
23827 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
23828
23829 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
23830
23831 * xmenu.c: Include coding.h and charset.h.
23832 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
23833 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
23834 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
23835 Explicitly set wv->help. Use `TRUE' rather than `True'.
23836 (menu_help_callback): Use empty_string.
23837
23838 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
23839 (Fx_popup_dialog): Explicitly init f.
23840 (w32_menu_display_help): Use empty_string.
23841
23842 2001-10-29 Richard M. Stallman <rms@gnu.org>
23843
23844 * fns.c (Frequire): Detect recursive try to require the same
23845 feature 3 or more levels deep, and get error.
23846 (require_unwind): New subroutine.
23847 (require_nesting_list): New variable.
23848 (syms_of_fns): Init and staticpro it.
23849
23850 * print.c (print_object): Clarify indication of insertion type.
23851
23852 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
23853
23854 * coding.c (syms_of_coding): Document that locale-coding-system is
23855 used for decoding input on X.
23856
23857 * window.c (Fscroll_left, Fscroll_right): Doc fix.
23858
23859 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23860
23861 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
23862 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
23863
23864 2001-10-29 Gerd Moellmann <gerd@gnu.org>
23865
23866 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
23867 use NO_CURSOR if cursor_in_non_selected_windows is false.
23868
23869 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
23870 the slant attribute if FRAME is t.
23871
23872 * xfns.c (x_set_internal_border_width): Set frame garbaged
23873 when X window doesn't exist yet.
23874
23875 * xterm.c (x_after_update_window_line): Clear internal border
23876 in different circumstances.
23877
23878 * xterm.c (XTread_socket) <KeyPress>: Don't use
23879 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
23880 <handa@etl.go.jp>.
23881
23882 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
23883
23884 * m/ibms390.h: New file. From Adam Thornton
23885 <athornton@sinenomine.net>.
23886
23887 2001-10-28 Gerd Moellmann <gerd@gnu.org>
23888
23889 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
23890
23891 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
23892 a loop counter.
23893
23894 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23895
23896 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
23897
23898 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
23899 keyword].
23900 Fix typos in comments.
23901
23902 * emacs.c (bug_reporting_address): New function.
23903 Use it when displaying usage message.
23904
23905 * minibuf.c (read_minibuf): Remove unused external declaration of
23906 variable `Qread_only'.
23907
23908 * keymap.c (access_keymap): Remove unused variable `charset'.
23909
23910 2001-10-28 Miles Bader <miles@gnu.org>
23911
23912 * xfaces.c (merge_face_heights): Handle TO being relative as well.
23913 Remove #ifdef'd-out code.
23914 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
23915 (syms_of_xfaces): Initialize them.
23916
23917 2001-10-27 Jason Rumney <jasonr@gnu.org>
23918
23919 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
23920 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
23921 position using the system caret.
23922
23923 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
23924 (w32_system_caret_height, w32_system_caret_x)
23925 (w32_system_caret_y): New variables for tracking system caret.
23926 (w32_initialize): Initialize them.
23927 (x_display_and_set_cursor): Make system caret follow the active cursor.
23928
23929 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
23930 New messages types.
23931
23932 * w32term.c (note_mouse_highlight): Clear old help_echo.
23933
23934 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23935
23936 * xterm.c: Fix typo in a comment.
23937
23938 * emacs.c: Fix typos in comments.
23939 Remove unnecessary spaces.
23940 Change doc-string comments to `new style' [w/`doc:' keyword].
23941 (USAGE2): Fix typos in usage string.
23942
23943 * xterm.c: Fix typo in a comment.
23944
23945 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
23946 emacs.c.
23947
23948 2001-10-27 Gerd Moellmann <gerd@gnu.org>
23949
23950 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
23951 instead of 1/2 line_height in the heuristic for skipping
23952 farther backward when target_y was not reached.
23953
23954 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
23955 Display errno only if non-zero.
23956 (sound_warning): New function.
23957 (vox_configure): Don't treat failing to set sample rate as error.
23958 (various places): Improve error messages.
23959
23960 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
23961
23962 * fileio.c (Faccess_file): Run the argument filename through
23963 Fexpand_file_name, before using it.
23964
23965 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
23966 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
23967
23968 2001-10-26 Gerd Moellmann <gerd@gnu.org>
23969
23970 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
23971
23972 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
23973 Fix clearing in the case of scroll bars on the right.
23974
23975 2001-10-26 Juanma Barranquero <lektu@terra.es>
23976
23977 * w32gui.h (XImage): Add a dummy typedef.
23978
23979 2001-10-26 Gerd Moellmann <gerd@gnu.org>
23980
23981 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
23982
23983 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
23984
23985 * frame.c (Fframe_parameter): Fix last change.
23986
23987 * fileio.c: Revert last change (which removed old commented-out
23988 version of expand-file-name). Add a comment that explains why
23989 this old version should not be removed.
23990
23991 2001-10-25 Gerd Moellmann <gerd@gnu.org>
23992
23993 * frame.c (Fframe_parameter): Fix a bug whereby some
23994 ``artificial'' frame parameters, like `minibuffer' were not
23995 obtained by calling Fframe_parameters.
23996
23997 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
23998 cursor differently.
23999
24000 * xdisp.c (move_it_vertically_backward): Compute line height
24001 differently. Add heuristic to try to be more compatible to 20.x.
24002
24003 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
24004
24005 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
24006
24007 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
24008 boolean.
24009
24010 2001-10-25 Miles Bader <miles@gnu.org>
24011
24012 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
24013 BG is a pointer to a structure, not a structure.
24014 (gif_format, png_format): Add missing commas.
24015
24016 2001-10-24 Richard M. Stallman <rms@gnu.org>
24017
24018 * xfaces.c (Fface_attributes_as_vector): New function.
24019 (syms_of_xfaces): Defsubr it.
24020
24021 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24022
24023 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
24024 variable `area'.
24025
24026 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24027
24028 * search.c (scan_newline): Remove unused variable `selective_display'.
24029
24030 2001-10-25 Miles Bader <miles@gnu.org>
24031
24032 * dispextern.h (struct image): Add `background',
24033 `background_valid', and `background_transparent' fields.
24034 (image_background, image_background_transparent): New declarations.
24035 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
24036 * xfns.c (image_background, image_background_transparent)
24037 (four_corners_best): New functions.
24038 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
24039 (gs_format): Add `:background' entry.
24040 (lookup_image): Set IMG's background color if specified.
24041 (pbm_load, xbm_load_image, png_load): Set IMG's background field
24042 when appropriate.
24043 (x_clear_image_1): Reset `background_valid' and
24044 `background_transparent_valid' fields.
24045 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
24046 calculating it here. Set IMG's background_transparent field.
24047 (enum xpm_keyword_index): Add XPM_BACKGROUND.
24048 (enum png_keyword_index): Add PNG_BACKGROUND.
24049 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
24050 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
24051 (enum gif_keyword_index): Add GIF_BACKGROUND.
24052 (enum gs_keyword_index): Add GS_BACKGROUND.
24053 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
24054 Pre-calculate image background color where necessary.
24055 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
24056 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
24057 color to use for image glyph reliefs.
24058
24059 2001-10-24 Gerd Moellmann <gerd@gnu.org>
24060
24061 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
24062 in full-width rows.
24063
24064 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
24065 Fix clearing of area not covered by scroll bar.
24066
24067 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24068
24069 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
24070 and `real_start'.
24071 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
24072 (glyph_rect): Remove unused variable `area'.
24073
24074 2001-10-24 Gerd Moellmann <gerd@gnu.org>
24075
24076 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
24077
24078 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
24079 (row_containing_pos): Take additional argument DY.
24080 Treat rows ending in middle of char differently.
24081 (display_line): Handle tabs on window systems differently.
24082
24083 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
24084 with additional argument.
24085
24086 * dispextern.h (row_containing_pos): Adjust prototype.
24087
24088 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
24089 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
24090 (try_window_id, try_window_reusing_current_matrix)
24091 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
24092 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
24093
24094 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24095
24096 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
24097 gnuemacs).
24098 (HAVE_BOXES): Fix typo in comment.
24099 (push_menu_pane): Fix typo in comment.
24100
24101 * xdisp.c (display_prop_string_p): Remove unused local declaration
24102 of `Qwhen'.
24103 (single_display_prop_string_p): Remove unused local declarations
24104 of `Qwhen' and `Qmargin'.
24105 (string_buffer_position): Remove unused variable `around'.
24106 (store_frame_title): Remove unused variable `width'.
24107
24108 * window.c: Don't define max.
24109 (coordinates_in_window): Remove unused variable `uy'.
24110
24111 * widget.c: Don't define max.
24112
24113 * process.c: Don't define max.
24114 (create_process): Remove unused variable `buffer'.
24115
24116 2001-10-23 Gerd Moellmann <gerd@gnu.org>
24117
24118 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
24119
24120 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
24121
24122 * xfaces.c (Finternal_set_lisp_face_attribute)
24123 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
24124 frame is on a windowed display.
24125
24126 2001-10-23 Gerd Moellmann <gerd@gnu.org>
24127
24128 * dispnew.c (sync_window_with_frame_matrix_rows):
24129 Fix handling of windows which aren't full-width, fix handling
24130 of marginal areas.
24131
24132 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24133
24134 2001-10-23 Andreas Schwab <schwab@suse.de>
24135
24136 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
24137 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
24138
24139 2001-10-23 Gerd Moellmann <gerd@gnu.org>
24140
24141 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
24142 REAL_END. Notice if cursor gets overwritten.
24143 (notice_overwritten_cursor): Take X positions as parameters.
24144 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
24145 around call to x_draw_glyphs.
24146
24147 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24148
24149 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
24150 instead of C) and usage.
24151
24152 * editfns.c (char-to-string): Fix argument names (use CHAR instead
24153 of C) and usage.
24154
24155 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
24156 `left', `max_width' and `max_height'.
24157
24158 2001-10-23 Gerd Moellmann <gerd@gnu.org>
24159
24160 * xdisp.c (display_line): For a tab continued to the next line,
24161 set row's ends_in_middle_of_char_p.
24162
24163 2001-10-22 Gerd Moellmann <gerd@gnu.org>
24164
24165 * xdisp.c (display_line): Fix computation of continuation lines
24166 width for TABs.
24167
24168 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24169
24170 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
24171 `Qlaplace'.
24172
24173 * fileio.c: Remove unused code.
24174
24175 2001-10-22 Miles Bader <miles@gnu.org>
24176
24177 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
24178 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
24179 Remove `DOC_STRINGS_IN_COMMENTS' cases.
24180
24181 2001-10-21 Jason Rumney <jasonr@gnu.org>
24182
24183 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
24184
24185 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
24186
24187 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
24188 (Finsert_string): Avoid the multi-line string literals warning.
24189
24190 2001-10-22 Miles Bader <miles@gnu.org>
24191
24192 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
24193 (Fdocumentation): Don't use it.
24194 (syms_of_doc): Don't initialize it.
24195
24196 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
24197 * print.c (Fwith_output_to_temp_buffer): Likewise.
24198 * window.c (Fsave_window_excursion): Likewise.
24199 * editfns.c (Fsave_excursion, Fsave_current_buffer)
24200 (Fsave_restriction): Likewise.
24201 * eval.c (Frun_hooks, Frun_hook_with_args)
24202 (Frun_hook_with_args_until_failure)
24203 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
24204 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
24205 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
24206 (Funwind_protect, Fcondition_case): Likewise.
24207 * coding.c (Ffind_operation_coding_system): Likewise.
24208 * keyboard.c (Ftrack_mouse): Likewise.
24209
24210 2001-10-21 Miles Bader <miles@gnu.org>
24211
24212 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
24213 (Fmake_hash_table): Add usage: string to doc string.
24214 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
24215 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
24216 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
24217 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
24218 (Fml_prefix_argument_loop): Likewise.
24219
24220 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24221
24222 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
24223
24224 * sysdep.c (init_sys_modes): Change doc-string comments to `new
24225 style' [w/`doc:' keyword].
24226
24227 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
24228 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
24229 comments to `new style' [w/`doc:' keyword].
24230
24231 2001-10-21 Jason Rumney <jasonr@gnu.org>
24232
24233 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
24234
24235 * w32term.c (remember_mouse_glyph): New function.
24236 (w32_mouse_position): Use it.
24237 (note_mouse_movement): If the mouse moved off the glyph, remember
24238 its new position.
24239
24240 * w32term.h (struct w32_output): Correct spelling of x_compatible.
24241 (w32_display_info): Add mouse_face_overlay.
24242
24243 * w32term.c (notice_overwritten_cursor): Renamed from
24244 note_overwritten_text_cursor. Rewritten to take glyph widths into
24245 account.
24246 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
24247 (fast_find_string_pos): New function.
24248 (fast_find_position): Return the correct vpos. Add parameter
24249 STOP. In the final row, stop before glyphs having STOP as object.
24250 Don't consider glyphs that are not from a buffer.
24251 (fast_find_position) [0]: Add a presumably more correct version
24252 for after 21.1.
24253 (expose_window_tree, expose_frame): Don't compute intersections here.
24254 (expose_window): Do it here instead.
24255 (expose_window_tree, expose_window, expose_line): Return 1 when
24256 overwriting mouse-face.
24257 (expose_window): If W is the window currently being updated, mark
24258 the frame garbaged.
24259 (expose_frame): If mouse-face was overwritten, redo it.
24260 (x_use_underline_position_properties): New variable.
24261 (syms_of_xterm): DEFVAR_BOOL it.
24262 (x_draw_glyph_string): Add comment to use it in future.
24263 (x_draw_glyph_string): Restore clipping after drawing box.
24264 Fix a computation of the underline position.
24265 (w32_get_glyph_string_clip_rect): Minor cleanup.
24266 (x_fill_stretch_glyph_string): Remove an assertion.
24267 (x_produce_glyphs): Don't convert multibyte characters
24268 to unibyte characters in unibyte buffers.
24269 (cursor_in_mouse_face_p): New function.
24270 (x_draw_stretch_glyph_string): Use it to choose a different GC
24271 when drawing a cursor within highlighted text. Don't draw
24272 background again if it has already been drawn.
24273 (x_draw_glyph_string_box): Don't draw a full-width
24274 box just because the glyph row's full_width_p flag is set.
24275 (x_draw_glyphs): Fix computation of rightmost x for
24276 full-width rows.
24277 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
24278 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
24279 change bottom shadow accordingly. Some cleanup.
24280 (x_update_window_end): Handle overwritten mouse face
24281 also for tool bar windows.
24282 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
24283 DRAW is DRAW_IMAGE_RAISED.
24284 (clear_mouse_face): Return 1 if text with mouse face was
24285 actually redrawn. Make the function static.
24286 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
24287 optimize away highlighting if we pass over that same overlay again.
24288 (note_mouse_highlight): Call mouse_face_overlay_overlaps
24289 to detect a case where we have to highlight a different region
24290 despite not having left the currently highlighted region.
24291 Set mouse_face_overlay in the x_display_info. Avoid changing the
24292 mouse pointer shape when show_mouse_face has already done it, or
24293 there is no need. Handle mouse-face and help-echo in strings.
24294 (glyph_rect): New function.
24295 (w32_mouse_position): Use it to raise the threshold for mouse
24296 movement event generation.
24297 (w32_initialize_display_info): Initialize the x_display_info's
24298 mouse_face_overlay.
24299 (w32_set_vertical_scroll_bar): Don't clear a zero height
24300 or width area.
24301 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
24302 a widget to zero height.
24303
24304 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
24305 Protect unibyte strings created by replacing their multibyte
24306 equivalents in menu_items.
24307 (w32_menu_show): Don't overwrite an item's name with its key
24308 description in case the description is a multibyte string.
24309 (single_submenu): Some cleanup.
24310
24311 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
24312 (postprocess_image): New function.
24313 (lookup_image): Call it for all image types except PostScript.
24314 (x_kill_gs_process): Call postprocess_image.
24315 (tiff_error_handler, tiff_warning_handler): New functions.
24316 (tiff_load): Install them as handlers.
24317 (x_kill_gs_process): Recognize if someone has cleared the image
24318 cache under us.
24319 (valid_image_p): Protect better against invalid image
24320 specifications. Previous code could signal an error.
24321 (Fx_hide_tip, Fshow_tip): Doc fix.
24322 (Fv_max_tooltip_size): New variable.
24323 (syns_of_xfns): DEFVAR_LISP it.
24324 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
24325 window buffer to *tip* right after creating the frame. Set frame's
24326 window_width. Use a maximum tooltip size specified by
24327 Vx_max_tooltip_size, if that has valid contents.
24328 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
24329 Make sure the tooltip is completely visible.
24330 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
24331 (Fx_create_frame): Adjust the frame's height for presence
24332 of the tool bar before calling x_figure_window_size.
24333 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
24334 when the window gets smaller.
24335 (x_set_foreground_color): Set frame's cursor_pixel.
24336 (x_set_foreground_color, x_set_background_color): Cleaned up.
24337 (x_set_font): Handle case of x_new_fontset returning the same name
24338 as before, although there was a change in fontsets.
24339
24340 2001-10-21 Miles Bader <miles@gnu.org>
24341
24342 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
24343 (Flogxor): Add usage: string to doc string.
24344 * charset.c (Fstring): Likewise.
24345 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
24346 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
24347
24348 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24349
24350 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
24351
24352 * alloc.c: Reindent DEFUNs with doc: keywords.
24353
24354 * abbrev.c (Finsert_abbrev_table_description): Reindent.
24355
24356 * frame.c: Change doc-string comments to `new style' [w/`doc:'
24357 keyword].
24358
24359 See ChangeLog.9 for earlier changes.
24360
24361 ;; Local Variables:
24362 ;; coding: iso-2022-7bit
24363 ;; End:
24364
24365 Copyright (C) 2001, 2002, 2003, 2004, 2005,
24366 2006 Free Software Foundation, Inc.
24367 Copying and distribution of this file, with or without modification,
24368 are permitted provided the copyright notice and this notice are preserved.
24369
24370 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4