]> code.delx.au - gnu-emacs/blob - src/ChangeLog
(Qeql): Add extern.
[gnu-emacs] / src / ChangeLog
1 2006-06-27 Chong Yidong <cyd@stupidchicken.com>
2
3 * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
4 (Ffield_string_no_properties, Ffield_end): Mention
5 args-out-of-range error condition in docstring.
6
7 2006-06-27 Kim F. Storm <storm@cua.dk>
8
9 * xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
10
11 2006-06-25 Kim F. Storm <storm@cua.dk>
12
13 * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
14 version 2.4 and later.
15
16 2006-06-24 Chong Yidong <cyd@stupidchicken.com>
17
18 * xfns.c (Fx_create_frame): Set font parameter directly instead of
19 using x_default_parameter, since x_get_args clears the parm alist.
20
21 2006-06-24 Eli Zaretskii <eliz@gnu.org>
22
23 * dired.c (directory_files_internal) [WINDOWSNT]: Find files
24 case-insensitively.
25
26 2006-06-24 Aidan Kehoe <kehoea@parhasard.net>
27
28 * lread.c (read_escape): When an unknown Unicode code point is
29 encountered as a string or character escape, signal an error.
30
31 2006-06-23 Kim F. Storm <storm@cua.dk>
32
33 * .gdbinit (pitx): Dump iterator stack.
34
35 * xdisp.c (handle_composition_prop): Push iterator on stack.
36 (set_iterator_to_next): Pop iterator at end of composition.
37
38 2006-06-23 Martin Rudalics <rudalics@gmx.at>
39
40 * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
41 itself on DOS_NT platforms, if the old and new names are identical
42 but for the letter-case.
43
44 2006-06-21 Kim F. Storm <storm@cua.dk>
45
46 * dispextern.h (struct it): Add `position' member to iterator stack.
47 Rename `pos' member to `current'. Rearrange and add comments.
48
49 * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
50 if we get any overlays.
51 (set_cursor_from_row): Don't clobber `end' if we rescan from
52 start_string.
53 (push_it, pop_it): Save it->position.
54
55 2006-06-19 Richard Stallman <rms@gnu.org>
56
57 * window.c (size_window): New arg FIRST_ONLY. All callers changed.
58 (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
59 for the case of a top-level window and the following minibuffer.
60 Don't exit because of no `next' when there is a parent.
61 Use the FIRST_ONLY feature when resizing following windows.
62
63 * syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
64
65 2006-06-17 Kim F. Storm <storm@cua.dk>
66
67 * dispnew.c (update_frame): Check for input pending on entry.
68 (update_window, update_frame_1): Break loop if input is detected.
69
70 2006-06-16 Francis Litterio <flitterio@gmail.com>
71
72 * xterm.c (x_check_expected_move, handle_one_xevent)
73 (x_set_offset, x_check_fullscreen): Extensive changes to make
74 frame positioning deterministic under X.
75
76 * xterm.h (x_output): Added members left_before_move and
77 top_before_move. Removed members expected_left and expected_top.
78
79 2006-06-16 Kim F. Storm <storm@cua.dk>
80
81 * dispextern.h (struct it): Add union to iterator stack to save
82 image, composition, and stretch specific paramters.
83
84 * xdisp.c (next_overlay_string): Fix assert.
85 (push_it, pop_it): Handle composition and stretch specific values.
86 Only handle it->slice in image (for now).
87 (back_to_previous_visible_line_start): Continue search if newline is
88 part of a compisition. Simplify.
89 (reseat_1): Set it->object to buffer.
90 (set_iterator_to_next): Set it->object to string or buffer, when
91 setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
92 (next_element_from_composition): Set it->object to buffer if not
93 from string.
94 (set_cursor_from_row): Only save start of string if not already
95 done to handle multiple strings in a row.
96
97 * .gdbinit (pitx): Show composition parameters.
98 (pgx, pg): New commands to print a glyph structure.
99 (pgi, pgn): New commands to print specific/next glyph.
100 (pgrowx, pgrow): New commands to print all glyphs in a row.
101
102 2006-06-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
103
104 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
105 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
106
107 * macterm.c (do_app_resume, do_app_suspend): Remove functions.
108 (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
109 (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
110 (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
111 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
112 (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
113 (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
114 Services functions to get size of main display in pixels.
115
116 2006-06-14 Chong Yidong <cyd@stupidchicken.com>
117
118 * xdisp.c (back_to_previous_visible_line_start): Reset
119 it->continuation_lines_width.
120
121 2006-06-14 Richard Stallman <rms@gnu.org>
122
123 * eval.c (Fdefconst): Mark variable as risky.
124
125 * callproc.c (Fcall_process): Doc fix.
126
127 * window.c (adjust_window_trailing_edge): Don't break out of the loop
128 because there's no next window, if there are parallel windows.
129 Do break out when WINDOW is nil.
130
131 2006-06-14 Kim F. Storm <storm@cua.dk>
132
133 * dispextern.h (IT_STACK_SIZE): New macro specifying size of
134 iterator stack (instead of hardcoded number). Increase from 2 to
135 4 to make room for propertized overlay strings before and after a
136 display string, image or composition.
137 (struct it): Add image_id and method members to iterator stack.
138
139 * xdisp.c (init_from_display_pos): Don't set it->method and
140 overlay_string_index after pop_it. Add asserts.
141 (handle_stop): Look for overlay strings around a display string,
142 image, or composition. Handle properties on those strings.
143 (next_overlay_string): Don't set string, pos or method after pop_it.
144 (get_overlay_strings_1): Split from get_overlay_strings; don't
145 modify it if no overlay strings are found.
146 (get_overlay_strings): Use get_overlay_strings_1. Always set
147 it->string and it->method.
148 (push_it): Push it->image_id and it->method. Push it->object
149 instead of it->string if method is GET_FROM_IMAGE.
150 (pop_it): Pop it->image_id and it->method. Ppo it->object
151 instead of it->string if method is GET_FROM_IMAGE.
152 Reset it->current.string_pos if popped it->string is nil.
153 (reseat_1): Remove comment dated 19 May 2003. It expressed doubt
154 whether a given change was correct; but the change is correct.
155 Clear it->string_from_display_prop_p.
156 (set_iterator_to_next): Rely on it->method and it->image_id from
157 iterator stack, instead of setting them explicitly after pop_it.
158
159 * dispnew.c (sit_for): Undo 2006-06-01 change. Instead, a
160 negative time forces redisplay even when input is available.
161 (Fsit_for): Doc fix.
162
163 2006-06-13 Kim F. Storm <storm@cua.dk>
164
165 * dispnew.c: Modify preemptive redisplay to be based on periodic
166 checks for input.
167 (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
168 (Vredisplay_preemption_period): New variable.
169 (syms_of_display): DEFVAR_LISP and initialize it.
170 (preemption_period, preemption_next_check): New variables.
171 (update_frame, update_single_window): Initialize them based on
172 Vredisplay_preemption_period if !force_p.
173 (update_window, update_frame_1): Use them to determine when to
174 check for input.
175
176 2006-06-03 Aidan Kehoe <kehoea@parhasard.net>
177
178 * lread.c (read_escape): Provide a Unicode character escape
179 syntax; \u followed by exactly four or \U followed by exactly
180 eight hex digits in a comment or string is read as a Unicode
181 character with that code point.
182
183 2006-06-09 Eli Zaretskii <eliz@gnu.org>
184
185 * window.c (window_scroll_pixel_based): Signal "Beginning of
186 buffer" when scroll-down at the beginning of an empty buffer.
187
188 2006-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
189
190 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event): Exclude
191 0x7f from ASCII range.
192
193 2006-06-05 Jason Rumney <jasonr@gnu.org>
194
195 * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
196 (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
197 (x_scroll_bar_report_motion): Remove workarounds for
198 versions of Windows NT < 3.51.
199 [!SIF_ALL]: Remove.
200 (pfnSetScrollInfo, pfnGetScrollInfo): Remove.
201 (w32_initialize): Don't dynamically load Get/SetScrollInfo.
202
203 2006-06-04 David Kastrup <dak@gnu.org>
204
205 * dispnew.c: Mention `redisplay-dont-pause' in doc string of
206 `sit-for'.
207
208 2006-06-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
209
210 * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
211
212 * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
213
214 * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
215 (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
216 [USE_MAC_TSM]: Likewise.
217 (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
218 (Qbefore_string) [USE_MAC_TSM]: Add extern.
219 (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
220 ActivateTSMDocument/DeactivateTSMDocument.
221 (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
222 (mac_handle_window_event) [USE_MAC_TSM]: Handle
223 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
224 (mac_handle_text_input_event) [USE_MAC_TSM]: New function.
225 (install_window_handler) [USE_MAC_TSM]: Install it. Register
226 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
227 (keycode_to_xkeysym_table): Add entry for f16.
228 (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
229 before/after passing keystroke event to toolbox dispatcher.
230 (init_tsm) [USE_MAC_TSM]: New function.
231 (mac_initialize) [USE_MAC_TSM]: Call it.
232 (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
233
234 * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
235
236 2006-06-02 John Paul Wallington <jpw@gnu.org>
237
238 * xfns.c (x_set_name_internal): Set icon to `text', derived from
239 name, when frame's icon_name isn't a string rather than only when
240 it is nil.
241
242 2006-06-03 Eli Zaretskii <eliz@gnu.org>
243
244 * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
245 and not nil.
246
247 2006-06-02 Chong Yidong <cyd@stupidchicken.com>
248
249 * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
250 string.
251
252 2006-06-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
253
254 * xdisp.c (next_element_from_composition): Set it->object to
255 it->string if composition is coming from string.
256 (set_cursor_from_row): Don't return 0 unless row displays a
257 continued line.
258 (dump_glyph): Dump composite glyph.
259
260 2006-06-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
261
262 * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
263
264 2006-06-01 Richard Stallman <rms@gnu.org>
265
266 * window.c (Fsplit_window): Doc fix.
267
268 2006-06-01 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
269
270 * process.c (deleted_pid_list): New variable to store the pids
271 of deleted processes. Declare it only if SIGCHLD is defined.
272 (init_process): Initialize it.
273 (syms_of_process): Staticpro it.
274 (Fdelete_process): Add pid of the deleted process to it. Check after
275 the addition and before the kill if the process is already stopped,
276 in which case it is deleted from the list and not killed.
277 (sigchld_handler): Define it only if SIGCHLD is. Search the process
278 that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
279 Original idea by Stefan Monnier.
280
281 2006-06-01 Kim F. Storm <storm@cua.dk>
282
283 * dispnew.c (sit_for): Perform redisplay even if input is pending
284 when redisplay-dont-pause is non-nil.
285
286 2006-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
287
288 * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
289 (XTread_socket): Remove obsolete comment.
290
291 2006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
292
293 * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
294 menu-bar-open.
295
296 2006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
297
298 * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
299 menu-bar-open.
300
301 * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
302
303 2006-05-31 Juri Linkov <juri@jurta.org>
304
305 * minibuf.c (Vhistory_add_new_input): New variable.
306 (read_minibuf): Use it.
307 (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
308 (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
309
310 2006-05-31 Kim F. Storm <storm@cua.dk>
311
312 * process.c (select_wrapper): Add wrapper around select to work around
313 "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
314 select called from wait_reading_process_output.
315
316 2006-05-30 Andreas Schwab <schwab@suse.de>
317
318 * xmenu.c (Fmenu_bar_start): Return a value.
319
320 2006-05-30 Richard Stallman <rms@gnu.org>
321
322 * coding.c (Ffind_operation_coding_system): Doc fix.
323
324 2006-05-30 Eli Zaretskii <eliz@gnu.org>
325
326 * w32term.c (x_draw_hollow_cursor): Fix last change.
327
328 2006-05-29 Kim F. Storm <storm@cua.dk>
329
330 * w32term.c (x_draw_stretch_glyph_string): Fix last change.
331
332 2006-05-29 Eli Zaretskii <eliz@gnu.org>
333
334 * coding.c (Ffind_operation_coding_system): Doc fix.
335
336 2006-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
337
338 * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
339 Call mac_set_font_info_for_selection if font panel is made visible.
340
341 * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
342 (mac_font_panel_visible_p, mac_show_hide_font_panel)
343 [USE_MAC_FONT_PANEL]: New functions.
344 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Return
345 immediately if font panel is not visible.
346
347 * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
348 Add externs.
349
350 2006-05-29 Dan Nicolaescu <dann@ics.uci.edu>
351
352 * search.c (matcher_overflow): Mark as NO_RETURN.
353
354 * xterm.c (x_connection_closed): Likewise.
355
356 * sysdep.c (croak): Likewise.
357
358 * sound.c (sound_perror, alsa_sound_perror): Likewise.
359
360 * lisp.h (die, nsberror): Likewise.
361
362 2006-05-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
363
364 * sound.c (alsa_open, alsa_configure, alsa_write): Move
365 assignment to err out of if-statement.
366
367 * gtkutil.c (menu_nav_ended): New function.
368 (create_menus): Connect menu_nav_ended to "selection-done" to fix
369 grabs.
370
371 * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
372
373 2006-05-28 Dan Nicolaescu <dann@ics.uci.edu>
374
375 * charset.h (invalid_character): Mark as NO_RETURN.
376
377 2006-05-29 Kenichi Handa <handa@m17n.org>
378
379 * coding.c (Ffind_operation_coding_system): Call a function by
380 safe_call1 instead of call1.
381
382 2006-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
383
384 * window.c (struct saved_window): Add `dedicated'.
385 (Fset_window_configuration, save_window_save): Save/restore the
386 `dedicated' flag.
387
388 2006-05-28 Kim F. Storm <storm@cua.dk>
389
390 * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
391 don't update w->cursor and return 0. Return 1 on success.
392 (try_cursor_movement): Repeat set_cursor_from_row on successive rows
393 until it succeeds.
394
395 * dispextern.h (set_cursor_from_row): Update prototype.
396
397 2006-05-28 Kim F. Storm <storm@cua.dk>
398
399 * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
400 parameters. Adjust x and width in case cursor in on a partially
401 visible stretch glyph on the left edge.
402 (erase_phys_cursor): Don't erase into left fringe/margin in case
403 previous cursor glyph is a partially visible stretch glyph on left.
404
405 * dispextern.h (get_phys_cursor_geometry): Update prototype.
406
407 * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
408 cursor and erasing cursor on partially visible stretch glyph on left.
409 (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
410
411 * macterm.c: Likewise.
412
413 * w32term.c: Likewise.
414
415 2006-05-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
416
417 * macselect.c (mac_handle_apple_event):
418 Return errAEEventNotHandled if key binding is not found.
419
420 2006-05-26 Eli Zaretskii <eliz@gnu.org>
421
422 * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
423 [__MINGW32__]: MinGW-specific declaration of `etext'.
424
425 * w32heap.c (etext, edata): Remove unused definitions.
426
427 2006-05-26 Chong Yidong <cyd@stupidchicken.com>
428
429 * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
430 Incorporate the exclusive file-opening functionality into the behavior
431 when OK-IF-ALREADY-EXISTS is nil.
432 (Frename_file): Call Fcopy_file without MUSTBENEW argument.
433
434 2006-05-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
435
436 * sound.c (alsa_configure): Move get period/buffer_size after
437 setting hwparams.
438
439 2006-05-26 Kenichi Handa <handa@m17n.org>
440
441 * coding.c (Ffind_operation_coding_system): Allow (FILENAME
442 . BUFFER) in TARGET.
443
444 2006-05-25 Chong Yidong <cyd@stupidchicken.com>
445
446 * image.c (png_load): Don't call fclose on NULL.
447
448 2006-05-25 Luc Teirlinck <teirllm@auburn.edu>
449
450 * fns.c (Fyes_or_no_p):
451 * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
452 only seven args.
453
454 2006-05-25 Juri Linkov <juri@jurta.org>
455
456 * lisp.h (Fread_from_minibuffer): Decrement number of args.
457
458 * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed.
459 (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed.
460
461 * buffer.c (mode-line-format): Fix docstring.
462
463 2006-05-25 Richard Stallman <rms@gnu.org>
464
465 * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
466
467 2006-05-24 Luc Teirlinck <teirllm@auburn.edu>
468
469 * puresize.h (BASE_PURESIZE): Increase to 1210000.
470
471 2006-05-24 Alan Mackenzie <acm@muc.de>
472
473 * lread.c (Vload_history): Enhance doc-string to say that the file
474 is the absolute truename of the loaded file.
475
476 * lread.c (Vafter_load_alist): doc-string: state that an element
477 now has a regexp to match file names, not a file name as such.
478
479 * lread.c (readevalloop): Call file-truename on the name for
480 load-history, except at preloading time.
481
482 * lread.c (Fload): At preloading time, preserve the extension of
483 the filename which goes into load-history. New var hist_file_name.
484
485 * lread.c (Fload): Do eval-after-load stuff by calling the lisp
486 function do-after-load-evaluation.
487
488 2006-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
489
490 * mac.c (ae_attr_table): New variable.
491 (syms_of_mac): Intern and staticpro its elements.
492 (mac_aelist_to_lisp): Also convert Apple event attributes.
493 (mac_ae_put_lisp): New function.
494 (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
495
496 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
497
498 * macselect.c (Qemacs_suspension_id): New variable.
499 (syms_of_macselect): Intern and staticpro it.
500 (struct suspended_ae_info): New struct.
501 (deferred_apple_events, defer_apple_events)
502 (Fmac_process_deferred_apple_events): Use it.
503 (suspended_apple_events): New variable.
504 (mac_handle_apple_event_1): New function.
505 (mac_handle_apple_event): Use it. Don't process previously
506 suspended events.
507 (cleanup_suspended_apple_events, get_suspension_id)
508 (cleanup_all_suspended_apple_events): New functions.
509 (init_apple_event_handler): Call cleanup_all_suspended_apple_events
510 at exit.
511 (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
512 (Fmac_resume_apple_event): New defuns.
513 (syms_of_macselect): Defsubr them.
514
515 * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
516 Fix last change. Don't map `fn' modifier if pressed with F1 ... F12.
517
518 * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
519 (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
520 (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
521 (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
522 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
523 Likewise.
524 (typeUTF8Text, kEventParamWindowMouseLocation)
525 [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
526 (x_get_focus_frame, mac_ae_put_lisp): Add externs.
527
528 2006-05-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
529
530 * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
531 (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
532 (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
533 (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
534 (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
535 resource to backtranslate key with modifiers.
536 (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
537
538 2006-05-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
539
540 * xterm.c: Remove declarations already in xterm.h
541
542 * xterm.h: Add extern declarations for x_clear_errors,
543 x_fully_uncatch_errors, x_catching_errors and
544 x_alloc_lighter_color_for_widget. Remove duplicated declarations.
545
546 2006-05-21 Richard Stallman <rms@gnu.org>
547
548 * xfaces.c (best_matching_font): Abort for best == NULL
549 before we start to use it.
550
551 * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
552
553 2006-05-20 Kim F. Storm <storm@cua.dk>
554
555 * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
556
557 2006-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
558
559 * macterm.c (convert_fn_keycode): Fix last change.
560
561 2006-05-19 Eli Zaretskii <eliz@gnu.org>
562
563 * w32.c (init_environment): Perform the processing of environment
564 variables on a copy of default variables and their values, not on
565 the original. Simplify code that calls ExpandEnvironmentStrings
566 and make buf1[] and buf2[] more visible for easier debugging.
567
568 2006-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
569
570 * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
571
572 * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
573
574 * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
575
576 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
577 Forward keyUp events to toolbox_dispatcher.
578
579 * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
580
581 2006-05-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
582
583 * config.in: Regenerated (HAVE_ALSA).
584
585 * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
586 (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
587 (snd_error_quiet, alsa_init): New functions.
588 (vox_init): Return 0 if unable to open device.
589 (Fplay_sound_internal): Test for alsa first and use vox (oss) as
590 a fallback.
591 (struct sound_device): Add period_size.
592 (wav_play, au_play): Use period_size if set.
593
594 * Makefile.in (CFLAGS_SOUND): New flags for ALSA
595 (ALL_CFLAGS): Add CFLAGS_SOUND
596
597 2006-05-18 Kenichi Handa <handa@m17n.org>
598
599 * callproc.c (Fcall_process): Reject encoding arguments by
600 ascii-incompatible coding systems (e.g. utf-16).
601
602 * coding.c (Qascii_incompatible): New variable.
603 (syms_of_coding): Setup Qascii_incompatible.
604 (setup_coding_system): Be sure to initialize coding->common_flags.
605 Check `ascii-incompatible' property of the coding system.
606
607 * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
608
609 2006-05-18 Kim F. Storm <storm@cua.dk>
610
611 * xdisp.c (display_tool_bar_line): Restore entire tool-bar geometry when
612 backtracking in case last image doesn't fit on line.
613
614 2006-05-18 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
615
616 * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by more than
617 height of one frame default line.
618
619 2006-05-17 Richard Stallman <rms@gnu.org>
620
621 * xfaces.c (better_font_p): Any font beats no font.
622 (best_matching_font): Simplify based on above change.
623
624 * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
625
626 2006-05-16 Kim F. Storm <storm@cua.dk>
627
628 * xterm.c (handle_one_xevent): Check that f is not NULL before
629 calling x_kill_gs_process.
630
631 2006-05-14 Richard Stallman <rms@gnu.org>
632
633 * textprop.c (Fnext_single_char_property_change)
634 (Fprevious_single_char_property_change): Don't allow returning
635 value beyond LIMIT in any cases.
636 (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
637
638 * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
639
640 2006-05-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
641
642 * xterm.c (handle_one_xevent): Check that f is not NULL before
643 calling _XEditResCheckMessages.
644
645 2006-05-14 Kim F. Storm <storm@cua.dk>
646
647 * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
648
649 2006-05-13 Eli Zaretskii <eliz@gnu.org>
650
651 * frame.c (x_set_border_width): Fix error message to say "frame",
652 not "window".
653
654 * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
655
656 2006-05-12 Chong Yidong <cyd@stupidchicken.com>
657
658 * intervals.c (set_point_both): Fix mixup before before and after
659 in variable names.
660
661 * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
662 while setting point temporarily.
663
664 2006-05-11 Richard Stallman <rms@gnu.org>
665
666 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
667
668 2006-05-11 Kim F. Storm <storm@cua.dk>
669
670 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
671
672 2006-05-11 Kenichi Handa <handa@m17n.org>
673
674 * fileio.c (Finsert_file_contents): Fix for the case of IO error
675 while handling replace operation.
676
677 2006-05-10 Kenichi Handa <handa@m17n.org>
678
679 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
680 chosen for the default face was different from the frame font,
681 adjust the frame font.
682
683 2006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
684
685 * image.c (Qduration) [MAC_OS]: Undo previous change.
686 (syms_of_image) [MAC_OS]: Likewise.
687 [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
688
689 * macfns.c (x_to_mac_color): Fix shift amount change.
690 (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
691 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
692
693 * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
694 Vmac_services_selection. All uses changed.
695 (mac_store_service_event): Rename from mac_store_services_event in
696 extern and calls.
697
698 * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses
699 changed.
700 [MAC_OSX] (mac_store_service_event): Rename from
701 mac_store_services_event. All callers changed.
702 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
703 FACE_ID and C. All callers changed.
704 (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
705 mac_set_font_info_for_selection when focus frame is destroyed.
706 (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
707
708 * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
709 args in extern.
710
711 2006-05-09 Chong Yidong <cyd@stupidchicken.com>
712
713 * keymap.c (describe_map): Avoid generating duplicate entries if
714 the shadowed binding has the same definition.
715
716 2006-05-09 Kenichi Handa <handa@m17n.org>
717
718 * keymap.c (push_key_description): Handle invalid character key.
719
720 2006-05-08 Kenichi Handa <handa@m17n.org>
721
722 * callproc.c (Fcall_process): Use system_eol_type for encoding
723 arguments if eol_type is not yet decided.
724
725 * coding.h (system_eol_type): Extern it.
726
727 * coding.c (setup_coding_system): For invalid coding-system, set
728 coding->eol_type to CODING_EOL_UNDECIDED.
729 (encode_coding): Cancel previous change.
730 (shrink_encoding_region): Likewise.
731 (code_convert_region1): Likewise.
732 (code_convert_string1): Likewise.
733 (code_convert_string_norecord): Likewise.
734
735 * fileio.c (choose_write_coding_system): Use system_eol_type for
736 encoding if eol_type is not yet decided.
737
738 * process.c (setup_process_coding_systems): Use system_eol_type
739 for encoding if eol_type is not yet decided.
740 (read_process_output): Likewise.
741 (send_process): Likewise.
742
743 2006-05-07 Juanma Barranquero <lekktu@gmail.com>
744
745 * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
746
747 2006-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
748
749 * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
750 (syms_of_mac): Likewise for defsubr.
751
752 * macfns.c (mac_set_font): New function.
753 (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
754 (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
755 kWindowToolbarButtonAttribute when creating window.
756 (Fmac_clear_font_name_table): Move from macfns.c.
757 (syms_of_macfns): Likewise for defsubr.
758 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
759 (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
760
761 * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
762 and build is done on Mac OS X 10.2 and later.
763
764 * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
765 (mac_store_services_event): Change return type in extern.
766
767 * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
768 FMFontFamily value.
769 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
770 (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
771 (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
772 (QWindow) [MAC_OSX]: Likewise.
773 (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
774 (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
775 (syms_of_macterm) [USE_ATSUI]: Defvar it.
776 (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
777 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
778 (syms_of_macterm): Intern and staticpro them.
779 (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
780 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event): New
781 function.
782 [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
783 [MAC_OSX] (mac_store_services_event): Likewise.
784 [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
785 kEventWindowToolbarSwitchMode event.
786 (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
787 [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
788 [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
789 (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
790 (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
791
792 * macterm.h (mac_set_font_info_for_selection): Add extern.
793
794 2006-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
795
796 * image.c (Qduration) [MAC_OS]: New variable.
797 (syms_of_image) [MAC_OS]: Intern and staticpro it.
798 [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
799 [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
800 instead of cfstring_create_with_string.
801
802 2006-05-06 Kim F. Storm <storm@cua.dk>
803
804 * .gdbinit (xframe): Print frame name.
805 (xlist): New command to print a list (max 10 elements).
806 (xpr): Print lisp object of any type.
807 (pitx): Print it->pixel_width.
808
809 2006-05-05 Kenichi Handa <handa@m17n.org>
810
811 * xdisp.c (handle_composition_prop): Fix for the case of empty
812 composition component.
813
814 2006-05-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
815
816 * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
817 from event->arg.
818
819 * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
820 MAC_APPLE_EVENT.
821
822 * macterm.h (mac_make_lispy_event_code): Remove extern.
823 (mac_post_mouse_moved_event): Add extern.
824 (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
825 `const AEDesc *' in externs.
826 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
827
828 * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
829 `const AEDesc *'.
830 [TARGET_API_MAC_CARBON] (create_apple_event): New function.
831 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
832 Use xrealloc instead of repeated xmalloc/xfree.
833 [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref): New
834 function.
835
836 * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
837
838 * macselect.c: Update copyright year.
839 (mac_store_apple_event): Change return type to void in extern.
840 (mac_handle_apple_event): Don't get return value from
841 mac_store_apple_event.
842 [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
843 (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
844 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
845 macterm.c. Use Vmac_dnd_known_types as acceptable flavors.
846 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New
847 implementation using create_apple_event_from_drag_ref.
848 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
849 (mac_do_receive_dragUPP): Move variables from macterm.c.
850 (install_drag_handler, remove_drag_handler): New functions.
851
852 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
853 path select also for proxy icon click.
854 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
855 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
856 (xlfdpat_create): Remove unused label `error' and trailing sentences.
857 (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
858 (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
859 macselect.c.
860 (install_drag_handler, remove_drag_handler): Add extern.
861 (mac_store_apple_event): Change return type to void. All uses changed.
862 Create Lisp object from Apple event and store it into input event.
863 (mac_make_lispy_event_code): Remove function.
864 [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
865 (install_window_handler): Call install_drag_handler.
866 (remove_window_handler): Call remove_drag_handler.
867
868 2006-05-03 Richard Stallman <rms@gnu.org>
869
870 * sound.c (Fplay_sound_internal): Dynamically allocate
871 current_sound_device and current_sound.
872 (sound_cleanup): Free them.
873
874 * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
875 when inside a keyboard macro.
876
877 2006-05-02 Andreas Schwab <schwab@suse.de>
878
879 * xmenu.c (restore_menu_items): Return a value.
880
881 2006-05-01 Martin Rudalics <rudalics@gmx.at>
882
883 * syntax.c (Fforward_comment): Detect generic comment at beginning of
884 buffer when moving backwards.
885
886 2006-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
887
888 * dispnew.c (update_window): Don't set changed_p when mode/header
889 line is updated.
890
891 * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
892 (get_glyph_face_and_encoding, get_char_face_and_encoding):
893 Don't distinguish known faces from others.
894
895 * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
896 through typeFileURL failed.
897
898 * macfns.c (mac_update_title_bar): New function.
899 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
900 (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
901 Call mac_prepare_for_quickdraw.
902
903 * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
904 (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
905 (enum pcm_status): New enum.
906 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
907 (XCharStructRow): Remove. Now validity is represented by
908 non-negativeness of sum of ascent and descent.
909 (struct MacFontStruct): Change type of member `rows'.
910 (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
911
912 * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
913 Adjust endpoints of strictly horizontal/vertical lines.
914 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
915 (pcm_init, pcm_get_status): New functions.
916 (x_per_char_metric, XLoadQueryFont): Use them instead of
917 XCharStructRow and related macros.
918 (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
919 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
920 (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
921 and window path pop-up menu on title bar.
922 (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
923
924 * macterm.h (mac_update_title_bar): Add extern.
925 (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
926 (FRAME_FILE_NAME): New macro.
927
928 * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
929
930 2006-04-30 Richard Stallman <rms@gnu.org>
931
932 * keymap.c (Fdefine_key): Improve error message
933 when KEY begins with a non-prefix key.
934
935 2006-04-30 Martin Rudalics <rudalics@gmx.at>
936
937 * syntax.c (Fforward_comment): Don't forget to break out of the loop
938 when we skipped backward over a generic comment.
939
940 2006-04-27 Nick Roberts <nickrob@snap.net.nz>
941
942 * .gdbinit (pp1, pv1): Only print value as expression is now
943 printed out by gud-print.
944 (pv1): Correct doc string.
945
946 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
947
948 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
949 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
950 keymap.c:895: error: address of register variable `def' requested.
951
952 2006-04-26 Jason Rumney <jasonr@gnu.org>
953
954 * w32term.c (construct_mouse_wheel): Handle negative coordinates.
955
956 * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
957 <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
958 where we preempt mouse_button_timer.
959
960 2006-04-25 Miles Bader <miles@gnu.org>
961
962 * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
963
964 2006-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
965
966 * process.h: Include headers for pid_t.
967
968 2006-04-24 Kim F. Storm <storm@cua.dk>
969
970 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
971 does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
972 (produce_stretch_glyph): Assume that face box height and width is
973 already included in stretch glyph size so caller doesn't have to
974 consider the extra space otherwise added (fixes problem in ses.el).
975
976 * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
977 matrices to force recalculation of tool-bar height after font change.
978
979 * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
980 Clear it when done, so we don't accidentally draw a second copy of
981 the tool-bar after resetting f->n_tool_bar_rows.
982 (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
983 we recalculate f->n_tool_bar_rows.
984
985 2006-04-23 Lars Hansen <larsh@soem.dk>
986
987 * editfns.c (find_field): Fix comment.
988 (Ffield_beginning): Fix bug when POS is at field beginning.
989
990 2006-04-22 Eli Zaretskii <eliz@gnu.org>
991
992 * puresize.h (BASE_PURESIZE): Increase to 1205000.
993
994 2006-04-21 Kim F. Storm <storm@cua.dk>
995
996 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
997 window start is at BEGV.
998
999 * dispextern.h (struct image): New member `corners'.
1000 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
1001
1002 * image.c (four_corners_best): New arg CORNERS specifies what pixels
1003 to look at in case image has margin.
1004 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
1005 (image_background, image_background_transparent)
1006 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
1007 (gif_load): Set img->corners according to image's margin spec.
1008 Use img->corners values directly where applicable.
1009 Save image extension data in img->data.lisp_val.
1010 (gif_clear_image): New function to free img->data.lisp_val.
1011 (gif_type): Use it instead of generic x_clear_image.
1012 (Fimage_extension_data): New defun.
1013 (syms_of_image): Defsubr it.
1014
1015 2006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
1016
1017 * window.c (Fdisplay_buffer): Doc fix.
1018
1019 2006-04-21 Eli Zaretskii <eliz@gnu.org>
1020
1021 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
1022
1023 2006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1024
1025 * image.c [MAC_OS] (xpm_load_image): Fill in background field
1026 while we have ximg handy.
1027
1028 * macmenu.c (restore_menu_items, save_menu_items): New functions
1029 from xmenu.c.
1030 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
1031 changes for xmenu.c.
1032
1033 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
1034 (add_mac_font_name): New function.
1035 (init_font_name_table): Use it. Adopt the first found font from
1036 those having the same family name.
1037
1038 2006-04-21 Nick Roberts <nickrob@snap.net.nz>
1039
1040 * xdisp.c (note_mouse_highlight): Use build_string.
1041
1042 2006-04-20 Lars Hansen <larsh@soem.dk>
1043
1044 * textprop.c (Fremove_list_of_text_properties):
1045 Ensure modify_region is called only when buffer is modified and that
1046 signal_after_change is allways called in that case.
1047
1048 * print.c (PRINTFINISH): Call signal_after_change.
1049
1050 2006-04-20 Kim F. Storm <storm@cua.dk>
1051
1052 * xdisp.c (redisplay_window): Fix last change.
1053
1054 * xdisp.c (redisplay_window): If current window start is not at the
1055 beginning of a line, select a new window start if buffer is modified
1056 and window start is in the modified region, but the first change is
1057 before window start.
1058
1059 2006-04-18 Richard Stallman <rms@gnu.org>
1060
1061 * xmenu.c (restore_menu_items, save_menu_items): New fns.
1062 (set_frame_menubar): Use save_menu_items. Save updated vector in
1063 the frame before unwinding it. Don't use unuse_menu_items.
1064 Don't use discard_menu_items.
1065 (digest_single_submenu): Abort if an item is not in a pane.
1066 (init_menu_items): Put the error check at the top.
1067
1068 * keymap.c (describe_map): Make "shadowed" warning more verbose.
1069
1070 * window.c (adjust_window_trailing_edge): Correctly distinguish
1071 series vs parallel cases, even when window has no parent.
1072
1073 * abbrev.c (record_symbol): New function.
1074 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
1075
1076 2006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1077
1078 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
1079 value of xmalloc.
1080
1081 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
1082 (create_apple_event_from_event_ref, xrm_get_preference_database)
1083 (cfstring_create_normalized): Don't check return value of xmalloc.
1084
1085 * macselect.c (get_scrap_target_type_list, defer_apple_events)
1086 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
1087 return value of xmalloc/xrealloc.
1088
1089 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
1090 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
1091 (XLoadQueryFont, mac_store_apple_event): Don't check return value
1092 of xmalloc.
1093
1094 2006-04-17 Kim F. Storm <storm@cua.dk>
1095
1096 * window.c (coordinates_in_window): On the vertical border,
1097 calculate the row number measured from the top of the window, not
1098 the top of the frame.
1099 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
1100 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
1101
1102 2006-04-16 Eli Zaretskii <eliz@gnu.org>
1103
1104 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
1105
1106 2006-04-16 Romain Francoise <romain@orebokech.com>
1107
1108 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
1109
1110 2006-04-16 Andreas Schwab <schwab@suse.de>
1111
1112 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
1113
1114 2006-04-15 Romain Francoise <romain@orebokech.com>
1115
1116 * puresize.h (BASE_PURESIZE): Increment to 1210000.
1117
1118 2006-04-13 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
1119
1120 * print.c (Fprin1_to_string): Mention in the `doc' that the
1121 behavior is modified by `print-level' and `print-length'.
1122
1123 2006-04-13 Kenichi Handa <handa@m17n.org>
1124
1125 * coding.c (setup_coding_system): If eol-type is not yet decided
1126 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
1127 If coding_system is nil, return 0.
1128 (code_convert_region1): Even if coding_system is nil, don't skip
1129 conversion if system_eol_type is not LF.
1130 (code_convert_string1): Likewise.
1131 (code_convert_string_norecord): Likewise.
1132
1133 2006-04-13 Kenichi Handa <handa@m17n.org>
1134
1135 * coding.c (setup_coding_system): Fix previous change.
1136 (encode_coding): If eol_type is not yet decided, use system_eol_type.
1137 (shrink_encoding_region): If eol_type is not yet decided and
1138 system_eol_type is not LF, don't shrink.
1139
1140 2006-04-13 Nick Roberts <nickrob@snap.net.nz>
1141
1142 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
1143 line.
1144
1145 2006-04-12 Richard Stallman <rms@gnu.org>
1146
1147 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
1148
1149 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
1150 (Fprocess_send_eof): Abort if fail to open null device.
1151
1152 2006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1153
1154 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
1155
1156 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
1157 assignment used as truth value. Add explicit braces to avoid
1158 ambiguous `else'.
1159 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
1160
1161 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
1162 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
1163 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
1164 Put externs in #ifdef HAVE_X_WINDOWS.
1165 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
1166 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
1167 (init_mac_osx_environment) [MAC_OSX]: Add extern.
1168
1169 * mac.c (init_process): Remove undef.
1170 (select) [MAC_OSX]: Undefine before including sysselect.h.
1171 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
1172 Remove functions and prototypes.
1173 (parse_value): Add parentheses around + inside shift.
1174 (path_from_vol_dir_name): Make static.
1175 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
1176 [!MAC_OSX] (get_path_to_system_folder): Likewise.
1177 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
1178 variable `cCode'.
1179 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
1180 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
1181
1182 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
1183 (x_set_mouse_color): Remove unused variable `dpy'.
1184 (Fx_create_frame): Remove unused variable `x_frame_count'.
1185 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
1186 (x_sync): Move from macterm.c.
1187 (Fx_file_dialog): Remove unused variable `default_filter_index'.
1188
1189 * macmenu.c (min_menu_id): Make element type explicit.
1190
1191 * macselect.c (get_flavor_type_from_symbol): Remove unused
1192 variable `val'.
1193 (get_scrap_private_timestamp, x_get_foreign_selection)
1194 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
1195 (Fmac_process_deferred_apple_events): Remove unused variables
1196 `keyword', `reply', `apple_event', `count', and `err'.
1197
1198 * macterm.c: Don't include gnu.h.
1199 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
1200 (x_sync): Move to macfns.c.
1201 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
1202 variable `mask_bits'.
1203 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
1204 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
1205 (x_mac_to_emacs_modifiers): Remove function.
1206 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
1207 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
1208 Add explicit braces to avoid ambiguous `else'.
1209 (x_make_frame_visible): Remove unused variables `type',
1210 `original_top', and `original_left'.
1211 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
1212 (x_load_font): Remove unused variables `full_name', and `value'.
1213 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
1214 Remove functions.
1215 (do_zoom_window): Reorganize variables with respect to conditionals.
1216 (init_command_handler): Remove unused variable `err'.
1217 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
1218
1219 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
1220 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
1221 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
1222 (do_menu_choice, have_menus_p, x_real_positions)
1223 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
1224 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
1225 (free_frame_menubar): Add externs.
1226
1227 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
1228 (malloc, realloc, free): Add undefs.
1229 (read_load_commands): Remove unused variable `n' and `j'.
1230 (copy_data_segment): Remove unused variable `r'.
1231
1232 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
1233 within ||. Add explicit braces to avoid ambiguous `else'.
1234 (dump_glyph_row): Remove label for `inverse_p' from legend.
1235
1236 * xfaces.c (Finternal_merge_in_global_face, try_font_list):
1237 Add explicit braces to avoid ambiguous `else'.
1238
1239 2006-04-11 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
1240
1241 * dispnew.c (init_display): Don't init X display if the user asked
1242 for a non-X display.
1243
1244 2006-04-12 Kenichi Handa <handa@m17n.org>
1245
1246 * coding.c (setup_coding_system): Use system_eol_type for default
1247 coding->eol_type.
1248
1249 2006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1250
1251 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
1252
1253 * data.c (wrong_type_argument): Try to avoid compiler warnings due
1254 to the fact the function is now marked as NO_RETURN.
1255
1256 2006-04-10 Eli Zaretskii <eliz@gnu.org>
1257
1258 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
1259
1260 2006-04-10 Romain Francoise <romain@orebokech.com>
1261
1262 * xrdb.c (gethomedir): Use xstrdup.
1263
1264 2006-04-10 Andreas Schwab <schwab@suse.de>
1265
1266 * xrdb.c (gethomedir): Make sure to always return a pointer that
1267 can be passed to free.
1268
1269 2006-04-09 Richard Stallman <rms@gnu.org>
1270
1271 * lisp.h (Fkill_emacs): Undo previous change.
1272
1273 2006-04-08 Richard Stallman <rms@gnu.org>
1274
1275 * search.c (boyer_moore): Test ch >= 0400, not >.
1276
1277 2006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
1278
1279 * puresize.h (pure_write_error): Mark as NO_RETURN.
1280
1281 * lisp.h (args_out_of_range, args_out_of_range_3)
1282
1283 2006-04-08 Eli Zaretskii <eliz@gnu.org>
1284
1285 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
1286 if a menu is active on this frame.
1287
1288 2006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
1289
1290 * lisp.h (report_file_error): Mark as NO_RETURN.
1291
1292 2006-04-08 Eli Zaretskii <eliz@gnu.org>
1293
1294 * alloc.c [STDC_HEADERS]: Include stddef.h.
1295
1296 * lisp.h (PSEUDOVECSIZE): Fix last change.
1297
1298 2006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
1299
1300 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
1301 `raw_status_high', and `raw_status_low' with plain integers, and move
1302 them to the end of the structure.
1303
1304 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
1305 pseudovector's size field so only the Lisp_Object fields get GC'd.
1306
1307 * process.c (update_status, make_process, Fdelete_process)
1308 (Fprocess_status, list_processes_1, start_process_unwind)
1309 (create_process, Fmake_network_process, server_accept_connection)
1310 (wait_reading_process_output, send_process, Fprocess_running_child_p)
1311 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
1312 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
1313 `pid' and `raw_status'.
1314 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
1315 representing PIDs that are larger than most-positive-fixnum.
1316
1317 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
1318
1319 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
1320
1321 2006-04-08 Eli Zaretskii <eliz@gnu.org>
1322
1323 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
1324
1325 2006-04-03 Paul Eggert <eggert@cs.ucla.edu>
1326
1327 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
1328 ../lib-src/b2m.c and ../lib-src/editfns.c.
1329 (Fcurrent_time_string): Use it.
1330 Document that the year might not consume 4 columns if it's outside
1331 the range 1000-9999.
1332 Check for asctime failure.
1333 Don't assume that the output string length is always exactly 24.
1334
1335 2006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1336
1337 * macterm.c (XTread_socket): Initialize variable `f' before its use.
1338
1339 2006-04-03 Kenichi Handa <handa@m17n.org>
1340
1341 * image.c: Include "charset.h" and "coding.h".
1342 (x_find_image_file): Return an encoded file name.
1343
1344 2006-04-01 Eli Zaretskii <eliz@gnu.org>
1345
1346 * configure: Regenerated.
1347
1348 2006-03-31 Kenichi Handa <handa@m17n.org>
1349
1350 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
1351
1352 2006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1353
1354 * xdisp.c (syms_of_xdisp): Fix variable name.
1355
1356 2006-03-30 Kenichi Handa <handa@m17n.org>
1357
1358 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
1359
1360 2006-03-29 Juanma Barranquero <lekktu@gmail.com>
1361
1362 * keyboard.c (process_tool_bar_item): Reorder dummy args.
1363
1364 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
1365
1366 * keyboard.c (tool_bar_items): Use map_keymap.
1367 (process_tool_bar_item): Add dummy args to fit the required interface.
1368
1369 2006-03-25 Eli Zaretskii <eliz@gnu.org>
1370
1371 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
1372 to zero before calling debug_print or safe_debug_print.
1373
1374 * print.c (print_output_debug_flag): New global variable.
1375 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
1376 OutputDebugString if print_output_debug_flag is zero.
1377
1378 2006-03-24 Paul Eggert <eggert@cs.ucla.edu>
1379
1380 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
1381 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
1382 (Fdecode_time): Cast tm_year to EMACS_INT.
1383 (Fcurrent_time_string): Report an invalid time specification if
1384 the argument is invalid. Also, check for out-of-range time stamps.
1385
1386 2006-03-24 Kim F. Storm <storm@cua.dk>
1387
1388 * xterm.c (handle_one_xevent):
1389 * w32term.c (w32_read_socket):
1390 * macterm.c (XTread_socket): Don't let key-press clear mouse face
1391 on in toolbar window if mouse-highlight is an integer.
1392
1393 * fns.c (sxhash_list): Include last non-nil CDR in hash.
1394
1395 2006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1396
1397 * macmenu.c (enum mac_menu_kind): New enum.
1398 (min_menu_id): New variable.
1399 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
1400 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
1401 min_menu_id and enumerators in enum mac_menu_kind.
1402 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
1403 All uses changed. Add range check for menu ID.
1404 (fill_menubar): Add range check for menu ID.
1405 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
1406 GetEventParameter.
1407 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
1408 for each menu kind.
1409
1410 2006-03-22 Kim F. Storm <storm@cua.dk>
1411
1412 * xdisp.c: Undo 2006-03-21 change.
1413
1414 * term.c: Define aliases for append_glyph and produce_stretch_glyph
1415 when `static' is defined to avoid name clash with those in xdisp.c.
1416
1417 * process.c (Faccept_process_output): Fix to comply with lisp reference.
1418 Change arg "timeout" to "seconds" and allow both integer and float value.
1419 Change arg "timeout-msec" to "millisec" and interpret" as milliseconds
1420 rather than microseconds. Fix doc string accordingly.
1421
1422 2006-03-21 Ken Raeburn <raeburn@raeburn.org>
1423
1424 * xdisp.c (store_next_glyph): Rename from append_glyph.
1425 (generate_stretch_glyph): Rename from produce_stretch_glyph.
1426 All callers changed accordingly.
1427
1428 2006-03-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1429
1430 * xterm.c: x_session_initialized new variable.
1431 (x_term_init): Use x_session_initialized to check if
1432 x_session_initialize should be called.
1433 (x_initialize): Initialize x_session_initialized.
1434
1435 2006-03-21 Kim F. Storm <storm@cua.dk>
1436
1437 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
1438 bitmap here, but ...
1439 (update_window_fringes): ... here, so we can test if it has changed.
1440
1441 2006-03-20 Andreas Schwab <schwab@suse.de>
1442
1443 * dispnew.c (init_display): Check DISPLAY here.
1444
1445 * emacs.c (main): Don't check here.
1446
1447 * xterm.c (x_display_ok): Don't use DISPLAY env var.
1448
1449 2006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1450
1451 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
1452 mixup (YAILOM).
1453
1454 2006-03-20 Eli Zaretskii <eliz@gnu.org>
1455
1456 * emacs.c (main): Fix last change.
1457
1458 2006-03-20 Kenichi Handa <handa@m17n.org>
1459
1460 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
1461
1462 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
1463
1464 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
1465
1466 * xterm.c (x_term_init): Remove unnecessary GCPRO.
1467
1468 2006-03-19 Kim F. Storm <storm@cua.dk>
1469
1470 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
1471 so it doesn't associate overlay string with following glyph by default.
1472 Allow integer property value to specify explicit number of buffer
1473 positions associate with overlay string.
1474
1475 2006-03-18 Chong Yidong <cyd@stupidchicken.com>
1476
1477 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
1478
1479 2006-03-18 Nozomu Ando <nand@mac.com>
1480
1481 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
1482 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
1483 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
1484 Don't redefine.
1485
1486 * m/mips.h: Don't use unexmips on NetBSD.
1487 (LIBS_MACHINE): Move definition lower, so it doesn't use
1488 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
1489 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
1490
1491 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
1492 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
1493 option is broken (e.g., MIPS/NetBSD).
1494
1495 2006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
1496
1497 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
1498 Remove the HAVE_X_WINDOWS conditional.
1499
1500 2006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
1501
1502 * emacs.c (main): If user asks for a display that is unavailable,
1503 simulate -nw.
1504
1505 * xterm.c (x_display_ok): New function.
1506
1507 * xterm.h: Add prototype for x_display_ok.
1508
1509 2006-03-18 Eli Zaretskii <eliz@gnu.org>
1510
1511 * w32fns.c (Fw32_select_font): Doc fix.
1512
1513 2006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1514
1515 * image.c [MAC_OS] (XPutPixel, XGetPixel)
1516 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
1517 version when depth is 32.
1518 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
1519 New function.
1520 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
1521 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
1522
1523 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
1524 Create GWorld in ARGB pixel format.
1525 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
1526 Remove functions.
1527 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
1528 instead of mac_copy_area/mac_copy_area_with_mask.
1529
1530 2006-03-15 Kim F. Storm <storm@cua.dk>
1531
1532 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
1533 empty row. Fixes memory corruption revealed by 2006-03-02 change.
1534 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
1535 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
1536 width is exactly the same as the window width. Don't count a final
1537 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
1538
1539 2006-03-15 Juanma Barranquero <lekktu@gmail.com>
1540
1541 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
1542 conditional on HAVE_NTGUI, not WINDOWS_NT.
1543
1544 2006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1545
1546 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
1547
1548 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
1549
1550 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
1551 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
1552 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
1553 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
1554 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
1555 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
1556 instead of mac_draw_bitmap.
1557 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
1558 define_fringe_bitmap and destroy_fringe_bitmap.
1559
1560 2006-03-14 Chong Yidong <cyd@stupidchicken.com>
1561
1562 * xterm.c (x_uncatch_errors): Block input for entire function.
1563
1564 2006-03-12 Jason Rumney <jasonr@gnu.org>
1565
1566 * w32fns.c (Fx_create_frame): Remove call to
1567 Qface_set_after_frame_default (from xfns.c 2003-05-26).
1568
1569 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
1570 finished with the menu.
1571
1572 * w32term.c: Sync 2005-10-24 xterm.c changes.
1573 (last_mouse_glyph_frame): New var.
1574 (note_mouse_movement): Say mouse moved if current frame differs
1575 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
1576 (w32_mouse_position): Set last_mouse_glyph_frame.
1577 Remove OLD_REDISPLAY_CODE block.
1578
1579 2006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1580
1581 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
1582
1583 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
1584 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
1585
1586 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
1587
1588 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
1589
1590 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
1591 (x_draw_composite_glyph_string_foreground)
1592 (x_draw_image_foreground): Undo previous changes.
1593 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
1594 argument of mac_draw_rectangle.
1595 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
1596 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
1597 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
1598 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
1599 [USE_CG_DRAWING]: New functions.
1600 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
1601 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
1602 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
1603 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
1604 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
1605 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
1606 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
1607
1608 2006-03-12 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1609
1610 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
1611
1612 2006-03-11 Jason Rumney <jasonr@gnu.org>
1613
1614 * w32fns.c (signal_user_input): New function.
1615 (post_character_message): Use it for keyboard input.
1616 (w32_msg_pump): Use it for mouse input.
1617
1618 2006-03-11 Luc Teirlinck <teirllm@auburn.edu>
1619
1620 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
1621 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
1622
1623 2006-03-11 Eli Zaretskii <eliz@gnu.org>
1624
1625 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
1626 if a menu is already active (the menubar_active flag is on).
1627
1628 2006-03-11 David Ponce <david@dponce.com>
1629
1630 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
1631
1632 2006-03-11 Eli Zaretskii <eliz@gnu.org>
1633
1634 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
1635 the list of unused display error handling functions.
1636
1637 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
1638 HAVE_X_WINDOWS.
1639 (internal_condition_case, internal_condition_case_1)
1640 (internal_condition_case_2): Call x_catching_errors only if
1641 HAVE_X_WINDOWS.
1642
1643 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
1644 Don't include sys/resource.h unless defined.
1645
1646 2006-03-11 Richard Stallman <rms@gnu.org>
1647
1648 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
1649
1650 * vm-limit.c (get_lim_data, lim_data, data_space_start):
1651 Move from mem-limits.h.
1652 (enum warnlevel): New data type.
1653 (check_memory_limits): Rewrite the logic about warnings.
1654 Use standard `struct rlimit'. Check return values for nonsense.
1655 (memory_warnings): Always clear lim_data.
1656
1657 * mem-limits.h (get_lim_data, lim_data, data_space_start):
1658 Move to vm-limit.c.
1659
1660 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
1661
1662 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
1663 (internal_condition_case_1, internal_condition_case_2):
1664 Abort if within unclosed x_catch_errors.
1665
1666 2006-03-11 Romain Francoise <romain@orebokech.com>
1667
1668 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
1669
1670 2006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1671
1672 * lisp.h: Remove duplicate prototypes. Make the prototype of
1673 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
1674
1675 2006-03-11 Eli Zaretskii <eliz@gnu.org>
1676
1677 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
1678 argument of XDrawRectangle.
1679
1680 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
1681
1682 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
1683 (x_draw_glyph_string_foreground)
1684 (x_draw_composite_glyph_string_foreground)
1685 (x_draw_image_foreground): Don't subtract 1 from width and height
1686 arguments to mac_draw_rectangle.
1687 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
1688
1689 2006-03-10 Kim F. Storm <storm@cua.dk>
1690
1691 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
1692
1693 2006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
1694
1695 * alloc.c (USE_POSIX_MEMALIGN): New macro.
1696 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
1697
1698 2006-03-09 Kenichi Handa <handa@m17n.org>
1699
1700 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
1701 ASCII component of a composition.
1702
1703 2006-03-08 Luc Teirlinck <teirllm@auburn.edu>
1704
1705 * window.c: Declare preserve_y as a static global variable.
1706 (window_scroll_pixel_based): No longer declare preserve_y;
1707 it is global now.
1708 (syms_of_window): Set preserve_y to -1.
1709
1710 2006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1711
1712 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
1713 depth is 32.
1714 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
1715 depth is 32.
1716
1717 2006-03-06 Chong Yidong <cyd@stupidchicken.com>
1718
1719 * xdisp.c (handle_invisible_prop): Don't update it->position with
1720 a buffer position if we're in a display string.
1721
1722 2006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1723
1724 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
1725 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
1726
1727 * macfns.c (x_default_scroll_bar_color_parameter)
1728 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
1729 Remove unnecessary prototypes.
1730 (x_set_scroll_bar_default_width):
1731 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
1732 (mac_set_scroll_bar_width): New function.
1733 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
1734
1735 * macterm.c (get_control_part_bounds): Fix type of return value.
1736 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
1737 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
1738 scroll bar if it is not tall enough to display scroll bar thumb.
1739 [USE_CARBON_EVENTS] (mac_convert_event_ref)
1740 (mac_handle_command_event, mac_handle_window_event)
1741 (mac_handle_mouse_event): Check error code of GetEventParameter.
1742 (convert_fn_keycode) [MAC_OSX]: Likewise.
1743
1744 2006-03-05 Andreas Schwab <schwab@suse.de>
1745
1746 * xselect.c (x_catch_errors_unwind): Fix missing return value.
1747
1748 2006-03-02 Kim F. Storm <storm@cua.dk>
1749
1750 * frame.h (struct frame): New member n_tool_bar_rows.
1751
1752 * xdisp.c: Minimize the unpleasent visual impact of the requirement
1753 that non-toolkit tool-bars must occupy an integral number of screen
1754 lines, by distributing the rows evenly over the tool-bar screen area.
1755 (Vtool_bar_border): New variable.
1756 (syms_of_xdisp): DEFVAR_LISP it.
1757 (display_tool_bar_line): Add HEIGHT arg for desired row height.
1758 Make tool-bar row the desired height. Use default face for border
1759 below tool-bar.
1760 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
1761 actual tool-bar rows.
1762 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
1763 Adjust the height of the tool-bar rows to fill tool-bar screen area.
1764 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
1765 is resized.
1766
1767 2006-03-01 Luc Teirlinck <teirllm@auburn.edu>
1768
1769 * search.c (Fregexp_quote): Do not precede a literal `]' with two
1770 backslashes to try to make clear that it has a literal meaning; it
1771 does not do that. (It could close a character alternative
1772 containing a backslash.)
1773
1774 2006-02-28 Chong Yidong <cyd@stupidchicken.com>
1775
1776 * xselect.c (x_catch_errors_unwind): New function.
1777 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
1778 (Fx_get_atom_name): Call x_uncatch_errors earlier.
1779
1780 * window.c (Qscroll_up, Qscroll_down): New syms.
1781 (window_scroll_pixel_based): Make preserve_y static to avoid
1782 getting point stuck when scrolling 1 line.
1783
1784 2006-02-26 Chong Yidong <cyd@stupidchicken.com>
1785
1786 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
1787
1788 * xterm.c (x_load_font, x_term_init, XTmouse_position)
1789 (handle_one_xevent, x_connection_closed, x_list_fonts):
1790 No arg for x_uncatch_errors.
1791
1792 * xselect.c (x_own_selection, x_decline_selection_request)
1793 (x_reply_selection_request, x_get_foreign_selection)
1794 (Fx_get_atom_name, Fx_send_client_event): Likewise.
1795
1796 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
1797 Likewise.
1798
1799 2006-02-26 Luc Teirlinck <teirllm@auburn.edu>
1800
1801 * lread.c: Declare Vload_file_rep_suffixes instead of
1802 deleted variable default_suffixes.
1803 (Fget_load_suffixes): New function.
1804 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
1805 No longer use deleted variable default_suffixes. Update docstring.
1806 (syms_of_lread): defsubr Sget_load_suffixes.
1807 Expand `load-suffixes' docstring.
1808 Delete default_suffixes and DEFVAR_LISP the new variable
1809 `load-file-rep-suffixes'.
1810
1811 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
1812 of Vload_suffixes.
1813
1814 * lisp.h: EXFUN Fget_load_suffixes.
1815 Extern Vload_file_rep_suffixes.
1816
1817 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
1818 with lisp.h.
1819
1820 2006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
1821
1822 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
1823 qualifier which was trying to avoid the bug that was fixed by
1824 yesterday's changes to xterm.c.
1825
1826 2006-02-25 Chong Yidong <cyd@stupidchicken.com>
1827
1828 * xterm.h (x_catch_errors) Return value changed to void.
1829 (x_uncatch_errors): Delete unused count argument.
1830
1831 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
1832 it can be called in a signal handler.
1833 (x_catch_errors_unwind): Function deleted.
1834 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
1835 (x_check_errors): Call x_uncatch_errors before signalling error.
1836
1837 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
1838 (x_connection_closed, x_list_fonts): Use new versions of
1839 x_catch_errors and x_uncatch_errors.
1840
1841 * xselect.c (x_own_selection, x_decline_selection_request)
1842 (x_reply_selection_request, x_get_foreign_selection)
1843 (Fx_get_atom_name, Fx_send_client_event): Likewise.
1844
1845 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
1846 Likewise.
1847
1848 * eval.c (record_unwind_protect): Add an assertion.
1849
1850 2006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
1851
1852 * process.c (Fmake_network_process): Init the process's mark.
1853
1854 2006-02-25 Kim F. Storm <storm@cua.dk>
1855
1856 * buffer.c (modify_overlay): Force redisplay if we modify an
1857 overlay at the end of the buffer.
1858
1859 2006-02-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1860
1861 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
1862 nil the image file has been removed, in that case use the (cached)
1863 pixmap.
1864
1865 2006-02-24 Kenichi Handa <handa@m17n.org>
1866
1867 * fileio.c (Finsert_file_contents): When a text is replaced
1868 partially, be sure to set point before the inserted characters.
1869
1870 2006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
1871
1872 * xfns.c (Fx_file_dialog): Return a decoded file name.
1873
1874 2006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1875
1876 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
1877 glyph whose face is extended to the text area end.
1878
1879 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
1880 values if control is not visible or values are not changed.
1881
1882 2006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
1883
1884 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
1885 The default `window' should not be "on a different frame".
1886
1887 2006-02-22 Kim F. Storm <storm@cua.dk>
1888
1889 * indent.c (Fvertical_motion): Only try to move back if we can.
1890
1891 2006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1892
1893 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
1894 n_clip_rects.
1895
1896 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
1897 xmenu.c.
1898
1899 * macterm.c (GC_CLIP_REGION): Remove macro.
1900 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
1901 All uses changed. Don't do clipping if n_clip_rects is zero.
1902 (mac_set_clip_rectangles): Use xassert instead of abort.
1903 Set n_clip_rects. Don't make clip_region empty when number of
1904 clipping rectangles is zero.
1905 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
1906 calling mac_set_clip_rectangles.
1907 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
1908 avoid multiple redraws.
1909
1910 2006-02-22 Kim F. Storm <storm@cua.dk>
1911
1912 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
1913
1914 2006-02-21 Kim F. Storm <storm@cua.dk>
1915
1916 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
1917
1918 2006-02-21 Zhang Wei <brep@newsmth.org>
1919
1920 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
1921 returning it.
1922
1923 2006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1924
1925 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
1926 (standard_bitmaps): Use it.
1927
1928 2006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1929
1930 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
1931 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
1932 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
1933 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
1934 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
1935 Draw background if BG_WIDTH is not zero. Use float constants as
1936 divisors instead of double. Use alloca instead of xmalloc/xfree.
1937 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
1938 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
1939 mac_draw_image_string* functions.
1940 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
1941 some fonts when srcCopy text transfer mode might be used.
1942 (mac_begin_clip, mac_end_clip): Check if region is empty.
1943 (mac_set_clip_rectangles): When resetting clip region, make it
1944 empty instead of disposing of it.
1945
1946 2006-02-20 Kim F. Storm <storm@cua.dk>
1947
1948 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
1949
1950 * buffer.h (struct buffer): New members fringe_indicator_alist and
1951 fringe_cursor_alist.
1952
1953 * buffer.c (init_buffer_once): Set dummy default values for
1954 fringe-indicator-alist and fringe-cursor-alist. The proper
1955 default values are set by pre-loading fringe.el.
1956 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
1957 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
1958 corresponding default- variables.
1959
1960 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
1961 to use `int'.
1962 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
1963 Define explicitly.
1964 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
1965 (Qhollow_small): New variables.
1966 (syms_of_fringe): Intern and staticpro them.
1967 (question_mark_bits): Rename from unknown_bits.
1968 (left_curly_arrow_bits): Rename from continuation_bits.
1969 (right_curly_arrow_bits): Rename from continued_bits.
1970 (left_triangle_bits): Rename from ov_bits.
1971 (right_triangle_bits): Add.
1972 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
1973 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
1974 (filled_square_bits): Add.
1975 (vertical_bar_bits): Rename from bar_cursor_bits.
1976 (horizontal_bar_bits): Rename from hbar_cursor_bits.
1977 (empty_line_bits): Rename from zv_bits.
1978 (standard_bitmaps): Update to use new names.
1979 (draw_fringe_bitmap_1): Make static.
1980 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
1981 to map from logical cursors and indicators to physical bitmaps.
1982 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
1983 bitmaps using symbol names instead of bitmap numbers.
1984 (update_window_fringes): Use logical indicator symbol names
1985 instead of bitmap numbers for logical. Add bitmap cache.
1986 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
1987
1988 2006-02-20 Chong Yidong <cyd@stupidchicken.com>
1989
1990 * regex.c: Revert 2006-02-19 change.
1991 (xmalloc, xrealloc): Define these when not linked to Emacs.
1992 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
1993
1994 2006-02-19 Luc Teirlinck <teirllm@auburn.edu>
1995
1996 * regex.c (extend_range_table_work_area): Fix typo.
1997
1998 2006-02-19 Richard M. Stallman <rms@gnu.org>
1999
2000 * xterm.c (x_catch_errors): Use xmalloc.
2001
2002 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
2003 (regex_compile): Likewise.
2004 (regcomp): Use xmalloc.
2005
2006 * gtkutil.c (malloc_widget_value): Use xmalloc.
2007
2008 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
2009 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
2010
2011 * xmenu.c (digest_single_submenu): When pane_string is empty,
2012 do initialize save_wv.
2013
2014 2006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2015
2016 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
2017 w->update_mode_line if arg F is not the selected frame.
2018
2019 * macmenu.c (popup_activated_flag, submenu_id)
2020 (next_menubar_widget_id): Remove variables.
2021 (initialize_frame_menubar): Remove function.
2022 (pop_down_menu, mac_menu_show): Simplify save value.
2023 (dispose_menus): New function.
2024 (pop_down_menu, fill_menubar): Use it.
2025 (fill_submenu): Remove function. All uses changed to fill_menu.
2026 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
2027 POS. Don't call SetMenuItemHierarchicalID here.
2028 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
2029 used next. Call SetMenuItemHierarchicalID here.
2030 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
2031 objects if needed. Reuse existing menu bar titles if possible.
2032 (set_frame_menubar): Don't clean up menu objects here.
2033
2034 2006-02-18 Chong Yidong <cyd@stupidchicken.com>
2035
2036 * window.c (window_min_size_1): Ensure room for the scroll bar and
2037 fringes.
2038
2039 2006-02-17 Romain Francoise <romain@orebokech.com>
2040
2041 * puresize.h (BASE_PURESIZE): Increment to 1200000.
2042
2043 2006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
2044
2045 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
2046 addition of the BLOCK_INPUTs.
2047
2048 2006-02-17 Juanma Barranquero <lekktu@gmail.com>
2049
2050 * window.c (Fset_window_scroll_bars): Doc fix.
2051
2052 2006-02-17 Kenichi Handa <handa@m17n.org>
2053
2054 * xdisp.c (display_mode_element): Call display_string with correct
2055 PREC arg (which must be a number of characters, not column width).
2056
2057 2006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2058
2059 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
2060
2061 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
2062
2063 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
2064
2065 2006-02-14 Richard M. Stallman <rms@gnu.org>
2066
2067 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
2068
2069 * m/ibms390x.h: New file.
2070
2071 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2072
2073 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
2074 value of x-gtk-whole-detached-tool-bar.
2075 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
2076
2077 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
2078
2079 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2080
2081 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
2082
2083 * xterm.h: Declare x_x_to_emacs_modifiers.
2084
2085 * gtkutil.c (xg_tool_bar_button_cb): New function.
2086 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
2087 store modifiers in event.
2088 (update_frame_tool_bar): Connect button-release-event to
2089 xg_tool_bar_button_cb.
2090
2091 2006-02-13 Richard M. Stallman <rms@gnu.org>
2092
2093 * .gdbinit (xwindow): Update the code to show the window box.
2094
2095 2006-02-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2096
2097 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
2098
2099 2006-02-12 Richard M. Stallman <rms@gnu.org>
2100
2101 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
2102
2103 2006-02-11 Eli Zaretskii <eliz@gnu.org>
2104
2105 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
2106 (syms_of_keyboard): DEVFAR_LISP and initialize it.
2107 (parse_tool_bar_item, parse_menu_item): If that variable is
2108 non-nil, don't disable menu items and tool-bar buttons.
2109
2110 2006-02-11 Juanma Barranquero <lekktu@gmail.com>
2111
2112 * doc.c (Fsubstitute_command_keys): Doc fix.
2113
2114 2006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
2115
2116 * data.c (Findirect_function): Rewrite docstring.
2117 Fix omission bug: Declare new arg NOERROR.
2118
2119 2006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2120
2121 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
2122 if window_desc is not set yet.
2123 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
2124 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
2125 parameter `visibility' is `icon'.
2126 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
2127 instead of "fontset-mac".
2128 (Fx_focus_frame): New defun.
2129 (syms_of_macfns): Defsubr it.
2130
2131 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
2132 for unfocused frame.
2133 (x_raise_frame): Call BringToFront instead of SelectWindow.
2134 (x_lower_frame): Use NULL instead of nil.
2135 (x_make_frame_visible): Don't call SelectWindow.
2136 (XTread_socket): Increment handling_signal at the start, decrement
2137 it at the end.
2138 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
2139 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
2140
2141 2006-02-10 Kim F. Storm <storm@cua.dk>
2142
2143 * data.c (Findirect_function): Add NOERROR arg. All callers changed
2144 to pass Qnil for NOERROR.
2145
2146 * keymap.c (current_minor_maps_error): Remove.
2147 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
2148 instead of using internal_condition_case_1+current_minor_maps_error.
2149
2150 2006-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2151
2152 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
2153 frames for GTK, in that case it is the tool bar. This is so that
2154 highlighted text get reset properly.
2155
2156 2006-02-09 Juanma Barranquero <lekktu@gmail.com>
2157
2158 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
2159
2160 2006-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2161
2162 * window.c (adjust_window_trailing_edge): Check that shrinking
2163 does not set a window to size zero or less.
2164
2165 2006-02-08 Miles Bader <miles@gnu.org>
2166
2167 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
2168 of Fget_text_property (other field functions work with overlays as
2169 well as text-properties).
2170
2171 2006-02-07 Kenichi Handa <handa@m17n.org>
2172
2173 * dispextern.h (unibyte_display_via_language_environment): Extern it.
2174
2175 * xterm.h (unibyte_display_via_language_environment):
2176 * w32term.h (unibyte_display_via_language_environment):
2177 * macterm.h (unibyte_display_via_language_environment): Delete extern.
2178
2179 2006-02-07 Kenichi Handa <handa@m17n.org>
2180
2181 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
2182 (produce_glyphs): Set the character to print in
2183 it->char_to_display. Handle unibyte-display-via-language-environment.
2184 (produce_stretch_glyph): Set character to print in it->char_to_display.
2185
2186 2006-02-06 Kenichi Handa <handa@m17n.org>
2187
2188 * lread.c (openp): Initialize encoded_fn before GCPRO it.
2189
2190 2006-02-05 Ken Raeburn <raeburn@raeburn.org>
2191
2192 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
2193
2194 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
2195 Cast bitfield value to EMACS_INT, to suppress gcc warning.
2196
2197 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
2198 defining.
2199
2200 2006-02-03 Kim F. Storm <storm@cua.dk>
2201
2202 * xdisp.c: Cache last merged escape glyph face.
2203 (last_escape_glyph_frame, last_escape_glyph_face_id)
2204 (last_escape_glyph_merged_face_id): New variables.
2205 (get_next_display_element): Use/update them.
2206 (redisplay_internal): Reset them before redisplay.
2207
2208 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
2209 Only recheck faces after displaying ellipsis.
2210
2211 2006-02-02 Kenichi Handa <handa@m17n.org>
2212
2213 * coding.c (decode_composition_emacs_mule): Fix handling of
2214 incorrect format data.
2215
2216 2006-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2217
2218 * gtkutil.c (update_frame_tool_bar): Use new tool bar functions
2219 (gtk_toolbar_insert) so we can have tool bars of different sizes.
2220
2221 2006-01-30 Luc Teirlinck <teirllm@auburn.edu>
2222
2223 * data.c (Flistp): Doc fix.
2224
2225 2006-01-30 Juanma Barranquero <lekktu@gmail.com>
2226
2227 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
2228 Fix typos in docstrings.
2229
2230 2006-01-28 Luc Teirlinck <teirllm@auburn.edu>
2231
2232 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
2233
2234 2006-01-27 Chong Yidong <cyd@stupidchicken.com>
2235
2236 * alloc.c (make_interval, allocate_string)
2237 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
2238 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
2239 global variables.
2240
2241 2006-01-27 Eli Zaretskii <eliz@gnu.org>
2242
2243 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
2244 the MSDOS definition.
2245
2246 2006-01-26 Richard M. Stallman <rms@gnu.org>
2247
2248 * alloc.c (check_pure_size): Make overflow message an "error message".
2249
2250 * keymap.c (Fmap_keymap): Doc fix.
2251
2252 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
2253 unless they were cleared out.
2254
2255 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
2256
2257 2006-01-26 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2258
2259 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
2260 (find_field): Set before_field to after_field when pos is at BEGV.
2261 (Fline_beginning_position, Fline_end_position):
2262 Clarify confusing doc string.
2263
2264 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
2265 string.
2266
2267 2006-01-26 Kenichi Handa <handa@m17n.org>
2268
2269 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
2270 current_dir, and error_file. On reporting an error, decode them
2271 back.
2272
2273 2006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2274
2275 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
2276 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
2277 Don't check for quit, since any loop will go through fail or jump.
2278
2279 2006-01-24 Chong Yidong <cyd@stupidchicken.com>
2280
2281 * alloc.c (allocate_string_data): Update next_free immediately, to
2282 reduce risk of memory clobberage.
2283
2284 2006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2285
2286 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
2287 display when point moves across an ellipsis. If there are
2288 adjacent invisible texts, don't lose the second one's ellipsis.
2289 (x_produce_glyphs): Doc fix.
2290
2291 2006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
2292
2293 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
2294
2295 2006-01-23 Kim F. Storm <storm@cua.dk>
2296
2297 * xdisp.c (handle_single_display_spec): Fix handling of space
2298 property on char from string: set *position rather than
2299 it->current.pos.
2300 (produce_stretch_glyph): Reduce width of stretch glyphs so they
2301 don't get wider than the window (unless truncate-lines is on).
2302
2303 2006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
2304
2305 * xterm.c: Avoid allocating Lisp data from a signal handler.
2306 (x_error_message): New var to replace x_error_message_string.
2307 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
2308 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
2309 (syms_of_xterm): Use it instead of x_error_message_string.
2310
2311 * alloc.c (lisp_align_free): Add an assertion.
2312 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
2313 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
2314 a signal handler.
2315
2316 2006-01-21 Luc Teirlinck <teirllm@auburn.edu>
2317
2318 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
2319
2320 2006-01-21 Romain Francoise <romain@orebokech.com>
2321
2322 * xdisp.c (get_window_cursor_type): Fix last change.
2323 Update copyright year.
2324
2325 2006-01-20 Eli Zaretskii <eliz@gnu.org>
2326
2327 * lread.c (Fload): Don't leak the file descriptor returned by
2328 openp if we are going to signal an error.
2329
2330 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
2331 directly to _close.
2332 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
2333 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
2334 to _read.
2335 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
2336 directly to _write.
2337
2338 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
2339 if it is NULL.
2340
2341 2006-01-20 Kenichi Handa <handa@m17n.org>
2342
2343 * puresize.h (BASE_PURESIZE): Increment to 1190000.
2344
2345 2006-01-19 Chong Yidong <cyd@stupidchicken.com>
2346
2347 * xdisp.c (get_window_cursor_type): Use cursor type specified by
2348 the selected buffer for the echo area too.
2349
2350 2006-01-19 Richard M. Stallman <rms@gnu.org>
2351
2352 * keymap.c (Fmap_keymap): Doc fix.
2353
2354 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
2355
2356 * keyboard.c (echo_char): Don't omit the space between first two
2357 echoed chars.
2358
2359 * minibuf.c (read_minibuf): Fix previous change.
2360
2361 2006-01-19 Kenichi Handa <handa@m17n.org>
2362
2363 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
2364
2365 2006-01-17 Richard M. Stallman <rms@gnu.org>
2366
2367 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
2368 value in f->param_alist.
2369
2370 2006-01-15 Andreas Schwab <schwab@suse.de>
2371
2372 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
2373
2374 2006-01-13 Richard M. Stallman <rms@gnu.org>
2375
2376 * Makefile.in: Define new macro WINDOW_SUPPORT.
2377 (lisp): Use it.
2378 (SOME_MACHINE_LISP): Add conditionally loaded files.
2379
2380 2006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2381
2382 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
2383 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
2384 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
2385 decomposed form.
2386
2387 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
2388 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
2389 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
2390 macro. Also try member ifr_addr when getting netmask.
2391
2392 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
2393
2394 * fileio.c (Fexpand_file_name): Remove redundant tests.
2395 Fix elimination of // so that it doesn't prevent elimination of an
2396 immediately following /. or /..
2397
2398 2006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2399
2400 * gtkutil.c (xg_toggle_notify_cb): New function.
2401 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
2402 xg_toggle_notify_cb.
2403 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
2404 parameter value changes so the toggle button gets updated.
2405
2406 2006-01-06 Nick Roberts <nickrob@snap.net.nz>
2407
2408 * .gdbinit: Fix typo.
2409
2410 2006-01-05 Eli Zaretskii <eliz@gnu.org>
2411
2412 * .gdbinit: Fix last change.
2413
2414 2006-01-05 Kim F. Storm <storm@cua.dk>
2415
2416 * process.c (Fmake_network_process): Use AF_INET instead of
2417 AF_UNSPEC when AF_INET6 is not defined.
2418
2419 2006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2420
2421 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
2422 Don't check that the other type is known file-related one.
2423
2424 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
2425 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
2426 OS X 10.4 and later.
2427
2428 2006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2429
2430 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
2431 let GTK do all image processing. Importing Emacs own pixmaps to GTK
2432 looks bad for inactive tool bar items with some Gnome themes.
2433
2434 2006-01-04 Eli Zaretskii <eliz@gnu.org>
2435
2436 * .gdbinit: Avoid a warning message when x_error_quitter is not
2437 compiled in.
2438
2439 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
2440 for w32.
2441
2442 2006-01-04 Kim F. Storm <storm@cua.dk>
2443
2444 * process.c: Add IPv6 support.
2445 (Qipv4, Qipv6): New vars.
2446 (syms_of_process): Intern and staticpro them.
2447 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
2448 with or without port number. Handle 4 element vector as IPv4 address
2449 without port number.
2450 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
2451 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
2452 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
2453 request that address family only. :family nil or omitted means to
2454 determine address family from the specified :host and :service.
2455 (ifflag_table): Add missing OpenBSD IFF_ flags.
2456 (server_accept_connection): Handle IPv6 addresses.
2457 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
2458
2459 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
2460 determine which breakpoints to set.
2461
2462 2006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
2463
2464 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
2465
2466 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
2467
2468 2006-01-03 Romain Francoise <romain@orebokech.com>
2469
2470 * emacs.c (main): Update copyright year.
2471
2472 2006-01-03 Ken Raeburn <raeburn@gnu.org>
2473
2474 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
2475 nil for the call to internal_delete_file.
2476
2477 2006-01-01 Ken Raeburn <raeburn@gnu.org>
2478
2479 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
2480 to nil for the call to Fwrite_region.
2481
2482 2005-12-31 Richard M. Stallman <rms@gnu.org>
2483
2484 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
2485
2486 2005-12-31 Eli Zaretskii <eliz@gnu.org>
2487
2488 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
2489
2490 2005-12-30 Luc Teirlinck <teirllm@auburn.edu>
2491
2492 * textprop.c (set_text_properties): Reword description of return value.
2493 Return Qnil if caller wants to remove all text properties from a
2494 string and the string already has no intervals.
2495
2496 2005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
2497
2498 * term.c (visible_cursor): New boolean var.
2499 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
2500 visible_cursor.
2501 (syms_of_term): Export the new var as "visible-cursor".
2502
2503 2005-12-30 Eli Zaretskii <eliz@gnu.org>
2504
2505 * .gdbinit: Tell users not to worry about GDB warnings that some
2506 functions do not exist in the binary.
2507
2508 2005-12-30 Andreas Schwab <schwab@suse.de>
2509
2510 * process.c (Fnetwork_interface_info): Correctly terminate the
2511 loop over ifflag_table.
2512
2513 2005-12-29 Richard M. Stallman <rms@gnu.org>
2514
2515 * lread.c (readevalloop): Test for reading a whole buffer
2516 before actually reading anything. Handle all cases, including
2517 START = END = nil and an already-narrowed buffer.
2518 Convert END to a marker if it is a number.
2519
2520 * keymap.c (describe_map): Put sparse map elements into an array,
2521 sort them, then output a sequence of identical bindings on one line.
2522 (struct describe_map_elt): New data type.
2523 (describe_map_compare): New function.
2524
2525 2005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2526
2527 * gtkutil.c (xg_get_file_with_chooser): Change message shown
2528 in file chooser.
2529
2530 2005-12-27 Richard M. Stallman <rms@gnu.org>
2531
2532 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
2533 not the current one.
2534
2535 * minibuf.c (Fminibuffer_message): Doc fix.
2536 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
2537
2538 * eval.c (do_autoload): Ignore elements of Vautoload_queue
2539 where car is not symbol.
2540
2541 2005-12-27 Kenichi Handa <handa@m17n.org>
2542
2543 * charset.c (lisp_string_width): Check multibyteness of STRING.
2544
2545 2005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2546
2547 * xfns.c: x_show_hidden_files, new variable.
2548 (syms_of_xfns): Defvar it.
2549
2550 * gtkutil.c (xg_toggle_visibility_cb): New function.
2551 (xg_get_file_with_chooser): Add toggle hidden files and a message
2552 to the new file chooser dialog. Show hidden files if
2553 x_show_hidden_files is non-zero.
2554
2555 2005-12-26 Richard M. Stallman <rms@gnu.org>
2556
2557 * keyboard.h: Undo previous change.
2558
2559 * Makefile.in (undo.o): Undo previous change.
2560
2561 * undo.c: Undo previous change.
2562
2563 2005-12-26 Luc Teirlinck <teirllm@auburn.edu>
2564
2565 * keyboard.h: extern last_point_position_window.
2566
2567 * undo.c: include keyboard.h.
2568
2569 * Makefile.in (undo.o): Depend on keyboard.h.
2570
2571 2005-12-26 Richard M. Stallman <rms@gnu.org>
2572
2573 * commands.h (last_point_position_window): Declare.
2574
2575 * undo.c: Depend on window.h.
2576 (record_point): Save old point from the correct window.
2577
2578 * keyboard.c (last_point_position_window): New variable.
2579 (command_loop_1): Set last_point_position_window.
2580 (syms_of_keyboard): Init it.
2581
2582 * Makefile.in (undo.o): Depend on window.h.
2583
2584 2005-12-25 Richard M. Stallman <rms@gnu.org>
2585
2586 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
2587 to undo a `provide'.
2588
2589 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
2590
2591 2005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
2592
2593 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
2594 define for FreeBSD on this platform.
2595
2596 2005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2597
2598 * macterm.h (TYPE_FILE_NAME): New define.
2599 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
2600
2601 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
2602 Add prototypes. Make static.
2603 (mac_aedesc_to_lisp): Initialize err to noErr.
2604 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
2605 (init_coercion_handler): New functions.
2606 (Fmac_coerce_ae_data): Use coercion of Apple event data for
2607 translation from/to file names.
2608
2609 * macterm.c: Don't include sys/param.h.
2610 (init_coercion_handler): Add extern.
2611 [MAC_OS8] (main): Call init_coercion_handler.
2612 (mac_initialize) [MAC_OSX]: Likewise.
2613 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
2614 Apple event data for translation from/to file names.
2615
2616 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
2617
2618 * image.c [MAC_OS] (find_image_fsspec): Likewise.
2619
2620 2005-12-23 Martin Rudalics <rudalics@gmx.at>
2621
2622 * insdel.c (insert, insert_and_inherit, insert_before_markers)
2623 (insert_before_markers_and_inherit): Make sure FROM is correct
2624 when `after-change-functions' are called.
2625
2626 2005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2627
2628 * xfns.c (Fx_uses_old_gtk_dialog): New function.
2629
2630 * gtkutil.c (xg_uses_old_file_dialog): New function.
2631 (xg_get_file_name): Use xg_uses_old_file_dialog.
2632
2633 * gtkutil.h: Declare xg_uses_old_file_dialog.
2634
2635 2005-12-22 Richard M. Stallman <rms@gnu.org>
2636
2637 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
2638
2639 2005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2640
2641 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
2642
2643 * macgui.h (XCharStruct): Remove member `valid_p'.
2644 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
2645 (XCharStructRow): New typedef.
2646 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
2647 New macros.
2648 (struct MacFontStruct): Add member `bounds'. Remove member
2649 `per_char'. All uses for QuichDraw Text fonts are changed to
2650 `bounds.per_char'. ATSUI font bounds are represented as an array
2651 `bounds.rows' of XCharStructRow's, each of which consists of a
2652 bitmap of valid entries and an array of char bounds.
2653
2654 * macterm.c (mac_per_char_metric): Add prototype.
2655 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
2656 (mac_query_char_extents): New function.
2657 (x_per_char_metric): Use it.
2658 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
2659 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
2660 Use mac_per_char_metric instead of x_per_char_metric.
2661 (mac_text_extents_16): New function.
2662 (mac_compute_glyph_string_overhangs): Use it.
2663 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
2664
2665 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
2666
2667 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
2668 (Fminibuffer_completion_help): Remove duplicates before display.
2669
2670 2005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2671
2672 * print.c (print_preprocess): Don't lose print_depth levels while
2673 iterating.
2674
2675 2005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2676
2677 * macmenu.c (Qmac_apple_event): Add extern.
2678 (set_frame_menubar, mac_menu_show keymp_panes)
2679 (single_keymap_panes, list_of_panes, list_of_item)
2680 (single_menu_item): Add argument types to prototypes.
2681 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
2682 (struct skp): New struct (from xmenu.c).
2683 (single_keymap_panes, single_menu_item, list_of_panes)
2684 (list_of_item): Sync with xmenu.c.
2685 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
2686 POSITION if it is mac-apple-event event.
2687 (menubar_selection_callback): Don't use menu_command_in_progress.
2688 (set_frame_menubar): First parse all submenus, then make
2689 widget_value trees from them. Don't allocate any widget_value
2690 objects until we are done with the parsing.
2691 (parse_single_submenu, digest_single_submenu): New functions.
2692 (single_submenu): Function deleted, replaced by those two.
2693 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
2694 create or dispose of EventHandlerUPP. Install hander to all submenus.
2695 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
2696 instead of ENCODE_SYSTEM.
2697 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
2698 integer values.
2699 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
2700 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
2701 format menu item string. Don't use NULL for integer value.
2702
2703 * macterm.h (struct mac_output): Remove unused member
2704 menu_command_in_progress.
2705
2706 2005-12-20 Juri Linkov <juri@jurta.org>
2707
2708 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
2709 position is non-nil, else set it to nil.
2710
2711 * macmenu.c (Fx_popup_menu): Add `else' to set
2712 Vmenu_updating_frame to nil only if position is nil.
2713
2714 * w32menu.c (Fx_popup_menu): Add `else' to set
2715 Vmenu_updating_frame to nil only if position is nil.
2716
2717 2005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2718
2719 * keyboard.c (make_lispy_event): Drag-and-drop items are now
2720 stored in member `args' of struct input_event.
2721
2722 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
2723
2724 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
2725 stored in member `args' of struct input_event.
2726
2727 * w32term.c (construct_drag_n_drop): Likewise.
2728
2729 * macterm.c (mac_do_receive_drag): Likewise.
2730 (x_use_underline_position_properties): Undo 2005-07-13 change.
2731 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
2732 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
2733 (mac_pass_command_to_system, mac_pass_control_to_system):
2734 New boolean variables renamed from Lisp_Object ones
2735 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
2736 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
2737 All uses changed.
2738 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
2739 Make them user options.
2740 (mac_handle_command_event, mac_store_services_event):
2741 Call create_apple_event_from_event_ref without 5th argument.
2742 (backtranslate_modified_keycode): Mask off modifier keys that are
2743 mapped to some Emacs modifiers before passing it to KeyTranslate.
2744 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
2745 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
2746 Fix docstrings of `mac-*-modifier'.
2747
2748 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
2749 (do_applescript): Change argument types to Lisp_Object.
2750 All uses changed.
2751
2752 * macterm.h (create_apple_event_from_event_ref): Remove 5th
2753 argument from extern.
2754
2755 2005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
2756
2757 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
2758 the answer, return `lambda', not nil.
2759
2760 2005-12-17 Eli Zaretskii <eliz@gnu.org>
2761
2762 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
2763 enclosed in $(ARGQUOTE)s should not be split between two lines, as
2764 that will break with GNU Make >3.80, when sh.exe is used and
2765 arg quoting is with '..'.
2766
2767 2005-12-17 Chong Yidong <cyd@stupidchicken.com>
2768
2769 * print.c (print_preprocess): Just signal an error if print_depth
2770 is exceeded.
2771
2772 2005-12-17 Eli Zaretskii <eliz@gnu.org>
2773
2774 * .gdbinit: Set a breakpoint on w32_abort.
2775
2776 2005-12-16 Juri Linkov <juri@jurta.org>
2777
2778 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
2779 created from minibuffer_completion_contents.
2780 (minibuffer_completion_contents): Remove.
2781 (do_completion, Fminibuffer_complete_word)
2782 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
2783 with Fminibuffer_completion_contents.
2784 (syms_of_minibuf): Add Sminibuffer_completion_contents.
2785 (Fdisplay_completion_list): Doc fix.
2786 (display_completion_list_1): Use `nil' for second arg of
2787 `Fdisplay_completion_list'.
2788
2789 2005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2790
2791 * xfns.c (compute_tip_xy): Handle negative dx and dy.
2792
2793 * w32fns.c (compute_tip_xy): Ditto.
2794
2795 * macfns.c (compute_tip_xy): Ditto.
2796
2797 2005-12-14 Chong Yidong <cyd@stupidchicken.com>
2798
2799 * print.c (print_preprocess): Go to a deeper print_depth to avoid
2800 print_object loop.
2801
2802 2005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
2803
2804 * coding.c (code_convert_region_unwind): GCPRO arg.
2805
2806 2005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2807
2808 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
2809 i.e. dy is offset from top of frame instead of bottom.
2810
2811 * macfns.c (compute_tip_xy): Ditto.
2812
2813 * w32fns.c (compute_tip_xy): Ditto.
2814
2815 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
2816 (xg_get_image_for_pixmap, xg_create_frame_widgets)
2817 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
2818
2819 * xmenu.c (menubar_selection_callback): Do nothing if the callback
2820 is for an unselected radio menu item.
2821
2822 2005-12-11 Richard M. Stallman <rms@gnu.org>
2823
2824 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
2825
2826 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
2827
2828 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
2829 (Flookup_key): Doc fix.
2830 (syms_of_keymap) <function-key-map>: Doc fix.
2831
2832 * fns.c (Frequire): Treat evaluating from a source file
2833 like loading the file.
2834
2835 * floatfns.c (Flog): Doc fix.
2836
2837 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
2838 when we change the buffer.
2839
2840 2005-12-11 Juri Linkov <juri@jurta.org>
2841
2842 * minibuf.c (display_completion_list_1):
2843 Call `minibuffer_completion_contents' instead of using `nil' as
2844 second arg of `Fdisplay_completion_list'.
2845 (keys_of_minibuf): Unbind SPC in
2846 Vminibuffer_local_filename_completion_map (see also related
2847 change on 2005-12-06).
2848
2849 2005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2850
2851 * emacs.c (main) [MAC_OS8]: Undo previous change.
2852
2853 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
2854 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
2855
2856 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2857
2858 * Makefile.in (macselect.o): Depend on keymap.h.
2859
2860 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
2861 syms_of_macselect.
2862
2863 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
2864 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
2865
2866 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
2867 (syms_of_keyboard) [MAC_OS]: Initialize it.
2868 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
2869
2870 * mac.c (Qundecoded_file_name): New variable.
2871 (syms_of_mac): Initialize it.
2872 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
2873 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
2874 (Fmac_coerce_ae_data): New defun.
2875 (syms_of_mac): Defsubr it.
2876
2877 * macselect.c: Include keymap.h.
2878 (mac_ready_for_apple_events): New variable.
2879 (Vmac_apple_event_map, Qmac_apple_event_class)
2880 (Qmac_apple_event_id): New variables.
2881 (syms_of_macselect): Initialize them.
2882 (Qundefined, mac_store_apple_event): Add externs.
2883 (struct apple_event_binding): New struct.
2884 (find_event_binding_fun, find_event_binding)
2885 (mac_find_apple_event_spec, defer_apple_events)
2886 (mac_handle_apple_event, init_apple_event_handler)
2887 (copy_scrap_flavor_data): New functions.
2888 (Fmac_process_deferred_apple_events): New defun.
2889 (syms_of_macselect): Defsubr it.
2890 (mac_store_services_event): Fix extern.
2891 (mac_handle_service_event): Don't allocate Lisp objects during
2892 asynchronous input processing. Use mac_store_services_event
2893 instead of mac_store_application_menu_event.
2894
2895 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
2896 (Qpreferences): Remove variables.
2897 (syms_of_macterm) : Don't initialize them.
2898 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
2899 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
2900 (init_required_apple_events, do_ae_open_application)
2901 (do_ae_print_documents, do_ae_open_documents)
2902 (do_ae_quit_application): Remove functions and prototypes.
2903 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
2904 (mac_find_apple_event_spec): Add externs.
2905 (mac_store_application_menu_event): Remove function.
2906 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
2907 (mac_handle_command_event): Create Apple event from Carbon event.
2908 Use mac_store_apple_event instead of mac_store_application_menu_event.
2909 [MAC_OSX] (mac_store_services_event): Likewise.
2910 (struct SelectionRange, SelectionRange): Remove struct and typedef.
2911 [MAC_OS8] (main): Call init_apple_event_handler instead of
2912 init_required_apple_events.
2913 (mac_initialize) [MAC_OSX]: Likewise.
2914 [!USE_CARBON_EVENTS] (mac_wait_next_event):
2915 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
2916
2917 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
2918 Add externs.
2919 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
2920 (Fmac_get_preference): Add EXFUN.
2921
2922 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
2923 event.
2924
2925 2005-12-09 Richard M. Stallman <rms@gnu.org>
2926
2927 * xfns.c (Fx_create_frame): Reinstate previous change.
2928
2929 2005-12-09 Eli Zaretskii <eliz@gnu.org>
2930
2931 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
2932 GDB to the abort dialog.
2933
2934 2005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
2935
2936 * indent.c (Fvertical_motion): Force move if starting on
2937 stretch glyph.
2938
2939 2005-12-08 Richard M. Stallman <rms@gnu.org>
2940
2941 * lread.c (read_escape) <\s>: Don't treat strings specially.
2942
2943 * xfns.c (Fx_create_frame): Comment out previous change.
2944
2945 2005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2946
2947 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
2948 when needed.
2949
2950 2005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
2951
2952 * minibuf.c (keys_of_minibuf): Just unbind SPC in
2953 Vminibuffer_local_filename_completion_map rather than forcing it
2954 explicitly to the same binding as the global map.
2955
2956 2005-12-06 Ken Raeburn <raeburn@gnu.org>
2957
2958 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
2959 * bytecode.c (Fbyte_code): Likewise.
2960 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
2961 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
2962 * undo.c (truncate_undo_list): Likewise.
2963
2964 2005-12-05 Richard M. Stallman <rms@gnu.org>
2965
2966 * window.c (enlarge_window): Eliminate arg preserve_before.
2967 Assume it is 0. All callers changed.
2968 (Fenlarge_window, Fshrink_window): Likewise.
2969
2970 2005-12-02 Eli Zaretskii <eliz@gnu.org>
2971
2972 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
2973 fit below.
2974
2975 2005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2976
2977 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
2978
2979 * xfns.c (x_real_positions): int ign => unsigned int.
2980 (xg_set_icon_from_xpm_data): Remove unused variable err.
2981 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
2982 to remove compiler warning.
2983 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
2984
2985 2005-12-02 David Reitter <david.reitter@gmail.com>
2986
2987 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
2988 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
2989 and Vminibuffer_local_must_match_filename_map keymaps.
2990 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
2991
2992 * keymap.c (Vminibuffer_local_filename_completion_map)
2993 (Vminibuffer_local_must_match_filename_map): New variables.
2994 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
2995 parent to be Vminibuffer_local_completion_map and
2996 Vminibuffer_local_must_match_map, respectively.
2997
2998 * commands.h (Vminibuffer_local_filename_completion_map)
2999 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
3000
3001 2005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
3002
3003 * window.c (Fset_window_configuration): Don't accidentally copy the
3004 window-point of one window to another.
3005
3006 2005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
3007
3008 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
3009
3010 2005-11-30 Kim F. Storm <storm@cua.dk>
3011
3012 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
3013 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
3014 passing it to `emacs_write'.
3015
3016 2005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
3017
3018 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
3019
3020 2005-11-27 Richard M. Stallman <rms@gnu.org>
3021
3022 * window.c (adjust_window_trailing_edge): New function.
3023 (Fadjust_window_trailing_edge): New function.
3024 (syms_of_window): Defsubr it.
3025 (window_deletion_count): New variable.
3026 (delete_window): Update window_deletion_count.
3027
3028 2005-11-26 Eli Zaretskii <eliz@gnu.org>
3029
3030 * minibuf.c (syms_of_minibuf): Mention the extension of
3031 `completion-auto-help's meaning by complete.el.
3032
3033 2005-11-26 Henrik Enberg <henrik.enberg@telia.com>
3034
3035 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
3036 Handle :inherit property as a lisp expression.
3037
3038 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3039
3040 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
3041 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
3042 Qsuper, and Qmodifier_value.
3043 (Vmac_control_modifier, Vmac_option_modifier)
3044 (Vmac_command_modifier, Vmac_function_modifier)
3045 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
3046 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
3047 (Vmac_charset_info_alist): Doc fixes.
3048
3049 2005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3050
3051 * emacs.c (main) [MAC_OSX]: Change working directory to home
3052 directory if `-psn_*' option is specified.
3053
3054 * mac.c (DECODE_UTF_8): Remove macro.
3055 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
3056 created from cfstring_to_lisp.
3057 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
3058 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
3059
3060 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
3061 Add prototype.
3062
3063 2005-11-21 Ken Raeburn <raeburn@gnu.org>
3064
3065 * keymap.c (shadow_lookup): Use make_number to pass a number to
3066 Fsubstring.
3067
3068 2005-11-21 Juri Linkov <juri@jurta.org>
3069
3070 * puresize.h (BASE_PURESIZE): Increment to 1180000.
3071
3072 2005-11-20 Chong Yidong <cyd@stupidchicken.com>
3073
3074 * xfaces.c (Finternal_set_lisp_face_attribute):
3075 Use :ignore-defface for new frame defaults when `unspecified' is
3076 supplied.
3077 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
3078 (merge_face_vectors): Don't do :ignore-defface overwriting here.
3079 (Finternal_merge_in_global_face): Do it here.
3080
3081 2005-11-20 Juri Linkov <juri@jurta.org>
3082
3083 * charset.c (invalid_character): Use Lisp-readable syntax
3084 for octal and hex. Reorder decimal, octal and hex values.
3085
3086 2005-11-20 Nick Roberts <nickrob@snap.net.nz>
3087
3088 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
3089 this type is recognised when debugging.
3090
3091 2005-11-19 Andreas Schwab <schwab@suse.de>
3092
3093 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
3094 Lisp_Cons and Lisp_Float.
3095
3096 2005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3097
3098 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
3099 New variable.
3100 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
3101 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
3102 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
3103 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
3104
3105 2005-11-17 Chong Yidong <cyd@stupidchicken.com>
3106
3107 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
3108
3109 * xfaces.c (Qignore_defface): New variable.
3110 (syms_of_xfaces): Provide `:ignore-defface'.
3111 (IGNORE_DEFFACE_P): New macro.
3112 (check_lface_attrs, lface_fully_specified_p)
3113 (Finternal_set_lisp_face_attribute)
3114 (Fface_attribute_relative_p, Fmerge_face_attribute):
3115 Handle Qignore_defface as a possible value.
3116 (merge_face_vectors): The merged face is `unspecified' if the
3117 mergee specifies `:ignore-defface'.
3118
3119 2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
3120
3121 * lread.c (readevalloop): Add missing GCPROs.
3122
3123 2005-11-16 Chong Yidong <cyd@stupidchicken.com>
3124
3125 * xfns.c (xg_set_icon_from_xpm_data): New function.
3126
3127 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
3128 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
3129
3130 * xterm.c (x_bitmap_icon): Use the xpm if available.
3131
3132 * image.c (x_create_bitmap_from_xpm_data): New function.
3133 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
3134
3135 2005-11-15 Luc Teirlinck <teirllm@auburn.edu>
3136
3137 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
3138
3139 2005-11-16 Nick Roberts <nickrob@snap.net.nz>
3140
3141 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
3142
3143 2005-11-15 Andreas Schwab <schwab@suse.de>
3144
3145 * lisp.h (struct Lisp_Cons): Make cdr a union.
3146 (XCDR_AS_LVALUE): Adjust.
3147 (struct Lisp_Float): Make data a union.
3148 (XFLOAT_DATA): Adjust.
3149
3150 * alloc.c (free_float): Make free list chaining aliasing-safe.
3151 (make_float): Likewise.
3152 (free_cons): Likewise.
3153 (Fcons): Likewise.
3154 (check_cons_list): Likewise.
3155 (Fmake_symbol): Likewise.
3156 (allocate_misc): Likewise.
3157 (free_misc): Likewise.
3158 (gc_sweep): Likewise.
3159
3160 2005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3161
3162 * mac.c (HASHKEY_QUERY_CACHE): New define.
3163 (xrm_create_database, xrm_q_put_resource): Empty query cache.
3164 (xrm_get_resource): Use query cache.
3165
3166 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
3167 inhibit_window_system is set.
3168
3169 2005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3170
3171 * macgui.h (USE_CG_TEXT_DRAWING): New define.
3172 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
3173 and cg_glyphs.
3174
3175 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
3176 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
3177 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
3178 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
3179 not used and font substitution never occurs for ASCII and Latin-1
3180 characters.
3181 (XLoadQueryFont): Maximum and minimum metrics are now those among
3182 ASCII characters.
3183 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
3184 height adjustments for Courier, Helvetica, and Times.
3185
3186 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
3187
3188 2005-11-11 David Reitter <david.reitter@gmail.com>
3189
3190 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
3191 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
3192 Vmac_control_modifier / mac-control-modifier,
3193 Vmac_option_modifier / mac-option-modifier,
3194 Vmac_command_modifier / mac-command-modifier.
3195 (mac_to_emacs_modifiers): Use the new style modifier
3196 variables. Return UInt32 (modifiers are longs now.)
3197 (backtranslate_modified_keycode): New function (refactoring).
3198 (XTread_socket): Use new modifier variables and refactored function.
3199 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
3200 no dedicated meta key. Not in use anyway.)
3201 (convert_fn_keycode): Map Fn-keys to their original keycode
3202 using a table (english keyboard only).
3203
3204 2005-11-11 Kim F. Storm <storm@cua.dk>
3205
3206 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
3207 Add post hook to "backtrace" to always dump lisp call stack to
3208 increase chance of people sending it to us when reporting bugs.
3209
3210 * doc.c (Fsubstitute_command_keys): Doc fix.
3211
3212 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
3213
3214 * xdisp.c (handle_stop): Skip overlay string handling if
3215 ignore_overlay_strings_at_pos_p is set.
3216 (set_iterator_to_next): At end of display vector, set
3217 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
3218 string, so we skip those overlay strings at current pos.
3219
3220 2005-11-10 Lars Hansen <larsh@soem.dk>
3221
3222 * fileio.c (file-regular-p): Doc fix.
3223
3224 2005-11-10 Kim F. Storm <storm@cua.dk>
3225
3226 * alloc.c (valid_lisp_object_p): New function to validate that
3227 an object is really a valid Lisp_Object.
3228
3229 * lisp.h (valid_lisp_object_p): Add prototype.
3230
3231 * print.c (safe_debug_print): New function to be called from gdb
3232 to print Lisp objects; use valid_lisp_object_p to avoid crashing
3233 if user tries to print something which is not a Lisp object.
3234
3235 * .gdbinit (pp, pp1): Use safe_debug_print.
3236 (pv, pv1): New commands to print value of a lisp variable.
3237
3238 2005-11-10 Nick Roberts <nickrob@snap.net.nz>
3239
3240 * .gdbinit (pp1): New user-defined function.
3241
3242 2005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3243
3244 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
3245
3246 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
3247 related variables for dumped executable.
3248
3249 * unexmacosx.c (unexec_write_zero): New function.
3250 (copy_data_segment): Clear uninitialized local variables in
3251 statically linked libraries.
3252
3253 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
3254
3255 2005-11-09 Juri Linkov <juri@jurta.org>
3256
3257 * keymap.c (shadow_lookup): If Flookup_key returns a number,
3258 call it again with a sub-key-sequence, and if its return value
3259 is non-nil (sub-key is bound), return nil.
3260
3261 2005-11-08 Kim F. Storm <storm@cua.dk>
3262
3263 * process.c (Fsignal_process): Recognize signal names with and
3264 without SIG prefix, e.g. SIGHUP and HUP.
3265
3266 * search.c (search_buffer): No need to initialize base_pat.
3267
3268 2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
3269
3270 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
3271 Don't abuse the `mini' arg. Use the `obj' arg instead.
3272
3273 2005-11-04 Kim F. Storm <storm@cua.dk>
3274
3275 * xdisp.c (show_mouse_face): Clear mouse face to eol.
3276
3277 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
3278
3279 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
3280 font-lock.elc and jit-lock.elc.
3281
3282 2005-11-03 Richard M. Stallman <rms@gnu.org>
3283
3284 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
3285 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
3286 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
3287
3288 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
3289
3290 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
3291
3292 2005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3293
3294 * window.c (Fdisplay_buffer): Fix last change to not use
3295 a dedicated window.
3296
3297 2005-11-01 Kim F. Storm <storm@cua.dk>
3298
3299 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
3300 Instead, rotate the bottom angle bitmap 180 degrees to indicate
3301 that the bottom row does not end in a newline.
3302
3303 2005-11-01 Andreas Schwab <schwab@suse.de>
3304
3305 * unexelf.c (unexec): Handle .plt section in BSS segment.
3306
3307 2005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
3308
3309 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
3310
3311 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
3312 determine whether to consider dedicated windows as well.
3313 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
3314 (Fdisplay_buffer): Do consider dedicated windows in those cases where
3315 we will split the window rather than reuse it.
3316 Don't try to use windows on other displays.
3317
3318 2005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
3319
3320 * puresize.h (BASE_PURESIZE): Increment to 1170000.
3321
3322 2005-10-31 Romain Francoise <romain@orebokech.com>
3323
3324 * macfns.c: Update copyright year.
3325 * m/gould.h: Likewise.
3326
3327 2005-10-30 Kim F. Storm <storm@cua.dk>
3328
3329 * xdisp.c (display_line): Restore it->current_x and call
3330 extend_face_to_end_of_line when last glyph doesn't fit on line.
3331 (set_glyph_string_background_width): Remove specific tests here
3332 to see if face background should extend to end of line. Simplify.
3333
3334 2005-10-30 Richard M. Stallman <rms@gnu.org>
3335
3336 * alloc.c (BYTES_USED): Use uordblks, not arena.
3337 (bytes_used_when_reconsidered): New variable.
3338 (emacs_blocked_free): Set that.
3339
3340 2005-10-29 Chong Yidong <cyd@stupidchicken.com>
3341
3342 * alloc.c (emacs_blocked_free): Fix typo.
3343
3344 2005-10-29 Richard M. Stallman <rms@gnu.org>
3345
3346 * data.c (Fmake_variable_frame_local): Doc fix.
3347
3348 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
3349 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
3350 controls whether to save and restore mode_line_proptrans_alist.
3351 Callers changed.
3352 (unwind_format_mode_line): Work with that feature.
3353 (redisplay_internal): Don't call prepare_menu_bars if memory full.
3354 (move_elt_to_front): New function.
3355 (display_mode_element): Use move_elt_to_front.
3356 Don't bother munging text props on a null string.
3357 Delete obsolete elts from mode_line_proptrans_alist.
3358 (decode_mode_spec): Test Vmemory_full, not spare_memory.
3359 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
3360
3361 * lisp.h (memory_full_cons_threshold): Declare.
3362 (internal_lisp_condition_case): Declare.
3363
3364 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
3365 (Fmemory_full_p): Function deleted.
3366 (syms_of_alloc): Don't defsubr it.
3367 (memory_full_cons_threshold): New variable.
3368 (spare_memory): Now a vector of 7 elts.
3369 (buffer_memory_full): Don't set Vmemory_full here.
3370 (xfree): Don't try to refill here.
3371 (emacs_blocked_free): Record BYTES_USED in local var.
3372 (memory_full): Now free all the slots in spare_memory.
3373 (refill_memory_reserve): Allocate each slot in spare_memory.
3374 (init_alloc_once): Call refill_memory_reserve.
3375
3376 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
3377
3378 * eval.c (internal_lisp_condition_case): New function.
3379 (Fcondition_case): Use internal_lisp_condition_case.
3380 (Feval): Test Vmemory_full and memory_full_cons_threshold.
3381 (Ffuncall): Likewise.
3382
3383 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
3384
3385 2005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
3386
3387 * syntax.c (Fparse_partial_sexp): Fix docstring.
3388
3389 2005-10-28 Romain Francoise <romain@orebokech.com>
3390
3391 * puresize.h (BASE_PURESIZE): Increment to 1130000.
3392
3393 2005-10-28 Richard M. Stallman <rms@gnu.org>
3394
3395 * xfns.c (syms_of_xfns): Provide `x' as feature.
3396
3397 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
3398
3399 * editfns.c (Fformat): Don't include string padding
3400 between info[n].start and info[n].end.
3401
3402 * alloc.c (spare_memory): No longer static.
3403 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
3404
3405 * puresize.h (BASE_PURESIZE): Increment to 1120000.
3406
3407 2005-10-27 Chong Yidong <cyd@stupidchicken.com>
3408
3409 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
3410
3411 * fringe.c (update_window_fringes): Handle case where buffer ends
3412 with a newline.
3413
3414 2005-10-27 Kenichi Handa <handa@m17n.org>
3415
3416 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
3417
3418 2005-10-24 Kenichi Handa <handa@m17n.org>
3419
3420 * charset.h (charset_mule_unicode_0100_24ff)
3421 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
3422 Extern them.
3423
3424 * charset.c (charset_mule_unicode_0100_24ff)
3425 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
3426 New variables.
3427 (Fsetup_special_charsets): Initialize them.
3428
3429 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
3430 supported Unicode characters.
3431
3432 2005-10-25 Jason Rumney <jasonr@gnu.org>
3433
3434 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
3435
3436 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3437
3438 * image.c [MAC_OS] (image_load_qt_1): Check image size.
3439 Use GraphicsImportGetImageDescription instead of
3440 GraphicsImportGetNaturalBounds.
3441 [MAC_OSX] (image_load_quartz2d): Check image size.
3442 [MAC_OS] (xpm_load_image): Likewise.
3443
3444 * macterm.c (last_mouse_glyph_frame): New var.
3445 (note_mouse_movement): Say mouse moved if current frame differs
3446 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
3447 (XTmouse_position): Set last_mouse_glyph_frame.
3448 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
3449 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
3450 Use EndianU16_BtoN.
3451 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
3452 (x_per_char_metric, XLoadQueryFont)
3453 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
3454 glyph bounds.
3455 (mac_to_x_fontname, mac_do_list_fonts)
3456 (mac_initialize_display_info): Change screen resolutions to 72dpi.
3457
3458 2005-10-25 Masatake YAMATO <jet@gyve.org>
3459
3460 * minibuf.c (Fdisplay_completion_list): Small doc fix.
3461
3462 2005-10-24 Kim F. Storm <storm@cua.dk>
3463
3464 * xterm.c: Undo 2005-10-23 change.
3465 (last_mouse_glyph_frame): New var.
3466 (note_mouse_movement): Say mouse moved if current frame differs
3467 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
3468 (XTmouse_position): Set last_mouse_glyph_frame.
3469 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
3470 last_mouse_glyph] on mouse up/down event.
3471
3472 * editfns.c (Fcompare_buffer_substrings): Fix last change.
3473
3474 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3475
3476 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
3477
3478 2005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3479
3480 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
3481 so tool tips don't interfere with press on tool bar button.
3482
3483 2005-10-23 Richard M. Stallman <rms@gnu.org>
3484
3485 * casetab.c (Fset_case_table): Doc fix.
3486
3487 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
3488 (readevalloop): Compute ENTIRE properly.
3489 (syms_of_lread) <load-history>: Doc fix.
3490
3491 2005-10-21 Richard M. Stallman <rms@gnu.org>
3492
3493 * lread.c (Fload): Simplify gcpro structure.
3494 Gcpro FOUND as well as FILE, but not EFOUND.
3495 Unless preloading, record FOUND instead of FILE in Vload_history.
3496 Rename repeat local FILE to MSG_FILE.
3497 (syms_of_lread) <load-history>: Doc fix.
3498
3499 2005-10-21 Kenichi Handa <handa@m17n.org>
3500
3501 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
3502
3503 2005-10-20 Kim F. Storm <storm@cua.dk>
3504
3505 * buffer.c (clone_per_buffer_values): Remove unused var tem.
3506 (init_buffer): Remove unused vars dotstat, pwdstat.
3507
3508 * ccl.c (check_ccl_update): Remove unused var vp.
3509
3510 * fileio.c (auto_save_error): Call SAFE_FREE.
3511
3512 * fns.c (Fchar_table_range): Remove unused var i.
3513
3514 * minibuf.c (display_completion_list_1): New wrapper function
3515 for Fdisplay_completion_list.
3516 (Fminibuffer_completion_help): Use it.
3517
3518 * term.c (encode_terminal_code): Remove unused var src_start.
3519
3520 * window.c (Fwindow_tree): Remove unused var alist.
3521
3522 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
3523
3524 2005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
3525
3526 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
3527
3528 2005-10-20 Olli Savia <ops@iki.fi> (tiny change)
3529
3530 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
3531
3532 2005-10-20 Andreas Schwab <schwab@suse.de>
3533
3534 * minibuf.c (Fdisplay_completion_list): Doc fix.
3535
3536 2005-10-19 Kim F. Storm <storm@cua.dk>
3537
3538 * image.c (check_image_size): Handle integer Vmax_image_size value
3539 directly as max pixel value. Use default frame size for null frame.
3540 (syms_of_image) <max-image-size>: Describe integer value.
3541
3542 2005-10-19 Romain Francoise <romain@orebokech.com>
3543
3544 * emacs.c (main): Update copyright year.
3545
3546 2005-10-18 Chong Yidong <cyd@stupidchicken.com>
3547
3548 * image.c (Vmax_image_size): New variable.
3549 (check_image_size): New function.
3550 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
3551 (gif_load, gs_load): Use it.
3552 (lookup_image): Try loading again if previous load failed.
3553 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
3554 to display in, NULL if none.
3555 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
3556 argument.
3557
3558 2005-10-18 Richard M. Stallman <rms@gnu.org>
3559
3560 * search.c (Fstring_match): Doc fix.
3561
3562 2005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3563
3564 * macterm.c (note_mouse_movement): Use PtInRect.
3565 (XTread_socket): Also ignore mouse motion just before a button
3566 release event. Don't process button release event when mouse is
3567 not grabbed.
3568
3569 2005-10-16 Masatake YAMATO <jet@gyve.org>
3570
3571 * minibuf.c (Fdisplay_completion_list): Add new optional
3572 argument COMMON_SUBSTRING. Bind `completion-common-substring'
3573 to the optional argument during running `completion-setup-hook'.
3574
3575 2005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3576
3577 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
3578 Allow nil as argument.
3579 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
3580 for encoding arguments as UTF-16 in native byte order, no BOM.
3581
3582 * macfns.c (Fx_create_frame): Add debugging code.
3583 (Fx_show_tip): Set frame pixel width and height.
3584
3585 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
3586 (FRAME_NORMAL_GC): New macro.
3587 (mac_draw_line, mac_clear_area, mac_clear_window)
3588 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
3589 (mac_draw_image_string, mac_draw_image_string_16): Rename from
3590 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
3591 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
3592 All uses changed.
3593 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
3594 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
3595 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
3596 (mac_draw_string_16, mac_draw_image_string)
3597 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
3598 (mac_scroll_area): Drawing functions now take frame as destination.
3599 All uses changed.
3600 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
3601 (x_draw_fringe_bitmap): Set clipping area in face->gc.
3602
3603 * macterm.h (mac_clear_area): Add extern.
3604
3605 2005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3606
3607 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
3608 changes for xterm.c.
3609
3610 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
3611
3612 2005-10-14 Kenichi Handa <handa@m17n.org>
3613
3614 * search.c (search_buffer): Give up BM search on case-fold-search
3615 if one of a target character has a case-equivalence of different
3616 charset even if that target charcter is an ASCII.
3617
3618 * casefiddle.c (casify_object): Fix for the case that case
3619 conversion change the byte length.
3620
3621 2005-10-14 Kim F. Storm <storm@cua.dk>
3622
3623 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
3624 (handle_one_xevent): Only clear help_echo_string; restore it if
3625 note_mouse_movement didn't record any mouse movement.
3626
3627 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
3628 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
3629
3630 * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
3631 (Fposn_at_x_y): Fix calculation of x coordinate.
3632 (Fposn_at_point): Return nil if point is hscrolled out of view.
3633
3634 2005-10-13 Andreas Schwab <schwab@suse.de>
3635
3636 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
3637 non-interactive mode.
3638
3639 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3640
3641 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
3642
3643 2005-10-12 Kim F. Storm <storm@cua.dk>
3644
3645 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
3646
3647 2005-10-12 Romain Francoise <romain@orebokech.com>
3648
3649 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
3650
3651 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3652
3653 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
3654 get end of text rows. Obtain header-line/mode-line rows directly.
3655
3656 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
3657 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
3658
3659 2005-10-12 Kim F. Storm <storm@cua.dk>
3660
3661 * xdisp.c (remember_mouse_glyph): New generic version based on
3662 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
3663 properly handle all different window areas.
3664
3665 * dispextern.h (remember_mouse_glyph): Add prototype.
3666
3667 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
3668 (note_mouse_movement, XTmouse_position): Use generic
3669 remember_mouse_glyph, add last_mouse_glyph arg.
3670
3671 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
3672 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
3673 (note_mouse_movement, w32_mouse_position): Use generic
3674 remember_mouse_glyph, add last_mouse_glyph arg.
3675
3676 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
3677 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
3678 (XTmouse_position): Adapt to use generic remember_mouse_glyph
3679 instead of pixel_to_glyph_coords.
3680
3681 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
3682 Fix x position for ON_TEXT when left margin width > 0.
3683
3684 2005-10-11 Kim F. Storm <storm@cua.dk>
3685
3686 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
3687
3688 * keyboard.c (make_lispy_position): Fix buffer calculations for
3689 mouse click or movement in right fringe and the margins.
3690
3691 2005-10-11 Juanma Barranquero <lekktu@gmail.com>
3692
3693 * image.c (fn_jpeg_stdio_src): Don't define it.
3694 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
3695 (our_common_init_source): Rename from `our_init_source'.
3696 (our_common_term_source): Rename from `our_term_source'.
3697 (our_memory_fill_input_buffer): Rename from
3698 `our_fill_input_buffer'.
3699 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
3700 (jpeg_memory_src): Use the new names.
3701 (struct jpeg_stdio_mgr): New struct.
3702 (JPEG_STDIO_BUFFER_SIZE): New constant.
3703 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
3704 (jpeg_file_src): New functions.
3705 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
3706
3707 2005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3708
3709 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
3710 (fm_font_family_alist): New variable.
3711 (syms_of_macterm): Initialize and staticpro it.
3712 (decode_mac_font_name): Replace '-' in family name with '_' if it
3713 occurs just once. Lower family name.
3714 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
3715 All uses changed. Remove argument MF and code conversion for it.
3716 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
3717 to CHARSET. Parse font size. Lower family name. Return integer
3718 value for status of parsing.
3719 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
3720 Don't use Fdowncase because family name is already lowered by
3721 decode_mac_font_name.
3722 (init_font_name_table): Always call decode_mac_font_name.
3723 Add pair of family name and its reference to fm_font_family_alist.
3724 (mac_clear_font_name_table): Clear fm_font_family_alist.
3725 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
3726 Lookup fm_font_family_alist to get font family reference.
3727 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
3728 name is already lowered by parse_x_font_name.
3729
3730 2005-10-11 Kim F. Storm <storm@cua.dk>
3731
3732 * xterm.c (glyph_rect): Return 0 if position is outside text area.
3733
3734 * keyboard.c (make_lispy_position): Fix buffer position calculation for
3735 mouse click or movement in fringe.
3736
3737 2005-10-10 Jason Rumney <jasonr@gnu.org>
3738
3739 * xterm.c (remember_mouse_glyph): New function.
3740 (note_mouse_movement): Use it to remember the current glyph if changed.
3741 (XTmouse_position): Fix calculation of fake glyph under mouse.
3742 Move code to calculate glyph under mouse into remember_mouse_glyph.
3743
3744 2005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3745
3746 * emacs.c (USAGE3, standard_args): -nb => -nbi.
3747
3748 2005-10-10 Juanma Barranquero <lekktu@gmail.com>
3749
3750 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
3751 (next_frame, prev_frame, set_term_frame_name): Make static.
3752
3753 * window.c (Fwindow_tree): Fix spelling.
3754
3755 2005-10-09 Romain Francoise <romain@orebokech.com>
3756
3757 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
3758
3759 2005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3760
3761 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
3762 Add options -nb, --no-bitmap-icon.
3763
3764 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
3765
3766 2005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3767
3768 * macgui.h (MAX_CLIP_RECTS): New define.
3769 (struct _XGC): New member clip_region.
3770 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
3771 clip_rects.
3772
3773 * macterm.c (GC_CLIP_REGION): New macro.
3774 (saved_port_clip_region): New variable.
3775 (mac_begin_clip, mac_end_clip): New functions.
3776 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
3777 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
3778 (mac_copy_area_with_mask, mac_scroll_area): Use them.
3779 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
3780 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
3781 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
3782 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
3783 rectangles stored in gc.
3784 (XFreeGC): Dispose of clipping region.
3785 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
3786 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
3787 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
3788 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
3789 (x_draw_bar_cursor): Use them.
3790 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
3791 get multiple clipping rectangles.
3792
3793 * macterm.h (mac_term_init): Add types to extern.
3794 (struct mac_output): Remove members mWP and pending_menu_activation.
3795 Put members scroll_bar_foreground_pixel and
3796 scroll_bar_background_pixel in #if 0.
3797 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
3798
3799 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
3800 Add debugging code.
3801
3802 2005-10-08 Kim F. Storm <storm@cua.dk>
3803
3804 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
3805
3806 2005-10-07 Kim F. Storm <storm@cua.dk>
3807
3808 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
3809 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
3810 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
3811
3812 2005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3813
3814 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
3815 to for_overlaps. Now occupy 3 bits.
3816 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
3817 (OVERLAPS_ERASED_CURSOR): New defines.
3818 (struct redisplay_interface): Add new OVERLAPS arg to member
3819 fix_overlapping_area.
3820 (x_fix_overlapping_area): Add new OVERLAPS arg.
3821 (get_glyph_string_clip_rects): Add extern.
3822
3823 * dispnew.c (redraw_overlapping_rows):
3824 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
3825
3826 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
3827 for_overlaps.
3828 (get_glyph_string_clip_rects): New function created from
3829 get_glyph_string_clip_rect. Set clipping rectangles according to the
3830 value of for_overlaps. Enable to store multiple clipping rectangles.
3831 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
3832 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
3833 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
3834 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
3835 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
3836 calculating clipping rectangles later. Call x_fix_overlapping_area
3837 with new OVERLAPS arg to draw only erased cursor area.
3838 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
3839 to draw overlaps in both preceding and succeeding rows.
3840
3841 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
3842 struct glyph_string to for_overlaps.
3843
3844 2005-10-04 Richard M. Stallman <rms@gnu.org>
3845
3846 * alloc.c (refill_memory_reserve): Conditionalize the body,
3847 not the function's existence.
3848
3849 2005-10-04 Kim F. Storm <storm@cua.dk>
3850
3851 * window.c (window_split_tree): New function.
3852 (Fwindow_split_tree): New defun.
3853 (syms_of_window): Defsubr it.
3854
3855 2005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3856
3857 * macterm.c (mac_invert_rectangle): New function.
3858 (XTflash): Use it.
3859
3860 2005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
3861
3862 * regex.h (re_char): Don't expose it in the interface.
3863 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
3864
3865 * regex.c (re_char): Move it back here.
3866 (re_set_whitespace_regexp): Change the arg's type to not use it.
3867
3868 * keyboard.c (make_lispy_event): If point has moved between down and up
3869 event, make it a drag, not a click, to mirror what
3870 mouse-drag-region expects.
3871
3872 2005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
3873
3874 * lisp.h (fatal): Undo previous change.
3875 * term.c (fatal): Undo previous change.
3876
3877 2005-10-01 Richard M. Stallman <rms@gnu.org>
3878
3879 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
3880
3881 2005-10-01 Kim F. Storm <storm@cua.dk>
3882
3883 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
3884
3885 2005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3886
3887 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
3888
3889 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
3890 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
3891 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
3892 Try ATSUI-compatible 12pt Monaco font first.
3893
3894 * macgui.h (struct _XCharStruct): New member valid_p.
3895 (STORE_XCHARSTRUCT): Set valid_p.
3896 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
3897
3898 * macterm.c (mac_draw_string_common, x_per_char_metric)
3899 (mac_compute_glyph_string_overhangs, init_font_name_table)
3900 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
3901 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
3902 (x_draw_glyph_string_background)
3903 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
3904 XDrawImageString. Always draw background and foreground separately.
3905 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
3906 functions for one-byte chars when using ATSUI-compatible fonts.
3907 (atsu_font_id_hash) [USE_ATSUI]: New variable.
3908 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
3909 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
3910 max_char_or_byte2 more in detail.
3911 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
3912
3913 2005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
3914
3915 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
3916 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
3917
3918 * unexelf.c (fatal): Fix prototype.
3919
3920 * term.c (fatal): Implement using varargs.
3921
3922 * regex.c (re_char): Move typedef ...
3923 * regex.h (re_char): ... here.
3924 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
3925
3926 * emacs.c (malloc_set_state): Fix return type.
3927 (endif): Fix type.
3928
3929 * lisp.h (fatal): Add argument types.
3930
3931 * dispextern.h (fatal): Delete prototype.
3932
3933 * systime.h (make_time): Prototype moved from ...
3934 * editfns.c (make_time): ... here.
3935
3936 * editfns.c: Move systime.h include after lisp.h.
3937 * dired.c:
3938 * xsmfns.c:
3939 * process.c: Likewise.
3940
3941 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
3942 Add parameter types.
3943 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
3944 (emacs_blocked_free): Change definition to match __free_hook.
3945 (emacs_blocked_malloc): Change definition to match __malloc_hook.
3946 (emacs_blocked_realloc): Change definition to match __realloc_hook.
3947
3948 2005-09-30 Romain Francoise <romain@orebokech.com>
3949
3950 * minibuf.c (Fread_buffer): Follow convention for reading from the
3951 minibuffer with a default value. Doc fix.
3952
3953 2005-09-29 Juri Linkov <juri@jurta.org>
3954
3955 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
3956 Rename argument name `string' to `format-string'.
3957 (Fformat): Doc fix.
3958
3959 2005-09-28 Kim F. Storm <storm@cua.dk>
3960
3961 * image.c (gif_load): Fix size of allocated image buffer
3962 for images where a sub-image may be larger than the image's
3963 total height/width specifications.
3964
3965 2005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3966
3967 * macgui.h (struct _XCharStruct): Each member now takes short value.
3968
3969 2005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
3970
3971 * xfaces.c (lookup_derived_face): Add parameter type.
3972
3973 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
3974
3975 * marker.c (verify_bytepos): Add parameter type.
3976
3977 * process.c (get_operating_system_release): Move prototype ...
3978
3979 * systime.h (get_operating_system_release): ... here.
3980
3981 * xterm.c (handle_one_xevent): Refer to union field to match the
3982 type required by the function definition.
3983 (set_vertical_scroll_bar): Move prototype ...
3984
3985 * xterm.h: ... here.
3986
3987 * fns.c (internal_equal, seed_random): Fix prototypes.
3988 (internal_equal): Add missing parameter.
3989
3990 2005-09-25 Richard M. Stallman <rms@gnu.org>
3991
3992 * keyboard.c (update_menu_bindings): Variable deleted.
3993 (syms_of_keyboard): Don't defvar it.
3994 (parse_menu_item): Don't test it.
3995
3996 2005-09-23 Richard M. Stallman <rms@gnu.org>
3997
3998 * editfns.c (Fformat): Explicitly test for end of format string
3999 and don't use `index'.
4000
4001 2005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
4002
4003 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
4004 Define BROKEN_GET_CURRENT_DIR_NAME.
4005
4006 * sysdep.c (get_current_dir_name): Also define if
4007 BROKEN_GET_CURRENT_DIR_NAME.
4008
4009 * m/ibmrs6000.h: Test for USG5, not USG5_4.
4010
4011 2005-09-22 Kim F. Storm <storm@cua.dk>
4012
4013 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
4014 (message2): Fix commentary. Ok to use alloca'ed memory.
4015 Still not ok to use Lisp string data (because of GC).
4016 (set_message): Add comment why GC cannot happen.
4017
4018 2005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4019
4020 * macterm.c (xlfdpat_block_match_1): Fix assertion.
4021 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
4022 variants for a scalable font multiple times.
4023
4024 2005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4025
4026 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
4027 Setup slave tty options before forking.
4028
4029 2005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4030
4031 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
4032 positions have been set for the frame (as is done for frames in
4033 special-display-buffer-names).
4034
4035 2005-09-19 Kim F. Storm <storm@cua.dk>
4036
4037 * editfns.c (Fformat): Don't scan past end of format string that
4038 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
4039
4040 2005-09-18 Andreas Schwab <schwab@suse.de>
4041
4042 * window.h (struct window): Remove height_fixed_p, no longer set.
4043
4044 * window.c (make_window): Don't initialize height_fixed_p.
4045 (window_fixed_size_p): Don't use it.
4046
4047 2005-09-18 John Paul Wallington <jpw@pobox.com>
4048
4049 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
4050
4051 2005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4052
4053 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
4054
4055 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
4056 New variables.
4057 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
4058 file selection.
4059
4060 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
4061
4062 2005-09-17 Eli Zaretskii <eliz@gnu.org>
4063
4064 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
4065 (obj): Use XMENU_OBJ, not a literal xmenu.o.
4066
4067 2005-09-16 Romain Francoise <romain@orebokech.com>
4068
4069 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
4070
4071 2005-09-15 Richard M. Stallman <rms@gnu.org>
4072
4073 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
4074 (display_mode_element): Instead of `lisp_string' and `this',
4075 record `offset' and increment that.
4076 `last_offset' replaces `last'.
4077
4078 * Makefile.in (XMENU_OBJ): Variable deleted.
4079 (obj): Use xmenu.o unconditionally.
4080 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
4081
4082 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
4083
4084 2005-09-15 Kim F. Storm <storm@cua.dk>
4085
4086 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
4087 (reseat_at_next_visible_line_start): Likewise (in xassert).
4088
4089 2005-09-14 Romain Francoise <romain@orebokech.com>
4090
4091 * fileio.c (write_region_inhibit_fsync): New variable.
4092 (Fwrite_region): Use it to skip call to fsync.
4093 (syms_of_fileio): Initialize it.
4094
4095 2005-09-14 Kenichi Handa <handa@m17n.org>
4096
4097 * coding.c (code_convert_region_unwind): Argument format changed.
4098 (run_pre_post_conversion_on_str): If pre-write-conversion function
4099 changed the current buffer, delete the new buffer.
4100 (run_pre_write_conversin_on_c_str): Likewise.
4101
4102 * fileio.c (Fexpand_file_name): Check multibyteness of
4103 default_directory.
4104
4105 2005-09-13 Kenichi Handa <handa@m17n.org>
4106
4107 * composite.c (compose_chars_in_text): Delete it.
4108
4109 * composite.h (compose_chars_in_text): Delete extern.
4110
4111 2005-09-13 Kim F. Storm <storm@cua.dk>
4112
4113 * print.c (print_error_message): Fix last change.
4114
4115 2005-09-12 Kim F. Storm <storm@cua.dk>
4116
4117 * composite.c (compose_chars_in_text): Fix setup of `pend'.
4118 Unconditionally reload `ptr' and `pend' after eval.
4119
4120 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
4121
4122 * print.c (print_error_message): Pass copy of caller name to
4123 message_dolog.
4124
4125 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
4126
4127 2005-09-12 Kenichi Handa <handa@m17n.org>
4128
4129 * xdisp.c (display_mode_element): Be sure to make variables THIS
4130 and LISP_STRING point into a string data of ELT.
4131
4132 2005-09-12 Kim F. Storm <storm@cua.dk>
4133
4134 * editfns.c (Ftranslate_region_internal): Reload `tt' after
4135 signal_after_change that may have GC'ed.
4136 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
4137
4138 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
4139 after insert while runs signal_after_change.
4140
4141 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
4142 declaration to where it is used.
4143
4144 * w32.c (check_windows_init_file): Fix allocation of error buffer.
4145
4146 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
4147 (x_set_name_internal): Call x_encode_text with new FREEP arg to
4148 know if xfree is needed instead of guessing.
4149
4150 * xterm.h (x_encode_text): Remove prototype.
4151
4152 2005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
4153
4154 * w32term.c (x_bitmap_icon): Load small icons too.
4155
4156 2005-09-10 Romain Francoise <romain@orebokech.com>
4157
4158 * buffer.c (init_buffer): Grow buffer to add directory separator
4159 and terminal zero. Fix typos.
4160
4161 2005-09-10 Eli Zaretskii <eliz@gnu.org>
4162
4163 * buffer.c (init_buffer): Fix error message for failed call to
4164 get_current_dir_name.
4165 (get_current_dir_name): Remove prototype.
4166
4167 * xsmfns.c (get_current_dir_name): Remove prototype.
4168
4169 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
4170 Add prototype.
4171
4172 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
4173 Don't #undef NULL after including blockinput.h.
4174
4175 * config.in: Regenerated.
4176
4177 2005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
4178
4179 Remove the MAXPATHLEN limitations:
4180
4181 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
4182 New function.
4183
4184 * buffer.c (init_buffer): Use it.
4185
4186 * xsmfns.c (smc_save_yourself_CB): Ditto.
4187
4188 2005-09-09 Kim F. Storm <storm@cua.dk>
4189
4190 * doc.c (Fsubstitute_command_keys): Lookup key binding for
4191 commands that are remapped from some other command.
4192
4193 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
4194 flag in disabled rows below the window.
4195
4196 * frame.h (struct frame): New member updated_p.
4197
4198 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
4199 member. Remove local `updated' array and associated variables.
4200
4201 2005-09-07 Kim F. Storm <storm@cua.dk>
4202
4203 * xdisp.c (handle_display_prop): Respect overlay window property.
4204
4205 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
4206 Fixes crash reported by YAMAMOTO Mitsuharu.
4207
4208 2005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4209
4210 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
4211 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
4212 (xlfdpat_block_match_1, xlfdpat_match): New functions.
4213 (xlfdpat_block_match): New macro.
4214 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
4215 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
4216 (add_font_name_table_entry): Increase font_name_table_size more
4217 rapidly.
4218 (mac_c_string_match): Remove function.
4219 (mac_do_list_fonts): Use XLFD pattern match instead of regular
4220 expression match.
4221
4222 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
4223
4224 2005-09-03 Richard M. Stallman <rms@gnu.org>
4225
4226 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
4227 (move_it_in_display_line_to): Stop after last char on line even
4228 on a windowing terminal, if that's the specified stop position.
4229
4230 * fns.c (Fsort): Doc fix.
4231
4232 * editfns.c (Fpropertize): Don't insist that properties be symbols.
4233
4234 2005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
4235
4236 * dired.c (directory_files_internal_unwind, directory_files_internal)
4237 (file_name_completion): Use a Save_Value object rather than a cons of
4238 two 16bit ints to store the DIR*.
4239 (directory_files_internal, file_name_completion): Handle both EINTR and
4240 EAGAIN consistently after `readdir'.
4241
4242 2005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
4243
4244 * intervals.c (update_interval): Add position info in error.
4245
4246 * dispnew.c (window_to_frame_hpos, update_window):
4247 Avoid gcc warning about unused variable `f'.
4248
4249 2005-08-31 Jason Rumney <jasonr@gnu.org>
4250
4251 * w32menu.c (add_menu_item): If unicode_append_menu returns an
4252 error, revert to using AppendMenu.
4253
4254 2005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4255
4256 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
4257 All uses changed.
4258 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
4259 cases.
4260 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
4261 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
4262 Use posix_pathname_to_fsspec.
4263 [MAC_OS] (xpm_load_image): Fill in background_transparent field
4264 while we have mask.
4265
4266 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
4267
4268 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
4269
4270 2005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4271
4272 * syntax.c (update_syntax_table): Properly reproduce the special +1
4273 setting of e_property at the end of the buffer when bumping into the
4274 INTERVALS_AT_ONCE limit.
4275
4276 2005-08-27 Eli Zaretskii <eliz@gnu.org>
4277
4278 * emacs.c (USAGE1): Fix the description of the -Q option.
4279
4280 2005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
4281
4282 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
4283
4284 2005-08-26 Kim F. Storm <storm@cua.dk>
4285
4286 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
4287 Don't move PT to new window start.
4288
4289 2005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4290
4291 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
4292 ICONIFY/DEICONIFY_EVENT.
4293
4294 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
4295 Restore background color.
4296 (mac_handle_visibility_change): New function.
4297 (x_make_frame_invisible, x_iconify_frame)
4298 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
4299 [USE_CARBON_EVENTS] (mac_handle_window_event)
4300 (install_window_handler): Handle visibility change events.
4301 (x_make_frame_visible): Don't reposition window if it is iconified
4302 or asked for visible before. Select and uncollapse window when it
4303 is made visible.
4304 (x_make_frame_invisible): Don't reset x_highlight_frame.
4305 (x_iconify_frame): Likewise. Make invisible frame visible before
4306 it is iconified.
4307 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
4308 (do_window_update): Don't change visibility of invisible frame.
4309
4310 2005-08-22 Juri Linkov <juri@jurta.org>
4311
4312 * term.c (turn_on_face): Check for TS_set_foreground and
4313 TS_set_background depending on standout_mode. Simplify.
4314
4315 2005-08-21 Kim F. Storm <storm@cua.dk>
4316
4317 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
4318 bitmaps on fully visible rows.
4319
4320 * fringe.c (update_window_fringes): Replace FORCE_P arg with
4321 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
4322 and return 0.
4323
4324 * xdisp.c (redisplay_window): Call update_window_fringes with
4325 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
4326
4327 2005-08-20 Richard M. Stallman <rms@gnu.org>
4328
4329 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
4330 (resize_mini_window): Set w->start, and PT, so as to display the tail
4331 end of the buffer, if it doesn't all fit.
4332
4333 2005-08-18 Kim F. Storm <storm@cua.dk>
4334
4335 * xdisp.c (calc_pixel_width_or_height): Use actual display
4336 resolution when available instead of Vdisplay_pixels_per_inch.
4337
4338 2005-08-17 Kim F. Storm <storm@cua.dk>
4339
4340 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
4341
4342 * dispnew.c (buffer_posn_from_coords): Check that target row is
4343 within matrix.
4344
4345 2005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4346
4347 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
4348 xg_set_frame_icon and call it.
4349
4350 * gtkutil.c (xg_set_frame_icon): New function.
4351
4352 * gtkutil.h (xg_set_frame_icon): Declare it.
4353
4354 2005-08-16 Kim F. Storm <storm@cua.dk>
4355
4356 * dispnew.c (increment_row_positions): Skip non-enabled rows.
4357
4358 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
4359 (Fcurrent_window_configuration): Use VECSIZE macro instead.
4360
4361 2005-08-15 Richard M. Stallman <rms@gnu.org>
4362
4363 * xdisp.c (message3_nolog): Clear echo_message_buffer.
4364
4365 2005-08-15 Kim F. Storm <storm@cua.dk>
4366
4367 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
4368
4369 * process.c (deactivate_process, status_notify, read_process_output)
4370 (update_status, status_convert, decode_status, allocate_pty)
4371 (make_process, remove_process, list_processes_1)
4372 (create_process_1, unwind_request_sigio, read_process_output)
4373 (send_process, keyboard_bit_set): Declare static.
4374 (Fdelete_process): Simplify. Pass process to status_notify, so we
4375 don't try to read output from it.
4376 (status_notify): New arg deleting_process--don't try to read
4377 output from that process.
4378
4379 * lisp.h (deactivate_process, status_notify, read_process_output):
4380 Remove prototypes.
4381
4382 2005-08-14 Richard M. Stallman <rms@gnu.org>
4383
4384 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
4385 define_image_type.
4386
4387 2005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4388
4389 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
4390 (xg_get_image_for_pixmap): Move some code to
4391 xg_get_pixbuf_from_pix_and_mask, and call it.
4392
4393 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
4394
4395 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
4396 to get an GTK icon and set it with GTK functions to avoid having GTK
4397 override an icon set with just X functions.
4398
4399 2005-08-11 Richard M. Stallman <rms@gnu.org>
4400
4401 * image.c (syms_of_image): Init image_types here, and call
4402 define_image_type.
4403 (init_image): Not here.
4404
4405 2005-08-09 Richard M. Stallman <rms@gnu.org>
4406
4407 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
4408
4409 * lisp.h (QUIT): Throw t to Vthrow_on_input.
4410
4411 2005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
4412
4413 * floatfns.c (Fexpt): Use floats for negative exponent.
4414
4415 2005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4416
4417 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
4418 should not be there, causing menu display errors with GTK 2.6.9.
4419
4420 2005-08-07 Richard M. Stallman <rms@gnu.org>
4421
4422 * floatfns.c (Fexpt): Undo previous change.
4423
4424 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
4425 so it can be used with various state vectors.
4426
4427 * emacs.c (endif): Convert -script into -scriptload.
4428 (standard_args): Add -scriptload. Allow -basic-display with one dash.
4429
4430 * fns.c (syms_of_fns): Add `emacs' to features.
4431
4432 * term.c (set_terminal_modes): If no TS_termcap_modes string,
4433 output newlines to scroll the old screen contents off the screen.
4434
4435 2005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
4436
4437 * floatfns.c (Fexpt): Use floats for negative exponent.
4438 Reported by D Goel.
4439
4440 2005-08-02 Richard M. Stallman <rms@gnu.org>
4441
4442 * frame.c (Fframe_char_width): Doc fix.
4443
4444 2005-07-30 Juanma Barranquero <lekktu@gmail.com>
4445
4446 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
4447 Defvar it.
4448
4449 2005-07-28 Juanma Barranquero <lekktu@gmail.com>
4450
4451 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
4452 (my_create_window, my_create_tip_window): Make static.
4453
4454 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
4455 (my_set_foreground_window, my_destroy_window): Make static.
4456
4457 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
4458
4459 Merge gnulib getopt implementation into Emacs.
4460
4461 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
4462 now part of lib-src.
4463
4464 2005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
4465
4466 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
4467
4468 2005-07-25 Jason Rumney <jasonr@gnu.org>
4469
4470 * w32menu.c (w32_menu_display_help): Suppress tooltip when
4471 navigating menus with the keyboard.
4472
4473 2005-07-23 Richard M. Stallman <rms@gnu.org>
4474
4475 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
4476
4477 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
4478 gc_relative_threshold, one by one.
4479
4480 * keyboard.c (read_char): Test gc_cons_threshold.
4481 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
4482
4483 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
4484 gc_relative_threshold, one by one.
4485
4486 * alloc.c (gc_cons_threshold): Not static.
4487 (gc_cons_combined_threshold): Var deleted.
4488 (gc_relative_threshold): New variable.
4489 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
4490 instead of gc_cons_combined_threshold.
4491
4492 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
4493 (gc_cons_combined_threshold): Declaration deleted.
4494
4495 2005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4496
4497 * mac.c: Don't include stdlib.h or string.h.
4498 (Fdo_applescript, Fmac_file_name_to_posix)
4499 (Fmac_file_name_to_posix): Doc fixes.
4500 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
4501 (Fmac_code_convert_string): Likewise.
4502 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
4503 if the executable is not contained in a bundle.
4504
4505 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
4506 (gray_width, gray_height): Remove defines.
4507 (gray_bits, gray_bitmap_width, gray_bitmap_height)
4508 (gray_bitmap_bits): Remove variables.
4509 (lispy_function_keys): Remove extern.
4510 (free_frame_menubar): Add extern.
4511 (x_window_to_frame): Remove function.
4512 (unwind_create_tip_frame): Add declaration.
4513 (x_set_name_internal): New function.
4514 (x_set_name, x_set_title): Use it.
4515 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
4516 (Fx_display_pixel_height, Fx_display_planes)
4517 (Fx_display_color_cells, Fx_server_max_request_size)
4518 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4519 (Fx_display_mm_height, Fx_display_mm_width)
4520 (Fx_display_backing_store, Fx_display_visual_class)
4521 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
4522
4523 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
4524
4525 * macselect.c (Fx_own_selection_internal): Follow error conventions.
4526 (Fx_get_selection_internal, Fx_selection_owner_p)
4527 (Fx_selection_exists_p): Doc fixes.
4528 (syms_of_macselect) <selection-converter-alist>: Likewise.
4529
4530 2005-07-21 Juanma Barranquero <lekktu@gmail.com>
4531
4532 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
4533
4534 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
4535 (Fccl_execute_on_string): Likewise; add usage info.
4536
4537 * composite.c (Fcompose_region_internal)
4538 (Fcompose_string_internal):
4539 Improve argument/docstring consistency.
4540
4541 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
4542 Fix typos in docstrings.
4543
4544 * textprop.c (Fnext_char_property_change)
4545 (Fprevious_char_property_change): Doc fixes.
4546
4547 * window.c (Fset_window_margins, Fset_window_fringes):
4548 Improve argument/docstring consistency.
4549
4550 * xfaces.c (Finternal_lisp_face_p): Doc fix.
4551
4552 2005-07-21 Andreas Schwab <schwab@suse.de>
4553
4554 * eval.c (restore_stack_limits): Return a value.
4555
4556 2005-07-20 Juanma Barranquero <lekktu@gmail.com>
4557
4558 * eval.c (Fdefvar): Doc fix.
4559
4560 2005-07-20 Kim F. Storm <storm@cua.dk>
4561
4562 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
4563 Use make_save_value to unwind protect stream.
4564
4565 * lread.c (Fload, load_unwind):
4566 Use make_save_value to unwind protect stream.
4567
4568 2005-07-19 Juanma Barranquero <lekktu@gmail.com>
4569
4570 * eval.c (Fprog2, Fcalled_interactively_p),
4571 (syms_of_eval) <debug-on-quit>: Doc fixes.
4572 (syms_of_eval) <max-specpdl-size>:
4573 (Finteractive_p): Fix typos in docstrings.
4574
4575 2005-07-19 Kim F. Storm <storm@cua.dk>
4576
4577 * w32fns.c (Vx_hand_shape): Variable removed.
4578 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
4579
4580 2005-07-19 Kenichi Handa <handa@m17n.org>
4581
4582 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
4583
4584 2005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
4585
4586 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
4587
4588 2005-07-18 Kim F. Storm <storm@cua.dk>
4589
4590 * frame.h (struct frame): New member already_hscrolled_p.
4591
4592 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
4593 to avoid redisplay looping hscrolling back and forth ad infinitum.
4594
4595 2005-07-18 Juri Linkov <juri@jurta.org>
4596
4597 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
4598 * keymap.c (Fminor_mode_key_binding):
4599 * macterm.c (mac-emulate-three-button-mouse):
4600 Delete duplicate duplicate words.
4601
4602 2005-07-18 Ken Raeburn <raeburn@gnu.org>
4603
4604 * minibuf.c (Ftest_completion): Fix odd syntax in test.
4605
4606 2005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4607
4608 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
4609
4610 * macgui.h (struct _XGC): New struct.
4611 (GC): Use it.
4612 (GCForeground, GCBackground, GCFont): Use X11 mask values.
4613 (XCreateGC, XParseGeometry): Move externs to macterm.h.
4614
4615 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
4616 (XSetFont): Add declaration.
4617 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
4618 Remove functions.
4619 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
4620 New defines.
4621 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
4622 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
4623 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
4624 Use them.
4625 (mac_erase_rectangle): New function.
4626 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
4627 (x_draw_stretch_glyph_string): Use it.
4628 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
4629 (XSetBackground, XSetFont): Adjust for new GC implementation.
4630 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
4631 (XTset_vertical_scroll_bar): Clear area under scroll bar.
4632
4633 * macterm.h (struct mac_display_info): Change types of
4634 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
4635 (XCreateGC, XParseGeometry): Move externs from macgui.h.
4636
4637 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
4638
4639 2005-07-16 Richard M. Stallman <rms@gnu.org>
4640
4641 * buffer.c (Fmake_overlay): Doc fix.
4642
4643 2005-07-16 Eli Zaretskii <eliz@gnu.org>
4644
4645 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
4646 Vw32_valid_locale_ids, and Vw32_valid_codepages.
4647
4648 2005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4649
4650 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
4651 Use Fstring_as_unibyte instead of string_make_unibyte.
4652
4653 2005-07-15 Richard M. Stallman <rms@gnu.org>
4654
4655 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
4656
4657 2005-07-15 Kim F. Storm <storm@cua.dk>
4658
4659 * xdisp.c: Fix redisplay loop in last change.
4660 (IT_POS_VALID_AFTER_MOVE_P): New macro.
4661 (move_it_vertically_backward, move_it_by_lines): Use it.
4662
4663 2005-07-14 Jason Rumney <jasonr@gnu.org>
4664
4665 * w32.c (init_environment): Default HOME directory to user's
4666 appdata directory if possible.
4667
4668 2005-07-14 Kim F. Storm <storm@cua.dk>
4669
4670 * .gdbinit (pitx): Fix output format. Print string charpos.
4671
4672 * lread.c (syms_of_lread): Initialize seen_list.
4673
4674 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
4675
4676 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
4677 Staticpro re_match_object.
4678
4679 2005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4680
4681 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
4682 dereference.
4683
4684 * macterm.c (mac_window_to_frame): Remove duplicate define.
4685
4686 2005-07-14 Kenichi Handa <handa@m17n.org>
4687
4688 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
4689 (code_convert_region): Adjust for the above change.
4690 (set_conversion_work_buffer): If the work buffer is already in
4691 use, generate a new buffer and return it. Otherwise return Qnil.
4692 (run_pre_post_conversion_on_str): Adjust for the above change.
4693 (run_pre_write_conversin_on_c_str): Likewise.
4694
4695 2005-07-13 Kim F. Storm <storm@cua.dk>
4696
4697 * xdisp.c (start_display): Don't reseat to next visible line start
4698 if current start position is in a string or image.
4699 (move_it_vertically_backward): Be sure to move out of strings and
4700 images when moving it2 forward.
4701 (move_it_by_lines): When moving forward, move to next buffer
4702 position if we end up in a string or image. When moving backward,
4703 count rows moved over when moving to start of current row in case
4704 row starts in middle of a string or image. Also move further
4705 backward if we end up in a string or image.
4706 (try_cursor_movement): If overlay string spans multiple lines,
4707 move backward to set cursor on start of an overlay string.
4708 (cursor_row_p): Row is ok if cursor is at newline from string, but
4709 string starts on this line (so we always position cursor at start
4710 of string).
4711
4712 * indent.c (Fvertical_motion): If start position is on an image,
4713 don't move back if we move too far (that's almost certain to happen).
4714
4715 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
4716 row in minibuffer windows.
4717 (try_window): Don't check margins in minibuffer windows.
4718
4719 2005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4720
4721 * macterm.c: Don't include stdlib.h or composite.h.
4722 (x_use_underline_position_properties, last_mouse_press_frame)
4723 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
4724 (syms_of_macterm, mac_initialize): Don't initialize them.
4725 (waiting_for_input, initial_argv, initial_argc)
4726 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
4727 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
4728 (extra_keyboard_modifiers): Fix type in extern.
4729 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
4730 (x_scroll_bar_report_motion): Add argument types to declaration.
4731 (mac_compute_glyph_string_overhangs): Add declaration.
4732 (disable_mouse_highlight): Remove unused variable.
4733 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
4734 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
4735 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
4736 All callers changed.
4737 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
4738 timestamp.
4739 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
4740 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
4741 only when its width is less than the height.
4742 (XTredeem_scroll_bar): Sync with xterm.c.
4743 (font_name_table, font_name_table_size, font_name_count):
4744 Make static.
4745 (drag_and_drop_file_list): Remove variable. Previous use is now
4746 local to function.
4747 (do_ae_open_documents): Move DRAG_N_DROP event construction part
4748 from XTread_socket.
4749 (XTread_socket): Consolidate setting of event timestamp.
4750 Move DRAG_N_DROP event construction part to do_ae_open_documents.
4751 Support extra_keyboard_modifiers.
4752
4753 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
4754 beginning with that for ASCII.
4755
4756 2005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
4757
4758 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
4759 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
4760 (syms_of_alloc): Declare gc-cons-percentage.
4761
4762 * eval.c (Feval, Ffuncall):
4763 * keyboard.c (read_char):
4764 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
4765
4766 * lisp.h (gc_cons_combined_threshold): Declare.
4767
4768 2005-07-12 Kim F. Storm <storm@cua.dk>
4769
4770 * coding.c (Qprocess_argument):
4771 * coding.h (Qprocess_argument): Remove unused var.
4772
4773 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
4774
4775 2005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4776
4777 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
4778 Endian.h.
4779 [!MAC_OSX] (fchmod, fchown): New functions.
4780 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
4781 Use SBYTES and EndianU32_BtoN.
4782 (mac_get_object_from_code): Return 4 byte string even if argument
4783 is 0. Use make_unibyte_string and EndianU32_NtoB.
4784 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
4785 (Fmac_set_file_type): Fix documents and argument declarations.
4786 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
4787
4788 2005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
4789
4790 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
4791
4792 2005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4793
4794 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
4795 Lucid if X_I18N, font otherwise.
4796
4797 2005-07-10 Steven Tamm <steventamm@mac.com>
4798
4799 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
4800 (Fmac_set_file_type, Fmac_set_file_creator): Add.
4801 (mac_get_object_from_code, mac_get_code_from_arg): Add.
4802
4803 2005-07-10 Richard M. Stallman <rms@gnu.org>
4804
4805 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
4806 (syms_of_lread): Set up eval-buffer-list.
4807 (Feval_buffer, Feval_region): Bind eval-buffer-list.
4808
4809 2005-07-08 Richard M. Stallman <rms@gnu.org>
4810
4811 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
4812
4813 2005-07-08 Kim F. Storm <storm@cua.dk>
4814
4815 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
4816 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
4817
4818 2005-07-07 Kim F. Storm <storm@cua.dk>
4819
4820 * window.c (Frecenter): Fix last change (set iarg before use).
4821
4822 2005-07-06 Richard M. Stallman <rms@gnu.org>
4823
4824 * window.c (Frecenter): When arg is inside the scroll margin,
4825 move it out of the margin.
4826
4827 2005-07-06 Jason Rumney <jasonr@gnu.org>
4828
4829 * w32console.c (initialize_w32_display): Detect when the console
4830 dimensions are insane, and default to 80x25 instead.
4831 (w32_use_full_screen_buffer): Default to NIL.
4832
4833 2005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4834
4835 * macterm.c (mac_draw_vertical_window_border): Use foreground of
4836 VERTICAL_BORDER_FACE_ID for vertical border line.
4837 (mac_encode_char): Call check_ccl_update in advance.
4838 (mac_to_x_fontname, x_font_name_to_mac_font_name)
4839 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
4840 Don't assume that font family length is less than 32.
4841 (x_compute_min_glyph_bounds): Make static.
4842 (x_load_font): Never set fonts_changed_p to zero.
4843
4844 2005-07-04 Lute Kamstra <lute@gnu.org>
4845
4846 * Update FSF's address in GPL notices.
4847
4848 2005-07-03 Richard M. Stallman <rms@gnu.org>
4849
4850 * xdisp.c (try_window): Fix previous change in how it handles
4851 a partially-visible line or one only partly past the margin.
4852
4853 * window.c (window_scroll_pixel_based): Take account
4854 of this_scroll_margin when finding point when scrolling up.
4855
4856 2005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
4857
4858 * window.c (window_scroll_pixel_based, window_scroll_line_based):
4859 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
4860 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
4861
4862 2005-07-02 Juri Linkov <juri@jurta.org>
4863
4864 * w32term.c (w32_draw_vertical_window_border): Use foreground of
4865 VERTICAL_BORDER_FACE_ID for vertical border line.
4866
4867 2005-07-02 Eli Zaretskii <eliz@gnu.org>
4868
4869 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
4870 fchmod so that chmod doesn't get called on MSDOS before the file
4871 is closed.
4872
4873 2005-07-01 Jason Rumney <jasonr@gnu.org>
4874
4875 * w32term.c (cleartype_active): New flag for enabling sub-pixel
4876 workaround.
4877 (w32_initialize): Initialize it.
4878 (w32_native_per_char_metric): Allow a couple of extra pixels when
4879 Cleartype is active.
4880
4881 * w32term.c (w32_initialize): Move check for screen reader here
4882 from syms_of_w32term.
4883
4884 2005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4885
4886 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
4887 is not zero.
4888
4889 2005-07-01 Masatake YAMATO <jet@gyve.org>
4890
4891 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
4892
4893 2005-06-30 Juri Linkov <juri@jurta.org>
4894
4895 * xdisp.c (x_draw_vertical_border): If left fringe is not present
4896 decrease x coord of vertical border by 1 pixel to not occupy text
4897 area of the right window.
4898
4899 * xterm.c (x_draw_vertical_window_border): Use foreground of
4900 VERTICAL_BORDER_FACE_ID for vertical border line.
4901
4902 * term.c (turn_on_face): In standout mode apply specified
4903 fg to bg, and specified bg to fg (this makes the logic of
4904 inversion on terminal consistent with X).
4905
4906 2005-06-29 Juanma Barranquero <lekktu@gmail.com>
4907
4908 * eval.c (user_variable_p_eh): New function.
4909 (Fuser_variable_p): Use it. Clarify docstring.
4910 Return t for aliases of user options, nil for alias loops.
4911
4912 2005-06-27 Richard M. Stallman <rms@gnu.org>
4913
4914 * eval.c (Fdefvar): Improve error message.
4915
4916 2005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4917
4918 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
4919 change.
4920
4921 2005-06-27 Juanma Barranquero <lekktu@gmail.com>
4922
4923 * eval.c (Fdefvar): Don't try to set constant symbols.
4924
4925 2005-06-25 Richard M. Stallman <rms@gnu.org>
4926
4927 * macfns.c (Fx_show_tip): Pass new arg to try_window.
4928
4929 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
4930
4931 * xfns.c (Fx_show_tip): Pass new arg to try_window.
4932
4933 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
4934 (redisplay_window): Handle try_window reporting point in scroll margin.
4935
4936 * dispextern.h (try_window): Declare new arg.
4937
4938 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
4939 Use fchmod to copy the file modes.
4940 (Frename_file): Don't copy UID and GID here;
4941 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
4942
4943 * eval.c (call_debugger): Take full care of extending stack limits
4944 to make space for the debugger, and restore the change afterward.
4945 Bind debug-on-error to nil.
4946 (restore_stack_limits): New subroutine.
4947 (Fsignal): Extend specpdl bound along with eval depth bound,
4948 for calling edebug. Don't do either one, for calling debugger.
4949 (find_handler_clause): Don't bind debug-on-error here.
4950 Don't unbind anything either.
4951 Temporarily advance max_specpdl_size for calling
4952 internal_with_output_to_temp_buffer.
4953 (grow_specpdl): Don't alter max_specpdl_size before signaling
4954 an error.
4955 (syms_of_eval) <max-specpdl-size>: Doc fix.
4956
4957 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
4958
4959 2005-06-24 Eli Zaretskii <eliz@gnu.org>
4960
4961 * fileio.c (Frename_file): Undo last change: no need to ifdef away
4962 chown on DOS_NT platforms.
4963
4964 * w32.c (sys_chown): New function.
4965
4966 * s/ms-w32.h (chown): New; define to sys_chown.
4967
4968 2005-06-24 Juanma Barranquero <lekktu@gmail.com>
4969
4970 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
4971 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
4972
4973 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
4974
4975 2005-06-23 Richard M. Stallman <rms@gnu.org>
4976
4977 * xdisp.c (get_next_display_element): Finish reversing the tests of
4978 Vnobreak_char_display.
4979
4980 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
4981 All uses changed.
4982 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
4983 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
4984
4985 * fileio.c (Frename_file): Preserve owner and group, if possible,
4986 when copying.
4987
4988 2005-06-23 Juanma Barranquero <lekktu@gmail.com>
4989
4990 * abbrev.c (Funexpand_abbrev):
4991 * category.c (Fmake_category_set):
4992 * dispnew.c (Fsleep_for, Fsit_for):
4993 * editfns.c (Fsubst_char_in_region):
4994 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
4995 * frame.c (make_frame_without_minibuffer):
4996 * lread.c (read_vector):
4997 * macfns.c (check_x_frame):
4998 * process.c (Fstop_process, Fcontinue_process):
4999 * search.c (Freplace_match):
5000 * syntax.c (Fstring_to_syntax):
5001 * w32fns.c (check_x_frame, check_x_display_info):
5002 * xfaces.c (x_supports_face_attributes_p):
5003 * xselect.c (Fx_own_selection_internal): Follow error conventions.
5004
5005 * image.c (fn_png_init_io): Don't define it.
5006 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
5007 (png_read_from_file): New function, based on png_read_from_memory.
5008 (png_load): Use it, instead of fn_png_init_io.
5009
5010 2005-06-23 Kim F. Storm <storm@cua.dk>
5011
5012 * search.c (Fmatch_data): Remove evaporate option.
5013 (Fset_match_data): Do not mention evaporate option in doc string.
5014 Add commentary explaining evaporate arg (for internal use only).
5015 (unwind_set_match_data): Add comment on evaporate use.
5016
5017 2005-06-22 Miles Bader <miles@gnu.org>
5018
5019 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
5020 (realize_basic_faces, syms_of_xfaces): Update references to it.
5021 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
5022 to `VERTICAL_BORDER_FACE_ID'.
5023 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
5024
5025 2005-06-21 Juri Linkov <juri@jurta.org>
5026
5027 * dispextern.h: Add extern Qframe_set_background_mode.
5028
5029 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
5030 Qframe_set_background_mode.
5031
5032 * frame.c (Fmodify_frame_parameters):
5033 Call frame-set-background-mode after changing the background color
5034 on non-window non-dos branch.
5035
5036 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
5037
5038 * fns.c (Fchar_table_range):
5039 * process.c (Fmake_network_process): Fix spellings.
5040
5041 2005-06-20 Kim F. Storm <storm@cua.dk>
5042
5043 * fns.c (Fsort): Doc fix.
5044
5045 2005-06-20 Miles Bader <miles@gnu.org>
5046
5047 * xfaces.c (Qvertical_divider): New variable.
5048 (realize_basic_faces): Realize its face.
5049 (syms_of_xfaces): Initialize it.
5050
5051 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
5052
5053 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
5054 window-separator on ttys using `vertical-divider' face by default.
5055
5056 2005-06-17 Richard M. Stallman <rms@gnu.org>
5057
5058 * xdisp.c (get_next_display_element):
5059 Reverse test of Vshow_nonbreak_escape.
5060
5061 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
5062 (Ftty_no_underline): New function.
5063 (syms_of_term): defsubr it.
5064
5065 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
5066
5067 * dispnew.c (spec_glyph_lookup_face): New function.
5068 (build_frame_matrix_from_leaf_window): Use it.
5069
5070 * dispextern.h (spec_glyph_lookup_face): Add declaration.
5071
5072 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
5073
5074 2005-06-12 Richard M. Stallman <rms@gnu.org>
5075
5076 * keyboard.c (read_char): After catching a longjmp,
5077 call restore_getcjmp.
5078
5079 2005-06-17 Juanma Barranquero <lekktu@gmail.com>
5080
5081 * xselect.c (lisp_data_to_selection_data): Fix spelling.
5082
5083 2005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5084
5085 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
5086 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
5087 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
5088 events.
5089 (XTread_socket): Don't pass keyboard events with the option
5090 modifier to the system when Vmac_command_key_is_meta is nil or
5091 Vmac_option_modifier is non-nil.
5092 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
5093 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
5094 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
5095 handler function.
5096 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
5097 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
5098 handler part to mac_handle_mouse_event.
5099
5100 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
5101
5102 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
5103 NEW-ALIAS and BASE-VARIABLE, respectively.
5104
5105 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
5106
5107 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
5108 (get_phys_cursor_geometry, format_mode_line_unwind_data)
5109 (get_line_height_property, x_produce_glyphs): Remove unused vars.
5110
5111 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
5112
5113 2005-06-13 Eli Zaretskii <eliz@gnu.org>
5114
5115 * w32term.c (x_use_underline_position_properties): New variable.
5116 (x_draw_glyph_string): Remind in a comment to change doc string of
5117 x-use-underline-position-properties if/when underline positioning
5118 is implemented.
5119 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
5120 and initialize it to nil.
5121
5122 2005-06-12 Jason Rumney <jasonr@gnu.org>
5123
5124 * w32fns.c (NEWOPENFILENAME): New struct.
5125 (Fx_file_dialog): Use it to trick the system into giving us up to
5126 date dialogs on systems that are documented to support it.
5127 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
5128
5129 2005-06-12 Eli Zaretskii <eliz@gnu.org>
5130
5131 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
5132 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
5133
5134 2005-06-11 Eli Zaretskii <eliz@gnu.org>
5135
5136 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
5137 to CreateDIBSection to avoid a compiler warning.
5138 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
5139 warning.
5140 (png_load): Cast return values of fn_png_create_read_struct and
5141 fn_png_create_info_struct, to avoid compiler warnings on W32.
5142 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
5143 to avoid compiler warnings.
5144 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
5145 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
5146 avoid a compiler warning.
5147 (tiff_load): Cast return values of fn_TIFFOpen and
5148 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
5149 to IMAGE_BACKGROUND to avoid a compiler warning.
5150 (gif_load): Cast return values of fn_DGifOpenFileName and
5151 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
5152 IMAGE_BACKGROUND to avoid a compiler warning.
5153 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
5154 before redefining.
5155
5156 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
5157 the call to CreateDIBSection, to avoid a compiler warning.
5158
5159 2005-06-11 Jason Rumney <jasonr@gnu.org>
5160
5161 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
5162 minibuffer.
5163 * macfns.c (Fx_file_dialog): Likewise.
5164
5165 2005-06-10 Eli Zaretskii <eliz@gnu.org>
5166
5167 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
5168
5169 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
5170
5171 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
5172 * w32fns.c (syms_of_w32fns): Fix spellings.
5173
5174 2005-06-10 Eli Zaretskii <eliz@gnu.org>
5175
5176 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5177 `verbose'; print diagnostic messages only if it is non-zero.
5178 All callers changed to pass a zero value unless DEBUG_DUMP is defined
5179 in the environment.
5180 (copy_executable_and_dump_data): Print section names with %.8s.
5181
5182 2005-06-10 Masatake YAMATO <jet@gyve.org>
5183
5184 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
5185 when mouse_face is not given.
5186
5187 2005-06-09 Luc Teirlinck <teirllm@auburn.edu>
5188
5189 * window.c (Fselect_window): Adapt call to Fselect_frame.
5190
5191 * lisp.h: Update EXFUN of Fselect_frame.
5192
5193 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
5194
5195 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
5196 no_enter.
5197 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
5198 Adapt to above change.
5199
5200 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
5201
5202 * fns.c (Fmemq, Fmaphash): Doc fixes.
5203
5204 2005-06-09 Juanma Barranquero <lekktu@gmail.com>
5205
5206 * xfaces.c (Fdisplay_supports_face_attributes_p):
5207 Fix typo in docstring.
5208
5209 2005-06-08 Steven Tamm <steventamm@mac.com>
5210
5211 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
5212 used by gcc4 on intel mac.
5213
5214 2005-06-09 Kim F. Storm <storm@cua.dk>
5215
5216 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
5217 in REUSE list if non-nil; free them if equal to evaporate.
5218 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
5219 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
5220 (restore_search_regs): Rename from restore_match_data. Uses changed.
5221 (unwind_set_match_data): New function.
5222 (record_unwind_save_match_data): New function like save-match-data.
5223
5224 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
5225 (record_unwind_save_match_data): Add prototype.
5226 (restore_search_regs): Rename from restore_match_data.
5227
5228 * composite.c (compose_chars_in_text):
5229 * eval.c (do_autoload):
5230 * macmenu.c (set_frame_menubar):
5231 * process.c (read_process_output, exec_sentinel):
5232 * xmenu.c (set_frame_menubar):
5233 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
5234 * w32menu.c (set_frame_menubar):
5235 Use record_unwind_save_match_data.
5236
5237 2005-06-08 Richard M. Stallman <rms@gnu.org>
5238
5239 * xdisp.c (get_next_display_element): Alter previous change:
5240 Distinguish Vshow_nonbreak_escape = t or not t.
5241 For t, use escape_glyph once again, as before previous change.
5242 Use space or hyphen for display, instead of the non-ASCII char.
5243 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
5244
5245 * process.c (Fstart_process): Don't touch command_channel_p slot.
5246
5247 * process.h (struct process): Delete command_channel_p.
5248
5249 2005-06-07 Masatake YAMATO <jet@gyve.org>
5250
5251 * xdisp.c (note_mode_line_or_margin_highlight):
5252 Check the overlapping of re-rendering area to avoid flickering.
5253 (note_mouse_highlight): Call clear_mouse_face if PART
5254 is not ON_MODE_LINE nor ON_HEADER_LINE.
5255
5256 2005-06-07 Kim F. Storm <storm@cua.dk>
5257
5258 * process.c: Improve commentary for adaptive read buffering.
5259
5260 2005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
5261
5262 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
5263 if available.
5264
5265 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5266
5267 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
5268 New functions for popping down menus on C-g.
5269 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
5270
5271 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
5272 non-static.
5273
5274 * config.in: Add HAVE_CANCELMENUTRACKING.
5275
5276 2005-06-06 Eli Zaretskii <eliz@gnu.org>
5277
5278 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
5279
5280 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
5281
5282 * w32proc.c (RVA_TO_PTR): New macro.
5283
5284 * w32heap.c (RVA_TO_PTR): No need to #undef now.
5285
5286 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
5287 Depend on w32heap.h.
5288
5289 2005-06-06 Luc Teirlinck <teirllm@auburn.edu>
5290
5291 * keyboard.c (command_loop_1): Update Vthis_original_command.
5292
5293 2005-06-06 Richard M. Stallman <rms@gnu.org>
5294
5295 * xmenu.c (popup_get_selection): Undo previous change.
5296
5297 2005-06-06 Juri Linkov <juri@jurta.org>
5298
5299 * xdisp.c (Qno_break_space): New variable.
5300 (syms_of_xdisp): Initialize it.
5301 (get_next_display_element): Add no-break space and soft hypen
5302 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
5303 Use `no-break-space' face for no-break spaces.
5304
5305 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5306
5307 * window.c (delete_window): Handle the case where a h/vchild has
5308 a h/vchild.
5309
5310 2005-06-05 Eli Zaretskii <eliz@gnu.org>
5311
5312 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
5313 call to pfn_setsockopt, cast optval to `const char *'.
5314
5315 2005-06-04 Eli Zaretskii <eliz@gnu.org>
5316
5317 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
5318 (open_unc_volume): Cast return value of map_w32_filename, to avoid
5319 compiler warnings.
5320
5321 * s/ms-w32.h (fileno): Don't define if already defined.
5322
5323 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
5324
5325 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
5326
5327 2005-06-04 Richard M. Stallman <rms@gnu.org>
5328
5329 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
5330
5331 2005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5332
5333 * macmenu.c (cleanup_popup_menu): New function.
5334 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
5335 mac_menu_show Quit:s.
5336 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
5337 a dialog).
5338
5339 2005-06-04 Kim F. Storm <storm@cua.dk>
5340
5341 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
5342
5343 * callproc.c (Fcall_process): Don't use alloca to gradually
5344 increase size of buf, as it effectively uses twice the necessary
5345 space on the stack. Instead, pre-allocate buf of full size, and
5346 gradually increase the read size.
5347
5348 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
5349
5350 * eval.c (unbind_to): Preserve value of Vquit_flag.
5351
5352 * xterm.c (handle_one_xevent): Also ignore mouse motion just
5353 before a button release event.
5354
5355 2005-06-03 Juanma Barranquero <lekktu@gmail.com>
5356
5357 * xfaces.c (Finternal_lisp_face_equal_p): Really report
5358 on faces in a frame, if the argument FRAME is non-nil.
5359 Improve argument/docstring consistency.
5360
5361 2005-06-02 Kim F. Storm <storm@cua.dk>
5362
5363 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
5364 (x_consider_frame_title, Fformat_mode_line): Save offset into
5365 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
5366
5367 2005-06-01 Kim F. Storm <storm@cua.dk>
5368
5369 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
5370
5371 2005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5372
5373 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
5374 resolution fields for scalable fonts to 0.
5375
5376 * xfaces.c (build_scalable_font_name): Round pixel size to the
5377 nearest integer.
5378
5379 2005-06-01 Kim F. Storm <storm@cua.dk>
5380
5381 * xdisp.c (display_mode_line): Support nested calls to redisplay
5382 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
5383
5384 2005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
5385
5386 * fileio.c (Finsert_file_contents):
5387 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
5388
5389 2005-05-31 Kim F. Storm <storm@cua.dk>
5390
5391 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
5392 (mode_line_noprop_ptr): Rename from frame_title_*.
5393 (store_mode_line_noprop_char): Rename from store_frame_title_char.
5394 (store_mode_line_noprop): Rename from store_frame_title.
5395 (mode_line_target): New enum to specify current output target
5396 for mode line formatting.
5397 (display_mode_element): Test it rather than frame_title_ptr and
5398 mode_line_string_list to determine where output should go.
5399 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
5400 (Vmode_line_unwind_vector): New variable.
5401 (format_mode_line_unwind_data, unwind_format_mode_line):
5402 New functions for unwind protection in mode line formatting.
5403 (x_consider_frame_title): Use them and new local var 'title_start'
5404 to support nested calls to format-mode-line and redisplay.
5405 Set mode_line_target to MODE_LINE_TITLE.
5406 (Fformat_mode_line): Use them and new local var 'string_start' to
5407 support nested calls to format-mode-line and redisplay.
5408 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
5409 Don't trim trailing dashes.
5410 (decode_mode_spec): Don't make infinite number of trailing dashes
5411 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
5412 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
5413 mode_line_string_face_prop, and Vmode_line_unwind_vector.
5414 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
5415 Initialize mode_line_target to MODE_LINE_DISPLAY.
5416
5417 2005-05-29 Richard M. Stallman <rms@gnu.org>
5418
5419 * buffer.c (Fbuffer_local_value): Call indirect_variable.
5420
5421 2005-05-28 Masatake YAMATO <jet@gyve.org>
5422
5423 * xdisp.c (note_mode_line_or_margin_highlight): Change the
5424 pointer to a hand cursor when hoovering over a mouse-face.
5425
5426 2005-05-27 Kenichi Handa <handa@m17n.org>
5427
5428 * xterm.c (x_encode_char): Call check_ccl_update in advance.
5429
5430 * ccl.c: Now an element of Vccl_program_table is a vector of
5431 length 4, not 3.
5432 (ccl_get_compiled_code): New arg idx. Caller changed.
5433 Adjust for the change of Vccl_program_table.
5434 (setup_ccl_program): Adjust for the change of Vccl_program_table.
5435 (check_ccl_update): New function.
5436 (Fregister_ccl_program): Use ASET to set an element of a vector.
5437 Adjusted for the change of Vccl_program_table.
5438
5439 * ccl.h (struct ccl_program): New member idx.
5440 (check_ccl_update): Extern it.
5441
5442 2005-05-27 Juanma Barranquero <lekktu@gmail.com>
5443
5444 * image.c (Vimage_library_alist): Move from image.el.
5445 (syms_of_image): Defvar it.
5446 (lookup_image_type): Use it.
5447
5448 * buffer.c (Fbuffer_local_value): Make argument name match its use
5449 in docstring.
5450
5451 2005-05-26 Juanma Barranquero <lekktu@gmail.com>
5452
5453 * keyboard.c (Frecursive_edit): Fix typo in docstring.
5454 (Fposn_at_x_y): Make argument name match its use in docstring.
5455
5456 2005-05-26 Lute Kamstra <lute@gnu.org>
5457
5458 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
5459
5460 2005-05-24 Masatake YAMATO <jet@gyve.org>
5461
5462 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
5463 as loop sentinels.
5464
5465 2005-05-24 Nick Roberts <nickrob@snap.net.nz>
5466
5467 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
5468 select frame title ("Question"/"Information").
5469 (xdialog_show): Use it.
5470
5471 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
5472
5473 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
5474
5475 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
5476 a third argument (Qnil).
5477
5478 * lisp.h: x-popup-dialog can have three arguments.
5479
5480 * editfns.c (Fmessage_box): Use "Information" for frame title.
5481
5482 2005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
5483
5484 * termcap.c [VMS]: Include <starlet.h>.
5485
5486 2005-05-23 Masatake YAMATO <jet@gyve.org>
5487
5488 * xdisp.c (note_mode_line_or_margin_highlight): Add code
5489 for mouse-face. Change the type of the first argument from `window'
5490 to `Lisp_Object'.
5491 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
5492 window instead of w.
5493
5494 2005-05-22 Andreas Schwab <schwab@suse.de>
5495
5496 * process.c (send_process): Move misplaced volatile.
5497
5498 2005-05-21 Richard M. Stallman <rms@gnu.org>
5499
5500 * xdisp.c (display_mode_element): If we're processing a list and
5501 padding is specified, put it after the last element.
5502
5503 2005-05-21 Eli Zaretskii <eliz@gnu.org>
5504
5505 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
5506 "superroot" on DOS_NT systems.
5507
5508 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
5509
5510 * process.c (send_process): Restore the SIGPIPE handler if we
5511 catch a SIGPIPE.
5512
5513 2005-05-20 Juanma Barranquero <lekktu@gmail.com>
5514
5515 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
5516 misleading comments).
5517 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
5518
5519 2005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
5520
5521 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
5522 Correct the right value.
5523
5524 2005-05-19 Nick Roberts <nickrob@snap.net.nz>
5525
5526 * keyboard.c (syms_of_keyboard): Remove Lisp variables
5527 post-command-idle-hook and post-command-idle-delay.
5528 (command_loop_1): Don't try to execute post-command-idle-hook.
5529
5530 2005-05-16 Kim F. Storm <storm@cua.dk>
5531
5532 * xdisp.c (handle_display_prop): Handle empty replacement.
5533 (handle_single_display_spec): Return -1 for empty replacement.
5534
5535 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
5536
5537 * .gdbinit (pitx): Print more info about iterator.
5538
5539 2005-05-16 Andreas Schwab <schwab@suse.de>
5540
5541 * unexmacosx.c (unexec_realloc): Move declarations before statements.
5542
5543 2005-05-14 Richard M. Stallman <rms@gnu.org>
5544
5545 * xdisp.c (message3): Call cancel_echoing.
5546
5547 * alloc.c (Fmemory_full_p): New function.
5548 (syms_of_alloc): defsubr it.
5549
5550 * process.c (send_process_trap): Unblock SIGPIPE.
5551 (send_process): Reset SIGPIPE handler before reporting error.
5552
5553 2005-05-14 Nick Roberts <nickrob@snap.net.nz>
5554
5555 * emacs.c (syms_of_emacs): Fix doc string for system-type.
5556
5557 2005-05-13 Richard M. Stallman <rms@gnu.org>
5558
5559 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
5560 (Finsert_file_contents): If we read 0 bytes from a special file,
5561 unlock the visited file if we locked it.
5562 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
5563 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
5564
5565 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5566
5567 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
5568
5569 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
5570 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5571 redisplay from being paused by them.
5572
5573 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
5574 [!MAC_OSX] (target_ticks): Remove variable.
5575 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
5576 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
5577 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
5578 event occurs before timeout, behave as if the function were interrupted.
5579 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
5580 handling using Time Manager routines.
5581 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
5582 New variables.
5583 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
5584 (setitimer): New functions.
5585
5586 * macfns.c, macmenu.c: Don't include signal.h.
5587
5588 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
5589 Rename from get_control_part_bound. All callers changed.
5590 (x_scroll_bar_clear): New function.
5591 (x_clear_frame): Use it.
5592 (XTset_vertical_scroll_bar): Don't call Draw1Control.
5593 (x_scroll_bar_handle_click): Change type of second argument from
5594 int to ControlPartCode.
5595 (check_alarm): Remove declaration.
5596 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
5597 (XTread_socket): Use ControlPartCode instead of SInt16.
5598
5599 2005-05-13 Nozomu Ando <nand@mac.com>
5600
5601 * unexmacosx.c: Include assert.h.
5602 (MACOSX_MALLOC_MULT16): New define.
5603 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
5604 ptr is in unexec regions by checking it is multiple of 16.
5605 (unexec_malloc_header_t): New typedef.
5606 (unexec_malloc, unexec_realloc, unexec_free): Store and use
5607 allocated size information in unexec_malloc_header.
5608
5609 2005-05-10 Richard M. Stallman <rms@gnu.org>
5610
5611 * xterm.c (noinclude): Add #undef.
5612
5613 * image.c, xfns.c, xmenu.c: Don't include signal.h.
5614
5615 2005-05-09 Juanma Barranquero <lekktu@gmail.com>
5616
5617 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
5618 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
5619 Doc fixes.
5620
5621 * dired.c (Ffile_name_completion): Make argument name
5622 match its use in docstring.
5623
5624 2005-05-08 Luc Teirlinck <teirllm@auburn.edu>
5625
5626 * eval.c (Fdefvaralias): Remove any pre-existing
5627 variable-documentation property of the alias.
5628
5629 2005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
5630
5631 * xfns.c (start_hourglass): Do nothing when running on a tty.
5632
5633 2005-05-07 Juanma Barranquero <lekktu@gmail.com>
5634
5635 * fns.c (Fchar_table_range): Fix typos in docstring.
5636
5637 2005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5638
5639 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
5640
5641 2005-05-06 Eli Zaretskii <eliz@gnu.org>
5642
5643 * lread.c (Flocate_file_internal): Doc fix.
5644
5645 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
5646
5647 2005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5648
5649 * macselect.c (x_own_selection): Accept Lisp string as result of
5650 selection converter function.
5651 (x_clear_frame_selections): Don't call x-lost-selection-functions
5652 if Emacs is not owner of the selection.
5653 (Vmac_services_selection): Put variable and initialization in
5654 #ifdef MAC_OSX.
5655 (syms_of_macselect) [MAC_OSX]: Set default value of
5656 Vmac_services_selection to PRIMARY.
5657
5658 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
5659 (mac_handle_tool_bar_click): Remove unused function and declaration.
5660 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
5661 (install_scroll_bar_timer, set_scroll_bar_timer)
5662 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
5663 (get_control_part_bound, x_scroll_bar_handle_press)
5664 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
5665 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
5666 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
5667 (scroll_bar_timer_event_posted_p): New variables.
5668 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
5669 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
5670 (x_scroll_bar_create): Set control reference with NewControl.
5671 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
5672 Initialize track_top and track_height to nil.
5673 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
5674 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
5675 (XTset_vertical_scroll_bar): Don't make space between scroll bar
5676 and associated window.
5677 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
5678 from window config.
5679 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
5680 Set track_top and track_height to nil when scroll bar size is changed.
5681 Recalculate them if they are nil.
5682 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
5683 clicked control is a scroll bar.
5684 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
5685 event handler functions. Don't add modifiers to scroll bar click
5686 events. Call scroll bar release handler when window is deactivated.
5687 (mac_initialize): Remove unused code for X toolkit.
5688 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
5689 Initialize Vx_toolkit_scroll_bars to nil.
5690
5691 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
5692 New members track_top and track_height.
5693
5694 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
5695 init_process when including sys/select.h.
5696
5697 2005-05-05 Luc Teirlinck <teirllm@auburn.edu>
5698
5699 * eval.c (Fdefvaralias): Doc fix.
5700
5701 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
5702
5703 2005-05-05 Kim F. Storm <storm@cua.dk>
5704
5705 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
5706 default value.
5707 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
5708 Fix type of cursor-in-non-selected-windows.
5709
5710 2005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5711
5712 * mac.c: #undef init_process so not to conflict with system headers.
5713
5714 2005-05-02 Richard M. Stallman <rms@gnu.org>
5715
5716 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
5717
5718 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
5719
5720 * xdisp.c (Vcursor_in_non_selected_windows)
5721 (Qcursor_in_non_selected_windows): Vars deleted.
5722 (syms_of_xdisp): Don't initialize them.
5723 (get_window_cursor_type): Use cursor_in_non_selected_windows
5724 buffer slot.
5725
5726 2005-05-02 Kim F. Storm <storm@cua.dk>
5727
5728 * macros.c (executing_kbd_macro_index): Rename from
5729 executing_macro_index. All uses changed.
5730 (executing_kbd_macro_iterations): Rename from
5731 executing_macro_iterations. All uses changed.
5732 (executing_kbd_macro): Rename from executing_macro.
5733 All uses changed.
5734 (syms_of_macros): Rename Lisp var executing-macro-index to
5735 executing-kbd-macro-index.
5736
5737 * xdisp.c (move_it_in_display_line_to): Fix last change.
5738
5739 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
5740
5741 * xmenu.c (Fx_popup_menu): Doc fix.
5742
5743 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
5744
5745 2005-05-02 Jason Rumney <jasonr@gnu.org>
5746
5747 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
5748
5749 2005-05-02 Nozomu Ando <nand@mac.com>
5750
5751 * sysselect.h: Fix typo.
5752
5753 2005-05-02 Nick Roberts <nickrob@snap.net.nz>
5754
5755 * charset.c (Fchars_in_region): Remove as obsolete.
5756
5757 2005-05-01 Kim F. Storm <storm@cua.dk>
5758
5759 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
5760 TO_CHARPOS. This may happen if last glyphs was an image or stretch
5761 glyph.
5762
5763 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
5764
5765 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
5766
5767 2005-05-01 Richard M. Stallman <rms@gnu.org>
5768
5769 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
5770 If user cancels the menu, quit unless FOR_CLICK.
5771
5772 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
5773 All uses changed.
5774 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
5775 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
5776 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
5777 * commands.h (Vexecuting_kbd_macro): Likewise.
5778
5779 2005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
5780
5781 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
5782
5783 2005-04-30 Richard M. Stallman <rms@gnu.org>
5784
5785 * fileio.c (Ffind_file_name_handler): Handle the `operations'
5786 property of the file name handler.
5787 (Qoperations): New variable.
5788 (syms_of_fileio): Initialize and staticpro it.
5789
5790 * xdisp.c (set_message_1): Delete xassert.
5791
5792 2005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5793
5794 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
5795
5796 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
5797
5798 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
5799 before/after including Carbon.h if there is a working mktime.
5800
5801 2005-04-28 Kim F. Storm <storm@cua.dk>
5802
5803 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
5804 Fix cyclic alias check. If alias loop is detected, signal
5805 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
5806
5807 2005-04-28 Lute Kamstra <lute@gnu.org>
5808
5809 * eval.c (do_autoload): Record only autoloads in the autoload
5810 property of symbols.
5811
5812 2005-04-28 Nick Roberts <nickrob@snap.net.nz>
5813
5814 * emacs.c (USAGE1): Add --basic-display and --quick options.
5815
5816 2005-04-27 Kim F. Storm <storm@cua.dk>
5817
5818 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
5819
5820 2005-04-26 Richard M. Stallman <rms@gnu.org>
5821
5822 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
5823 (syms_of_window): Doc fixes.
5824
5825 * indent.c (Fvertical_motion): Undo previous change.
5826
5827 2005-04-26 Kenichi Handa <handa@m17n.org>
5828
5829 * fns.c (char_table_range): New function.
5830 (Fchar_table_range): Signal an error if characters in the range
5831 have inconsistent values. Don't check the parent.
5832
5833 2005-04-25 Kenichi Handa <handa@m17n.org>
5834
5835 * fontset.c (fontset_set): Fix previous change.
5836
5837 2005-04-24 Richard M. Stallman <rms@gnu.org>
5838
5839 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
5840
5841 2005-04-24 Eli Zaretskii <eliz@gnu.org>
5842
5843 * regex.c (re_search_2, re_match_2_internal): Convert second arg
5844 of RE_TRANSLATE to int, to shut up GCC warnings.
5845
5846 * fileio.c (Fcopy_file): Doc fix.
5847 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
5848 not needed.
5849
5850 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5851
5852 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
5853 (SOME_MACHINE_OBJECTS): Likewise.
5854 (mac.o): Depend on ccl.h.
5855 (macselect.o): New target.
5856
5857 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
5858 Call syms_of_macselect.
5859
5860 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
5861
5862 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
5863 (QCLIPBOARD): Remove variable.
5864 (syms_of_mac): Don't initialize it.
5865 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
5866 Remove functions.
5867 (syms_of_mac): Don't defsubr them.
5868 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
5869 (QHFS_plus_D, QHFS_plus_C): New variables.
5870 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
5871 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
5872 (cfstring_create_normalized): New functions.
5873 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
5874 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
5875
5876 * macterm.c (handling_window_update, terminate_flag):
5877 Remove variables.
5878 (do_window_update, do_ae_quit_application, XTread_socket):
5879 Don't use them.
5880 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
5881 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
5882 (init_service_handler): Move to macselect.c. Remove declarations.
5883 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
5884 (Qapplication, Qabout): New variables.
5885 (syms_of_mac): Initialize them.
5886 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
5887 (Qperform): New variables.
5888 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
5889 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
5890 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
5891 (mac_store_application_menu_event, init_menu_bar): New functions.
5892 [USE_CARBON_EVENTS] (mac_handle_command_event)
5893 (init_command_handler): New functions.
5894 (mac_handle_window_event): Return noErr on window update event.
5895 (do_ae_quit_application): Call mac_store_application_menu_event.
5896 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
5897 and init_menu_bar.
5898
5899 * macterm.h (x_clear_frame_selections): Add extern.
5900
5901 * macselect.c: New file for selection processing on Mac OS.
5902
5903 2005-04-23 Richard M. Stallman <rms@gnu.org>
5904
5905 * fileio.c (Fcopy_file): New arg MUSTBENEW.
5906 (Frename_file): Pass new arg to Fcopy_file.
5907
5908 * window.c (window_size_fixed): Variable deleted.
5909 (syms_of_window): Initialize window-size-fixed to nil.
5910 But don't DEFVAR window_size_fixed.
5911
5912 2005-04-23 Andreas Schwab <schwab@suse.de>
5913
5914 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
5915 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
5916 use lib64 instead of lib.
5917 (_LP64) [_ARCH_PPC64]: Define if not defined.
5918
5919 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
5920
5921 * s/ms-w32.h (HAVE_PWD_H): Define.
5922
5923 2005-04-22 Kenichi Handa <handa@m17n.org>
5924
5925 * fns.c (copy_sub_char_table): Explicitly copy the default value
5926 of the sub-chartable.
5927
5928 * fontset.c (fontset_set): When a sub-chartable is created,
5929 explicitly sets the defalt value.
5930
5931 2005-04-22 Kim F. Storm <storm@cua.dk>
5932
5933 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
5934 (Fsafe_plist_get): Rename to Fplist_get.
5935 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
5936 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
5937
5938 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
5939
5940 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
5941 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5942 Use Fplist_get instead of Fsafe_plist_get.
5943
5944 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
5945
5946 2005-04-21 Miles Bader <miles@gnu.org>
5947
5948 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
5949
5950 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
5951
5952 * sysdep.c: Remove reference to defunct vms-pwd.h.
5953 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
5954 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
5955
5956 * config.in: Regenerate.
5957
5958 2005-04-20 Kenichi Handa <handa@m17n.org>
5959
5960 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
5961 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
5962 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
5963
5964 * alloc.c (make_sub_char_table): Argument changed to initial
5965 value of the slots.
5966
5967 * data.c (Faref): Handle special slots used as default values of
5968 ascii, eight-bit-control, eight-bit-control. Don't ignore a
5969 default value set for a group of characters.
5970 (Faset): Signal an error if IDXVAL is not a valid character code.
5971 Make a sub-chartable with correct initial value.
5972
5973 * fns.c (Fset_char_table_range): Don't set slots used as default
5974 values for ascii, eight-bit-control, eight-bit-graphic.
5975 Don't call Faref with charset-id.
5976 (Fset_char_table_default): Document how to treat normal character
5977 argument. Handle special slots used as default values of ascii,
5978 eight-bit-control, eight-bit-control. Make a sub chartable if
5979 necessary.
5980
5981 2005-04-20 Kenichi Handa <handa@m17n.org>
5982
5983 * search.c (boyer_moore): Fix previous change.
5984
5985 2005-04-19 Kim F. Storm <storm@cua.dk>
5986
5987 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
5988 face unless last visible char and first invisible char have the
5989 same face. Also use default face if saved_face_id is undefined.
5990
5991 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5992
5993 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
5994 `full_name'.
5995 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
5996 mac_scriptcode member.
5997
5998 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
5999 (syms_of_mac): Don't initialize them.
6000 (Vmac_charset_info_alist): New variable.
6001 (syms_of_mac): Defvar it.
6002 (create_text_encoding_info_alist): New function.
6003 (decode_mac_font_name, mac_to_x_fontname)
6004 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
6005 code the correspondence among XLFD charsets, Mac script codes, and
6006 Emacs coding systems. Use Vmac_charset_info_alist and result of
6007 create_text_encoding_info_alist instead.
6008 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
6009 routines also on Mac OS Classic.
6010 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
6011 Use add_font_name_table_entry.
6012 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
6013 specified. Derive unspecified scalable fields from specified one.
6014 (x_list_fonts): Consider Valternate_fontname_alist.
6015 (kDefaultFontSize): Change value from 9 to 12.
6016 (XLoadQueryFont): Get decoded font family, font face, and charset
6017 from x_font_name_to_mac_font_name. Set full name of loaded font.
6018 (mac_unload_font): Free `full_name' member.
6019 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
6020 NULL. Copy full_name member of struct MacFontStruct to that of
6021 struct font_info.
6022
6023 2005-04-19 Kim F. Storm <storm@cua.dk>
6024
6025 * xdisp.c (handle_stop): Set saved_face_id to current face if
6026 selective_display_ellipsis_p so ellipsis will be shown in same
6027 face as preceding text.
6028 (setup_for_ellipsis): Don't set saved_face_id here.
6029 (next_element_from_display_vector): Default to saved_face_id.
6030
6031 * fns.c (Fsafe_get): New function.
6032 (syms_of_fns): Defsubr it.
6033
6034 * lisp.h (Fsafe_get): EXFUN it.
6035
6036 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
6037 loops in case of bad face property lists. Limit number of face
6038 alias lookups to 10 (in case of face alias loops).
6039
6040 2005-04-18 Kim F. Storm <storm@cua.dk>
6041
6042 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
6043 It replaces the corresponding member from struct window, as a
6044 window may now show multiple overlay arrows.
6045 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
6046
6047 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
6048 Compare overlay_arrow_bitmap than overlay_arrow_p members.
6049
6050 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
6051 rather than from window.
6052 (update_window_fringes): Compare overlay_arrow_bitmap rather than
6053 overlay_arrow_p members.
6054 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
6055 if not default.
6056
6057 * window.h (struct window): Remove member overlay_arrow_bitmap.
6058
6059 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
6060
6061 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
6062 Calls changed. Don't check for overlay-arrow-bitmap property here.
6063 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
6064 fringe is present, return Lisp integer for bitmap (or -1 for default).
6065 Fix value of overlay-arrow-bitmap property to be a symbol, use
6066 lookup_fringe_bitmap to parse it.
6067 (display_line): Change call to overlay_arrow_at_row. Store integer
6068 return value as overlay bitmap in row rather than window.
6069 Only show overlay arrow if row displays text, or if no other overlay
6070 arrow is seen in window (if overlay marker is at point-max).
6071
6072 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
6073
6074 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
6075
6076 2005-04-18 Lute Kamstra <lute@gnu.org>
6077
6078 * lread.c (Vloads_in_progress): Static.
6079 * fns.c (Vloads_in_progress): Remove extern.
6080 (load_in_progress): Add extern.
6081 (Frequire): Use load_in_progress instead of Vloads_in_progress.
6082
6083 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
6084
6085 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
6086
6087 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6088
6089 * macterm.c (XTread_socket): Don't beep on keyboard input even if
6090 no frame is visible.
6091
6092 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
6093
6094 * term.c (struct keys): Add support for shifted keys.
6095
6096 2005-04-16 Richard M. Stallman <rms@gnu.org>
6097
6098 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
6099 (set_message): Call with_echo_area_buffer with WHICH = 0.
6100 (set_message_1): Erase the echo area buffer first thing.
6101 (echo_area_display): Don't clear echo_message_buffer.
6102
6103 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6104
6105 * Makefile.in (mac.o): Depend on charset.h and coding.h.
6106
6107 * mac.c: Include charset.h and coding.h.
6108 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
6109 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
6110 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
6111
6112 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
6113
6114 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
6115
6116 * macterm.c (x_autoselect_window_p): Remove variable.
6117 (last_window): New variable.
6118 (XTreassert_line_highlight, x_change_line_highlight):
6119 Remove declarations.
6120 (mac_focus_changed, x_detect_focus_change): New functions and
6121 declarations.
6122 (XTextExtents16, front_emacs_window): Remove function.
6123 (mac_focus_frame): New function.
6124 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
6125 (mac_check_for_quit_char): Use it instead of front_emacs_window.
6126 (x_scroll_bar_report_motion): Obtain window from control owner.
6127 (x_make_frame_invisible): Set window manager size hint.
6128 (do_mouse_moved): Remove function.
6129 (XTread_socket): Move its contents here. Generate select-window
6130 event on mouse movement if needed. Use x_detect_focus_change on
6131 activate/deactivate events. Don't deiconify frame or invalidate
6132 window rectangle when dnd items are dropped.
6133 Don't activate/deactivate root control.
6134 (frame_highlight, frame_unhighlight): Activate/deactivate root
6135 control here.
6136 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
6137
6138 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
6139 New extern.
6140
6141 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
6142
6143 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
6144 (lisp): Use it.
6145 (SOME_MACHINE_LISP): Add tooltip.
6146
6147 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6148
6149 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
6150 Don't include TextEncodingConverter.h.
6151 (mac_system_script_code, Vmac_system_locale): New variables.
6152 (syms_of_mac): Defvar them.
6153 (mac_get_system_locale): New function.
6154
6155 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
6156 Use ENCODE_SYSTEM to encode title bar string.
6157 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
6158 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
6159 Use CFStringGetSystemEncoding to get system default string encoding.
6160
6161 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
6162 TextEncodingConverter.h.
6163
6164 2005-04-13 Steven Tamm <steventamm@mac.com>
6165
6166 * macterm.c (syms_of_macterm): Remove redundant definition of
6167 mac-pass-control-to-system.
6168
6169 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
6170
6171 * window.c (Fset_window_configuration): Be careful when you choose
6172 among several possible points for the new_current_buffer.
6173
6174 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6175
6176 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
6177 poll_for_input_1. Set interrupt_input_pending to 1 instead.
6178 (Qlanguage_change) [MAC_OS]: New variable.
6179 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
6180 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
6181
6182 * macterm.c (mac_keyboard_text_encoding)
6183 (current_mac_keyboard_text_encoding): Remove variables.
6184 (XTread_socket): Store language-change event if keyboard script change
6185 is detected. Don't convert input to `mac_keyboard_text_encoding'.
6186 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
6187
6188 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
6189
6190 2005-04-10 Richard M. Stallman <rms@gnu.org>
6191
6192 * emacs.c (standard_args): Rename --bare-bones to --quick.
6193 Add -D aka --basic-display.
6194
6195 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
6196
6197 2005-04-09 Richard M. Stallman <rms@gnu.org>
6198
6199 * keymap.c (where_is_internal): Convert a string used as event type
6200 into "(any string)".
6201
6202 * lread.c (Vloads_in_progress): Not static.
6203 * fns.c (Vloads_in_progress): Add extern.
6204 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
6205
6206 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
6207
6208 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
6209
6210 2005-04-09 Lute Kamstra <lute@gnu.org>
6211
6212 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
6213 within the accessible part of the buffer.
6214
6215 2005-04-09 Kim F. Storm <storm@cua.dk>
6216
6217 * lread.c (readevalloop): Add args START and END as region in
6218 current buffer to read. Callers changed.
6219 When specified, narrow to this region only when reading,
6220 not during eval. Track next point to read from during eval.
6221 Also restore point to "real" buffer position before eval.
6222 (Feval_region): Don't save excursion and restriction here, and
6223 don't narrow to region. Just pass region to readevalloop.
6224 Note: Point is now preserved even when PRINTFLAG is nil.
6225
6226 2005-04-08 Kim F. Storm <storm@cua.dk>
6227
6228 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
6229
6230 2005-04-06 Kim F. Storm <storm@cua.dk>
6231
6232 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
6233
6234 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6235
6236 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
6237 (Fmac_get_preference): Doc fix.
6238
6239 * macfns.c (Fx_create_frame, x_create_tip_frame):
6240 Add "fontset-mac" to fallback font/fontsets.
6241
6242 2005-04-04 Kim F. Storm <storm@cua.dk>
6243
6244 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
6245
6246 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
6247 Call it again after autoload.
6248
6249 2005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6250
6251 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
6252 mallopt.
6253
6254 * ralloc.c (r_alloc_init): Ditto.
6255
6256 2005-04-01 Kenichi Handa <handa@m17n.org>
6257
6258 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
6259 (Vascii_eqv_table): Extern them.
6260
6261 * casetab.c (set_case_table): If standard is nonzero, setup
6262 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
6263
6264 * search.c (looking_at_1): Use current_buffer->case_canon_table,
6265 not DOWNCASE_TABLE.
6266 (string_match_1): Likewise.
6267 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
6268 Vascii_downcase_table.
6269 (fast_string_match_ignore_case): Likewise.
6270 (search_buffer): Fix checking of boyer-moore usability.
6271 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
6272 No need of tranlating characters in PAT. Fix calculation of
6273 simple_translate.
6274
6275 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6276
6277 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
6278 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
6279 Use XtNtopShadowPixel and XtNbottomShadowPixel.
6280 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
6281 really work and that breaks with some versions of Xaw3d.
6282
6283 2005-03-31 Kenichi Handa <handa@m17n.org>
6284
6285 * coding.c (syms_of_coding): Fix previous change.
6286
6287 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
6288
6289 * fileio.c (search_embedded_absfilename): Fix last change.
6290
6291 2005-03-25 Kenichi Handa <handa@m17n.org>
6292
6293 * coding.c (syms_of_coding): Suggest to use set-coding-category in
6294 the docstring of coding-category-list.
6295
6296 2005-03-31 Kim F. Storm <storm@cua.dk>
6297
6298 * keyboard.c (Qmouse_fixup_help_message): New var.
6299 (syms_of_keyboard): Intern and staticpro it.
6300 (show_help_echo): Apply mouse-fixup-help-message to help string.
6301
6302 2005-03-30 Kim F. Storm <storm@cua.dk>
6303
6304 * xdisp.c (display_line): Allow multiple overlay arrows in window.
6305
6306 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6307
6308 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
6309 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
6310 (Ffile_name_absolute_p): Use it.
6311 (search_embedded_absfilename): New fun, extracted from
6312 Fsubstitute_in_file_name. Use file_name_absolute_p.
6313 Free the pw data after use.
6314 (Fsubstitute_in_file_name): Use it.
6315 After cutting a prefix, re-check file-name-handler.
6316
6317 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
6318
6319 * w32term.h (x_output): Add focus_state.
6320
6321 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
6322 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
6323
6324 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
6325
6326 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
6327 Use Fexit_minibuffer.
6328 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
6329
6330 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
6331
6332 * dired.c (Ffile_attributes): Add a missing gcpro.
6333
6334 * alloc.c (make_number): The arg can be bigger than `int'.
6335 * lisp.h (make_number): Make prototype more precise.
6336
6337 * process.c, dired.c (Vfile_name_coding_system)
6338 (Vdefault_file_name_coding_system):
6339 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
6340 (Vdefault_file_name_coding_system): Remove unused declarations.
6341
6342 2005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6343
6344 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
6345 if it failed to pop up (Gnome "show pointer on ctrl" option makes
6346 menus fail to pop up).
6347
6348 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
6349
6350 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
6351 Just prepend a backslash without replacing the NBSP by an SPC.
6352
6353 2005-03-22 Kim F. Storm <storm@cua.dk>
6354
6355 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
6356 * dispextern.h (lookup_derived_face): Fix prototype.
6357 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
6358
6359 * xdisp.c (handle_single_display_spec): Derive left-fringe and
6360 right-fringe face from fringe face.
6361
6362 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
6363 Derive face from fringe face.
6364
6365 2005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6366
6367 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
6368
6369 2005-03-22 David Kastrup <dak@gnu.org>
6370
6371 * textprop.c (Fnext_char_property_change)
6372 (Fprevious_char_property_change): Allow marker as limit.
6373 (Fnext_single_char_property_change)
6374 (Fprevious_single_char_property_change): Check that limit is a
6375 number in strings.
6376 (Fnext_single_char_property_change): Coerce position to integer.
6377 (Fprevious_single_char_property_change): Same here.
6378
6379 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
6380
6381 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
6382
6383 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
6384
6385 * frame.c (Fignore_event): Remove.
6386 (syms_of_frame): Don't defsubr it.
6387
6388 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
6389 redundant `ignore-event'.
6390
6391 2005-03-19 Eli Zaretskii <eliz@gnu.org>
6392
6393 * unexec.c (write_segment, unexec): Move these functions to avoid
6394 forward references (which cause errors with "gcc -gcoff").
6395
6396 2005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6397
6398 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
6399 that it doesn't become "tooltip". The specbind is enough.
6400
6401 * xrdb.c (x_load_resources): Use different char *helv when I18N
6402 is present.
6403
6404 2005-03-17 Kenichi Handa <handa@m17n.org>
6405
6406 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
6407
6408 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6409
6410 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
6411 Use xic_create_fontsetname even for non-Motif menus.
6412 Don't forget to free the fontsetname.
6413
6414 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
6415
6416 2005-03-17 Richard M. Stallman <rms@gnu.org>
6417
6418 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
6419
6420 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
6421 (Fmake_symbolic_link): Use G to read the new file name.
6422
6423 * callint.c (Finteractive): Document G option.
6424 (Fcall_interactively): Implement G option.
6425
6426 * buffer.c (buffer_lisp_local_variables): New function,
6427 broken out from Fbuffer_local_variables.
6428 (clone_per_buffer_values): Use buffer_lisp_local_variables.
6429
6430 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6431
6432 * xfns.c (xic_create_fontsetname): Add `motif' argument.
6433 Always return a freshly allocated string.
6434 (xic_create_xfontset): Adjust call.
6435
6436 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
6437 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
6438 (dump_realized_face): Fix warning.
6439
6440 * emacs.c (Fkill_emacs): YAILOM.
6441
6442 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
6443
6444 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6445
6446 * mac.c (HASHKEY_TERMINAL): Remove.
6447 (HASHKEY_MAX_NID): New macro.
6448 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
6449 argument.
6450 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
6451 (xrm_create_database, xrm_q_put_resource)
6452 (xrm_merge_string_database, xrm_q_get_resource_1)
6453 (xrm_q_get_resource): Change resource database representation so
6454 that it may not use multiple hash tables for a single database.
6455 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
6456
6457 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
6458
6459 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
6460
6461 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
6462 locale-coding-system, as was already done for WINDOWSNT.
6463
6464 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
6465 translation for chars in the 0-255 range.
6466
6467 2005-03-16 Lute Kamstra <lute@gnu.org>
6468
6469 * floatfns.c (Ffloor): Doc fix.
6470
6471 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6472
6473 * mac.c: Include macterm.h instead of directly including Carbon.h.
6474 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
6475 (Qarray, Qdictionary): New variables.
6476 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
6477 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
6478 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
6479 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
6480 in callback for CFDictionaryApplyFunction.
6481 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
6482 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
6483 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
6484 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
6485 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
6486 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
6487 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
6488 (skip_white_space, parse_comment, parse_include_file)
6489 (parse_binding, parse_component, parse_resource_name, parse_value)
6490 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
6491 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
6492 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
6493 New functions.
6494
6495 * macfns.c (mac_get_rdb_resource): Remove function.
6496 (x_get_string_resource): Use xrm_get_resource.
6497
6498 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
6499
6500 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
6501 name_list_element.
6502 (mac_make_rdb): Create resource database from preferences and
6503 argument string.
6504 (mac_term_init): Save resource database to cddr part of
6505 name_list_element.
6506
6507 * macterm.h (xrm_merge_string_database, xrm_get_resource)
6508 (xrm_get_preference_database): Add externs.
6509 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
6510 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
6511 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
6512
6513 * process.c (init_process): Change `#ifdef DARWIN' to `#if
6514 defined (DARWIN) || defined (MAC_OSX)'
6515
6516 * s/darwin.h (DARWIN): Don't define.
6517
6518 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6519
6520 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
6521 Remove unused variables.
6522 (syms_of_macfns): Don't initialize them. Likewise for
6523 Qface_set_after_frame_default. Defvar and initialize
6524 Vx_window_horizontal_drag_shape.
6525 (x_set_mouse_color): Change mouse pointer shape.
6526 (mac_window) [!MAC_OSX]: Create root control.
6527 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6528 (hourglass_started): New function (from xfns.c).
6529 (start_hourglass, cancel_hourglass): Put function body in #ifdef
6530 MAC_OSX.
6531 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
6532 indicator for each non-tooltip frame if needed, and show it.
6533 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6534
6535 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
6536 Controls.h. Use ThemeCursor instead of CursHandle.
6537
6538 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
6539 Remove functions and declarations.
6540 (mac_set_colors): Take argument for saving background color.
6541 All callers changed.
6542 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
6543 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
6544 background color.
6545 (x_update_end, mac_do_track_drag): Don't reset background color.
6546 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
6547 Use SetThemeCursor.
6548 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
6549 indicator control to the upper-right corner of the window.
6550 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
6551 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
6552 (do_window_update): Update controls after updating content area.
6553 (mac_handle_window_event): Remove unused extern.
6554 (XTread_socket): Check both control handle and control part code
6555 to determine whether a scroll bar is clicked. Activate/deactivate
6556 root control instead of contained scroll bar controls.
6557 (make_mac_terminal_frame): Use ThemeCursor constants.
6558
6559 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
6560 New member hourglass_control.
6561 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
6562 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6563
6564 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6565
6566 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6567 coincides with that in Apple X11 except `clear', `enter' on
6568 laptops, and fn + `enter' on laptops.
6569
6570 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
6571
6572 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
6573 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
6574 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
6575
6576 * xfns.c (xic_defaut_fontset): New constant.
6577 (xic_create_fontsetname): New function.
6578 Extracted from create_frame_xic. Try to generate a slightly
6579 better fontset.
6580 (xic_create_xfontset): Use it.
6581 (create_frame_xic): Simplify.
6582
6583 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
6584
6585 * fileio.c (Fmake_symbolic_link): Fix last change.
6586
6587 2005-03-11 Richard M. Stallman <rms@gnu.org>
6588
6589 * fileio.c (Frename_file, Fadd_name_to_file)
6590 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
6591 expand the basename of FILE relative to it.
6592
6593 2005-03-11 Kenichi Handa <handa@m17n.org>
6594
6595 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
6596 before calling setup_coding_system so that autoloading of a coding
6597 system work.
6598
6599 2005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6600
6601 * xfns.c (hourglass_started): New function.
6602
6603 * dispextern.h: Declare hourglass_started.
6604
6605 * keyboard.c (Fexecute_extended_command): Restart hourglass
6606 after call to Fcompleting_read if already started.
6607
6608 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
6609 GTK main loop is entered in xterm.c, thus doing the redraw.
6610
6611 2005-03-10 Kim F. Storm <storm@cua.dk>
6612
6613 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
6614
6615 2005-03-08 Kenichi Handa <handa@m17n.org>
6616
6617 * frame.c (x_set_font): Call set_default_ascii_font if an
6618 available font is found.
6619
6620 * fontset.c (set_default_ascii_font): New function.
6621 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
6622
6623 * fontset.h (set_default_ascii_font): Extern it.
6624
6625 2005-03-07 Kim F. Storm <storm@cua.dk>
6626
6627 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
6628 (clear_image_cache_count): New var.
6629 (redisplay_internal): Don't clear face and image caches in the
6630 middle of redisplay; do it afterwards.
6631
6632 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
6633
6634 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
6635 is valid. If not, clear phys_cursor_on_p and return.
6636
6637 2005-03-07 Andreas Schwab <schwab@suse.de>
6638
6639 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
6640
6641 2005-03-06 Richard M. Stallman <rms@gnu.org>
6642
6643 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
6644
6645 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
6646 (Feval, Ffuncall): Use CHECK_CONS_LIST.
6647
6648 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
6649
6650 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
6651 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
6652
6653 2005-03-05 Juri Linkov <juri@jurta.org>
6654
6655 * emacs.c (USAGE1): Replace Info node name "command arguments"
6656 with "emacs invocation".
6657 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
6658 allow arguments `--color' and `MODE' to be separated by space.
6659 Add --no-blinking-cursor, -nbc.
6660 (standard_args): Add -nbc, --no-blinking-cursor.
6661
6662 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
6663
6664 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
6665 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
6666 * fileio.c (Fexpand_file_name) [VMS]:
6667 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
6668 * doc.c (munge_doc_file_name) [VMS]: Likewise.
6669 (Fsnarf_documentation): Call munge_doc_file_name.
6670
6671 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
6672
6673 * s/vms.h (FILE_SYSTEM_CASE): New macro.
6674 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
6675 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
6676
6677 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6678
6679 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
6680 defined (MAC_OSX) && defined (HAVE_CARBON)'.
6681
6682 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
6683
6684 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
6685 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
6686 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
6687 (mac_clear_font_name_table): Move extern to macterm.h.
6688
6689 * macfns.c (install_window_handler): Move extern to macterm.h.
6690 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
6691 valid. Don't check !NILP (dir) because it is already checked with
6692 CHECK_STRING.
6693 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
6694 specifying the default location and obtaining the selected filename.
6695
6696 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
6697
6698 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
6699 are included via Carbon.h.
6700
6701 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
6702 Define USE_CARBON_EVENTS to 1.
6703 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
6704 (x_free_frame_resources): Call remove_window_handler for
6705 non-tooltip windows.
6706 [TARGET_API_MAC_CARBON]: Don't include headers that are included
6707 via Carbon.h.
6708 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
6709 (mac_do_receive_dragUPP): New variables.
6710 (mac_handle_service_event, init_service_handler): Put declarations
6711 and definitions in #ifdef MAC_OSX.
6712 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
6713 drag-and-drop handler functions and register them.
6714 (remove_window_handler): New function.
6715 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
6716 Use fsspec_to_posix_pathname.
6717 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
6718 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
6719 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
6720 Set default cursors.
6721 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
6722 init_service_handler or init_quit_char_handler.
6723 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
6724
6725 * macterm.h (install_window_handler, remove_window_handler)
6726 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
6727 (mac_clear_font_name_table): New externs.
6728
6729 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
6730
6731 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
6732 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
6733 (Fexpand_file_name): Likewise.
6734
6735 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
6736
6737 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
6738 no longer special-case VMS. Add bogus return value.
6739
6740 2005-03-02 Kim F. Storm <storm@cua.dk>
6741
6742 * dispextern.h (XASSERTS): Define to 0 if not already defined.
6743 (xassert) [!XASSERTS]: Define dummy version.
6744
6745 2005-03-02 Kim F. Storm <storm@cua.dk>
6746
6747 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
6748 Reported by David Kastrup.
6749
6750 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
6751
6752 * xdisp.c (get_next_display_element): Fix control and escape
6753 glyph from display vector.
6754
6755 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
6756
6757 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
6758
6759 2005-02-27 Richard M. Stallman <rms@gnu.org>
6760
6761 * xdisp.c (fast_find_position): Rename END to BEG.
6762 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
6763
6764 2005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6765
6766 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6767 gtk_window_resize and x_wm_set_size_hint.
6768
6769 2005-02-25 Kim F. Storm <storm@cua.dk>
6770
6771 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
6772
6773 * xdisp.c (init_from_display_pos): Don't read past end of
6774 it->overlay_strings array.
6775
6776 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
6777
6778 * buffer.c (syms_of_buffer): Fix typo.
6779
6780 2005-02-23 Lute Kamstra <lute@gnu.org>
6781
6782 * buffer.c (Foverlay_buffer): Doc fix.
6783
6784 2005-02-22 Kim F. Storm <storm@cua.dk>
6785
6786 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
6787 and symbol keys in alists and hash tables.
6788
6789 * xdisp.c (fast_find_position): Fix search for start of overlay.
6790
6791 2005-02-21 Kim F. Storm <storm@cua.dk>
6792
6793 * window.c (window_scroll_pixel_based): When scrolling backwards,
6794 handle partial visible line at end of window even when we hit PT.
6795
6796 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
6797
6798 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
6799
6800 2005-02-21 Kim F. Storm <storm@cua.dk>
6801
6802 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
6803 I think those asserts are bogus if buffer contains invisible text
6804 or images.
6805
6806 2005-02-21 David Kastrup <dak@gnu.org>
6807
6808 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
6809
6810 2005-02-20 Kim F. Storm <storm@cua.dk>
6811
6812 * xdisp.c (pos_visible_p): Be sure to move to the specified
6813 position. Always get the full ascent / descent of the
6814 corresponding row, to return reliable rtop and rbot values.
6815 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
6816 Must look one character back, as back_to_previous_line_start
6817 returns position after the newline.
6818 (move_it_vertically_backward): Fix heuristic for when to move further
6819 back in case line_height * 2/3 is larger than window height.
6820 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
6821 as it does not do anything anymore. Add arg current_matrix_p to
6822 use current matrix rather than desired matrix when set.
6823 (try_cursor_movement): Don't scroll to make cursor row fully
6824 visible if cursor didn't move. This avoids unexpected recentering
6825 in case of blinking cursor or accepting process output.
6826 Use current matrix to check cursor row visibility.
6827 (redisplay_window): Fix whether to recenter or move to top in case
6828 cursor line is taller than window height.
6829 (find_first_unchanged_at_end_row): Stop search if we reach a row
6830 which not enabled (instead of abort).
6831
6832 2005-02-18 Kim F. Storm <storm@cua.dk>
6833
6834 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
6835 to be nil in a :box attribute value list; customize prints that
6836 as lisp value when no box color is specified.
6837
6838 * .gdbinit (pitx, pit): Pretty print display iterator.
6839 (prowx, prow): Pretty print glyph row.
6840 (pcursorx, pcursor): Pretty print a window cursor.
6841 (pwinx, pwin): Pretty print struct window.
6842
6843 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6844
6845 * alloc.c (BLOCK_BYTES): Harmless typo.
6846
6847 2005-02-17 Andreas Schwab <schwab@suse.de>
6848
6849 * xfns.c (hack_wm_protocols): Use correct type for last parameter
6850 of XGetWindowProperty to avoid aliasing issues.
6851 (Fx_window_property): Likewise.
6852
6853 * xselect.c (Fx_disown_selection_internal): Use union of struct
6854 input_event and struct selection_input_event to avoid aliasing issues.
6855
6856 * xterm.c (handle_one_xevent): Use union of struct input_event and
6857 struct selection_input_event to avoid aliasing issues.
6858 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
6859
6860 2005-02-17 Kim F. Storm <storm@cua.dk>
6861
6862 * dispextern.h (enum it_method): New enum.
6863 (GET_FROM_*): Its members.
6864 (struct it): Change member method from function pointer to enum.
6865
6866 * xdisp.c (check_it, init_from_display_pos, handle_stop)
6867 (setup_for_ellipsis, handle_single_display_spec)
6868 (handle_composition_prop, next_overlay_string)
6869 (get_overlay_strings, reseat_1, reseat_to_string)
6870 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
6871 (in_display_vector_p, display_line, get_next_display_element):
6872 Change it->method from function pointer to enum.
6873 (get_next_element): New array to map it->method to function.
6874 (get_next_display_element): Use it.
6875 (set_iterator_to_next): Use switch instead of if/else chain.
6876
6877 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
6878
6879 * w32select.c: Summary: Thorough rework to implement Unicode
6880 clipboard operations and delayed rendering.
6881
6882 Drop last_clipboard_text and related code, keep track of
6883 ownership via clipboard_owner instead. Drop old #if0 sections.
6884
6885 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
6886 (clipboard_owner, modifying_clipboard, cfg_coding_system)
6887 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
6888 (current_coding_system, current_requires_encoding)
6889 (current_num_nls, current_clipboard_type, current_lcid):
6890 New static variables.
6891
6892 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
6893 (render, render_all, run_protected, lisp_error_handler)
6894 (owner_callback, create_owner, setup_config)
6895 (enum_locale_callback, cp_from_locale, coding_from_cp):
6896 New local functions.
6897
6898 (term_w32select, globals_of_w32select): New global functions.
6899
6900 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
6901 clipboard_owner instead. Use delayed rendering and provide
6902 all text formats. Provide CF_LOCALE if necessary.
6903
6904 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
6905 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
6906 available. Force DOS line-ends for decoding.
6907
6908 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
6909
6910 (syms_of_w32select): Init and register new variables.
6911
6912 * w32.h: Add prototypes for globals_of_w32select and
6913 term_w32select. Make the neighboring K&R declarations into
6914 prototypes, too.
6915
6916 * emacs.c: Include w32.h to get function prototypes.
6917 (main): Call globals_of_w32select.
6918
6919 * w32.c (term_ntproc): Call term_w32select.
6920
6921 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
6922
6923 2005-02-16 Kim F. Storm <storm@cua.dk>
6924
6925 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
6926 at end of display vector.
6927
6928 2005-02-15 Richard M. Stallman <rms@gnu.org>
6929
6930 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
6931 for mode and header lines.
6932
6933 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
6934
6935 * keymap.h (describe_map_tree): Change decl.
6936
6937 * keyboard.c (command_loop_1): Always use safe_run_hooks
6938 to run Qdeferred_action_function.
6939
6940 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
6941 (describe_map, describe_vector): Likewise. When it's 1,
6942 don't omit shadowed bindings, instead mark them as shadowed.
6943
6944 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
6945 for describe_map_tree. Pass 1 for MENTION_SHADOW.
6946
6947 * data.c (Fsetq_default): Allow no arg case.
6948
6949 2005-02-14 Kenichi Handa <handa@m17n.org>
6950
6951 * coding.c (encode_coding_string): Always return a unibyte string.
6952 If NOCOPY is nonzero and there's no need of encoding, make STR
6953 unibyte directly.
6954
6955 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
6956 multibyte string, signal an error instead of aborting.
6957
6958 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
6959
6960 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
6961
6962 2005-02-12 Kim F. Storm <storm@cua.dk>
6963
6964 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
6965
6966 2005-02-10 Kim F. Storm <storm@cua.dk>
6967
6968 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
6969 if it moves outside window or it doesn't display text.
6970
6971 2005-02-09 Kim F. Storm <storm@cua.dk>
6972
6973 * undo.c (Fprimitive_undo): Check that undo function does not
6974 switch buffer.
6975
6976 2005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6977
6978 * xselect.c (selection_data_to_lisp_data): For the special case
6979 type == XA_ATOM, data contains array of int, not array of Atom.
6980 (x_property_data_to_lisp, selection_data_to_lisp_data):
6981 Comment update: data must be array of int for format == 32.
6982
6983 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
6984
6985 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
6986
6987 2005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6988
6989 * xfns.c (Fx_change_window_property): Use long array when format is 32.
6990 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
6991 convert long array returned from XGetWindowProperty to an int array.
6992 (x_set_tool_bar_lines): Check that width and height is greater than
6993 zero before clearing area.
6994
6995 * xselect.c (x_reply_selection_request): Pass long array to
6996 XChangeProperty so that 64 bit longs are handeled correctly.
6997 (x_get_window_property): If format is 32 and long is bigger than 32
6998 bits convert data from XGetWindowProperty from long array to int array.
6999 (lisp_data_to_selection_data): When the input is a vector and the
7000 format is 32, allocate a long array even if long is bigger than 32 bits.
7001 (x_fill_property_data): Use char, short and long as the man page
7002 for XChangeProperty specifies. This way the data returned is OK for
7003 both 32 and 64 bit machines.
7004 (x_handle_dnd_message): Calculate size correctly even for 64 bit
7005 machines.
7006 (Fx_send_client_event): Undo change from 2005-02-05,
7007 x_fill_property_data now handles that case.
7008
7009 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
7010 reason for the approach in the code.
7011
7012 2005-02-07 Kim F. Storm <storm@cua.dk>
7013
7014 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
7015
7016 2005-02-06 Richard M. Stallman <rms@gnu.org>
7017
7018 * eval.c (Frun_hook_with_args)
7019 (Frun_hook_with_args_until_success)
7020 (Frun_hook_with_args_until_failure): Doc fixes.
7021
7022 2005-02-05 Andreas Schwab <schwab@suse.de>
7023
7024 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
7025
7026 2005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7027
7028 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
7029 the longs in a XClientMessageEvent correctly when long is 64 bits.
7030
7031 2005-02-05 Eli Zaretskii <eliz@gnu.org>
7032
7033 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
7034 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
7035
7036 2005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7037
7038 * xmenu.c (menubar_selection_callback): Force out GTK buffered
7039 events so the menu event comes after them. This is to prevent sit-for
7040 from exiting on buffered events directly after a menu selection,
7041 lisp code for Help => About Emacs uses sit-for.
7042
7043 * gtkutil.c (create_menus): Connect selection-done event instead of
7044 the deactivate event to deactivate_cb. This will make the last
7045 leave event come before the call to deactivate_cb, so the leave
7046 event does not make sit-for exit after a menu selection.
7047
7048 2005-02-03 Kim F. Storm <storm@cua.dk>
7049
7050 * dispnew.c (build_frame_matrix_from_leaf_window)
7051 [!GLYPH_DEBUG]: Fix xassert.
7052
7053 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
7054
7055 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7056
7057 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7058
7059 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
7060 the compiling OS version.
7061
7062 * macfns.c (x_create_tip_frame): Likewise.
7063
7064 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
7065
7066 2005-02-03 Richard M. Stallman <rms@gnu.org>
7067
7068 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
7069
7070 * xdisp.c (echo_area_display): Clear echo_message_buffer.
7071
7072 * buffer.c (Fbury_buffer): Doc fix.
7073
7074 2005-02-02 Steven Tamm <steventamm@mac.com>
7075
7076 * macfns.c (unwind_create_frame): Fix compile error due to
7077 xassert being uncondition, but predicate is.
7078 * dispnew.c (update_window): Fix compile error due to
7079 xassert being uncondition, but predicate is.
7080
7081 2005-02-02 Miles Bader <miles@gnu.org>
7082
7083 * dispextern.h (xassert): Enable unconditionally.
7084
7085 2005-02-02 Kim F. Storm <storm@cua.dk>
7086
7087 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
7088
7089 2005-02-02 Kenichi Handa <handa@m17n.org>
7090
7091 * casefiddle.c (casify_object): Enable changing characters of
7092 different byte length.
7093 (casify_region): Fix loop condition, args to replace_range_2, and
7094 update opoint_byte.
7095
7096 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
7097
7098 2005-02-01 Kim F. Storm <storm@cua.dk>
7099
7100 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
7101 stack before calling handle_display_prop.
7102
7103 2005-01-31 Kim F. Storm <storm@cua.dk>
7104
7105 * undo.c (Qapply): New lisp var.
7106 (syms_of_undo): Intern and staticpro it.
7107 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
7108 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
7109
7110 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
7111
7112 2005-01-30 Jesper Harder <harder@phys.au.dk>
7113
7114 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
7115 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7116
7117 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
7118
7119 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
7120 Increase value to 3 Meg.
7121
7122 2005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7123
7124 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
7125 button events are not received otherwise.
7126
7127 2005-01-29 Richard M. Stallman <rms@gnu.org>
7128
7129 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
7130
7131 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
7132
7133 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
7134
7135 * keymap.c (access_keymap): YAILOM.
7136
7137 2005-01-27 Kim F. Storm <storm@cua.dk>
7138
7139 * xdisp.c (get_phys_cursor_geometry): New function to calculate
7140 phys cursor position and size for hollow cursor. Position is
7141 aligned with get_glyph_string_clip_rect and ensures that a hollow
7142 cursor is shown, even when the actual glyph is not visible.
7143
7144 * dispextern.h (get_phys_cursor_geometry): Add prototype.
7145
7146 * xterm.c (x_clip_to_row): Ensure y >= 0.
7147 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
7148
7149 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
7150
7151 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
7152
7153 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
7154
7155 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
7156
7157 2005-01-27 Kim F. Storm <storm@cua.dk>
7158
7159 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
7160 glyph, even when row is only partially visible and actual cursor
7161 position is not visible.
7162
7163 2005-01-24 Richard M. Stallman <rms@gnu.org>
7164
7165 * xterm.c (x_error_quitter): No longer static, and moved after
7166 x_error_handler.
7167
7168 2005-01-24 Kim F. Storm <storm@cua.dk>
7169
7170 * xdisp.c (move_it_by_lines): If we move forward after going too
7171 far back, cancel move if end position is same as start position.
7172
7173 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7174
7175 * dispextern.h (struct glyph_string): New members clip_head and
7176 clip_tail.
7177
7178 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
7179 region to the area between clip_head and clip_tail.
7180 (draw_glyphs): Record the area that need to be actually redrawn to
7181 the new variables clip_head and clip_tail when there are
7182 overhangs. Set values of these variables to the corresponding
7183 members in struct glyph_string. Refine x coordinates for
7184 notice_overwritten_cursor using clip_head and clip_tail.
7185
7186 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
7187
7188 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
7189 QDTextBounds.
7190 (x_draw_glyph_string): Don't fill the background of the successor
7191 of a glyph with a right overhang if the successor will draw a cursor.
7192 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
7193 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
7194
7195 2005-01-24 Kim F. Storm <storm@cua.dk>
7196
7197 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
7198 direction if window height was smaller than next-screen-context-lines.
7199 Now always scroll at least one line in the requested direction.
7200 Ensure that we actually do scroll backwards when requested to do so.
7201
7202 * xdisp.c (redisplay_window): Only try to make cursor line fully
7203 visible once (to avoid redisplay loop).
7204
7205 2005-01-23 Kim F. Storm <storm@cua.dk>
7206
7207 * window.c (Fpos_visible_in_window_p): Simplify return value for
7208 partially visible rows.
7209 (window_scroll_pixel_based): Adapt to that change.
7210
7211 * window.c (window_scroll_pixel_based): Force moving to next line
7212 if scrolling doesn't move start point, e.g. if looking at tall image.
7213
7214 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
7215 Clear last_height before calling line_bottom_y to get real height.
7216 Fix calculation of y.
7217
7218 2005-01-22 Steven Tamm <steventamm@mac.com>
7219
7220 * s/darwin.h: Removed PTY_ITERATION from here.
7221 (DARWIN): Define.
7222
7223 * process.c (init_process): Default process-connection-type to
7224 nil on darwin 6 or less, t if it is 7 or higher. This way the
7225 broken pty behavior is still allowed on darwin 6 for interactive
7226 processes for people that know what they are doing.
7227
7228 2005-01-22 Kim F. Storm <storm@cua.dk>
7229
7230 * window.c (auto_window_vscroll_p): New boolean.
7231 (syms_of_window): DEFVAR_BOOL it.
7232 (Fpos_visible_in_window_p): Extend return value to include RTOP
7233 and RBOT values if FULLY is nil.
7234 (window_scroll_pixel_based): Adjust vscroll for partially visible
7235 rows if auto_window_vscroll_p is set.
7236 (Fset_window_vscroll): Do nothing if vscroll is not modified.
7237
7238 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
7239 to return number of partially invisible pixels at top and bottom
7240 of the dislay row at POS.
7241
7242 * lisp.h (pos_visible_p): Fix prototype.
7243
7244 2005-01-21 Richard M. Stallman <rms@gnu.org>
7245
7246 * fileio.c (Fcopy_file): Doc fix.
7247
7248 2005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7249
7250 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
7251 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
7252 start of function for older compilers.
7253
7254 2005-01-20 Richard M. Stallman <rms@gnu.org>
7255
7256 * editfns.c (Fmessage): If arg is "", return "" (as before).
7257
7258 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
7259
7260 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
7261 variable.
7262
7263 2005-01-20 Steven Tamm <steventamm@mac.com>
7264
7265 * editfns.c (Voperating_system_release): Add.
7266 (init_editfns): Assign new variable operating-system-release
7267 based on call to uname if available.
7268 (get_operating_system_release): Add function to
7269 allow c-level access to operating system release.
7270
7271 * config.h: Regenerated.
7272
7273 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
7274 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
7275 using ptys as '7'.
7276
7277 2005-01-20 Kim F. Storm <storm@cua.dk>
7278
7279 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
7280
7281 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
7282 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
7283
7284 * macterm.c (x_draw_glyph_string_box): Likewise.
7285
7286 * w32term.c (x_draw_glyph_string_box): Likewise.
7287
7288 * indent.c (Fvertical_motion): Temporarily disable selective display.
7289
7290 2005-01-19 Kim F. Storm <storm@cua.dk>
7291
7292 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
7293 image property.
7294
7295 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
7296
7297 2005-01-18 Kim F. Storm <storm@cua.dk>
7298
7299 * xdisp.c (fast_find_position): Backtrack to find first row if
7300 charpos is inside a display overlay that spans multiple lines.
7301
7302 2005-01-18 Kenichi Handa <handa@m17n.org>
7303
7304 * coding.c (decode_coding_iso2022): Translate invalid codes if
7305 translation-table is specified.
7306
7307 2005-01-18 Kim F. Storm <storm@cua.dk>
7308
7309 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
7310 change. If handle_display_prop indicates newline is replaced by
7311 image or text, move back to start of relevant overlay or interval
7312 and continue scan from there. Simplify.
7313
7314 2005-01-17 Kim F. Storm <storm@cua.dk>
7315
7316 * dispnew.c (mode_line_string, marginal_area_string):
7317 Fix off-by-one error in search for glyph.
7318
7319 2005-01-16 Kim F. Storm <storm@cua.dk>
7320
7321 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
7322
7323 2005-01-16 Steven Tamm <steventamm@mac.com>
7324
7325 * macterm.c (mac_to_x_fontname): Remove spurious argument.
7326
7327 2005-01-16 Andreas Schwab <schwab@suse.de>
7328
7329 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
7330
7331 2005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7332
7333 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
7334 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
7335
7336 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7337
7338 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
7339 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
7340 New flags for readable_events.
7341 (get_filtered_input_pending, readable_filtered_events): Remove.
7342 (tracking_off): Call readable_events and get_input_pending with
7343 flag READABLE_EVENTS_DO_TIMERS_NOW.
7344 (readable_events): Move code from old readable_filtered_events here,
7345 but check new READABLE_EVENTS_* in argument flags instead of previous
7346 two boolean arguments do_timers_now and filter_events.
7347 If we are doing mouse tracking and the mouse moved, return only if
7348 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
7349 (swallow_events): Call get_input_pending with flag
7350 READABLE_EVENTS_DO_TIMERS_NOW.
7351 (get_input_pending): Move code from old get_filtered_input_pending
7352 here. Replace boolean arguments do_timers_now, filter_events with
7353 flags, and pass flags to readable_events. Document new
7354 READABLE_EVENTS_* flags.
7355 (detect_input_pending_ignore_squeezables): New function.
7356 (detect_input_pending_run_timers): Call get_input_pending with flag
7357 READABLE_EVENTS_DO_TIMERS_NOW.
7358 (Finput_pending_p): Call get_input_pending with flags
7359 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
7360
7361 * dispnew.c (update_window, update_frame_1): Replace calls to
7362 detect_input_pending with detect_input_pending_ignore_squeezables
7363 so that redisplay is not paused if the event queue contains only
7364 mouse movements.
7365
7366 * lisp.h: Declare detect_input_pending_ignore_squeezables.
7367
7368 2005-01-15 Steven Tamm <steventamm@mac.com>
7369
7370 * macterm.c (Vmac_use_core_graphics): Declare variable for
7371 mac-allow-anti-aliasing.
7372 (syms_of_macterm): DEFVAR_LISP and initialize it.
7373 (mac_draw_string_common): Use core graphics text rendering if
7374 mac-allow-anti-aliasing is enabled.
7375
7376 * macfns.c (Fx_file_dialog): Save As dialog includes only the
7377 file name in the text box.
7378
7379 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7380
7381 * macfns.c (x_set_foreground_color, x_set_background_color):
7382 Sync with xfns.c.
7383 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
7384 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
7385 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
7386
7387 2005-01-14 Kim F. Storm <storm@cua.dk>
7388
7389 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
7390
7391 2005-01-13 Richard M. Stallman <rms@gnu.org>
7392
7393 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
7394 if Voverriding_terminal_local_map is non-nil.
7395
7396 * keyboard.c (syms_of_keyboard): Doc fix.
7397
7398 2005-01-13 Kim F. Storm <storm@cua.dk>
7399
7400 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
7401 (specify 0 for FACE instead). Reorder arg list. Doc fix.
7402
7403 2005-01-12 Richard M. Stallman <rms@gnu.org>
7404
7405 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
7406 face property for characters that don't specify one.
7407
7408 * fns.c (Frequire): Record in load-history unconditionally.
7409
7410 2005-01-10 Kim F. Storm <storm@cua.dk>
7411
7412 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
7413
7414 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
7415 Callers changed.
7416 Add support to merge with lisp face id too (if face_name is t).
7417
7418 * xdisp.c (get_next_display_element, next_element_from_display_vector):
7419 Don't lookup lface_id from display table glyphs here; instead use
7420 merge_faces to merge the lisp face id into current face.
7421
7422 2005-01-09 Kim F. Storm <storm@cua.dk>
7423
7424 * dispextern.h (struct it): New member dpvec_face_id.
7425 (merge_into_realized_face): Add prototype.
7426
7427 * xfaces.c (merge_into_realized_face): New function. Used to
7428 merge escape-glyph face or face from display table into current face.
7429
7430 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
7431 (syms_of_xdisp): DEFVAR_LISP it.
7432 (escape_glyph_face): Remove var.
7433 (redisplay_window): Don't initialize it.
7434 (setup_for_ellipsis, get_next_display_element):
7435 Set it->dpvec_face_id to -1.
7436 (get_next_display_element): Test Vshow_nonbreak_escape.
7437 Do not setup escape_glyph_face.
7438 Properly merge escape-glyph face or face from display table with
7439 current face for escape and control characters.
7440 Set it->dpvec_face_id to relevant face id instead of adding it to each
7441 element of display vector.
7442 (next_element_from_display_vector): If it->dpvec_face_id is set,
7443 use that instead of lface_id from glyph itself.
7444
7445 2005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7446
7447 * xterm.h (struct x_output): New member, toolbar_detached.
7448
7449 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
7450 38.
7451 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
7452 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
7453 (xg_create_tool_bar): Initialize toolbar_detached.
7454 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
7455 toolbar_detached is zero.
7456
7457 2005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7458
7459 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
7460 gtk_menu_popup if not for_click, so callbacks for the menu are called.
7461
7462 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
7463 (xg_tool_bar_callback, xg_tool_bar_help_callback)
7464 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
7465
7466 * xselect.c (x_get_foreign_selection, x_fill_property_data)
7467 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
7468 XFLOAT_DATA to get extract number from Lisp object.
7469
7470 2005-01-07 Kim F. Storm <storm@cua.dk>
7471
7472 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
7473 Set stop_charpos to current charpos instead of 0.
7474
7475 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
7476
7477 * xdisp.c (Fformat_mode_line): First arg now required.
7478
7479 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7480
7481 * macterm.c (XLoadQueryFont): Correctly handle 0 size
7482 font widths that are returned from some Japanese fonts.
7483
7484 2005-01-06 Kim F. Storm <storm@cua.dk>
7485
7486 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
7487 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
7488 (destroy_fringe_bitmap): Set fringe_faces element to nil.
7489 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
7490 fringe_faces array and init elements to nil.
7491 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
7492 non-persistent face id.
7493 (mark_fringe_data): New function for GC.
7494
7495 * alloc.c (mark_fringe_data): Declare extern.
7496 (Fgarbage_collect): Call mark_fringe_data.
7497
7498 * alloc.c (overrun_check_free): Invalidate freed memory if
7499 XMALLOC_CLEAR_FREE_MEMORY is defined.
7500
7501 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7502
7503 * macfns.c: Include sys/param.h.
7504 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
7505 and function.
7506 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
7507 of filename string. Set event callback function when creating
7508 dialog boxes. Add code conversions for filenames. Don't dispose
7509 of apple event descriptor record if failed to create it.
7510
7511 * macterm.c: Include sys/param.h.
7512 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
7513 kEventWindowUpdate.
7514 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
7515 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
7516 of FSSpec from apple event descriptor record.
7517 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
7518 size of filename string.
7519 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
7520 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
7521 file dialog is in action.
7522 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
7523 Reject only when there are no filename items. Set background color
7524 before (un)highlighting the window below the dragged items.
7525 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
7526
7527 2005-01-05 Romain Francoise <romain@orebokech.com>
7528
7529 * term.c (encode_terminal_code): Fix buffer size computation.
7530
7531 2005-01-04 Richard M. Stallman <rms@gnu.org>
7532
7533 * xdisp.c (Fformat_mode_line): Doc fix.
7534
7535 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
7536
7537 * alloc.c (refill_memory_reserve): Move.
7538 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
7539 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
7540
7541 2005-01-03 Richard M. Stallman <rms@gnu.org>
7542
7543 * window.c (window_scroll_pixel_based): Don't correct preserve_y
7544 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
7545
7546 2005-01-03 Jason Rumney <jasonr@gnu.org>
7547
7548 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
7549 fontp->space_width to FONT_WIDTH so they are valid.
7550
7551 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
7552 average width. Set fontp->average_width and fontp->space_width to
7553 their appropriate values.
7554
7555 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
7556 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
7557 fontp->space_width.
7558
7559 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7560
7561 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
7562 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
7563 metrics for max and min bounds.
7564 (x_load_font): Correctly calculate average font width metrics.
7565
7566 2005-01-02 Richard M. Stallman <rms@gnu.org>
7567
7568 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
7569
7570 2004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7571
7572 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
7573
7574 2004-12-31 Richard M. Stallman <rms@gnu.org>
7575
7576 * xdisp.c (setup_for_ellipsis, get_next_display_element):
7577 Set it->ellipsis_p to 1 or 0.
7578 (display_line): Record whether row ends in mid-ellipsis.
7579 (set_cursor_from_row): If ends in ellipsis, find start of it.
7580 (cursor_row_p): If PT's at the end of the ellipsis the row
7581 ends within, don't display cursor on this row.
7582
7583 * dispextern.h (struct it): New element ellipsis_p.
7584 (struct glyph_row): New element ends_in_ellipsis_p.
7585
7586 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
7587 position if we're reading from something other than the buffer.
7588
7589 * window.c (window_scroll_pixel_based): Only look at
7590 Vscroll_preserve_screen_position if the old PT can't be kept.
7591 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
7592
7593 2004-12-30 Kim F. Storm <storm@cua.dk>
7594
7595 * xdisp.c (get_line_height_property): New function extracted from
7596 original calc_line_height_property.
7597 (calc_line_height_property): Rework. Handle t and (nil . ratio).
7598 (x_produce_glyphs): Use them to handle line-height and
7599 line-spacing according to new height spec.
7600 (Qtotal): Remove.
7601 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
7602
7603 2004-12-30 Kenichi Handa <handa@m17n.org>
7604
7605 * fileio.c (Finsert_file_contents): Don't use
7606 current_buffer->buffer_file_coding_system even if REPLACE is
7607 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
7608
7609 * fontset.h (struct font_info): New members space_width and
7610 average_width.
7611
7612 * frame.h (struct frame): New member space_width.
7613 (FRAME_SPACE_WIDTH): New macro.
7614
7615 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
7616
7617 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
7618 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
7619 fontp->space_width.
7620 (x_load_font): Calculate fontp->space_width and fontp->average_width.
7621 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
7622
7623 * xdisp.c (x_produce_glyphs): Calculate tab width by
7624 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
7625
7626 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
7627
7628 * macterm.c (SelectionRange): Add Xcode position apple event struct.
7629 (do_ae_open_documents): Handle Xcode-style file position open events.
7630
7631 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
7632
7633 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
7634
7635 2004-12-29 Richard M. Stallman <rms@gnu.org>
7636
7637 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
7638
7639 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7640
7641 * macfns.c (install_window_handler): Modify extern to return OSErr
7642 value.
7643 (mac_window): Handle return value of install_window_handler.
7644
7645 * macterm.c (reflect_byte): Remove function.
7646 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
7647 Lookup table instead.
7648 (mac_do_font_lists): Simplify calculation of the longest
7649 nonspecial string.
7650 (init_mac_drag_n_drop): Remove function and declaration.
7651 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
7652 init_mac_drag_n_drop.
7653 (mac_do_track_drag): New function and declaration.
7654 (install_window_handler): Return OSErr value.
7655 (install_window_handler) [TARGET_API_MAC_CARBON]:
7656 Register handlers for tracking/receiving drag-and-drop items.
7657 (do_ae_open_documents): Generate unibyte strings for filenames.
7658 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
7659 Reject only non-filename items. Set event modifiers, and return value.
7660
7661 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
7662
7663 * coding.c (decode_coding): Fix previous change.
7664
7665 2004-12-28 Richard M. Stallman <rms@gnu.org>
7666
7667 * xdisp.c (back_to_previous_visible_line_start):
7668 Don't call handle_display_prop.
7669
7670 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
7671
7672 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
7673 (decode_coding_emacs_mule, encode_coding_emacs_mule)
7674 (decode_coding_iso2022, encode_designation_at_bol)
7675 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
7676 (decode_coding): Constify arguments and local vars.
7677
7678 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7679
7680 * xmenu.c (popup_get_selection): Only pop down dialogs
7681 on C-g and Escape.
7682 (popup_get_selection): Remove parameter down_on_keypress.
7683 (create_and_show_popup_menu, create_and_show_dialog):
7684 Remove parameter down_on_keypress to popup_get_selection.
7685
7686 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7687
7688 * dispextern.h: Change HAVE_CARBON to MAC_OS.
7689 (struct glyph_string): Likewise.
7690
7691 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
7692 mac_initialize.
7693
7694 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
7695 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
7696
7697 * fns.c (vector): Change MAC_OSX to MAC_OS.
7698
7699 * frame.c (x_set_frame_parameters, x_report_frame_params)
7700 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
7701 (x_set_border_width, Vdefault_frame_scroll_bars):
7702 Change HAVE_CARBON to MAC_OS.
7703
7704 * image.c [MAC_OS]: Include sys/stat.h.
7705 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
7706 QuickTimeComponents.h.
7707
7708 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
7709 [!MAC_OSX] (select): Use mac_wait_next_event.
7710 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
7711 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
7712 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
7713 (mac_clear_font_name_table): Add extern.
7714 (Fmac_clear_font_name_table): New defun.
7715 (syms_of_mac): Defsubr it.
7716 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
7717 [MAC_OSX] (select_and_poll_event): New function.
7718 [MAC_OSX] (sys_select): Use it.
7719 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
7720 [MAC_OSX && SELECT_USE_CFSOCKET]
7721 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
7722 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
7723 RunLoop for simultaneously monitoring two kinds of inputs, window
7724 events and process outputs, without periodically polling.
7725
7726 * macfns.c (mac_initialized): Remove extern.
7727 (stricmp): Put in #if 0. All callers changed to use xstricmp in
7728 xfaces.c.
7729 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
7730 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
7731 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
7732 (mac_get_rdb_resource): New function (from w32reg.c).
7733 (x_get_string_resource): Use it.
7734 (install_window_handler): Add extern.
7735 (mac_window): New function.
7736 (Fx_create_frame): Use it instead of make_mac_frame.
7737 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
7738 (Fx_open_connection, Fx_close_connection): New defuns.
7739 (syms_of_macfns): Defsubr them.
7740 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
7741 Add kWindowNoUpdatesAttribute to the window attribute.
7742 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
7743 (x_create_tip_frame): Don't call ShowWindow.
7744 (Fx_show_tip): Call ShowWindow.
7745 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
7746 TARGET_API_MAC_CARBON'.
7747 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
7748 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
7749
7750 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
7751 (Window): Typedef to WindowPtr and move outside `#if
7752 TARGET_API_MAC_CARBON'.
7753 (XSizeHints): New struct.
7754
7755 * macterm.c (x_update_begin, x_update_end)
7756 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
7757 frame.
7758 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
7759 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
7760 (construct_mouse_click): Put in #if 0.
7761 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
7762 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
7763 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
7764 (activate_scroll_bars, deactivate_scroll_bars)
7765 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
7766 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
7767 if the position is neither user-specified nor program-specified.
7768 (x_free_frame_resources): Free size_hints.
7769 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
7770 (mac_clear_font_name_table): New function.
7771 (mac_do_list_fonts): Initialize font_name_table if needed.
7772 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
7773 around mac_do_list_fonts.
7774 (mac_unload_font): New function.
7775 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
7776 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
7777 and definitions with #if TARGET_API_MAC_CARBON.
7778 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
7779 (install_window_handler): Add decl.
7780 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
7781 window. Use UpdateControls. Get the rectangle that should be
7782 updated and restrict the target of expose_frame to it.
7783 (do_grow_window): Set minimum height/width according to size_hints.
7784 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
7785 (do_zoom_window): Don't use x_set_window_size.
7786 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
7787 (install_window_handler): New function.
7788 [!USE_CARBON_EVENTS] (mouse_region): New variable.
7789 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
7790 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
7791 GetEventDispatcherTarget inside BLOCK_INPUT.
7792 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
7793 Update mouse_region when mouse is moved.
7794 (make_mac_frame): Remove.
7795 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
7796 Initialize mouse pointer shapes. Change values of f->left_pos and
7797 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
7798 Don't call ShowWindow.
7799 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
7800 Vinvocation_name and Vsystem_name.
7801 (mac_make_rdb): New function (from w32term.c).
7802 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
7803 already been opened. Don't pass argument to
7804 mac_initialize_display_info. Don't set dpyinfo->height/width.
7805 Add entries to x_display_list and x_display_name_list.
7806 (x_delete_display): New function.
7807 (mac_initialize): Don't call mac_initialize_display_info.
7808 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
7809
7810 * macterm.h (check_mac): Add extern.
7811 (struct mac_output): New member size_hints.
7812 (FRAME_SIZE_HINTS): New macro.
7813 (mac_unload_font): Add extern.
7814
7815 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
7816
7817 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
7818
7819 2004-12-27 Richard M. Stallman <rms@gnu.org>
7820
7821 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
7822 (syms_of_buffer): Don't defsubr it.
7823
7824 * process.c (list_processes_1): Set undo_list instead
7825 of calling Fbuffer_disable_undo.
7826
7827 * xdisp.c (single_display_spec_string_p): Rename from
7828 single_display_prop_string_p.
7829 (single_display_spec_intangible_p): Rename from
7830 single_display_prop_intangible_p.
7831 (handle_single_display_spec): Rename from handle_single_display_prop.
7832 Rewritten to be easier to understand.
7833
7834 Change in load-history format. Functions now get (defun . NAME),
7835 and variables get just NAME.
7836
7837 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
7838
7839 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
7840 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
7841 (Qdefvar): Var deleted.
7842 (syms_of_eval): Don't initialze it.
7843
7844 * lread.c (syms_of_lread) <load-history>: Doc fix.
7845
7846 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7847
7848 * xmenu.c (popup_get_selection): Pop down on C-g.
7849 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
7850 pops down menu on C-g.
7851 (xdialog_show): If dialog popped down and no button in the dialog was
7852 pushed, call Fsignal to quit.
7853 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
7854 Fsignal to quit.
7855
7856 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
7857
7858 * gtkutil.c (xg_initialize): Install bindings for C-g so that
7859 dialogs and menus pop down.
7860
7861 2004-12-27 Kenichi Handa <handa@m17n.org>
7862
7863 * coding.c (code_convert_region): Fix calculation of `ratio'.
7864
7865 2004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7866
7867 * gtkutil.c (update_frame_tool_bar): Make the value of
7868 tool-bar-button-margin control margins of images in tool bar.
7869
7870 * alloc.c (check_depth): New variable.
7871 (overrun_check_malloc, overrun_check_realloc): Only add
7872 overhead and write check pattern if check_depth is 1 (to handle
7873 recursive calls). Increase/decrease check_depth in entry/exit.
7874 (overrun_check_free): Only check for overhead if check_depth is 1.
7875 Increase/decrease check_depth in entry/exit.
7876
7877 2004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7878
7879 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
7880 before touching input_available_clear_time, to avoid accessing it
7881 from multiple threads.
7882
7883 2004-12-23 Jason Rumney <jasonr@gnu.org>
7884
7885 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
7886 of JPEG library.
7887
7888 2004-12-22 Richard M. Stallman <rms@gnu.org>
7889
7890 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
7891
7892 * lisp.h (Vundo_outer_limit): Fix decl.
7893
7894 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
7895 Uses changed.
7896 (syms_of_undo): Initialize appropriately.
7897 (truncate_undo_list): If it's nil, there's no limit.
7898
7899 2004-12-22 Kenichi Handa <handa@m17n.org>
7900
7901 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
7902
7903 2004-12-21 Richard M. Stallman <rms@gnu.org>
7904
7905 * eval.c (unwind_to_catch): Clear immediate_quit.
7906
7907 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
7908 specially as `\ ' and `\-'.
7909
7910 * keyboard.c (kbd_buffer_store_event_hold):
7911 In the code for while-no-input, handle immediate_quit.
7912
7913 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
7914 Call that at the very start.
7915 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
7916 (syms_of_alloc): Don't define undo-limit,
7917 undo-strong-limit and undo-outer-limit here.
7918
7919 * undo.c (truncate_undo_list): Return void.
7920 Take just one argument, the buffer.
7921 Make it current, and inhibit recursive GC.
7922 Access and update the undo list directly; return void.
7923 Refer to the undo...limit variables directly.
7924 Test undo_outer_limit only after counting the whole current command.
7925 When it's exceeded, call the function in undo-outer-limit-function.
7926 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
7927 (Vundo_outer_limit_function): New variable.
7928 (syms_of_undo): Define undo-limit, undo-strong-limit
7929 and undo-outer-limit here, and undo-outer-limit-function.
7930 Doc fixes.
7931
7932 * lisp.h (truncate_undo_list): Update decl.
7933
7934 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
7935
7936 * fileio.c (Fread_file_name): Delete duplicates in
7937 file-name-history when history_delete_duplicates is true.
7938
7939 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7940
7941 * macterm.c (mac_do_list_fonts): Fix memory leak
7942
7943 2004-12-20 Richard M. Stallman <rms@gnu.org>
7944
7945 * regex.c (re_match_2_internal) <symend, wordend>:
7946 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
7947
7948 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7949
7950 * macterm.c (endif, x_font_name_to_mac_font_name):
7951 Use maccentraleurroman instead of maccentraleuropean
7952 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
7953 quickly finding a specific font without needing regexps.
7954
7955 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7956
7957 * syssignal.h: Declare main_thread.
7958 (SIGNAL_THREAD_CHECK): New macro.
7959
7960 * keyboard.c (input_available_signal): Move thread checking code
7961 to macro SIGNAL_THREAD_CHECK and call that macro.
7962 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
7963
7964 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
7965
7966 * emacs.c: Define main_thread.
7967 (main): Initialize main_thread.
7968 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
7969 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
7970
7971 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
7972
7973 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
7974
7975 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
7976
7977 * process.c (send_process_trap, sigchld_handler):
7978 Call SIGNAL_THREAD_CHECK.
7979
7980 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
7981
7982 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
7983
7984 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
7985 returning when xg_ignore_gtk_scrollbar is true.
7986
7987 2004-12-14 Kim F. Storm <storm@cua.dk>
7988
7989 * keyboard.c (read_char): Save and restore echo_string when
7990 handling input method.
7991
7992 2004-12-13 Richard M. Stallman <rms@gnu.org>
7993
7994 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
7995
7996 * keyboard.c (Vthrow_on_input): New variable.
7997 (syms_of_keyboard): Defvar and initialize it.
7998 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
7999
8000 * lisp.h (QUIT): Check for Vthrow_on_input.
8001 (Vthrow_on_input): Declare it.
8002
8003 2004-12-13 Kim F. Storm <storm@cua.dk>
8004
8005 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
8006 vector.
8007
8008 2004-12-12 Richard M. Stallman <rms@gnu.org>
8009
8010 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
8011
8012 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
8013 (Ftry_completion): Really use outer `zero'; eliminate inner one.
8014
8015 2004-12-12 Kenichi Handa <handa@m17n.org>
8016
8017 * term.c (encode_terminal_code): Fix previous change.
8018
8019 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
8020
8021 * keyboard.c (handle_async_input): Remove pthread mutex handling.
8022 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
8023
8024 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
8025 in macro arguments.
8026
8027 * minibuf.c (Ftry_completion, Fall_completions): Don't use
8028 XFASTINT blindly.
8029
8030 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
8031
8032 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8033
8034 * w32term.c (x_calc_absolute_position): Remove calculation of
8035 difference between inner and outer window. Don't subtract difference
8036 for left and top calculations.
8037
8038 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
8039 for left and top calculations. Remove call to x_real_positions.
8040 [Bug report by Drew Adams in November]
8041 (x_check_expected_move): Do not set change_gravity to 1 when calling
8042 x_set_offset.
8043
8044 2004-12-08 Richard M. Stallman <rms@gnu.org>
8045
8046 * xdisp.c (get_next_display_element): Use `escape-glyph' for
8047 control chars and escaped octal codes.
8048 (Qescape_glyph): New variable.
8049 (syms_of_xdisp): Initialize it.
8050 (escape_glyph_face): New variable.
8051 (redisplay_window): Initialize it.
8052
8053 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
8054
8055 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
8056 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
8057
8058 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8059
8060 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
8061 reset_malloc_hooks.
8062
8063 * keyboard.c (handle_async_input, input_available_signal):
8064 Add ! defined (SYSTEM_MALLOC) around thread code.
8065
8066 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
8067
8068 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
8069
8070 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
8071
8072 * config.in: Regenerate.
8073
8074 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8075
8076 * xmenu.c (Fx_popup_menu): Correct documentation about position.
8077 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
8078 if not given by a mouse click to correspond with x-popup-menu
8079 documentation.
8080
8081 * config.in: Regenerate.
8082
8083 * gtkutil.c: Include signal.h and syssignal.h.
8084 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
8085
8086 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
8087 new variables main_thread and alloc_mutex,
8088 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
8089 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
8090 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
8091 (UN)BLOCK_INPUT.
8092 (emacs_blocked_free, emacs_blocked_malloc)
8093 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
8094 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
8095 (reset_malloc_hooks): New function.
8096
8097 * lisp.h: Declare reset_malloc_hooks.
8098
8099 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
8100
8101 * keyboard.c: Conditionally include pthread.h
8102 (handle_async_input, input_available_signalt): If not in the main
8103 thread, block signal, send signal to main thread and return.
8104
8105 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
8106 Set current folder in file chooser if default_filename is a directory.
8107
8108 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
8109
8110 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
8111 Remove redundant correctness checks.
8112 (regex_compile): Fix up error codes for \{..\} expressions.
8113
8114 2004-12-05 Richard M. Stallman <rms@gnu.org>
8115
8116 * regex.c (regex_compile): Fix end-of-pattern case for space.
8117
8118 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8119
8120 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
8121 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
8122 crashes with invalid characters.
8123 * macmenu.c (add_menu_item): Use it.
8124 * image.c (image_load_quartz2d): Likewise.
8125 * macfns.c (x_set_name, x_set_title): Likewise.
8126 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
8127 creating them each time for labels.
8128
8129 2004-12-02 Richard M. Stallman <rms@gnu.org>
8130
8131 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
8132 don't use it here.
8133
8134 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
8135 (interactive_p): Skip Scalled_interactively_p frames
8136 like Sinteractive_p frames.
8137 (unwind_to_catch): Clear handling_signal.
8138
8139 * data.c (Fmake_variable_buffer_local): Doc fix.
8140 (Fmake_local_variable): Doc fix.
8141
8142 * insdel.c (insert_from_string_before_markers)
8143 (insert_from_string): Don't modify buffer on empty insertion.
8144
8145 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
8146
8147 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8148
8149 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
8150 menu text as UTF8 fails.
8151
8152 2004-12-01 Kim F. Storm <storm@cua.dk>
8153
8154 * alloc.c: Add commentary for last change.
8155 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
8156 sizeof(size_t) != 4.
8157 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
8158 Use them. Also clear header and trailer of freed memory.
8159 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
8160 (string_overrun_cookie): Rename from string_overrun_pattern.
8161 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
8162
8163 2004-12-01 Andreas Schwab <schwab@suse.de>
8164
8165 * lisp.h: Declare string_to_multibyte.
8166
8167 2004-12-01 Kenichi Handa <handa@m17n.org>
8168
8169 * w32console.c (w32con_write_glyphs): Decide coding here.
8170 Adjusted for the change of encode_terminal_code.
8171
8172 * term.c (encode_terminal_code): Don't make it "static".
8173
8174 2004-11-30 Kenichi Handa <handa@m17n.org>
8175
8176 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
8177 (encode_terminal_code): Argument changed. Encode all
8178 characters at once, and return a pointer to the result of encoding.
8179 (write_glyphs): Decide coding here. Adjusted for the above change.
8180 (insert_glyphs): Likewise.
8181 (term_init): Initialize encode_terminal_bufsize to 0.
8182
8183 * coding.c (Vcode_conversion_workbuf_name): New variable.
8184 (syms_of_coding): Initialize and staticpro it.
8185 (set_conversion_work_buffer): New function.
8186 (run_pre_post_conversion_on_str): Use it.
8187 (run_pre_write_conversin_on_c_str): New function.
8188
8189 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
8190
8191 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8192
8193 * keyboard.c: Don't undef SIGIO
8194 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
8195 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
8196 (macfns.o): Don't depend on ccl.h.
8197 * macfns.c (mac_frame_parm_handlers): Set handlers for
8198 Qleft_fringe and Qright_fringe.
8199 * macterm.c (mac_fill_rectangle_to_pixmap)
8200 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
8201 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
8202 Put in #if 0.
8203 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
8204 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
8205 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
8206 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
8207 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
8208 XDrawImageString. Always draw background and foreground separately.
8209 (x_draw_image_foreground): Use clipping instead of computing the
8210 intersection rectangle.
8211 (x_draw_image_glyph_string): Don't draw an image with mask to a
8212 pixmap.
8213 (x_redisplay_interface): Set flush_display_optional member to 0.
8214 (XTread_socket): Correctly reset the TEConverter
8215 object.
8216
8217 2004-11-30 Kim F. Storm <storm@cua.dk>
8218
8219 * lisp.h: New defines to enable buffer overrun checking.
8220 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
8221 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
8222
8223 * alloc.c: Add more checks for buffer overruns.
8224 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
8225 xmalloc_overrun_check_trailer, overrun_check_malloc)
8226 overrun_check_realloc, overrun_check_free): Add.
8227 (GC_STRING_EXTRA, string_overrun_pattern): Add.
8228 (check_sblock, allocate_string_data, compact_small_strings):
8229 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
8230 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
8231 (check_string_free_list): Add.
8232 (allocate_string, sweep_strings): Call check_string_free_list.
8233
8234 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
8235 XMALLOC_OVERRUN_CHECK to avoid crash during load.
8236
8237 2004-11-29 Kim F. Storm <storm@cua.dk>
8238
8239 * fns.c (concat): Use SAFE_ALLOCA.
8240
8241 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
8242
8243 * sysdep.c (emacs_write): Don't use QUIT.
8244
8245 2004-11-29 Kenichi Handa <handa@m17n.org>
8246
8247 * buffer.c (init_buffer): Set current_buffer->directory to a
8248 multibyte string made by string_to_multibyte.
8249
8250 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
8251
8252 2004-11-27 Andreas Schwab <schwab@suse.de>
8253
8254 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
8255
8256 * s/gnu-linux.h: Enable no-op gcpros on ia64.
8257 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
8258
8259 * filelock.c (lock_file_1): Call get_boot_time early.
8260 Increase buffer size.
8261
8262 2004-11-27 Eli Zaretskii <eliz@gnu.org>
8263
8264 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
8265 is not defined.
8266
8267 2004-11-27 Kim F. Storm <storm@cua.dk>
8268
8269 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
8270 marker out of doc string.
8271
8272 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
8273
8274 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
8275 which was not mentioned in the log.
8276
8277 2004-11-26 Kim F. Storm <storm@cua.dk>
8278
8279 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
8280 angle bitmaps at top/bottom line.
8281
8282 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
8283 set it when it->method is set to next_element_from_display_vector.
8284 (setup_for_ellipsis): Add LEN argument. Callers changed.
8285 Set it->saved_face_id.
8286 (get_next_display_element): Use loop instead of recursion.
8287 Set it->saved_face_id. Combine duplicate code for ctr chars.
8288 (next_element_from_display_vector): Do not set it->saved_face_id.
8289 (next_element_from_ellipsis): Use setup_for_ellipsis.
8290
8291 2004-11-26 Eli Zaretskii <eliz@gnu.org>
8292
8293 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
8294 prevent compiler warnings.
8295
8296 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
8297
8298 * keyboard.c (command_loop_1): Print a message describing the key
8299 the user just pressed when this key has no binding.
8300
8301 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
8302 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
8303
8304 * lread.c (readchar): Check QUIT when `getc' is interrupted.
8305
8306 2004-11-24 Richard M. Stallman <rms@gnu.org>
8307
8308 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
8309
8310 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
8311
8312 2004-11-24 Kim F. Storm <storm@cua.dk>
8313
8314 * xdisp.c (move_it_in_display_line_to, display_line):
8315 Restore saved_face_id also when truncate-lines or hscrolled.
8316
8317 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8318
8319 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
8320 x-use-old-gtk-file-dialog.
8321
8322 * xfns.c: Define x_use_old_gtk_file_dialog.
8323 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
8324 outside ifdef USE_GTK.
8325
8326 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
8327
8328 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
8329 Don't use XFASTINT blindly.
8330
8331 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
8332
8333 * indent.c (skip_invisible): Avoid non-idempotent side-effects
8334 in macro arguments.
8335
8336 * keymap.c (Flookup_key): Check INTEGERP before XINT.
8337
8338 * lread.c (oblookup): Don't use XFASTINT blindly.
8339
8340 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
8341 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
8342
8343 2004-11-23 Kim F. Storm <storm@cua.dk>
8344
8345 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
8346 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
8347
8348 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
8349 signal_p is zero and face name is unknown.
8350 (Fx_list_fonts): Don't signal error in lookup_named_face.
8351 (Fface_font): Signal error in lookup_named_face.
8352 (ascii_face_of_lisp_face): Likewise.
8353
8354 * dispextern.h (lookup_named_face): Fix prototype.
8355
8356 * xdisp.c (handle_single_display_prop): Don't signal error in
8357 lookup_named_face for unknown fringe face name.
8358 (highlight_trailing_whitespace): Don't signal error in
8359 lookup_named_face if trailing-whitespace face unknown.
8360 (calc_line_height_property): Don't signal error in
8361 lookup_named_face if specified face name is unknown.
8362
8363 * fringe.c (update_window_fringes): Show top row indicator if
8364 window has header-line. Don't show arrow at bob and eob
8365 if the boundary indicators are not used.
8366 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
8367
8368 * window.c (set_window_buffer): Clear display_error_modiff.
8369
8370 2004-11-22 Kim F. Storm <storm@cua.dk>
8371
8372 * fringe.c (update_window_fringes): Provide sensible fall-back
8373 value for non-nil indicate-buffer-boundaries setting.
8374
8375 2004-11-22 Markus Rost <rost@ias.edu>
8376
8377 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
8378
8379 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
8380
8381 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
8382
8383 2004-11-21 Kim F. Storm <storm@cua.dk>
8384
8385 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
8386
8387 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
8388 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
8389
8390 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
8391 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
8392
8393 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
8394 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
8395
8396 * xdisp.c (move_it_in_display_line_to, display_line):
8397 Restore saved_face_id if overflow-newline-into-fringe is enabled and
8398 line is continued before or in middle of element from display vector.
8399
8400 * indent.c (Fvertical_motion): Fix last change. Use another
8401 method to detect if iterator moved too far ahead after reseat.
8402
8403 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
8404 expand matrix width for overflow in zero-width area.
8405 (append_glyph, append_composite_glyph, produce_image_glyph)
8406 (append_stretch_glyph): Use it to avoid loop in redisplay.
8407 (note_mode_line_or_margin_highlight): Don't let help-echo from
8408 string override help-echo from image map.
8409
8410 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
8411
8412 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
8413 * callint.c (Fcall_interactively): Ditto.
8414
8415 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
8416
8417 * minibuf.c (Fminibuffer_complete_and_exit):
8418 Fixup the case of the completed value, for case-indep completion.
8419
8420 2004-11-20 Richard M. Stallman <rms@gnu.org>
8421
8422 * lisp.h (Fread_from_minibuffer): Add arg in decl.
8423
8424 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
8425 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
8426
8427 * search.c (Vsearch_spaces_regexp):
8428 Rename from Vsearch_whitespace_regexp. All uses changed.
8429
8430 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
8431
8432 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
8433
8434 2004-11-19 Richard M. Stallman <rms@gnu.org>
8435
8436 * search.c (Vsearch_whitespace_regexp): New variable.
8437 (syms_of_search): Defvar it.
8438 (compile_pattern_1): Call re_set_whitespace_regexp with it.
8439 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
8440 is non-nil.
8441 (struct regexp_cache): New element whitespace_regexp.
8442 (syms_of_search): Initialize whitespace_regexp elements.
8443 (compile_pattern): Compare whitespace_regexp elements.
8444 (compile_pattern_1): Set whitespace_regexp elements.
8445
8446 * regex.c (regex_compile): Substitute whitespace_regexp
8447 for spaces, if it is nonzero.
8448 (whitespace_regexp): New variable.
8449 (re_set_whitespace_regexp): New function.
8450
8451 2004-11-19 Kim F. Storm <storm@cua.dk>
8452
8453 * indent.c (Fvertical_motion): Fix last change.
8454
8455 2004-11-18 Kim F. Storm <storm@cua.dk>
8456
8457 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
8458 Instead, move back again if reseating moves too far ahead.
8459
8460 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
8461
8462 * xdisp.c (message3): Call clear_message.
8463
8464 2004-11-17 Kim F. Storm <storm@cua.dk>
8465
8466 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
8467
8468 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8469
8470 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
8471
8472 * xmenu.c (x_menu_in_use): Remove.
8473 (x_menu_set_in_use): Also set popup_activated_flag.
8474
8475 * xfns.c (Fx_file_dialog): Call popup_activated instead of
8476 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
8477
8478 * xterm.h (x_menu_in_use): Remove.
8479
8480 2004-11-16 Richard M. Stallman <rms@gnu.org>
8481
8482 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
8483 Use map-keymap-internal to implement that.
8484
8485 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
8486
8487 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
8488
8489 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
8490 a window before using XWINDOW.
8491
8492 * window.c (make_window, Fselect_window, make_dummy_parent)
8493 (save_window_save):
8494 * frame.c (make_frame):
8495 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
8496
8497 * lisp.h (NILP): Use EQ rather than XFASTINT.
8498
8499 2004-11-16 Kim F. Storm <storm@cua.dk>
8500
8501 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
8502
8503 * indent.c (Fvertical_motion): Fix last change. Only reseat when
8504 moving backwards.
8505
8506 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
8507
8508 * dispextern.h: Extern reseat_at_previous_visible_line_start.
8509
8510 2004-11-16 Kenichi Handa <handa@m17n.org>
8511
8512 * xdisp.c (display_mode_element): Fix previous change (calculate
8513 end position of substring to display correctly).
8514
8515 2004-11-16 Kim F. Storm <storm@cua.dk>
8516
8517 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
8518 Reported by Andrew M. Scott.
8519
8520 2004-11-15 Kim F. Storm <storm@cua.dk>
8521
8522 * fns.c (Fsafe_plist_get): New defun.
8523 (syms_of_fns): Defsubr it.
8524
8525 * lisp.h (Fsafe_plist_get): Add EXFUN.
8526
8527 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
8528 Use Fsafe_plist_get.
8529 (note_mode_line_or_margin_highlight, note_mouse_highlight):
8530 Fix image map element parsing. Use Fsafe_plist_get.
8531
8532 2004-11-15 Richard M. Stallman <rms@gnu.org>
8533
8534 * xdisp.c (get_next_display_element): Fix previous change.
8535
8536 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8537
8538 * window.c (shrink_windows): Handle special case of one window left
8539 when trying to shrink the final reminder. Grow windows if
8540 total_removed is less than total_shrink.
8541
8542 * xmenu.c (pop_down_menu): Remove global variable current_menu,
8543 extract pointer from arg with XSAVE_VALUE.
8544 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
8545 Construct arg to record_unwind_protect with make_save_value.
8546
8547 2004-11-13 Richard M. Stallman <rms@gnu.org>
8548
8549 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
8550 (get_next_display_element): Fix previous change to apply only to \n.
8551
8552 * indent.c (Fvertical_motion): Scan to PT from start of line to
8553 make iterator consistent.
8554
8555 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
8556
8557 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8558
8559 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
8560
8561 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
8562 Record unwind with clean_up_file_dialog.
8563
8564 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
8565 Declare.
8566
8567 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
8568
8569 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8570
8571 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
8572 (xg_file_sel_destroy): Remove.
8573 (xg_file_response_cb, pop_down_file_dialog)
8574 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
8575 New functions.
8576 (xg_get_file_with_chooser, xg_get_file_with_selection):
8577 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
8578 Move common code to xg_get_file_name. Return widget created.
8579 (xg_get_file_name): Set name, transient for, modal and destroy
8580 with parent here. Connect response signal to xg_file_response_cb,
8581 connect delete-event to gtk_true. Record pop_down_file_dialog
8582 for unwind. Do event loop and call x_menu_wait_for_event in loop.
8583 (xg_create_widget): Make dialogs modal.
8584
8585 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
8586 Lisp_Object.
8587 (popup_get_selection): Move unwind protect ...
8588 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
8589 Move destroy of widget to pop_down_menu.
8590 (popup_widget_loop): Move unwind protect ...
8591 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
8592 Move destroy of widget to pop_down_menu.
8593 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
8594 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
8595 x_mouse_leave and grabbed = 0 to pop_down_menu.
8596
8597 2004-11-13 Kim F. Storm <storm@cua.dk>
8598
8599 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
8600 (syms_of_xdisp): DEFVAR_BOOL it.
8601 (make_cursor_line_fully_visible, try_cursor_movement)
8602 (try_window_id): Use it.
8603
8604 2004-11-12 Kim F. Storm <storm@cua.dk>
8605
8606 * dispextern.h (struct glyph_row): New member extra_line_spacing.
8607 (struct it): New member max_extra_line_spacing.
8608 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
8609 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
8610 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
8611 part of last line is only extra line spacing (so the text on the
8612 line is fully visible). Use helper macros.
8613 Add W arg (to use them). All callers changed.
8614 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
8615 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
8616
8617 * window.c (window_scroll_pixel_based, Frecenter):
8618 Use move_it_vertically_backward directly.
8619 (Frecenter): Fix calculation of new start pos for negative arg.
8620 Before, the new start pos was sometimes chosen too far back, so
8621 the last line became only partially visible, and thus would be
8622 either only semi-visible or automatically scrolled to the middle
8623 of the window by redisplay.
8624
8625 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
8626 (move_it_vertically_backward): Don't recure to move further back.
8627 (move_it_vertically): Remove superfluous condition.
8628 (move_it_by_lines): Clear last_height when moved 0 lines.
8629 (resize_mini_window): Use it.max_extra_line_spacing.
8630 (display_tool_bar_line): Clear row->extra_line_spacing.
8631 (try_scrolling): Use move_it_vertically_backward directly.
8632 (redisplay_window): Likewise.
8633 (compute_line_metrics): Set row->extra_line_spacing.
8634 (display_line, display_string): Likewise.
8635 (x_produce_glyphs): Update it->max_extra_line_spacing.
8636
8637 * xmenu.c (pop_down_menu): Return nil.
8638
8639 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8640
8641 * xmenu.c (x_menu_wait_for_event): New function.
8642 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
8643 to handle timers.
8644 (popup_widget_loop): Add argument do_timers.
8645 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
8646 do_timers to popup_widget_loop.
8647 (xmenu_show): Call XMenuActivateSetWaitFunction so that
8648 x_menu_wait_for_event is called by XMenuActivate.
8649 (create_and_show_popup_menu): Pass 1 for do_timers to
8650 popup_get_selection.
8651 (pop_down_menu): New function.
8652 (popup_get_selection, popup_widget_loop): Unwind protect to
8653 pop_down_menu.
8654 (popup_widget_loop): Add argument widget.
8655 (create_and_show_popup_menu, create_and_show_dialog): Pass new
8656 argument widget to popup_widget_loop.
8657
8658 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
8659
8660 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
8661
8662 2004-11-09 Kim F. Storm <storm@cua.dk>
8663
8664 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
8665 Fix various comments referring to XEvents instead of input events.
8666 (x_queue_event): Fix format strings.
8667 (x_stop_queuing_selection_requests): Likewise.
8668
8669 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
8670 (pint2hrstr): Add extra braces to silence compiler.
8671
8672 * print.c (print_object): Fix format string.
8673
8674 * lread.c (read1): Fix next_char matching.
8675
8676 * lisp.h (Fdelete): Add EXFUN.
8677 (replace_range_2): Add prototype.
8678
8679 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
8680
8681 * intervals.h (NULL_INTERVAL_P): Add separate version when
8682 ENABLE_CHECKING is not defined to silence compiler.
8683 (compare_string_intervals): Add prototype.
8684
8685 * fringe.c (destroy_fringe_bitmap): Fix return type.
8686 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
8687
8688 * emacs.c (Fdump_emacs): Fix format string.
8689
8690 * doc.c: Include <ctype.h>.
8691 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
8692
8693 * data.c (store_symval_forwarding): Remove unused variables.
8694
8695 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
8696
8697 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8698
8699 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
8700 to ${OLDXMENU}.
8701
8702 2004-11-09 Kim F. Storm <storm@cua.dk>
8703
8704 * process.c (Fmake_network_process): Remove kludge for interrupted
8705 connects on BSD. If connect is interrupted, just close socket and
8706 start over rather than sleeping and retry with same socket.
8707
8708 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8709
8710 * .cvsignore: Add buildobj.lst.
8711
8712 * doc.c: New variable Vbuild_files.
8713 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
8714 file names from buildobj.lst. Only attach docstrings from files
8715 that are in Vbuild_files.
8716 (syms_of_doc): Defvar Vbuild_files.
8717
8718 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
8719 and w32*.o.
8720 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
8721 (mostlyclean): Rm buildobj.lst
8722
8723 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
8724 is linked.
8725
8726 2004-11-09 Kim F. Storm <storm@cua.dk>
8727
8728 * fringe.c (update_window_fringes): Update fringe bitmaps if
8729 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
8730 also update previous row to get rid of misc. artifacts.
8731
8732 2004-11-08 Kim F. Storm <storm@cua.dk>
8733
8734 * xdisp.c (fast_find_position): Fix start pos if header line present.
8735 (note_mouse_highlight): Clear mouse face if we move out of text area.
8736
8737 2004-11-08 Eli Zaretskii <eliz@gnu.org>
8738
8739 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
8740 Don't include <sys/time.h> explicitly.
8741 Include <stdio.h> unconditionally, not just on MacOS.
8742
8743 2004-11-08 Kenichi Handa <handa@m17n.org>
8744
8745 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
8746 don't pay attention to '\' before '*'.
8747 (fontset_pattern_regexp): Change the meaning of the second arg.
8748 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
8749 (check_fontset_name): Try NAME as literal at first, and if it
8750 failes, try NAME as pattern.
8751
8752 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8753
8754 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
8755
8756 2004-11-07 Andreas Schwab <schwab@suse.de>
8757
8758 * lisp.h (Fmsdos_downcase_filename): Declare.
8759 * dired.c (Fmsdos_downcase_filename): Don't declare here.
8760 * fileio.c: Likewise.
8761
8762 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8763
8764 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
8765 comparisons with integers instead of Lisp_Object address.
8766 (Fmsdos_set_keyboard): Declare argument allkeys.
8767
8768 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
8769
8770 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
8771 int/Lisp_Object mixup.
8772
8773 * fileio.c: Ditto.
8774
8775 2004-11-06 Steven Tamm <steventamm@mac.com>
8776
8777 * editfns.c: Need to include sys/time.h before resource.h on darwin.
8778
8779 2004-11-06 Richard M. Stallman <rms@gnu.org>
8780
8781 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
8782
8783 * xfaces.c (merge_named_face): GCPRO the face_name in the
8784 named_merge_point struct that we make.
8785 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
8786
8787 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
8788 before deciding whether to inactivate mark.
8789
8790 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
8791
8792 * config.in: Regenerate (add HAVE_GETRUSAGE).
8793 * editfns.c (Fget_internal_run_time): New function.
8794 (syms_of_data): Defsubr it.
8795 * fns.c (sxhash): As far as possible, merge calculation of
8796 hash code for symbols and strings.
8797
8798 2004-11-06 Eli Zaretskii <eliz@gnu.org>
8799
8800 * frame.c (syms_of_frame): Fix the example in the doc string.
8801
8802 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8803
8804 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
8805
8806 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
8807 (create_and_show_dialog): Revert change from 2004-10-31.
8808
8809 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
8810
8811 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
8812
8813 2004-11-05 Kim F. Storm <storm@cua.dk>
8814
8815 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
8816
8817 * fileio.c (Ffile_modes): Doc fix.
8818 (auto_save_1): Check for Ffile_modes nil value.
8819
8820 2004-11-05 Kim F. Storm <storm@cua.dk>
8821
8822 * xselect.c (struct selection_event_queue, selection_queue)
8823 (x_queue_selection_requests, x_queue_event)
8824 (x_start_queuing_selection_requests)
8825 (x_stop_queuing_selection_requests): Add new queue for selection
8826 input events to replace previous XEvent queue in xterm.c.
8827 (queue_selection_requests_unwind): Adapt to new queue.
8828 (x_reply_selection_request): Adapt to new queue.
8829 Unexpect wait_object in case of x errors (memory leak).
8830 (x_handle_selection_request, x_handle_selection_clear): Make static.
8831 (x_handle_selection_event): New function. May queue selection events.
8832 (wait_for_property_change_unwind): Use save_value instead of cons.
8833 Clear property_change_reply_object.
8834 (wait_for_property_change): Abort if already waiting.
8835 Use save_value instead of cons for unwind data.
8836 (x_handle_property_notify): Skip events already arrived, but don't
8837 free them, as "arrived" field is checked by wait_for_property_change,
8838 and it will be freed by unwind or explicit unexpect_property_change.
8839 (x_get_foreign_selection): Add to new queue.
8840 (receive_incremental_selection): Don't unexpect wait_object when done
8841 as it has already been freed by previous wait_for_property_change.
8842
8843 * xterm.h (x_start_queuing_selection_requests)
8844 (x_stop_queuing_selection_requests, x_handle_selection_request)
8845 (x_handle_selection_clear): Remove prototypes.
8846 (x_handle_selection_event): Add prototype.
8847
8848 * xterm.c (handle_one_xevent): Don't queue X selection events
8849 here, it may be too late if we start queuing after we have already
8850 stored some selection events into the kbd buffer.
8851 (struct selection_event_queue, queue, x_queue_selection_requests)
8852 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
8853 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
8854 (x_catch_errors_unwind): Block input around final XSync.
8855
8856 * keyboard.h (kbd_buffer_unget_event): Add prototype.
8857
8858 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
8859 (kbd_buffer_unget_event): New function.
8860 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
8861 and use x_handle_selection_event.
8862 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
8863
8864 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8865
8866 * xselect.c (TRACE3): New debug macro.
8867 (x_reply_selection_request): Use it.
8868 (receive_incremental_selection): In call to TRACE0, the name of
8869 a symbol is in xname.
8870
8871 2004-11-05 Kim F. Storm <storm@cua.dk>
8872
8873 * fontset.c (fontset_pattern_regexp): Use unsigned char.
8874
8875 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8876
8877 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
8878
8879 * gtkutil.h (use_old_gtk_file_dialog): Declare.
8880
8881 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
8882 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
8883 * xfns.c (syms_of_xfns): ... to here.
8884
8885 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
8886 it doesn't start with /.
8887
8888 2004-11-04 Kenichi Handa <handa@m17n.org>
8889
8890 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
8891 treat it as a literal character.
8892
8893 2004-11-03 Kim F. Storm <storm@cua.dk>
8894
8895 * .gdbinit (ppt): New function.
8896
8897 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8898
8899 * xterm.c (x_window_to_scroll_bar): Only call
8900 xg_get_scroll_id_for_window if toolkit scroll bars are used.
8901
8902 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
8903 of save.
8904
8905 2004-11-02 Andreas Schwab <schwab@suse.de>
8906
8907 * window.c (Fscroll_right): Fix last change.
8908
8909 2004-11-02 Kim F. Storm <storm@cua.dk>
8910
8911 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
8912
8913 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8914
8915 * callproc.c (Fcall_process): Block input around vfork.
8916
8917 2004-11-02 Kim F. Storm <storm@cua.dk>
8918
8919 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
8920 (syms_of_eval): Defsubr it.
8921
8922 2004-11-02 Richard M. Stallman <rms@gnu.org>
8923
8924 * insdel.c (replace_range_2): New function.
8925
8926 * casefiddle.c (casify_region): Handle changes in byte-length
8927 using replace_range_2.
8928
8929 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
8930
8931 * xdisp.c (back_to_previous_visible_line_start):
8932 Subtract 1 from pos when checking previous newline for invisibility.
8933
8934 * window.c (window_scroll_pixel_based): Update preserve_y
8935 for header line if any.
8936 (Fscroll_left, Fscroll_right): Don't call interactive_p;
8937 use a new second argument instead.
8938
8939 * eval.c (Fcall_interactive_p): New function.
8940 (interactive_p): Don't test INTERACTIVE here.
8941 (Finteractive_p): Doc fix.
8942
8943 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
8944
8945 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
8946
8947 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
8948 comparing font names.
8949
8950 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8951
8952 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
8953 Fx_file_dialog if only directories should be read.
8954
8955 * lisp.h: Fx_file_dialog takes 5 parameters.
8956
8957 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
8958 Add parameter only_dir_p.
8959 In Motif version, don't put DEFAULT_FILENAME in filter part of the
8960 dialog, just text field part. Do not add DEFAULT_FILENAME
8961 to list of files if it isn't there.
8962 In GTK version, pass only_dir_p parameter to xg_get_file_name.
8963
8964 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
8965 Check only_dir_p instead of comparing prompt to "Dired". When using
8966 a save dialog, add option kNavDontConfirmReplacement, change title
8967 to "Enter name", change text for save button to "Ok".
8968
8969 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
8970 Check only_dir_p instead of comparing prompt to "Dired".
8971
8972 * gtkutil.c (xg_get_file_with_chooser)
8973 (xg_get_file_with_selection): New functions, only defined ifdef
8974 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
8975 respectively.
8976 (xg_get_file_name): Add parameter only_dir_p.
8977 Call xg_get_file_with_chooser or xg_get_file_with_selection
8978 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
8979 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
8980
8981 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
8982
8983 * config.in: Rebuild (added HAVE_GTK_FILE_*).
8984
8985 2004-11-01 Kim F. Storm <storm@cua.dk>
8986
8987 * process.c (connect_wait_mask, num_pending_connects):
8988 Only declare and use them if NON_BLOCKING_CONNECT is defined.
8989 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
8990 (IF_NON_BLOCKING_CONNECT): New helper macro.
8991 (wait_reading_process_output): Only declare and use local vars
8992 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
8993
8994 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
8995
8996 * w32term.c (x_scroll_run): Delete region objects after use.
8997
8998 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8999
9000 * xmenu.c: Add prototypes for forward function declarations.
9001 (popup_get_selection): Remove parameter do_timers, remove call to
9002 timer_check.
9003 (create_and_show_popup_menu, create_and_show_dialog):
9004 Remove parameter do_timers from call to popup_get_selection.
9005
9006 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
9007 tool_bar_items and assign the result to f->tool_bar_items if
9008 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
9009 tool_bar_items to assignment of result.
9010
9011 * atimer.c (alarm_signal_handler): Do not call set_alarm if
9012 pending_atmers is non-zero.
9013
9014 2004-10-31 Kim F. Storm <storm@cua.dk>
9015
9016 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
9017
9018 2004-10-28 Will <will@glozer.net>
9019
9020 * macterm.c: Allow user to assign key modifiers to the Mac Option
9021 key via a 'mac-option-modifier' variable.
9022
9023 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9024
9025 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
9026 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
9027 (x_handle_selection_request, x_handle_selection_clear)
9028 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
9029
9030 2004-10-28 Richard M. Stallman <rms@gnu.org>
9031
9032 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
9033
9034 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
9035
9036 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
9037
9038 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
9039 comment-starter over a 1-char one.
9040
9041 2004-10-27 Richard M. Stallman <rms@gnu.org>
9042
9043 * xdisp.c (get_next_display_element): In mode lines,
9044 treat newline and tab like other control characters.
9045
9046 * editfns.c (Fmessage): Doc fix.
9047
9048 * indent.c (vmotion): When moving up, check the newline before.
9049 Make prevline an int, not a Lisp_Object.
9050
9051 2004-10-27 Kim F. Storm <storm@cua.dk>
9052
9053 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
9054 Only allocate info and discarded tables once.
9055
9056 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
9057 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
9058 (SAFE_FREE): Test it to determine if we need to unwind to free.
9059 Remove size arg. All users changed.
9060 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
9061
9062 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9063
9064 * gtkutil.c: Put empty line between comment and function body.
9065 (xg_destroy_widgets): Rename from remove_from_container.
9066 Just destroy all widgets in list. Argument wcont removed.
9067 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
9068 instead of remove_from_container.
9069 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
9070 (free_frame_tool_bar): Add comment.
9071
9072 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
9073 is not NULL before strcmp.
9074
9075 2004-10-26 Kim F. Storm <storm@cua.dk>
9076
9077 * callint.c (Fcall_interactively): Add 'U' code to get the
9078 up-event discarded by a previous 'k' or 'K' argument.
9079
9080 2004-10-26 David Kastrup <dak@gnu.org>
9081
9082 * buffer.c (syms_of_buffer): Fix a few typos.
9083
9084 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9085
9086 * xsmfns.c: Put empty line between comment and function body.
9087 Use two spaces before comment end.
9088
9089 2004-10-25 Kenichi Handa <handa@m17n.org>
9090
9091 * fontset.c (fontset_pattern_regexp): Optimize for the case that
9092 PATTERN is full XLFD.
9093
9094 2004-10-24 Kenichi Handa <handa@m17n.org>
9095
9096 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
9097
9098 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
9099 (regex_compile): Return REG_ERANGEX if appropriate.
9100
9101 2004-10-22 Kenichi Handa <handa@m17n.org>
9102
9103 * editfns.c (Ftranslate_region_internal): New function.
9104 (syms_of_editfns): Defsubr it.
9105
9106 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9107
9108 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
9109
9110 2004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
9111
9112 * xterm.h (x_output): New member `xic_base_fontname'.
9113 (FRAME_XIC_BASE_FONTNAME): New macro.
9114 (xic_free_xfontset): Declare.
9115
9116 * xfns.c (xic_create_xfontset): Share fontsets between frames
9117 based on base_fontname.
9118 (xic_free_xfontset): New function.
9119 (free_frame_xic): Use it.
9120 (xic_set_xfontset): Ditto.
9121
9122 * xterm.c (xim_destroy_callback): Ditto.
9123
9124
9125 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
9126
9127 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
9128
9129 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9130
9131 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
9132 XSync.
9133
9134 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
9135 New variables and constant.
9136 (main): Calculate heap_bss_diff. If we are dumping and the
9137 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
9138 and exec ourself again.
9139 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
9140 print a warning.
9141
9142 * lastfile.c: Make my_endbss and my_endbss_static available on all
9143 platforms.
9144
9145 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
9146 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
9147
9148 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
9149
9150 * data.c (Flocal_variable_if_set_p): Doc fix.
9151
9152 2004-10-19 Jason Rumney <jasonr@gnu.org>
9153
9154 * w32.c (init_environment): Set emacs_dir correctly when running
9155 emacs from the build directory.
9156
9157 2004-10-19 Richard M. Stallman <rms@gnu.org>
9158
9159 * editfns.c (Fdelete_and_extract_region):
9160 If region is empty, return null string.
9161
9162 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9163
9164 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
9165 and canon_width.
9166 (xg_frame_cleared): Remove.
9167
9168 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
9169 (xg_find_top_left_in_fixed): Remove.
9170 (xg_create_scroll_bar): Put an event box widget between
9171 the scroll bar widget and the edit widget.
9172 (xg_show_scroll_bar): Show the parent widget (the event box).
9173 (xg_remove_scroll_bar): Destroy parent (the event box) also.
9174 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
9175 Move the parent (the event box) widget inside the fixed widget.
9176 Move window clear to xterm.c.
9177
9178 * gtkutil.h (xg_frame_cleared): Remove.
9179
9180 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
9181 (x_scroll_bar_create, XTset_vertical_scroll_bar):
9182 Remove arguments left and width to xg_update_scrollbar_pos.
9183 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
9184
9185 2004-10-19 Kenichi Handa <handa@m17n.org>
9186
9187 * xdisp.c (display_mode_element): Fix display of wide chars.
9188
9189 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9190
9191 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
9192 gdk_window_clear and move gdk_window_process_all_updates after
9193 clear so events are sent to the X server in correct order.
9194
9195 2004-10-18 Kenichi Handa <handa@m17n.org>
9196
9197 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
9198 comparing font names.
9199 (fs_query_fontset): Use fast_string_match for comparing fontset names.
9200 (list_fontsets): Likewise.
9201
9202 * search.c (fast_string_match_ignore_case): New function.
9203
9204 * lisp.h (fast_string_match_ignore_case): Extern it.
9205
9206 2004-10-17 Kim F. Storm <storm@cua.dk>
9207
9208 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
9209 than bitmap if there is not left fringe.
9210 (get_overlay_arrow_glyph_row): Also used on windows system.
9211 (display_line): Display overlay string if no left fringe.
9212
9213 2004-10-16 Jason Rumney <jasonr@gnu.org>
9214
9215 * w32fns.c (w32_font_match): Encode font name being matched.
9216
9217 2004-10-16 Richard M. Stallman <rms@gnu.org>
9218
9219 * window.c (Fspecial_display_p): Doc fix.
9220
9221 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
9222
9223 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
9224 Don't ignore menus, because where-is-internal already does it for us.
9225
9226 2004-10-15 Kim F. Storm <storm@cua.dk>
9227
9228 * xdisp.c (redisplay_window): Only update fringes and vertical
9229 border on window frames.
9230
9231 2004-10-14 Andreas Schwab <schwab@suse.de>
9232
9233 * m/ia64.h (DATA_SEG_BITS): Don't define.
9234
9235 2004-10-14 Kim F. Storm <storm@cua.dk>
9236
9237 * xterm.h: Include Xutil.h after keysym.h to work around bug
9238 in some X versions.
9239
9240 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
9241
9242 * fns.c (map_char_table): Add missing gcpros.
9243
9244 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
9245
9246 * keymap.c (get_keymap): An autoload form is not a keymap.
9247
9248 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
9249
9250 2004-10-13 Kim F. Storm <storm@cua.dk>
9251
9252 * callproc.c (Fcall_process): Simplify handling of display arg.
9253 Resume `display_on_the_fly' once a coding system is determined.
9254
9255 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
9256
9257 2004-10-12 Kim F. Storm <storm@cua.dk>
9258
9259 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
9260 caller, such as call-process, is not going to poll for input.
9261 (calc_line_height_property): Handle case where it->object is nil.
9262
9263 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
9264
9265 2004-10-12 Kenichi Handa <handa@m17n.org>
9266
9267 * xdisp.c (get_next_display_element):
9268 If unibyte_display_via_language_environment is zero, display 8-bit
9269 chars in octal in unibyte buffer.
9270
9271 2004-10-12 Kim F. Storm <storm@cua.dk>
9272
9273 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
9274 are no ordinary bindings.
9275
9276 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9277
9278 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
9279
9280 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9281
9282 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
9283 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
9284 (make_mac_frame): Add BLOCK_INPUT around the making of a
9285 terminal frame.
9286 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
9287 * macgui.h (mktime): Use emacs_mktime.
9288 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
9289 Make a cancel file-open dialog be like C-g.
9290 * mac.c (mktime): Use emacs_mktime.
9291 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
9292 (Fmac_paste_function): Add better error handling for carbon cut/paste.
9293
9294 2004-10-10 Kim F. Storm <storm@cua.dk>
9295
9296 * keyboard.c (timer_resume_idle): New function to resume idle
9297 timer without resetting timers on the idle list.
9298 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9299 (timer_start_idle, timer_stop_idle): Declare static.
9300 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
9301
9302 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
9303
9304 2004-10-08 Steven Tamm <steventamm@mac.com>
9305
9306 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
9307 * macterm.c (mac_check_for_quit_char): Remove warning for using
9308 NULL where 0 should be used.
9309 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
9310 objc/malloc.h
9311 * mac.c: Include time.h for Tiger compatibility.
9312
9313 2004-10-07 Kim F. Storm <storm@cua.dk>
9314
9315 * xdisp.c (redisplay_window): Fix flicker on vertical line between
9316 windows. Update vertical line after drawing window fringes, but
9317 only if actually drawing any bitmaps--or there is no fringe.
9318
9319 * xterm.c (x_update_window_end): Likewise.
9320 * macterm.c (x_update_window_end): Likewise.
9321 * w32term.c (x_update_window_end): Likewise.
9322
9323 * fringe.c (draw_window_fringes): Return value now indicates if
9324 any fringe bitmaps were redrawn (or there are no fringes).
9325
9326 * dispextern.h (draw_window_fringes): Update prototype.
9327
9328 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9329
9330 * macfns.c (mac_get_window_bounds): Add extern.
9331 (x_real_positions): Use mac_get_window_bounds.
9332
9333 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
9334 xmenu.c (YAILOM).
9335
9336 * macterm.c [!MAC_OSX]: Include Windows.h.
9337 (front_emacs_window): Rename from mac_front_window. All uses
9338 changed. Return the frontmost non-tooltip emacs window.
9339 (mac_get_window_bounds): New function.
9340 (x_calc_absolute_position): Use the difference of width and height
9341 between the inner and outer window.
9342 (x_set_offset): Specify window position by the coordinae of the
9343 outer window. Adjust the position if the title bar is completely
9344 outside the screen.
9345 (app_is_suspended, app_sleep_time): Remove unused variables.
9346 (do_app_resume, do_app_suspend): Remove their contents because
9347 window-activate/deactivate events will do the job.
9348 (do_zoom_window): Remove unused variables. Make compliant to the
9349 standard way of zooming. Set f->left_pos and f->top_pos.
9350 (XTread_socket): Don't use argument `expected'. Don't use
9351 FrontWindow to determine the clicked window. Exclude unprocessed
9352 mouseUp cases in the early stage. Add parentheses to fix operator
9353 precedence.
9354 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
9355
9356 2004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
9357
9358 * config.in: Regenerate.
9359
9360 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
9361 HAVE_EXECSHIELD.
9362
9363 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9364
9365 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
9366 a row if Alt or Meta has been found for that row. Also stop scanning
9367 for Keysyms for that row.
9368
9369 2004-10-04 Kim F. Storm <storm@cua.dk>
9370
9371 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
9372 to list. Include overlay arrow bitmap in return value.
9373
9374 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
9375 bars with fractional column width. If scroll bar separates two
9376 windows, move it towards the window it belongs to. Only update
9377 the padding area below the scroll bar widget when necessary,
9378 i.e. when scroll bar widget is created, moved, or resized.
9379
9380 * xdisp.c (define_frame_cursor1): Do not change frame cursor
9381 while tracking/dragging mouse.
9382 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
9383
9384 * window.c (coordinates_in_window): Relax check for cursor
9385 on vertial border between mode lines.
9386 (Fset_window_fringes): Do not allow negative widths.
9387 (Fset_window_scroll_bars): Likewise.
9388
9389 * .gdbinit (pp): Shorthand for p ARG + pr.
9390 (ff): New command: flush frame updates (X only).
9391
9392 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
9393
9394 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
9395
9396 2004-09-30 Kenichi Handa <handa@m17n.org>
9397
9398 * process.c (send_process): Free composition data.
9399
9400 * fileio.c (Finsert_file_contents): Free composition data.
9401
9402 * coding.c (code_convert_region): Don't skip ASCIIs if there are
9403 compositions to encode.
9404 (encode_coding_string): Likewise. Free composition data.
9405
9406 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
9407
9408 * coding.c (code_convert_region): Free composition data.
9409
9410 2004-09-29 Kim F. Storm <storm@cua.dk>
9411
9412 * fringe.c: Remove limit on number of bitmaps.
9413 (fringe_bitmaps, fringe_faces): Change to pointers.
9414 (max_fringe_bitmaps): New var.
9415 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
9416 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
9417
9418 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
9419 (struct glyph_row): Reorder fringe_bitmap related fields.
9420 (struct it): Likewise.
9421
9422 * w32term.c (fringe_bmp): Change to pointer.
9423 (max_fringe_bmp): New var.
9424 (w32_define_fringe_bitmap): Expand fringe_bmp.
9425 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
9426 (w32_destroy_fringe_bitmap): Likewise.
9427
9428 2004-09-29 Kim F. Storm <storm@cua.dk>
9429
9430 * fringe.c: Simplify last change.
9431 (lookup_fringe_bitmap): New function.
9432 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
9433 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
9434 Keep standard bitmaps in Vfringe_bitmaps.
9435 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
9436 (Fset_fringe_bitmap_face): Likewise.
9437
9438 * dispextern.h (lookup_fringe_bitmap): Add prototype.
9439 (valid_fringe_bitmap_p): Remove prototype.
9440
9441 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
9442
9443 2004-09-29 Kim F. Storm <storm@cua.dk>
9444
9445 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
9446 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
9447
9448 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
9449
9450 * fringe.c (Vfringe_bitmaps): New variable.
9451 (syms_of_fringe): DEFVAR_LISP it.
9452 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
9453 Change arg to Lisp_Object and fail if not an integer.
9454 (get_fringe_bitmap_name, resolve_fringe_bitmap)
9455 (destroy_fringe_bitmap): New functions.
9456 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
9457 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
9458 clear its fringe property.
9459 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
9460 Fdestroy_fringe_bitmap.
9461 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
9462 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
9463 and set fringe property. Signal error if no free slots.
9464 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
9465 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
9466
9467 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
9468 symbols with a fringe property.
9469
9470 2004-09-27 Kim F. Storm <storm@cua.dk>
9471
9472 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
9473 Doc fix. Format may now be a symbol or alist, not a cons.
9474
9475 * fringe.c (update_window_fringes): Handle new formats of
9476 indicate-buffer-boundaries (symbol or alist). No longer
9477 allow a simple cons.
9478 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
9479
9480 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9481
9482 * config.in: Rebuild.
9483
9484 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9485
9486 * config.in: Rebuild.
9487
9488 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
9489
9490 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
9491
9492 * xterm.c (x_term_init): Work around a bug in some X servers.
9493
9494 2004-09-18 Richard M. Stallman <rms@gnu.org>
9495
9496 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
9497
9498 * xdisp.c (try_window_reusing_current_matrix):
9499 Handle the case where we reach the old displayed text,
9500 out of sync with the old line boundary.
9501
9502 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
9503
9504 * fileio.c (Finsert_file_contents): Fix case of replacement in a
9505 narrowed buffer.
9506
9507 2004-09-14 Kim F. Storm <storm@cua.dk>
9508
9509 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
9510
9511 * xfaces.c (Qface_no_inherit): New var.
9512 (syms_of_xfaces): Intern and staticpro it.
9513 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
9514 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
9515 Don't increment face_change_count when face has non-nil
9516 face-no-inherit property.
9517
9518 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
9519
9520 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
9521 (Fbyte_code): Remove dead code after `wrong_type_argument'.
9522
9523 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9524 before doing the mark_stack_check_gcpros since they're not on the stack.
9525
9526 2004-09-12 Kim F. Storm <storm@cua.dk>
9527
9528 * editfns.c (Fformat): Handle format strings with multiple text
9529 properties. Reverse text property list from the format string,
9530 so the positions are in increasing order.
9531
9532 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9533
9534 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
9535 x_uncatch_errors so that possible protocol errors are delivered.
9536
9537 2004-09-10 Eli Zaretskii <eliz@gnu.org>
9538
9539 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
9540 blockinput.h.
9541 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
9542 charset.h, and coding.h
9543 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
9544 (term.o): Depend on window.h and keymap.h.
9545 (abbrev.o): Depend on syntax.h.
9546 (callint.o): Depend on keymap.h.
9547 (casefiddle.o): Depend on charset.h and keymap.h.
9548 (category.o): Depend on keymap.h.
9549 (coding.o): Depend on dispextern.h.
9550 (cmds.o): Depend on keyboard.h and keymap.h.
9551 (dispnew.o): Depend on indent.h and intervals.h.
9552 (doc.o): Depend on keymap.h.
9553 (editfns.o): Depend on frame.h.
9554 (emacs.o): Depend on dispextern.h.
9555 (fileio.o): Don't depend on ccl.h.
9556 (filelock.o): Depend on charset.h and coding.h.
9557 (frame.o): Depend on w32term.h and macterm.h.
9558 (insdel.o): Depend on region-cache.h.
9559 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
9560 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
9561 (search.o): Depend on $(INTERVALS_SRC).
9562 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
9563 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
9564 xterm.h, w32term.h, and macterm.h.
9565 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
9566 w32term.h, and macterm.h.
9567 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
9568 region-cache.h, xterm.h, w32term.h, and macterm.h.
9569 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
9570 (data.o): Depend on frame.h.
9571 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
9572 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
9573 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
9574 (intervals.o): Depend on keymap.h.
9575
9576 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
9577 Add debugging print-out to termscript.
9578
9579 2004-09-09 Richard M. Stallman <rms@gnu.org>
9580
9581 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
9582
9583 2004-09-08 Richard M. Stallman <rms@gnu.org>
9584
9585 * window.c (Fset_window_buffer): Doc fix.
9586
9587 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
9588
9589 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
9590
9591 * minibuf.c (history_delete_duplicates): New variable.
9592 (read_minibuf): Use it.
9593 (syms_of_minibuf): Create the corresponding lisp variable.
9594
9595 2004-09-08 Kim F. Storm <storm@cua.dk>
9596
9597 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
9598 overlay just before point.
9599
9600 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
9601
9602 * buffer.h (struct buffer): Add auto_save_file_format field.
9603 * buffer.c (reset_buffer, init_buffer_once):
9604 Handle auto_save_file_format field.
9605 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
9606 `buffer-auto-save-file-format'.
9607 * fileio.c: Delete declaration for removed Vauto_save_file_format.
9608 (build_annotations): Adapt to replacement of
9609 `auto-save-file-format' with the new buffer-local variable
9610 `buffer-auto-save-file-format'.
9611 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
9612
9613 2004-09-07 Jason Rumney <jasonr@gnu.org>
9614
9615 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
9616
9617 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
9618 Handle Unicode menu titles.
9619
9620 2004-09-07 Kim F. Storm <storm@cua.dk>
9621
9622 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
9623 property from text property or overlay strings at point.
9624
9625 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9626
9627 * xmenu.c (update_submenu_strings): YAILOM.
9628 (set_frame_menubar): Make sure last_i is initialized.
9629
9630 2004-09-03 Jason Rumney <jasonr@gnu.org>
9631
9632 * w32menu.c (_widget_value): Add lname and lkey.
9633 (digest_single_submenu): Set lname and lkey in widget_value
9634 instead of name and key.
9635 (update_submenu_strings): New function.
9636 (set_frame_menubar): Remove call to inhibit_garbage_collection,
9637 call update_submenu_strings.
9638
9639 * w32menu.c (globals_of_w32menu): Check for Unicode API.
9640 (digest_single_submenu, w32_menu_show): Encode menu strings as
9641 UTF-8 if Unicode API is available.
9642 (utf8to16): New function.
9643 (add_menu_item): Use it when calling Unicode API.
9644
9645 2004-09-03 Kim F. Storm <storm@cua.dk>
9646
9647 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
9648 in overlay or text-property strings; set cursor on corresponding
9649 glyph rather than at end of the string.
9650
9651 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9652
9653 * macfns.c (x_real_positions): Save the current window port and
9654 set a new one before obtaining the global coordinate.
9655 Use FRAME_MAC_WINDOW.
9656 (x_set_name, x_set_title): Encode title to UTF8.
9657 Use SetWindowTitleWithCFString.
9658 (Fx_server_version): Get correct OS version.
9659
9660 * macmenu.c (add_menu_item): Remove unused variable `i'.
9661 Don't let separator items destroy refence constants of other menu items.
9662
9663 * macterm.c (x_update_end): Move SetPortWindowPort to inside
9664 BLOCK_INPUT.
9665 (x_set_offset): Use FRAME_MAC_WINDOW.
9666
9667 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
9668 nontext_cursor if it is on a scroll bar.
9669
9670 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
9671 Carbon support.
9672 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
9673 Use LIBS_CARBON.
9674
9675 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9676
9677 * xfns.c (x_set_name_internal): New function. Check if we shall call
9678 xfree before ENCODE_UTF_8.
9679 (x_set_name, x_set_title): Call x_set_name_internal.
9680
9681 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
9682
9683 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
9684 reload it.
9685
9686 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9687
9688 * macmenu.c (_widget_value): Add lname and lkey.
9689 (single_submenu): Set lname and lkey in widget_value
9690 instead of name and key.
9691 (update_submenu_strings): New function.
9692 (set_frame_menubar): Remove call to inhibit_garbage_collection,
9693 call update_submenu_strings.
9694
9695 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
9696 instead of name and key.
9697 (update_submenu_strings): New function.
9698 (set_frame_menubar): Remove call to inhibit_garbage_collection,
9699 call update_submenu_strings.
9700
9701 * gtkutil.h (_widget_value): Added lname and lkey.
9702
9703 2004-08-30 Steven Tamm <steventamm@mac.com>
9704
9705 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
9706 by using different names for inner loop variables.
9707
9708 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9709
9710 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
9711 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
9712
9713 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
9714 tool bar items is 0.
9715
9716 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9717
9718 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
9719 strings in menu items.
9720 (single_submenu): Use ENCODE_MENU_STRING
9721 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
9722 button release isn't passed to event loop
9723 (add_menu_item): Use SetMenuItemWithCFString
9724
9725 2004-08-26 Steven Tamm <steventamm@mac.com>
9726
9727 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
9728 tool-bar/menu click.
9729 * macfns.c (Fx_file_dialog): Implement using NavServices.
9730
9731 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9732
9733 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
9734
9735 * xfns.c (x_window_to_frame, x_any_window_to_frame)
9736 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
9737 (x_top_window_to_frame): Return 0 if wdesc is None.
9738
9739 2004-08-22 Richard M. Stallman <rms@gnu.org>
9740
9741 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
9742 HAVE_TERMIOS]: If there's no char for this signal, drop through
9743 and use system calls.
9744
9745 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
9746
9747 2004-08-20 Kim F. Storm <storm@cua.dk>
9748
9749 * process.c (wait_reading_process_output): Rename from
9750 wait_reading_process_input. All uses changed.
9751 (wait_reading_process_output_1): Rename from
9752 wait_reading_process_input_1. All uses changed.
9753
9754 * dispnew.c (Fsleep_for): Remove obsolete code.
9755
9756 2004-08-20 Kenichi Handa <handa@m17n.org>
9757
9758 * syntax.c (skip_chars): Fix for unibyte case.
9759
9760 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
9761
9762 * syntax.c (char_quoted): Mixup byte/char pos.
9763 (back_comment): Fixup globals in all cases.
9764
9765 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9766
9767 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
9768 passing it to gtk_window_set_title.
9769
9770 2004-08-19 Kim F. Storm <storm@cua.dk>
9771
9772 * process.c (wait_reading_process_input): Clean up.
9773 Add wait_for_cell, wait_proc, and just_wait_proc args
9774 to avoid overloading `read_kbd' and `do_display' args.
9775 Change read_kbd arg to int. All callers changed.
9776
9777 * process.c (process_send_signal): Use CDISABLE.
9778
9779 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
9780
9781 2004-08-18 Kim F. Storm <storm@cua.dk>
9782
9783 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
9784 forward to wait_reading_process_input via DO_DISPLAY arg.
9785 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
9786 object, only process output from that process; also inhibit
9787 running timers if DO_DISPLAY==-2.
9788
9789 2004-08-17 Kim F. Storm <storm@cua.dk>
9790
9791 * process.c (process_send_signal): Fix last change--use
9792 _POSIX_VDISABLE instead of CVDISABLE when available.
9793
9794 2004-08-16 Richard M. Stallman <rms@gnu.org>
9795
9796 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
9797 Set VQUIT and VINTR chars to the standard ones if they are unset.
9798 [AIX]: Don't do that here. And don't force VINTR to standard
9799 when SIGNALS_VIA_CHARACTERS.
9800
9801 * process.c (process_send_signal)
9802 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
9803 Do nothing if the character is CVDISABLE.
9804
9805 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
9806
9807 * intervals.c (move_if_not_intangible):
9808 Force POSITION to be between BEGV and ZV.
9809
9810 2004-08-14 John Paul Wallington <jpw@gnu.org>
9811
9812 * buffer.c (Frestore_buffer_modified_p): Doc fix.
9813
9814 * fileio.c (Fread_file_name): Doc fix.
9815
9816 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
9817
9818 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
9819
9820 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
9821
9822 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
9823
9824 * keyboard.c: Declare Qdisabled_command_function instead of
9825 Qdisabled_command_hook.
9826 (Fcommand_execute): Use Qdisabled_command_function instead of
9827 Qdisabled_command_hook.
9828 (syms_of_keyboard): Ditto.
9829
9830 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
9831
9832 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
9833 (syms_of_keymap) <key-translation-map>: Doc fixes.
9834
9835 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
9836
9837 * window.c (window_list_1): YAILOM.
9838
9839 * fileio.c (make_temp_name): Handle multibyte prefixes.
9840
9841 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
9842
9843 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
9844 Doc fix.
9845
9846 2004-08-03 Kenichi Handa <handa@m17n.org>
9847
9848 * coding.c (decode_coding_string): Adjust coding->consumed, and
9849 etc. with shrinked_bytes.
9850
9851 2004-08-03 Kim F. Storm <storm@cua.dk>
9852
9853 * indent.c (compute_motion): Fix check for full width window
9854 in non-window case. Do not count left truncation glyph on
9855 window systems.
9856
9857 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
9858
9859 * data.c (Finteractive_form): Doc fix.
9860
9861 2004-08-02 Kim F. Storm <storm@cua.dk>
9862
9863 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
9864 properly accounting for continuation glyph on non-window systems.
9865 (Fcompute_motion): Use actual window width if WIDTH is nil, and
9866 actual window width/height if TOPOS is nil, properly accounting for
9867 continuation glyphs on non-window systems, and optional header lines.
9868 (vmotion): Let compute_motion calculate actual window width.
9869
9870 * window.c (window_scroll_line_based): Let compute_motion
9871 calculate actual window width.
9872
9873 2004-08-02 Kim F. Storm <storm@cua.dk>
9874
9875 * process.c (read_process_output): Use whole read buffer.
9876 Don't trigger adaptive read buffering on errors.
9877
9878 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
9879
9880 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
9881
9882 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
9883
9884 * callint.c (Fcall_interactively): Doc fix.
9885
9886 2004-07-30 Richard M. Stallman <rms@gnu.org>
9887
9888 * abbrev.c (Fexpand_abbrev): Undo previous change.
9889
9890 2004-07-30 Kim F. Storm <storm@cua.dk>
9891
9892 * editfns.c (Fformat): Allocate extra (dummy) element in info.
9893
9894 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
9895
9896 * eval.c (Fdefvar, Fdefconst): Doc fixes.
9897
9898 2004-07-27 Kim F. Storm <storm@cua.dk>
9899
9900 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
9901 we have ensured that the glyph fits on the current line (or returned
9902 MOVE_LINE_CONTINUED otherwise).
9903
9904 2004-07-26 Kim F. Storm <storm@cua.dk>
9905
9906 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
9907 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
9908 if target position is at end of display line but char is not a newline.
9909
9910 2004-07-25 Richard M. Stallman <rms@gnu.org>
9911
9912 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
9913 instead of ON_VERTICAL_BORDER, when on scroll bar.
9914 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
9915
9916 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
9917
9918 * window.c (Fcoordinates_in_window_p):
9919 Take account of FRAME_INTERNAL_BORDER_WIDTH.
9920
9921 * alloc.c (check_cons_list): New function (contents commented out).
9922
9923 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
9924
9925 * xfaces.c (Fcolor_supported_p): Doc fix.
9926
9927 * frame.c (Fselect_frame, Fset_frame_selected_window)
9928 (Fframe_visible_p, Fraise_frame): Doc fixes.
9929
9930 2004-07-24 Richard M. Stallman <rms@gnu.org>
9931
9932 * keyboard.h (not_single_kboard_state): Declare.
9933
9934 * fileio.c (Fwrite_region): Doc fix.
9935
9936 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
9937
9938 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
9939 only when a real abbrev is present.
9940
9941 * xfns.c (x_icon_verify): New function.
9942 (Fx_create_frame): Use it.
9943
9944 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
9945
9946 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
9947
9948 2004-07-21 Kim F. Storm <storm@cua.dk>
9949
9950 * window.h (struct glyph_matrix): New members nrows_scale_factor
9951 and ncols_scale_factor.
9952
9953 * window.c (make_window): Initialize nrows_scale_factor and
9954 ncols_scale_factor members.
9955
9956 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
9957 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
9958 (required_matrix_height): Apply nrows_scale_factor.
9959 (required_matrix_width): Apply ncols_scale_factor.
9960
9961 * xdisp.c (display_line): Increment nrows_scale_factor and set
9962 fonts_changed_p if past last allocated row.
9963 (append_glyph, append_composite_glyph, produce_image_glyph)
9964 (append_stretch_glyph): Increment ncols_scale_factor and set
9965 fonts_changed_p if current area is full.
9966
9967 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9968
9969 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
9970
9971 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
9972
9973 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
9974 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
9975 (Fset_window_start, Fscroll_up, Fscroll_down)
9976 (Fother_window_for_scrolling, Fscroll_other_window)
9977 (Fsave_window_excursion, Fset_window_vscroll)
9978 (syms_of_window) <window-size-fixed>: Doc fixes.
9979
9980 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9981
9982 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
9983 ENCODE_SYSTEM for filenames.
9984
9985 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9986
9987 * mac.c (sys_select): Block input around call to
9988 ReceiveNextEvent to prevent breakage. Correctly handle
9989 blocking on event queue only by calling ReceiveNextEvent
9990 instead of select (since GUI events aren't on an fd).
9991 (sys_read): Remove function
9992 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
9993
9994 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9995
9996 * mac.c (sys_select): Redo sys_select to use alarm-based
9997 polling instead of 1 sec timeouts (like solaris).
9998
9999 * macterm.c (x_make_frame_visible): Comment in polling on
10000 frame creation.
10001
10002 * keyboard.c: Undef SIGIO on Carbon
10003
10004 * atimer.c (alarm_signal_handler): Call alarm handlers after
10005 scheduling.
10006
10007 * eval.c (Feval): Remove quit_char test
10008
10009 * process.c (wait_reading_process_input): Remove clearing
10010 stdin for select call on process input.
10011
10012 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
10013
10014 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
10015 capitalization error in docstring.
10016
10017 2004-07-17 Juanma Barranquero <lektu@terra.es>
10018
10019 * keyboard.c (not_single_kboard_state): Do nothing unless
10020 MULTI_KBOARD is defined.
10021
10022 2004-07-17 Richard M. Stallman <rms@gnu.org>
10023
10024 * window.c (coordinates_in_window): Inside the window but outside
10025 its box to the L or R, return ON_VERTICAL_BORDER.
10026 (window_list_1): Rotate the list to start with WINDOW.
10027
10028 * print.c (print_preprocess): Test for print_depth at limit
10029 before entering in being_printed.
10030
10031 * keyboard.c (not_single_kboard_state): New function.
10032 (stuff_buffered_input): Now no-op only if no SIGTSTP.
10033
10034 * frame.c (Fdelete_frame): If we're in single_bboard_state on
10035 this kboard, and we delete its last frame, go to any_kboard_state.
10036
10037 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
10038
10039 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
10040
10041 * w32fns.c (Fx_file_dialog): Encode strings in system coding
10042 system before passing them to OS functions for display.
10043
10044 2004-07-15 David Kastrup <dak@gnu.org>
10045
10046 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
10047 Apparently fixes an abort condition.
10048
10049 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
10050
10051 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
10052 instead of a cons.
10053
10054 2004-07-14 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
10055
10056 * keyboard.c (echo_dash): Do nothing if there already is a dash
10057 at the end of the echo string.
10058
10059 2004-07-12 Kim F. Storm <storm@cua.dk>
10060
10061 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
10062 if GC_MARK_STACK.
10063
10064 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
10065
10066 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
10067
10068 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
10069 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
10070 (Freplace_buffer_in_windows, Fset_window_buffer)
10071 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
10072 (syms_of_window): Expand docstring of `display-buffer-function'.
10073
10074 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
10075
10076 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
10077 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
10078 that time values of the type (HIGH . LOW) are considered obsolete.
10079
10080 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
10081
10082 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
10083 docstring.
10084
10085 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
10086
10087 2004-07-06 John Paul Wallington <jpw@gnu.org>
10088
10089 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
10090
10091 * fns.c (Fclear_string): Signal an error if STRING is not a string.
10092
10093 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10094
10095 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
10096 instead of CGMainDisplayID (only in OSX 10.2 and later).
10097
10098 2004-07-04 John Paul Wallington <jpw@gnu.org>
10099
10100 * fileio.c (read_file_name_completion_ignore_case): New variable.
10101 (syms_of_fileio): Declare and initialise it.
10102 (Fread_file_name): Bind `completion-ignore-case' to respect it.
10103
10104 2004-07-03 Eli Zaretskii <eliz@gnu.org>
10105
10106 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
10107 for event.x and event.y.
10108
10109 2004-07-01 Kenichi Handa <handa@m17n.org>
10110
10111 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
10112 after getting a new string by pre-write-conversion.
10113
10114 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
10115
10116 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
10117 (x_calc_absolute_position): Remove unused var `child'.
10118
10119 * xfaces.c (x_supports_face_attributes_p)
10120 (Fdisplay_supports_face_attributes_p): YAILOM.
10121 (tty_supports_face_attributes_p): Remove unused var `i'.
10122
10123 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
10124 back_unibyte_ok.
10125
10126 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
10127
10128 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
10129
10130 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
10131
10132 2004-06-30 Andreas Schwab <schwab@suse.de>
10133
10134 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
10135 (Finit_image_library): Pass LIBRARIES through to
10136 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
10137 (lookup_image_type): Pass Qnil as second argument to
10138 Finit_image_library.
10139
10140 * lisp.h (Finit_image_library): Declare.
10141
10142 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10143
10144 * macterm.c (do_window_activate, do_window_deactivate): Remove.
10145 (XTread_socket): Send mouse button events to the toolbox
10146 dispatcher even when the mouse is grabbed. Don't process window
10147 activate events for non-Emacs windows. Replace function calls to
10148 do_window_activate and do_window_deactivate with their contents.
10149 Reset mouse grabbing status when a window is deactivated.
10150
10151 2004-06-29 Steven Tamm <steventamm@mac.com>
10152
10153 * macterm.c (mac_get_emulated_btn)
10154 (mac_event_to_emacs_modifiers): Fix emulated mouse button
10155 support to correctly mask out modifiers.
10156
10157 2004-06-29 David Kastrup <dak@gnu.org>
10158
10159 * search.c (Fset_match_data): Allow buffer before end of list
10160 which can happen if set-match-data is using a pre-consed list.
10161
10162 2004-06-28 Steven Tamm <steventamm@mac.com>
10163
10164 * macterm.c (XTread_socket): Correctly set the frame position
10165 after the window is moved.
10166
10167 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10168
10169 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
10170 gpix and gmask just before return to avoid memory leak.
10171 (xg_get_image_for_pixmap): Add workaround for monochrome displays
10172 so insensitive and activated icons look ok.
10173
10174 2004-06-27 Jason Rumney <jasonr@gnu.org>
10175
10176 * w32fns.c (file_dialog_callback): Disable edit control if set
10177 to directories only on CDN_INITDONE message.
10178 (Fx_file_dialog): Default to directories only when prompt starts
10179 with "Dired".
10180
10181 2004-06-25 Kim F. Storm <storm@cua.dk>
10182
10183 * alloc.c (allocate_misc): Update total_free_markers.
10184 (free_misc): New function.
10185 (safe_alloca_unwind, free_marker): Use it.
10186
10187 * lisp.h (free_misc): Add prototype.
10188
10189 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
10190
10191 2004-06-24 Richard M. Stallman <rms@gnu.org>
10192
10193 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
10194 (syms_of_emacs): Lisp variables deleted.
10195
10196 2004-06-23 David Kastrup <dak@gnu.org>
10197
10198 * search.c (Freplace_match): Adjust the match-data more thoroughly
10199 when replacing strings in the buffer.
10200 (Fmatch_data): When INTEGERS is non-nil and the last match was in
10201 a buffer, add the buffer as last element to the match data.
10202 (Fset_match_data): If an additional element of the match-data is a
10203 buffer, restore it to last_thing_searched.
10204 (save_search_regs): Save last_thing_searched as part of the match data.
10205 (restore_match_data): Restore it again.
10206
10207 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
10208
10209 * keymap.c (Ftext_char_description): Doc fix.
10210 * doc.c (Fsnarf_documentation): Doc fix.
10211
10212 2004-06-22 Kim F. Storm <storm@cua.dk>
10213
10214 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
10215
10216 * lisp.h (struct Lisp_Save_Value): New member dogc.
10217 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
10218 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
10219 (SAFE_FREE_LISP): New macro.
10220
10221 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
10222 (make_save_value): Init new dogc member.
10223 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
10224
10225 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
10226 SAFE_FREE_LISP macros.
10227
10228 2004-06-22 Kim F. Storm <storm@cua.dk>
10229
10230 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
10231 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
10232 in that memory area are unknown to GC. Add comments.
10233
10234 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
10235
10236 2004-06-21 Kim F. Storm <storm@cua.dk>
10237
10238 * lisp.h (MAX_ALLOCA): Define here.
10239 (safe_alloca_unwind): Add prototype.
10240 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
10241
10242 * alloc.c (safe_alloca_unwind): New function.
10243
10244 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
10245
10246 * charset.c (Fstring): Use SAFE_ALLOCA.
10247
10248 * coding.c (MAX_ALLOCA): Remove define.
10249
10250 * data.c (MAX_ALLOCA): Remove define.
10251 (Faset): Use SAFE_ALLOCA.
10252
10253 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
10254
10255 * fns.c (string_make_multibyte, string_to_multibyte)
10256 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
10257 (MAX_ALLOCA): Remove define.
10258 (Fbase64_encode_region, Fbase64_encode_string)
10259 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
10260 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
10261 memory leak if encoding fails.
10262
10263 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
10264
10265 2004-06-21 Eli Zaretskii <eliz@gnu.org>
10266
10267 * print.c (Fwith_output_to_temp_buffer): Doc fix.
10268
10269 2004-06-20 Richard M. Stallman <rms@gnu.org>
10270
10271 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
10272
10273 * search.c (match_limit): Cleaner err msg when no match data available.
10274
10275 * window.c (syms_of_window): Doc fix.
10276
10277 * keyboard.c (command_loop_1): Handle values `only' and `identity'
10278 for Vtransient_mark_mode.
10279
10280 * buffer.c (syms_of_buffer): Doc fix.
10281
10282 2004-06-21 David Kastrup <dak@gnu.org>
10283
10284 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
10285 and unbinding of `case-fold-search' according to
10286 `completion-ignore-case' around calls of string-match and
10287 predicates, respectively. Should give satisfactory performance
10288 in all relevant cases.
10289
10290 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10291
10292 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
10293 clip_x/y_origin.
10294
10295 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
10296
10297 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
10298
10299 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
10300 on Mac OSX.
10301
10302 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
10303
10304 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
10305
10306 2004-06-16 Kim F. Storm <storm@cua.dk>
10307
10308 * dispextern.h (Vimage_types): Remove extern.
10309
10310 2004-06-16 Miles Bader <miles@gnu.org>
10311
10312 * image.c (lookup_image_type): Initialize image type if necessary.
10313
10314 2004-06-15 Kim F. Storm <storm@cua.dk>
10315
10316 * xdisp.c (try_cursor_movement): Exclude header line from scroll
10317 margin at top of window.
10318 (try_window_reusing_current_matrix): Calculate proper cursor position
10319 after scrolling up with non-zero scroll margin, as the old cursor
10320 position corresponds to value of PT before executing this command.
10321 (try_window_id): Consider scroll margin at bottom of window too;
10322 otherwise we fail to scroll when hl-line-mode is enabled.
10323
10324 * syntax.c (skip_chars): Only recognize [:class:] when it has the
10325 proper format and class is a lower-case word.
10326
10327 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10328
10329 * gtkutil.c (xg_get_image_for_pixmap): New function.
10330 (xg_get_gdk_pixmap_and_mask): Remove.
10331 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
10332 xg_get_gdk_pixmap_and_mask.
10333
10334 * xterm.h (struct x_display_info): Typo in comment fixed.
10335
10336 2004-06-14 Juanma Barranquero <lektu@terra.es>
10337
10338 * dispextern.h (Vimage_types): Make it conditional on
10339 HAVE_WINDOW_SYSTEM.
10340
10341 * image.c (Vimage_types): Move from xdisp.c.
10342 (Vimage_type_cache): New variable.
10343 (define_image_type): New argument indicating whether an image
10344 library was loaded; cache loaded status and return t on success,
10345 nil otherwise.
10346 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
10347 (w32_delayed_load): New function to load an image library from a
10348 list of possible filenames.
10349 (init_xpm_functions, init_png_functions, init_jpeg_functions)
10350 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
10351 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
10352 (Finit_image_library): New function, extracted from `init_image'.
10353 Try to initialize an image library on demand and cache whether we
10354 were successful or not.
10355 (syms_of_image): Initialize `Vimage_types' and
10356 `Vimage_type_cache'. Add recognized image types to Vimage_types.
10357 Export `init-image-library'.
10358 (init_image): Remove initialization of all image types, except xbm
10359 and pbm.
10360
10361 * xdisp.c (Vimage_types): Delete (moved to image.c).
10362
10363 2004-06-14 Andreas Schwab <schwab@suse.de>
10364
10365 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
10366 Avoid calling specbind when completion-regexp-list is empty.
10367
10368 2004-06-13 Richard M. Stallman <rms@gnu.org>
10369
10370 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
10371 (re_wctype, re_iswctype, re_wctype_to_bit):
10372 Non-function definitions moved here from regex.c.
10373
10374 * regex.c (re_wctype, re_iswctype): Function defs longer static.
10375 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
10376 (re_wctype, re_iswctype, re_wctype_to_bit):
10377 Non-function definitions moved to regex.h.
10378
10379 * window.c (Fselect_window): Doc fix.
10380
10381 * syntax.c: Include regex.h.
10382 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
10383 If requested, make a list of classes, then check the scanned
10384 chars for membership in them.
10385 (in_classes): New function.
10386 Doc fix.
10387
10388 * keyboard.c (cmd_error): Don't call any_kboard_state
10389 if inside a recursive edit level.
10390
10391 2004-06-13 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
10392
10393 * keyboard.c (command_loop): Call any_kboard_state before
10394 command_loop_2 when at top level.
10395
10396 2004-06-13 Andreas Schwab <schwab@suse.de>
10397
10398 * print.c (print_object): Always use %ld for printing EMACS_INT.
10399
10400 * keyboard.c (cancel_hourglass_unwind): Return a value.
10401 (modify_event_symbol): Always use %ld for printing EMACS_INT.
10402 (Fexecute_extended_command): Likewise.
10403
10404 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
10405 avoid clashes.
10406 (SYNTAX): Likewise.
10407 (SYNTAX_WITH_FLAGS): Likewise.
10408 (SYNTAX_MATCH): Likewise.
10409
10410 * syntax.c (char_quoted): Avoid warning about undefined operation.
10411 (find_defun_start): Likewise.
10412 (scan_lists): Likewise.
10413 (INC_FROM): Likewise.
10414 (scan_sexps_forward): Likewise.
10415
10416 * image.c: Include <ctype.h>.
10417
10418 * xfaces.c (face_attr_equal_p): Declare parameters.
10419
10420 2004-06-13 Kenichi Handa <handa@m17n.org>
10421
10422 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
10423
10424 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
10425
10426 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
10427
10428 2004-06-12 Kenichi Handa <handa@m17n.org>
10429
10430 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
10431 ccl_prog_stack_struct and update it.
10432 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
10433 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
10434 ccl->eof_ic on EOF.
10435 (ccl_debug_hook): New function.
10436 (struct ccl_prog_stack): New member eof_ic.
10437 (ccl_driver): Handle EOF in subrountine call correctly.
10438
10439 2004-06-11 Kenichi Handa <handa@m17n.org>
10440
10441 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
10442
10443 2004-06-11 Kim F. Storm <storm@cua.dk>
10444
10445 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
10446
10447 2004-06-11 Juanma Barranquero <lektu@terra.es>
10448
10449 * keyboard.c (Fposn_at_point): Doc fix.
10450
10451 2004-06-11 David Kastrup <dak@gnu.org>
10452
10453 * search.c (match_limit): Don't flag an error if match-data
10454 exceeding the allocated search_regs.num_regs gets requested, just
10455 return Qnil.
10456
10457 2004-06-08 Miles Bader <miles@gnu.org>
10458
10459 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
10460
10461 2004-06-07 Juanma Barranquero <lektu@terra.es>
10462
10463 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
10464 (Fcurrent_time_string, Fcurrent_time_zone)
10465 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
10466
10467 2004-06-07 Miles Bader <miles@gnu.org>
10468
10469 * xfaces.c (struct named_merge_point): New type.
10470 (push_named_merge_point): New function.
10471 (merge_named_face): New function.
10472 (merge_face_ref, face_at_buffer_position, face_at_string_position):
10473 Use `merge_named_face'.
10474 (merge_face_inheritance): Function removed.
10475 (merge_face_ref): Rename from `merge_face_vector_with_property'.
10476 Add new `err_msgs' and `named_merge_points' args. Return error
10477 status. Only print error messages if ERR_MSGS is true. Don't try to
10478 do :inherit attribute validation.
10479 (merge_face_heights): Handle `unspecified' in both directions.
10480 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
10481 Call `merge_face_ref' instead of `merge_face_inheritance'.
10482 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
10483 (compute_char_face, face_at_buffer_position)
10484 (face_at_string_position): Call `merge_face_ref' instead of
10485 `merge_face_vector_with_property'.
10486
10487 2004-06-07 Kenichi Handa <handa@m17n.org>
10488
10489 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
10490 the necessary places.
10491
10492 2004-06-07 Kim F. Storm <storm@cua.dk>
10493
10494 * process.c (Fdelete_process): Undo 2004-05-28 change.
10495 Instead, call status_notify also for network process.
10496 (status_message): Use process instead of status as arg.
10497 Give messages "deleted" or "connection broken by remote peer" for
10498 an exited network process.
10499 (status_notify): Change call to status_message.
10500 (read_process_output): Increase readmax to 4096. Do not increase
10501 buffer size for datagram channels (default is now large enough).
10502
10503 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
10504
10505 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
10506 problem due to newly defined variable.
10507
10508 2004-06-06 Miles Bader <miles@gnu.org>
10509
10510 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
10511 immediately if non-interactive or not initialized.
10512
10513 2004-06-05 Richard M. Stallman <rms@gnu.org>
10514
10515 * minibuf.c (Fcompleting_read): Doc fix.
10516
10517 2004-06-05 Andreas Schwab <schwab@suse.de>
10518
10519 * macfns.c (x_create_tip_frame): Fix declaration after statement.
10520
10521 2004-06-05 Juanma Barranquero <lektu@terra.es>
10522
10523 * keymap.c (Fdescribe_vector): Fix docstring.
10524 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
10525
10526 2004-06-05 Miles Bader <miles@gnu.org>
10527
10528 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
10529 attributes have different values than the default face.
10530
10531 2004-06-04 Eli Zaretskii <eliz@gnu.org>
10532
10533 * xfaces.c (x_supports_face_attributes_p): Make this function
10534 conditional on HAVE_WINDOW_SYSTEM.
10535 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
10536 Don't call x_supports_face_attributes_p if it was not compiled in.
10537
10538 2004-06-04 Miles Bader <miles@gnu.org>
10539
10540 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
10541 from Ftty_supports_face_attributes_p.
10542 (x_supports_face_attributes_p): New function.
10543 (Ftty_supports_face_attributes_p): Function deleted.
10544 (Fdisplay_supports_face_attributes_p): New function.
10545 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
10546 (face_attr_equal_p): New function.
10547 (lface_equal_p): Use it.
10548
10549 2004-06-03 Juanma Barranquero <lektu@terra.es>
10550
10551 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
10552 (Vw32_color_map): Fix typo in docstring.
10553 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
10554 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
10555 Make argument names match their use in docstring.
10556
10557 2004-06-02 Juanma Barranquero <lektu@terra.es>
10558
10559 Work around bugs/problems with MinGW builds of graphics libraries
10560 called from MSVC builds of Emacs.
10561
10562 * image.c (lookup_image): Make pointer to img static.
10563 (png_read_from_memory): Disable "global" optimization.
10564
10565 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
10566
10567 * eval.c (Fcondition_case): Fix usage. Simplify.
10568
10569 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
10570
10571 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10572
10573 * macfns.c: Don't include ccl.h.
10574 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
10575 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
10576 TextUtils.h.
10577 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
10578 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
10579 display height/width.
10580 (compute_tip_xy, Vx_max_tooltip_size): Declare.
10581 (unwind_create_tip_frame, compute_tip_xy): New functions.
10582 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
10583 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
10584 and last_show_tip_args.
10585
10586 * macgui.h [!MAC_OSX]: Include Gestalt.h.
10587 (Cursor, No_Cursor): New defines.
10588 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
10589 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
10590
10591 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
10592
10593 * macterm.c: Don't include Gestalt.h.
10594 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
10595 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
10596 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
10597 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
10598 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
10599 (construct_mouse_click, XTmouse_position)
10600 (x_scroll_bar_report_motion, x_calc_absolute_position)
10601 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
10602 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
10603 (note_mouse_movement): Clear the mouse face and reset the pointer
10604 shape when the pointer goes outside the frame without grabbing.
10605 (mac_front_window): New function.
10606 (mac_window_to_frame): New macro.
10607 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
10608 (do_window_activate, do_window_deactivate, do_app_resume)
10609 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
10610 (do_zoom_window, mac_do_receive_drag, XTread_socket)
10611 (mac_check_for_quit_char): Use mac_front_window and/or
10612 mac_window_to_frame.
10613 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
10614 scroll-bar click event.
10615 (mac_define_frame_cursor): Change the pointer shape.
10616 (x_free_frame_resources): Reset tip_window to NULL when it is
10617 disposed of.
10618 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
10619 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
10620 (do_window_update): Don't do anything if the updated window is the
10621 tooltip window.
10622 (do_mouse_moved): Handle mouse movement events here (previously in
10623 XTread_socket). Clear the mouse face if
10624 dpyinfo->mouse_face_hidden is set.
10625 (do_os_event, do_events): Remove (now in XTread_socket).
10626 (XTread_socket): Immediately return if interrupt_input_blocked.
10627 Loop until all the events in the queue are processed.
10628 Rearrange codes for mouse grabbing. Add tooltip support. Include the
10629 contents of do_os_event and do_events. Remove mouse movement
10630 handling (now in do_mouse_moved). Add the case where
10631 Vmouse_highlight has an integer value.
10632 (NewMacWindow): Remove.
10633 (make_mac_frame): Do what NewMacWindow previously did. Don't do
10634 excess initializations.
10635 (make_mac_terminal_frame): Previous initializations in
10636 make_mac_frame are moved here.
10637 (mac_initialize_display_info):
10638 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
10639
10640 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
10641 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
10642
10643 2004-05-29 Richard M. Stallman <rms@gnu.org>
10644
10645 * lisp.h (truncate_undo_list): Update decl.
10646
10647 * alloc.c (undo_outer_limit): New variable.
10648 (syms_of_alloc): Defvar it.
10649 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
10650
10651 * undo.c (truncate_undo_list): New arg LIMITSIZE.
10652
10653 * alloc.c (lisp_align_malloc): Check for base == 0
10654 regardless of HAVE_POSIX_MEMALIGN.
10655 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
10656
10657 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10658
10659 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
10660 (marker_blocks_pending_free): Remove.
10661 (Fgarbage_collect): Sweep after cleaning up undo-lists.
10662 Mark the undo lists after claning them up.
10663 Don't free block in marker_blocks_pending_free.
10664 (mark_buffer): Don't mark undo_list.
10665 (gc_sweep): Sweep hash-tables and strings first.
10666 Do free marker blocks that are empty.
10667
10668 2004-05-28 Jim Blandy <jimb@redhat.com>
10669
10670 * regex.c (print_partial_compiled_pattern): Add missing 'break'
10671 after 'case wordend'. For symbeg and symend, print to stderr,
10672 like the other cases.
10673
10674 2004-05-28 Noah Friedman <friedman@splode.com>
10675
10676 * process.c (Fdelete_process): Do not call remove_process.
10677
10678 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10679
10680 * alloc.c (struct backtrace): Remove.
10681 (Fgarbage_collect): Use the new mark_backtrace.
10682
10683 * eval.c (mark_backtrace): New function.
10684
10685 * minibuf.c (run_exit_minibuf_hook): New function.
10686 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
10687 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
10688
10689 2004-05-27 Kim F. Storm <storm@cua.dk>
10690
10691 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
10692 over display properties, e.g. images, that replace buffer text.
10693
10694 2004-05-25 Kim F. Storm <storm@cua.dk>
10695
10696 * alloc.c (marker_blocks_pending_free): New var.
10697 (gc_sweep): Store free marker blocks on that list.
10698 (Fgarbage_collect): Free them after undo-list cleanup.
10699
10700 * process.c (wait_reading_process_input): Check connect_wait_mask
10701 before actually accepting connection in case it has already been
10702 accepted due to recursion.
10703
10704 2004-05-23 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
10705
10706 * coding.c (Fset_safe_terminal_coding_system_internal):
10707 Set suppress_error in safe_terminal_coding, not terminal_coding.
10708
10709 2004-05-22 Richard M. Stallman <rms@gnu.org>
10710
10711 * alloc.c (Fmake_string): Doc fix.
10712
10713 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
10714 and the alist pairs too.
10715
10716 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
10717
10718 * emacs.c (main): Update copyright year.
10719
10720 * fileio.c (Fread_file_name): Expand DIR if not absolute.
10721
10722 * insdel.c (del_range_2, replace_range): Don't write an anchor
10723 if the gap is empty.
10724
10725 * xdisp.c (try_scrolling): If scroll-up-aggressively or
10726 scroll-down-aggressively is small but positive, put point
10727 near the screen edge.
10728
10729 2004-05-22 Juanma Barranquero <lektu@terra.es>
10730
10731 * keymap.c (Fdefine_key): Doc fix.
10732
10733 2004-05-22 Kim F. Storm <storm@cua.dk>
10734
10735 * alloc.c (struct backtrace): Add debug_on_exit member.
10736 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
10737 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
10738 the removed cons cells.
10739 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
10740 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
10741 any cons cells pointing to unallocated stings.
10742 Do not lisp_free any marker blocks, as there may still be pointers
10743 to them from buffer undo lists at this stage of GC.
10744
10745 * keyboard.c (struct backtrace): Add debug_on_exit member.
10746 (Fcommand_execute): Clear it.
10747
10748 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
10749
10750 * intervals.c (lookup_char_property): Do not prematurely return nil.
10751
10752 2004-05-19 Jim Blandy <jimb@redhat.com>
10753
10754 Add support for new '\_<' and '\_>' regexp operators, matching the
10755 beginning and end of symbols.
10756
10757 * regex.c (enum syntaxcode): Add Ssymbol.
10758 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
10759 (re_opcode_t): New opcodes `symbeg' and `symend'.
10760 (print_partial_compiled_pattern): Print the new opcodes properly.
10761 (regex_compile): Parse the new operators.
10762 (analyse_first): Skip sym(beg|end) (they match only the empty string).
10763 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
10764 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
10765 (re_match_2_internal): Match symbeg and symend.
10766
10767 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
10768
10769 2004-05-19 Kim F. Storm <storm@cua.dk>
10770
10771 * .gdbinit (xsymbol): Fix last change.
10772
10773 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
10774
10775 * .gdbinit (xprintstr): New fun.
10776 (xstring, xprintsym): Use it.
10777
10778 * w32proc.c (create_child): Use INTMASK.
10779
10780 * alloc.c (Fgarbage_collect): Do all the marking before flushing
10781 unmarked elements of the undo list.
10782
10783 2004-05-18 David Ponce <david@dponce.com>
10784
10785 * print.c (print): Reset print_depth before to call print_object.
10786
10787 2004-05-18 Jason Rumney <jasonr@gnu.org>
10788
10789 * w32console.c: Prefix RIF functions with w32con_ to avoid
10790 namespace clash with functions in term.c and w32term.c.
10791
10792 * w32menu.c (add_menu_item, w32_menu_display_help)
10793 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
10794
10795 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
10796
10797 2004-05-18 Eli Zaretskii <eliz@gnu.org>
10798
10799 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
10800
10801 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
10802 with make_number.
10803 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
10804 with XINT.
10805
10806 2004-05-18 Kim F. Storm <storm@cua.dk>
10807
10808 * blockinput.h (INPUT_BLOCKED_P): New macros.
10809
10810 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
10811 (Ftop_level): Unblock input if blocked.
10812
10813 * buffer.h (GET_OVERLAYS_AT): New macro.
10814 * msdos.c (IT_note_mouse_highlight): Use it.
10815 * textprop.c (get_char_property_and_overlay): Use it.
10816 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
10817 * xfaces.c (face_at_buffer_position): Use it.
10818
10819 * print.c (print_object): Increase buf size.
10820
10821 2004-05-17 Jason Rumney <jasonr@gnu.org>
10822
10823 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
10824 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
10825 Lisp_Object using i member.
10826 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
10827 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
10828 consistently.
10829
10830 * w32proc.c (create_child): Use make_number instead of masking pid.
10831
10832 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
10833 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
10834 Use EQ to compare Lisp_Objects.
10835 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
10836
10837 * w32term.c (w32_num_mouse_buttons): Rename from
10838 Vw32_num_mouse_buttons and make it an int.
10839
10840 * w32.c (init_environment): Use it.
10841
10842 * w32fns.c (w32_wnd_proc): Likewise.
10843
10844 * w32proc.c (w32_pipe_read_delay): Rename from
10845 Vw32_pipe_read_delay and make it an int.
10846
10847 * w32.c (_sys_read_ahead): Use it.
10848
10849 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
10850
10851 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
10852
10853 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
10854 (key_event): Don't mix Lisp_Object and int.
10855
10856 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
10857
10858 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
10859 modifiers in language change event.
10860
10861 2004-05-17 Kim F. Storm <storm@cua.dk>
10862
10863 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
10864 Such objects may be freed markers which still exist on an undo list.
10865
10866 2004-05-16 Juanma Barranquero <lektu@terra.es>
10867
10868 * data.c (Fset_default): Make argument names match their use in
10869 docstring.
10870
10871 2004-05-15 Andreas Schwab <schwab@suse.de>
10872
10873 * emacs.c (gdb_array_mark_flag): Define.
10874 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
10875
10876 2004-05-15 Eli Zaretskii <eliz@gnu.org>
10877
10878 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
10879 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
10880 defined for the MS-DOS build.
10881
10882 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
10883
10884 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
10885
10886 2004-05-14 Kenichi Handa <handa@m17n.org>
10887
10888 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
10889
10890 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10891
10892 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
10893 section to frame.c section.
10894 (Fxw_display_color_p, Fx_file_dialog): Declare if
10895 HAVE_WINDOW_SYSTEM defined.
10896
10897 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
10898
10899 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
10900
10901 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
10902 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
10903 (XTread_socket): Fix int/Lisp_Object mixup.
10904 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
10905
10906 * macterm.h (struct frame, struct face, struct image)
10907 (display_x_get_resource, Fx_display_color_p)
10908 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
10909 Add prototypes.
10910
10911 2004-05-14 Kim F. Storm <storm@cua.dk>
10912
10913 * process.c (wait_reading_process_input): Make reentrant.
10914 Make Available and Connecting non-static. Save and restore value
10915 of waiting_for_user_input_p.
10916
10917 2004-05-13 Kim F. Storm <storm@cua.dk>
10918
10919 * keyboard.c (mark_kboards): Don't mark x and y members
10920 that are overloaded in selection request events.
10921
10922 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10923
10924 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
10925
10926 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
10927
10928 * window.c (Fdisplay_buffer, Fsplit_window)
10929 (split-height-threshold): Doc fix.
10930
10931 2004-05-13 Juanma Barranquero <lektu@terra.es>
10932
10933 * xfaces.c (Ftty_supports_face_attributes_p)
10934 (Finternal_copy_lisp_face): Fix typo in docstring.
10935 (Finternal_get_lisp_face_attribute): Fix docstring.
10936
10937 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10938
10939 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
10940
10941 2004-05-11 Steven Tamm <steventamm@mac.com>
10942
10943 * macfns.c (Fx_create_frame): Default to using tool-bar by
10944 setting tool-bar-lines to 1 in default-frame-alist.
10945
10946 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10947
10948 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
10949 (xpm_get_color_table_v, xpm_make_color_table_h)
10950 (xpm_put_color_table_h, xpm_get_color_table_h)
10951 (xpm_str_to_color_key, xpm_load_image, xpm_load)
10952 (syms_of_image): Support XPM on Carbon Emacs. Does not
10953 depend on libXpm, but only supports XPM version 3 without extensions.
10954
10955 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10956
10957 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
10958 instead of FRAME_X_P
10959
10960 2004-05-11 Kim F. Storm <storm@cua.dk>
10961
10962 * process.c (read_process_output): Grow decoding_buf when needed;
10963 this could cause a crash in allocate_string and compact_small_strings.
10964
10965 2004-04-29 Jim Blandy <jimb@redhat.com>
10966
10967 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
10968 against proper opcode.
10969
10970 2004-05-10 Juanma Barranquero <lektu@terra.es>
10971
10972 * process.c (Fstart_process): Fix docstring.
10973
10974 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
10975 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
10976 (Fsplit_char, Fchar_charset): Make argument names match their use
10977 in docstring.
10978
10979 2004-05-10 Richard M. Stallman <rms@gnu.org>
10980
10981 * print.c (print_preprocess): Use being_printed, loop_count and
10982 halftail to detect overdeep nesting and cyclic cdr chains.
10983
10984 2004-05-10 Andreas Schwab <schwab@suse.de>
10985
10986 * lisp.h (Fmake_symbolic_link): Declare.
10987
10988 * fileio.c (Frename_file): Remove extra argument in call to
10989 Fmake_symbolic_link.
10990
10991 2004-05-10 Kim F. Storm <storm@cua.dk>
10992
10993 * xdisp.c (calc_line_height_property): Use string position when
10994 object is a string.
10995
10996 2004-05-10 Kenichi Handa <handa@m17n.org>
10997
10998 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
10999 inhibit-modification-hooks to t temporarily before calling
11000 Ferase_buffer.
11001
11002 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
11003 inhibit-modification-hooks to t temporarily before calling
11004 Ferase_buffer.
11005
11006 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
11007 inhibit-modification-hooks to t temporarily before calling
11008 Ferase_buffer.
11009
11010 * fns.c (count_combining): Delete it.
11011 (concat): Don't check combining bytes.
11012
11013 2004-05-09 Jason Rumney <jasonr@gnu.org>
11014
11015 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
11016 (globals_of_w32fns): Set it.
11017
11018 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
11019
11020 * data.c (Fquo): Simplify.
11021
11022 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
11023
11024 * data.c (Fquo): If any argument is float, do the computation in
11025 floating point.
11026
11027 2004-05-08 Juanma Barranquero <lektu@terra.es>
11028
11029 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
11030 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
11031 Fix spelling of Emacs on docstring.
11032 (Fset_process_coding_system, Fprocess_coding_system)
11033 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
11034 Make argument names match their use in docstring.
11035 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
11036 Fix docstring.
11037
11038 * editfns.c (Finsert_buffer_substring): Make argument names match their
11039 use in docstring.
11040
11041 * syntax.c (Fmodify_syntax_entry): Fix docstring.
11042
11043 2004-05-07 Steven Tamm <steventamm@mac.com>
11044
11045 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
11046 around call to ReceiveEvent to avoid certain crashes.
11047
11048 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11049
11050 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
11051 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
11052 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
11053 Save/restore the current graphics port and device handle when
11054 drawing into an offscreen graphics world.
11055
11056 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
11057 (gif_load): Likewise.
11058
11059 2004-05-07 Juanma Barranquero <lektu@terra.es>
11060
11061 * window.c (Fset_window_buffer): Fix docstring.
11062
11063 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
11064
11065 * emacs.c (main) [VMS]: Fix var ref.
11066
11067 2004-05-06 Romain Francoise <romain@orebokech.com>
11068
11069 * data.c (Fsetq_default): Fix docstring.
11070
11071 2004-05-06 Jason Rumney <jasonr@gnu.org>
11072
11073 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
11074 to avoid name clash.
11075
11076 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11077
11078 * fileio.c (barf_or_query_if_file_exists): Use lstat.
11079 (Frename_file): Handle renaming of symlinks across file systems.
11080 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
11081
11082 2004-05-04 Kim F. Storm <storm@cua.dk>
11083
11084 * xdisp.c (Qtotal): New var.
11085 (syms_of_xdisp): Intern and staticpro it.
11086 (calc_line_height_property): New arg total. Set it if
11087 line-spacing property has format (total . VALUE).
11088 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
11089 Handle total line-spacing property.
11090
11091 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11092
11093 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
11094 "under" scroll bar when size/position changes.
11095
11096 2004-05-03 Jason Rumney <jasonr@gnu.org>
11097
11098 * makefile.nt: Remove.
11099
11100 2004-05-02 Eli Zaretskii <eliz@gnu.org>
11101
11102 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
11103 Avoid compiler warnings.
11104
11105 * Makefile.in (region-cache.o): Depend on config.h.
11106
11107 2004-05-02 Romain Francoise <romain@orebokech.com>
11108
11109 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
11110 with continuation lines, too.
11111
11112 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
11113
11114 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
11115
11116 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
11117
11118 * xdisp.c (calc_line_height_property): YAILOM (yet another
11119 int/Lisp_Object mixup).
11120
11121 2004-05-01 Eli Zaretskii <eliz@gnu.org>
11122
11123 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
11124 undo bad effect of pack(4) in some versions of system headers.
11125
11126 2004-05-01 Jason Rumney <jasonr@gnu.org>
11127
11128 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
11129
11130 2004-04-30 Kim F. Storm <storm@cua.dk>
11131
11132 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
11133 (syms_of_buffer) <cursor-type>: Doc fix.
11134
11135 * dispextern.h (struct it): Remove member use_default_face.
11136 Add members override_ascent, override_descent, override_boff.
11137
11138 * xdisp.c (init_iterator): Handle line-spacing float value.
11139 Initialize override_ascent member.
11140 (append_space_for_newline): Reset override_ascent.
11141 Remove use_default_face.
11142 (calc_line_height_property): New function to calculate value of
11143 line-height and line-spacing properties. Look at overlays, too.
11144 Set override_ascent, override_descent, override_boff members when
11145 using another face than the current face. Float values are now
11146 relative to the frame default font, by default; accept a cons
11147 of ratio and face name to specify value relative to a specific face.
11148 (x_produce_glyphs): Use calc_line_height_property.
11149 Use override_ascent etc. when set to handle different face heights.
11150 A negative line-spacing property value is interpreted as a total
11151 line height, rather than inter-line spacing.
11152 (note_mouse_highlight): Allocate room for 40 overlays initially.
11153
11154 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
11155
11156 * data.c (Fsubr_name): New fun.
11157 (syms_of_data): Defsubr it.
11158
11159 2004-04-29 Kim F. Storm <storm@cua.dk>
11160
11161 * xdisp.c (null_glyph_slice): New var.
11162 (append_glyph, append_composite_glyph, append_stretch_glyph):
11163 Use it to initialize glyph slice.
11164
11165 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
11166
11167 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
11168 (on_hot_spot_p): Make sure we always return a value.
11169 (Flookup_image_map): Remove unused var ix and iy.
11170 (note_mode_line_or_margin_highlight): Remove unused var `image'.
11171
11172 2004-04-27 Eli Zaretskii <eliz@gnu.org>
11173
11174 * msdos.c (init_environment): If one of the TMP... environment
11175 variables is set to a drive letter without a trailing slash,
11176 append a slash.
11177
11178 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
11179
11180 * editfns.c (lisp_time_argument): Provide externally.
11181
11182 * fileio.c (Fset_file_times): New function.
11183 (syms_of_fileio): Intern and staticpro it.
11184
11185 2004-04-27 Kim F. Storm <storm@cua.dk>
11186
11187 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
11188 header line strings.
11189
11190 * dispextern.h (struct it): New member use_default_face.
11191
11192 * xdisp.c (Qline_height): New variable.
11193 (syms_of_xdisp): Intern and staticpro it.
11194 (append_space_for_newline): Partially undo 2004-04-25 change;
11195 add default_face_p arg, and restore callers.
11196 Clear it->use_default_face after use.
11197 (x_produce_glyphs): Set default font for ascii char if
11198 it->use_default_font is set. Change line-spacing property to set
11199 just extra line spacing. Handle new line-height property.
11200
11201 2004-04-26 Andreas Schwab <schwab@suse.de>
11202
11203 * print.c (print_object): Print non-ascii characters in bool
11204 vector representation as octal escapes.
11205
11206 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
11207 * print.c (print_object): Use it instead of BITS_PER_CHAR for
11208 bool vectors.
11209 * lread.c (read1): Likewise.
11210 * alloc.c (Fmake_bool_vector): Likewise.
11211 * data.c (Faref, Faset): Likewise.
11212 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
11213 (mapcar1): Likewise.
11214
11215 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
11216
11217 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
11218
11219 2004-04-26 Miles Bader <miles@gnu.org>
11220
11221 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
11222
11223 2004-04-26 Juanma Barranquero <lektu@terra.es>
11224
11225 * buffer.c (Fpop_to_buffer): Fix docstring.
11226
11227 2004-04-26 Steven Tamm <steventamm@mac.com>
11228
11229 * lread.c (init_lread): Don't display missing lisp directory
11230 warnings with Carbon Emacs because self-contained bundled Emacs
11231 may be built without correct installation path.
11232
11233 2004-04-25 Kim F. Storm <storm@cua.dk>
11234
11235 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
11236
11237 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
11238
11239 * xdisp.c (append_space_for_newline): Rename from append_space.
11240 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
11241 (x_produce_glyphs): Handle line-spacing property on newline char.
11242 If value is t, adjust ascent and descent to fit current row height.
11243 If value is an integer or float, set extra_line_spacing to integer
11244 value, or to float value x current line height.
11245
11246 2004-04-23 Kenichi Handa <handa@m17n.org>
11247
11248 * fontset.c (Finternal_char_font): If POSITION is nil, return
11249 font for displaying CH with the default face.
11250
11251 2004-04-23 Juanma Barranquero <lektu@terra.es>
11252
11253 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
11254
11255 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11256
11257 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
11258 Don't make assumptions about the relative place of i and val.
11259 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
11260
11261 2004-04-21 Kim F. Storm <storm@cua.dk>
11262
11263 * dispextern.h (struct glyph_slice): New struct.
11264 (struct glyph): New member slice.
11265 (GLYPH_SLICE_EQUAL_P): New macro.
11266 (GLYPH_EQUAL_P): Use it.
11267 (struct glyph_string): New member slice.
11268 (struct it_slice): New struct.
11269 (struct it): New member slice, add member to stack too.
11270 New member constrain_row_ascent_descent_p.
11271 (image_ascent): Add prototype.
11272
11273 * dispnew.c (buffer_posn_from_coords): Return full image width
11274 and height even for image slices (posn is relative to full image).
11275 (marginal_area_string): Adjust x0,y0 for image slice.
11276
11277 * image.c (image_ascent): Add slice arg; calculate ascent for
11278 image slice (or full image).
11279
11280 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
11281 (syms_of_keyboard): Defsubr them.
11282
11283 * lisp.h (pos_visible_p): Fix prototype.
11284
11285 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
11286 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
11287 (x_draw_image_foreground, x_draw_image_relief)
11288 (x_draw_image_foreground_1, x_draw_image_glyph_string):
11289 Draw sliced images.
11290
11291 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
11292 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
11293 (x_draw_image_foreground, x_draw_image_relief)
11294 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
11295 Draw sliced images.
11296
11297 * w32term.h (image_ascent): Remove prototype.
11298
11299 * window.c (Fpos_visible_in_window_p): Return pixel position if
11300 PARTIALLY arg is non-nil. Simplify. Doc fix.
11301 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
11302 to return/set vscroll in pixels.
11303
11304 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
11305
11306 * xdisp.c (Qslice): New variable.
11307 (syms_of_xdisp): Intern and staticpro it.
11308 (pos_visible_p): Return pixel position in new x and y args.
11309 (init_iterator): Reset it->slice info.
11310 (handle_display_prop): Parse (slice ...) property.
11311 (push_it, pop_it): Save/restore slice info.
11312 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
11313 force repositioning of tall row if window is vscrolled, as that
11314 would reset vscroll.
11315 (append_space): Set it->constrain_row_ascent_descent_p to avoid
11316 increasing row height if row is non-empty.
11317 (fill_image_glyph_string): Copy slice info.
11318 (take_vertical_position_into_account): Simplify.
11319 (produce_image_glyph): Handle iterator slice info, setup glyph
11320 slice info. Do not force minimum line height.
11321 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
11322 do not increase height (ascent/descent) of non-empty row when
11323 adding normal character glyph; instead reduce glyph ascent/descent
11324 appropriately; if row is higher than current glyph, adjust glyph
11325 descent/ascent to reposition glyph within the existing row.
11326 Likewise, when char is newline, only set ascent/descent if row is
11327 currently empty.
11328 (note_mouse_highlight): Handle hotspots with sliced image.
11329
11330 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
11331 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
11332 (x_draw_image_foreground, x_draw_image_relief)
11333 (x_draw_image_foreground_1, x_draw_image_glyph_string):
11334 Draw sliced images.
11335
11336 * xterm.h (image_ascent): Remove prototype.
11337
11338 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
11339
11340 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
11341
11342 2004-04-20 John Paul Wallington <jpw@gnu.org>
11343
11344 * fns.c (Fassoc, Feql): Fix indentation.
11345
11346 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
11347
11348 2004-04-19 John Paul Wallington <jpw@gnu.org>
11349
11350 * fns.c (Feql): New function.
11351 (syms_of_fns): Defsubr it.
11352
11353 2004-04-18 Jason Rumney <jasonr@gnu.org>
11354
11355 * w32select.c (Fw32_set_clipboard_data): Get sequence number
11356 after closing the clipboard.
11357
11358 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
11359
11360 * buffer.c (Fbuffer_base_buffer): Doc fix.
11361
11362 2004-04-17 Kim F. Storm <storm@cua.dk>
11363
11364 * keymap.c (Fkey_description): Add optional PREFIX arg.
11365 Combine prefix with KEYS to make up the full key sequence to describe.
11366 Correlate meta_prefix_char and following (simple) key to describe
11367 as meta modifier. All callers changed.
11368 (describe_map): Rename arg `keys' to `prefix'. Remove local
11369 `elt_prefix' var. Use Fkey_description with prefix instead of
11370 elt_prefix combined with Fsingle_key_description.
11371 (describe_vector): Declare static. Replace arg `elt_prefix' with
11372 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
11373 if !KEYMAP_P. Use Fkey_description with prefix instead of
11374 Fsingle_key_description.
11375
11376 * keymap.h (Fkey_description): Fix prototype.
11377 (describe_vector): Remove prototype.
11378
11379 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
11380
11381 * image.c (PNG_BG_COLOR_SHIFT): Remove.
11382 (png_load): Fix calculation of transparent background color on X
11383 and W32 platforms.
11384
11385 2004-04-16 Juanma Barranquero <lektu@terra.es>
11386
11387 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
11388 not too large before computing how much to scroll.
11389
11390 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
11391
11392 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
11393
11394 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
11395
11396 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
11397 Add hyperlink to Elisp manual to the docstring.
11398
11399 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
11400
11401 * callint.c (fix_command): Use XDCR.
11402
11403 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
11404
11405 * window.c (Fget_lru_window): Doc fix.
11406
11407 2004-04-14 Kim F. Storm <storm@cua.dk>
11408
11409 * editfns.c (Fformat): Fix allocation size of precision array.
11410
11411 * dispnew.c (update_window): Only set changed_p if
11412 scrolling_window actually did scroll.
11413 (scrolling_window): Only return 1 if we actually did scroll.
11414
11415 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
11416 height to glyph height when cursor row is not fully visible.
11417 (make_cursor_line_fully_visible): Add FORCE_P arg to return
11418 failure in case row is higher than window. Callers changed.
11419 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
11420 Try to scroll partially visible, higher-than-window cursor row.
11421 (redisplay_window): Always try to scroll partially visible,
11422 higher-than-window cursor row - both initially and again with
11423 centering_position = 0.
11424 Clear desired matrix before retrying with centering_position = 0.
11425
11426 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
11427
11428 * syntax.c (scan_lists): Simplify backward string scan.
11429 Fix off-by-one boundary check for string and comment fences.
11430
11431 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
11432
11433 * sheap.c, unexcw.c: New files.
11434
11435 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
11436
11437 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
11438 base buffer has been killed. Correct the error message if the
11439 base buffer does not exist.
11440
11441 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
11442
11443 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
11444 Cygwin itself. Add support for Xaw3d scrollbars.
11445
11446 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
11447
11448 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
11449
11450 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
11451 before Cygwin unexec.
11452
11453 * Makefile.in: Link changes for Cygwin unexec() support.
11454
11455 2004-04-12 Andreas Schwab <schwab@suse.de>
11456
11457 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
11458
11459 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
11460
11461 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
11462 IGNORE argument equals NAME. Doc fix.
11463
11464 2004-04-11 Masatake YAMATO <jet@gyve.org>
11465
11466 * buffer.c (fix_start_end_in_overlays): Make overlays
11467 empty if they are backwards.
11468
11469 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11470
11471 * xfaces.c (face_color_supported_p): Fix compilation without X11.
11472
11473 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
11474
11475 * doc.c (Fsnarf_documentation): Ignore new file name entries.
11476
11477 2004-04-06 Kim F. Storm <storm@cua.dk>
11478
11479 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
11480 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
11481
11482 * w32term.c (w32_read_socket): Set mouse_face_hidden after
11483 clearing highlight.
11484
11485 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
11486
11487 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
11488 clearing highlight.
11489
11490 * indent.c (vmotion): Do not reserve one column for continuation
11491 marks on window frames.
11492
11493 2004-04-04 Eli Zaretskii <eliz@gnu.org>
11494
11495 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
11496 from GCC.
11497
11498 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11499
11500 * .gdbinit-union: Remove.
11501
11502 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
11503 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
11504 ($nonvalbits): Remove.
11505 ($valmask): Set it by calling xreload to avoid redundancy.
11506
11507 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
11508 (gdb_emacs_intbits): Remove.
11509
11510 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11511
11512 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
11513
11514 2004-03-30 Kenichi Handa <handa@m17n.org>
11515
11516 * editfns.c (Fformat): Fix initialization of the array info.
11517
11518 2004-03-30 Kim F. Storm <storm@cua.dk>
11519
11520 * xterm.c (x_mouse_click_focus_ignore_position): New var.
11521 (syms_of_xterm): DEFVAR_BOOL it.
11522 (ignore_next_mouse_click_timeout): New var.
11523 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
11524 Use it to filter mouse clicks following focus event.
11525
11526 2004-03-29 David Ponce <david@dponce.com>
11527
11528 * callint.c (Fcall_interactively): Fix last change.
11529
11530 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
11531
11532 * eval.c (Fcommandp): Simplify.
11533
11534 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
11535 Extend to handle all kinds of functions.
11536
11537 * lisp.h (Finteractive_form): Declare.
11538
11539 * callint.c (Fcall_interactively): Use it.
11540
11541 2004-03-26 Kim F. Storm <storm@cua.dk>
11542
11543 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
11544 to catch errors in calc_pixel_width_or_height during redisplay.
11545
11546 2004-03-26 Masatake YAMATO <jet@gyve.org>
11547
11548 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
11549
11550 * lisp.h (fix_start_end_in_overlays): Likewise.
11551
11552 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
11553
11554 * editfns.c (Ftranspose_regions): Likewise.
11555
11556 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11557
11558 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
11559
11560 2004-03-19 Richard M. Stallman <rms@gnu.org>
11561
11562 * s/sol2-6.h: Delete previous change.
11563
11564 2004-03-19 Kim F. Storm <storm@cua.dk>
11565
11566 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
11567 to_charpos corresponds to newline in right fringe. Use local
11568 BUFFER_POS_REACHED_P macro.
11569
11570 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11571
11572 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
11573 to compile on non-window system.
11574
11575 2004-03-19 Kim F. Storm <storm@cua.dk>
11576
11577 * dispextern.h (calc_pixel_width_or_height): Add prototype.
11578
11579 * image.c (Qcenter): Move to xdisp.c.
11580
11581 * xdisp.c (Qcenter): Declare here.
11582 (syms_of_xdisp): Intern and staticpro it.
11583 (handle_single_display_prop): Allow space display property on all
11584 platforms.
11585 (display_mode_line): Set mode_line_p before displaying line.
11586 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
11587 handling. Remove complex cases for fringes and scroll-bars.
11588 Add left, right, and center alignment positions. Add text (area)
11589 width/height. Return width or height for image specs.
11590 (produce_stretch_glyph): Improve handling of :align-to. Is now
11591 relative to left of text area by default, but other base offsets
11592 can be specified -- also for text lines.
11593
11594 * term.c (produce_glyphs): Handle IT_STRETCH.
11595 (produce_stretch_glyph): New function to handle space width and
11596 align-to display properties on non-window systems.
11597
11598 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11599
11600 * fileio.c (Fread_file_name): Set completion-ignore-case for
11601 case-insensitive systems.
11602
11603 2004-03-14 Masatake YAMATO <jet@gyve.org>
11604
11605 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
11606 when keymap and cursor are setup.
11607
11608 2004-03-14 Steven Tamm <steventamm@mac.com>
11609
11610 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
11611
11612 2004-03-14 Kim F. Storm <storm@cua.dk>
11613
11614 * dispextern.h (x_find_image_file): Add prototype.
11615
11616 * image.c (x_find_image_file): Make extern.
11617
11618 * xfns.c (x_find_image_file): Remove prototype.
11619
11620 2004-03-13 Eli Zaretskii <eliz@gnu.org>
11621
11622 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
11623
11624 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
11625
11626 2004-03-12 Richard M. Stallman <rms@gnu.org>
11627
11628 * fns.c (internal_equal): New arg PROPS controls comparing
11629 text properties. All callers changed.
11630 (Fequal_including_properties): New function.
11631 (syms_of_fns): defsubr it.
11632
11633 2004-03-12 Kim F. Storm <storm@cua.dk>
11634
11635 Fix image support on MAC. From YAMAMOTO Mitsuharu.
11636
11637 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
11638 (image_background, image_background_transparent): Fix prototypes.
11639
11640 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
11641
11642 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
11643 (x_query_font, x_find_ccl_program, x_set_window_size)
11644 (x_make_frame_visible, mac_initialize, XCreatePixmap)
11645 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
11646 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
11647
11648 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
11649 (x_query_font, x_find_ccl_program, x_set_window_size)
11650 (x_make_frame_visible, mac_initialize, XCreatePixmap)
11651 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
11652 (mac_draw_line_to_pixmap): Add prototypes.
11653
11654 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11655
11656 * macterm.c (XTread_socket): Fix mouse click on tool bar.
11657
11658 2004-03-11 Kim F. Storm <storm@cua.dk>
11659
11660 * dispextern.h: Move image related prototypes from xfns.c section
11661 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
11662 HAVE_X_WINDOWS.
11663
11664 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
11665 Move gtkutil.o to new GTK_OBJ list.
11666 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
11667 (GTK_OBJ) [USE_GTK]: New declaration.
11668 (obj): Add $(GTK_OBJ) to list.
11669
11670 2004-03-11 Steven Tamm <steventamm@mac.com>
11671
11672 * image.c [MAC_OSX]: Include sys/stat.h.
11673
11674 * macfns.c (syms_of_macfns): Remove definitions of things now
11675 defined in image.c.
11676
11677 2004-03-11 Kim F. Storm <storm@cua.dk>
11678
11679 The following changes consolidates the identical/similar image
11680 support code previously found in xfns.c, w32fns.c, and macfns.c
11681 into a new file image.c.
11682
11683 * makefile.w32-in (OBJ1): Add image.o.
11684 ($(BLD)/image.$(O)): Add dependencies.
11685
11686 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
11687 (image.o): Add dependencies.
11688
11689 * image.c: New file with consolidated image support code.
11690 (COLOR_TABLE_SUPPORT): New define to control whether
11691 color table support is available (X only).
11692 (Bitmap_Record): Common name for x_bitmap_record,
11693 w32_bitmap_record, and mac_bitmap_record.
11694 (XImagePtr): Common name for pointer to XImage or equivalent.
11695 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
11696 to XImagePtr on X+MAC, and to HDC on W32.
11697 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
11698 (NO_PIXMAP): Common name for "None" or equivalent.
11699 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
11700 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
11701 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
11702 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
11703 Define with suitable equivalents on W32 and MAC for code sharing.
11704 (XDrawLine): Define on MAC for code sharing.
11705 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
11706 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
11707 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
11708 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11709 (x_reference_bitmap, x_create_bitmap_from_data)
11710 (x_create_bitmap_from_file, x_destroy_bitmap)
11711 (x_destroy_all_bitmaps, x_create_bitmap_mask)
11712 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11713 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
11714 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
11715 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
11716 (define_image_type, lookup_image_type, valid_image_p)
11717 (image_error, enum image_value_type, struct image_keyword)
11718 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
11719 (make_image, free_image, prepare_image_for_display, image_ascent)
11720 (four_corners_best, image_background, image_background_transparent)
11721 (x_clear_image_1, x_clear_image, x_alloc_image_color)
11722 (make_image_cache, free_image_cache, clear_image_cache)
11723 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
11724 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
11725 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
11726 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
11727 (init_image_func_pointer, image_load_quartz2d)
11728 (struct ct_color, init_color_table, free_color_table)
11729 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
11730 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
11731 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
11732 (x_disable_image, x_build_heuristic_mask)
11733 (XBM support, XPM support, PBM support, PNG support, JPEG support)
11734 (TIFF support, GIF support, Ghostscript support): Consolidate image
11735 code from xfns.c, w32fns.c, and macfns.c.
11736 (syms_of_image): Consolidate image related symbol setup here.
11737 (init_image): Consolidate image related initializations here.
11738
11739 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
11740 and init_image. Remove call to init_xfns.
11741
11742 * macterm.h (struct mac_bitmap_record): Add file member.
11743 Not currently used, but simplifies code sharing.
11744
11745 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
11746 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11747 (x_reference_bitmap, x_create_bitmap_from_data)
11748 (x_create_bitmap_from_file, x_destroy_bitmap)
11749 (x_destroy_all_bitmaps, x_create_bitmap_mask)
11750 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11751 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
11752 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
11753 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
11754 (define_image_type, lookup_image_type, valid_image_p)
11755 (image_error, enum image_value_type, struct image_keyword)
11756 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
11757 (make_image, free_image, prepare_image_for_display, image_ascent)
11758 (four_corners_best, image_background, image_background_transparent)
11759 (x_clear_image_1, x_clear_image, x_alloc_image_color)
11760 (make_image_cache, free_image_cache, clear_image_cache)
11761 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
11762 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
11763 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
11764 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
11765 (init_image_func_pointer, image_load_quartz2d)
11766 (struct ct_color, init_color_table, free_color_table)
11767 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
11768 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
11769 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
11770 (x_disable_image, x_build_heuristic_mask)
11771 (XBM support, XPM support, PBM support, PNG support, JPEG support)
11772 (TIFF support, GIF support, Ghostscript support): Merge with image
11773 code from xfns.c and macfns.c into image.c.
11774 (syms_of_xfns): Move image related symbols to image.c.
11775 (init_external_image_libraries, init_xfns): Remove; initialization
11776 moved to init_image in image.c.
11777
11778 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
11779 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11780 (x_reference_bitmap, x_create_bitmap_from_data)
11781 (x_create_bitmap_from_file, x_destroy_bitmap)
11782 (x_destroy_all_bitmaps, x_create_bitmap_mask)
11783 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
11784 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
11785 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
11786 (define_image_type, lookup_image_type, valid_image_p)
11787 (image_error, enum image_value_type, struct image_keyword)
11788 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
11789 (make_image, free_image, prepare_image_for_display, image_ascent)
11790 (four_corners_best, image_background, image_background_transparent)
11791 (x_clear_image_1, x_clear_image, x_alloc_image_color)
11792 (make_image_cache, free_image_cache, clear_image_cache)
11793 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
11794 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
11795 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
11796 (struct ct_color, init_color_table, free_color_table)
11797 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
11798 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
11799 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
11800 (x_disable_image, x_build_heuristic_mask)
11801 (XBM support, XPM support, PBM support, PNG support, JPEG support)
11802 (TIFF support, GIF support, Ghostscript support): Merge with image
11803 code from xfns.c and macfns.c into image.c.
11804 (syms_of_xfns): Move image related symbols to image.c.
11805 (init_external_image_libraries, init_xfns): Remove; initialization
11806 moved to init_image in image.c.
11807
11808 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
11809 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11810 (x_reference_bitmap, x_create_bitmap_from_data)
11811 (x_create_bitmap_from_file, x_destroy_bitmap)
11812 (x_destroy_all_bitmaps, x_create_bitmap_mask)
11813 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
11814 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
11815 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
11816 (define_image_type, lookup_image_type, valid_image_p)
11817 (image_error, enum image_value_type, struct image_keyword)
11818 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
11819 (make_image, free_image, prepare_image_for_display, image_ascent)
11820 (four_corners_best, image_background, image_background_transparent)
11821 (x_clear_image_1, x_clear_image, x_alloc_image_color)
11822 (make_image_cache, free_image_cache, clear_image_cache)
11823 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
11824 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
11825 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
11826 (struct ct_color, init_color_table, free_color_table)
11827 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
11828 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
11829 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
11830 (x_disable_image, x_build_heuristic_mask)
11831 (XBM support, XPM support, PBM support, PNG support, JPEG support)
11832 (TIFF support, GIF support, Ghostscript support): Merge with
11833 w32fns.c and macfns.c image code into image.c.
11834 (syms_of_xfns): Move image related symbols to image.c.
11835 (init_xfns): Remove; initialization moved to init_image in image.c.
11836
11837 * lisp.h (syms_of_image, init_image): Add protoypes.
11838 (init_xfns): Remove prototype.
11839
11840 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11841 (x_reference_bitmap, x_create_bitmap_from_data)
11842 (x_create_bitmap_from_file, x_destroy_bitmap)
11843 (x_create_bitmap_mask): Move prototypes from dispextern.h.
11844 (gamma_correct) [MAC_OS]: Add prototype.
11845
11846 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11847 (x_reference_bitmap, x_create_bitmap_from_data)
11848 (x_create_bitmap_from_file, x_destroy_bitmap)
11849 (x_create_bitmap_mask): Move prototypes to dispextern.h.
11850
11851 2004-03-09 Kenichi Handa <handa@etlken2>
11852
11853 * coding.c (decode_coding_emacs_mule): Handle insufficent source
11854 correctly.
11855
11856 2004-03-04 Richard M. Stallman <rms@gnu.org>
11857
11858 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
11859
11860 * window.c (Fdisplay_buffer): Doc fix.
11861
11862 * buffer.c (Fpop_to_buffer): Doc fix.
11863
11864 2004-03-03 Kim F. Storm <storm@cua.dk>
11865
11866 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
11867
11868 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
11869
11870 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
11871
11872 2004-03-02 Richard M. Stallman <rms@gnu.org>
11873
11874 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
11875
11876 2004-03-02 Kenichi Handa <handa@m17n.org>
11877
11878 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
11879
11880 2004-03-02 Kim F. Storm <storm@cua.dk>
11881
11882 * window.h (struct window): New member overlay_arrow_bitmap.
11883
11884 * window.c (make_window): Initialize overlay_arrow_bitmap.
11885
11886 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
11887 implement and integrate multiple overlay arrows with redisplay.
11888 (syms_of_xdisp): DEFVAR_LISP and initialize it.
11889 (last_arrow_position, last_arrow_string): Replace by properties.
11890 (Qlast_arrow_position, Qlast_arrow_string)
11891 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
11892 (syms_of_xdisp): Intern and staticpro them.
11893 (overlay_arrow_string_or_property, update_overlay_arrows)
11894 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
11895 (overlay_arrow_at_row): New functions for multiple overlay arrows.
11896 (redisplay_internal): Use them instead of directly accessing
11897 Voverlay_arrow_position etc. for multiple overlay arrows.
11898 (mark_window_display_accurate): Use update_overlay_arrows.
11899 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
11900 (try_window_id): Use overlay_arrows_changed_p.
11901 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
11902 (display_line): Use overlay_arrow_at_row to check multiple
11903 overlay arrows, and get relevant overlay-arrow-string and
11904 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
11905 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
11906 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
11907
11908 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
11909 (update_window_fringes): Remove unused code.
11910
11911 2004-03-01 Jason Rumney <jasonr@gnu.org>
11912
11913 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
11914
11915 2004-03-01 Juanma Barranquero <lektu@terra.es>
11916
11917 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
11918
11919 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
11920
11921 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11922
11923 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
11924 how many colors can be displayed.
11925
11926 2004-03-01 Kenichi Handa <handa@m17n.org>
11927
11928 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
11929 correctly.
11930
11931 2004-02-28 Kim F. Storm <storm@cua.dk>
11932
11933 * dispnew.c (update_window): Update header line also if there are
11934 no other changes in window (move code after set_cursor label).
11935
11936 * lisp.h (mark_window_display_accurate): Remove prototype.
11937
11938 * window.c (window_loop, Fforce_window_update): Force mode line
11939 updates by setting prevent_redisplay_optimizations_p and
11940 update_mode_lines.
11941
11942 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11943
11944 * xfns.c (x_window): Fix indentation.
11945
11946 * xterm.c (x_calc_absolute_position): Call x_real_positions
11947 to get WM window sizes and use those to calculate position.
11948 (x_set_offset): Remove code commented out.
11949
11950 2004-02-28 Miles Bader <miles@gnu.org>
11951
11952 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
11953
11954 2004-02-28 Kim F. Storm <storm@cua.dk>
11955
11956 * keyboard.c (kbd_buffer_store_event_hold): New function to store
11957 an event into kbd fifo, but with special handling of quit event;
11958 a quit event is saved for later, and further events are discarded
11959 until the saved quit event has been processed.
11960 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
11961 (gen_help_event): Store help event in kbd fifo.
11962 (NREAD_INPUT_EVENTS): Remove.
11963 (read_avail_input): Adapt to new read_socket_hook interface.
11964 Remove allocation and initialization of local input_event buffer,
11965 as read_socket_hook stores events directly in fifo. Allocate and
11966 initialize local hold_quit event to handle postponed quit event
11967 (and store it if set by kbd_buffer_store_event_hold).
11968
11969 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
11970 (gen_help_event): Fix prototype.
11971
11972 * macterm.c (XTread_socket): Remove bufp_r and
11973 numcharsp args. Add hold_quit arg.
11974 Rework to use just one, local, inev input_event. Store inev
11975 directly in fifo using kbd_buffer_store_event_hold.
11976
11977 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
11978 (read_input_waiting): Adapt to new read_socket_hook interface.
11979 Remove allocation and initialization of local input_event buffer,
11980 as read_socket_hook stores events directly in fifo. Allocate and
11981 initialize local hold_quit event to handle postponed quit event
11982 (and store it if set by kbd_buffer_store_event_hold).
11983
11984 * term.c (read_socket_hook): Fix arg list.
11985
11986 * termhooks.h (read_socket_hook): Fix prototype.
11987
11988 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
11989 numcharsp args. Add hold_quit arg.
11990 Rework to use just one, local, inev input_event. Store inev
11991 directly in fifo using kbd_buffer_store_event_hold.
11992
11993 * w32inevt.h (w32_console_mouse_position): Fix prototype.
11994
11995 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
11996 Add hold_quit arg. Rework to use just one, local, inev
11997 input_event. Store inev directly in fifo using
11998 kbd_buffer_store_event_hold. Update count in one place.
11999 Postpone call to gen_help_event until inev is stored; use new
12000 local do_help for this.
12001 Remove local emacs_event in handing of ButtonPress event; just use
12002 inev instead (so no reason to copy it later).
12003
12004 * xsmfns.c (x_session_check_input): Remove numchars arg.
12005
12006 * xterm.c (x_focus_changed, x_detect_focus_change):
12007 Remove numchars arg. Always store event into bufp arg.
12008 Return nothing. Callers changed accordingly.
12009 (glyph_rect): Simplify.
12010 (STORE_KEYSYM_FOR_DEBUG): New macro.
12011 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
12012 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
12013 (current_hold_quit) [USE_GTK]: Add.
12014 (event_handler_gdk): Adapt to new handle_one_xevent.
12015 (handle_one_xevent): Remove bufp_r and numcharsp args.
12016 Add hold_quit arg. Rework to use just one, local, inev
12017 input_event. Store inev directly in fifo using
12018 kbd_buffer_store_event_hold. Update count in one place.
12019 Postpone call to gen_help_event until inev is stored; use new
12020 local do_help for this.
12021 Simplify handling of keysyms (consolidate common code). Fix bug
12022 where count was updated with nchars instead of nbytes.
12023 Remove local emacs_event in handing of ButtonPress event; just use
12024 inev instead (so no reason to copy it later).
12025 Remove `out' label. Rename label `ret' to `done'; add various
12026 `goto done' to clarify code flow in deeply nested blocks.
12027 (x_dispatch_event): Simplify as handle_one_xevent now calls
12028 kbd_buffer_store_event itself.
12029 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
12030 arg. Call handle_one_xevent with new arglist. Store event from
12031 x_session_check_input in fifo.
12032 [USE_GTK]: Setup current_hold_quit.
12033 Decrement handling_signal before unblocking input.
12034 (x_initialize) [USE_GTK]: Initialize current_count.
12035
12036 * xterm.h (x_session_check_input): Fix prototype.
12037
12038 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12039
12040 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
12041
12042 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
12043 macgui.h).
12044
12045 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
12046
12047 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
12048 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
12049 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
12050 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
12051 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
12052 (Bitmap): Remove typedef.
12053 (Pixmap): Change int to GWorldPtr.
12054
12055 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
12056
12057 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
12058 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
12059 New #define to extract 16-bit depth color components from unsigned
12060 long representation.
12061 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
12062 colors used for masks.
12063 (struct mac_display_info): Add color_p. Remove n_cbits.
12064
12065 * macfns.c: Include sys/types.h and sys/stat.h.
12066 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
12067 Include QuickTime/QuickTime.h.
12068 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12069 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
12070 functions defined in macterm.c.
12071 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
12072 (ZPixmap): New #define for compatibility with xfns.c.
12073 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12074 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12075 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
12076 New functions.
12077 (four_corners_best, x_create_x_image_and_pixmap)
12078 (x_destroy_x_image, unwind_create_frame, x_disable_image)
12079 (x_edge_detection, init_color_table, colors_in_color_table)
12080 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
12081 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
12082 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
12083 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
12084 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
12085 long mixup.
12086 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
12087 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
12088 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
12089 (x_set_cursor_type, Fxw_color_values, valid_image_p)
12090 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
12091 (x_alloc_image_color, clear_image_cache, lookup_image)
12092 (x_find_image_file, xbm_read_bitmap_file_data)
12093 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
12094 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
12095 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
12096 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
12097 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
12098 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
12099 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
12100 #if 0.
12101 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
12102 #if 0. Free white_relief.gc and black_relief.gc.
12103 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
12104 New functions (from xfns.c).
12105 (Fx_create_frame): Record unwind_create_frame.
12106 (Fxw_display_color_p): Use dpyinfo->color_p.
12107 (Fx_display_grayscale_p, Fx_display_planes): Don't use
12108 dpyinfo->n_cbits.
12109 (Fx_display_color_cells): Use dpyinfo->n_planes;
12110 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
12111 (Qheuristic, cross_disabled_images, emboss_matrix)
12112 (laplace_matrix): New variables (from xfns.c).
12113 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
12114 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
12115 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
12116 (image_background_transparent): New function (from xfns.c).
12117 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
12118 (image_load_quicktime): Add declaration.
12119 [MAC_OSX] (image_load_quartz2d): Likewise.
12120 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
12121 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
12122 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
12123 (xbm_load_image_from_file, x_laplace_read_row)
12124 (x_laplace_write_row, pbm_read_file): Remove functions.
12125 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
12126 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
12127 (colors_in_color_table): Sync with xfns.c (although not used).
12128 (lookup_rgb_color): Don't lookup color table. Just do gamma
12129 correction.
12130 (COLOR_INTENSITY): New #define (from xfns.c).
12131 (x_disable_image): New function (from xfns.c).
12132 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
12133 (x_build_heuristic_mask): Sync with xfns.c.
12134 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
12135 (HAVE_PBM): Remove #ifdef.
12136 (pbm_load): Sync with xfns.c. Set img->width and img->height
12137 before IMAGE_BACKGROUND.
12138 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
12139 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
12140 Don't enclose with #if HAVE_PNG.
12141 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
12142 symbol _CGImageCreateWithPNGDataProvider is defined.
12143 Otherwise use image_load_quicktime.
12144 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
12145 [HAVE_PNG] (png_load): Sync with xfns.c.
12146 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
12147 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
12148 HAVE_JPEG.
12149 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
12150 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
12151 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
12152 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
12153 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
12154 (tiff_image_p, tiff_load): Don't enclose declarations with #if
12155 HAVE_TIFF.
12156 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
12157 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
12158 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
12159 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
12160 New functions (from xfns.c).
12161 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
12162 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
12163 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
12164 Don't enclose with #if HAVE_GIF.
12165 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
12166 animated gif. Otherwise use image_load_quicktime.
12167 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
12168 gif_DrawText to avoid conflict with QuickdrawText.h.
12169 [HAVE_GIF] (gif_load): Sync with xfns.c.
12170 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
12171 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
12172 Ghostscript is not supported yet).
12173 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
12174 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
12175 cross_disabled_images (from xfns.c). Remove #if 0 for supported
12176 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
12177 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
12178 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
12179 HAVE_PNG. Call EnterMovies to support animated gifs.
12180 Call init_image_func_pointer to bind a symbol
12181 _CGImageCreateWithPNGDataProvider if it is defined.
12182
12183 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
12184 (x_draw_bar_cursor): Sync declaration with xterm.c.
12185 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
12186 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
12187 graphics).
12188 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
12189 (mac_draw_line_to_pixmap, XCreatePixmap)
12190 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
12191 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
12192 New functions.
12193 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
12194 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
12195 Cast bits to char *.
12196 (reflect_byte): New function (from w32fns.c).
12197 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
12198 due to byte alignment.
12199 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
12200 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
12201 (XSetForeground): Remove static (now used in macfns.c).
12202 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
12203 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
12204 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
12205 (x_draw_glyph_string_box, x_draw_image_foreground)
12206 (x_draw_image_foreground_1, x_draw_image_glyph_string)
12207 (x_draw_stretch_glyph_string, x_draw_glyph_string)
12208 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
12209 Sync with xterm.c.
12210 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
12211 than the xterm.c version when a strictly horizontal or vertical
12212 line is drawn.
12213 (XTset_terminal_window): Add static.
12214 (x_make_frame_visible): Add UNBLOCK_INPUT.
12215 (x_free_frame_resources): New funcion (from xterm.c).
12216 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
12217 occurs in tool bar area.
12218 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
12219 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
12220 Initialize image cache.
12221 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
12222 Enclose unused functions with #if 0.
12223 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
12224 (decode_mac_font_name): New function to apply code conversions
12225 from a mac font name to an XLFD font name according to its script code.
12226 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
12227 font name to a mac font name according to REGISTRY and ENCODING fields.
12228 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
12229 whose name starts with `.'.
12230 (init_font_name_table): Use decode_mac_font_name. Add both
12231 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
12232 of a font is smJapanese.
12233 (mac_do_list_fonts): New function to list fonts that match a given
12234 pattern.
12235 (x_list_fonts, XLoadQueryFont): Use it.
12236 (XLoadQueryFont): Set rbearing field for each variable width
12237 character to avoid needless redraw.
12238 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
12239
12240 2004-02-26 Kim F. Storm <storm@cua.dk>
12241
12242 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
12243 as read_socket_hook handler on X aborts if buffer is too small
12244 and W32 handler doesn't always check buffer limit.
12245
12246 * xdisp.c (handle_single_display_prop): Handle left-fringe and
12247 right-fringe similar to a display margin image. Specifically,
12248 the characters having the fringe prop are no longer shown, and
12249 we use IT_IMAGE/next_element_from_image with image_id = -1 to
12250 do this. Set fringe bitmap face_id in it->face_id.
12251 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
12252 still realize it->face (i.e. the fringe bitmap face).
12253
12254 2004-02-25 Miles Bader <miles@gnu.org>
12255
12256 * xdisp.c (check_it): Check string/string_pos consistency.
12257 (init_iterator): Initialize string-related fields properly.
12258
12259 2004-02-11 Miles Bader <miles@gnu.org>
12260
12261 * xdisp.c (produce_image_glyph): Force negative descents to zero.
12262
12263 2004-02-10 Miles Bader <miles@gnu.org>
12264
12265 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
12266 BLOCK_INPUT can be nested, so it doesn't make much sense.
12267
12268 2004-02-24 Michael Mauger <mmaug@yahoo.com>
12269
12270 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
12271 (xbm_read_bitmap_data): Use unsigned char for image data.
12272
12273 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
12274
12275 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
12276
12277 2004-02-22 Jason Rumney <jasonr@gnu.org>
12278
12279 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
12280 correctly over other bitmaps.
12281
12282 2004-02-21 Eli Zaretskii <eliz@gnu.org>
12283
12284 * emacs.c (USAGE1): Split into two halves.
12285 (USAGE2): Second half of the old USAGE1.
12286 (USAGE3): Rename from USAGE2.
12287 (USAGE4): Rename from USAGE3.
12288
12289 2004-02-21 Juri Linkov <juri@jurta.org>
12290
12291 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
12292 Fix --multibyte. Move --help, --version to USAGE2. Add alias
12293 --file. Fix -f, -l. Sort options. Untabify.
12294 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
12295
12296 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
12297
12298 * category.c (Fdefine_category, Fcategory_docstring)
12299 (Fget_unused_category, Fset_category_table)
12300 (Fcategory_set_mnemonics): Doc fixes.
12301
12302 2004-02-20 Kim F. Storm <storm@cua.dk>
12303
12304 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
12305 The following changes are relative to the 2004-01-21 revision.
12306 (NREAD_INPUT_EVENTS): Define as max number of input events to read
12307 in one call to read_socket_hook. Value is 8.
12308 (read_avail_input): Separate and rework handling of read_socket_hook
12309 and non-read_socket_hook cases. Use smaller input_event buffer
12310 in read_socket_hook case, and repeat if full buffer is read.
12311 Use new local variable 'discard' to skip input after C-g.
12312 In non-read_socket_hook case, just use a single input_event, and
12313 call kbd_buffer_store_event on the fly for each character.
12314
12315 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12316
12317 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
12318 Remove unused `gu' alternative.
12319
12320 2004-02-19 Andreas Schwab <schwab@suse.de>
12321
12322 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
12323 warning.
12324
12325 2004-02-18 Kim F. Storm <storm@cua.dk>
12326
12327 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
12328 Fix last change.
12329
12330 2004-02-17 Kim F. Storm <storm@cua.dk>
12331
12332 * xdisp.c (fast_find_position): Fix return value of new version;
12333 it was inverted compared to the 21.1 version.
12334 (get_window_cursor_type): Don't look at glyph if NULL.
12335 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
12336
12337 * keyboard.c: Rework previous change; it didn't consider that the
12338 buf array was allocated on the stack.
12339 (prev_read): Remove variable.
12340 (read_avail_input_buf): New static event buffer array.
12341 (in_read_avail_input): New static variable to handle re-entrancy.
12342 (read_avail_input): Change buf to pinter to read_avail_input_buf.
12343 Use in_read_avail_input to handle re-entrance; when re-entered,
12344 fully initialize and use tmp_buf array instead of read_avail_input_buf.
12345 Do not initialize read_avail_input_buf in full here; instead assume it
12346 is always cleared on entry. To ensure that, we clear (just) the
12347 entries that were used before we return.
12348 (init_keyboard): Initialize read_avail_input_buf here.
12349
12350 2004-02-16 Jesper Harder <harder@ifa.au.dk>
12351
12352 * cmds.c (Fend_of_line): Doc fix.
12353
12354 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
12355
12356 * keyboard.c (prev_read): New static variable.
12357 (read_avail_input): Use it to zero out only those slots in buf[]
12358 that were used last time we were called.
12359
12360 2004-02-16 Eli Zaretskii <eliz@gnu.org>
12361
12362 * Makefile.in (obj): Move fringe.o from here...
12363 (XOBJ, MAC_OBJ): ...to here.
12364
12365 2004-02-16 Stephen Eglen <stephen@gnu.org>
12366
12367 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
12368
12369 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
12370
12371 * data.c (Fbyteorder):
12372 * fringe.c (Fdefine_fringe_bitmap):
12373 * xdisp.c (handle_single_display_prop):
12374 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
12375
12376 2004-02-16 Jason Rumney <jasonr@gnu.org>
12377
12378 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
12379
12380 2004-02-15 Steven Tamm <steventamm@mac.com>
12381
12382 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
12383 controlling emulation of a three button mouse with option and
12384 command keys.
12385 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
12386 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
12387
12388 2004-02-15 Kim F. Storm <storm@cua.dk>
12389
12390 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
12391
12392 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
12393 Perform byte-swapping.
12394
12395 2004-02-14 Kim F. Storm <storm@cua.dk>
12396
12397 * dispextern.h (struct draw_fringe_bitmap_params): Change member
12398 bits from char to short to facilitate wider bitmaps.
12399 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
12400 member.
12401
12402 * fringe.c (struct fringe_bitmap): Change member bits from char to
12403 short to facilitate 16 bits wide bitmaps. Modify all standard
12404 bitmaps accordingly.
12405 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
12406 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
12407 (draw_fringe_bitmap): Ditto.
12408 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
12409 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
12410 handle up to 16 bits wide bitmaps.
12411 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
12412 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12413
12414 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
12415 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
12416 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
12417
12418 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
12419 so it is no longer necessary to expand them here.
12420
12421 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
12422
12423 2004-02-12 Kim F. Storm <storm@cua.dk>
12424
12425 * window.c (Fwindow_fringes): Doc fix.
12426
12427 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12428
12429 * xselect.c (x_get_foreign_selection): Add new optional parameter
12430 time_stamp.
12431 (Fx_get_selection_internal): Ditto, pass time_stamp to
12432 x_get_foreign_selection.
12433
12434 * data.c (Fbyteorder): New function.
12435
12436 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12437
12438 * atimer.c: Move include stdio.h to same place as in other files.
12439
12440 * region-cache.c: Ditto.
12441
12442 * sysdep.c: Ditto.
12443
12444 * xfaces.c: Ditto.
12445
12446 2004-02-09 Sam Steingold <sds@gnu.org>
12447
12448 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
12449
12450 2004-02-09 Kim F. Storm <storm@cua.dk>
12451
12452 * fringe.c: New file. Move original fringe related declarations
12453 and code from dispextern.h and xdisp.c here.
12454 Rework code to support user defined fringe bitmaps, redefining
12455 standard bitmaps, ability to overlay user defined bitmap with
12456 overlay arrow bitmap, and add faces to bitmaps.
12457 (Voverflow_newline_into_fringe): Declare here.
12458 (enum fringe_bitmap_align): New enum.
12459 (..._bits): All bitmaps are now defined without bitswapping; that
12460 is now done in init_fringe_once (if necessary).
12461 (standard_bitmaps): New array with specifications for the
12462 standard fringe bitmaps.
12463 (fringe_faces): New array.
12464 (valid_fringe_bitmap_id_p): New function.
12465 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
12466 (draw_fringe_bitmap): New function which draws fringe bitmap,
12467 possibly overlaying bitmap with cursor in right fringe or the
12468 overlay arrow in the left fringe.
12469 (update_window_fringes): Do not handle overlay arrow here.
12470 Compare and copy fringe bitmap faces.
12471 (init_fringe_bitmap): New function.
12472 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
12473 define and destroy user defined fringe bitmaps.
12474 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
12475 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
12476 (syms_of_fringe): New function. Defsubr new DEFUNs.
12477 DEFVAR_LISP Voverflow_newline_into_fringe.
12478 (init_fringe_once, init_fringe): New functions.
12479 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
12480
12481 * Makefile.in (obj): Add fringe.o.
12482 (fringe.o): New dependencies.
12483
12484 * dispextern.h (FRINGE_ID_BITS): New definition for number of
12485 bits allocated to hold a fringe number. Increase number of bits
12486 from 4 to 8 to allow user defined fringe bitmaps.
12487 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
12488 left_user_fringe_face_id, right_user_fringe_bitmap,
12489 right_user_fringe_face_id.
12490 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
12491 Move to new file fringe.c.
12492 (MAX_FRINGE_BITMAPS): Define here.
12493 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
12494 and overlay_p. Change member which to int.
12495 (struct redisplay_interface): New members define_fringe_bitmap
12496 and destroy_fringe_bitmap.
12497 (valid_fringe_bitmap_id_p): Add prototype.
12498 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
12499
12500 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
12501 arrows.
12502 (update_frame): Do flush_display if force_flush_display_p to
12503 ensure display (specifically fringes) are updated in a timely
12504 manner when resizing the frame by dragging the mouse.
12505 (update_window_line): Update row if overlay arrow changed.
12506 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
12507 or overlay arrow changed.
12508
12509 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
12510 syms_of_fringe, and init_fringe.
12511
12512 * frame.h (struct frame): New member force_flush_display_p.
12513
12514 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
12515 Add prototypes.
12516
12517 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
12518 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
12519 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
12520 Use cursor color for displaying cursor in fringe.
12521 (x_redisplay_interface): Add null handlers for
12522 define_fringe_bitmap and destroy_fringe_bitmap functions.
12523
12524 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
12525 xterm.c to handle overlayed fringe bitmaps and to use cursor color
12526 for displaying cursor in fringe.
12527 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
12528 specific functions to define and destroy fringe bitmaps in fringe_bmp.
12529 (w32_redisplay_interface): Add them to redisplay_interface.
12530 (w32_term_init): Call w32_init_fringe instead of explicitly
12531 defining fringe bitmaps in fringe_bmp array.
12532 (x_delete_display): Call w32_reset_fringes instead of explicitly
12533 destroying fringe bitmaps in fringe_bmp array.
12534
12535 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
12536 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
12537 (continued_bits, continuation_bits, ov_bits, first_line_bits)
12538 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
12539 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
12540 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
12541 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
12542 Move fringe handling vars and code to new file fringe.c.
12543 (handle_display_prop): Handle left-fringe and right-fringe
12544 display properties; store user fringe bitmaps in iterator.
12545 (move_it_in_display_line_to): Handle cursor in fringe at eob.
12546 (clear_garbaged_frames): Set force_flush_display_p if resized.
12547 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
12548 (display_line): Handle cursor in fringe at eob.
12549 (display_line): Set row user fringe bitmaps from iterator.
12550
12551 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
12552 Use cursor color for displaying cursor in fringe.
12553 (x_redisplay_interface): Add null handlers for
12554 define_fringe_bitmap and destroy_fringe_bitmap functions.
12555
12556 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12557
12558 * macfns.c (Fx_change_window_property): Make doc string and
12559 parameters same as for X version.
12560
12561 * w32fns.c (Fx_change_window_property): Ditto.
12562
12563 2004-02-07 Kim F. Storm <storm@cua.dk>
12564
12565 * xdisp.c (hscroll_window_tree): Position cursor near to right
12566 margin in hscrolled window when jumping to end of line (rather
12567 than centering cursor).
12568
12569 * process.c (wait_reading_process_input): Don't do adaptive read
12570 buffering if waiting for a specific process.
12571
12572 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
12573
12574 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
12575 (Fread_minibuffer, Feval_minibuffer)
12576 (Fread_string, Fread_no_blanks_input)
12577 (Fcompleting_read): Doc fixes.
12578 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
12579 completion-regexp-list. Define Qcase_fold_search and staticpro it.
12580 (read_minibuf): Fix initial comment.
12581 (Ftry_completion, Fall_completions, Ftest_completion): Bind
12582 case-fold-search to the value of completion-ignore-case when
12583 checking completion-regexp-list.
12584 (Fdisplay_completion_list): Make it handle arguments that are
12585 symbols. Doc fix.
12586
12587 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12588
12589 * xterm.h: Add declaration of free_frame_menubar.
12590
12591 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
12592 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
12593 (Fx_change_window_property): Add declaration of parameters type and
12594 format. Remove unused variable cons.
12595
12596 * xselect.c: Include stdio.h.
12597
12598 2004-02-05 Kenichi Handa <handa@m17n.org>
12599
12600 * fns.c (Fset_char_table_range): Fix previous change.
12601
12602 * buffer.c (Fset_buffer_multibyte): Fix docstring.
12603
12604 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
12605
12606 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
12607
12608 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
12609
12610 * keymap.c (Vmouse_events): Rename from Vmenu_events.
12611 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
12612
12613 2004-02-04 Kenichi Handa <handa@m17n.org>
12614
12615 * fns.c (Fset_char_table_range): Handle charsets ascii,
12616 eight-bit-control, and eight-bit-graphic correctly.
12617
12618 2004-02-03 Jason Rumney <jasonr@gnu.org>
12619
12620 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
12621
12622 * w32fns.c (x_to_w32_font): Likewise.
12623
12624 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12625
12626 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
12627 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
12628
12629 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
12630 ClientMessages.
12631
12632 * xselect.c: Include termhooks.h and X11/Xproto.h
12633 (x_check_property_data, x_fill_property_data)
12634 (x_property_data_to_lisp, mouse_position_for_drop)
12635 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
12636 (Fx_send_client_event): Move here from xfns.c.
12637 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
12638
12639 * xfns.c (x-send-client-message): Move to xselect.c
12640 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
12641 OUTER_P.
12642 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
12643 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
12644 if vector_ret_p is true.
12645 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
12646
12647 2004-02-02 Eli Zaretskii <eliz@gnu.org>
12648
12649 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
12650 basename of FILE relative to it, not FILE itself.
12651
12652 2004-02-02 Kenichi Handa <handa@m17n.org>
12653
12654 * coding.c (coding_restore_composition): Check invalid
12655 composition data more rigidly.
12656
12657 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
12658
12659 * fileio.c (Fread_file_name_internal): Correctly handle the case
12660 where insert-default-directory is nil.
12661 (Fread_file_name): Always return an empty string if the user exits
12662 with an empty minibuffer. Adapt the docstring accordingly.
12663 (syms_of_fileio): Adapt the docstring of insert-default-directory
12664 to the change in Fread_file_name.
12665
12666 2004-01-29 Eli Zaretskii <eliz@gnu.org>
12667
12668 * alloca.c [!alloca]: Fix the prototype for xfree.
12669
12670 2004-01-29 Kenichi Handa <handa@m17n.org>
12671
12672 * fns.c (string_char_to_byte): Optimize for ASCII only string.
12673 (string_byte_to_char): Likewise.
12674
12675 2004-01-28 Peter Runestig <peter@runestig.com>
12676
12677 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
12678
12679 2004-01-27 Steven Tamm <steventamm@mac.com>
12680
12681 * unexmacosx.c (unexec_copy): Do not copy more than was
12682 requested to prevent overwriting during unexec.
12683
12684 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12685
12686 * process.c (sigchld_handler): Add comment about not calling malloc.
12687
12688 * process.h: Add extern to synch_process_termsig.
12689
12690 2004-01-27 Steven Tamm <steventamm@mac.com>
12691
12692 * macterm.c (make_mac_frame, make_mac_terminal_frame):
12693 Move setting of scroll bars from make_mac_frame to
12694 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
12695
12696 2004-01-26 Richard M. Stallman <rms@gnu.org>
12697
12698 * search.c (Freplace_match): Handle nonexistent
12699 back-references properly.
12700
12701 2004-01-03 Richard M. Stallman <rms@gnu.org>
12702
12703 * window.c (decode_any_window): New function.
12704 (Fwindow_height, Fwindow_width, Fwindow_edges)
12705 (Fwindow_pixel_edges, Fwindow_inside_edges)
12706 (Fwindow_inside_pixel_edges): Use decode_any_window.
12707
12708 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12709
12710 * process.h: synch_process_termsig new variable.
12711
12712 * callproc.c: Define synch_process_termsig.
12713 (Fcall_process): Initiate synch_process_termsig to zero and
12714 check if non-zero and get signal name after subprocess has ended.
12715
12716 * process.c (sigchld_handler): Set synch_process_termsig
12717 if terminated by a signal. synch_process_death setting removed.
12718
12719 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
12720
12721 2004-01-26 Andreas Schwab <schwab@suse.de>
12722
12723 * print.c (print_preprocess): Declare size as EMACS_INT to not
12724 lose bits.
12725 (print_object): Likewise.
12726 * alloc.c (Fpurecopy): Likewise.
12727
12728 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
12729
12730 * window.c (Fwindow_minibuffer_p): Doc fix.
12731
12732 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
12733
12734 * editfns.c (Fformat): Make both passes accept the same set of flags.
12735
12736 2004-01-23 Kenichi Handa <handa@m17n.org>
12737
12738 * fns.c (Fmd5): If OBJECT is a buffer different from the current
12739 one, set buffer to OBJECT temporarily.
12740
12741 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
12742
12743 * keyboard.c (kbd_buffer_gcpro): Remove.
12744 (kbd_buffer_store_event, clear_event, Fdiscard_input)
12745 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
12746 Don't initialize and/or maintain the variable any more. It was made
12747 redundant by my commit of 2003-06-15.
12748
12749 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
12750
12751 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12752
12753 * lisp.h: Add undef DECL_ALIGN.
12754
12755 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
12756
12757 * process.c (wait_reading_process_input) [SYNC_INPUT]:
12758 Check interrupt_input_pending explicitly.
12759
12760 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
12761
12762 * keyboard.c (handle_async_input): New fun,
12763 extracted from input_available_signal.
12764 (input_available_signal, reinvoke_input_signal): Use it.
12765
12766 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
12767
12768 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
12769
12770 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
12771 manipulation macros for when tags are in the lower bits.
12772 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
12773 (DECL_ALIGN): New macro.
12774 (DEFUN): Use it.
12775
12776 * lisp.h [ENABLE_CHECKING]: Don't force union type.
12777
12778 * s/darwin.h (__attribute__): Remove outdated workaround.
12779
12780 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
12781
12782 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
12783 Don't check range of malloc address.
12784 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
12785
12786 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
12787
12788 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
12789
12790 2004-01-19 Kenichi Handa <handa@m17n.org>
12791
12792 * fontset.c (fontset_font_pattern): Fix previous change.
12793
12794 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
12795
12796 * xdisp.c (Voverflow_newline_into_fringe)
12797 (move_it_in_display_line_to, redisplay_internal)
12798 (update_window_fringes, redisplay_window, display_line, window):
12799 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
12800 that it compiles without a window-system.
12801 * dispnew.c (direct_output_for_insert, update_window): Likewise.
12802
12803 2004-01-16 Kim F. Storm <storm@cua.dk>
12804
12805 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
12806
12807 * buffer.c (init_buffer_once): Set buffer_defaults and
12808 buffer_local_flags for indicate_buffer_boundaries.
12809 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
12810 default- variable for it.
12811
12812 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
12813 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
12814 New members exact_window_width_line_p and cursor_in_fringe_p for
12815 overflowing newlines into right fringe.
12816 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
12817 and indicate_bottom_line_p for buffer boundaries and scrolling.
12818 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
12819 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
12820 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
12821 and HOLLOW_SQUARE_BITMAP.
12822 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
12823 Add prototypes.
12824
12825 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
12826 instead of related indicator fields.
12827 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
12828 (direct_output_for_insert): Handle exact width lines like
12829 contined lines. Call update_window_fringes.
12830 (update_window): Call update_window_fringes.
12831 (scrolling_window): Don't skip desired rows with changed bitmaps.
12832 Check if fringe bitmaps changes when assigning scrolled rows.
12833
12834 * xdisp.c (Voverflow_newline_into_fringe): New variable.
12835 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
12836 (move_it_in_display_line_to): Overflow newline into fringe for
12837 rows that are exactly as wide as the window.
12838 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
12839 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
12840 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
12841 (fringe_bitmaps): Add new bitmaps.
12842 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
12843 Select proper bitmap for cursor in fringe when appropriate.
12844 Handle alignment of bitmap to top or bottom of row.
12845 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
12846 done by update_window_fringes.
12847 (update_window_fringes, draw_window_fringes): New functions.
12848 (redisplay_internal): Call update_window_fringes in case only
12849 cursor row is updated.
12850 (redisplay_window): Call update_window_fringes.
12851 Explicitly call draw_window_fringes if redisplay was done using
12852 the current matrix or the overlay arrow is in the window.
12853 (try_window_reusing_current_matrix): Mark scrolled rows for
12854 fringe update (to update buffer-boundaries / scrolling icons).
12855 (find_last_unchanged_at_beg_row): Handle exact width lines line
12856 continued lines.
12857 (display_line): Overflow newline into fringe for rows that are
12858 exactly as wide as the window. Don't append space for newline
12859 in this case.
12860 (notice_overwritten_cursor): Explicitly clear cursor bitmap
12861 in fringe as if it had been overwritten.
12862 (erase_phys_cursor): Erase cursor bitmap in fringe.
12863 (syms_of_xdisp): Mark show-trailing-whitespace and
12864 void-text-area-pointer as user options.
12865 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
12866
12867 * xterm.c (x_update_window_end): Call draw_window_fringes.
12868 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
12869 in row instead of actually drawing fringe bitmaps.
12870 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
12871 (x_draw_window_cursor): Draw cursor in fringe.
12872
12873 * w32term.c (x_update_window_end): Call draw_window_fringes.
12874 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
12875 in row instead of actually drawing fringe bitmaps.
12876 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
12877 (w32_draw_window_cursor): Draw cursor in fringe.
12878
12879 * macterm.c (x_update_window_end): Call draw_window_fringes.
12880 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
12881 in row instead of actually drawing fringe bitmaps.
12882 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
12883 (mac_draw_window_cursor): Draw cursor in fringe.
12884
12885 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12886
12887 * xterm.c (handle_one_xevent): Don't handle characters that are part
12888 of an old style (XLookupString) compose sequence.
12889
12890 2004-01-15 Kenichi Handa <handa@m17n.org>
12891
12892 * search.c (Freplace_match): Use make_multibyte_string or
12893 make_unibyte_string according to the buffer multibyteness.
12894
12895 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
12896
12897 * alloc.c (struct interval_block, struct string_block)
12898 (struct symbol_block, struct marker_block, live_string_p)
12899 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
12900 Better preserve alignment for objects in blocks.
12901 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
12902
12903 * lread.c (defvar_per_buffer): Remove dead declaration.
12904
12905 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
12906 space size.
12907
12908 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12909
12910 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
12911 if a key press should pop down. Only pop down if a key is pressed
12912 outside the menu/dialog.
12913 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
12914 popup_get_selection.
12915 (create_and_show_dialog): Pass 1 for down_on_keypress to
12916 popup_get_selection.
12917
12918 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12919
12920 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
12921 BLOCK/UNBLOCK_INPUT.
12922
12923 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12924
12925 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
12926 specified.
12927
12928 2004-01-08 Kenichi Handa <handa@m17n.org>
12929
12930 * editfns.c (Fformat): Fix '&' to '&&'.
12931
12932 2004-01-08 Andreas Schwab <schwab@suse.de>
12933
12934 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
12935 size if PSEUDOVECTOR_FLAG is set.
12936
12937 2004-01-07 Kenichi Handa <handa@m17n.org>
12938
12939 * charset.c (Fdeclare_equiv_charset): Fix docstring.
12940
12941 * fontset.c (fontset_ref_via_base): Fix previous change.
12942
12943 2004-01-07 Kim F. Storm <storm@cua.dk>
12944
12945 * process.c (read_process_output): Only activate adaptive
12946 buffering if we read less than 256 bytes at a time.
12947
12948 2004-01-06 Kim F. Storm <storm@cua.dk>
12949
12950 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
12951 object and image object. Return glyph width and height.
12952 (mode_line_string, marginal_area_string): Ditto.
12953
12954 * dispextern.h (buffer_posn_from_coords, mode_line_string)
12955 (marginal_area_string): Fix prototypes.
12956
12957 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
12958 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
12959 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
12960
12961 * keyboard.c (make_lispy_position): Use modified mode_line_string,
12962 buffer_posn_from_coords, and marginal_area_string functions to
12963 include both string object and image object in the lispy position.
12964 Also add actual glyph width and height to position.
12965 (read_key_sequence): Use real buffer position from mouse
12966 event to find keymap property even when click is in marginal area.
12967
12968 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
12969 mode_line_string and marginal_area_string functions to handle
12970 both string object and image object properties.
12971
12972 2004-01-06 Andreas Schwab <schwab@suse.de>
12973
12974 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
12975 character.
12976
12977 2004-01-02 Andreas Schwab <schwab@suse.de>
12978
12979 * macterm.c (emacs_options, x_initialized, same_x_server):
12980 Remove unused (and duplicated) definitions.
12981
12982 2004-01-02 Kim F. Storm <storm@cua.dk>
12983
12984 * process.h (struct Lisp_Process): New members for adaptive read
12985 buffering: adaptive_read_buffering, read_output_delay, and
12986 read_output_skip.
12987
12988 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
12989 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
12990 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
12991 (process_output_delay_count, process_output_skip): New vars.
12992 (Vprocess_adaptive_read_buffering): New variable.
12993 (make_process): Initialize adaptive read buffering members.
12994 (Fstart_process): Set adaptive_read_buffering member.
12995 (deactivate_process): Cleanup adaptive read buffering.
12996 (wait_reading_process_input): Temporarily omit delayed
12997 subprocesses from the set of file descriptors to read from;
12998 adjust the select timeout if we skipped any subprocesses.
12999 (read_process_output): Increase adaptive read buffering delay if
13000 we read less than a full buffer; reduce delay when we read a
13001 full buffer.
13002 (send_process): Simplify using local Lisp_Process var.
13003 Reset adaptive read buffering delay after write.
13004 (init_process): Initialize process_output_delay_count and
13005 process_output_skip.
13006 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
13007
13008 2004-01-01 Jason Rumney <jasonr@gnu.org>
13009
13010 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
13011
13012 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
13013
13014 * print.c (Ferror_message_string): Add hyperlink in the docstring
13015 to the definition of `signal' in the Elisp manual.
13016 * eval.c (Fsignal): Ditto.
13017
13018 2003-12-29 James Clark <jjc@jclark.com>
13019
13020 * fns.c (internal_equal): Return t for two NaN arguments.
13021
13022 2003-12-29 Richard M. Stallman <rms@gnu.org>
13023
13024 * data.c (store_symval_forwarding): Handle setting
13025 default-fill-column, etc., by changing the value in
13026 buffers that use the default.
13027
13028 * minibuf.c (Fset_minibuffer_window): Doc fix.
13029
13030 * fileio.c (choose_write_coding_system): Ignore auto_saving
13031 if using the visited file for auto saves.
13032 (Fwrite_region): Don't update SAVE_MODIFF
13033 if auto-saving in visited file.
13034
13035 2003-12-29 Kenichi Handa <handa@m17n.org>
13036
13037 * dispextern.h (face_font_available_p): Extern it.
13038
13039 * fontset.c (Voverriding_fontspec_alist): New variable.
13040 (lookup_overriding_fontspec): New function.
13041 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
13042 (fontset_font_pattern): Likewise.
13043 (regulalize_fontname): New function.
13044 (Fset_fontset_font): Call regulalize_fontname.
13045 (Fset_overriding_fontspec_internal): New function.
13046 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
13047 Defsubr Sset_overriding_fontspec_internal.
13048
13049 * xfaces.c (face_font_available_p): New function.
13050
13051 2003-12-28 Richard M. Stallman <rms@gnu.org>
13052
13053 * buffer.c (Fother_buffer): Don't crash if BUF is nil
13054 or if its name is nil.
13055
13056 * buffer.c (Fkill_buffer): Don't delete auto-save file
13057 if it's the same as the visited file.
13058
13059 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
13060
13061 * coding.c (Fcheck_coding_system): Doc fix.
13062
13063 2003-12-28 Kim F. Storm <storm@cua.dk>
13064
13065 * Makefile.in (eval.o): Depend on dispextern.h.
13066
13067 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
13068 image glyph using image's ascent.
13069 (mode_line_string): Return image glyph as object clicked on.
13070 Adjust y0 for image glyph using image's ascent.
13071
13072 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
13073 (struct glyph): New members, ascent and descent. Used to save
13074 this glyph's ascent and descent, instead of having.
13075 (struct glyph): Declare member face_id using FACE_ID_BITS.
13076 (find_hot_spot): Add prototype.
13077
13078 * keyboard.c (Qimage): Remove extern (now in lisp.h).
13079 (QCmap): Declare extern.
13080 (make_lispy_position): When position is inside image hot-spot,
13081 use hot-spot element's id as posn element.
13082
13083 * lisp.h (IMAGEP): New macro to test for image object type.
13084 (Qimage): Declare extern.
13085
13086 * macfns.c (Qimage): Remove extern (now in lisp.h).
13087 (valid_image_p, parse_image_spec): Use IMAGEP macro.
13088
13089 * macterm.c (Qface, Qmouse_face): Remove unused externs.
13090
13091 * w32fns.c (Qimage): Remove extern (now in lisp.h).
13092 (valid_image_p, parse_image_spec): Use IMAGEP macro.
13093
13094 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
13095
13096 * w32term.c (Qface, Qmouse_face): Remove unused externs.
13097
13098 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
13099 pointer types.
13100 (Qrelative_width, Qalign_to): Remove unused variables.
13101 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
13102 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
13103 image maps.
13104 (x_y_to_hpos_vpos): Return glyph relative coordinates through
13105 new dx and dy args.
13106 Remove buffer_only_p arg (always 0). Simplify code accordingly.
13107 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
13108 than row's ascent and height, to get sensible height on tall rows.
13109 (build_desired_tool_bar_string): Remove Qimage extern.
13110 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
13111 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
13112 image glyph is alone on the last line.
13113 (append_glyph, append_composite_glyph, produce_image_glyph)
13114 (append_stretch_glyph): Set glyph's ascent and descent.
13115 (on_hot_spot_p): New function to check if position is inside an
13116 rectangular, circular, or polygon-shaped image hot-spot,
13117 (find_hot_spot): New function to search for image hot-spot.
13118 (Flookup_image_map): New defun to search for image hot-spot.
13119 (define_frame_cursor1): New aux function to determine frame pointer.
13120 (note_mode_line_or_margin_highlight, note_mouse_highlight):
13121 Handle `pointer' text property and :pointer image property to
13122 control frame pointer shape. Detect image hot-spots for pointer
13123 and help_echo properties. Use define_frame_cursor1.
13124 (note_mouse_highlight): Use Vvoid_text_area_pointer.
13125 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
13126 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
13127
13128 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
13129
13130 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
13131 (Qimage): Remove extern (now in lisp.h).
13132 (valid_image_p, parse_image_spec): Use IMAGEP macro.
13133
13134 * xmenu.c (show_help_event): Remove unused code.
13135
13136 * xterm.c (Qface, Qmouse_face): Remove unused externs.
13137 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
13138 row's ascent and descent, to get a sensible height on tall rows.
13139
13140 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
13141
13142 * minibuf.c (Fcompleting_read): Undo previous change.
13143
13144 2003-12-25 Lars Hansen <larsh@math.ku.dk>
13145
13146 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
13147 Arguments GCPRO'ed in call to file name handler.
13148
13149 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
13150
13151 * termcap.c (tgetst1): Scan for "%pN"; if all
13152 N are continuous in [1,9], remove all "%pN".
13153
13154 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13155
13156 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
13157
13158 * xfaces.c (lface_fully_specified_p): Take into account that
13159 MAC OS always have unspecified stipple.
13160
13161 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
13162
13163 * tparam.c (tparam1): Add handling for `%pN', which
13164 means use param N for the next substitution.
13165
13166 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
13167
13168 * xfaces.c (Fcolor_gray_p): Fix omission bug:
13169 In case `frame' is nil, consult the selected frame.
13170 (Fcolor_supported_p): Likewise.
13171
13172 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
13173
13174 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
13175 Doc fixes.
13176
13177 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
13178 and an integer. Adapt the introductory comment accordingly.
13179 (Fread_from_minibuffer): Delete code moved into read_minibuf.
13180 Doc fix.
13181 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
13182 read_minibuf.
13183 (Fcompleting_read): Delete code moved into read_minibuf.
13184 (Ftest_completion): Make it handle obarrays and hash tables correctly.
13185
13186 2003-12-03 Kenichi Handa <handa@m17n.org>
13187
13188 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
13189 encoding sequence.
13190
13191 2003-12-01 Kenichi Handa <handa@m17n.org>
13192
13193 * composite.c (syms_of_composite): Don't make the compostion hash
13194 table week.
13195
13196 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
13197
13198 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
13199 * textprop.c (Fget_char_property_and_overlay): New function.
13200 (syms_of_textprop): Defsubr it.
13201
13202 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13203
13204 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
13205 to compile on terminal configuration.
13206
13207 * fileio.c (Fread_file_name): Check use_file_dialog also before
13208 calling Fx_file_dialog.
13209
13210 * fns.c (use_file_dialog): New variable.
13211 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
13212
13213 2003-11-29 Kim F. Storm <storm@cua.dk>
13214
13215 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
13216 (syms_of_msdos): Don't intern and staticpro them.
13217
13218 2003-11-27 Kim F. Storm <storm@cua.dk>
13219
13220 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
13221 coordinates relative to glyph at posn. If glyph is an image,
13222 return that as object at posn. Callers changed.
13223 (mode_line_string, marginal_area_string): Calculate and return
13224 pixel coordinates relative to glyph. Callers changed.
13225
13226 * dispextern.h (buffer_posn_from_coords, mode_line_string)
13227 (marginal_area_string): Fix prototypes.
13228 (window_box_left_offset, window_box_right_offset): Add prototypes.
13229
13230 * frame.h (get_specified_cursor_type, get_window_cursor_type):
13231 Remove prototypes.
13232
13233 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
13234
13235 * keyboard.c (make_lispy_position): Add x and y coordinates
13236 relative to the current glyph as 7th element of position.
13237 If glyph is an image, return it in the object element.
13238 (read_key_sequence): Skip checks for keymap property in cases
13239 where POSN_STRING is not a string (e.g. an image).
13240
13241 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
13242 (Vshow_text_cursor_in_void): New variable.
13243 (glyph_to_pixel_coords): Don't use negative hpos.
13244 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
13245 (append_stretch_glyph): Change ascent arg to be actual value
13246 in pixels rather than ratio to height. Callers changed.
13247 (calc_pixel_width_or_height): New aux function, implementing
13248 pixel based artihmetic for glyph widths and heights.
13249 (produce_stretch_glyph): Use calc_pixel_width_or_height for
13250 :width, :height, :align-to, and :ascent, thus allowing these to
13251 be specified in pixels as well as multiples of characters.
13252 Don't produce stretch glyphs with zero width or height.
13253 (get_specified_cursor_type): Declare static.
13254 (get_window_cursor_type): Declare static. Add glyph arg to be
13255 able to know when cursor is on an image; always substitute
13256 hollow-box cursor for filled-box cursor on images, to avoid
13257 negative images and flicker when blinking the cursor.
13258 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
13259 (note_mode_line_or_margin_highlight): Use non-text cursor rather
13260 than vertical scroll-bar cursor in display margins.
13261 (note_mouse_highlight): Use non-text cursor rather than text
13262 cursor in fringes and over images in the text area.
13263 Use non-text cursor when mouse pointer is outside editable text,
13264 i.e. in the void after end-of-line or end-of-buffer; this was
13265 already done for W32, but is now standard for all systems --
13266 user can toggle show-text-cursor-in-void to get old behaviour.
13267 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
13268 Vdisplay_pixels_per_inch.
13269
13270 2003-11-25 Andreas Schwab <schwab@suse.de>
13271
13272 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
13273 EMACS_INT to not lose bits.
13274 (Ffillarray): Don't set bits beyond the size of a bool vector.
13275
13276 2003-11-25 Kim F. Storm <storm@cua.dk>
13277
13278 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
13279 define this defun on systems that cannot use stderr as lvalue.
13280
13281 2003-11-24 Gerd Moellmann <gerd@gnu.org>
13282
13283 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
13284 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
13285 ld's default is incompatible with unexec.
13286
13287 2003-11-23 Kim F. Storm <storm@cua.dk>
13288
13289 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
13290 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
13291 (Fforce_window_update): New defun.
13292 (syms_of_window): Defsubr it.
13293 (Fset_window_margins, Fset_window_fringes): Doc fix.
13294
13295 * print.c (Fredirect_debugging_output): New defun.
13296 (syms_of_print): Defsubr it.
13297
13298 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
13299
13300 * fns.c (Fset_char_table_parent): Doc fix.
13301
13302 2003-11-22 Kim F. Storm <storm@cua.dk>
13303
13304 * dispnew.c (buffer_posn_from_coords): Return actual row/column
13305 for glyph clicked on, rather than (unused) pixel positions.
13306 (mode_line_string, marginal_area_string): Change X and Y args to
13307 pointers for returning actual row/column for glyph clicked on.
13308 Simplify and optimize loops.
13309
13310 * dispextern.h (mode_line_string, marginal_area_string):
13311 Update prototypes.
13312
13313 * keyboard.c (make_lispy_position): New function for generating
13314 mouse click positions from frame and pixel coordinates.
13315 Enhanced to return buffer position and actual row/column for
13316 events outside the text area using updated mode_line_string and
13317 marginal_area_string functions.
13318 Return left-fringe and right-fringe clicks as such, rather than
13319 clicks in text area.
13320 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
13321 pixel_to_glyph_coords, as we never use the results.
13322 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
13323 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
13324 Eliminate unused code in WHEEL_EVENT handling.
13325 (make_lispy_movement): Use make_lispy_position.
13326
13327 * window.c (coordinates_in_window): Remove redundant tests.
13328 Fix returned X pixel value for left-margin.
13329
13330 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
13331 mode_line_string and marginal_area_string parameters.
13332
13333 2003-11-22 Lars Hansen <larsh@math.ku.dk>
13334
13335 * w32.c (struct the_group, getgrgid): Add.
13336 * mac.c (struct my_group, getgrgid): Add.
13337
13338 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
13339
13340 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
13341
13342 2003-11-21 Lars Hansen <larsh@math.ku.dk>
13343
13344 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
13345 include in call to file name handler. Optionally translate numeric
13346 UID and GID to strings. Update docstring.
13347 (directory_files_internal): Add parameter ID-FORMAT.
13348 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
13349 include in call to file name handler and call to
13350 directory_files_internal. Update Docstring.
13351 (Fdirectory_files): Add dummy parameter in call to
13352 directory_files_internal.
13353 * lisp.h (Qinteger): Add.
13354 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
13355 (Ffile_attributes): Add parameter.
13356 * data.c (Qinteger): Export.
13357
13358 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
13359
13360 * fns.c (Freverse, Fnreverse): Doc fixes.
13361
13362 2003-11-19 Kim F. Storm <storm@cua.dk>
13363
13364 * xdisp.c (init_iterator): Initialize it->start to position
13365 before reseating (in case start position is invisible).
13366 (init_to_row_start): Set it->start to row-start.
13367 (redisplay_window): Accept optional_new_start if start position
13368 is invisible (in which case IT_CHARPOS overshoots PT).
13369 (display_line): Setup row->start from it->start (rather than
13370 it->current which is wrong if first char on line is invisible).
13371 When done, reseat it->start to it->current (= start of next row).
13372 (expose_area): Fix exposure of text area when first char (e.g. TAB)
13373 is only partially visible.
13374
13375 * dispextern.h (struct it): New member start.
13376
13377 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
13378
13379 * alloc.c (make_float, Fcons): Clear the markbit at init time.
13380 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
13381 of block_index outside of the macro call.
13382 (Fgarbage_collect): Remove null code.
13383
13384 * m/amdx86-64.h: Don't redefine XPNTR.
13385
13386 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
13387 of VALMASK.
13388
13389 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
13390 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
13391 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
13392
13393 * lisp.h (VALMASK): Only define for non-union type.
13394 (MARKBIT): Remove.
13395 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
13396 (XTYPE): Define unconditionally.
13397 (XSETTYPE): Remove one more remnant.
13398 (EQ): Define differently for the union and non-union cases.
13399 (INTMASK): New bit mask.
13400 (struct Lisp_Marker): Move down to prepare for upcoming patch.
13401 (GC_EQ): Delegate to EQ.
13402
13403 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
13404
13405 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13406
13407 * xterm.c (x_window_to_scroll_bar): Move check of display to
13408 where window_id is compared.
13409
13410 2003-11-17 Kim F. Storm <storm@cua.dk>
13411
13412 * dispextern.h (struct it): New member first_vpos.
13413
13414 * xdisp.c (start_display): Set it->first_vpos.
13415 (try_window_id): Use first_vpos to start display in first _text_
13416 line if no reusable lines at start of window with header line.
13417
13418 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13419
13420 * w32fns.c (XPutPixel):
13421 * w32bdf.c (w32_init_bdf_font):
13422 * sunfns.c (sel_read):
13423 * process.c (Fmake_network_process):
13424 * frame.c (store_frame_param):
13425 * fontset.c (Fset_fontset_font):
13426 * emacs.c (shut_down_emacs):
13427 * ccl.c (ccl_driver): Remove period at end of error message.
13428
13429 * config.in: Regenerate.
13430
13431 * xfns.c (x_window_to_frame, x_any_window_to_frame)
13432 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
13433 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
13434 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
13435 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
13436
13437 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
13438
13439 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
13440 (XTmouse_position, handle_one_xevent): Pass Display* to
13441 x_window_to_scroll_bar.
13442 (x_window_to_scroll_bar): Take a Display* argument.
13443 Check that display for frame is equal to Display* argument.
13444 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
13445 x_display_info_for_display instead. Use Display in xev instead
13446 of GDK_DISPLAY.
13447 (x_dispatch_event): Call x_display_info_for_display.
13448 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
13449 (x_connection_closed): Call xg_display_close for GTK.
13450 (x_term_init): Call xg_display_open for additional displays.
13451 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
13452 for GTK.
13453
13454 * xmenu.c (single_menu_item, mouse_position_for_popup)
13455 (x_activate_menubar): Formatting adjustments.
13456
13457 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
13458 adjustments.
13459
13460 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
13461 (xg_display_close, xg_create_default_cursor)
13462 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
13463 handling.
13464 (xg_left_ptr_cursor): Remove.
13465 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
13466 cursor here.
13467 (xg_win_to_widget): Take Display* argument, call
13468 gdk_xid_table_lookup_for_display.
13469 (xg_create_frame_widgets, xg_get_file_name, create_menus)
13470 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
13471 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
13472 in FRAME_X_DISPLAY_INFO.
13473 (xg_get_scroll_id_for_window): Take Display* argument.
13474 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
13475 (xg_initialize): Remove xg_left_ptr_cursor.
13476
13477 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
13478 Display* argument.
13479 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
13480
13481 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13482
13483 * xterm.c (x_detect_focus_change): Do not change focus frame for
13484 Enter/LeaveNotify if the current focus frame has explicit focus.
13485
13486 2003-11-14 Kim F. Storm <storm@cua.dk>
13487
13488 * dispnew.c (update_text_area): Fix redisplay error when hscroll
13489 is active and first glyph is only partially visible.
13490
13491 2003-11-13 Kenichi Handa <handa@m17n.org>
13492
13493 * xdisp.c (select_frame_for_redisplay): New function.
13494 (redisplay_internal): Record also selected_frame for
13495 unwind_redisplay. Call select_frame_for_redisplay before
13496 redrawing each frame.
13497 (unwind_redisplay): Argument changed to a cons.
13498
13499 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
13500
13501 * fns.c (Fstring_to_multibyte): Doc fix.
13502
13503 2003-11-11 Kenichi Handa <handa@m17n.org>
13504
13505 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
13506
13507 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13508
13509 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
13510 program specified positions.
13511
13512 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13513
13514 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
13515
13516 2003-11-08 Kenichi Handa <handa@m17n.org>
13517
13518 * Makefile.in (lisp): Add kannada.el.
13519 (shortlisp): Likewise.
13520
13521 2003-11-07 Kenichi Handa <handa@m17n.org>
13522
13523 * coding.c (coding_allocate_composition_data):
13524 Reset coding->composing to COMPOSITION_NO.
13525 (coding_restore_composition): Detect invalid composition data.
13526 Give Fstring and Fvector a Lispy integer, not C int.
13527
13528 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
13529
13530 * floatfns.c (Flogb): Don't use VALMASK.
13531
13532 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
13533 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
13534
13535 * lisp.h (XINT): Move the cast to clarify what is going on.
13536 (GCTYPEMASK, XSETTYPE): Remove.
13537 (XGCTYPE): Make it an alias of XTYPE.
13538
13539 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13540
13541 * xterm.c (x_term_init): Fix formatting.
13542
13543 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13544
13545 * gtkutil.h (xg_have_tear_offs): Declare.
13546 (xg_keep_popup, xg_did_tearoff): Remove.
13547
13548 * gtkutil.c: Remove variable xg_did_tearoff.
13549 (xg_have_tear_offs): New function.
13550 (tearoff_remove): Just decrease xg_detached_menus.
13551 (tearoff_activate): Increase xg_detached_menus and call
13552 tearoff_remove when tearoff is removed.
13553 (xg_keep_popup): Remove function.
13554 (create_menus): Give add_tearoff_p as argument to recursive
13555 call to create_menus.
13556 (xg_create_widget): Use variables instead of multiple
13557 strcmp. Tell create_menus to create tear off only for
13558 menu bar menus.
13559 (xg_update_menubar): Change title for a detached menu also.
13560 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
13561 of deep_p.
13562 (xg_initialize): Initialize xg_detached_menus, remove
13563 initialization of xg_did_tearoff.
13564
13565 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
13566 xg_have_tear_offs returns non-zero.
13567 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
13568 call to xg_keep_popup.
13569
13570 2003-11-01 Andrew Choi <akochoi@shaw.ca>
13571
13572 * macterm.c (XTread_socket): Handle menubar selection and grow
13573 window only for mouseDown events.
13574
13575 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13576
13577 * xterm.c (x_term_init): For GTK part, increase x_initialized
13578 to check for more than one display. Use error instead of return 0.
13579
13580 2003-10-31 Andrew Choi <akochoi@shaw.ca>
13581
13582 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
13583 (copy_dysymtab): Call it.
13584
13585 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
13586
13587 * eval.c (Fdefvaralias): Doc fix.
13588
13589 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
13590
13591 * data.c (Fsetplist): Doc fix.
13592
13593 2003-10-14 Lute Kamstra <lute@gnu.org>
13594
13595 * window.c (Fset_window_fringes): Clarify docstring.
13596
13597 2003-10-14 Kim F. Storm <storm@cua.dk>
13598
13599 * window.c (Fset_window_margins): Simplify arg checking.
13600
13601 2003-10-13 Richard M. Stallman <rms@gnu.org>
13602
13603 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
13604 (print_partial_compiled_pattern): Replace assert with a printout.
13605 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
13606
13607 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
13608
13609 * window.c (Fset_window_margins): Allow only integers as args.
13610 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
13611 Doc fixes.
13612
13613 2003-10-13 Lute Kamstra <lute@gnu.org>
13614
13615 * window.c (Fset_window_fringes): Elaborate docstring.
13616
13617 2003-10-12 Andrew Choi <akochoi@shaw.ca>
13618
13619 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
13620
13621 * s/darwin.h (GC_MARK_STACK): Define.
13622
13623 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13624
13625 * window.c (shrink_windows): New function.
13626 (size_window): Call shrink_windows to calculate window sizes when
13627 shrinking frame with more than one window.
13628
13629 2003-10-12 Kim F. Storm <storm@cua.dk>
13630
13631 * xdisp.c (compute_fringe_widths): Doc fix.
13632
13633 2003-10-08 Kenichi Handa <handa@m17n.org>
13634
13635 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
13636
13637 2003-10-07 Kenichi Handa <handa@m17n.org>
13638
13639 * coding.c (Qcoding_system_define_form): New variable.
13640 (syms_of_coding): Intern and staticpro it.
13641 (Fcheck_coding_system): Try to autoload the definition of
13642 CODING-SYSTEM.
13643
13644 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
13645
13646 * fns.c (Frequire): Doc fix.
13647
13648 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13649
13650 * xfns.c (Fx_send_client_event): New function as a base for
13651 manipulating extended window manager hints.
13652 (Fx_send_client_event): Remove unused variable s.
13653
13654 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
13655 that function is removed.
13656
13657 * xterm.c (x_set_offset): Use move_offset_left/top instead of
13658 x/y_pixels_outer_diff.
13659 (x_check_expected_move): Calculate move_offset_left/top.
13660
13661 * xterm.h (struct x_output): New members: move_offset_top/left.
13662
13663 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
13664 call x_set_offset directly.
13665
13666 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
13667
13668 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
13669
13670 * xterm.c (x_delete_display): Free font names and font_encoder
13671 in dpyinfo->font_table.
13672
13673 * xfns.c (Fx_close_connection): Only call XFreeFont here.
13674 Move xfree of font names to x_delete_display.
13675
13676 * xterm.h (struct x_display_info): New member, wm_type.
13677 (struct x_output): New members, expected_top/left and
13678 check_expected_move.
13679
13680 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
13681 is received.
13682 (handle_one_xevent): Rename x_check_expected_move from
13683 x_check_fullscreen_move.
13684 (x_set_offset): Only add WM decoration sizes to modified_top/left
13685 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
13686 (x_check_expected_move): Rename from x_check_fullscreen_move.
13687 Removed fullscreen specific code. Use check_expected_move,
13688 expected_left/top instead. Also, set wm_type.
13689 (x_term_init): Initialize wm_type to unknown.
13690
13691 * frame.c (x_fullscreen_move): Remove addition of WM decoration
13692 sizes to move_x/y.
13693
13694 2003-10-03 Kenichi Handa <handa@m17n.org>
13695
13696 * macterm.c (x_load_font): Clear all members of FONTP before start
13697 filling them.
13698
13699 2003-10-02 Kenichi Handa <handa@m17n.org>
13700
13701 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
13702 before calling find_ccl_program_func. Call find_ccl_program_func
13703 only when fontp->font_encoder is not NULL.
13704
13705 * xterm.c (x_load_font): Clear all members of FONTP before start
13706 filling them.
13707
13708 2003-10-03 John Paul Wallington <jpw@gnu.org>
13709
13710 * keymap.c (map_keymap): Don't abort when binding is a vector.
13711
13712 2003-10-02 Jason Rumney <jasonr@gnu.org>
13713
13714 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
13715 Sync dependencies with Makefile.in.
13716 (alloca.o): Remove.
13717
13718 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
13719 filling them.
13720
13721 * w32bdf.c (w32_load_bdf_font): Likewise.
13722
13723 2003-09-30 Richard M. Stallman <rms@gnu.org>
13724
13725 * term.c (set_tty_color_mode): Calculate current_mode_spec
13726 regardless of value of VAL.
13727
13728 * intervals.c (graft_intervals_into_buffer):
13729 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
13730 Handle over_used when splitting UNDER.
13731
13732 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13733
13734 * regex.c (regex_compile): Free the stack when returning from function.
13735
13736 2003-09-28 Kenichi Handa <handa@m17n.org>
13737
13738 * fontset.c (Finternal_char_font): Change return value to
13739 cons (FONT-NAME . GLYPH-CODE).
13740
13741 2003-09-28 Eli Zaretskii <eliz@gnu.org>
13742
13743 * term.c (tty_setup_colors): Treat any negative argument as -1.
13744
13745 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
13746
13747 * process.c (send_process): Delete unused temp_buf.
13748
13749 2003-09-26 Dave Love <fx@gnu.org>
13750
13751 * xterm.c (x_bitmap_mask): Declare.
13752
13753 2003-09-25 Dave Love <fx@gnu.org>
13754
13755 * Makefile.in (fns.o): Depend on md5.h.
13756
13757 2003-09-25 Kim F. Storm <storm@cua.dk>
13758
13759 * window.c (set_window_buffer): Fix redisplay problems when
13760 switching between buffers with different display margin widths.
13761
13762 2003-09-23 Kim F. Storm <storm@cua.dk>
13763
13764 * process.c (set_socket_option): Fix :bindtodevice option.
13765 (Fset_network_process_option): Update process contact list when
13766 setting option succeeds.
13767 (Fmake_network_process): Doc fix.
13768
13769 2003-09-23 Dave Love <fx@gnu.org>
13770
13771 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
13772
13773 2003-09-22 Eli Zaretskii <eliz@gnu.org>
13774
13775 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
13776 color mode is an integer number (it could be -1).
13777
13778 2003-09-22 Richard M. Stallman <rms@gnu.org>
13779
13780 * intervals.c (graft_intervals_into_buffer): Correct the main loop
13781 in the case where OVER is longer than UNDER.
13782
13783 2003-09-22 Masatake YAMATO <jet@gyve.org>
13784
13785 * window.c (Fset_window_scroll_bars): Validate the value of
13786 `vertical_type'.
13787
13788 2003-09-21 Kim F. Storm <storm@cua.dk>
13789
13790 * frame.c (Vdefault_frame_scroll_bars): New variable.
13791 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
13792 (syms_of_frame): DEFVAR_LISP it, and initialize according to
13793 window-system default scroll bar position.
13794
13795 * window.c (Fwindow_scroll_bars): Doc fix.
13796
13797 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13798
13799 * xterm.c (x_set_offset): Take window manager decorations into account.
13800
13801 2003-09-19 Richard M. Stallman <rms@gnu.org>
13802
13803 * atimer.h: Don't include lisp.h.
13804 (P_): Define it here (as well as elsewhere).
13805
13806 * print.c (Fprin1_to_string): Move the PRINTPREPARE
13807 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
13808
13809 * data.c (Fvariable_binding_locus): New function.
13810 (syms_of_data): defsubr it.
13811 (Flocal_variable_p): Delete duplicate call to indirect_variable.
13812
13813 2003-09-18 Dave Love <fx@gnu.org>
13814
13815 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
13816
13817 * process.c (Fnetwork_interface_info): Fix type error.
13818 (Fnetwork_interface_list): Doc fix.
13819 (read_process_output, read_process_output): Delete unused var.
13820
13821 2003-09-17 Kim F. Storm <storm@cua.dk>
13822
13823 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
13824 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
13825 (Fnetwork_interface_info): Check that ifreq struct has required
13826 fields before accessing them; this requires that those fields are
13827 defined as macros, which may be too restrictive on some platforms,
13828 but it is better than failing on other platforms.
13829 (syms_of_process): Only defsubr above fns when included.
13830
13831 2003-09-17 Dave Love <fx@gnu.org>
13832
13833 * unexalpha.c: Don't include varargs.h.
13834
13835 2003-09-17 Kim F. Storm <storm@cua.dk>
13836
13837 * process.c (Fset_process_sentinel): Add sentinel to childp plist
13838 for network process.
13839 (socket_options): Add `:' prefix to option names. Add optbit field.
13840 (set_socket_option): Remove no_error arg and special handling of s < 0.
13841 Return 1<<optbit for known option, 0 for unknown.
13842 Do not interpret 0 as false for boolean option (only nil).
13843 Pass failed option and value to report_file_error.
13844 (Fset_network_process_options): Replace by Fset_network_process_option.
13845 (Fset_network_process_option): New function to set just one option.
13846 (Fmake_network_process): Allow :coding arg to be a cons.
13847 Allow :server arg to be an integer specifying backlog size.
13848 Remove :options arg, and allow options to be specified directly
13849 as :KEY, VALUE pairs. Parse these options before binding socket.
13850 As before, :reuseaddr t is default for a server process, but this
13851 can now be disabled by specifying :reuseaddr nil.
13852 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
13853 (init_process): Availability of network options is now checked with
13854 simpler syntax (featurep 'make-network-process :OPTION); use loop to
13855 setup features.
13856 (syms_of_process): Fix defsubr's for the replaced functions.
13857
13858 2003-09-16 Dave Love <fx@gnu.org>
13859
13860 * Makefile.in: Depend on coding.h.
13861
13862 2003-09-14 Kim F. Storm <storm@cua.dk>
13863
13864 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
13865 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
13866 (syms_of_process): Defsubr them.
13867
13868 * config.in: Regenerate.
13869
13870 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
13871
13872 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
13873 * m/news-r6.h (XUNMARK): Remove.
13874 * m/mips.h (XUNMARK): Remove.
13875 * m/mips-siemens.h (XUNMARK): Remove.
13876 * m/iris4d.h (XUNMARK): Remove.
13877 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
13878
13879 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
13880
13881 * lisp.h (VALBITS): Don't remove 1 for the markbit.
13882 (union Lisp_Object): Use unsigned int for types. Remove markbit.
13883 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
13884 (XTYPE): Use unsigned right-shift.
13885 (XMARKBIT, XMARK, XUNMARK): Remove.
13886
13887 * alloc.c (init_intervals, init_symbol, init_marker):
13888 Don't preallocate anything.
13889 (Fgarbage_collect, mark_object): Ignore the markbit.
13890
13891 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
13892
13893 2003-09-08 Lute Kamstra <lute@gnu.org>
13894
13895 * xdisp.c (pint2hrstr): New function.
13896 (decode_mode_spec): Add `%i' and `%I' specs.
13897 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
13898 for `mode-line-format'.
13899
13900 2003-09-07 Andreas Schwab <schwab@suse.de>
13901
13902 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
13903 avoid warning.
13904
13905 2003-09-07 Eli Zaretskii <eliz@gnu.org>
13906
13907 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
13908
13909 2003-09-03 Kim F. Storm <storm@cua.dk>
13910
13911 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
13912 change (superseded by 2002-08-30 change); the default blink-off
13913 cursor is now again "no cursor".
13914
13915 2003-09-01 Jason Rumney <jasonr@gnu.org>
13916
13917 * makefile.w32-in (alloca.o): Remove.
13918 (coding.o): Depend on intervals.h
13919 (emacs.o, bytecode.o): Depend on window.h
13920
13921 2003-09-01 Dave Love <fx@gnu.org>
13922
13923 * Makefile.in (alloca.o): Remove commands.
13924 (coding.o): Depend on intervals.h composite.h window.h.
13925 (emacs.o): Depend on window.h keyboard.h keymap.h.
13926 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
13927 (bytecode.o): Depend on window.h.
13928
13929 2003-08-31 Jason Rumney <jasonr@gnu.org>
13930
13931 * w32term.c (w32_per_char_metric): Allow cached metrics to be
13932 returned even when font_type is unknown.
13933
13934 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
13935
13936 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13937
13938 * xterm.c (x_term_init): Initialize new fields in x_display_info.
13939
13940 * xterm.h (struct x_display_info): Add red/green/blue_bits and
13941 *_offset.
13942
13943 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
13944 calculate pixel value.
13945
13946 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
13947
13948 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
13949 Don't tell redisplay display is accurate when it's actually been
13950 paused for pending input.
13951
13952 2003-08-29 Richard M. Stallman <rms@gnu.org>
13953
13954 * dispnew.c (adjust_glyph_matrix): Call window_box
13955 whenever W is nonzero.
13956
13957 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13958 (Fkill_local_variable, Fmake_variable_frame_local)
13959 (Flocal_variable_p, Flocal_variable_if_set_p):
13960 Use indirect_variable to trace thru variable aliases.
13961
13962 * config.in: Updated.
13963
13964 * callint.c (Fcall_interactively): Save and restore
13965 Vthis_command, Vthis_original_command, real_this_command,
13966 and current_kboard->Vlast_command.
13967
13968 * abbrev.c (Fexpand_abbrev): Insert before deleting.
13969
13970 2003-08-29 Gerd Moellmann <gerd@gnu.org>
13971
13972 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
13973
13974 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
13975
13976 * coding.c (decode_coding_iso2022): Initialize local variable c2.
13977 (decode_coding_sjis_big5): Likewise.
13978
13979 2003-08-27 Jason Rumney <jasonr@gnu.org>
13980
13981 * w32.c (sys_pipe): Protect against file descriptor overflow.
13982
13983 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
13984
13985 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
13986
13987 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
13988
13989 * xfns.c (Vgtk_version_string): New variable.
13990 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
13991
13992 2003-08-24 Eli Zaretskii <eliz@gnu.org>
13993
13994 * term.c (term_init): Remove `const' from buffer_size's declaration.
13995
13996 * Makefile.in (msdos.o): Depend on intervals.h.
13997
13998 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
13999
14000 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14001
14002 * xterm.h (struct x_display_info): New fields: client_leader_window
14003 and Xatom_wm_client_leader.
14004
14005 * xterm.c (x_initialize): Move call to x_session_initialize to ...
14006 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
14007
14008 * xsmfns.c (create_client_leader_window): New function.
14009 (x_session_initialize): Call create_client_leader_window, take
14010 dpyinfo as argument.
14011
14012 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
14013
14014 * Makefile.in (xsmfns.o): Add more depenedencies.
14015
14016 2003-08-21 Dave Love <fx@gnu.org>
14017
14018 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
14019
14020 2003-08-21 Kenichi Handa <handa@m17n.org>
14021
14022 * term.c (term_init): Fix previous change; don't rely on the
14023 length of `buffer' if TERMINFO is defined.
14024
14025 2003-08-20 Dave Love <fx@gnu.org>
14026
14027 * atimer.h: Include lisp.h.
14028
14029 * lisp.h (EMACS_LISP_H): New.
14030 (popup_activated_flag): Don't declare.
14031
14032 * alloca.c: Some merging with gnulib. Change logic and doc
14033 concerning (x)malloc/(x)free -- no longer Emacs-specific.
14034 [DO_BLOCK_INPUT]: Don't include lisp.h.
14035 (xmalloc, xfree): Declare.
14036 (malloc): Don't declare.
14037
14038 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
14039 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
14040 atimer.h, blockinput.h.
14041
14042 * alloc.c (lisp_align_malloc): Change type of `aligned'.
14043
14044 * alloca.s: Remove.
14045
14046 2003-08-19 Gerd Moellmann <gerd@gnu.org>
14047
14048 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
14049 use -lncurses.
14050
14051 * term.c (term_init): Use a buffer of size 4096 for tgetent since
14052 FreeBSD returns something longer than 2044. Abort if the end of
14053 the buffer is overwritten.
14054
14055 2003-08-19 Miles Bader <miles@gnu.org>
14056
14057 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
14058
14059 2003-08-19 Gerd Moellmann <gerd@gnu.org>
14060
14061 * alloc.c (lisp_align_malloc): Check for memory full when
14062 allocating ablocks, which also avoids freeing a pointer into an
14063 ablocks structure.
14064
14065 * puresize.h (BASE_PURESIZE): Increase to 1100000.
14066
14067 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
14068
14069 2003-08-16 Richard M. Stallman <rms@gnu.org>
14070
14071 * editfns.c (Fencode_time): Doc fix.
14072
14073 2003-08-16 David Ponce <david@dponce.com>
14074
14075 * fileio.c (Fwrite_region): Fix conditional expression to issue
14076 the right message.
14077
14078 2003-08-16 Juri Linkov <juri@jurta.org>
14079
14080 * syntax.c (Fforward_word): Argument changed to optional.
14081 Set default value to 1.
14082
14083 2003-08-15 Kenichi Handa <handa@m17n.org>
14084
14085 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
14086 what autoscaled.
14087 (best_matching_font): Once we find a better scalable font, set
14088 non_scalable_has_exact_height_p to 1.
14089 (try_font_list): Call try_alternative_families to try any family
14090 with the given registry.
14091
14092 2003-08-09 Andreas Schwab <schwab@suse.de>
14093
14094 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
14095
14096 * print.c (print_string): Fix printing of multibyte string with
14097 nontrivial printcharfun.
14098
14099 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14100
14101 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
14102
14103 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
14104
14105 2003-07-31 Kenichi Handa <handa@m17n.org>
14106
14107 * process.c (read_process_output): Return the actually read bytes
14108 instead of the result of decoding.
14109
14110 2003-07-31 Kenichi Handa <handa@m17n.org>
14111
14112 * xterm.h (struct x_bitmap_record): New member have_mask.
14113
14114 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
14115 to 0.
14116 (x_create_bitmap_from_file): Likewise.
14117 (x_destroy_bitmap): Check have_mask member before freeing a mask.
14118 (x_destroy_all_bitmaps): Likewise.
14119 (x_create_bitmap_mask): Set have_mask member to 1.
14120
14121 2003-07-30 Richard M. Stallman <rms@gnu.org>
14122
14123 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
14124
14125 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14126
14127 * gtkutil.c (xg_mark_data): Update calls to mark_object.
14128
14129 2003-07-29 Richard M. Stallman <rms@gnu.org>
14130
14131 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
14132 Conditionalize XIM code on HAVE_XIM.
14133
14134 * fns.c (Fclear_string): New function.
14135 (syms_of_fns): defsubr it.
14136
14137 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
14138
14139 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
14140
14141 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
14142
14143 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
14144
14145 * buffer.c (delete_all_overlays): New function.
14146 * buffer.h (delete_all_overlays): Declare.
14147 * coding.c (run_pre_post_conversion_on_str):
14148 * print.c (temp_output_buffer_setup):
14149 * fileio.c (Finsert_file_contents):
14150 * minibuf.c (get_minibuffer): Use it.
14151
14152 2003-07-22 Andrew Choi <akochoi@shaw.ca>
14153
14154 * unexmacosx.c (unexec_regions_sort_compare):
14155 (unexec_regions_merge): New functions. Sort and merge unexec
14156 regions before dumping them.
14157
14158 2003-07-22 Dave Love <fx@gnu.org>
14159
14160 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
14161
14162 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
14163
14164 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
14165 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
14166 MARKBIT as the gcmarkbit for strings.
14167
14168 2003-07-21 Richard M. Stallman <rms@gnu.org>
14169
14170 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
14171
14172 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
14173 (syms_of_fns): Corresponding change.
14174
14175 * alloc.c (syms_of_alloc): Doc fixes.
14176
14177 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
14178
14179 * s/netbsd.h: Use -Wl syntax.
14180
14181 2003-07-17 Richard M. Stallman <rms@gnu.org>
14182
14183 * xterm.c (xim_initialize): Redo 6/24 change.
14184
14185 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
14186
14187 * buffer.c (copy_overlays): Use EMACS_INT for positions.
14188 (Fswitch_to_buffer): Don't signal an error when switching to the same
14189 buffer in a dedicated window.
14190
14191 * alloc.c: Use bitmaps for cons, as was done for floats.
14192 (init_float, init_cons): Let the normal code allocate the first block.
14193 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
14194 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
14195 New macros.
14196 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
14197 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
14198 (live_cons_p): Check the pointer is not past the `conses' array.
14199 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
14200 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
14201 (survives_gc_p): Use CONS_MARKED_P and simplify.
14202 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
14203
14204 2003-07-13 Paul Eggert <eggert@twinsun.com>
14205
14206 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
14207 puts it into BSS instead, at least on Solaris 8 and 9.
14208 This is a valid optimization, and it may occur on other platforms,
14209 so Emacs should not assume that initializing a static variable to
14210 zero puts it into data.
14211 * alloc.c (pure, staticvec):
14212 Initialize these arrays to nonzero, so that they're not
14213 put into BSS by that optimization.
14214
14215 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
14216
14217 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
14218 (lisp_align_malloc): Use posix_memalign is available.
14219 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
14220 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
14221 for consistency. Update users.
14222
14223 2003-07-13 Richard M. Stallman <rms@gnu.org>
14224
14225 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
14226
14227 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
14228
14229 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
14230 and use the Gtk+ function gtk_window_icon_from_file if available.
14231
14232 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
14233 handle mask of bitmaps.
14234 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
14235 mask property.
14236 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
14237
14238 * xterm.h (xg_set_icon): New function.
14239
14240 2003-07-12 Paul Eggert <eggert@twinsun.com>
14241
14242 * unexelf.c (unexec): Consider a section to precede the .bss
14243 section if its addresses overlap that of .bss.
14244
14245 2003-07-12 Richard M. Stallman <rms@gnu.org>
14246
14247 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
14248
14249 * config.in (HAVE_CRTIN): Add #undef.
14250 (INLINE): Really inline only if OPTIMIZE is defined.
14251
14252 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
14253 END_FILES_1.
14254 (START_FILES_1, END_FILES_1): New macros (conditional).
14255 (LD_SWITCH_SYSTEM_TEMACS): Define.
14256
14257 * s/openbsd.h: Don't include bsd4-3.h.
14258 (TERMINFO): Define.
14259 (LIBS_TERMCAP): Define.
14260 (LD_SWITCH_SYSTEM): Define (two definitions).
14261
14262 * xfns.c: Include libpng/png.h instead of png.h.
14263
14264 2003-07-11 Andreas Schwab <schwab@suse.de>
14265
14266 * buffer.c (modify_overlay): Update prototype.
14267 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
14268 Likewise.
14269
14270 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
14271
14272 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
14273 (struct interval): Move to intervals.h.
14274 (struct Lisp_Marker): Use EMACS_INT for position info.
14275 (forward_point): Remove prototype of defunct function.
14276 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
14277 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
14278 (syms_of_textprop, set_text_properties): Remove prototypes that are
14279 already in intervals.h.
14280
14281 * intervals.h (struct interval): Move from lisp.h.
14282 Use EMACS_INT for position and size info.
14283
14284 * coding.c: Include intervals.h for Fset_text_properties.
14285
14286 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
14287 position and length information.
14288
14289 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
14290
14291 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
14292 position and length information.
14293
14294 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
14295
14296 Change overlays_after and overlays_before so the overlays themselves
14297 are linked into lists, rather than using cons cells. After all each
14298 Lisp_Misc already occupies 5 words, so we can add a `next' field to
14299 Lisp_Overlay for free and save up one cons cell per overlay (not
14300 to mention one indirection when traversing the list of overlay).
14301
14302 * lisp.h (struct Lisp_Overlay): New field `next'.
14303
14304 * buffer.h (struct buffer): Change overlays_before and overlays_after
14305 from Lisp lists of overlays to pointers to overlays.
14306
14307 * buffer.c (overlay_strings, recenter_overlay_lists):
14308 Fix typo in eassert in last commit.
14309 (unchain_overlay): New function.
14310 (add_overlay_mod_hooklist): Use AREF.
14311 (copy_overlays, reset_buffer, overlays_at, overlays_in)
14312 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
14313 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
14314 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
14315 (report_overlay_modification, evaporate_overlays, init_buffer_once):
14316 Adjust to new type of overlays_(before|after).
14317
14318 * alloc.c (mark_object): Mark the new `next' field of overlays.
14319 (mark_buffer): Manually mark the overlays_(after|before) fields.
14320
14321 * coding.c (run_pre_post_conversion_on_str):
14322 * editfns.c (overlays_around):
14323 * xdisp.c (load_overlay_strings):
14324 * fileio.c (Finsert_file_contents):
14325 * indent.c (current_column):
14326 * insdel.c (signal_before_change, signal_after_change):
14327 * intervals.c (set_point_both):
14328 * print.c (temp_output_buffer_setup): Use new type for
14329 overlays_(before|after).
14330
14331 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
14332
14333 * buffer.c (report_overlay_modification): Don't run hooks while
14334 traversing the list of overlays.
14335
14336 * buffer.h (struct buffer): Use an int for overlay_center.
14337 (overlays_at, evaporate_overlays, recenter_overlay_lists)
14338 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
14339
14340 * buffer.c (reset_buffer, recenter_overlay_lists)
14341 (adjust_overlays_for_insert, adjust_overlays_for_delete)
14342 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
14343 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
14344 (overlays_at, evaporate_overlays, recenter_overlay_lists)
14345 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
14346
14347 * xdisp.c (fast_find_position): Remove unused var.
14348
14349 * cmds.c (Qexpand_abbrev): New sym.
14350 (syms_of_cmds): Initialize it.
14351 (internal_self_insert): Use it to call expand-abbrev.
14352
14353 2003-07-09 Kim F. Storm <storm@cua.dk>
14354
14355 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
14356 was configured with --without-xim.
14357 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
14358
14359 2003-07-07 Richard M. Stallman <rms@gnu.org>
14360
14361 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
14362
14363 * alloc.c (Fgarbage_collect): Doc fix.
14364
14365 2003-07-07 Nozomu Ando <nand@mac.com>
14366
14367 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
14368
14369 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
14370
14371 * minibuf.c (read_minibuf): UNGCPRO before returning.
14372 (Ftry_completion, Fall_completions): Doc fix.
14373
14374 * alloc.c (live_float_p): Check that p is not past the `floats' array,
14375 now that `floats' is not the last element of the struct any more.
14376
14377 2003-07-06 Jason Rumney <jasonr@gnu.org>
14378
14379 * w32term.h (ClipboardSequence_Proc): New type.
14380
14381 * w32fns.c (clipboard_sequence_fn): New variable.
14382 (globals_of_w32fns): Initialize it.
14383
14384 * w32select.c (last_clipboard_sequence_number): New variable.
14385 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
14386 number if possible.
14387
14388 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
14389
14390 * m/amdx86-64.h (MARKBIT):
14391 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
14392 MARKBIT and ARRAY_MARK_FLAG any more.
14393
14394 * m/hp800.h (XSETMARKBIT):
14395 * m/sr2k.h (XSETMARKBIT):
14396 * lisp.h (XSETMARKBIT): Remove unused macro.
14397
14398 * lisp.h (mark_object): Change prototype.
14399
14400 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
14401 (last_marked): Change accordingly.
14402 (mark_interval, mark_maybe_object, mark_maybe_pointer)
14403 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
14404 (mark_buffer): Update calls to mark_object.
14405
14406 * bytecode.c (mark_byte_stack):
14407 * fns.c (sweep_weak_table):
14408 * keyboard.c (mark_kboards): Update calls to mark_object.
14409
14410 2003-07-06 Jason Rumney <jasonr@gnu.org>
14411
14412 * alloc.c (struct ablock): Only include padding when there is some.
14413
14414 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
14415
14416 * alloc.c (ALIGN): Add casts to simplify usage.
14417 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
14418 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
14419 (struct ablock, struct ablocks): New types.
14420 (free_ablock): New global var.
14421 (lisp_align_malloc, lisp_align_free): New functions.
14422 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
14423 (struct float_block): Reorder and add gcmarkbits.
14424 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
14425 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
14426 (init_float, make_float): Use lisp_align_malloc.
14427 (free_float, live_float_p): Don't use `type' any more.
14428 (make_float): Use FLOAT_UNMARK to access to mark bit.
14429 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
14430 Use FLOAT_MARKED_P to access the mark bit.
14431 (pure_alloc): Simplify use of ALIGN.
14432 (mark_object): Use FLOAT_MARK to access the mark bit.
14433 (gc_sweep): Use new macros to access the float's mark bit.
14434 (init_alloc_once): Init free_ablock.
14435
14436 * lisp.h (struct Lisp_Float): Remove unused field `type'.
14437
14438 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
14439
14440 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
14441 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
14442 (allocate_buffer): Move.
14443 (string_bytes): Don't mask markbit of `size_byte'.
14444 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
14445 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
14446 Use the `size' field of buffers (rather than the `name' field) for
14447 the mark bit, as is done for all other vectorlike objects.
14448 Use the new macros to access the mark bit of vectorlike objects.
14449
14450 2003-06-26 Richard M. Stallman <rms@gnu.org>
14451
14452 * puresize.h (BASE_PURESIZE): Increment base size.
14453
14454 * xdisp.c (fast_find_position): Enable Gerd's new definition.
14455
14456 * xterm.c (xim_initialize): Undo previous change.
14457
14458 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
14459
14460 * alloc.c (survives_gc_p): Simplify.
14461
14462 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
14463
14464 * window.c (Fset_window_dedicated_p): Simplify.
14465 (display_buffer_1): Don't raise the win from which minibuf was entered.
14466 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
14467 (Fminibuffer_selected_window): Simplify.
14468
14469 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
14470
14471 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
14472 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
14473
14474 * insdel.c (check_markers, adjust_markers_for_delete)
14475 (adjust_markers_for_insert, adjust_markers_for_replace)
14476 (prepare_to_modify_buffer, RESTORE_VALUE):
14477 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
14478 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
14479 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
14480 * alloc.c (Fmake_marker, free_marker, gc_sweep):
14481 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
14482 * editfns.c (save_excursion_restore, transpose_markers):
14483 * window.c (delete_window):
14484 * xdisp.c (message_dolog): Update for new types.
14485
14486 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14487
14488 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
14489 (realize_default_face): Use default_face_done_p for the force_p
14490 argument to set_lface_from_font_name. Set default_face_done_p to one.
14491
14492 * frame.c (make_frame): Initialize default_face_done_p.
14493
14494 * frame.h (struct frame): Add default_face_done_p.
14495
14496 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
14497 will be defined.
14498
14499 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
14500
14501 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
14502 Initialize the new field `gcmarkbit'.
14503 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
14504 (mark_interval_tree): Don't mark the tree separately from the nodes.
14505 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
14506 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
14507 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
14508
14509 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
14510 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
14511 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
14512 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
14513 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
14514
14515 2003-06-24 Dave Love <fx@gnu.org>
14516
14517 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
14518
14519 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
14520 from gnulib.
14521
14522 2003-06-21 Richard M. Stallman <rms@gnu.org>
14523
14524 * fileio.c (Fwrite_region): Alternate messages
14525 for append and partial write.
14526
14527 * keyboard.c (read_key_sequence): When converting upcase fn key to
14528 downcase, update fkey and keytran so `backspace' gets translated.
14529
14530 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
14531
14532 * process.c (wait_reading_process_input): Don't signal SIGIO
14533 in batch mode.
14534
14535 2003-06-17 Kenichi Handa <handa@m17n.org>
14536
14537 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
14538 composite.h.
14539
14540 * xselect.c: Don't include charset.h, coding.h, composite.h.
14541 (Qforeign_selection): New variable.
14542 (syms_of_xselect): Intern and static it.
14543 (selection_data_to_lisp_data): Return a unibyte string made from
14544 data with `foreign-selection' text property.
14545
14546 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
14547
14548 * termhooks.h (EVENT_INIT): New macro.
14549
14550 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
14551
14552 * alloc.c (mark_kboards): Move to keyboard.c.
14553
14554 * keyboard.c (record_asynch_buffer_change, read_avail_input):
14555 * xterm.c (x_dispatch_event):
14556 * xmenu.c (find_and_call_menu_selection):
14557 * xdisp.c (handle_tool_bar_click):
14558 * w32menu.c (menubar_selection_callback):
14559 * sysdep.c (kbd_input_ast, read_input_waiting):
14560 * msdos.c (dos_rawgetc):
14561 * macterm.c (mac_check_for_quit_char):
14562 * macmenu.c (menubar_selection_callback):
14563 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
14564 data to kbd_buffer_store_event.
14565
14566 2003-06-15 Kim F. Storm <storm@cua.dk>
14567
14568 * xdisp.c (x_fix_overlapping_area): Always use area relative X
14569 to fix redisplay problem with tall characters (such as \e,AC\e(B).
14570
14571 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
14572
14573 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
14574
14575 2003-06-12 Kenichi Handa <handa@m17n.org>
14576
14577 * fileio.c (Fwrite_region): Save and restore restriction.
14578
14579 2003-06-12 Dave Love <fx@gnu.org>
14580
14581 * alloca.c (alloca): Declare arg as size_t.
14582
14583 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
14584 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
14585
14586 2003-06-11 Dave Love <fx@gnu.org>
14587
14588 * search.c (shrink_regexp_cache): Use xrealloc.
14589 (syms_of_search): Use xmalloc.
14590
14591 2003-06-10 Kim F. Storm <storm@cua.dk>
14592
14593 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
14594 Adjust phys_cursor.x to be relative to window box, rather than
14595 text area before checking -- to ensure cursor is redrawn when
14596 exposing window.
14597 Note: This also fixes a similar (older) bug if display margins
14598 are present.
14599
14600 2003-06-06 Kenichi Handa <handa@m17n.org>
14601
14602 * coding.c (encoding_buffer_size): If coding->type is
14603 coding_type_ccl, double magnification on CRLF encoding.
14604
14605 2003-06-06 Jason Rumney <jasonr@gnu.org>
14606
14607 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
14608 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
14609
14610 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
14611 Mac too.
14612
14613 2003-06-05 Dave Love <fx@gnu.org>
14614
14615 * strftime.c: Merge changes from gnulib.
14616
14617 * mktime.c (__mktime_internal): Merge changes from gnulib
14618 involving year 69 and dst2.
14619
14620 Changes to merge with gnulib version and be consistent with the
14621 autoconf test:
14622
14623 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
14624 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
14625 [HAVE_LOCALE_H]: Include locale.h.
14626 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
14627
14628 2003-06-05 Kim F. Storm <storm@cua.dk>
14629
14630 * window.c (coordinates_in_window): Convert X and Y to window
14631 relative coordinates inside mode-line and header-line parts.
14632 Convert X and Y to margin area relative coordinates inside left
14633 and right display margin parts.
14634
14635 2003-06-05 Jason Rumney <jasonr@gnu.org>
14636
14637 * w32fns.c (add_system_logical_colors_to_map): New function.
14638 (Fx_open_connection): Use it.
14639
14640 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
14641
14642 * process.c (allocate_pty): Revert part of the previous patch.
14643 (Faccept_process_output): Simplify.
14644
14645 2003-06-04 Jason Rumney <jasonr@gnu.org>
14646
14647 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
14648
14649 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
14650 (lispy_mouse_wheel_names): Remove.
14651 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
14652 Always define drag_and_drop_syms.
14653
14654 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
14655 WHEEL_EVENT events.
14656
14657 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
14658
14659 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
14660
14661 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
14662
14663 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14664
14665 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
14666 menu item label.
14667
14668 2003-06-03 Richard M. Stallman <rms@gnu.org>
14669
14670 * window.c (Fwindow_edges): Doc fix.
14671 (Fwindow_pixel_edges, Fwindow_inside_edges)
14672 (Fwindow_inside_pixel_edges): New functions.
14673 (syms_of_window): defsubr them.
14674
14675 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
14676 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
14677
14678 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
14679
14680 * dispnew.c (Fsit_for): Don't lie about the number of args.
14681
14682 2003-06-02 Dave Love <fx@gnu.org>
14683
14684 * callproc.c: Use HAVE_FCNTL_H, not USG5.
14685 (syms_of_callproc) <process-environment>: Doc fix.
14686
14687 * doc.c: Use HAVE_FCNTL_H, not USG5.
14688
14689 * xfaces.c (font_rescale_ratio): Fix for K&R.
14690
14691 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
14692
14693 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
14694
14695 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
14696
14697 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
14698 (xg_create_frame_widgets): Use ENCODE_UTF_8.
14699
14700 * xterm.c (Qutf_8): Move to coding.c
14701
14702 * xmenu.c (ENCODE_MENU_STRING): New.
14703 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
14704 Use it.
14705
14706 * coding.h (ENCODE_UTF_8): New.
14707 (Qutf_8): Declare.
14708
14709 * coding.c (Qutf_8): New.
14710 (syms_of_coding): Intern it.
14711
14712 * fns.c: Doc fixes.
14713
14714 2003-06-02 Kenichi Handa <handa@m17n.org>
14715
14716 * buffer.c (Fset_buffer_multibyte): Fix previous change.
14717
14718 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
14719
14720 * lread.c (openp): Make sure STR is a string.
14721
14722 2003-06-01 David Ponce <david@dponce.com>
14723
14724 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
14725 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
14726
14727 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
14728 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
14729 (discard_mouse_events): Discard WHEEL_EVENT events too.
14730 (lispy_wheel_names, wheel_syms): New.
14731 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
14732 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
14733 (make_lispy_event): Add WHEEL_EVENT handler.
14734
14735 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
14736 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
14737 WHEEL_EVENT events.
14738
14739 2003-05-31 John Paul Wallington <jpw@gnu.org>
14740
14741 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
14742 timer are in lisp/emacs-lisp.
14743
14744 2003-05-31 Kenichi Handa <handa@m17n.org>
14745
14746 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
14747 region when a buffer is changed to unibyte.
14748
14749 * charset.h (VALID_LEADING_CODE_P): New macro.
14750 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
14751
14752 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
14753 is nonzero, accept multibyte form of eight-bit-control chars.
14754 (decode_composition_emacs_mule): Likewise.
14755 (decode_coding_emacs_mule): Likewise.
14756 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
14757 multibyte form of eight-bit-control chars.
14758
14759 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
14760 (Finsert_file_contents): If coding-system-for-read is bound to
14761 Qauto_save_coding, use the coding system emacs-mule with special
14762 setting for recovering a file.
14763 (choose_write_coding_system): On auto saving, use the coding
14764 system emacs-mule with special setting for auto saving.
14765 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
14766
14767 2003-05-30 Kenichi Handa <handa@m17n.org>
14768
14769 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
14770 properly before calling ccl_driver.
14771
14772 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
14773
14774 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
14775 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
14776 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
14777
14778 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
14779
14780 * xfaces.c (realize_default_face): Do not abort if lface is
14781 non-existent - reverts change from 2003-05-19.
14782
14783 2003-05-29 Kenichi Handa <handa@m17n.org>
14784
14785 * coding.c (decode_coding_iso2022): Pay attention to the byte
14786 sequence of CTEXT extended segment, and retain those bytes as is.
14787
14788 2003-05-28 Kenichi Handa <handa@m17n.org>
14789
14790 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
14791 of CODING_REPLACEMENT_CHARACTER.
14792 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
14793 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
14794 check this flag on encoding.
14795 (encode_coding_sjis_big5):
14796 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
14797 (Fset_terminal_coding_system_internal):
14798 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
14799 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
14800
14801 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
14802 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
14803 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
14804
14805 2003-05-28 Richard M. Stallman <rms@gnu.org>
14806
14807 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
14808
14809 * eval.c (unbind_to): Move init of this_binding to separate statement.
14810
14811 2003-05-28 Kim F. Storm <storm@cua.dk>
14812
14813 * xdisp.c (expose_window): Fix error in calculation of
14814 window relative coordinates of area to redisplay.
14815
14816 2003-05-27 Jason Rumney <jasonr@gnu.org>
14817
14818 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
14819
14820 2003-05-27 David Ponce <david@dponce.com>
14821
14822 Handle W32 mouse wheel events as mouse click events, like in X.
14823
14824 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
14825 MOUSE_WHEEL_EVENT anymore.
14826
14827 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
14828 Scrolling down/up the mouse wheel is respectively mapped to mouse
14829 button 4 and 5.
14830 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
14831 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
14832 WM_MOUSEWHEEL events.
14833
14834 2003-05-27 Andreas Schwab <schwab@suse.de>
14835
14836 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
14837
14838 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
14839 partially visible line.
14840
14841 * alloc.c (Fgarbage_collect): Fix last change.
14842
14843 2003-05-26 John Paul Wallington <jpw@gnu.org>
14844
14845 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
14846
14847 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
14848
14849 * window.c (Fset_window_buffer): Add type of `keep_margins'.
14850 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
14851
14852 * window.h (window_box_text_cols): Declare.
14853
14854 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
14855 (x_draw_vertical_border): Remove unused var `f'.
14856
14857 * xfaces.c (build_scalable_font_name): Remove `unused var
14858 pixel_size' warning.
14859
14860 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
14861
14862 * unexelf.c (unexec): Remove `unused var n' warning.
14863
14864 * strftime.c (my_strftime_localtime_r): Remove `defined but
14865 unused' warning.
14866
14867 * process.c (allocate_pty): Remove `unused var stb' and
14868 `cp might be used uninitialized' warnings.
14869
14870 * dispnew.c (mode_line_string): Remove unused var `f'.
14871
14872 * coding.c (find_safe_codings): Remove unused var `i'.
14873
14874 * bytecode.c (Fbyte_code): Remove `unused val' warning.
14875
14876 * buffer.c (Fkill_buffer): Remove unused var `list'.
14877
14878 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
14879
14880 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14881
14882 * frame.c (make_frame): Condition want_fullscreen with
14883 HAVE_WINDOW_SYSTEM.
14884
14885 2003-05-25 Juanma Barranquero <lektu@terra.es>
14886
14887 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
14888 (Fwindow_scroll_bars): Fix typo in docstring.
14889
14890 2003-05-24 Kim F. Storm <storm@cua.dk>
14891
14892 The following changes serve several purposes:
14893
14894 1) Swap the position of fringes and display margins in windows, i.e.
14895 the fringes are now displayed between the margins and the text area
14896 (by default).
14897
14898 2) Allow fringe and scroll bar parameters to be set per-buffer and
14899 per-window (like display margins). Such settings are now stored
14900 in window configurations, preserved when frames are resized, and
14901 copied when windows are split vertically or horizontally.
14902 Several bugs related to display margins have been fixed.
14903
14904 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
14905
14906 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
14907 rather than FRAME_WIDTH (FRAME_FONT (f)).
14908
14909 5) Introduce a consistent naming of variables, members and macros
14910 depending on whether their value is measured in pixels or in
14911 canonical columns/lines. Pixel dimensions are named *_width and
14912 *_height, while canonical columns/lines are named *_cols and
14913 *_lines. Pixel positions are named *_x and *_y, while column/line
14914 positions are named *_col and *_line.
14915
14916 6) Consolidate more of the X, W32, and MAC gui code by moving
14917 common data into struct frame, and generalize it for the non-gui
14918 case by using suitable defaults.
14919
14920 7) Cleanup and consolidate the macros controlling frame and window
14921 layout into frame.h and window.h, and generalize the use of the
14922 various window_box_* functions (enhanced to handle the new fringe
14923 position and the per-window fringe and scroll bar settings).
14924
14925 * frame.h (struct frame): Rename members height to text_lines,
14926 width to text_cols, window_height to total_lines, window_width to
14927 total_cols, new_height to new_text_lines, new_width to
14928 new_text_cols. All uses changed.
14929 (struct frame): New members which consolidate common members of
14930 x_output, w32_output, and mac_output structures: left_pos,
14931 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
14932 win_gravity, size_hint_flags, border_width, internal_border_width,
14933 line_height, fringe_cols, left_fringe_width, right_fringe_width,
14934 want_fullscreen. All uses changed.
14935 (struct frame): New member column_width contaning the canonical
14936 column width, analogue to line_height. All uses changed.
14937 (struct frame): Rename members scroll_bar_pixel_width to
14938 config_scroll_bar_width, and scroll_bar_cols to
14939 config_scroll_bar_cols. All uses changed.
14940 (struct frame): New member scroll_bar_actual_width which
14941 consolidates and renames the vertical_scroll_bar_extra member of
14942 x_output, w32_output, and mac_output structures. All uses changed.
14943 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
14944 from x/w32/macterm.h files. All uses changed. Also change code
14945 which referred to f->output_data...->pixel_height.
14946 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
14947 from x/w32/macterm.h files. All uses changed. Also change code
14948 which referred to f->output_data...->pixel_width.
14949 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
14950 Also change code which referred to f->height.
14951 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
14952 Also change code which referred to f->width.
14953 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
14954 to update new_text_lines and new_text_cols members directly.
14955 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
14956 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
14957 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
14958 FRAME_SCROLL_BAR_COLS. All uses changed.
14959 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
14960 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
14961 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
14962 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
14963 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
14964 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
14965 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
14966 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
14967 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
14968 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
14969 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
14970 Unconditionally return line_height member (it now has proper value
14971 also for non-window frames).
14972 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
14973 return new column_width member (rather than the default font width).
14974 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
14975 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
14976 from x/w32/macterm.h files. Unconditionally return corresponding
14977 member of frame structure (they now have proper values also for
14978 non-window frames).
14979 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
14980 Calculate return value from left and right widths.
14981 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
14982 internal_border_width member (has proper value for non-window frame).
14983 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
14984 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
14985 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
14986 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
14987 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
14988 consolidated from xterm.h, macterm.h, and w32term.h.
14989 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
14990 consolidated from xterm.h, macterm.h, and w32term.h.
14991 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
14992 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
14993 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
14994 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
14995 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
14996 consolidated from x/mac/w32term.h.
14997 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
14998 consolidated from x/mac/w32term.h.
14999 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
15000 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
15001 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
15002 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
15003
15004 * window.h (struct window): Rename members left to left_col,
15005 top to top_line, height to total_lines, width to total_cols,
15006 left_margin_width to left_margin_cols, right_margin_width to
15007 right_margin_cols, orig_height to orig_total_lines, orig_top to
15008 orig_top_line. All uses changed.
15009 (struct window): New members left_fringe_width, right_fringe_width,
15010 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
15011 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
15012 New macros primarily used to simplify other macros.
15013 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
15014 referred to XINT (w->width).
15015 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
15016 referred to XINT (w->height).
15017 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
15018 referred to XINT (w->width) * canon_x_unit.
15019 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
15020 referred to XINT (w->height) * canon_y_unit.
15021 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
15022 referred to XINT (w->left).
15023 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
15024 all uses and code that referred to XINT (w->left) + XINT (w->width).
15025 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
15026 referred to XINT (w->top).
15027 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
15028 referred to XINT (w->top) + XINT (w->height).
15029 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
15030 referred to XINT (w->left) * canon_x_unit.
15031 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
15032 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
15033 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
15034 referred to XINT (w->top) * canon_y_unit.
15035 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
15036 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
15037 (WINDOW_LEFTMOST_P): New macro.
15038 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
15039 All uses changed.
15040 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
15041 All uses changed.
15042 (WINDOW_BOX_LEFT_EDGE_X): Rename from
15043 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
15044 Do not exclude left fringe width.
15045 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
15046 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
15047 Do not exclude fringe widths.
15048 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
15049 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
15050 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
15051 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
15052 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
15053 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
15054 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
15055 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
15056 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
15057 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
15058 New macros. Change code which referenced corresponding
15059 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
15060 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
15061 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
15062 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
15063 allow per-window scroll-bar settings.
15064 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
15065 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
15066 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
15067 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
15068 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
15069 FRAME_SCROLL_BAR_WIDTH.
15070 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
15071 (WINDOW_SCROLL_BAR_AREA_X): New macros.
15072 (WINDOW_HEADER_LINE_HEIGHT): Rename from
15073 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
15074 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
15075 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
15076 (WINDOW_BOX_TEXT_HEIGHT): Rename from
15077 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
15078 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
15079 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
15080 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
15081 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
15082 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
15083 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
15084 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
15085 (window_from_coordinates): Update prototype.
15086 (Fset_window_buffer): Update EXFUN.
15087 (set_window_buffer): Update prototype.
15088
15089 * dispextern.h (struct glyph_matrix): Rename members window_left_x
15090 to window_left_col, window_top_y to window_top_line. All uses
15091 changed.
15092 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
15093 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
15094 internal_border_width is now set to 0 for non-window frames.
15095 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
15096 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
15097 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
15098 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
15099 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
15100 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
15101 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
15102 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
15103 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
15104 Move to window.h and renamed [see window.h changes].
15105 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
15106 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
15107 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
15108 Use WINDOW_TOTAL_LINES.
15109 (frame_update_line_height): Remove prototype.
15110
15111 * buffer.h (struct buffer): Rename members measured in columns:
15112 left_margin_width to left_margin_cols, right_margin_width to
15113 right_margin_cols. All uses changed.
15114 New members left_fringe_width, right_fringe_width,
15115 fringes_outside_margins for per-buffer fringe settings.
15116 New members scroll_bar_width and vertical_scroll_bar_type for
15117 per-buffer scroll bar settings.
15118
15119 * buffer.c (init_buffer_once): Set buffer_defaults and
15120 buffer_local_flags for new buffer-local variables
15121 left_fringe_width, right_fringe_width, fringes_outside_margins,
15122 scroll_bar_width, and vertical_scroll_bar_type.
15123 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
15124 default-* variables for them.
15125
15126 * dispnew.c: Make (many) trivial substitutions for renamed and
15127 new macros in dispextern.h, frame.h and window.h.
15128 (mode_line_string): No need to adjust width for mode lines, as it
15129 is already adjusted by the caller.
15130 (marginal_area_string): Handle fringes inside/outside margins.
15131
15132 * frame.c: Make (many) trivial substitutions for renamed and
15133 new macros in dispextern.h, frame.h and window.h.
15134 (make_frame): Initialize left_fringe_width, right_fringe_width,
15135 fringe_cols, scroll_bar_actual_width, border_width,
15136 internal_border_width, column_width, line_height, x_pixels_diff,
15137 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
15138 members with values suitable for a non-window frames.
15139
15140 * gtkutil.c: Make (many) trivial substitutions for renamed and
15141 new macros in dispextern.h, frame.h and window.h.
15142
15143 * indent.c: Make (few) trivial substitutions for renamed and
15144 new macros in dispextern.h, frame.h and window.h.
15145
15146 * keyboard.c: Make (many) trivial substitutions for renamed and
15147 new macros in dispextern.h, frame.h and window.h.
15148 (make_lispy_event): Use window positions returned from
15149 window_from_coordinates when constructing the lisp event for
15150 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
15151 (incorrect) values locally.
15152 (make_lispy_movement): Use window positions returned from
15153 window_from_coordinates when constructing the lisp event, rather
15154 than calculating (incorrect) values locally.
15155
15156 * scroll.c: Make (some) trivial substitutions for renamed and
15157 new macros in dispextern.h, frame.h and window.h.
15158
15159 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
15160 scroll-bars.
15161
15162 * sysdep.c: Make (few) trivial substitutions for renamed and
15163 new macros in dispextern.h, frame.h and window.h.
15164
15165 * term.c: Make (some) trivial substitutions for renamed and
15166 new macros in dispextern.h, frame.h and window.h.
15167
15168 * widget.c: Make (few) trivial substitutions for renamed and
15169 new macros in dispextern.h, frame.h and window.h.
15170
15171 * window.c: Make (many) trivial substitutions for renamed and
15172 new macros in dispextern.h, frame.h and window.h.
15173 (make_window): Initialize new members
15174 left_margin_cols, right_margin_cols, left_fringe_width,
15175 right_fringe_width, fringes_outside_margins, scroll_bar_width,
15176 and vertical_scroll_bar_type.
15177 (coordinates_in_window): Adapt to new fringe/margin positions
15178 and per-window fringes and scroll-bars.
15179 Fix bug related to incorrectly adjusting coordinates by
15180 frame's internal_border_width (the effect normally negible since
15181 the internal_border_width is typically 0 or 1 pixel, but very
15182 noticeable for an internal_border_width of e.g. 25 pixels).
15183 Upon successful return (other than ON_NOTHING), the coordinates
15184 are now always properly converted to window relative for the
15185 given display element.
15186 (window_from_coordinates): Add new parameters wx and wy to
15187 return the window relative x and y position in the returned
15188 window and part. A null arg means, don't return the position.
15189 All callers changed.
15190 (adjust_window_margins): New function which may reduce the width
15191 of the display margins if a window's text area is too small after
15192 resizing or splitting windows.
15193 (size_window): Fix bug that did not account for display margin
15194 widths when checking the minimum width of a window; use
15195 adjust_window_margins.
15196 (set_window_buffer): Call Fset_window_fringes and
15197 Fset_window_scroll_bars to setup per-window elements.
15198 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
15199 existing display margin, fringe widths, and scroll bar settings
15200 (e.g. after splitting a window or resizing the frame).
15201 All callers changed.
15202 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
15203 (Fsplit_window): Duplicate original window's display margin,
15204 fringe, and scroll-bar settings; then call Fset_window_buffer with
15205 KEEP_MARGINS non-nil. This fixes a bug which caused a split
15206 window to only preserve the display margins in one of the windows.
15207 When splitting horizontally, call adjust_window_margins on both
15208 windows to ensure that the text area of the new windows is non too
15209 narrow. This fixes a bug which could cause Emacs to trap if the
15210 width of the split window was less than the width of the display
15211 margins.
15212 (window_box_text_cols): Rename from window_internal_width.
15213 All uses changed. Adapt to per-window fringes and scroll bars.
15214 Fix bug that caused vertical separator to be subtracted also on
15215 window frames. Fix another bug that did not reduce the returned
15216 value by the columns used for display margins.
15217 (window_scroll_line_based): Fix bug related to scrolling too much
15218 when display margins are present (implicitly fixed by the fix to
15219 window_box_text_cols).
15220 (scroll_left, scroll_right): Fix bug related to scrolling too far
15221 by default when display margins are present (implicitly fixed by
15222 the fix to window_box_text_cols).
15223 (struct saved_window): Rename members left to left_col, top to
15224 top_line, width to total_cols, height to total_lines, orig_top to
15225 orig_top_line, orig_height to orig_total_lines. All uses changed.
15226 New members left_margin_cols, right_margin_cols,
15227 left_fringe_width, right_fringe_width, fringes_outside_margins,
15228 scroll_bar_width, and vertical_scroll_bar_type for saving
15229 per-window display elements.
15230 (Fset_window_configuration): Restore display margins, fringes,
15231 and scroll bar settings. This fixes a bug which caused display
15232 margins to be discarded when saving and restoring a window
15233 configuration.
15234 (save_window_save): Save display margins, fringes, and scroll bar
15235 settings. This fixes a bug which caused display margins to be
15236 discarded when saving and restoring a window configuration.
15237 (Fset_window_margins): Do nothing if display margins are not
15238 really changed. Otherwise, call adjust_window_margins to ensure
15239 the text area doesn't get too narrow. This fixes a bug which
15240 could cause Emacs to trap if setting display margins wider than
15241 the width of the window.
15242 (Fset_window_fringes): New defun to allow user to specifically set
15243 this window's fringe widths and position vs. display margins.
15244 (Fwindow_fringes): New defun to return window's actual fringe settings.
15245 (Fset_window_scroll_bars): New defun to allow user to specifically
15246 set this window's scroll bar width and position.
15247 (Fwindow_scroll_bars): New defun to return window's actual scroll
15248 bar settings.
15249 (compare_window_configurations): Also compare display margins,
15250 fringes, and scroll bar settings.
15251 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
15252
15253 * xdisp.c: Make (many) trivial substitutions for renamed and
15254 new macros in dispextern.h, frame.h and window.h.
15255 (window_box_width): Adapt to per-window fringes and scroll bars,
15256 and new fringe vs. display margin position. Note that returned
15257 value is no longer guaranteed to be a whole multiple of the frame
15258 column width, since per-window fringes may now be any width.
15259 (window_box_left_offset): New function like window_box_left, but
15260 value is relative to left border of window (rather than frame).
15261 (window_box_right_offset): New function like window_box_right,
15262 but value is relative to left border of window.
15263 (window_box_left): Adapt to per-window fringes and scroll bars,
15264 and new fringe vs. display margin position. Simplify by using
15265 WINDOW_LEFT_EDGE_X and window_box_left_offset.
15266 (window_box): Allow null args for unnecessary return values;
15267 change/simplify relevant callers.
15268 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
15269 and new fringe vs. display margin position.
15270 Use window_box_left_offset and window_box_right_offset
15271 (get_glyph_string_clip_rect): Adapt to per-window fringes and
15272 scroll bars, and new fringe vs. display margin position.
15273 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
15274 (draw_fringe_bitmap): Rework to handle per-window fringes and new
15275 fringe vs. display margin position.
15276 (hscroll_window_tree): Use window_box_width instead of window_box.
15277 (redisplay_window): Adapt to per-window scroll bars.
15278 (draw_glyphs): Rework to handle per-window fringes and scroll
15279 bars, and new fringe vs. display margin position.
15280 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
15281 (x_clear_end_of_line): Adapt to per-window fringes and scroll
15282 bars, and new fringe vs. display margin position. Fix bug which
15283 increased total width of full_width rows by width of scroll bars
15284 although window's total width already includes that.
15285 (x_fix_overlapping_area): Simplify using window_box_left_offset.
15286 (expose_area): Simplify using window_box_left_offset.
15287 (x_draw_vertical_border): Handle per-window scroll bar settings,
15288 mixing windows with left, right and no scroll bars.
15289
15290 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
15291 where it's used in x_list_fonts (for clarity).
15292 (frame_update_line_height): Remove unused function; functionality
15293 is now done directly when setting the default font in x_set_font.
15294
15295 * xfns.c: Make (many) trivial substitutions for renamed and
15296 new macros in dispextern.h, frame.h and window.h.
15297
15298 * xmenu.c: Make (some) trivial substitutions for renamed and
15299 new macros in dispextern.h, frame.h and window.h.
15300
15301 * xterm.h (struct x_output): Move members left_pos, top_pos,
15302 border_width, pixel_height, pixel_width, line_height,
15303 internal_border_width, vertical_scroll_bar_extra,
15304 left_fringe_width, right_fringe_width, fringe_cols,
15305 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
15306 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
15307 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
15308 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
15309 (PIXEL_WIDTH, PIXEL_HEIGHT)
15310 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
15311 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
15312 frame.h and renamed [see frame.h changes].
15313 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
15314 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
15315 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
15316 and renamed [see frame.h changes].
15317
15318 * xterm.c: Make (several) trivial substitutions for renamed and
15319 new macros in dispextern.h, frame.h and window.h.
15320 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
15321 (scroll_run): Adapt to new fringe position.
15322 (glyph_rect): Use window coordinates returned from
15323 window_from_coordinates rather than frame_to_window_pixel_xy.
15324 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
15325 scroll-bars.
15326 (handle_one_xevent): Simplify a USE_GTK conditional.
15327 (x_clip_to_row): Remove superfluous whole_line_p arg and code
15328 (fringes are now inside margins, i.e. always in the clipping area).
15329 All callers changed.
15330 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
15331 directly, then call compute_fringe_widths. Don't call
15332 frame_update_line_height.
15333
15334 * w32term.h (struct w32_output): Move members left_pos, top_pos,
15335 border_width, pixel_height, pixel_width, line_height,
15336 internal_border_width, vertical_scroll_bar_extra,
15337 left_fringe_width, right_fringe_width, fringe_cols,
15338 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
15339 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
15340 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
15341 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
15342 (PIXEL_WIDTH, PIXEL_HEIGHT)
15343 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
15344 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
15345 frame.h and renamed [see frame.h changes].
15346 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
15347 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
15348 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
15349 and renamed [see frame.h changes].
15350
15351 * w32term.c: Make (several) trivial substitutions for renamed and
15352 new macros in dispextern.h, frame.h and window.h.
15353 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
15354 (glyph_rect): Use window coordinates returned from
15355 window_from_coordinates rather than frame_to_window_pixel_xy.
15356 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
15357 scroll-bars.
15358 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
15359 (fringes are now inside margins, i.e. always in the clipping area).
15360 All callers changed.
15361 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
15362 directly, then call compute_fringe_widths. Don't call
15363 frame_update_line_height.
15364
15365 * w32console.c: Make (few) trivial substitutions for renamed and
15366 new macros in dispextern.h, frame.h and window.h.
15367
15368 * w32fns.c: Make (many) trivial substitutions for renamed and
15369 new macros in dispextern.h, frame.h and window.h.
15370
15371 * w32menu.c: Make (few) trivial substitutions for renamed and
15372 new macros in dispextern.h, frame.h and window.h.
15373
15374 * macterm.h (struct mac_output): Move members left_pos, top_pos,
15375 border_width, pixel_height, pixel_width, line_height,
15376 internal_border_width, vertical_scroll_bar_extra,
15377 left_fringe_width, right_fringe_width, fringe_cols,
15378 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
15379 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
15380 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
15381 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
15382 (PIXEL_WIDTH, PIXEL_HEIGHT)
15383 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
15384 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
15385 frame.h and renamed [see frame.h changes].
15386 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
15387 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
15388 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
15389 and renamed [see frame.h changes].
15390
15391 * macterm.c: Make (several) trivial substitutions for renamed and
15392 new macros in dispextern.h, frame.h and window.h.
15393 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
15394 (glyph_rect): Use window coordinates returned from
15395 window_from_coordinates rather than frame_to_window_pixel_xy.
15396 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
15397 scroll-bars.
15398 (x_clip_to_row): Remove superfluous whole_line_p arg and code
15399 (fringes are now inside margins, i.e. always in the clipping area).
15400 All callers changed.
15401 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
15402 directly, then call compute_fringe_widths. Don't call
15403 frame_update_line_height.
15404
15405 * macfns.c: Make (several) trivial substitutions for renamed and
15406 new macros in dispextern.h, frame.h and window.h.
15407 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
15408
15409 * macmenu.c: Make (few) trivial substitutions for renamed and
15410 new macros in dispextern.h, frame.h and window.h.
15411
15412 * msdos.h (struct x_output): Remove members left_pos, top_pos,
15413 and line_height, and use corresponding new members in struct
15414 frame. All uses changed.
15415 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
15416 superseeded by corresponding macros in frame.h.
15417
15418 * msdos.c: Make (several) trivial substitutions for renamed and
15419 new macros in dispextern.h, frame.h and window.h.
15420 (IT_note_mouse_highlight): Use updated window coordinates returned
15421 by window_from_coordinates, rather than adjusting them locally.
15422 (internal_terminal_init): No need to initialize line_height here;
15423 it now defaults to 1.
15424
15425 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
15426
15427 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
15428 dropping `down' events.
15429
15430 2003-05-24 Andreas Schwab <schwab@suse.de>
15431
15432 * coding.c (find_safe_codings): Fix last change.
15433
15434 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
15435
15436 * xfns.c (x_window): Fix typo from 2003-05-21 change.
15437
15438 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
15439
15440 * xdisp.c (display_mode_element): Increase max depth.
15441 Simplify the error handling code. Use a different error string
15442 for the case where we hit the depth limit.
15443
15444 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
15445
15446 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
15447
15448 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
15449
15450 * intervals.c (get_local_map): Don't get char-property of previous
15451 point any more: get_pos_property already does it and better.
15452
15453 2003-05-21 Dave Love <fx@gnu.org>
15454
15455 [Merged from unicode branch.]
15456
15457 * xfns.c (x_window, x_window): Use use_xim.
15458
15459 * xterm.c (use_xim): Initialize.
15460 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15461 (x_term_init): Maybe set use_xim.
15462
15463 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15464
15465 2003-05-21 Jason Rumney <jasonr@gnu.org>
15466
15467 * unexw32.c (_start): Remove _fmode initialization.
15468
15469 * emacs.c (main) [WINDOWSNT]: Move it here.
15470
15471 2003-05-20 Dave Love <fx@gnu.org>
15472
15473 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
15474
15475 2003-05-19 Richard M. Stallman <rms@gnu.org>
15476
15477 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
15478 as value for QCfont attribute.
15479 (realize_default_face): lface should already exist; crash if not.
15480 Specify 0 for FORCE_P when calling set_lface_from_font_name.
15481
15482 * frame.c (Fignore_event): Doc fix.
15483
15484 2003-05-19 Kenichi Handa <handa@m17n.org>
15485
15486 * coding.c (decode_coding_string): Handle post-read-conversion
15487 even if the coding doesn't require decoding.
15488
15489 2003-05-18 Richard M. Stallman <rms@gnu.org>
15490
15491 * callproc.c (Fcall_process_region): Doc fix.
15492
15493 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
15494
15495 * lread.c (Fload): Print a message if package is obsolete.
15496
15497 * window.c (Fselect_window): Add optional `norecord' arg.
15498 (select_window_1): Fold into Fselect_window.
15499 (select_window_norecord): New function.
15500 (temp_output_buffer_show): Use it. Preserve current buffer.
15501
15502 * window.h (Fselect_window): Update declaration.
15503
15504 * window.c (delete_window, Fother_window, Fset_window_configuration):
15505 * minibuf.c (read_minibuf):
15506 * macterm.c (x_new_focus_frame):
15507 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
15508 * callint.c (Fcall_interactively):
15509 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
15510
15511 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
15512
15513 2003-05-17 David Kastrup <dak@gnu.org>
15514
15515 * process.c (read_process_output): Back out change from 2003-03-09.
15516
15517 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
15518
15519 * editfns.c (get_pos_property): Don't assume that `object' = nil.
15520
15521 * textprop.c (text_property_stickiness): New arg `buffer'.
15522
15523 * intervals.h (text_property_stickiness): New arg `buffer'.
15524 (get_pos_property): Declare.
15525
15526 * intervals.c (get_local_map): Use get_pos_property, to obey
15527 stickiness and empty overlays.
15528 (create_root_interval, graft_intervals_into_buffer): Use BEG.
15529 (merge_properties, intervals_equal, merge_properties_sticky):
15530 Use XCAR, XCDR.
15531 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
15532
15533 2003-05-17 Richard M. Stallman <rms@gnu.org>
15534
15535 * minibuf.c (read_minibuf): If buffer is empty, record the default
15536 in the history.
15537 (Fminibuffer_complete_word): When deleting the overlap, take account
15538 of its real position.
15539
15540 * fns.c (map_char_table): Fix previous change.
15541
15542 * syntax.c (find_defun_start):
15543 When open_paren_in_column_0_is_defun_start,
15544 return beginning of buffer.
15545
15546 * lisp.h (map_char_table): Declare added arg.
15547
15548 * fns.c (map_char_table): New arg TABLE gets the master table.
15549 All calls changed.
15550 Process default and inheritance, resorting to Faref if necessary.
15551
15552 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15553 (Faccessible_keymaps): Pass new arg to map_char_table.
15554
15555 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
15556
15557 * casetab.c (set_case_table): Pass new arg to map_char_table.
15558
15559 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
15560
15561 * lisp.h (specbinding_func): New typedef.
15562 (struct specbinding): Use specbinding_func, to put the `volatile'
15563 in the right place.
15564
15565 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
15566 to avoid GCC warning.
15567
15568 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
15569
15570 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
15571
15572 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
15573
15574 * keyboard.c (apply_modifiers): Don't fill the other cache.
15575
15576 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
15577
15578 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
15579
15580 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
15581 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
15582 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
15583 (Fset_window_configuration, Fcurrent_window_configuration)
15584 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
15585 (Fpos_visible_in_window_p, mark_window_cursors_off)
15586 (window_internal_height, window_internal_width, Frecenter)
15587 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
15588 (replace_buffer_in_all_windows, init_window_once, init_window)
15589 (syms_of_window, keys_of_window): Move from lisp.h.
15590 * lisp.h: Move window.c declarations to window.h.
15591
15592 * bytecode.c: Include window.h.
15593 * emacs.c: Include window.h.
15594
15595 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
15596 (keyremap): Add `parent' field.
15597 (keyremap_step): Use it. Remove `parent' argument.
15598 (read_key_sequence): Setup and use the new `parent' field.
15599
15600 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
15601
15602 * keyboard.c (adjust_point_for_property): Ensure termination.
15603
15604 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
15605
15606 * keyboard.c (follow_key): Remove dead variable `did_meta'.
15607 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
15608 duplicated handling of function-key-map and key-translation-map
15609 in read_key_sequence.
15610 (read_key_sequence): Use them.
15611
15612 * keyboard.c (adjust_point_for_property): Try harder to move point
15613 to the non-sticky end of an invisible property.
15614
15615 * xdisp.c (single_display_prop_intangible_p): Make `space' display
15616 property intangible as well.
15617
15618 2003-05-10 Andreas Schwab <schwab@suse.de>
15619
15620 * xmenu.c (single_menu_item): Change last parameter to void* to
15621 avoid warning.
15622
15623 2003-05-09 Richard M. Stallman <rms@gnu.org>
15624
15625 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
15626 Bind Qinhibit_modification_hooks to t so there will be no GC.
15627 Rename local `tem' to `save_deactivate_mark'.
15628
15629 * eval.c (specpdl_ptr): Declare volatile.
15630 (unbind_to): Copy the whole binding and decrement specpdl_ptr
15631 before doing the work of unbinding it.
15632
15633 * lisp.h (struct specbinding): Declare elements volatile.
15634 (specpdl_ptr): Declare volatile.
15635
15636 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
15637
15638 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
15639 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
15640
15641 2003-05-08 Dave Love <fx@gnu.org>
15642
15643 * coding.c (Vlast_coding_system_used): Doc fix.
15644
15645 2003-05-07 Jason Rumney <jasonr@gnu.org>
15646
15647 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
15648 when system does not support them.
15649
15650 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
15651
15652 * fileio.c (Qwrite_region_annotate_functions): New var.
15653 (build_annotations): Use it to process the global part of the hook.
15654 (syms_of_fileio): Init and staticpro it.
15655
15656 * keyboard.c (safe_run_hooks_error): Display a message instead of
15657 silently ignoring the error.
15658
15659 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
15660
15661 * keyboard.c (input_available_signal): Mark static.
15662 (menu_bar_items): Use map_keymap.
15663 (menu_bar_one_keymap): Remove.
15664 (menu_bar_item): Adjust arglist (for use in map_keymap).
15665 Properly hide a second binding when not both are keymaps.
15666
15667 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
15668 (single_keymap_panes): Use it and map_keymap.
15669 (single_menu_item): Use skp as well.
15670
15671 * keymap.h (map_keymap_function_t): New type.
15672 (map_keymap): Declare.
15673
15674 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
15675 (map_keymap_call, Fmap_keymap): New functions.
15676 (syms_of_keymap): Defsubr map-keymap.
15677
15678 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15679
15680 * gtkutil.c (create_dialog, make_widget_for_menu_item)
15681 (make_menu_item, create_menus, xg_update_menu_item): Don't call
15682 ..._with_mnemonic functions for menu items.
15683
15684 2003-05-01 Kenichi Handa <handa@m17n.org>
15685
15686 * coding.c (coding_system_accept_latin_extra_p): Delete this
15687 function.
15688 (find_safe_codings): Pay attention to
15689 the property tranlsation-table-for-encode of each codings.
15690 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
15691
15692 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
15693
15694 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
15695
15696 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
15697
15698 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
15699
15700 * lisp.h (CHECK): Wrap args in parenthesis.
15701 (specbind): Fix doc: symbol = Qnil is not supported any more.
15702
15703 * bytecode.c (Fbyte_code) <unwind-protect>:
15704 Use Fprogn rather than 0 and Qnil.
15705
15706 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
15707 `double', and `triple' modifiers as well.
15708
15709 2003-04-30 Richard M. Stallman <rms@gnu.org>
15710
15711 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
15712
15713 * alloc.c (abort_on_gc): New variable.
15714 (Fgarbage_collect): Abort if abort_on_gc is set.
15715
15716 * lisp.h (abort_on_gc): Add decl.
15717
15718 * eval.c (Fsignal): Clear abort_on_gc.
15719
15720 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
15721 Reinit FORMAT_START and END before second scan.
15722
15723 * xdisp.c (move_it_vertically_backward): Do the final big else
15724 even if nlines is 0.
15725
15726 * xdisp.c (redisplay_internal): Finish the per-frame loop
15727 even if redisplay is suspended by input.
15728
15729 2003-04-24 Andrew Choi <akochoi@shaw.ca>
15730
15731 * macterm.c (x_list_fonts): Return all fonts that match if
15732 maxnames = -1.
15733
15734 2003-04-25 Kenichi Handa <handa@m17n.org>
15735
15736 * syntax.c (skip_chars): Fix previous change.
15737
15738 2003-04-24 Kenichi Handa <handa@m17n.org>
15739
15740 * syntax.c (skip_chars): Make the code faster by using the common
15741 technique of *p, *stop, and *endp.
15742
15743 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15744
15745 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
15746 tool_bar_items so GTK tool bar expose callback does not access items
15747 being updated.
15748
15749 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
15750
15751 * eval.c (Fapply): Undo last change and add a comment about why.
15752
15753 2003-04-18 Miles Bader <miles@gnu.org>
15754
15755 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
15756 pickier PARSE_MULTIBYTE_SEQ.
15757
15758 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
15759
15760 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
15761 Use XCDR, XCAR, CONSP.
15762 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
15763 (Fapply): Remove unnecessary GCPRO.
15764
15765 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
15766
15767 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
15768
15769 * buffer.h: Don't hardcode BEG==1.
15770
15771 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
15772
15773 2003-04-16 Richard M. Stallman <rms@gnu.org>
15774
15775 * xdisp.c (try_window, try_window_reusing_current_matrix):
15776 When at end of window, set window_end_pos to Z-ZV.
15777
15778 * buffer.c (Foverlay_recenter): Doc fix.
15779
15780 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
15781
15782 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
15783
15784 2003-04-14 Andrew Choi <akochoi@shaw.ca>
15785
15786 * macterm.c (mac_check_for_quit_char): Don't check more often than
15787 once a second.
15788
15789 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
15790
15791 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
15792 specially, so that they can't hide an implicit switch-frame event.
15793 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
15794 (head_table): Use switch-frame as event_kind for select-window.
15795 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
15796
15797 * editfns.c (Fformat): Lisp_Object/int mixup.
15798 (format2): Remove unused var numargs.
15799
15800 2003-04-11 Kenichi Handa <handa@m17n.org>
15801
15802 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
15803 (Qafter_insert_file_set_coding): New variable.
15804 (syms_of_fileio): Initialize and staticpro it. Delete declaration
15805 for after-insert-file-adjust-coding-function.
15806 (Finsert_file_contents): Call Qafter_insert_file_set_coding
15807 instead of Vafter_insert_file_adjust_coding_function.
15808
15809 2003-04-11 Kenichi Handa <handa@m17n.org>
15810
15811 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
15812
15813 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
15814 string. Callers changed.
15815
15816 2003-04-10 Kenichi Handa <handa@m17n.org>
15817
15818 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
15819 (syms_of_fileio): Declare it as a lisp variable.
15820 (Finsert_file_contents):
15821 Call Vafter_insert_file_adjust_coding_function before calling
15822 decode-format.
15823
15824 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15825
15826 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
15827 get GtkAdjustment as widget now is a GtkRange.
15828
15829 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
15830 GtkRange to avoid memory leak.
15831
15832 2003-04-09 Kenichi Handa <handa@m17n.org>
15833
15834 * xfaces.c (Vface_font_rescale_alist): New variable.
15835 (struct font_name): New member rescale_ratio.
15836 (font_rescale_ratio): New function.
15837 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
15838 (better_font_p): On comparing point sized, pay attention to
15839 recale_ratio member of fonts.
15840 (build_scalable_font_name): Reflect font->rescale_ratio in the
15841 font name.
15842 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15843
15844 * lread.c (read1): Before calling index, check if the 2nd
15845 arguemnt is in ASCII range.
15846
15847 2003-04-08 Richard M. Stallman <rms@gnu.org>
15848
15849 * fileio.c (Ffile_symlink_p): Doc fix.
15850
15851 * editfns.c (Fformat): Translate positions of text properties
15852 in the format string to apply them to the result.
15853
15854 * fileio.c (Finsert_file_contents): Doc fix.
15855 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
15856
15857 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
15858
15859 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
15860
15861 2003-04-08 Steven Tamm <steventamm@mac.com>
15862
15863 * mac.c (init_mac_osx_environment): Switch libexec and bin so
15864 that self-contained application finds libexec files.
15865
15866 2003-04-08 Kenichi Handa <handa@m17n.org>
15867
15868 * coding.c (code_convert_region_unwind):
15869 Set Vlast_coding_system_used to the argument.
15870 (code_convert_region): If post-read-conversion function changed
15871 the value of last-coding-sytem, keep the new value in
15872 coding->symbol so that it won't be overridden.
15873 (run_pre_post_conversion_on_str): Likewise.
15874 (coding_system_accept_latin_extra_p): New function.
15875 (find_safe_codings): Pay attention to characters registered in
15876 latin-extra-code-table.
15877
15878 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
15879
15880 * Makefile.in (md5.o): Add missing dependency info.
15881
15882 2003-04-06 Richard M. Stallman <rms@gnu.org>
15883
15884 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
15885
15886 * marker.c (verify_bytepos): New function.
15887
15888 * intervals.c (set_intervals_multibyte_1): When becoming
15889 multibyte, adjust right and left child sizes to a whole set of
15890 characters. If an interval gets zero total-length, delete it.
15891 If an interval consists of just its children, delete one of them.
15892
15893 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
15894 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
15895
15896 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
15897 All calls deleted.
15898 (lisp_malloc): Do the work here directly.
15899
15900 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
15901
15902 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
15903 char tables.
15904
15905 2003-04-04 Kenichi Handa <handa@m17n.org>
15906
15907 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
15908 destructively change "%S" to "%s".
15909
15910 2003-04-03 Miles Bader <miles@gnu.org>
15911
15912 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
15913 always set.
15914
15915 2003-04-01 Dave Love <fx@gnu.org>
15916
15917 * xfns.c (xpm_lookup_color): Grok "opaque".
15918
15919 2003-03-31 Andrew Choi <akochoi@shaw.ca>
15920
15921 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
15922 parent window ID.
15923
15924 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
15925
15926 * macterm.h (struct mac_output): Define x_pixels_diff and
15927 y_pixels_diff.
15928
15929 2003-03-31 Juanma Barranquero <lektu@terra.es>
15930
15931 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
15932 blockinput.h and files included from it.
15933
15934 2003-03-31 Kim F. Storm <storm@cua.dk>
15935
15936 The following changes consolidates the common code related to
15937 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
15938 files into frame.c.
15939
15940 * frame.c: Include blockinput.h.
15941 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
15942 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
15943 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
15944 related vars here.
15945 (struct frame_parm_table, frame_parms): New table for describing
15946 frame parameters and their associated Q-variable.
15947 The order of the parameters corresponds to the sequence of the
15948 frame_parm_handlers table in redisplay_interface.
15949 (x_fullscreen_move, x_set_frame_parameters)
15950 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
15951 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
15952 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
15953 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
15954 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
15955 Generic functions for processing of frame parameters.
15956 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
15957 (display_x_get_resource, x_get_resource_string): Functions for
15958 generic access to X resources.
15959 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
15960 (x_default_parameter, Fx_parse_geometry): Functions for generic
15961 access to frame parameters.
15962 (x_figure_window_size): Generic calculation of frame size.
15963 Fixed to add space needed for tool bar. Also setup size_hint_flags.
15964 (syms_of_frame): Intern and staticpro frame parameter variables.
15965 Defvar_lisp Vx_resource_class and Vx_resource_name here.
15966 Defsubr Sx_get_resource and Sx_parse_geometry.
15967
15968 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
15969 parameter related vars defined in frame.c.
15970 (EMACS_CLASS): Define here.
15971 (enum FULLSCREEN_*): Define here.
15972 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
15973 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
15974 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
15975 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
15976 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
15977 (x_set_visibility, x_set_autoraise, x_set_autolower)
15978 (x_set_unsplittable, x_set_vertical_scroll_bars)
15979 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
15980 (x_figure_window_size): Add prototypes.
15981
15982 * dispextern.h (frame_parm_handler): New typedef.
15983 (struct redisplay_interface): New member frame_parm_handlers.
15984 (enum resource_types): Move declaration here.
15985 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
15986 (x_default_parameter): Add prototypes.
15987
15988 * window.c: Remove extern decl for frame parameter vars.
15989 (change_window_heights): New generic function;
15990 replaces x_change_window_heights. All users changed.
15991
15992 * window.h (change_window_heights): Add prototype.
15993
15994 * xfaces.c: Remove extern decl for frame parameter vars.
15995
15996 * xterm.h (EMACS_CLASS): Remove. Use generic define.
15997 (struct w32_display_info): Fix type of xrdb member.
15998 (enum FULLSCREEN_*): Remove.
15999 Remove prototypes for generic functions (in frame.h).
16000
16001 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
16002 parameters now defined in frame.h and frame.c.
16003 (Vx_resource_name): Remove. Use generic var.
16004 (enum x_frame_parms): Remove (bogus, unused enum).
16005 (check_x_display_info): Make non-static (for frame.c).
16006 (struct x_frame_parm_table, x_frame_parms): Remove.
16007 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
16008 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
16009 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
16010 (x_change_window_heights, x_set_autoraise, x_set_autolower)
16011 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
16012 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
16013 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
16014 Remove. Use generic functions instead.
16015 (enum resource_types): Remove.
16016 (x_set_scroll_bar_default_width): New global function (for frame.c).
16017 (Fx_create_frame): Depend on x_figure_window_size to add space for
16018 toolbar and setup size_hint_flags.
16019 (x_frame_parm_handlers): New table for redisplay_interface.
16020 (syms_of_xfns): Don't intern/staticpro removed vars.
16021
16022 * xterm.c: Remove unnecessary extern declarations.
16023 (x_fullscreen_adjust): Remove. Use generic instead.
16024 (x_redisplay_interface): Add x_frame_parm_handlers member.
16025
16026 * w32gui.h (XrmDatabase): New (dummy) typedef.
16027
16028 * w32term.h (EMACS_CLASS): Remove. Use generic define.
16029 (struct w32_display_info): Fix type of xrdb member.
16030 (enum FULLSCREEN_*): Remove.
16031 (x_fullscreen_adjust): Remove prototype.
16032
16033 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
16034 parameters now defined in frame.h and frame.c.
16035 (Vx_resource_name): Remove. Use generic var.
16036 (enum x_frame_parms): Remove (bogus, unused enum).
16037 (check_x_display_info): Make non-static (for frame.c).
16038 (struct x_frame_parm_table, x_frame_parms): Remove.
16039 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
16040 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
16041 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
16042 (x_change_window_heights, x_set_autoraise, x_set_autolower)
16043 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
16044 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
16045 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
16046 Remove. Use generic functions instead.
16047 (enum resource_types): Remove.
16048 (x_set_scroll_bar_default_width): New global function (for frame.c).
16049 (Fx_create_frame): Depend on x_figure_window_size to add space for
16050 toolbar and setup size_hint_flags.
16051 (w32_frame_parm_handlers): New table for redisplay_interface.
16052 (syms_of_w32fns): Don't intern/staticpro removed vars.
16053
16054 * w32term.c: Remove unnecessary extern declarations.
16055 (x_fullscreen_adjust): Remove. Use generic instead.
16056 (x_redisplay_interface): Add w32_frame_parm_handlers member.
16057
16058 * w32reg.c (x_get_string_resource): Use XrmDatabase.
16059
16060 * macgui.h (XrmDatabase): New (dummy) typedef.
16061
16062 * macterm.h (EMACS_CLASS): Remove.
16063 (struct mac_display_info): Add xrdb member.
16064 (struct mac_output): Add want_fullscreen member.
16065
16066 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
16067 parameters now defined in frame.h and frame.c.
16068 (Vx_resource_name): Remove. Use generic var.
16069 (check_x_display_info): Make non-static (for frame.c).
16070 (struct x_frame_parm_table, x_frame_parms): Remove.
16071 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
16072 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
16073 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
16074 (x_change_window_heights, x_set_autoraise, x_set_autolower)
16075 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
16076 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
16077 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
16078 Remove. Use generic functions instead.
16079 (enum resource_types): Remove.
16080 (x_set_scroll_bar_default_width): New global function (for frame.c).
16081 (mac_frame_parm_handlers): New table for redisplay_interface.
16082 (syms_of_macfns): Don't intern/staticpro removed vars.
16083
16084 * macterm.c: Remove unnecessary extern declarations.
16085 (x_redisplay_interface): Add mac_frame_parm_handlers member.
16086
16087 * Makefile.in (frame.o): Add dependency on blockinput.h and files
16088 included from it (atimer.h and systime.h).
16089
16090 2003-03-30 Andreas Schwab <schwab@suse.de>
16091
16092 * xdisp.c (x_insert_glyphs): Fix swapped width and height
16093 parameters for shift_glyphs_for_insert.
16094
16095 * macterm.c (x_redisplay_interface): Add missing entry for
16096 draw_vertical_window_border.
16097
16098 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
16099
16100 * fileio.c (Fexpand_file_name): In the no-handler case, after
16101 expanding, look again for a handler and invoke it. This is needed
16102 for filenames like "/foo/../user@host:/bar/../baz" -- the first
16103 expansion produces "/user@host:/bar/../baz" which needs to be
16104 expanded again for the finame result "/user@host:/baz".
16105
16106 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16107
16108 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
16109 of area to be redrawn for better performance.
16110
16111 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
16112
16113 * xterm.c (take_vertical_position_into_account): Remove.
16114 (xt_action_hook): Call set_vertical_scroll_bar if needed.
16115 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
16116 (xm_scroll_callback, x_create_toolkit_scroll_bar)
16117 (x_set_toolkit_scroll_bar_thumb): Simplify.
16118 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
16119 (XTread_socket): Remove unused var.
16120 (x_make_frame_invisible): Replace goto with else.
16121
16122 * xdisp.c (set_vertical_scroll_bar): New fun.
16123 (redisplay_window): Use it.
16124
16125 2003-03-26 Richard M. Stallman <rms@gnu.org>
16126
16127 * xdisp.c (update_tool_bar): Recompute tool bar if
16128 update_mode_lines is set. Set w->update_mode_line
16129 only if the tool bar contents actually change.
16130 (update_menu_bar): Undo previous change.
16131
16132 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16133
16134 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
16135 (xg_frame_set_char_size): Calculate scroll bar width before frame
16136 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
16137 (xg_separator_p): Check for all documented separator types.
16138 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
16139 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
16140
16141 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
16142 so tool bar gets updated.
16143
16144 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
16145
16146 * data.c (store_symval_forwarding): Re-instate part of the code
16147 that was deleted with too much enthusiasm.
16148
16149 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
16150
16151 * data.c (store_symval_forwarding): Delete special read-only
16152 hack for type == -1, since we now use ->constant instead.
16153 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
16154
16155 * buffer.c (overlays_in): Declare static.
16156 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
16157 `constant' field rather than the variable's `type' field.
16158
16159 2003-03-24 Andrew Choi <akochoi@shaw.ca>
16160
16161 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
16162
16163 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
16164
16165 * fns.c [MAC_OSX]: Do not redefine vector.
16166
16167 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
16168
16169 * macgui.h: Remove definition of No_Cursor.
16170
16171 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
16172
16173 * xdisp.c: Define No_Cursor.
16174 (x_write_glyphs, notice_overwritten_cursor)
16175 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
16176 (note_mouse_highlight): Remove Mac-specific code.
16177 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
16178
16179 2003-03-24 John Paul Wallington <jpw@gnu.org>
16180
16181 * xdisp.c (redisplay_window): If mini window's buffer is not
16182 empty, then redisplay it like other windows.
16183
16184 2003-03-23 Kim F. Storm <storm@cua.dk>
16185
16186 * w32term.c (w32_draw_window_cursor): Fix last change.
16187
16188 2003-03-23 Kenichi Handa <handa@m17n.org>
16189
16190 * alloc.c (make_string_from_bytes, make_specified_string):
16191 Add `const' for the arg CONTENTS.
16192
16193 * lisp.h (make_string_from_bytes, make_specified_string):
16194 Prototypes adjusted.
16195
16196 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16197
16198 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
16199
16200 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
16201 (XG_SB_RANGE): New define.
16202
16203 * gtkutil.c (xg_fixed_handle_expose): New function.
16204 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
16205 expose events.
16206 (xg_update_scrollbar_pos): Take two more arguments, left and width
16207 of scroll bar including borders.
16208 Clear left and right part outside scroll bar separately as some
16209 themes have bars that are not an even number of pixels.
16210 Don't set reallocate_redraws, don't call
16211 gdk_window_process_all_updates.
16212 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
16213 so no need to change it. Calculate size and value with XG_SB_RANGE.
16214
16215 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
16216 Pass left and width of scroll bar including borders to
16217 xg_update_scrollbar_pos.
16218
16219 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
16220
16221 * Makefile.in: Make sure space precedes end-of-line backslashes.
16222
16223 2003-03-22 Kim F. Storm <storm@cua.dk>
16224
16225 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
16226 Add generic versions here. Remove system specific versions
16227 defined elsewhere.
16228
16229 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
16230 Add prototypes.
16231
16232 * xterm.h (STORE_NATIVE_RECT): New macro.
16233
16234 2003-03-21 Kim F. Storm <storm@cua.dk>
16235
16236 * xdisp.c (get_glyph_string_clip_rect):
16237 Use FRAME_INTERNAL_BORDER_WIDTH.
16238
16239 * dispextern.h (struct redisplay_interface): Add active_p
16240 argument to draw_window_cursor member. All uses changed.
16241
16242 2003-03-21 Kim F. Storm <storm@cua.dk>
16243
16244 The following changes consolidate code related to writing and
16245 inserting glyphs, exposing frame, the tool bar, the mouse face,
16246 the output cursor, and help echo from xterm.c, w32term.c and
16247 macterm.c into xdisp.c. It also generalizes the use of the
16248 window_part enum instead of using numeric values throughout.
16249
16250 * xdisp.c: Consolidate gui-independent code here.
16251 Include keymap.h.
16252 (Qhelp_echo): Import.
16253 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
16254 (help_echo_string, help_echo_window, help_echo_object)
16255 (previous_help_echo_string, help_echo_pos): Declare here.
16256 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
16257 (estimate_mode_line_height): Define here. Handle windowing
16258 systems directly (without using estimate_mode_line_height_hook).
16259 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
16260 (update_window_cursor, update_cursor_in_window_tree)
16261 (fast_find_position, fast_find_string_pos)
16262 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
16263 (expose_area, expose_line, expose_overlaps, expose_window)
16264 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
16265 declared static as they are only used locally in xdisp.c.
16266 (draw_glyphs): Rename from x_draw_glyphs and make static.
16267 (tool_bar_item_info, notice_overwritten_cursor): Make static.
16268 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
16269 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
16270 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
16271 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
16272 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
16273 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
16274 (note_mouse_highlight, x_clear_window_mouse_face)
16275 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
16276 (x_intersect_rectangles): New generic functions for use by xdisp.c
16277 and GUI front-ends.
16278 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
16279 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
16280
16281 * dispextern.h (Display_Info): Generic typedef for *_display_info.
16282 (NativeRectangle): Generic typedef for rectangle type.
16283 (enum window_part): Move here from window.c.
16284 (struct redisplay_interface): New members flush_display_optional,
16285 define_frame_cursor, clear_frame_area, draw_window_cursor,
16286 draw_vertical_window_border, shift_glyphs_for_insert.
16287 Rename member clear_mouse_face to clear_window_mouse_face.
16288 (estimate_mode_line_height_hook): Remove hook.
16289 (auto_raise_tool_bar_buttons_p): Don't declare extern.
16290 (tool_bar_item_info): Remove prototype.
16291 (help_echo_string, help_echo_window, help_echo_object)
16292 (previous_help_echo_string, help_echo_pos)
16293 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
16294 (x_stretch_cursor_p, output_cursor): Declare extern.
16295 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
16296 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
16297 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
16298 (display_and_set_cursor, set_output_cursor, x_cursor_to)
16299 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
16300 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
16301 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
16302 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
16303 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
16304 Add prototypes.
16305 (mode_line_string, marginal_area_string): Fix prototypes.
16306
16307 * window.c (enum window_part): Move to dispextern.h.
16308 (coordinates_in_window): Use enum window_part member names
16309 instead of numbers to describe return value.
16310 (struct check_window_data): Change part member to window_part.
16311 (check_window_containing): Return window_part unaltered.
16312 (window_from_coordinates): Change part arg from int to enum
16313 window_part. Allow part arg to be null. All users changed.
16314
16315 * window.h (window_from_coordinates): Fix prototype.
16316
16317 * term.c (estimate_mode_line_height): Move to xdisp.c.
16318
16319 * keyboard.c (make_lispy_event): Use enum window_part.
16320
16321 * dispnew.c (mode_line_string, marginal_area_string): Use enum
16322 window_part instead of int in arg list. Users changed.
16323
16324 * xterm.h (No_Cursor): Declare as None for X.
16325 (struct mac_output): Replace member cross_cursor by hand_cursor.
16326
16327 * xterm.c: Remove consolidated defines and code.
16328 (BETWEEN): Remove unused macro.
16329 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
16330 (x_define_frame_cursor, x_clear_frame_area)
16331 (x_draw_window_cursor): New X-specific functions for RIF.
16332 (x_redisplay_interface): Add new members.
16333
16334 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
16335
16336 * w32term.h (struct w32_output): Remove cross_cursor member.
16337
16338 * w32term.c: Remove consolidated defines and code.
16339 (BETWEEN): Remove unused macro.
16340 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
16341 (w32_define_frame_cursor, w32_clear_frame_area)
16342 (w32_draw_window_cursor): New W32-specific functions for RIF.
16343 (w32_redisplay_interface): Add new members.
16344
16345 * w32gui.h (No_Cursor): Define as 0 for W32.
16346 (XRectangle): Add X compatible rectangle type.
16347 (NativeRectangle): Declare as RECT for W32.
16348 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
16349
16350 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
16351
16352 * w32console.c: Remove consolidated defines and code.
16353
16354 * msdos.h (Display_Info): Add generic typedef.
16355
16356 * msdos.c: Remove consolidated defines and code.
16357 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
16358
16359 * macterm.h (struct mac_output): Replace member cross_cursor by
16360 hand_cursor.
16361 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
16362
16363 * macterm.c: Remove consolidated defines and code.
16364 (BETWEEN): Remove unused macro.
16365 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
16366 (mac_define_frame_cursor, mac_clear_frame_area)
16367 (mac_draw_window_cursor): New Mac-specific functions for RIF.
16368 (x_redisplay_interface): Add new members.
16369
16370 * macgui.h (No_Cursor): Define as 0 for Mac.
16371 (XRectangle): Add X compatible rectangle type.
16372 (NativeRectangle): Declare as Rect for Mac.
16373 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
16374
16375 * macfns.c (x_set_mouse_color): Setup hand_cursor.
16376 (x_set_cursor_color): Use x_display_and_set_cursor.
16377
16378 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
16379 included from it. Add dependency on keymap.h.
16380
16381 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
16382
16383 2003-03-21 Kenichi Handa <handa@m17n.org>
16384
16385 * fileio.c (Fexpand_file_name): Fix previous change.
16386
16387 2003-03-19 Kenichi Handa <handa@m17n.org>
16388
16389 * fileio.c (Ffile_name_directory): Reconstruct file name by
16390 make_specified_string.
16391 (Ffile_name_nondirectory, Ffile_name_as_directory)
16392 (Fdirectory_file_name, Fexpand_file_name)
16393 (Fsubstitute_in_file_name): Likewise.
16394 (Fread_file_name): Compare decoded homedir with DIR and
16395 DEFAULT_FILENAME.
16396
16397 * alloc.c (make_specified_string): If NCHARS is negative, count
16398 the number of characters.
16399
16400 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16401
16402 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
16403 all widgets.
16404
16405 * gtkutil.h: Removed xg_ignore_next_thumb.
16406
16407 2003-03-18 Kenichi Handa <handa@m17n.org>
16408
16409 * coding.c (Vchar_coding_system_table): Remove this variable.
16410 (Vcoding_system_safe_chars): New variable.
16411 (intersection): Remove this function.
16412 (find_safe_codings): Don't use Vchar_coding_system_table, but try
16413 all codings in SAFE_CODINGS.
16414 (Ffind_coding_systems_region_internal): Adjust for the change of
16415 find_safe_codings. Get generic coding systems from
16416 Vcoding_system_safe_chars.
16417 (Fdefine_coding_system_internal): New function.
16418 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
16419 Initialize and staticpro Vcoding_system_safe_chars.
16420
16421 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16422
16423 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
16424 equal old values before updating.
16425
16426 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
16427
16428 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
16429
16430 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16431
16432 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
16433 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
16434 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
16435 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
16436 (xg_create_scroll_bar): Pass bar to button event callback.
16437 (xg_find_top_left_in_fixed): New function.
16438 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
16439 whole scroll bar area. Get old position with
16440 xg_find_top_left_in_fixed, calculate and only clear needed areas.
16441 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
16442 dragging is in progress. Calculate whole as for Motif.
16443 Remove code that saved last values. Call gtk_range functions to
16444 set scroll bar sizes.
16445
16446 * gtkutil.h: Removed xg_ignore_next_thumb.
16447
16448 2003-03-17 Juanma Barranquero <lektu@terra.es>
16449
16450 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
16451 and files included from it.
16452
16453 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
16454
16455 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
16456 multiple occurrences of the same keymap under different prefixes.
16457 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
16458
16459 2003-03-16 Jason Rumney <jasonr@gnu.org>
16460
16461 * w32gui.h: Use HDC for Display.
16462
16463 * w32term.c (w32_encode_char): Prevent double-byte chars from
16464 crashing Emacs.
16465
16466 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
16467 as binary.
16468
16469 2003-03-16 Juanma Barranquero <lektu@terra.es>
16470
16471 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
16472
16473 2003-03-16 Kim F. Storm <storm@cua.dk>
16474
16475 The following changes consolidate some of the gui-independent
16476 parts of the processing and drawing of "glyph strings" from
16477 xterm.c, w32term.c, and macterm.c into xdisp.c.
16478
16479 * dispextern.h (struct glyph): Reduce face_id member from 22 to
16480 21 bits (this reduces number of faces from 4M to 2M).
16481 Replace W32 specific w32_font_type member (2 bits) by generic
16482 font_type member (3 bits) for portability.
16483 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
16484 (enum draw_glyphs_face): Define here.
16485 (struct glyph_string): Define here. Merge W32 and X versions.
16486 (struct redisplay_interface): New members per_char_metric,
16487 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
16488 (VCENTER_BASELINE_OFFSET): Define here.
16489 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
16490 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
16491
16492 * xdisp.c: Consolidate gui-independent "glyph string" code here.
16493 (dump_glyph_string): Moved here.
16494 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
16495 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
16496 (fill_composite_glyph_string, fill_glyph_string)
16497 (fill_image_glyph_string, fill_stretch_glyph_string)
16498 (left_overwritten, left_overwriting, right_overwritten)
16499 (right_overwriting, get_char_face_and_encoding)
16500 (set_glyph_string_background_width, compute_overhangs_and_x)
16501 (append_glyph, append_composite_glyph, produce_image_glyph)
16502 (take_vertical_position_into_account, append_stretch_glyph)
16503 (produce_stretch_glyph): New generic functions (based on X version).
16504 Call platform specific functions through rif.
16505 (INIT_GLYPH_STRING): New macro, hides W32 details.
16506 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
16507 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
16508 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
16509 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
16510 (notice_overwritten_cursor):
16511 Generic functions exported to platform modules. Users changed.
16512
16513 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
16514 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
16515 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
16516 New macros for consolidated code.
16517
16518 * xterm.c: Remove consolidated defines and code.
16519 (x_per_char_metric, x_encode_char)
16520 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
16521 (x_redisplay_interface): Add new members.
16522
16523 * w32gui.h (Display): Add dummy typedef for consolidation.
16524 (XChar2b): Define alias for wchar_t for consolidation.
16525 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
16526
16527 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
16528 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
16529 New macros for consolidation.
16530
16531 * w32term.c: Remove consolidated defines and code.
16532 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
16533 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
16534 (w32_per_char_metric): Change font_type arg to int for RIF.
16535 (w32_encode_char): Return int according to RIF requirements.
16536 (w32_compute_glyph_string_overhangs): Adapt to RIF.
16537 (w32_get_glyph_overhangs): New function for RIF. Uses generic
16538 x_get_glyph_overhangs.
16539 (w32_redisplay_interface): Add new members.
16540
16541 * macgui.h (XChar2b): Move typedef here for consolidation.
16542 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
16543
16544 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
16545 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
16546 consolidation.
16547
16548 * macterm.c: Remove consolidated defines and code.
16549 (mac_per_char_metric): New function for RIF.
16550 (mac_encode_char): Adapt to new RIF requirements.
16551 (mac_compute_glyph_string_overhangs): Adapt for RIF.
16552 (x_redisplay_interface): Add new members.
16553
16554 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
16555
16556 * keymap.c (Vmenu_events): New var.
16557 (syms_of_keymap): Initialize it.
16558 (where_is_internal): Check more carefully what is a menu event.
16559
16560 2003-03-14 Richard M. Stallman <rms@gnu.org>
16561
16562 * lread.c (read1): After #!, exit loop on eof.
16563
16564 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16565
16566 * gtkutil.h: Add declaration for xg_frame_cleared.
16567
16568 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
16569
16570 * gtkutil.c (struct xg_last_sb_pos): New structure.
16571 (handle_fixed_child): New function.
16572 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
16573 and force a redraw on them.
16574 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
16575 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
16576 so we can avoid unneeded redraws.
16577 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
16578 and force a redraw on the scroll bar.
16579 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
16580 if xg_last_sb_pos shows the positions are up to date.
16581 (xg_frame_cleared): New function.
16582
16583 2003-03-13 Kenichi Handa <handa@m17n.org>
16584
16585 * coding.c (Fdetect_coding_region): Fix docstring.
16586 (Fdetect_coding_string): Fix docstring.
16587
16588 2003-03-13 Andreas Schwab <schwab@suse.de>
16589
16590 * gtkutil.c: Add prototype for create_menus.
16591
16592 * data.c (long_to_cons): Fix type of top.
16593
16594 * xselect.c (selection_data_to_lisp_data): Use int instead of
16595 long for an integer of size 4.
16596
16597 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
16598 (xg_tool_bar_help_callback): Likewise.
16599
16600 2003-03-12 Andreas Schwab <schwab@suse.de>
16601
16602 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
16603
16604 2003-03-12 Kim F. Storm <storm@cua.dk>
16605
16606 The following changes consolidate the fringe handling from
16607 xterm.c, w32term.c, and macterm.c into xdisp.c.
16608
16609 * xdisp.c: Consolidate fringe handling code here.
16610 (left_bits, right_bits, continued_bits, continuation_bits)
16611 (ov_bits, zv_bits): Define fringe bitmaps.
16612 (fringe_bitmaps): New array holding fringe bitmaps.
16613 (draw_fringe_bitmap): Draw a specific bitmap; call display
16614 specific drawing routine via rif->draw_fringe_bitmap.
16615 (draw_row_fringe_bitmaps): Generic replacement for
16616 x_draw_row_fringe_bitmaps; all callers changed.
16617 (compute_fringe_widths): Generic replacement for
16618 x_compute_fringe_widths; all callers changed.
16619
16620 * dispextern.h (enum fringe_bitmap_type): Define here.
16621 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
16622 (fringe_bitmaps): Declare extern.
16623 (struct redisplay_interface): New member draw_fringe_bitmap.
16624 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
16625
16626 * xterm.c: Remove generic fringe code.
16627 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
16628 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
16629
16630 * w32term.c: Remove generic fringe code.
16631 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
16632 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
16633
16634 * macterm.c: Remove generic fringe code.
16635 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
16636 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
16637
16638 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
16639
16640 * print.c (Fprin1_to_string): Return unibyte string if possible.
16641
16642 2003-03-09 David Kastrup <dak@gnu.org>
16643
16644 * process.c (read_process_output): We have allocated enough space
16645 for readmax and carryover, so actually use the alloted space.
16646
16647 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16648
16649 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
16650 toolkit scrollbar click.
16651
16652 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
16653 for USE_GTK.
16654 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
16655 also.
16656 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
16657 scrollbar and control is pressed, call x_scroll_bar_handle_click.
16658
16659 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
16660
16661 * gtkutil.c (xg_get_scroll_id_for_window): New function.
16662 (xg_tool_bar_item_expose_callback): New function.
16663 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
16664 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
16665 on the tool bar widget.
16666 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
16667 to expose on the tool bar item widgets.
16668
16669 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16670
16671 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
16672 struct image* when deciding to update (struct image* may have been
16673 deleted from the image cache).
16674
16675 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
16676 the event isn't for a frame (i.e. for dialogs).
16677
16678 2003-03-07 Kenichi Handa <handa@m17n.org>
16679
16680 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
16681 composition components reaches the limit, terminate composing.
16682 (COMPOSITION_OK): New macro.
16683 (detect_coding_iso2022): Use it if an escape sequence for
16684 composition is found.
16685 (coding_restore_composition): Adjust the number of composition
16686 components if it is not sane.
16687
16688 2003-03-06 Juanma Barranquero <lektu@terra.es>
16689
16690 * w32term.h (struct w32_display_info): Add xrdb member to support
16691 passing resources via -xrm on Windows.
16692
16693 * w32term.c (w32_make_rdb): New function.
16694 (w32_term_init): Use it to initialize xrdb member of w32_display_info
16695 struct. Delete leftover code.
16696
16697 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
16698 for resources passed on the command line.
16699
16700 * w32reg.c (w32_get_rdb_resource): New function.
16701 (x_get_string_resource): Use it, so resources passed with -xrm
16702 supercede the ones in the registry.
16703
16704 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16705
16706 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
16707 instead of x_top_window_to_frame.
16708
16709 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16710
16711 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
16712 when restarting Emacs.
16713
16714 2003-03-03 Richard M. Stallman <rms@gnu.org>
16715
16716 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
16717 to run kill-buffer-query-functions.
16718 (Qkill_buffer_query_functions): New var.
16719 (syms_of_buffer): Init and staticpro it.
16720
16721 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16722
16723 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
16724
16725 2003-02-25 Kim F. Storm <storm@cua.dk>
16726
16727 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
16728 If centering point failed to make whole line visible and vscroll
16729 is non-zero, disable vscroll and try centering point again.
16730
16731 * lread.c (read1): Accept `single space' syntax like (? x).
16732
16733 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16734
16735 * keyboard.c (cancel_hourglass_unwind): Surround with
16736 #ifdef HAVE_X_WINDOWS
16737
16738 2003-02-25 Kenichi Handa <handa@m17n.org>
16739
16740 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
16741 process only when "subprocesses" is defined.
16742
16743 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
16744
16745 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
16746
16747 2003-02-24 Juanma Barranquero <lektu@terra.es>
16748
16749 * callint.c (fix_command): Declare as static void and move before
16750 Fcall_interactively.
16751
16752 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
16753 (syms_of_xdisp): Don't initialize Qwhen.
16754
16755 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16756
16757 * keyboard.c (cancel_hourglass_unwind): New function.
16758 (command_loop_1): Cancel hourglass with unwind-protect.
16759
16760 2003-02-23 Richard M. Stallman <rms@gnu.org>
16761
16762 * callint.c (fix_command): New subroutine, from Fcall_interactively.
16763 Detect (when ... (region-beginning)) etc.
16764 (Fcall_interactively): Call fix_command.
16765 (Qif, Qwhen): New variables.
16766 (syms_of_callint): Init and staticpro them.
16767
16768 * regex.c (print_partial_compiled_pattern): Output to stderr.
16769
16770 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
16771
16772 * dired.c (directory_files_internal): Don't expand directory.
16773 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
16774 instead. From Lars Hansen <larsh@math.ku.dk>.
16775
16776 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
16777
16778 * fns.c (string_to_multibyte): Remove unused var i.
16779 (Flanginfo): Fix int/Lisp_Object mixup.
16780 (void_call2): New fun.
16781 (Fmap_char_table): Use it in place of call2.
16782
16783 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
16784
16785 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
16786
16787 * keymap.c (copy_keymap_1): Make it static.
16788
16789 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
16790
16791 2003-02-22 David Ponce <david@dponce.com>
16792
16793 * lread.c (Fload): Don't check STRING_MULTIBYTE.
16794
16795 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16796
16797 * process.h: Removed subtty field from struct Lisp_Process.
16798
16799 * process.c (create_process): Remove setting of subtty.
16800 (emacs_get_tty_pgrp): New function.
16801 (Fprocess_running_child_p, process_send_signal):
16802 Call emacs_get_tty_pgrp instead of ioctl.
16803 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
16804
16805 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
16806
16807 * keymap.c (Fdefine_key): Doc fix.
16808
16809 2003-02-21 Juanma Barranquero <lektu@terra.es>
16810
16811 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
16812
16813 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
16814 POLLING_PROBLEM_IN_SELECT.
16815
16816 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
16817 Delete #undef of POLLING_PROBLEM_IN_SELECT.
16818
16819 * s/hpux10-20.h: New file.
16820
16821 * process.c (wait_reading_process_input):
16822 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
16823
16824 2003-02-20 Kenichi Handa <handa@m17n.org>
16825
16826 * fontset.c (check_fontset_name): If NAME is nil, return the
16827 default fontset.
16828 (override_font_info): New function.
16829 (Fset_fontset_font): Document that NAME nil means the default fontset.
16830 (Ffontset_info): If FONTSET is not the default fontset, merge
16831 FONTSET onto the copy of the default fontset, and work on that
16832 copy. Document that NAME nil means the default fontset.
16833 (Ffontset_font): Document that NAME nil means the default fontset.
16834
16835 * process.c (setup_process_coding_systems): If the process's
16836 in/out descriptor is -1, do nothing.
16837
16838 2003-02-19 Andreas Schwab <schwab@suse.de>
16839
16840 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
16841 Add prototypes.
16842
16843 2003-02-19 Kenichi Handa <handa@m17n.org>
16844
16845 * xfaces.c (try_alternative_families): Try all scalable fonts if
16846 Vscalable_fonts_allowed is not Qt.
16847
16848 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16849
16850 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
16851
16852 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16853
16854 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
16855 names.
16856
16857 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
16858 (sorted_font_list): Move allocation of struct font_name to
16859 x_face_list_fonts.
16860 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
16861 (Fx_list_fonts): Set maxnames to -1 to get all font names.
16862
16863 2003-02-18 Kim F. Storm <storm@cua.dk>
16864
16865 * lread.c (read1): Fix last change.
16866 "`" is not always special. Allow "?" after a character constant.
16867
16868 2003-02-18 Andrew Choi <akochoi@shaw.ca>
16869
16870 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
16871
16872 2003-02-18 Andreas Schwab <schwab@suse.de>
16873
16874 * window.c (window_scroll_pixel_based): Move outside a
16875 multi-glyph character before setting new window start.
16876
16877 * xdisp.c (in_display_vector_p): New function.
16878 * dispextern.h (in_display_vector_p): Declare.
16879
16880 2003-02-18 Kim F. Storm <storm@cua.dk>
16881
16882 * lread.c (read1): Fix and relax read syntax.
16883 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
16884 Only recognize "," after dotted-pair dot if inside backquote.
16885 Never include "`" or "," (inside backquote) in a symbol.
16886 Allow dotted-pair dot after a character constant.
16887 Allow "`" and "," (inside backquote) after a character constant.
16888
16889 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16890
16891 * gtkutil.c (xg_tool_bar_expose_callback): New function.
16892 (xg_create_tool_bar): Force style of tool bar to be horizontal with
16893 icons. Set name of tool bar to emacs-toolbar.
16894 (update_frame_tool_bar): Connect expose event to
16895 xg_tool_bar_expose_callback.
16896
16897 2003-02-17 Richard M. Stallman <rms@gnu.org>
16898
16899 * keyboard.c (this_command_key_count_reset): New variable.
16900 Initiatize to 0 where this_command_key_count is set.
16901 (read_char): Save and restore this_command_key_count_reset
16902 around input method code.
16903 (read_char): If this_command_key_count_reset, echo reread commands.
16904 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
16905
16906 2003-02-17 Kenichi Handa <handa@m17n.org>
16907
16908 * fns.c (string_to_multibyte): Always return a multibyte string.
16909
16910 2003-02-16 Jason Rumney <jasonr@gnu.org>
16911
16912 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
16913 Negative max_fonts parameter means list all.
16914
16915 2003-02-14 Dave Love <fx@gnu.org>
16916
16917 * fns.c (Flanginfo): Doc fix.
16918
16919 2003-02-13 Kim F. Storm <storm@cua.dk>
16920
16921 * lread.c (read_escape): Interpret \s as a SPACE character, except
16922 for \s-X in a character constant which still is the super modifier.
16923 (read1): Signal an `invalid read syntax' error if a character
16924 constant is immediately followed by a digit or symbol character.
16925
16926 * search.c (Fmatch_data): Doc fix. Explicitly state that
16927 match-data is undefined if last search failed.
16928
16929 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
16930 All uses changed.
16931
16932 2003-02-12 Juanma Barranquero <lektu@terra.es>
16933
16934 * eval.c (Fdefmacro): Fix typo.
16935
16936 2003-02-12 Kim F. Storm <storm@cua.dk>
16937
16938 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
16939 macro is a string, convert meta modifiers in string when copying
16940 the string into a vector.
16941
16942 2003-02-11 Kim F. Storm <storm@cua.dk>
16943
16944 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
16945
16946 2003-02-11 Kenichi Handa <handa@m17n.org>
16947
16948 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
16949
16950 2003-02-10 Kim F. Storm <storm@cua.dk>
16951
16952 * process.c: Doc fixes.
16953 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
16954
16955 2003-02-10 Kenichi Handa <handa@m17n.org>
16956
16957 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
16958
16959 * process.c (QCfilter_multibyte): New variable.
16960 (setup_process_coding_systems): New function.
16961 (Fset_process_buffer, Fset_process_filter):
16962 Call setup_process_coding_systems.
16963 (Fstart_process): Initialize the member `filter_multibyte' of
16964 struct Lisp_Process.
16965 (create_process): Call setup_process_coding_systems.
16966 (Fmake_network_process): New keyward `:filter-multibyte'.
16967 Initialize the member `filter_multibyte' of struct Lisp_Process.
16968 Call setup_process_coding_systems.
16969 (server_accept_connection): Call setup_process_coding_systems.
16970 (read_process_output): If the process has a filter, decide the
16971 multibyteness of a string to given to the filter by
16972 `filter_multibyte' member of the process. If the process doesn't
16973 have a filter and the result of conversion is unibyte, use
16974 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
16975 multibyte form.
16976 (Fset_process_coding_system): Call setup_process_coding_systems.
16977 (Fset_process_filter_multibyte): New function.
16978 (Fprocess_filter_multibyte_p): New function.
16979 (syms_of_process): Intern and staticpro QCfilter_multibyte.
16980 Defsubr Sset_process_filter_multibyte and
16981 Sprocess_filter_multibyte_p.
16982
16983 * process.h (struct Lisp_Process): New member filter_multibyte.
16984
16985 * lisp.h (setup_process_coding_systems): Add prototype.
16986
16987 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
16988 process, update coding systems for the process.
16989
16990 2003-02-09 Kenichi Handa <handa@m17n.org>
16991
16992 * fns.c (string_to_multibyte): New function.
16993 (Fstring_to_multibyte): New function.
16994 (syms_of_fns): Defsubr it.
16995
16996 2003-02-08 Andreas Schwab <schwab@suse.de>
16997
16998 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
16999 instead of the substitution.
17000
17001 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17002
17003 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
17004
17005 * xmenu.c (menu_position_func): Adjust menu popup position so that
17006 the menu is fully visible.
17007
17008 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17009
17010 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
17011 (x_make_frame_invisible, x_wm_set_icon_position):
17012 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
17013
17014 * xfns.c (x_set_name, x_set_title): Ditto.
17015
17016 2003-02-04 Richard M. Stallman <rms@gnu.org>
17017
17018 * keyboard.c (echo_now): Update before_command_echo_length.
17019 (Freset_this_command_lengths): Reset this_command_key_count etc.
17020 immediately rather than arranging to do it later.
17021 (before_command_key_count_1, before_command_echo_length_1)
17022 (before_command_restore_flag): Vars deleted.
17023 (add_command_key): Don't handle before_command_restore_flag.
17024 (read_char, record_menu_key): Don't update before_command_key_count or
17025 before_command_echo_length.
17026 (read_char): Don't handle before_command_restore_flag.
17027
17028 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
17029 in direct-output clauses if it wouldn't be called in the ordinary case.
17030
17031 2003-02-04 Kim F. Storm <storm@cua.dk>
17032
17033 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
17034
17035 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17036
17037 * gtkutil.c (remove_from_container): Copying list is not needed.
17038 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
17039 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
17040 on list returned from gtk_container_get_children to avoid memory leak.
17041
17042 2003-02-01 Jason Rumney <jasonr@gnu.org>
17043
17044 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
17045 local malloc.
17046 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
17047 definitions in xpm.h.
17048 (init_xpm_functions): New function.
17049 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
17050 (init_external_image_libraries): Try to load libXpm.dll.
17051
17052 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
17053 timestamp.
17054
17055 2003-01-31 Dave Love <fx@gnu.org>
17056
17057 * syntax.c (Fskip_chars_forward)
17058 (open-paren-in-column-0-is-defun-start): Doc fix.
17059
17060 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
17061
17062 * fileio.c: Support // at start of name for Cygwin (just added proper
17063 preprocessor tests).
17064
17065 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
17066
17067 * Makefile.in: Use @EXEEXT@ for Cygwin.
17068
17069 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
17070
17071 * s/cygwin.h: Added for Cygwin port.
17072
17073 2003-01-31 Juanma Barranquero <lektu@terra.es>
17074
17075 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
17076 when including gif_lib.h.
17077 (init_gif_functions, init_tiff_functions): New functions.
17078 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
17079 Windows. Disable color table lookups. Call library functions
17080 through pointers determined at runtime.
17081 (init_external_image_libraries): Try to load libungif.dll and
17082 libtiff.dll.
17083
17084 2003-01-31 Kenichi Handa <handa@m17n.org>
17085
17086 * xdisp.c (SKIP_GLYPHS): New macro.
17087 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
17088
17089 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17090
17091 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
17092
17093 2003-01-30 Dave Love <fx@gnu.org>
17094
17095 * alloc.c (Vgc_elapsed, gcs_done): New variables.
17096 (Fgarbage_collect): Use them.
17097 (init_alloc, syms_of_alloc): Set them up.
17098
17099 2003-01-30 Juanma Barranquero <lektu@terra.es>
17100
17101 * w32fns.c (init_external_image_libraries): Add missing operator.
17102
17103 2003-01-29 Jason Rumney <jasonr@gnu.org>
17104
17105 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
17106 an alternative name for jpeg.dll.
17107
17108 2003-01-29 Kenichi Handa <handa@m17n.org>
17109
17110 * xdisp.c (set_cursor_from_row): Pay attention to string display
17111 properties.
17112
17113 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
17114
17115 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
17116 <escape>.
17117 (keycode_to_xkeysym_table): Reformat and add more comments.
17118 (XTread_socket): Drop special case for backspace.
17119
17120 2003-01-28 Andrew Choi <akochoi@shaw.ca>
17121
17122 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
17123 values in old-style RGB specs.
17124
17125 2003-01-27 Juanma Barranquero <lektu@terra.es>
17126
17127 * w32fns.c (init_external_image_libraries): Try alternate names for the
17128 jpeg dll.
17129
17130 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17131
17132 * gtkutil.c (create_dialog, xg_separator_p)
17133 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
17134 before calling strcmp or strlen.
17135
17136 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17137
17138 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
17139 and handle image load failure.
17140
17141 2003-01-26 Jason Rumney <jasonr@gnu.org>
17142
17143 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
17144 New functions.
17145 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
17146 Disable color table lookups. Call jpeg library functions
17147 through pointers determined at runtime.
17148 (init_external_image_libraries): Try to load jpeg.dll.
17149
17150 2003-01-25 Richard M. Stallman <rms@gnu.org>
17151
17152 * lisp.h: Declare format2 instead of format1.
17153
17154 * fileio.c (barf_or_query_if_file_exists):
17155 Call format2 instead of format1.
17156
17157 * editfns.c (format2): New function, replaces format1
17158 but takes exactly two Lisp Objects as format args.
17159
17160 * buffer.c (Fkill_buffer): Call format2 instead of format1.
17161
17162 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17163
17164 * xterm.h: Change to return value of x_dispatch_event to int.
17165
17166 * xterm.c (x_filter_event): New function.
17167 (event_handler_gdk, XTread_socket): Call x_filter_event.
17168 (x_dispatch_event): Change to return value of finish.
17169 (event_handler_gdk): Use return value from x_dispatch_event.
17170
17171 * xfns.c (x_window): Call create_frame_xic for GTK version to
17172 initialize input methods.
17173
17174 * gtkutil.h: Add (void) prototypes.
17175
17176 * gtkutil.c (create_menus): Remove code that puts the help menu to
17177 the right.
17178
17179 2003-01-25 Jason Rumney <jasonr@gnu.org>
17180
17181 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
17182 [HAVE_PNG]: Sync with xfns.c version.
17183 (png_load): Adjust colors for Windows. Use Windows
17184 bitmaps. Disable color table lookups.
17185 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
17186 (init_png_functions): New function.
17187 (png_read_from_memory, png_load): Call png library functions
17188 through pointers determined at runtime.
17189 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
17190 (init_external_image_libraries): New function.
17191 (init_xfns): Call it.
17192
17193 2003-01-24 Andreas Schwab <schwab@suse.de>
17194
17195 * minibuf.c (Fminibuffer_message): Verify type of parameter.
17196
17197 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17198
17199 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
17200 of static initializer.
17201
17202 2003-01-24 Dave Love <fx@gnu.org>
17203
17204 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
17205 architectures.
17206
17207 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
17208 Use __alignof__.
17209
17210 2003-01-24 Kenichi Handa <handa@m17n.org>
17211
17212 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
17213 It it is nonzero, don't pretend that an invisible area doesn't exist.
17214 (command_loop_1): Call adjust_point_for_property with proper
17215 second arg.
17216
17217 2003-01-22 Jason Rumney <jasonr@gnu.org>
17218
17219 Sync changes with xterm.c and xfns.c.
17220
17221 * w32term.c (x_draw_glyph_string_foreground)
17222 (x_draw_composite_glyph_string_foreground): Implement overstriking.
17223
17224 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
17225 phys_cursor's hpos is overwritten. This is still not completely
17226 correct, as it doesn't really make sense to use hpos at all to
17227 get the cursor glyph (as that is relative to the width of the
17228 characters on the line, which may have changed during the update).
17229
17230 * w32term.c (notice_overwritten_cursor): Handle the special case
17231 of the cursor being in the first blank non-text line at the
17232 end of a window.
17233
17234 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
17235 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
17236 Compute from the x position returned by x_draw_glyphs.
17237
17238 (x_display_and_set_cursor): Don't set phys_cursor_width here,
17239 except for NO_CURSOR and system caret, to make phys_cursor_width
17240 contain what its name suggests.
17241 (notice_overwritten_cursor): Consider the cursor image erased if
17242 the output area intersects the cursor image in y-direction.
17243
17244 * w32term.c (note_mode_line_or_margin_highlight): Rename from
17245 note_mode_line_highlight and extend.
17246
17247 * w32term.c (last_window): New variable.
17248 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
17249 (note_mouse_movement): Remove reimplemented code in #if 0.
17250
17251 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
17252 not update_mode_lines, and always set it to 1.
17253
17254 2003-01-21 Jason Rumney <jasonr@gnu.org>
17255
17256 * w32fns.c (IDC_HAND): Define it if system headers don't.
17257
17258 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17259
17260 * w32term.h (struct w32_output): New member hand_cursor.
17261 (WM_EMACS_SETCURSOR): New message definition.
17262
17263 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
17264 function w32_define_cursor.
17265 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
17266 position, change member name output_data.x to output_data.w32 and
17267 add function w32_define_cursor.
17268 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
17269 and change member name output_data.x to output_data.w32.
17270 (w32_initialize_display_info):
17271 Setup dpyinfo->vertical_scroll_bar_cursor.
17272
17273 * w32fns.c (Vx_hand_shape): New variable.
17274 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
17275 WM_EMACS_SETCURSOR.
17276 (x-create-frame): Setup Cursor types.
17277
17278 2003-01-21 David Ponce <david@dponce.com>
17279
17280 * w32term.c (w32_encode_char): For DIM=1 charset, set
17281 ccl->reg[2] to -1 before calling ccl_driver.
17282 (Sync. with xterm.c x_encode_char change by Kenichi Handa
17283 <handa@m17n.org> on 2002-09-30.)
17284 (w32_draw_relief_rect): Declare all args.
17285 (w32_define_cursor): New.
17286
17287 * w32fns.c (w32_load_cursor): New function.
17288 (w32_init_class): Use it.
17289 (x_put_x_image): Declare all args.
17290
17291 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
17292
17293 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
17294
17295 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17296
17297 * gtkutil.c: Must include stdio.h before termhooks.h
17298
17299 2003-01-21 Dave Love <fx@gnu.org>
17300
17301 * alloc.c (Fgc_status): Print zombie list.
17302 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
17303 Fix assignment of zombies.
17304 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
17305 Don't take car of non-cons.
17306
17307 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
17308
17309 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
17310
17311 2003-01-20 David Ponce <david@dponce.com>
17312
17313 * w32menu.c (digest_single_submenu): Declare all args.
17314
17315 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
17316 changes in xmenu.c:
17317
17318 (parse_single_submenu): Use individual keymap's prompt
17319 string as pane name, if there is one.
17320 (set_frame_menubar): Save menu_items_n_panes from each call to
17321 parse_single_submenu and use it when calling digest_single_submenu.
17322
17323 2003-01-20 Steven Tamm <steventamm@mac.com>
17324
17325 * macterm.c (XTread_socket): Check for valid, visible window
17326 before sending a scroll-wheel event.
17327
17328 2003-01-20 Richard M. Stallman <rms@gnu.org>
17329
17330 * xdisp.c (redisplay_window): If mini window's buffer is not
17331 a minibuffer, then redisplay it like other windows.
17332
17333 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17334
17335 * gtkutil.c (xg_create_frame_widgets): Check if there is an
17336 external tool bar before setting tool bar height.
17337
17338 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17339
17340 * xterm.c (handle_one_xevent): Surround popup_activated
17341 with #ifdef:s for non-toolkit version.
17342
17343 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
17344 (gtkutil.o): New file.
17345 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
17346 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
17347
17348 * gtkutil.c: New file for GTK version.
17349
17350 * gtkutil.h: New file for GTK version.
17351
17352 * xterm.h: Add xt_or_gtk_widget.
17353 Include gtk files for USE_GTK.
17354 (struct x_output): Add toolbar_height.
17355 (struct x_output): Add GTK widgets and Gdk size_hints.
17356 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
17357 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
17358 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
17359
17360 * xterm.c: Include gtkutil.h for USE_GTK.
17361 (free_frame_menubar): Declare extern void for USE_GTK.
17362 (note_mouse_highlight): Check popup_activated for USE_GTK.
17363 (xt_action_hook): Don't compile if USE_GTK.
17364 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
17365 (xg_scroll_callback): New function.
17366 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
17367 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
17368 for USE_GTK.
17369 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
17370 xg_show_scroll_bar for USE_GTK.
17371 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
17372 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
17373 (event_handler_gdk): New function for USE_GTK.
17374 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
17375 (handle_one_xevent): Make sure widget is mapped before
17376 calling x_real_positions for USE_GTK.
17377 (XTread_socket): Add GTK event loop for USE_GTK.
17378 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
17379 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
17380 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
17381 (x_iconify_frame): Add code for USE_GTK.
17382 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
17383 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
17384 is in gtkutil.c.
17385 (x_term_init): Add initialization for GTK.
17386 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
17387
17388 * xmenu.c: Include gtkutil.h for USE_GTK.
17389 (Fx_popup_menu): Use current position if x and y is NIL.
17390 (single_menu_item, single_menu_item, Fx_popup_dialog):
17391 Check for USE_GTK.
17392 (popup_widget_loop): New function for USE_GTK.
17393 (x_activate_menubar): Add code for USE_GTK.
17394 (popup_activate_callback, popup_deactivate_callback)
17395 (menu_highlight_callback, menubar_selection_callback):
17396 Add USE_GTK versions.
17397 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
17398 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
17399 (free_frame_menubar): Only compile if not USE_GTK. GTK version
17400 is in gtkutil.c.
17401 (popup_selection_callback): New version for USE_GTK.
17402 (create_and_show_popup_menu): New fuction, one USE_GTK version and
17403 one USE_X_TOOLKIT version.
17404 (xmenu_show): Call create_and_show_popup_menu.
17405 (dialog_selection_callback): New version for USE_GTK.
17406 (create_and_show_dialog): New fuction, one USE_GTK version and
17407 one USE_X_TOOLKIT version.
17408 (xdialog_show): Call create_and_show_dialog.
17409
17410 * xfns.c: Include gtkutil for USE_GTK.
17411 (x_window_to_frame, x_any_window_to_frame)
17412 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
17413 (x_top_window_to_frame): Add code for USE_GTK.
17414 (x_set_background_color): Call xg_set_background_color for GTK.
17415 (x_set_menu_bar_lines): Check for USE_GTK.
17416 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
17417 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
17418 (x_window): Call xg_create_frame_widgets for USE_GTK.
17419 (Fx_create_frame): Check for USE_GTK
17420 (Fx_file_dialog): New implementation for USE_GTK.
17421
17422 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
17423 (update_menu_bar): Add check for USE_GTK.
17424 (update_tool_bar): Add check for USE_GTK and external tool bar.
17425 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
17426 (redisplay_internal): Add check for USE_GTK and popup_activated.
17427 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
17428 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
17429 (display_menu_bar): Add check for USE_GTK
17430
17431 * lisp.h (Vx_resource_name): Declare extern.
17432
17433 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
17434 for USE_GTK.
17435 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
17436
17437 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
17438 (FRAME_EXTERNAL_TOOL_BAR): New macro.
17439 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
17440
17441 * fileio.c (Fread_file_name): Add check for USE_GTK.
17442
17443 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
17444 Add check for USE_GTK.
17445
17446 * config.in: Added HAVE_GTK
17447
17448 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
17449
17450 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
17451
17452 * charset.h (Funibyte_char_to_multibyte): Export.
17453
17454 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17455
17456 * xmenu.c (mouse_position_for_popup): New function.
17457 (Fx_popup_menu): Call mouse_position_for_popup for X and
17458 mouse_position_hook for others.
17459
17460 2003-01-17 Kim F. Storm <storm@cua.dk>
17461
17462 * editfns.c (Finsert): Mention `string-make-multibyte' and
17463 `string-as-multibyte' in doc string.
17464
17465 2003-01-17 Kenichi Handa <handa@m17n.org>
17466
17467 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
17468
17469 * editfns.c (Fformat): Convert an unibyte char argument that is
17470 formatted by "%c" to multibyte if the total result must be a
17471 multibyte string.
17472
17473 2003-01-16 Kim F. Storm <storm@cua.dk>
17474
17475 * process.c (set-process-filter): Document unibyte/multibyte-ness
17476 of string argument.
17477
17478 2003-01-16 Kenichi Handa <handa@m17n.org>
17479
17480 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
17481
17482 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
17483 (re_search_2): Likewise.
17484
17485 2003-01-15 Kenichi Handa <handa@m17n.org>
17486
17487 * xdisp.c (message_dolog): Fix bug of the case that *Message*
17488 buffer is unibyte.
17489
17490 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
17491
17492 * fns.c (Fsubstring): Clarify doc string.
17493
17494 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
17495 (Fprevious_char_property_change)
17496 (Fnext_single_char_property_change)
17497 (Fprevious_single_char_property_change, Fnext_property_change)
17498 (Fnext_single_property_change, Fprevious_property_change)
17499 (Fprevious_single_property_change, Fadd_text_properties)
17500 (Fput_text_property, Fset_text_properties)
17501 (Fremove_text_properties, Fremove_list_of_text_properties)
17502 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
17503
17504 2003-01-14 Kim F. Storm <storm@cua.dk>
17505
17506 * process.h (struct Lisp_Process): New member plist replaces old
17507 member private_vars. All uses changed.
17508
17509 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
17510 (QCplist): Rename from QCvars. Change all uses.
17511 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
17512 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
17513 (syms_of_process): Intern, staticpro, defsubr these.
17514 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
17515
17516 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
17517
17518 * m/delta.h: Remove (obsolete).
17519
17520 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
17521
17522 * fileio.c (Fdelete_directory, Fdelete_file): Document the
17523 behaviour in front of symlinks.
17524 (Fdelete_file): Raise an error on directories.
17525
17526 2003-01-13 Dave Love <fx@gnu.org>
17527
17528 * fns.c (Freverse): Use QUIT.
17529
17530 2003-01-13 Richard M. Stallman <rms@gnu.org>
17531
17532 * minibuf.c (minibuffer_completion_contents):
17533 Error if point is inside prompt.
17534
17535 * keyboard.c (command_loop_1): Don't redisplay directly
17536 if there's a post-command-hook.
17537
17538 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
17539 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
17540
17541 2003-01-12 Kim F. Storm <storm@cua.dk>
17542
17543 * process.h (struct Lisp_Process): New member private_vars.
17544
17545 * process.c (QCvars): New variable.
17546 (syms_of_process): Intern and staticpro it.
17547 (Fset_process_contact): Removed function.
17548 (Fprocess_variable, Fset_process_variable): New functions.
17549 (syms_of_process): Defsubr them.
17550 (Fstart_process): Initialize private_vars plist to nil.
17551 (Fmake_network_process): New arg :vars to setup the private
17552 variables for new network process.
17553 (server_accept_connection): Copy server's private variables to
17554 client process.
17555
17556 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
17557 crashes). Code rewritten and simplified. Now directly aligns the
17558 pointer and recalculates pure_bytes_used, rather than aligning the
17559 size and adjusting the pointer.
17560
17561 2003-01-11 Kim F. Storm <storm@cua.dk>
17562
17563 * process.c (Fset_process_contact): New function.
17564 (syms_of_process): defsubr it.
17565 (make-network-process): Update doc.
17566
17567 2003-01-10 Andreas Schwab <schwab@suse.de>
17568
17569 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
17570 Reported by Berthold Gunreben <b.gunreben@web.de>.
17571
17572 2003-01-10 Dave Love <fx@gnu.org>
17573
17574 * composite.c (syms_of_composite): Make composition_hash_table weak.
17575
17576 2003-01-09 Kim F. Storm <storm@cua.dk>
17577
17578 * process.c (Fmake_network_process): Convert new port number
17579 to host byte order for `:service t' case. From Mario Lang.
17580
17581 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17582
17583 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
17584 instead of XtAppProcessEvent.
17585
17586 * xterm.c (handle_one_xevent): New function.
17587 (x_dispatch_event): New function.
17588 (XTread_socket): Call handle_one_xevent.
17589
17590 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
17591
17592 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
17593 call XQueryPointer to get coordinates.
17594 (popup_get_selection): Do not set popup_activated_flag to zero,
17595 let popup_deactivate_callback do that. Needed for Motif.
17596 Call x_dispatch_event instead of XtDispatchEvent.
17597 (xmenu_show): Calculate root coordinate from frame top/left position.
17598
17599 2003-01-08 Kim F. Storm <storm@cua.dk>
17600
17601 * process.c (server_accept_connection): Fix recording of new
17602 connection's local address in :local property of contact info.
17603 (Fmake_network_process): Record local network address for new
17604 client processes in :local property of contact info.
17605 (format-network-address): Add arg OMIT-PORT. Change callers.
17606
17607 2003-01-07 Dave Love <fx@gnu.org>
17608
17609 * Makefile.in (fns.o): Depend on coding.h.
17610
17611 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
17612
17613 * minibuf.c (Fread_variable): Doc fix.
17614
17615 * eval.c (Fuser_variable_p): Doc change. For custom variables,
17616 use the same test as for custom-variable-p.
17617
17618 2003-01-05 Richard M. Stallman <rms@gnu.org>
17619
17620 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
17621 Count LAST_LINE_MISFIT in scroll margin for end of window.
17622 Move label too_near_end before setting SCROLL_MARGIN_POS.
17623 Set LAST_LINE_MISFIT before jumping there.
17624
17625 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
17626 scroll_conservatively case. If scrolling that much doesn't change
17627 STARTP, move it down one line.
17628
17629 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
17630 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
17631
17632 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
17633 selected frame.
17634
17635 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
17636 (syms_of_keymap): Staticpro them.
17637 (Fapropos_internal): Initialize them and clear them out.
17638 Don't GCPRO them.
17639
17640 * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
17641
17642 * lisp.h: New misc type Lisp_Save_Value.
17643 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
17644 (XSAVE_VALUE): New macro.
17645 (struct Lisp_Save_Value): New data type.
17646 (union Lisp_Misc): Add u_save_value alternative.
17647 (make_save_value): Declare.
17648
17649 * alloc.c (make_save_value): New function.
17650
17651 * xterm.c (x_catch_errors): Save dpy using make_save_value.
17652 (x_catch_errors_unwind): Call XSync.
17653
17654 2003-01-01 Richard M. Stallman <rms@gnu.org>
17655
17656 * window.c (window_scroll_pixel_based): Partially undo last change.
17657
17658 * keyboard.c (command_loop_1): Call adjust_point_for_property
17659 in direct action cases for Qforward_char and Qbackward_char.
17660 Set already_adjusted so it won't be done twice.
17661
17662 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
17663
17664 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
17665 type definition of size_t.
17666
17667 2003-01-02 Steven Tamm <steventamm@mac.com>
17668
17669 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
17670 distinguish Carbon GUI builds from X11 builds on darwin.
17671
17672 2002-12-30 Steven Tamm <steventamm@mac.com>
17673
17674 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
17675 to default to t.
17676
17677 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
17678
17679 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
17680
17681 2002-12-28 Steven Tamm <steventamm@mac.com>
17682
17683 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
17684 allow building in a different directory than source. Uses some
17685 GNU Make extensions, but there is no other make on Mac OS X.
17686
17687 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
17688
17689 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
17690 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
17691 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
17692 (Fstring_to_number): Mention the returned value in the doc strings.
17693
17694 2002-12-23 Richard M. Stallman <rms@gnu.org>
17695
17696 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
17697 <scroll-down-aggressively>: Doc fix.
17698
17699 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
17700 string as pane name, if there is one.
17701 (set_frame_menubar): Save menu_items_n_panes from each call to
17702 parse_single_submenu and use it when calling digest_single_submenu.
17703
17704 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
17705 Don't try to make last line fully visible if it is past end of window.
17706
17707 2002-12-22 Steven Tamm <steventamm@mac.com>
17708
17709 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
17710 (mac_menu_show): Add support for hierarchical popup menus.
17711 (add_menu_item): Remove indentation support.
17712 (fill_submenu, fill_menu): Create hierarchical menus
17713 instead of using indentation.
17714
17715 2002-12-22 Richard M. Stallman <rms@gnu.org>
17716
17717 * xdisp.c (try_cursor_movement): Don't call try_window here.
17718 (redisplay_window): Never redisplay minibuffer when inactive.
17719
17720 * window.c (select_window_1): Undo 9/21 change.
17721
17722 2002-12-22 Steven Tamm <steventamm@mac.com>
17723
17724 * macterm.c (XTread_socket): Call KeyTranslate for control and
17725 meta to deal correctly shifted non-alpha characters, like C-S-5
17726 being treated like C-%. Do not look for shift key to deal
17727 with masking off control-key with mac-reverse-ctrl-meta.
17728
17729 2002-12-21 Richard M. Stallman <rms@gnu.org>
17730
17731 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
17732 If it is non-nil, run timers. Use an unwind-protect to requeue
17733 the events that were read ahead.
17734 (popup_get_selection_unwind): New subroutine.
17735 (popup_get_selection_queue): File-scope variable now holds that queue.
17736 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
17737 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
17738 Use an unwind-protect to pop down the dialog box.
17739 (xdialog_show_unwind): New subroutine implements that.
17740
17741 * xdisp.c (row_containing_pos): Change exit test using last_y.
17742 (try_window_id): Abort if row_containing_pos returns null.
17743
17744 * lread.c (load_error_handler): New function.
17745 (Fload): Handle errors in Fsubstitute_in_file_name.
17746 Don't expect Fsignal to return.
17747
17748 * eval.c: Errors and throws work right with interrupt blocking.
17749 (struct catchtag): New elt interrupt_input_blocked.
17750 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
17751 (internal_catch, Fcondition_case, internal_condition_case)
17752 (internal_condition_case_1, internal_condition_case_2): Save it.
17753 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
17754
17755 * editfns.c (Fformat): Add parens.
17756
17757 * dired.c (file_name_completion): Fix that change.
17758 Delete special quit-handling code; just use QUIT.
17759
17760 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
17761
17762 * dired.c (file_name_completion): Close directory on error
17763 just as in directory_files_internal.
17764
17765 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
17766
17767 * window.c (Fset_window_configuration): Set old_point to correct
17768 value when new_current_buffer == current_buffer.
17769
17770 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
17771
17772 Revisited my earlier fix for the following entry in etc/PROBLEMS:
17773 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
17774 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
17775
17776 These changes were in part based upon suggestions made by Peter
17777 'Luna' Runestig [peter@runestig.com].
17778
17779 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
17780 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
17781 (g_b_init_get_sid_identifier_authority ): Add several static
17782 global variables.
17783
17784 * w32.c (globals_of_w32): New function. Used to initialize those
17785 global variables that must always be initialized on startup even
17786 when the global variable initialized is non zero. Its primary
17787 purpose at this time is to set the global variables
17788 g_b_init_is_windows_9x, g_b_init_open_process_token,
17789 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
17790 g_b_init_get_sid_identifier_authority to 0 on startup.
17791 Called from main.
17792
17793 * w32.c (is_windows_9x): Perform initialization only if
17794 g_b_init_is_windows_9x is equal to 0. On initialization set
17795 g_b_init_is_windows_9x equal to 1.
17796
17797 * w32.c (open_process_token): Perform initialization only if
17798 g_b_init_open_process_token is equal to 0. On initialization set
17799 g_b_init_open_process_token equal to 1.
17800
17801 * w32.c (get_token_information): Perform initialization only if
17802 g_b_init_get_token_information is equal to 0. On initialization
17803 set g_b_init_get_token_information equal to 1.
17804
17805 * w32.c (lookup_account_sid): Perform initialization only if
17806 g_b_init_lookup_account_sid is equal to 0. On initialization
17807 set g_b_init_lookup_account_sid equal to 1.
17808
17809 * w32.c (get_sid_identifier_authority): Perform initialization
17810 only if g_b_init_get_sid_identifier_authority is equal to 0.
17811 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
17812
17813 * w32fns.c (globals_of_w32fns): New function. Used to initialize
17814 those global variables that must always be initialized on startup
17815 even when the global variable initialized is non zero.
17816 Its primary purpose at this time is to initialize the global variable
17817 track_mouse_event_fn.
17818
17819 * w32fns.c (w32_wnd_proc): Remove initialization of
17820 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
17821
17822 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
17823
17824 * w32menu.c (globals_of_w32menu): New function. Used to
17825 initialize those global variables that must always be initialized
17826 on startup even when the global variable initialized is non zero.
17827 Its primary purpose at this time is to initialize the global
17828 variables get_menu_item_info and set_menu_item_info.
17829
17830 * w32menu.c (initialize_frame_menubar): Remove initialization of
17831 get_menu_item_info and set_menu_item_info.
17832
17833 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
17834
17835 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
17836 Declare them.
17837
17838 * emacs.c (main): Call globals_of_w32 prior to calling
17839 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
17840 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
17841 is defined.
17842
17843 * w32term.c (x_update_window_begin): Fix Windows API error
17844 detected by BoundsChecker. Test to determine if
17845 w32_system_caret_hwnd is NULL prior to attempting to use
17846 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
17847
17848 * w32term.c (x_update_window_end): Fix Windows API error
17849 detected by BoundsChecker. Test to determine if
17850 w32_system_caret_hwnd is NULL prior to attempting to use
17851 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
17852
17853 2002-12-17 Kenichi Handa <handa@m17n.org>
17854
17855 * coding.c (coding_system_require_warning): New variable.
17856 (syms_of_coding): DEFVAR it.
17857
17858 * coding.h (coding_system_require_warning): Extern it.
17859
17860 * fileio.c (choose_write_coding_system): Even if
17861 Vcoding_system_for_write is non-nil, if
17862 coding_system_require_warning is nonzero, call
17863 Vselect_safe_coding_system_function.
17864
17865 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
17866
17867 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
17868 (lisp): Add font-core.
17869
17870 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
17871
17872 * textprop.c (text_read_only): New arg `propval'.
17873 (get_char_property_and_overlay): Remove unused var `next_overlay'.
17874 (verify_interval_modification): Use text_read_only's new arg.
17875
17876 2002-12-13 Kenichi Handa <handa@m17n.org>
17877
17878 * coding.c (Funencodable_char_position): Set pend correctly.
17879
17880 2002-12-12 Jason Rumney <jasonr@gnu.org>
17881
17882 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
17883 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
17884 Be more careful about when help_events are generated.
17885
17886 2002-12-12 Steven Tamm <steventamm@mac.com>
17887
17888 * macterm.c (mac_check_for_quit_char): Correctly set the
17889 modifiers of the event to 0.
17890 * mac.c (sys_select): Duplicate rfds before calling select to
17891 ensure that rfds survive the while loop.
17892
17893 2002-12-11 Kim F. Storm <storm@cua.dk>
17894
17895 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
17896 row_containing_pos returned NULL.
17897
17898 2002-12-10 Steven Tamm <steventamm@mac.com>
17899
17900 * mac.c (sys_read): Fix sys_read to not call select if IO is
17901 non-blocking.
17902 (sys_select): Fix sys_select to not use a timeout larger than
17903 the one given.
17904
17905 2002-12-10 Juanma Barranquero <lektu@terra.es>
17906
17907 * editfns.c (Fformat): Use alloca, not _alloca.
17908
17909 2002-12-09 Richard M. Stallman <rms@gnu.org>
17910
17911 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
17912 as the last thing.
17913
17914 2002-12-09 Dave Love <fx@gnu.org>
17915
17916 * s/sol2-8.h: Removed. (Not necessary.)
17917
17918 2002-12-09 Matthew Swift <swift@alum.mit.edu>
17919
17920 * editfns.c (Fformat): Handle precision in string conversion
17921 specifiers like libc functions do (ie, print at most that many
17922 characters).
17923
17924 2002-12-08 Richard M. Stallman <rms@gnu.org>
17925
17926 * xdisp.c (row_containing_pos): Check more carefully
17927 whether charpos is really in the row before returning it.
17928
17929 2002-12-07 Steven Tamm <steventamm@mac.com>
17930
17931 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
17932
17933 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
17934 each stack frame. This may change as it could be time consuming.
17935
17936 * macterm.c (mac_check_for_quit_char, quit_char_comp)
17937 (init_quit_char_handler, mac_determine_quit_char_modifiers)
17938 (mac_initialize): Add code to check for pressing of quit_char
17939 in the OS event queue.
17940
17941 * mac.c (sys_select): Call mac_check_for_quit_char every second
17942 while blocking on select.
17943
17944 * mac.c (sys_read): Use sys_select to test for input first
17945 before calling read, to allow C-g to break.
17946
17947 2002-12-07 Richard M. Stallman <rms@gnu.org>
17948
17949 * minibuf.c (Fcompleting_read): Doc fix.
17950
17951 * lread.c (syms_of_lread) <load-history>: Doc fix.
17952
17953 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
17954
17955 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
17956 autoload.
17957
17958 * data.c (Fdefalias): Record in load-history redefining an autoload.
17959
17960 * alloca.c: Undo ifdef change accidentally made on 12-04.
17961
17962 2002-12-06 Francesco Potorti` <pot@gnu.org>
17963
17964 * xfns.c (png_load): Avoid double gamma correction for PNG images.
17965
17966 2002-12-04 Richard M. Stallman <rms@gnu.org>
17967
17968 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
17969
17970 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
17971
17972 * alloca.c: Don't use #error.
17973
17974 2002-12-03 Dave Love <fx@gnu.org>
17975
17976 * buffer.c (Qucs_set_table_for_input): New.
17977 (Fget_buffer_create): Use it.
17978 (Qset_buffer_major_mode_hook): Deleted.
17979 (Fset_buffer_major_mode): Revert previous change.
17980 (init_buffer_once): Intern ucs-set-table-for-input.
17981 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
17982 Add &Qucs_set_table_for_input.
17983
17984 2002-12-03 Andreas Schwab <schwab@suse.de>
17985
17986 * callint.c (Fcall_interactively): Use next_event only if less
17987 than key_count.
17988
17989 2002-12-02 Andrew Choi <akochoi@shaw.ca>
17990
17991 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
17992 names to 255 characters.
17993
17994 * macterm.c (XTread_socket): If all frames have been collapsed,
17995 expand the first one before handling drag-and-drop events.
17996
17997 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
17998 which is detected by autoconf.
17999
18000 2002-12-01 Steven Tamm <steventamm@mac.com>
18001
18002 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
18003 offset in two hints table to allow prebinding to be redone and
18004 allow the executable to be stripped.
18005
18006 2002-11-29 Dave Love <fx@gnu.org>
18007
18008 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
18009 already provided.
18010
18011 2002-11-29 Richard M. Stallman <rms@gnu.org>
18012
18013 * xdisp.c (start_display): Check more intelligently for
18014 whether the line is continued.
18015 (move_it_vertically_backward): Clear it->continuation_lines_width.
18016
18017 2002-11-28 Dave Love <fx@gnu.org>
18018
18019 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
18020 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
18021
18022 2002-11-27 Steven Tamm <steventamm@mac.com>
18023
18024 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
18025 more descriptive error output from lread.c:Fload upon most require
18026 cycles during boostrapping.
18027
18028 2002-11-27 Jason Rumney <jasonr@gnu.org>
18029
18030 * fileio.c (Finsert_file_contents): Give a more appropriate error
18031 for files bigger than 2Gb when off_t is 32 bit.
18032
18033 * dired.c (Ffile_attributes): Don't return negative file sizes for
18034 files bigger than 2Gb when off_t is 32 bit.
18035
18036 2002-11-27 Dave Love <fx@gnu.org>
18037
18038 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
18039
18040 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
18041 Test GETPGRP_VOID instead.
18042 [BSD_TERMIOS]: Remove definitions (never used).
18043
18044 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
18045 Don't define.
18046 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
18047
18048 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
18049
18050 2002-11-25 Jason Rumney <jasonr@gnu.org>
18051
18052 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
18053 supported.
18054
18055 2002-11-25 Dave Love <fx@gnu.org>
18056
18057 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
18058
18059 * Makefile.in (TEMACS_LDFLAGS): Update last change.
18060
18061 2002-11-25 Andreas Schwab <schwab@suse.de>
18062
18063 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
18064
18065 2002-11-24 Steven Tamm <steventamm@mac.com>
18066
18067 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
18068 determine the size of pointers alloced in unexed space instead
18069 of using possibly invalid emacs_zone pointers. This fixes the
18070 binary incompatibility problems caused by updates to libSystem.B.
18071
18072 2002-11-24 Richard M. Stallman <rms@gnu.org>
18073
18074 * search.c (Fstring_match): Doc fix.
18075
18076 * callint.c (Fcall_interactively): If a command fails because
18077 `*' detects a read-only buffer, but RECORD_FLAG is set,
18078 record it anyway if the args don't actually do tty input.
18079
18080 2002-11-22 Dave Love <fx@gnu.org>
18081
18082 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
18083
18084 * keyboard.c (interrupt_signal): Provide forward declaration.
18085 (kbd_buffer_store_event): Don't declare interrupt_signal.
18086
18087 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
18088
18089 2002-11-21 Richard M. Stallman <rms@gnu.org>
18090
18091 * eval.c (interactive_p): Skip any number of bytecode
18092 and special form frames, in any order.
18093
18094 2002-11-20 Jason Rumney <jasonr@gnu.org>
18095
18096 * w32fns.c (convert_mono_to_color_image): New function.
18097 (xbm_load, xbm_load_image): Use it when foreground or background
18098 is explicitly set.
18099
18100 2002-11-19 Dave Love <fx@gnu.org>
18101
18102 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
18103
18104 2002-11-18 Jason Rumney <jasonr@gnu.org>
18105
18106 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
18107 (XPutPixel): Swap blue and red.
18108 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
18109 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
18110 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
18111 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
18112
18113 2002-11-18 Dave Love <fx@gnu.org>
18114
18115 * m/orion105.h (HAVE_ALLOCA): Don't define.
18116
18117 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
18118
18119 * m/intel386.h: Don't include alloca.h or define alloca.
18120
18121 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
18122 malloc, realloc, calloc.
18123
18124 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
18125 (bcmp): Don't define.
18126
18127 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
18128
18129 * m/amdahl.h: Don't define LIB_STANDARD.
18130
18131 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
18132
18133 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
18134
18135 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
18136 Don't include alloca.h.
18137
18138 * s/aix3-2.h (HAVE_FSYNC): Don't define.
18139
18140 * regex.c (_GNU_SOURCE): Don't define.
18141
18142 * process.c (_GNU_SOURCE): Don't define.
18143
18144 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
18145
18146 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
18147
18148 * s/sol2-8.h: Include sol2-6.h.
18149
18150 2002-11-18 Miles Bader <miles@gnu.org>
18151
18152 * dispextern.h (struct face): Add `overstrike' field.
18153 * xterm.c (x_draw_glyph_string_foreground)
18154 (x_draw_composite_glyph_string_foreground): Implement overstriking.
18155 * xfaces.c (load_face_font): Set `face->overstrike' based on
18156 result from choose_face_font.
18157 (best_matching_font, choose_face_font): Add `needs_overstrike'
18158 argument, and use it to return whether overstriking is desirable
18159 for this face/font combo.
18160 (set_font_frame_param: Pass new argument to choose_face_font.
18161
18162 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
18163
18164 This change is my fix for the following entry in etc/PROBLEMS:
18165 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
18166 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
18167
18168 * w32.c: Added wrapper functions around the win32 API functions
18169 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
18170 GetSidIdentifierAuthority. These wrapper functions serve two
18171 purposes:
18172 1. They ensure that the wrapped function can never be called
18173 when Emacs is running on an operating system on which they are
18174 not supported (Microsoft Windows 95 / 98 / ME).
18175 2. They call the wrapped functions via function pointers rather
18176 than calling them directly. This avoids taking advantage of the
18177 undocumented fact that although these functions are not supported
18178 in the 9x branch of Microsoft Windows, the functions do exist in
18179 the version of advapi32.dll that is found in the 9x branch of
18180 Microsoft Windows.
18181
18182 * w32.c (init_user_info): Replace the calls to the win32 API
18183 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
18184 and GetSidIdentifierAuthority with calls to the newly added
18185 wrapper functions.
18186
18187 * w32.h: Added extern declarations for the following functions:
18188 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
18189 syms_of_w32menu, and void syms_of_fontset.
18190
18191 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
18192 function pointer track_mouse_event_fn in the handler for the
18193 WM_SETFOCUS message.
18194
18195 * w32menu.c (initialize_frame_menubar): Add code to
18196 reinitialize the function pointers set_menu_item_info and
18197 get_menu_item_info.
18198
18199 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
18200
18201 * sound.c: Added a partial implementation of play-sound-internal
18202 for Microsoft Windows. Added various #ifdef / #else / #endif
18203 code blocks to separate the code that will compile under
18204 Microsoft Windows from the code that is specific to GNU/Linux.
18205 Moved several blocks of code around to make this separation of code
18206 into Windows compatible and GNU/Linux compatible code blocks easier.
18207
18208 * makefile.w32-in: Include sound.c and link with WinMM.lib.
18209
18210 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
18211 added support for play-sound-internal under Windows would be
18212 included in the build of Emacs.
18213
18214 2002-11-16 Jason Rumney <jasonr@gnu.org>
18215
18216 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
18217
18218 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
18219
18220 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
18221
18222 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
18223 (adjust_point_for_property): Move out of display and invisible even if
18224 we were already inside before (in case a property was added while
18225 we weren't looking). Be more careful when handling invisible props.
18226 Skip invisible text as if it really wasn't there at all.
18227
18228 2002-11-15 Jason Rumney <jasonr@gnu.org>
18229
18230 * w32term.c (x_draw_image_foreground)
18231 (w32_draw_image_foreground_1): Use standard copy and invert
18232 operations to draw images.
18233
18234 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
18235 depth of 1.
18236 (xbm_read_bitmap_data): Invert bits as xbm is read in.
18237 (XPutPixel): Don't invert bits here.
18238
18239 2002-11-15 Jason Rumney <jasonr@gnu.org>
18240
18241 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
18242 (w32_draw_image_foreground_1): Handle image masks.
18243 (x_draw_image_glyph_string): Don't BitBlt transparently.
18244
18245 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
18246 (x_from_xcolors): Adjust RGB values for W32.
18247 (image_background, image_background_transparent)
18248 (postprocess_image, x_to_xcolors, x_disable_image)
18249 (x_build_heuristic_mask): Adapt for W32 and enable.
18250 (x_create_x_image_and_pixmap): Mark images with palettes as such.
18251 (xbm_load): Remove unused variable.
18252
18253 2002-11-14 Richard M. Stallman <rms@gnu.org>
18254
18255 * buffer.c (syms_of_buffer): Doc fix.
18256
18257 2002-11-14 Dave Love <fx@gnu.org>
18258
18259 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
18260
18261 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
18262 * xmenu.c (unuse_menu_items, digest_single_submenu):
18263 * xfns.c (x_put_x_image):
18264 * xdisp.c (message2_nolog, set_message):
18265 * undo.c (record_point):
18266 * terminfo.c (tparam):
18267 * syntax.c (scan_sexps_forward):
18268 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18269 * composite.c (update_compositions):
18270 * cm.c (calccost, cmgoto):
18271 * charset.c (c_string_width): Declare all args (per C99).
18272
18273 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
18274
18275 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
18276 Don't declare.
18277
18278 * emacs.c (main) [!VMS]: Avoid third arg.
18279
18280 * fns.c (Fcopy_sequence): Doc fix.
18281 (Fmap_char_table): Cast `call2'.
18282
18283 2002-11-14 Francesco Potorti` <pot@gnu.org>
18284
18285 * s/sol2-8.h: New file.
18286
18287 2002-11-14 Kim F. Storm <storm@cua.dk>
18288
18289 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
18290 dependency on `risky-local-variable' and the :propertize form.
18291
18292 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
18293
18294 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
18295
18296 * syntax.c (scan_sexps_forward): Undo last patch.
18297 Use a more obvious fix: check eob before updating the syntax table.
18298
18299 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
18300
18301 * syntax.c (scan_sexps_forward): Update syntax table before reading
18302 a char rather than after so we don't update the table past eob.
18303
18304 2002-11-09 Dave Love <fx@gnu.org>
18305
18306 * buffer.c (Fset_buffer_major_mode): Fix last change.
18307
18308 * regex.c (regexec): Fix pmatch declaration.
18309
18310 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
18311
18312 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
18313 to self-inserting characters.
18314 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
18315
18316 * coding.c (Vtranslation_table_for_input): New.
18317 (syms_of_coding): DEFVAR it.
18318
18319 2002-11-08 Juanma Barranquero <lektu@terra.es>
18320
18321 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
18322 window.
18323
18324 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18325
18326 * process.c (Fformat_network_address): Remove unused locals p,
18327 cp, and i.
18328
18329 2002-11-06 Dave Love <fx@gnu.org>
18330
18331 * buffer.c (Qset_buffer_major_mode_hook): New.
18332 (Fset_buffer_major_mode): Use it.
18333
18334 2002-11-06 Richard M. Stallman <rms@gnu.org>
18335
18336 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
18337 and stop_polling.
18338
18339 * process.c (wait_reading_process_input):
18340 Test POLLING_PROBLEM_IN_SELECT, not hpux.
18341 Avoid initialization for auto Lisp_Object var.
18342
18343 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
18344
18345 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
18346
18347 2002-11-05 Richard M. Stallman <rms@gnu.org>
18348
18349 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
18350
18351 * callint.c (Fcall_interactively): New local filter_specs.
18352 (Fcall_interactively): Check for progn as well as let.
18353 Add a gcpro.
18354 (Qprogn): New variable.
18355 (syms_of_callint): Staticpro and init Qprogn.
18356
18357 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
18358
18359 * lread.c (Feval_buffer): Doc fix.
18360
18361 2002-11-04 Dave Love <fx@gnu.org>
18362
18363 * keyboard.c (read_char): Always translate iff
18364 Vkeyboard_translate_table is a char table and c is valid.
18365
18366 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18367 and fix C types.
18368
18369 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
18370
18371 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
18372
18373 * editfns.c (get_pos_property): Don't hardcode Qfield.
18374
18375 * keyboard.c (adjust_point_for_property): Handle `display' prop on
18376 overlays. Also handle `invisible' prop.
18377
18378 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
18379
18380 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
18381 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
18382
18383 2002-11-01 Andreas Schwab <schwab@suse.de>
18384
18385 * editfns.c (Fmessage): Revert last change to properly handle %%.
18386
18387 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
18388
18389 * xmenu.c (unuse_menu_items): New fun.
18390 (menu_items_inuse): New var.
18391 (syms_of_xmenu): Initialize it.
18392 (init_menu_items): Use it to detect re-entrance.
18393 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
18394 (Fx_popup_menu): Remove spurious XSETFRAME.
18395
18396 * editfns.c (find_field): Make an exception for nil fields.
18397
18398 2002-11-01 Dave Love <fx@gnu.org>
18399
18400 * m/gec63.h: Deleted.
18401
18402 2002-10-31 Dave Love <fx@gnu.org>
18403
18404 * xterm.c (XTread_socket): Fix last change.
18405 (xaw_scroll_callback): Cast call_data to long to avoid warning.
18406
18407 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
18408
18409 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
18410
18411 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
18412
18413 * editfns.c (overlays_around, get_pos_property): New funs.
18414 (find_field): Use them.
18415 Also be careful not to modify POS before its last use.
18416 (Fmessage): Don't Fformat if there's nothing to format.
18417
18418 2002-10-30 Dave Love <fx@gnu.org>
18419
18420 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
18421 [HAVE_PTY_H]; Include pty.h.
18422
18423 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
18424
18425 * xterm.c (Qeql): Declare.
18426 (Vx_keysym_table): New.
18427 (syms_of_xterm): Initialize it.
18428 (XTread_socket): Use it. Deal with ASCII keysyms.
18429 (XSetIMValues) [HAVE_X11R6]: Prototype.
18430
18431 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
18432 (lispy_kana_keys): Comment out.
18433 (make_lispy_event) [XK_kana_A]: Comment out.
18434 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
18435 Fix sprintf call.
18436
18437 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
18438 regexp.h change).
18439 (TERMINFO, LIBS_TERMCAP): Define.
18440
18441 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
18442 (bcmp): Define conditional on HAVE_BCMP.
18443 (NO_SIOCTL_H): Don't define.
18444 (TIOCSIGSEND): Don't make conditional on IRIX6.
18445
18446 * s/sol2-5.h: Don't include strings.h.
18447 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
18448
18449 * s/irix6-0.h (IRIX6): Don't define.
18450 (bcopy, bcmp, bzero): Don't undef.
18451
18452 * s/irix6-5.h: Don't include strings.h.
18453 (IRIX6): Don't define.
18454 (bcopy, bcmp, bzero): Don't undef.
18455
18456 * syntax.c (Fforward_comment): Doc fix.
18457
18458 2002-10-29 Kim F. Storm <storm@cua.dk>
18459
18460 * process.c (Fsignal_process): Allow PROCESS to be specified by
18461 name in addition to pid (as integer or string).
18462
18463 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
18464
18465 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
18466 environments.
18467
18468 2002-10-27 Kim F. Storm <storm@cua.dk>
18469
18470 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
18471
18472 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
18473
18474 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
18475
18476 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
18477
18478 2002-10-26 Richard M. Stallman <rms@gnu.org>
18479
18480 * editfns.c (Fformat): Detect invalid format letters for floats.
18481
18482 2002-10-25 Kenichi Handa <handa@m17n.org>
18483
18484 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
18485 (x_set_title): Likewise.
18486
18487 2002-10-25 Juanma Barranquero <lektu@terra.es>
18488
18489 * macgui.h:
18490 * w32gui.h: Remove definition of XColor.
18491
18492 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
18493
18494 2002-10-24 Kim F. Storm <storm@cua.dk>
18495
18496 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
18497 Callers changed (supply dummy arg).
18498
18499 * lisp.h (get_window_cursor_type): Update prototype.
18500
18501 * w32term.c (x_display_and_set_cursor): Get active_cursor from
18502 get_window_cursor_type to track system caret.
18503
18504 2002-10-24 Kim F. Storm <storm@cua.dk>
18505
18506 * process.c (Fformat_network_address): New function.
18507 (syms_of_process): Defsubr it.
18508 (list_processes_1): Use it to format :local/:remote address if
18509 service/host is not set; before Emacs would crash in that case.
18510 (Fmake_network_process): Don't use Ffind_operation_coding_system
18511 to setup coding system if host or service is not set.
18512
18513 2002-10-23 Juanma Barranquero <lektu@terra.es>
18514
18515 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
18516
18517 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
18518 COLORREF.
18519
18520 * macgui.h:
18521 * w32gui.h: Add definition of XColor.
18522
18523 * macfns.c:
18524 * w32fns.c:
18525 * xfaces.c: Remove definition of XColor.
18526
18527 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
18528
18529 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
18530
18531 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
18532 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
18533 window if it is dedicated.
18534 (Fshrink_window): Add preserve_before as was done for enlarge_window.
18535 (Vspecial_display_function): Update docstring.
18536
18537 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
18538 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
18539 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
18540
18541 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
18542
18543 * casefiddle.c (casify_region): Don't treat a prefix char as part
18544 of a word when at the beginning.
18545
18546 2002-10-17 Juanma Barranquero <lektu@terra.es>
18547
18548 * lread.c (syms_of_lread): Fix typos.
18549
18550 2002-10-17 Dave Love <fx@gnu.org>
18551
18552 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
18553
18554 2002-10-16 Richard M. Stallman <rms@gnu.org>
18555
18556 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
18557
18558 2002-10-14 Juanma Barranquero <lektu@terra.es>
18559
18560 * w16select.c (syms_of_win16select): Fix docstring for
18561 `selection-coding-system'.
18562
18563 * w32select.c (syms_of_w32select): Likewise.
18564
18565 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
18566
18567 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
18568 a backslash-quoted char.
18569 (scan_lists, scan_sexps_forward): Pacify the compiler.
18570
18571 2002-10-13 Richard M. Stallman <rms@gnu.org>
18572
18573 * window.c (window_scroll): Set immediate_quit.
18574
18575 * print.c (print): When backquote form is the car of a list,
18576 output in old style. Use old_backquote_output to output all
18577 comma forms inside it in old style too.
18578
18579 * buffer.h (struct buffer): Move `undo_list' down below `name'.
18580
18581 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
18582
18583 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
18584 batch mode).
18585
18586 * lread.c (Fload): Doc fix (load-suffixes).
18587
18588 2002-10-10 Steven Tamm <steventamm@mac.com>
18589
18590 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
18591 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
18592 Also switch the default to Qnil from Qt.
18593
18594 2002-10-08 Kenichi Handa <handa@m17n.org>
18595
18596 * coding.c (code_convert_region): When we need more GAP for
18597 conversion, pay attention to the case that coding->produced is not
18598 greater than coding->consumed.
18599
18600 2002-10-07 Richard M. Stallman <rms@gnu.org>
18601
18602 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
18603
18604 2002-10-06 Andrew Choi <akochoi@shaw.ca>
18605
18606 * macmenu.c (mac_menu_show): Add j to count menu items; match
18607 menu_item_selection to it to find selected item.
18608
18609 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18610
18611 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
18612 cases. The correct fix is to pass ReparentNotify to Xt.
18613 The shell widget interprets ConfigureNotify differently depending
18614 on if it has been reparented or not.
18615
18616 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
18617
18618 * editfns.c (Fformat_time_string): Doc fix.
18619
18620 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
18621
18622 * fns.c (Flength): Doc fix.
18623
18624 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
18625
18626 * keyboard.c (keyremap): New struct.
18627 (read_key_sequence): Use it: globally replace keytran_foo with
18628 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
18629 keytran_next and fkey_next to just `next'.
18630
18631 2002-10-04 Steven Tamm <steventamm@mac.com>
18632
18633 * macterm.c (keycode_to_xkeysym_table): Change return to be
18634 treated like an X keysym.
18635
18636 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18637
18638 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
18639 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
18640 This is to also handle x/y changes that occur because of a resize.
18641
18642 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
18643
18644 * frame.c (Vdelete_frame_functions): New variable.
18645 (syms_of_frame): Initialize and defvar it.
18646 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
18647 it when frame's `tooltip' parameter is non-nil.
18648
18649 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
18650
18651 * w32fns.c (x_create_tip_frame): Likewise.
18652
18653 * macfns.c (x_create_tip_frame): Likewise.
18654
18655 2002-09-30 Kenichi Handa <handa@m17n.org>
18656
18657 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
18658 -1 before calling ccl_driver.
18659
18660 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
18661 Only when it is non-nil, handle composition sequence.
18662 (setup_coding_system) <0>: Don't force composition handling.
18663
18664 * Makefile.in (lisp, shortlisp): Add utf-16.elc
18665
18666 2002-09-29 Richard M. Stallman <rms@gnu.org>
18667
18668 * search.c (Freplace_match): Adjust match data for the substitution
18669 just made in the buffer.
18670
18671 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
18672 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
18673
18674 2002-09-27 Richard M. Stallman <rms@gnu.org>
18675
18676 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
18677 (read_char): Use them. Do all exits thru the end of the function.
18678
18679 2002-09-27 Kenichi Handa <handa@etl.go.jp>
18680
18681 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
18682 is nil.
18683
18684 2002-09-26 Richard M. Stallman <rms@gnu.org>
18685
18686 * regex.h (__restrict_arr): Don't define if already defined.
18687
18688 * coding.c (run_pre_post_conversion_on_str):
18689 Save and restore Vdeactivate_mark.
18690
18691 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
18692
18693 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
18694
18695 2002-09-26 Kenichi Handa <handa@etl.go.jp>
18696
18697 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
18698 nonzero, try face's family at first. Otherwise try FAMILY at first.
18699 (choose_face_font): If C is a single byte char or latin-1, call
18700 try_font_list with PREFER_FACE_FAMILY 1.
18701
18702 2002-09-21 Richard M. Stallman <rms@gnu.org>
18703
18704 * window.c (select_window_1): Don't select frame.
18705 Set frame's selected window only when frame itself is selected.
18706 (Fselect_window): Doc fix.
18707
18708 2002-09-18 Kim F. Storm <storm@cua.dk>
18709
18710 * process.c (make-network-process): Doc fix (there is no
18711 network-server-log-function hook).
18712
18713 2002-09-18 Richard M. Stallman <rms@gnu.org>
18714
18715 * print.c (print): Clear out the unused parts of Vprint_number_table.
18716 (syms_of_print): Doc fix for `print-number-table'.
18717
18718 * unexelf.c (unexec): Undo previous change.
18719
18720 2002-09-17 Andreas Schwab <schwab@suse.de>
18721
18722 * m/alpha.h [LINUX]: Don't define DATA_START.
18723
18724 2002-09-16 Dave Love <fx@gnu.org>
18725
18726 * unexelf.c (unexec): Deal with .got, reinstating change from
18727 25-08-1999.
18728
18729 2002-09-13 Richard M. Stallman <rms@gnu.org>
18730
18731 * s/sol2-6.h (UNEXEC): Comment out definition.
18732
18733 * unexsol.c (unexec): Don't downcase first letter of error msg.
18734
18735 * xfaces.c (Fcolor_supported_p): Just one arg is required.
18736
18737 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
18738
18739 * unexsol.c: Include buffer.h, charset.h, coding.h.
18740
18741 2002-09-11 Richard M. Stallman <rms@gnu.org>
18742
18743 * unexsol.c: Don't use report_file_error; do it by hand
18744 using dlerror.
18745
18746 * process.c (wait_reading_process_input, both versions):
18747 Before calling turn_on_atimers, call stop_polling.
18748
18749 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
18750
18751 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
18752 we go to too_near_end, call clear_glyph_matrix.
18753 (redisplay_window): After make_cursor_line_fully_visible,
18754 call clear_glyph_matrix and bypass `goto done'.
18755
18756 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
18757 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
18758
18759 2002-09-10 Richard M. Stallman <rms@gnu.org>
18760
18761 * fileio.c (Fdo_auto_save): Catch error making directory.
18762 Only call push_message if we need to.
18763 At the same time, make an unwind-protect to pop it.
18764 Rename local message_p to old_message_p.
18765 (do_auto_save_make_dir, do_auto_save_eh): New functions.
18766 (do_auto_save_unwind): Don't call pop_message.
18767
18768 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
18769
18770 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
18771
18772 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
18773
18774 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
18775
18776 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
18777
18778 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
18779 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
18780 (re_match_2_internal): Be more careful with infinite loops.
18781
18782 2002-09-10 Kim F. Storm <storm@cua.dk>
18783
18784 * macros.c (end_kbd_macro): New function.
18785 (Fend_kbd_macro): Use it.
18786
18787 * macros.h (end_kbd_macro): Declare extern.
18788
18789 * keyboard.c (Fdiscard_input): If defining keyboard macro,
18790 end and save it instead of discarding it.
18791
18792 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
18793
18794 * s/sol2-6.h: Fix typo. Add comment.
18795
18796 2002-09-09 Richard M. Stallman <rms@gnu.org>
18797
18798 * regex.c (regnum_t): Use signed int, not unsigned int.
18799
18800 * s/sol2-6.h: New file.
18801
18802 * s/sol2-5.h (UNEXEC): Definition deleted.
18803
18804 2002-09-08 Kim F. Storm <storm@cua.dk>
18805
18806 * macros.c (executing_macro_index): Change type to EMACS_INT.
18807 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
18808
18809 * macros.h (executing_macro_index): Change type to EMACS_INT.
18810
18811 2002-09-06 Richard M. Stallman <rms@gnu.org>
18812
18813 * casetab.c (set_case_table): Make canon table point to eqv table.
18814
18815 2002-09-06 Juanma Barranquero <lektu@terra.es>
18816
18817 * coding.c (syms_of_coding): Fix spacing.
18818
18819 * composite.c (Fcompose_region_internal)
18820 (Fcompose_string_internal): Likewise.
18821
18822 * data.c (Flsh): Likewise.
18823
18824 * fontset.c (Fset_fontset_font): Likewise.
18825
18826 * macfns.c (Fx_server_max_request_size): Likewise.
18827
18828 * w16select.c (syms_of_win16select): Likewise.
18829
18830 * w32select.c (syms_of_w32select): Likewise.
18831
18832 * xselect.c (syms_of_xselect): Likewise.
18833
18834 2002-09-05 Richard M. Stallman <rms@gnu.org>
18835
18836 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
18837 call EXTEND_RANGE_TABLE and return a proper value.
18838 (set_image_of_range): Don't call set_image_of_range_1
18839 if no TRANSLATE or if range includes all of Latin-1.
18840 Only call it for the Latin-1 part of the range.
18841 For other cases, make two separate ranges,
18842 one for the original specified characters and one for
18843 their case-conversions.
18844
18845 2002-09-04 Richard M. Stallman <rms@gnu.org>
18846
18847 * s/sol2-5.h (UNEXEC): Use unexsol.o.
18848
18849 * window.c (displayed_window_lines): Correct for one-off bug
18850 in HEIGHT on non-window displays.
18851
18852 * regex.c (set_image_of_range_1): New function.
18853 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
18854 Return a value to indicate running out of memory.
18855 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
18856 (extend_range_table_work_area): New subroutine.
18857 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
18858 Different calling conventions, and used from set_image_of_range{,_1}.
18859 (IMMEDIATE_QUIT_CHECK): Definitions moved.
18860
18861 2002-09-04 Juanma Barranquero <lektu@terra.es>
18862
18863 * makefile.w32-in: All dependencies updated.
18864
18865 2002-09-01 Richard M. Stallman <rms@gnu.org>
18866
18867 * unexsol.c: New file.
18868
18869 * xfns.c (Qbox): Declare external, don't define.
18870
18871 * xdisp.c (redisplay_window) <force-start case>:
18872 If point is on semi-visible last line, reposition
18873 it at previous line.
18874
18875 * alloc.c (display_malloc_warning): Use display-warning.
18876 (malloc_warning_1): Function deleted.
18877
18878 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
18879
18880 * lread.c (read1): Handle #! by skipping the line.
18881
18882 2002-08-31 Richard M. Stallman <rms@gnu.org>
18883
18884 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
18885 Don't include LDFLAGS.
18886 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
18887
18888 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
18889
18890 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
18891 member of x_display_info unless we compile for some window system.
18892
18893 2002-08-31 Kim F. Storm <storm@cua.dk>
18894
18895 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
18896 (get_window_cursor_type): Don't use them.
18897 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
18898
18899 2002-08-30 Kenichi Handa <handa@etl.go.jp>
18900
18901 * xdisp.c (get_next_display_element): Fix previous change.
18902
18903 2002-08-30 Andrew Choi <akochoi@shaw.ca>
18904
18905 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
18906 (expose_window): Use it to fix the display of overlapping
18907 rows (merge code from xterm.c).
18908
18909 * macfns.c (Qbox): Add extern declaration.
18910
18911 2002-08-30 Juanma Barranquero <lektu@terra.es>
18912
18913 * w32fns.c (Qbox): Make extern.
18914 (syms_of_w32fns): Remove initialization of Qbox.
18915
18916 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
18917
18918 * xfns.c (Fx_open_connection): Fix error message.
18919
18920 2002-08-30 Kim F. Storm <storm@cua.dk>
18921
18922 The following changes consolidates the handling of the cursor
18923 type in xdisp.c, moving duplicate code and functionality from
18924 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
18925
18926 * frame.h (enum text_cursor_kinds): Consolidated here.
18927 Added DEFAULT_CURSOR value.
18928 (struct frame) <desired_cursor, cursor_width>
18929 <blink_off_cursor, blink_off_cursor_width>: New fields.
18930 Consolidated from output_x, output_w32 and output_mac structs.
18931 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
18932 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
18933
18934 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
18935 Variables consolidated here.
18936 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
18937 (Vcursor_in_non_selected_windows): Renamed from
18938 cursor_in_non_selected_windows and changed to Lisp_Object.
18939 (syms_of_xdisp): Define and staticpro new and moved variables.
18940 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
18941 consolidated here. Recognize Qhollow setting.
18942 (set_frame_cursor_types): New function to set frame cursor types
18943 based on the frame parameters.
18944 (get_window_cursor_type): New function to calculate new cursor
18945 type and width for the specified window. Based on duplicated
18946 code consolidated here.
18947 Enhancements: cursor-in-non-selected-windows may be a cursor type,
18948 check buffer-local alternate-cursor-type and blink-cursor-alist
18949 before using built-in blink off methods.
18950
18951 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
18952
18953 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
18954 (get_specified_cursor_type, get_window_cursor_type)
18955 (set_frame_cursor_types): Added prototypes.
18956
18957 * macfns.c (x_specified_cursor_type): Removed.
18958 (x_set_cursor_type): Use set_frame_cursor_types.
18959 (Qbar, Qbox): Removed.
18960 (syms_of_macfns): Don't intern or staticpro them.
18961
18962 * macterm.c (x_specified_cursor_type): Remove prototype.
18963 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
18964 (x_display_and_set_cursor): Use get_window_cursor_type.
18965 Remove unused local variables cursor_non_selected, active_cursor.
18966 Redraw cursor if hbar cursor width changes.
18967 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
18968
18969 * macterm.h (enum text_cursor_kinds): Removed.
18970 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
18971 <blink_off_cursor, blink_off_cursor_width>: Members removed.
18972 (FRAME_DESIRED_CURSOR): Macro removed.
18973
18974 * w32fns.c (Vblink_cursor_alist): Removed.
18975 (Qbar, Qhbar, Qbox, Qhollow): Removed.
18976 (syms_of_w32fns): Don't intern, staticpro, or define them.
18977 (x_specified_cursor_type): Removed.
18978 (x_set_cursor_type): Use set_frame_cursor_types.
18979
18980 * w32term.c (x_specified_cursor_type): Remove prototype.
18981 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
18982 (x_display_and_set_cursor): Use get_window_cursor_type.
18983 Remove unused local variables cursor_off_state.
18984 Redraw cursor if hbar cursor width changes.
18985 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
18986
18987 * w32term.h (enum text_cursor_kinds): Removed.
18988 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
18989 <blink_off_cursor, blink_off_cursor_width>: Members removed.
18990 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
18991 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
18992 (struct w32_display_info) <x_highlight_frame>: Renamed member from
18993 w32_highlight_frame.
18994
18995 * xfns.c (Vblink_cursor_alist): Removed.
18996 (Qbar, Qhbar, Qbox, Qhollow): Removed.
18997 (syms_of_xfns): Don't intern, staticpro, or define them.
18998 (x_specified_cursor_type): Removed.
18999 (x_set_cursor_type): Use set_frame_cursor_types.
19000
19001 * xterm.c (x_specified_cursor_type): Remove prototype.
19002 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
19003 (x_display_and_set_cursor): Use get_window_cursor_type.
19004 Remove unused local variables cursor_off_state.
19005 Redraw cursor if hbar cursor width changes.
19006
19007 * xterm.h (enum text_cursor_kinds): Removed.
19008 (struct output_x) <current_cursor, desired_cursor, cursor_width>
19009 <blink_off_cursor, blink_off_cursor_width>: Members removed.
19010 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
19011 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
19012 (x_specified_cursor_type): Remove prototype.
19013
19014 2002-08-28 Richard M. Stallman <rms@gnu.org>
19015
19016 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
19017 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
19018 (Vblink_cursor_alist): New variable.
19019 (syms_of_w32fns): Initialize and defvar it.
19020 (x_specified_cursor_type): Recognize Qbox for filled box.
19021 Exceptions are hollow boxes.
19022 (Qbox, Qhollow): New variables.
19023 (syms_of_w32fns): Initialize and staticpro them.
19024
19025 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
19026 New macros.
19027 (struct w32_output): New fields blink_off_cursor,
19028 blink_off_cursor_width.
19029 (FRAME_CURSOR_WIDTH): New macro.
19030
19031 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
19032 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
19033
19034 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
19035 for bar cursor.
19036
19037 * w32term.c (expose_overlaps): New function.
19038 (expose_window): Use it to fix the display of overlapping rows.
19039
19040 2002-08-28 Simon Josefsson <jas@extundo.com>
19041
19042 * xfns.c (Fx_open_connection): Improve help when X connection
19043 fails, xhost is insecure and xauth is better.
19044
19045 2002-08-28 Juanma Barranquero <lektu@terra.es>
19046
19047 * makefile.w32-in: Add missing dependencies on w32term.h and
19048 composite.h.
19049
19050 * emacs.c (USAGE1): Add missing newline.
19051
19052 2002-08-27 Andrew Choi <akochoi@shaw.ca>
19053
19054 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
19055
19056 2002-08-27 Richard M. Stallman <rms@gnu.org>
19057
19058 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
19059 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
19060 (Vblink_cursor_alist): New variable.
19061 (syms_of_xfns): Initialize and defvar it.
19062 (x_specified_cursor_type): Recognize Qbox for filled box.
19063 Exceptions are hollow boxes.
19064 (Qbox, Qhollow): New variables.
19065 (syms_of_xfns): Initialize and staticpro them.
19066
19067 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
19068 New macros.
19069 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
19070
19071 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
19072 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
19073
19074 * emacs.c (main): Handle --script.
19075 (USAGE1): Mention --script.
19076 (standard_args): Define sort order for --script.
19077
19078 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
19079
19080 * xdisp.c (redisplay_updating_p): Variable removed.
19081 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
19082 New variables.
19083 (init_iterator): Don't free realized faces if
19084 inhibit_free_realized_faces is set.
19085 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
19086 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
19087 initialize Qinhibit_free_realized_faces.
19088
19089 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
19090 when iterator is adding glyphs to a glyph matrix.
19091
19092 2002-08-27 Kenichi Handa <handa@etl.go.jp>
19093
19094 * xdisp.c (get_next_display_element): In unibyte case, don't use
19095 octal form for such eight-bit characters that can be converted to
19096 multibyte char.
19097
19098 2002-08-26 Kim F. Storm <storm@cua.dk>
19099
19100 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
19101 foreground and background colors. From Joe Buehler.
19102
19103 2002-08-26 Miles Bader <miles@gnu.org>
19104
19105 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
19106
19107 2002-08-25 Andrew Choi <akochoi@shaw.ca>
19108
19109 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
19110 defined instead of MAC_OSX.
19111
19112 * s/darwin.h (select): Define select to sys_select only if
19113 HAVE_CARBON is defined.
19114 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
19115 (DONT_REOPEN_PTY): #def it.
19116
19117 * macterm.c (XTread_socket): Remove code to call
19118 SendEventToEventTarget for keys with command modifiers when
19119 mac_command_key_is_meta is nil.
19120
19121 2002-08-24 Andreas Schwab <schwab@suse.de>
19122
19123 * eval.c (Fdefvar): Fix last change.
19124
19125 2002-08-23 Richard M. Stallman <rms@gnu.org>
19126
19127 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
19128 Record variables in load history as (defvar . VAR).
19129 (Fdefvar): Don't record in load history if no initial value.
19130 (Qdefvar): New variable.
19131 (syms_of_eval): Init and staticpro it.
19132
19133 * lread.c (syms_of_lread): Doc fix.
19134 (build_load_history): Use Fmember to see if a definition
19135 is already in the Vload_history element.
19136
19137 * process.c (Fstart_process): Remove /: from program name.
19138
19139 * emacs.c (decode_env_path): Don't add /: if file name handler
19140 has a `safe-magic' property.
19141
19142 * callproc.c (Fcall_process): Remove /: from program name.
19143
19144 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
19145
19146 * regex.c (PATFETCH): Remove the translating fetch.
19147 (PATFETCH_RAW): Rename to PATFETCH.
19148 (set_image_of_range): New fun.
19149 (SET_RANGE_TABLE_WORK_AREA): Use it.
19150 (regex_compile): Don't translate the pattern chars so eagerly.
19151 Only do it when inserting an `exactn' bytecode or when handling
19152 a char-range.
19153 (mutually_exclusive_p): Avoid empty statement.
19154
19155 2002-08-22 Kim F. Storm <storm@cua.dk>
19156
19157 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
19158 end up on a partially visible line; this reverts a specific part
19159 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
19160 display error which has been reported several times now.
19161 However it introduces the problem that changes was supposed to fix.
19162 See my comments in the source if you want to debug this further.
19163
19164 2002-08-20 Kenichi Handa <handa@etl.go.jp>
19165
19166 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19167
19168 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
19169
19170 * msdos.c (croak): Add `void' to definition.
19171
19172 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
19173 Don't define them, they are defined in msdos.c.
19174
19175 * mem-limits.h [MSDOS]: Declare etext.
19176
19177 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
19178 `const' since CORRECT_DIR_SEPS modifies its target.
19179
19180 2002-08-19 Kim F. Storm <storm@cua.dk>
19181
19182 * keyboard.c (Fclear_this_command_keys): Add optional arg
19183 KEEP-RECORD to avoid clearing lossage when we just want to clear
19184 the current key sequence (kmacro needs this).
19185
19186 2002-08-19 Kenichi Handa <handa@localhost>
19187
19188 * composite.c (run_composition_function): Call FUNC if it is fboundp.
19189
19190 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
19191 cons, return Qnil.
19192
19193 2002-08-17 Richard M. Stallman <rms@gnu.org>
19194
19195 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
19196
19197 * sysdep.c [!VMS]: Include sys/files.h.
19198
19199 * editfns.c (save_restriction_restore): Defend from unchained marker.
19200
19201 * buffer.c (overlays_at): Handle extending vec uniformly.
19202 (overlays_in): Handle extending vec from length 0 as in overlays_at.
19203
19204 2002-08-15 Andrew Choi <akochoi@shaw.ca>
19205
19206 * mac.c (init_mac_osx_environment): New function.
19207
19208 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
19209
19210 2002-08-14 Kim F. Storm <storm@cua.dk>
19211
19212 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
19213 executing macro before appending to it (when used from Lisp).
19214 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
19215 which is called prior to each iteration of macro (for kmacro.el).
19216 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
19217
19218 * lisp.h (Fexecute_kbd_macro): Update prototype.
19219
19220 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
19221
19222 2002-08-14 Kenichi Handa <handa@etl.go.jp>
19223
19224 * xselect.c (QUTF8_STRING): New variable.
19225 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
19226 (x_atom_to_symbol): Likewise.
19227 (x_get_local_selection): New argument local_request. If it is
19228 nonzero, call handler_fn with the second arg nil.
19229 (x_handle_selection_request): Call x_get_local_selection with
19230 local_request 0.
19231 (lisp_data_to_selection_data): Don't encode the string here.
19232 (Fx_get_selection_internal): Call x_get_local_selection with
19233 local_request 1.
19234 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
19235
19236 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
19237
19238 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
19239
19240 2002-08-13 Richard M. Stallman <rms@gnu.org>
19241
19242 * minibuf.c (Fminibufferp): New function.
19243 (syms_of_minibuf): Defsubr it.
19244 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
19245
19246 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
19247
19248 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
19249
19250 2002-08-12 Richard M. Stallman <rms@gnu.org>
19251
19252 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
19253 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
19254 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
19255 already.
19256
19257 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
19258
19259 2002-08-11 Andrew Choi <akochoi@shaw.ca>
19260
19261 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
19262 (Vmac_pass_command_to_system): New variable.
19263 (Vmac_pass_control_to_system): New variable.
19264 (do_mouse_moved): Check wp with is_emacs_window.
19265 (XTread_socket): Check window_ptr with is_emacs_window.
19266 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
19267 events back to Mac Toolbox for processing, depending on values of
19268 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
19269 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
19270 Vmac_pass_control_to_system.
19271
19272 2002-08-10 Kenichi Handa <handa@etl.go.jp>
19273
19274 * coding.c (unencodable_char_position): New function.
19275 (Funencodable_char_position): New function.
19276 (syms_of_coding): Defsubr Funencodable_char_position.
19277
19278 2002-08-10 Andrew Choi <akochoi@shaw.ca>
19279
19280 * mac.c (sys_select) [MAC_OSX]: New function.
19281
19282 * macterm.c (MakeMeTheFrontProcess): New function.
19283 (mac_initialize): Call MakeMeTheFrontProcess.
19284
19285 * s/darwin.h: Define select to sys_select.
19286
19287 2002-08-09 Richard M. Stallman <rms@gnu.org>
19288
19289 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
19290
19291 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
19292
19293 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
19294 end of the buffer.
19295
19296 2002-08-08 Ken Raeburn <raeburn@gnu.org>
19297
19298 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
19299
19300 * puresize.h (BASE_PURESIZE): Increase to 910000.
19301
19302 2002-08-08 Kenichi Handa <handa@etl.go.jp>
19303
19304 * coding.c (Ffind_operation_coding_system): For write-region, if
19305 VISIT is a filename, make it the target.
19306
19307 2002-08-07 Richard M. Stallman <rms@gnu.org>
19308
19309 * alloc.c (mark_object): Detect long lists for debugging.
19310 (mark_object_loop_halt): New variable.
19311
19312 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
19313
19314 * data.c (Fmake_variable_frame_local): Doc fix.
19315
19316 2002-08-01 David Ponce <david@dponce.com>
19317
19318 * w32menu.c (local_heap, local_alloc, local_free): New macros.
19319 (malloc_widget_value, free_widget_value)
19320 (w32_free_submenu_strings): Use them.
19321
19322 (push_submenu_start, push_submenu_end, push_left_right_boundary)
19323 (push_menu_pane, push_menu_item, single_keymap_panes)
19324 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
19325 (single_submenu, set_frame_menubar)
19326 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
19327
19328 (Fx_popup_menu): Don't show pop up menu until preceding one is
19329 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
19330
19331 * w32menu.c: Changes adapted from xmenu.c
19332 (set_frame_menubar): First parse all submenus,
19333 then make widget_value trees from them.
19334 Don't allocate any widget_value objects
19335 until we are done with the parsing.
19336 (parse_single_submenu): New function.
19337 (digest_single_submenu): New function.
19338 (single_submenu): Function deleted, replaced by those two.
19339
19340 2002-08-04 Andrew Choi <akochoi@shaw.ca>
19341
19342 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
19343 returns a valid window pointer before proceeding for keyDown and
19344 autoKey events.
19345
19346 2002-08-03 Andrew Choi <akochoi@shaw.ca>
19347
19348 * macterm.c (USE_CARBON_EVENTS): New macro.
19349 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
19350 (x_iconify_frame): Call CollapseWindow.
19351 (Vmac_reverse_ctrl_meta): New variable.
19352 (Vmac_wheel_button_is_mouse_2): New variable.
19353 (init_mac_drag_n_drop): New function.
19354 (mac_do_receive_drag): New function.
19355 (mac_handle_service_event): New function.
19356 (init_service_handler): New function.
19357 (mac_to_emacs_modifiers): New function.
19358 (mac_event_to_emacs_modifiers): New function.
19359 (mac_get_mouse_btn): New function.
19360 (mac_convert_event_ref): New function.
19361 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
19362 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
19363 mac_get_mouse_btn.
19364 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
19365
19366 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
19367 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
19368 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
19369 TOOL_BAR_EVENT for MAC_OS as well.
19370 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
19371 as for WINDOWS_NT.
19372 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
19373
19374 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
19375
19376 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
19377
19378 * xdisp.c (forward_to_next_line_start): Fix a condition that
19379 lead to a newline being skipped.
19380
19381 2002-08-02 Andrew Choi <akochoi@shaw.ca>
19382
19383 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
19384
19385 2002-08-01 Richard M. Stallman <rms@gnu.org>
19386
19387 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
19388
19389 2002-07-31 Andrew Choi <akochoi@shaw.ca>
19390
19391 * macfns.c: #undef init_process before #define-ing it.
19392
19393 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
19394 HAVE_CARBON is defined.
19395
19396 2002-07-31 Richard M. Stallman <rms@gnu.org>
19397
19398 * xmenu.c (set_frame_menubar): First parse all submenus,
19399 then make widget_value trees from them.
19400 Don't allocate any widget_value objects
19401 until we are done with the parsing.
19402 (parse_single_submenu): New function.
19403 (digest_single_submenu): New function.
19404 (single_submenu): Function deleted, replaced by those two.
19405
19406 2002-07-30 Juanma Barranquero <lektu@terra.es>
19407
19408 * w32proc.c (syms_of_ntproc): Fix docstring of
19409 `w32-get-true-file-attributes'.
19410
19411 2002-07-28 Richard M. Stallman <rms@gnu.org>
19412
19413 * s/hpux8.h (HPUX8): Define this before including hpux.h.
19414 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
19415
19416 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
19417
19418 * keyboard.c (make_lispy_event):
19419 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
19420 Explicitly clear up_modifier in event->modifiers.
19421
19422 2002-07-27 Richard M. Stallman <rms@gnu.org>
19423
19424 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
19425
19426 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
19427 for bar cursor.
19428
19429 2002-07-26 Kenichi Handa <handa@etl.go.jp>
19430
19431 * coding.c (detect_coding_iso2022): While checking a byte sequence
19432 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
19433 it in the normal loop.
19434
19435 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
19436
19437 * xterm.c (expose_overlaps): New function.
19438 (expose_window): Use it to fix the display of overlapping rows.
19439
19440 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
19441
19442 2002-07-23 Ken Raeburn <raeburn@gnu.org>
19443
19444 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
19445 since it only depends on XUINT.
19446
19447 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
19448 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
19449 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
19450 Macros deleted.
19451
19452 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
19453 its value over other approaches.
19454 * sysdep.c (start_of_data): Don't define the function if a macro
19455 form has been defined.
19456
19457 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
19458
19459 * xdisp.c (redisplay_updating_p): New variable.
19460 (init_iterator): Don't free realized faces when
19461 redisplay_updating_p is set.
19462 (redisplay_internal): Set redisplay_updating_p while updating
19463 the display.
19464
19465 2002-07-23 Richard M. Stallman <rms@gnu.org>
19466
19467 * editfns.c (Fmessage): Treat "" like nil.
19468
19469 2002-07-23 Kenichi Handa <handa@etl.go.jp>
19470
19471 * xdisp.c (face_before_or_after_it_pos):
19472 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19473
19474 2002-07-22 Juanma Barranquero <lektu@terra.es>
19475
19476 * callproc.c (init_callproc) [DOS_NT]:
19477 Initialize Vshared_game_score_directory to nil.
19478 (syms_of_callproc) [DOS_NT]: Likewise.
19479
19480 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
19481
19482 * xdisp.c (display_line): Replace an abort with xassert.
19483
19484 2002-07-21 Richard M. Stallman <rms@gnu.org>
19485
19486 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
19487 and END_UNCHANGED when setting buffer_unchanged_p.
19488 Use current_matrix_up_to_date_p to decide whether to use
19489 try_cursor_movement.
19490
19491 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
19492
19493 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
19494
19495 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
19496 Set to nil if dir does not exist.
19497 (syms_of_callproc): Init unconditionally and simply.
19498
19499 * buffer.c (Fbuffer_list): Doc fix.
19500
19501 2002-07-21 Ken Raeburn <raeburn@gnu.org>
19502
19503 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
19504
19505 * buffer.c (mmap_realloc): When shrinking, make sure number of
19506 pages to unmap is rounded towards zero.
19507
19508 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
19509 (XSETINT): Deleted.
19510
19511 * m/att3b.h (XINT): Don't define.
19512 (VALBITS, VALMASK, XTYPE): Deleted.
19513 (DATA_SEG_BITS): Define.
19514 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
19515 ARRAY_MARK_FLAG): Deleted.
19516 (DATA_SEG_BITS): Define.
19517 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
19518 (DATA_SEG_BITS): Define.
19519
19520 2002-07-20 Richard M. Stallman <rms@gnu.org>
19521
19522 * print.c (print_error_message): New args CONTEXT and CALLER.
19523 Calls changed.
19524
19525 * lisp.h (print_error_message): Declare new args.
19526
19527 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
19528 and CONTEXT to print_error_message, don't print them here.
19529 For a Quit, don't use Vsignaling_function.
19530 Call message_log_maybe_newline.
19531
19532 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
19533
19534 2002-07-20 Kim F. Storm <storm@cua.dk>
19535
19536 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
19537
19538 2002-07-19 Ken Raeburn <raeburn@gnu.org>
19539
19540 * bytecode.c (struct byte_stack): Pointers into byte string now
19541 point to const.
19542 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
19543 const.
19544 * charset.h (BCOPY_SHORT): Source pointer now points to const.
19545 * coding.c (encode_eol, detect_coding, detect_eol):
19546 (decode_coding, encode_coding, detect_coding_system):
19547 Source strings now treated as const.
19548 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
19549 modify Lisp string contents.
19550 * coding.h (decode_coding, encode_coding, detect_coding,
19551 detect_eol): Declarations updated.
19552 * composite.c (compose_chars_in_text): Treat Lisp string contents
19553 as const.
19554 * dispnew.c (safe_bcopy): Source pointer now points to const.
19555 * lisp.h (STRING_COPYIN): New macro.
19556 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
19557 (internal_with_output_to_temp_buffer): Declarations updated.
19558 * print.c (temp_output_buffer_setup):
19559 (internal_with_output_to_temp_buffer): Buffer name argument is now
19560 pointer to const.
19561 * sound.c (struct sound_device): Function pointer field "write"
19562 buffer argument now points to const.
19563 (vox_write): Buffer argument points to const.
19564 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
19565 contents as const.
19566 * sysdep.c (emacs_write): Buffer pointer now const.
19567 * term.c (encode_terminal_code): Buffer pointer now const.
19568 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
19569 (x_face_list_fonts, x_update_menu_appearance):
19570 (hash_string_case_insensitive): Treat Lisp string contents as const.
19571
19572 2002-07-19 Juanma Barranquero <lektu@terra.es>
19573
19574 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
19575
19576 * fileio.c (syms_of_fileio): Likewise.
19577 (Ffile_name_as_directory): Fix argument name in docstring.
19578 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
19579
19580 2002-07-18 Richard M. Stallman <rms@gnu.org>
19581
19582 * data.c (Fdefalias): Doc fix.
19583
19584 2002-07-17 Dave Love <fx@gnu.org>
19585
19586 * intervals.h (text_property_stickiness): Use P_.
19587
19588 * ccl.c: Remove `emacs' conditionals.
19589 (ccl_backtrace_table): Fix size spec.
19590 (ccl_driver): Fix type errors.
19591
19592 2002-07-16 Ken Raeburn <raeburn@gnu.org>
19593
19594 * alloc.c (xstrdup, make_string, make_unibyte_string)
19595 (make_multibyte_string, build_string): String pointer args now
19596 point to const.
19597 * charset.c (find_charset_in_text, c_string_width):
19598 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
19599 * fileio.c (report_file_error):
19600 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
19601 (count_combining_before, count_combining_after, insert_1_both):
19602 (insert, insert_and_inherit, insert_string):
19603 (insert_before_markers, insert_before_markers_and_inherit):
19604 * lread.c (intern, oblookup, hash_string):
19605 * minibuf.c (temp_echo_area_glyphs):
19606 * search.c (fast_c_string_match_ignore_case):
19607 * sysdep.c (emacs_open, set_file_times):
19608 * xfaces.c (xstricmp):
19609 * xdisp.c (store_frame_title, string_char_and_length):
19610 (message_dolog, message2, message2_nolog, set_message): Likewise.
19611 (set_message_1): Cast message string argument to const pointer.
19612 * editfns.c (general_insert_function): Insertion function now
19613 takes pointer to const for input data.
19614 * charset.h (find_charset_in_text, c_string_width):
19615 (parse_str_as_multibyte): Declarations updated.
19616 * dispextern.h (xstricmp): Declaration updated.
19617 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
19618 (count_size_as_multibyte, count_combining_before):
19619 (count_combining_after, insert_1, insert_1_both, message_dolog):
19620 (insert, insert_and_inherit, insert_before_markers)
19621 (insert_before_markers_and_inherit, set_message, message2):
19622 (message2_dolog, build_string, make_string, make_unibyte_string):
19623 (make_multibyte_string, intern, oblookup, report_file_error):
19624 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
19625 (emacs_open, xstrdup): Declarations updated.
19626 * systime.h (set_file_times): Declaration updated.
19627
19628 * charset.c (find_charset_in_text, lisp_string_width): Use const
19629 for pointer to lisp string data.
19630 * charset.h (FETCH_STRING_CHAR_ADVANCE):
19631 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
19632 * coding.c (Ffind_coding_systems_region_interval):
19633 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
19634 (Fmake_directory_internal, Fdelete_directory):
19635 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
19636 * fontset.c (font_family_registry, fs_query_fontset):
19637 (list_fontsets):
19638 * frame.c (Fframe_parameter):
19639 * keyboard.c (cmd_error_internal):
19640 * keymap.c (Fdescribe_buffer_bindings):
19641 * lread.c (complete_filename_p, openp):
19642 * minibuf.c (Fminibuffer_complete_word):
19643 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
19644 (face_before_or_after_it_pos, next_element_from_string):
19645 (get_overlay_arrow_glyph_row, display_mode_element):
19646 (decode_mode_spec_coding):
19647 * xterm.c (same_x_server): Likewise.
19648
19649 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
19650 settings of non-existent fields.
19651
19652 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
19653 copy a lisp value.
19654
19655 * lread.c (Fintern_soft): Use string macros instead of
19656 Lisp_String fields.
19657 * keyboard.c (echo_char, parse_modifiers_uncached):
19658 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
19659 * textprop.c (validate_interval_range, interval_of): Likewise.
19660
19661 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
19662
19663 * charset.h (FETCH_STRING_CHAR_ADVANCE)
19664 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
19665 XSTRING()->size_byte.
19666
19667 * lisp.h (SDATA, SREF): Produce rvalue.
19668 (SSET): New macro.
19669 * alloc.c (make_event_array): Use SSET for storing into a string.
19670 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
19671 a string.
19672 * casefiddle.c (casify_object): Use SSET.
19673 * charset.h (FETCH_STRING_CHAR_ADVANCE)
19674 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
19675 address of string contents.
19676 * data.c (Faref): Use SDATA.
19677 (Faset): Use SDATA, SSET.
19678 * dired.c (directory_files_internal): Use SSET.
19679 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
19680 (Fread_file_name): Use SREF, SSET.
19681 * fns.c (concat): Use SSET.
19682 (concat, Fdelete): Use SDATA.
19683 * insdel.c (insert_from_string_1): Use SDATA.
19684 * keyboard.c (Fevent_convert_list): Use SREF.
19685 * lread.c (Fload): Use SDATA, SSET.
19686 * macfns.c (validate_x_resource_name): Use SSET.
19687 * process.c (status_message): Use SSET.
19688 * search.c (wordify): Use SDATA.
19689 (Freplace_match): Use SREF.
19690 * w32fns.c (validate_x_resource_name): Use SSET.
19691 * xfns.c (validate_x_resource_name): Use SSET.
19692 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
19693
19694 2002-07-16 Richard M. Stallman <rms@gnu.org>
19695
19696 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
19697
19698 * xdisp.c (reconsider_clip_changes):
19699 Don't test prevent_redisplay_optimizations_p.
19700 (redisplay_internal): Test prevent_redisplay_optimizations_p
19701 along with clip_changed in some cases.
19702 (try_window_id): Likewise.
19703 (redisplay_window): New local var buffer_unchanged_p.
19704
19705 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
19706
19707 * process.c (create_process): Test USG_SUBTTY_WORKS.
19708 (process_send_signal): Clean up handling of GID.
19709 Detect errors in ioctls meant to set GID.
19710
19711 * window.c (temp_output_buffer_show):
19712 Don't set prevent_redisplay_optimizations_p.
19713
19714 2002-07-15 Juanma Barranquero <lektu@terra.es>
19715
19716 * eval.c (Fdefvaralias): Add docstring argument.
19717
19718 2002-07-15 Ken Raeburn <raeburn@gnu.org>
19719
19720 * lisp.h (STRING_INTERVALS): Produce rvalue.
19721 (STRING_SET_INTERVALS): New macro.
19722 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
19723 * fns.c (Fstring_as_multibyte): Likewise.
19724 * intervals.c (balance_possible_root_interval, delete_interval)
19725 (create_root_interval, copy_intervals_to_string): Likewise.
19726 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
19727 instead of 0.
19728
19729 2002-07-14 Ken Raeburn <raeburn@gnu.org>
19730
19731 * lisp.h (STRING_SET_CHARS): New macro.
19732 (SCHARS, SBYTES): Produce rvalues.
19733 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
19734 * fns.c (concat): Likewise.
19735 * lread.c (read_vector): Likewise.
19736
19737 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
19738 (STRING_SET_UNIBYTE): New macro.
19739 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
19740 length of -1) changed to use STRING_SET_UNIBYTE.
19741 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
19742 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
19743 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
19744 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
19745 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
19746 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
19747 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
19748 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
19749 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
19750 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
19751 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
19752 STRING_BYTES or indirection changed to SCHARS, SBYTES,
19753 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
19754 unchanged for now.
19755
19756 2002-07-13 Kim F. Storm <storm@cua.dk>
19757
19758 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
19759
19760 2002-07-12 Richard M. Stallman <rms@gnu.org>
19761
19762 * fileio.c (Fwrite_region): Doc fix.
19763
19764 * print.c (print_error_message): Don't handle Vsignaling_function here.
19765
19766 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
19767 (command_loop_1): Avoid certain actions after memory-full error.
19768
19769 * eval.c (Fsignal): Don't call cancel_hourglass.
19770 For a memory-full error, don't call Vsignal_hook_function
19771 and don't set Vsignaling_function.
19772
19773 * process.c (process_send_signal): Add abort call.
19774
19775 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
19776
19777 * keymap.c (Fkey_binding): Fix typo.
19778
19779 2002-07-11 Richard M. Stallman <rms@gnu.org>
19780
19781 * alloc.c (Vmemory_full): New variable.
19782 (Vmemory_signal_data): Rename from memory_signal_data.
19783 Uses changed.
19784 (syms_of_alloc): Defvar them.
19785 (memory_full, buffer_memory_full): Set Vmemory_full.
19786
19787 * lisp.h (Vmemory_full): Add declaration.
19788 (current_column, indented_beyond_p): Change declaration.
19789
19790 * indent.c (last_known_column): Declare as double, not float.
19791 (current_column, current_column_1, string_display_width)
19792 (position_indentation): Return `double'.
19793 (indented_beyond_p): Arg `column' is `double'. Callers changed.
19794
19795 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
19796 (back_to_previous_visible_line_start)
19797 (reseat_at_next_visible_line_start, next_element_from_buffer):
19798 Use `double', not `float', when calling indented_beyond_p.
19799
19800 * s/hpux11.h (BROKEN_SA_RESTART): Define.
19801
19802 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
19803
19804 2002-07-11 Juanma Barranquero <lektu@terra.es>
19805
19806 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
19807 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
19808 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
19809 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
19810 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
19811 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
19812
19813 2002-07-10 Juanma Barranquero <lektu@terra.es>
19814
19815 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
19816 All callers changed.
19817
19818 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
19819
19820 * data.c (Fdefalias): Add an optional `docstring' argument.
19821 (set_internal, Fsetq_default): Use XCAR/XCDR.
19822
19823 * composite.c (HASH_VALUE, HASH_KEY):
19824 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
19825
19826 2002-07-09 Kenichi Handa <handa@etl.go.jp>
19827
19828 * callproc.c (Fcall_process): Fix previous change.
19829
19830 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
19831
19832 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
19833 Add support for hash-tables.
19834 (Ftry_completion): Return t even if the string appears multiple times.
19835
19836 * fns.c (Fnconc): Use XCDR.
19837 (Fprovide): Use CONSP and XCDR.
19838 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
19839 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
19840 (Fmake_hash_table): Accept `:size nil'.
19841 (Fmakehash): Delete: moved to subr.el.
19842 (syms_of_fns): Don't defsubr makehash.
19843
19844 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
19845 (HASH_TABLE_SIZE): Move from fns.c.
19846
19847 2002-07-07 Richard M. Stallman <rms@gnu.org>
19848
19849 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
19850 Instead just return 0 when there is something to be done.
19851 (try_scrolling): If make_cursor_line_fully_visible returns 0,
19852 retry scrolling as if cursor were off the bottom.
19853 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
19854 return CURSOR_MOVEMENT_MUST_SCROLL.
19855 (redisplay_window): If make_cursor_line_fully_visible returns 0,
19856 go to try_to_scroll.
19857
19858 * buffer.c (Fbuffer_local_value): Store current value into its binding
19859 so we get the up-to-date value for the binding that is loaded.
19860
19861 * eval.c (Fdefmacro): Doc fix.
19862
19863 2002-07-05 Dave Love <fx@gnu.org>
19864
19865 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
19866 correctly.
19867
19868 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
19869 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
19870 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
19871 CCL_LookupCharConstTbl.
19872 (syms_of_ccl): Defvar translation-hash-table-vector.
19873
19874 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19875
19876 * xdisp.c: Remove unused variable `face'.
19877
19878 2002-07-04 Juanma Barranquero <lektu@terra.es>
19879
19880 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
19881 obsolescence information.
19882
19883 2002-07-03 Andrew Choi <akochoi@shaw.ca>
19884
19885 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
19886 pattern. Search cache first.
19887 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
19888 for Japanese font.
19889 (XLoadQueryFont): Use it.
19890
19891 2002-07-02 Richard M. Stallman <rms@gnu.org>
19892
19893 * keymap.c (Fdefine_key): Doc fix.
19894
19895 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
19896
19897 2002-07-02 Juanma Barranquero <lektu@terra.es>
19898
19899 * keymap.c (syms_of_keymap): Fix typo.
19900
19901 2002-07-01 Andrew Choi <akochoi@shaw.ca>
19902
19903 * s/darwin.h: Define POSIX_SIGNALS.
19904
19905 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
19906 and FSRefMakePath to convert FSSpec returned with Apple Event to
19907 Posix pathname.
19908 (mac_initialize) [TARGET_API_MAC_CARBON]:
19909 Call init_required_apple_events and disable the `Quit' menu item
19910 provided automatically by the Carbon Toolbox.
19911
19912 2002-07-01 Dave Love <fx@gnu.org>
19913
19914 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19915 for K&R.
19916
19917 * xterm.c: Fix prototype for K&R.
19918
19919 * term.c (costs_set): Declare static, non-initialized for pcc.
19920
19921 2002-07-01 Richard M. Stallman <rms@gnu.org>
19922
19923 * keyboard.c (timer_last_idleness_start_time): New variable.
19924 (timer_start_idle): Set that.
19925 (read_key_sequence): Use that to reset timer_idleness_start_time
19926 to previous value.
19927
19928 * window.c (Frecenter): With arg, set optional_new_start.
19929
19930 * xdisp.c (redisplay_internal): Make optional_new_start really work.
19931
19932 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
19933 buffer for completion.
19934
19935 2002-06-29 Ken Raeburn <raeburn@gnu.org>
19936
19937 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
19938
19939 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19940
19941 * keyboard.c (readable_filtered_events): New function that filters
19942 FOCUS_IN_EVENT depending on parameter.
19943 (readable_events): Calls readable_filtered_events, not filtering
19944 FOCUS_IN_EVENT.
19945 (get_filtered_input_pending): New function, filtering parameter passed
19946 to readable_filtered_events.
19947 (get_input_pending): Calls get_filtered_input_pending, not filtering
19948 FOCUS_IN_EVENT.
19949 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
19950 FOCUS_IN_EVENT.
19951
19952 * xterm.h (struct x_output): Add focus_state.
19953
19954 * xterm.c (x_focus_changed): New function.
19955 (x_detect_focus_change): New function.
19956 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
19957 EnterNotify and LeaveNotify to track X focus changes.
19958
19959 2002-06-28 Andreas Schwab <schwab@suse.de>
19960
19961 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
19962
19963 2002-06-27 Kim F. Storm <storm@cua.dk>
19964
19965 * xdisp.c (mode_line_string_list, mode_line_string_face)
19966 (mode_line_string_face_prop): New variables.
19967 (store_mode_line_string): New function.
19968 (display_mode_element): Use store_mode_line_string to
19969 add mode-line string elements to mode_line_string_list
19970 when mode_line_string_list is non-nil.
19971 (Fformat_mode_line): Now returns propertized string by
19972 default. New arg NO-PROPS to ignore properties.
19973 (decode_mode_spec): Only add two dashes for %- in propertized
19974 mode-line string.
19975 (syms_of_xdisp): Init and staticpro mode_line_string_list.
19976
19977 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
19978
19979 * minibuf.c (minibuffer_completion_contents): Add return type.
19980
19981 2002-06-27 Juanma Barranquero <lektu@terra.es>
19982
19983 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
19984
19985 2002-06-26 Juanma Barranquero <lektu@terra.es>
19986
19987 * fileio.c (read_file_name_cleanup): Add missing return.
19988
19989 2002-06-26 Richard M. Stallman <rms@gnu.org>
19990
19991 * window.c (Frecenter): Don't set force_start flag.
19992
19993 * minibuf.c (do_completion, Fminibuffer_complete_word)
19994 (Fminibuffer_completion_help): Complete just the text before point.
19995 (minibuffer_completion_contents): New function.
19996
19997 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
19998
19999 * frame.c (frames_bury_buffer): Function deleted.
20000
20001 2002-06-25 Miles Bader <miles@gnu.org>
20002
20003 * callint.c (Fcall_interactively): When checking to see if doprnt hit
20004 the end of callint_message, allow for a terminating '\0'.
20005
20006 2002-06-24 Juanma Barranquero <lektu@terra.es>
20007
20008 * w32select.c: Include composite.h.
20009
20010 * w16select.c: Likewise.
20011
20012 2002-06-24 Kenichi Handa <handa@etl.go.jp>
20013
20014 * callproc.c (Fcall_process): If code detection is necessary,
20015 call detect_coding directly here.
20016
20017 * coding.c (detect_eol): Preserve coding->cmp_data.
20018
20019 * w16select.c (Fw16_get_clipboard_data):
20020 * w32fns.c (w32_to_x_font):
20021 * w32select.c (Fw32_get_clipboard_data):
20022 * xselect.c (selection_data_to_lisp_data):
20023 * xterm.c (XTread_socket): Disable composition handling.
20024
20025 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
20026
20027 * print.c (temp_output_buffer_setup): Kill all local variables.
20028
20029 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
20030
20031 * lread.c (Fread): Remove redundant and imprecise declaration.
20032
20033 * xfns.c (check_x_display_info): Use check_x_frame.
20034
20035 * .gdbinit (xprintsym): Use the new `xname' field.
20036 (xsymbol): Use it.
20037
20038 2002-06-22 Jason Rumney <jasonr@gnu.org>
20039
20040 * w32fns.c (file_dialog_callback): New function.
20041 (Fx_file_dialog): Allow selecting directories as well as files.
20042
20043 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20044
20045 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
20046 OpenBSD. Add support for mipseb-*-netbsd* machines.
20047
20048 2002-06-17 Andrew Choi <akochoi@shaw.ca>
20049
20050 * macterm.c (mac_scroll_area): Set foreground and backcolor to
20051 black and white before scrolling. Restore frame background and
20052 foreground color after scrolling.
20053 (do_window_update): Call XClearWindow before calling expose_frame.
20054 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
20055 FRAME_FOREGROUND_PIXEL of frame.
20056
20057 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
20058 test Mac command key as <ALT> key.
20059
20060 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
20061
20062 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
20063
20064 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
20065 Lookup keys in function-key-map immediately so that key-translation-map
20066 can be applied earlier.
20067 Remove function_key_possible and key_translation_possible, replaced
20068 by checking `keytran_start < t'.
20069
20070 * .gdbinit (xsymbol): Use the new `xname' field.
20071
20072 2002-06-17 Andrew Choi <akochoi@shaw.ca>
20073
20074 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
20075 test Mac command key as <ALT> key.
20076
20077 * mac.c (do_applescript): Call initialize_applescript if necessary
20078 when first called. Dispose of result_desc only when there is no error.
20079 (Fdo_applescript): Use %d format specifier instead of %ld.
20080
20081 2002-06-16 Andrew Choi <akochoi@shaw.ca>
20082
20083 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
20084 of FrontWindow for cases keyDown and autoKey.
20085
20086 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
20087 Vdefault_fontset to Monaco with mac-roman coding.
20088
20089 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
20090 init_process before and after inclusion of Carbon/Carbon.h, resp.
20091
20092 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
20093 cursor_gc.
20094 (add_font_name_table_entry): New function.
20095 (init_font_name_table): Use add_font_name_table_entry; add italic,
20096 bold, and bold-italic entries for truetype fonts.
20097
20098 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
20099 for Mac too.
20100 (try_font_list) [MAC_OS]: If no font matches given registry, try
20101 fonts with any registry matching face_family.
20102 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
20103
20104 * s/darwin.h: If autoconf detects the Ncurses library, define
20105 LIBS_TERMCAP to -lncurses to use it.
20106
20107 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
20108
20109 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
20110
20111 2002-06-15 Richard M. Stallman <rms@gnu.org>
20112
20113 * window.c (Fset_window_configuration): Explicitly preserve
20114 the point value that new_current_buffer had at the start.
20115
20116 2002-06-14 Juanma Barranquero <lektu@terra.es>
20117
20118 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
20119 Fix typos.
20120
20121 2002-06-14 Kim F. Storm <storm@cua.dk>
20122
20123 * insdel.c (insert_1_both, insert_from_string_1)
20124 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
20125 insert happened in the end_unchanged region. Otherwise, the
20126 redisplay may be confused and duplicate the last line in the
20127 buffer [seen after save-buffer when require-final-newline==t].
20128
20129 2002-06-13 Jason Rumney <jasonr@gnu.org>
20130
20131 * w32.c (init_environment): Remove EMACSLOCKDIR.
20132 (stat): Swap _S_IFDIR and _S_IFREG.
20133
20134 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20135
20136 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
20137 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
20138 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
20139 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
20140 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
20141 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
20142 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
20143 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
20144 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
20145 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
20146 SELECTION_REQUEST_EVENT, selection_clear_event to
20147 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
20148 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
20149 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
20150 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
20151 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
20152 no_event to NO_EVENT.
20153
20154 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20155
20156 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
20157
20158 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
20159
20160 * intervals.c (textget): Don't forget to `return'.
20161 (lookup_char_property): Use XCAR/XCDR.
20162
20163 2002-06-12 Juanma Barranquero <lektu@terra.es>
20164
20165 * xdisp.c (Fformat_mode_line): Fix typo.
20166
20167 2002-06-12 Kim F. Storm <storm@cua.dk>
20168
20169 * xdisp.c (Fformat_mode_line): New function.
20170 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
20171 (store_frame_title_char, store_frame_title): Use unconditionally.
20172 (init_xdisp): Defsubr Fformat_mode_line.
20173 Initialize frame_title_buf etc. unconditionally.
20174
20175 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
20176
20177 * keyboard.c (read_key_sequence):
20178 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
20179 things through those maps after downcasing events.
20180 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
20181 applies after function-key-map.
20182 Make sure that keytran can be done in the middle in the sequence.
20183 Be careful not to throw away events past the one we downcase.
20184
20185 * lread.c (read_integer): Remove unused var `tem'.
20186 (read1): Fix int/Lisp_Object mixup.
20187
20188 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
20189
20190 2002-06-11 Richard M. Stallman <rms@gnu.org>
20191
20192 * keyboard.c (readable_events): Ignore any number of
20193 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
20194
20195 2002-06-09 Miles Bader <miles@gnu.org>
20196
20197 * xfaces.c (Ftty_supports_face_attributes_p): New function.
20198 (parse_rgb_list, tty_lookup_color): New functions.
20199 (tty_defined_color): Use `tty_lookup_color' to do all the work.
20200 (color_distance, Fcolor_distance): New functions.
20201 (TTY_SAME_COLOR_THRESHOLD): New macro.
20202 (Qtty_color_standard_values): New variable.
20203 (syms_of_xfaces): Initialize new vars & functions.
20204
20205 2002-06-08 Colin Walters <walters@verbum.org>
20206
20207 * textprop.c (Vchar_property_alias_alist): New variable.
20208 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
20209
20210 * intervals.c (lookup_char_property): New function for looking up
20211 overlay and text properties, created from textget.
20212 (textget): Use it.
20213
20214 * intervals.h (lookup_char_property): Declare.
20215 (Vchar_property_alias_alist): Declare.
20216
20217 * buffer.c (Foverlay_get): Use lookup_char_property.
20218
20219 2002-06-07 Sam Steingold <sds@gnu.org>
20220
20221 * xselect.c (lisp_data_to_selection_data): Fix last change:
20222 *data_ret is not a Lisp string, while unibyte_string is.
20223
20224 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
20225
20226 * xselect.c (lisp_data_to_selection_data): Fix last change:
20227 set size_ret.
20228
20229 2002-06-07 Andreas Schwab <schwab@suse.de>
20230
20231 * m/amdx86-64.h: New file.
20232
20233 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
20234
20235 * fns.c (Fstring_make_unibyte): Doc fix.
20236
20237 * xselect.c (lisp_data_to_selection_data): If the requested type
20238 is STRING, call string_make_unibyte to encode the selected text
20239 as a string.
20240
20241 * window.c (Fset_window_hscroll): Doc fix.
20242
20243 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20244
20245 * fileio.c (choose_write_coding_system):
20246 Call select-safe-coding-system properly.
20247
20248 2002-06-03 Richard M. Stallman <rms@gnu.org>
20249
20250 * xdisp.c (message_with_string): Error if STRING is not a string.
20251
20252 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
20253
20254 * fileio.c (choose_write_coding_system): Pass FILE arg to
20255 Vselect_safe_coding_system_function.
20256
20257 2002-06-03 Ken Raeburn <raeburn@gnu.org>
20258
20259 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
20260
20261 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
20262
20263 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
20264 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
20265 * keymap.c (describe_command): Likewise.
20266 * minibuf.c (read_minibuf): Likewise.
20267
20268 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
20269 Cast `current_column' return value to int.
20270 (back_to_previous_visible_line_start)
20271 (reseat_at_next_visible_line_start, next_element_from_buffer):
20272 Cast `indented_beyond_p' 3rd arg to float.
20273
20274 * indent.c (last_known_column): Now a float.
20275 (current_column_1, position_indentation, current_column)
20276 (string_display_width): Return float.
20277 (Fcurrent_column): Cast `current_column' return value to int.
20278 (Fcurrent_indentation): Cast `position_indentation' retval to int.
20279 (indented_beyond_p): Third arg now a float.
20280 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
20281
20282 * lisp.h (current_column): Now returns float.
20283 (indented_beyond_p): 3rd arg now a float.
20284
20285 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
20286
20287 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
20288 is Qcompound_text_with_extensions.
20289
20290 * xselect.c (lisp_data_to_selection_data): Always set selection
20291 type as string if x_encode_text returns streingp non-NULL.
20292
20293 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
20294
20295 2002-05-30 Richard M. Stallman <rms@gnu.org>
20296
20297 * window.c (Fset_window_configuration): Correct the handling
20298 of point in current buffer, to work with multiple windows.
20299
20300 2002-05-29 Colin Walters <walters@verbum.org>
20301
20302 * lread.c (Fread_from_string): Don't depend on order of evaluation
20303 for C function parameters.
20304
20305 2002-05-28 Richard M. Stallman <rms@gnu.org>
20306
20307 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
20308 way for blinked-off state and for a nonselected window.
20309
20310 * window.c (window_scroll_pixel_based): Don't call Fbolp;
20311 instead, see if the new start pos is at beginning of line.
20312
20313 * fileio.c (Fwrite_region): If START is a string, don't
20314 make any annotations.
20315
20316 * eval.c (syms_of_eval): Doc fix.
20317
20318 2002-05-28 Colin Walters <walters@debian.org>
20319
20320 * emacs.c (USAGE1): Add --no-splash.
20321 (standard_args): Ditto.
20322
20323 2002-05-28 Colin Walters <walters@gnu.org>
20324
20325 * lread.c (readchar_count): New variable.
20326 (readchar): Increment it.
20327 (unreadchar): Decrement it.
20328 (read_multibyte): Decrement it.
20329 (Vread_with_symbol_positions): New variable.
20330 (Vread_symbol_positions_list): New variable.
20331 (read_internal_start): New function, created from Fread and
20332 Fread_from_string. Handle Vread_symbol_positions_list and
20333 Vread_with_symbol_positions.
20334 (readevalloop, Fread, Fread_from_string): Use it.
20335 (read1): Use readchar_count to add symbol positions to
20336 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
20337 (syms_of_lread): DEFVAR_LISP and initialize them.
20338
20339 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
20340 (substitute_object_recurse, substitute_object_in_subtree)
20341 (substitute_in_interval): Prototype.
20342 (read_multibyte): Return c if it's less than zero.
20343
20344 2002-05-28 Kim F. Storm <storm@cua.dk>
20345
20346 * fileio.c (Fread_file_name_internal): Added brute-force
20347 speed up for using predicate file-directory-p.
20348
20349 2002-05-28 Kim F. Storm <storm@cua.dk>
20350
20351 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
20352 New variables.
20353 (syms_of_fileio): DEFVAR_LISP them.
20354 (read_file_name_cleanup): New unwind function.
20355 (Fread_file_name_internal): Only return completions satifying
20356 Vread_file_name_predicate. Temporarily unwind protect and rebind
20357 default-directory while checking completions against the predicate.
20358 (Fread_file_name): Added PREDICATE argument. Specbind it to
20359 Vread_file_name_predicate during completion.
20360 Call Vread_file_name_function to read the file name if non-nil.
20361
20362 * lisp.h (Fread_file_name): Now has 6 args.
20363
20364 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
20365 predicate for Fread_file_name when reading directory name.
20366 Supply Qnil for predicate in other calls to Fread_file_name.
20367
20368 2002-05-26 Miles Bader <miles@gnu.org>
20369
20370 * term.c (tty_capable_p): New function.
20371 * dispextern.h (tty_capable_p): New function declaration.
20372 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
20373 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
20374
20375 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
20376
20377 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
20378 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
20379 (Vwrite_region_annotate_functions): Docstring fix.
20380
20381 2002-05-23 Kim F. Storm <storm@cua.dk>
20382
20383 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
20384 phys_cursor's hpos is overwritten. This is still not completely
20385 correct, as it doesn't really make sense to use hpos at all to
20386 get the cursor glyph (as that is relative to the width of the
20387 characters on the line, which may have changed during the update).
20388
20389 2002-05-22 Jason Rumney <jasonr@gnu.org>
20390
20391 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
20392 Lisp_Object.
20393 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
20394 Use modified enumfont_t struct.
20395
20396 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
20397
20398 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
20399 Handle the `hbar' cursor type.
20400 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
20401
20402 * w32fns.c (Qhbar): New variable.
20403 (x_specified_cursor_type): Use it.
20404
20405 2002-05-21 Ken Raeburn <raeburn@gnu.org>
20406
20407 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
20408 now, when the address is needed.
20409
20410 2002-05-21 Colin Walters <walters@gnu.org>
20411
20412 * Makefile.in (shortlisp): Add font-core.el.
20413
20414 2002-05-20 Richard M. Stallman <rms@gnu.org>
20415
20416 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
20417
20418 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
20419 equivalent key bindings here.
20420
20421 2002-05-20 Ken Raeburn <raeburn@gnu.org>
20422
20423 Change symbol structure to contain a lisp object for the symbol
20424 name:
20425 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
20426 object field named "xname".
20427 (SYMBOL_NAME): New macro.
20428 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
20429 name field.
20430 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
20431 (mark_object, gc_sweep): Use symbol xname field and XSTRING
20432 instead of name field.
20433 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
20434 SYMBOL_NAME instead of XSYMBOL and name field.
20435 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
20436 instead of XSYMBOL and name field.
20437 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
20438 and SYMBOL_NAME instead of XSYMBOL and name field.
20439 * coding.c (Fread_coding_system, code_convert_region1)
20440 (code_convert_string1, code_convert_string_norecord)
20441 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
20442 XSYMBOL and name field.
20443 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
20444 (Fmake_variable_buffer_local, Fmake_local_variable)
20445 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
20446 of XSYMBOL and name field.
20447 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
20448 XSYMBOL and name field.
20449 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
20450 instead of XSYMBOL and name field.
20451 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
20452 XSYMBOL and name field.
20453 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
20454 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
20455 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
20456 instead of XSYMBOL and name field.
20457 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
20458 (parse_modifiers, apply_modifiers, Fevent_convert_list)
20459 (parse_solitary_modifier, Fexecute_extended_command):
20460 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
20461 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
20462 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
20463 of XSYMBOL and name field.
20464 (describe_command, describe_translation): Use SYMBOL_NAME and
20465 assignment instead of XSYMBOL and name field and XSETSTRING.
20466 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
20467 instead of XSYMBOL and name field.
20468 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
20469 name field and XSETSTRING.
20470 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
20471 of XSYMBOL and name field.
20472 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
20473 assignment instead of XSYMBOL and name field and XSETSTRING.
20474 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
20475 XSTRING instead of XSYMBOL and name field.
20476 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
20477 and XSTRING instead of XSYMBOL and name field.
20478 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
20479 and XSTRING instead of XSYMBOL and name field.
20480 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
20481 XSTRING instead of XSYMBOL and name field.
20482 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
20483 of XSYMBOL and name field.
20484 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
20485 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
20486
20487 2002-05-19 Ken Raeburn <raeburn@gnu.org>
20488
20489 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
20490 and XCDR real rvalues in most configurations.
20491
20492 * buffer.c (fix_overlays_in_range, fix_overlays_before):
20493 Don't take the address of the cdr part of a cons cell; instead, track
20494 the parent cell and call XSETCDR, or set the variable for the head
20495 of the list if we haven't started down the list yet.
20496
20497 2002-05-19 Richard M. Stallman <rms@gnu.org>
20498
20499 * doc.c (reread_doc_file): Don't ask for confirmation.
20500
20501 2002-05-18 Jason Rumney <jasonr@gnu.org>
20502
20503 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
20504 (xbm_load_image): Use it.
20505 (xbm_load): Ditto.
20506 (xbm_read_bitmap_data): Reverted to xfns.c version.
20507 From David Ponce <david@dponce.com>.
20508
20509 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
20510
20511 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
20512 2.02 and later.
20513
20514 2002-05-16 Juanma Barranquero <lektu@terra.es>
20515
20516 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
20517
20518 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
20519
20520 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
20521 meaningful test.
20522 (read_char_minibuf_menu_prompt): Fix typo.
20523
20524 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
20525
20526 * eval.c (Fcommandp): Doc fix.
20527
20528 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
20529
20530 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
20531 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
20532 (Fset_keymap_parent): Gcpro a bit more.
20533 (access_keymap): Gcpro around meta_map call and around the main loop.
20534 (get_keyelt): Gcpro when following indirect references.
20535 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
20536 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
20537 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
20538 Remove useless ad-hoc remap code.
20539
20540 2002-05-13 Richard M. Stallman <rms@gnu.org>
20541
20542 * search.c (search_buffer): Give up boyer moore search if inverse
20543 translation change charset_base.
20544
20545 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
20546
20547 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
20548 characters is carried over from the previous block of text, adjust
20549 coding->produced to account for the extra character.
20550
20551 2002-05-11 Andreas Schwab <schwab@suse.de>
20552
20553 * coding.c (intersection): Keep the elements of the returned list
20554 in the same order as in the first list.
20555
20556 2002-05-11 Kim F. Storm <storm@cua.dk>
20557
20558 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
20559 only update cmm_size if realloc actually succeeds.
20560 Testing with initial size of 2 elements revealed that using
20561 realloc on GNU/Linux would cause a random trap in xmalloc
20562 later on, so I rewrote the code to use malloc/bcopy/free instead
20563 of realloc.
20564
20565 2002-05-10 Jason Rumney <jasonr@gnu.org>
20566
20567 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
20568
20569 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
20570
20571 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
20572 parens, to ensure correct evaluation order.
20573
20574 2002-05-10 Kim F. Storm <storm@cua.dk>
20575
20576 * keymap.c (Vemulation_mode_map_alists): New variable.
20577 (syms_of_keymap): DEFVAR_LISP it.
20578 (current_minor_maps): Process keymap alists in that list before
20579 minor-mode-overriding-map-alist and minor-mode-map-alist.
20580
20581 2002-05-09 Richard M. Stallman <rms@gnu.org>
20582
20583 * search.c (Freplace_match): Doc fix.
20584
20585 2002-05-09 Kim F. Storm <storm@cua.dk>
20586
20587 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
20588 Enlarge cursor rectangle drawn around image with non-zero relief.
20589
20590 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
20591 Enlarge cursor rectangle drawn around image with non-zero relief.
20592
20593 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
20594 Enlarge cursor rectangle drawn around image with non-zero relief.
20595
20596 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
20597
20598 * xselect.c (lisp_data_to_selection_data): Don't set selection
20599 type if comes from the Lisp object's car. If the selection
20600 contains a pure ASCII text, always return QSTRING as its type.
20601
20602 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20603
20604 * mac.c (mac-cut-function): Doc fix.
20605
20606 2002-05-05 Richard M. Stallman <rms@gnu.org>
20607
20608 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
20609
20610 2002-05-04 Jason Rumney <jasonr@gnu.org>
20611
20612 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
20613 for event-click-count.
20614
20615 * process.c (init_process): Only add server subfeature if we can
20616 use non-blocking I/O.
20617
20618 2002-05-04 Andrew Choi <akochoi@shaw.ca>
20619
20620 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
20621 repeatedly.
20622
20623 2002-05-03 Jason Rumney <jasonr@gnu.org>
20624
20625 * process.c (Fmake_network_process): Only support server sockets
20626 when we can make them non-blocking.
20627
20628 * s/ms-w32.h (HAVE_SELECT): Define.
20629
20630 * w32.h (FILE_NDELAY): New flag.
20631
20632 * w32.c (sys_getpeername, fcntl): New functions.
20633 (_sys_read_ahead): Temporarily block on non-blocking sockets.
20634
20635 * w32proc.c: Include sys/file.h.
20636
20637 2002-05-03 Colin Walters <walters@verbum.org>
20638
20639 * callproc.c (Vgame_score_directory): Renamed to
20640 Vshared_game_score_directory.
20641
20642 2002-04-30 Richard M. Stallman <rms@gnu.org>
20643
20644 * s/gnu.h [emacs]: Include stdio.h.
20645 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
20646
20647 * eval.c (do_autoload): Error if called while preparing to dump.
20648
20649 * fns.c (Frequire): Error if need to load while preparing to dump.
20650
20651 2002-04-28 Colin Walters <walters@verbum.org>
20652
20653 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
20654 Default to "~/.emacs.d/games".
20655
20656 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
20657
20658 * lread.c (openp): Change arg exec_only to predicate.
20659 (build_load_history): Use XCAR/XCDR.
20660 (Flocate_file_internal): New fun.
20661 (syms_of_lread): Defsubr it.
20662 (Fload): Update call to openp.
20663
20664 * lisp.h (openp): Update prototype.
20665
20666 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
20667 * w32proc.c (sys_spawnve):
20668 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
20669 * w32.c (check_windows_init_file):
20670 * sound.c (Fplay_sound_internal):
20671 * process.c (Fstart_process):
20672 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
20673 * mac.c (run_mac_command):
20674 * emacs.c (init_cmdargs):
20675 * callproc.c (Fcall_process): Update call to openp.
20676
20677 * textprop.c (remove_properties): Don't use XCAR without CONSP.
20678
20679 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
20680
20681 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20682
20683 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
20684 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
20685
20686 2002-04-28 Richard M. Stallman <rms@gnu.org>
20687
20688 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
20689
20690 * eval.c (Fcommandp): New arg for_call_interactively.
20691 * lisp.h (Fcommandp): Declare new arg.
20692
20693 2002-04-28 Jason Rumney <jasonr@gnu.org>
20694
20695 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
20696
20697 * w32.c (stat, fstat): Use file index information to generate
20698 inodes for directories where available.
20699
20700 2002-04-26 Andrew Choi <akochoi@shaw.ca>
20701
20702 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
20703 [HAVE_CARBON]: Include Mac object files.
20704
20705 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
20706 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
20707 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
20708 MAC_OSX, and MAC_OS instead of macintosh.
20709
20710 * editfns.c [MAC_OS8]: Include stdio.h.
20711
20712 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
20713
20714 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
20715 Apple Monaco.
20716
20717 * process.c (QCfamily, QCfilte): Declare extern.
20718 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
20719 calling select.
20720
20721 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
20722
20723 * tparam.c [MAC_OSX]: Don't define BC and UP.
20724
20725 * config.in [HAVE_CARBON]: Add.
20726
20727 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
20728 Move here from mac/src and mac/inc.
20729
20730 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
20731
20732 2002-04-26 Gerd Moellmann <gerd@gnu.org>
20733
20734 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
20735 Compute phys_cursor_width from the x position returned
20736 by x_draw_glyhs, which is cheaper.
20737 (x_display_and_set_cursor): Compute the buffer-local value
20738 of `cursor-in-non-selected-windows' only when needed.
20739
20740 2002-04-25 Gerd Moellmann <gerd@gnu.org>
20741
20742 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
20743 cursor on a stretch glyph has a width that depends on
20744 x_stretch_cursor_p.
20745
20746 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20747
20748 * abbrev.c (abbrev-start-location): Doc fix.
20749
20750 * indent.c (Fvertical_motion): Fix last change.
20751
20752 2002-04-25 Gerd Moellmann <gerd@gnu.org>
20753
20754 * indent.c (Fvertical_motion): Move to the start of the line
20755 containing PT before moving up or down.
20756
20757 2002-04-24 Gerd Moellmann <gerd@gnu.org>
20758
20759 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
20760 case of writing a whole row, more or less analogous to the case of
20761 writing only parts of a row.
20762
20763 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
20764 0 for NO_CURSOR.
20765
20766 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
20767
20768 2002-04-23 Colin Walters <walters@verbum.org>
20769
20770 * buffer.c (syms_of_buffer): Doc fix.
20771
20772 2002-04-23 Gerd Moellmann <gerd@gnu.org>
20773
20774 * xterm.c (notice_overwritten_cursor): Handle the special case
20775 of the cursor being in the first blank non-text line at the
20776 end of a window.
20777
20778 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
20779 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
20780 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
20781 bar cursors only, to make phys_cursor_width contain what its name
20782 suggests.
20783 (notice_overwritten_cursor): Consider the cursor image erased if
20784 the output area intersects the cursor image in y-direction.
20785
20786 2002-04-23 Simon Marshall <simon@gnu.org>
20787
20788 * xfns.c (x_set_mouse_color): Change default for cross_cursor
20789 to XC_hand2.
20790
20791 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20792
20793 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
20794
20795 2002-04-22 Kim F. Storm <storm@cua.dk>
20796
20797 * textprop.c (remove_properties): Fixed trap for malformed plist.
20798
20799 2002-04-22 Richard M. Stallman <rms@gnu.org>
20800
20801 * cmds.c (Fend_of_line): Handle intangible text in mid line.
20802
20803 * window.c (make_window): Initialize height_fixed_p,
20804 last_cursor_off_p, and p->cursor_off_p slots.
20805
20806 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20807
20808 * fns.c (use-dialog-box): Doc fix.
20809
20810 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20811
20812 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
20813 variables `row', `i' and `area'.
20814 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
20815 toolkit library.
20816
20817 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
20818
20819 * xfaces.c (clear_font_table): Don't free the default font of
20820 a frame even if it's on another display.
20821 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
20822 that could be Qt.
20823
20824 2002-04-19 Juanma Barranquero <lektu@terra.es>
20825
20826 * indent.c (Fmove_to_column): Remove unused local variable
20827 `next_boundary_byte'.
20828 (current_column_1): Likewise.
20829
20830 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
20831
20832 * msdos.c (Qhbar): New variable.
20833 (syms_of_msdos): Intern and staticpro it.
20834 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
20835 cursor type.
20836
20837 2002-04-19 Dave Lambert <dlambert@acm.org>
20838
20839 Theses change implement an underscore-like (`hbar') cursor.
20840
20841 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
20842
20843 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
20844 Handle the `hbar' cursor type.
20845 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
20846
20847 * xfns.c (Qhbar): New variable.
20848 (syms_of_xfns): Intern and staticpro it.
20849 (x_specified_cursor_type): Handle `hbar' cursor.
20850
20851 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
20852 not defined.
20853
20854 2002-04-18 Richard M. Stallman <rms@gnu.org>
20855
20856 * textprop.c (remove_properties): New arg LIST allows scanning
20857 either a list or a plist.
20858 (interval_has_some_properties_list): New function, like
20859 interval_has_some_properties using list instead of plist.
20860 All callers changed.
20861 (Fremove_list_of_text_properties): New function.
20862 (syms_of_textprop): Defsubr it.
20863
20864 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
20865
20866 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
20867
20868 2002-04-17 Juanma Barranquero <lektu@terra.es>
20869
20870 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
20871
20872 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
20873
20874 * window.c (coordinates_in_window): Don't report on margin area
20875 if its width is zero.
20876
20877 2002-04-16 Jason Rumney <jasonr@gnu.org>
20878
20879 * w32fns.c (Fx_file_dialog): Decode file name before using.
20880
20881 * w32term.c (construct_drag_n_drop): Likewise.
20882
20883 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
20884
20885 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
20886 store load-history in pure space.
20887
20888 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
20889
20890 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
20891
20892 * xterm.c (Qlatin_1, Qutf_8): New vars.
20893 (syms_of_xterm): Initialize them.
20894 (XTread_socket): Eliminate incorrect optimization that tried to avoid
20895 decoding the output of X*LookupString.
20896 Always use latin-1 to decode the output of XLookupString.
20897 Try Xutf8LookupString if XmbLookupString failed.
20898
20899 * region-cache.c (new_region_cache): Use BEG.
20900
20901 2002-04-16 Gerd Moellmann <gerd@gnu.org>
20902
20903 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
20904 configuration files.
20905 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
20906 returns 0.
20907
20908 2002-04-15 Andreas Schwab <schwab@suse.de>
20909
20910 * config.in: Regenerated using autoheader.
20911
20912 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
20913 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
20914 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
20915 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
20916 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
20917 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
20918 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
20919 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
20920 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
20921 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
20922 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
20923 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
20924 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
20925 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
20926 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
20927 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
20928 STACK_DIRECTION, now set by autoconf.
20929
20930 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20931
20932 * dispnew.c (marginal_area_string): Sort arguments.
20933
20934 * dispextern.h (marginal_area_string): Add prototype.
20935
20936 2002-04-13 Richard M. Stallman <rms@gnu.org>
20937
20938 * fileio.c (Finsert_file_contents):
20939 Don't call temp_output_buffer_setup--do just part, by hand.
20940
20941 * coding.c (run_pre_post_conversion_on_str):
20942 Don't call temp_output_buffer_setup--do just part, by hand.
20943
20944 * keyboard.c (command_loop_1): Don't call start_hourglass
20945 or cancel_hourglass when executing a macro.
20946
20947 * marker.c (count_markers): New function.
20948
20949 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
20950 grow without limit. Move recently used elements to the front.
20951
20952 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
20953
20954 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
20955
20956 2002-04-12 Gerd Moellmann <gerd@gnu.org>
20957
20958 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
20959 rows marginal areas.
20960 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
20961 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
20962
20963 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
20964
20965 2002-04-12 Dave Love <fx@gnu.org>
20966
20967 * dispnew.c (marginal_area_string): New.
20968
20969 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
20970 (Qleft_margin, Qright_margin): Declare.
20971 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
20972
20973 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
20974 note_mode_line_highlight and extended.
20975
20976 * keyboard.c (Qleft_margin, Qright_margin): Declare.
20977 (make_lispy_event): Deal with mouse events in margins.
20978
20979 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
20980
20981 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
20982
20983 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
20984 than deactivating the mark if tmm is set to `lambda'.
20985 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
20986 Use a single event for HELP_EVENT.
20987 (Fexecute_extended_command): Save last_point_position.
20988
20989 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20990
20991 * lisp.h (Fpropertize): Add prototype.
20992
20993 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
20994
20995 2002-04-10 Colin Walters <walters@verbum.org>
20996
20997 * config.in: Add HAVE_SHARED_GAME_DIR.
20998
20999 * callproc.c (Vgame_score_directory): New variable.
21000 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
21001
21002 2002-04-10 Richard M. Stallman <rms@gnu.org>
21003
21004 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
21005
21006 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
21007
21008 * minibuf.c (read_minibuf): Use empty_string.
21009 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
21010 Short-circuit the search as soon as it "failed".
21011 (Fall_completions): Allow lambda forms and lists of strings for alist.
21012 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
21013 when require_match is nil.
21014 (Ftest_completion): Rename from `test_completion' and export to elisp.
21015 Call the predicate also when alist is a list.
21016 Obey Vcompletion_regexp_list.
21017 (do_completion, Fminibuffer_complete_and_exit): Use it.
21018 (Fassoc_string): Rename from `assoc_for_completion'.
21019 Allow list of strings as well and export to elisp.
21020
21021 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
21022
21023 * puresize.h (BASE_PURESIZE): Increase to 900KB.
21024
21025 2002-04-08 Juanma Barranquero <lektu@terra.es>
21026
21027 * w32.c (sys_accept): Don't hide variable `s'.
21028
21029 2002-04-05 Gerd Moellmann <gerd@gnu.org>
21030
21031 * callint.c (Fcall_interactively): Use INTEGERP instead of
21032 NUMBERP for checking Vhistory_length.
21033
21034 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21035
21036 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
21037 Doc fix to reflect it.
21038
21039 2002-04-04 Richard M. Stallman <rms@gnu.org>
21040
21041 * xdisp.c (display_mode_element): New arg RISKY.
21042 Disregard text props found or specified within a variable
21043 that isn't marked risky-local-variable.
21044 (Qrisky_local_variable): New variable.
21045 (syms_of_xdisp): Init and staticpro it.
21046
21047 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
21048
21049 * undo.c (record_point): New fun.
21050 (record_delete, record_insert): Use it.
21051
21052 2002-04-03 Juanma Barranquero <lektu@terra.es>
21053
21054 * doc.c (Fdocumentation): Add missing parentheses.
21055 (Fdocumentation_property): Likewise.
21056
21057 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
21058
21059 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
21060 data is 0, just return nil.
21061
21062 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
21063
21064 * msdos.c (syms_of_msdos): Fix last change with
21065 mouse_autoselect_window.
21066
21067 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21068
21069 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
21070 mouse_autoselect_window.
21071
21072 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
21073
21074 * keyboard.c (make_lispy_event): Handle unknown keysyms together
21075 with system-specific keysyms. Use it also for unknown function keys.
21076
21077 * doc.c (reread_doc_file): Return whether reload was attempted.
21078 (Fdocumentation, Fdocumentation_property): Don't try to reload
21079 if the doc is 0 and only ask once.
21080
21081 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
21082
21083 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
21084
21085 * keyboard.c (read_char): If the event was Qselect_window,
21086 restore timer_idleness_start_time to its previous value.
21087
21088 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
21089
21090 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
21091
21092 * region-cache.c (new_region_cache): Use BEG.
21093
21094 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
21095 Use BEG and BEG_BYTE.
21096
21097 * doc.c (get_doc_string): Return nil if the location is wrong.
21098 (reread_doc_file): New fun.
21099 (Fdocumentation, Fdocumentation_property):
21100 Call it if get_doc_string fails.
21101 (Fsnarf_documentation): Make it work for a dumped Emacs.
21102
21103 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
21104 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
21105
21106 * charset.c (Fstring): Allow 0 arguments.
21107
21108 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
21109
21110 * process.c (DATAGRAM_CONN_P, list_processes_1)
21111 (Fprocess_datagram_address, Fset_process_datagram_address)
21112 (Fset_network_process_options, server_accept_connection):
21113 Fix some int/Lisp_Object confusions (thank you union types).
21114
21115 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21116
21117 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
21118
21119 * w32term.c: Likewise.
21120 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
21121
21122 * keyboard.c (Qselect_window): New symbol.
21123 (head_table): Use it.
21124 (keys_of_keyboard): Bound select-window event to handle-select-window.
21125 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
21126
21127 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
21128 (last_window): New variable.
21129 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
21130 (note_mouse_movement): Remove reimplemented code in #if 0.
21131 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
21132 Emacs windows.
21133
21134 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
21135
21136 2002-03-31 Gerd Moellmann <gerd@gnu.org>
21137
21138 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
21139 Callers changed.
21140
21141 2002-03-30 Richard M. Stallman <rms@gnu.org>
21142
21143 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
21144 loop whenever it stops making progress.
21145
21146 * widget.c (set_frame_size): Don't call change_frame_size.
21147
21148 2002-03-30 Gerd Moellmann <gerd@gnu.org>
21149
21150 * dispnew.c (direct_output_for_insert):
21151 Call mark_window_display_accurate.
21152
21153 2002-03-29 Jason Rumney <jasonr@gnu.org>
21154
21155 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
21156
21157 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
21158
21159 * Makefile.in (lread.o): Depend on coding.h.
21160
21161 * lread.c (openp, Fload): Encode the file name before passing it
21162 to `stat', `access', and `emacs_open'.
21163 (openp): GCPRO the encoded file name. Don't recompute Lisp
21164 strings unnecessarily.
21165
21166 2002-03-29 Kim F. Storm <storm@cua.dk>
21167
21168 * fns.c (Flax_plist_put): Doc fix.
21169
21170 2002-03-28 Miles Bader <miles@gnu.org>
21171
21172 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
21173
21174 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21175
21176 * process.c (set-network-process-options): Add usage.
21177 (make-network-process): Doc fix.
21178
21179 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
21180
21181 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
21182
21183 2002-03-26 Richard M. Stallman <rms@gnu.org>
21184
21185 * fns.c (Fsubstring_no_properties): New function.
21186 (Flax_plist_get, Flax_plist_put): New functions.
21187 (syms_of_fns): defsubr them.
21188
21189 * xdisp.c (update_menu_bar): Test only update_mode_lines;
21190 don't test or alter w->update_mode_line.
21191
21192 * window.c (Fdisplay_buffer): Doc fix.
21193
21194 2002-03-24 Richard M. Stallman <rms@gnu.org>
21195
21196 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
21197
21198 2002-03-24 Gerd Moellmann <gerd@gnu.org>
21199
21200 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
21201 (Fdefmacro): Handle `(declare ...)'.
21202 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
21203 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
21204
21205 2002-03-24 Jason Rumney <jasonr@gnu.org>
21206
21207 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
21208 (xbm_file_p): Add prototypes.
21209 (xbm_format, xbm_image_p): Sync with xfns.c.
21210 (reflect_byte): New function.
21211 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
21212 (xbm_load_image): Create bitmaps with a depth of 1.
21213 (init_xfns): Enable XBM images.
21214
21215 2002-03-23 Jason Rumney <jasonr@gnu.org>
21216
21217 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
21218 correctly. Do not pass up_modifier to keyboard buffer.
21219
21220 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
21221
21222 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
21223
21224 * Makefile.in (bootstrapclean): New target.
21225 (bootstrap-temacs, bootstrap-doc): Remove.
21226 (bootstrap-emacs): Use a bog-standard `temacs'.
21227 Don't bother to build a DOC file.
21228
21229 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
21230
21231 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
21232 in temacs even if !CANNOT_DUMP.
21233 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
21234
21235 * alloc.c (check_pure_size): Only output a warning.
21236
21237 2002-03-22 Jason Rumney <jasonr@gnu.org>
21238
21239 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
21240 supported.
21241
21242 * w32term.c (zv_bits): Declare as short, for word alignment.
21243 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
21244 (syms_of_w32term): Define x-use-underline-position-properties.
21245
21246 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
21247 (clear_image_cache): Block input, fix logic, clear matrices in
21248 all frames that share this cache.
21249
21250 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
21251
21252 * emacs.c (main): Update the Copyright year in the blurb printed
21253 by "emacs --version".
21254
21255 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
21256
21257 * xterm.c (XTread_socket): If XK_ISO_Lock and
21258 XK_ISO_Last_Group_Lock are defined, handle keysyms between
21259 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
21260
21261 2002-03-21 Kim F. Storm <storm@cua.dk>
21262
21263 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
21264 menu-bar bindings in keymap and local-map properties _are_ used.
21265 But try keymap property first in accordance with 2002-01-03 patch.
21266 Added comment describing why this is not always reliable.
21267 (tool_bar_items): Ditto for tool-bar.
21268
21269 2002-03-21 Jason Rumney <jasonr@gnu.org>
21270
21271 * w32fns.c (x_clear_image_1): Disable color table code.
21272
21273 2002-03-21 Kim F. Storm <storm@cua.dk>
21274
21275 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
21276 removed the wrong version of the DEFUN macro; fixed it.
21277
21278 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
21279 Fmember rather than Fmemq).
21280 (Fprovide): Check that subfeatures is a list.
21281
21282 * process.c (QCfeature, QCdatagram): Removed variables.
21283 (QCtype, Qdatagram): New variables.
21284 (network_process_featurep): Removed function.
21285 (Fmake_network_process): Removed :feature check.
21286 Use :type 'datagram instead of :datagram t to create a datagram
21287 socket. This allows us to add other connection types (e.g. raw
21288 sockets) later in a consistent manner.
21289 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
21290 supported subfeatures for feature make-network-process.
21291 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
21292 Intern and staticpro QCtype and Qdatagram.
21293 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
21294
21295 * xfns.c (QCtype): Remove duplicate declaration and
21296 initialization (is now declared in process.c).
21297
21298 * w32fns.c (QCtype): Remove duplicate declaration and
21299 initialization (is now declared in process.c).
21300
21301 2002-03-21 Richard M. Stallman <rms@gnu.org>
21302
21303 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
21304 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
21305 when jumping to `fail' to avoid undoing reg changes in the
21306 last iteration of the loop.
21307 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
21308
21309 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
21310 Depend on process.h.
21311
21312 2002-03-20 Jason Rumney <jasonr@gnu.org>
21313
21314 Most of the following changes are still conditional on HAVE_IMAGES
21315 which is not set by default on Windows.
21316
21317 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
21318
21319 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
21320 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
21321 (four_corners_best, x_clear_image_1, x_clear_image)
21322 (x_alloc_image_color, postprocess_image)
21323 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
21324 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
21325 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
21326
21327 * w32gui.h (struct XImage): Define.
21328
21329 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
21330 extract mouse co-ordinates.
21331
21332 2002-03-20 Jason Rumney <jasonr@gnu.org>
21333
21334 * w32.c (init_winsock): Dynamically load new server and UDP
21335 socket functions.
21336 (socket_to_fd): New function.
21337 (sys_socket): Use it.
21338 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
21339 (sys_recvfrom, sys_sendto): New wrapper functions.
21340
21341 * process.c (QCfamily, QCfilter): Remove duplicate declaration
21342 and initialization.
21343
21344 * makefile.w32-in (LIBS): Remove $(WSOCK32).
21345
21346 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
21347
21348 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
21349 Don't use "sun" as a variable, it's a predefined constant on Sun
21350 machines.
21351
21352 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21353
21354 * bytecode.c (Fbyte_code): Revert last change.
21355
21356 2002-03-19 Kim F. Storm <storm@cua.dk>
21357
21358 * makefile.w32-in (LIBS): Add $(WSOCK32).
21359 From David Ponce <dponce@voila.fr>.
21360
21361 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21362
21363 * process.c (wait_reading_process_input): Move variables `pname'
21364 and `pnamelen' down where they are used.
21365
21366 * bytecode.c (Fbyte_code): Discard unused computed value to
21367 prevent gcc warning.
21368
21369 * lisp.h (Fplist_member): Add prototype.
21370
21371 2002-03-18 Kim F. Storm <storm@cua.dk>
21372
21373 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
21374 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
21375
21376 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
21377 Remove explicit GNU_LINUX settings for datagram support.
21378
21379 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21380
21381 * process.c (Fmake_network_process): Remove unused variable `sa'.
21382 Doc fix. Add usage:.
21383 (set_socket_options): Remove unused variables `optnum' and `opttype'.
21384
21385 2002-03-17 Richard M. Stallman <rms@gnu.org>
21386
21387 * xdisp.c (cursor_type_changed): New variable.
21388 (redisplay_internal): Redisplay all windows if cursor_type_changed.
21389 Clear it when clearing windows_or_buffers_changed.
21390 (try_cursor_movement, redisplay_window, try_window_id)
21391 (try_window_reusing_current_matrix): Test cursor_type_changed
21392 along with windows_or_buffers_changed.
21393
21394 * window.h (cursor_type_changed): New variable.
21395
21396 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
21397 not update_mode_lines, and always set it to 1.
21398
21399 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
21400 if no frames needed redrawing.
21401
21402 2002-03-17 Kim F. Storm <storm@cua.dk>
21403
21404 The following changes add support for network server processes,
21405 datagram connections, and local (unix) sockets.
21406
21407 * process.h (struct Lisp_Process): New member log.
21408 Doc fix: Member command used to indicate stopped network process.
21409 Doc fix: Member childp contains plist for network process.
21410 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
21411
21412 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
21413 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
21414 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
21415 New variables.
21416 (NETCONN1_P): New macro.
21417 (DATAGRAM_SOCKETS): New conditional symbol.
21418 (datagram_address): New array.
21419 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
21420 (status_message): Use concat3.
21421 (Fprocess_status): Add `listen' status to doc string. Return `stop'
21422 for a stopped network process.
21423 (Fset_process_buffer): Update contact plist for network process.
21424 (Fset_process_filter): Ditto. Don't enable input for stopped
21425 network processes. Server must listen, even if filter is t.
21426 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
21427 New functions.
21428 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
21429 (Fprocess_contact): Added KEY argument. Handle datagrams.
21430 (list_processes_1): Optionally show only processes with the query
21431 on exit flag set. Dynamically adjust column widths. Omit tty
21432 column if not needed. Report stopped network processes.
21433 Identify server and datagram network processes.
21434 (Flist_processes): New optional arg `query-only'.
21435 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
21436 (conv_lisp_to_sockaddr, set_socket_options)
21437 (network_process_featurep, unwind_request_sigio): New helper functions.
21438 (Fprocess_datagram_address, Fset_process_datagram_address):
21439 (Fset_network_process_options): New lisp functions.
21440 (Fopen_network_stream): Removed. Now defined in simple.el.
21441 (Fmake_network_process): New lisp function. Code is based on previous
21442 Fopen_network_stream, but heavily reworked with new property list based
21443 argument list, support for datagrams, server processes, and local
21444 sockets in addition to old client-only functionality.
21445 (server_accept_connection): New function.
21446 (wait_reading_process_input): Use it to handle incoming connects.
21447 Do not enable input on a new connection if process is stopped.
21448 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
21449 (send_process): Handle datagram sockets.
21450 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
21451 network process is indicated by setting command field to t .
21452 (Fprocess_send_eof): No-op if datagram connection.
21453 (Fstatus_notify): Don't read input for a stream server socket or a
21454 stopped network process.
21455 (init_process): Initialize datagram_address array.
21456 (syms_of_process): Intern and staticpro new variables, defsubr new
21457 functions.
21458
21459 2002-03-16 Jason Rumney <jasonr@gnu.org>
21460
21461 * w32fns.c (w32_to_all_x_charsets): Return correct type in
21462 startup case.
21463
21464 2002-03-16 Richard M. Stallman <rms@gnu.org>
21465
21466 * xdisp.c (redisplay_internal, redisplay_windows):
21467 Use list_of_error to call internal_condition_case_1.
21468 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
21469 so as to catch all errors with no possibility of debugger redisplay.
21470 (list_of_error): New variable.
21471 (syms_of_xdisp): Init and staticpro it.
21472
21473 * print.c (print_object): Delete `\ ' from printed rep of frame.
21474
21475 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
21476
21477 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
21478 until its implementation is fixed.
21479
21480 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21481
21482 * xfns.c (png_load): Remove unused variable `gamma_str'.
21483
21484 2002-03-14 Richard M. Stallman <rms@gnu.org>
21485
21486 * xfns.c (x_real_positions): Handle failure in XQueryTree.
21487
21488 2002-03-14 Miles Bader <miles@gnu.org>
21489
21490 * intervals.c (adjust_for_invis_intang): New function.
21491 (set_point_both): Use `adjust_for_invis_intang' to do most of the
21492 work for dealing with invisible+intangible regions. Do so before
21493 and after both forward and backward movements, to handle both
21494 front-sticky and rear-sticky cases.
21495 * textprop.c (text_property_stickiness): Function moved here from
21496 `editfns.c'.
21497 * intervals.h (text_property_stickiness): New declaration.
21498 * editfns.c (char_property_eq): Function removed.
21499 (text_property_stickiness): Function moved to `textprop.c'.
21500
21501 2002-03-13 Jason Rumney <jasonr@gnu.org>
21502
21503 * config.in: Add STRFTIME_NO_POSIX2.
21504
21505 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
21506 and %OX when underlying strftime does not.
21507
21508 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
21509
21510 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
21511 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
21512 line) to avoid annoying flicker.
21513 (xm_scroll_callback): Get rid of the now unnecessary kludge.
21514 (XTread_socket): Mark it static.
21515
21516 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
21517
21518 2002-03-13 Kim F. Storm <storm@cua.dk>
21519
21520 * puresize.h (BASE_PURESIZE): Increase to 775000.
21521
21522 2002-03-12 Juanma Barranquero <lektu@terra.es>
21523
21524 * editfns.c (syms_of_editfns): Fix typo.
21525
21526 2002-03-12 Gerd Moellmann <gerd@gnu.org>
21527
21528 * xsmfns.c: Include stdio.h because termhooks.h needs it.
21529 Include termopt.h for interrupt_input.
21530
21531 2002-03-11 Andreas Schwab <schwab@suse.de>
21532
21533 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
21534
21535 2002-03-11 Gerd Moellmann <gerd@gnu.org>
21536
21537 * xterm.c (note_mouse_movement): Put code for
21538 x_autoselect_window_p in #if 0.
21539
21540 * lread.c (Fload): Don't assume that message_with_string uses the
21541 string it is given like a C string.
21542
21543 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21544
21545 * xterm.h (x_session_check_input, x_session_initialize): Declare.
21546
21547 * xterm.c (XTread_socket): Add call to x_session_check_input and
21548 x_session_have_connection.
21549 (x_initialize): Add call to x_session_initialize.
21550
21551 * termhooks.h (enum event_kind): Add save_session_event.
21552
21553 * keyboard.c: Add Emacs event save_session_event.
21554
21555 * emacs.c (main): Add call to syms_of_xsmfns.
21556
21557 * lisp.h (syms_of_xsmfns): Declare extern.
21558
21559 * config.in: Add HAVE_X_SM.
21560
21561 * Makefile.in (LIBXT): Add -lSM -lICE
21562 if HAVE_X_SM and not USE_X_TOOLKIT.
21563 (XOBJ): New file xsmfns.c added.
21564
21565 * xsmfns.c: New file for X session management.
21566
21567 2002-03-09 Jason Rumney <jasonr@gnu.org>
21568
21569 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
21570 read-only when setting modified time.
21571
21572 2002-03-08 Gerd Moellmann <gerd@gnu.org>
21573
21574 * xdisp.c (move_it_vertically_backward): At the end of the function,
21575 when moving forward by lines, treat terminal frames specially.
21576
21577 * keyboard.c (echo_char): Make sure to add a separator between
21578 keys even if echo_dash hasn't been called.
21579
21580 * xdisp.c: Use new string macros.
21581 (update_echo_area): Pass number of bytes to message3 instead of
21582 number of chars.
21583 (set_message_1): Don't access a string's size_byte directly.
21584 (decode_mode_spec_coding): Use number of bytes of eoltype string
21585 instead number of chars.
21586
21587 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
21588
21589 2002-03-08 Juanma Barranquero <lektu@terra.es>
21590
21591 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
21592 24-bit.
21593
21594 2002-03-06 Jason Rumney <jasonr@gnu.org>
21595
21596 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
21597
21598 2002-03-06 Gerd Moellmann <gerd@gnu.org>
21599
21600 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
21601 (cancel_echoing, echo_length, echo_truncate): Changed to
21602 work with new kboard definition.
21603 (echo_now): Use message3_nolog instead of message2_nolog.
21604
21605 * alloc.c (mark_kboards): Mark echo_string.
21606
21607 * keyboard.h (ECHOBUFSIZE): Removed.
21608 (struct kboard): Member echoptr removed, member echobuf renamed
21609 to echo_string.
21610
21611 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
21612 message3 instead of message2 to display the message using STRING's
21613 text properties.
21614
21615 2002-03-05 Andreas Schwab <schwab@suse.de>
21616
21617 * xdisp.c (hscroll_margin): Change to EMACS_INT.
21618
21619 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
21620
21621 * frame.c (default-frame-alist): Explain that setting it doesn't
21622 affect existing frames.
21623
21624 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
21625
21626 * indent.c (skip_invisible): Fix my brain fart.
21627
21628 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
21629
21630 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
21631
21632 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
21633 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
21634 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
21635 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
21636 and variables to use EMACS_INT instead of just int.
21637
21638 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
21639
21640 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
21641
21642 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
21643 environment, pass it down with corrected value.
21644
21645 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21646
21647 * lread.c (read_filtered_event): Do not call start_hourglass
21648 before returning.
21649
21650 2002-03-04 Juanma Barranquero <lektu@terra.es>
21651
21652 * w32term.c (x_display_and_set_cursor): Fix typo.
21653
21654 2002-03-03 Richard M. Stallman <rms@gnu.org>
21655
21656 * fileio.c (Fmake_temp_name): Doc fix.
21657
21658 2002-03-03 Gary Wong <gtw@gnu.org>
21659
21660 * termcap.c [!emacs]: Replace ospeed for building standalone
21661 libtermcap, for binary compatibility.
21662
21663 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
21664
21665 2002-03-03 Richard M. Stallman <rms@gnu.org>
21666
21667 * xrdb.c (file_p): Rename arg `path' to `filename'.
21668
21669 * abbrev.c (Fexpand_abbrev): Increment plist as use count
21670 only if it is an integer.
21671
21672 * xfns.c (png_load): Set screen_gamma based on f->gamma.
21673 If png_get_sRGB gives an answer, call png_set_gamma
21674 using the default image gamma value.
21675
21676 * lread.c (read1): When reading from a file, default string to
21677 multibyte only if it has some multibyte characters.
21678
21679 * print.c (print_object): Output multibyte chars 128...255
21680 using \x even if ! print_escape_multibyte.
21681
21682 * xdisp.c (display_mode_element): Move the places where
21683 bytepos, charpos, this, and lisp_string are set.
21684 Use lisp_string to set bytepos.
21685
21686 * xdisp.c (redisplay_internal):
21687 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
21688
21689 * xdisp.c (display_mode_element): Merge properties specified with
21690 :propertize onto those that come with the string.
21691
21692 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
21693
21694 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
21695 automatic-hscrolling. Users changed.
21696 <hscroll-margin>: Renamed from automatic-hscroll-margin.
21697 Users changed.
21698 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
21699
21700 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
21701
21702 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
21703
21704 2002-03-02 Kim F. Storm <storm@cua.dk>
21705
21706 * window.c (Fminibuffer_selected_window): New function.
21707 (syms_of_window): Defsubr it.
21708
21709 2002-03-01 Kim F. Storm <storm@cua.dk>
21710
21711 * window.h (struct window): New member phys_cursor_width.
21712
21713 * window.c (make_window, replace_window): Init phys_cursor_width.
21714
21715 * xterm.c (x_display_and_set_cursor): Blink box cursor using
21716 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
21717
21718 * w32term.c (x_display_and_set_cursor): Blink box cursor using
21719 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
21720
21721 * lisp.h (GCPRO6): New macro.
21722
21723 * process.c (Fopen_network_stream): Use GCPRO6.
21724
21725 2002-03-01 Kim F. Storm <storm@cua.dk>
21726
21727 * process.c (Qconnect, Qfailed): New variables.
21728 (syms_of_process): Intern and staticpro them.
21729 (Fprocess_status): Document connect and failed return values.
21730 [NON_BLOCKING_CONNECT]: New conditional.
21731 (connect_wait_mask, num_pending_connects): New variables.
21732 (status_message): Convert Qfailed status.
21733 (Fopen_network_stream): Added support for non-blocking connect.
21734 New optional args: filter, sentinel, non_blocking. Doc updated.
21735 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
21736 (deactivate_process): Handle pending non-blocking connect.
21737 (wait_reading_process_input): Poll for status of non-blocking
21738 connects. Exec sentinel directly when connect succeeds.
21739 (status_notify): Don't read process output if not yet connected.
21740
21741 2002-02-28 Kim F. Storm <storm@cua.dk>
21742
21743 * window.c (minibuf_selected_window): Renamed from
21744 Vminibuf_selected_window. Users changed.
21745 (syms_of_window): Staticpro it.
21746
21747 2002-02-26 Kim F. Storm <storm@cua.dk>
21748
21749 The following changes add a new Vminibuf_selected_window variable
21750 which is similar to Vminibuf_scroll_window, but which is only set
21751 on entry to the minibuffer (from a non-minibuffer window):
21752
21753 * window.c (Vminibuf_selected_window): New variable.
21754 (struct save_window_data): New member minibuf_selected_window.
21755 (Fset_window_configuration): Restore Vminibuf_selected_window.
21756 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
21757 Set minibuf_scroll_window member to nil if minibuf_level is 0.
21758 (compare_window_configurations): Compare minibuf_selected_window.
21759
21760 * window.h (Vminibuf_selected_window): Declare extern.
21761
21762 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
21763 entry to minibuffer or on entry from a non-minibuffer window.
21764
21765 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
21766 Vminibuf_selected_window instead of Vminibuf_scroll_window.
21767
21768 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
21769 instead of Vminibuf_scroll_window when deciding in which window
21770 the region should be highlighted. Consequently, the region remains
21771 highlighteded even when a completion buffer is also displayed.
21772
21773 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
21774
21775 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
21776
21777 * xselect.c (Qcompound_text_with_extensions): Renamed from
21778 Qcompound_text_no_extensions.
21779 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
21780
21781 2002-02-26 Juanma Barranquero <lektu@terra.es>
21782
21783 * w32proc.c (syms_of_ntproc): Doc fix.
21784
21785 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21786
21787 * intervals.h: Include "dispextern.h" unconditionally.
21788
21789 2002-02-24 Jason Rumney <jasonr@gnu.org>
21790
21791 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
21792 and disp-table.elc.
21793 (lisp): Add emacs-lisp/backquote.elc.
21794
21795 2002-02-24 Kim F. Storm <storm@cua.dk>
21796
21797 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
21798 The validation of the event type was too strict as it didn't
21799 allow string events; buffer names are used in bindings for
21800 menu-bar-select-buffer (see `menu-bar-update-buffers').
21801
21802 2002-02-23 Kim F. Storm <storm@cua.dk>
21803
21804 The following changes rework my patch of 2002-02-06 which
21805 added command remapping by entering the commands directly into
21806 the keymaps. Now, command remapping uses an explicit `remap'
21807 prefix in the keymaps, i.e. [remap COMMAND].
21808
21809 * keymap.c (Qremap, remap_command_vector): New variables.
21810 (is_command_symbol): Remove function.
21811 (Fdefine_key): No longer accept a symbol for KEY.
21812 Added validation of [remap COMMAND] argument for KEY.
21813 The DEF is no longer required to be a symbol when remapping a command.
21814 (Fremap_command): New function to remap command through keymaps.
21815 (Flookup_key): Perform command remapping initiated by
21816 Fremap_command directly for speed.
21817 (Fkey_binding): Use Fremap_command for command remapping.
21818 (where_is_internal): Handle new command remapping representation.
21819 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
21820 staticpro them. Defsubr Fremap_command.
21821
21822 * keymap.h (Fremap_command): Declare extern.
21823 (is_command_symbol): Remove extern.
21824
21825 * keyboard.c (command_loop_1): Use Fremap_command for command
21826 remapping; now try command remapping for all symbols.
21827
21828 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
21829
21830 * coding.h (run_pre_post_conversion_on_str): Add prototype.
21831
21832 2002-02-23 Jason Rumney <jasonr@gnu.org>
21833
21834 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
21835 on the string before encoding it.
21836 (Fw32_get_clipboard_data): Run post-read-conversion on the string
21837 after decoding it.
21838
21839 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
21840
21841 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21842
21843 * w32term.c (enter_timestamp): Remove unused static variable to
21844 prevent warning.
21845
21846 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
21847
21848 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
21849
21850 * w16select.c (Fw16_get_clipboard_data): Fix last change.
21851
21852 * xselect.c (selection_data_to_lisp_data): Fix last change.
21853
21854 2002-02-22 Jason Rumney <jasonr@gnu.org>
21855
21856 * w32term.h (struct w32_output): New member menu_command_in_progress.
21857
21858 * w32menu.c (menubar_selection_callback): Free the menu and
21859 clear the menu_command_in_progress flag.
21860
21861 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
21862 (menu_free_timer): New variable.
21863 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
21864 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
21865 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
21866 menu command is in progress.
21867 <WM_COMMAND>: Set the menu_command_in_progress flag.
21868 Kill any menu_free_timer that is running.
21869
21870 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
21871 Call ExtTextOutA rather than ExtTextOut.
21872
21873 2002-02-22 Eli Zaretskii <eliz@gnu.org>
21874
21875 * puresize.h (BASE_PURESIZE): Increase to 755000.
21876
21877 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
21878
21879 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
21880 on the string before encoding it.
21881 (Fw16_get_clipboard_data): Run post-read-conversion on the string
21882 after decoding it.
21883
21884 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
21885
21886 Support for ICCCM Extended Segments in X selections:
21887
21888 * xselect.c <Qcompound_text_no_extensions>: New variable.
21889 (syms_of_xselect): Intern and staticpro it.
21890 (selection_data_to_lisp_data): Run post-read-conversion on decoded
21891 selection text.
21892 (lisp_data_to_selection_data): If next-selection-coding-system is
21893 compound-text-no-extensions, set the type of selection to be
21894 compound-text.
21895
21896 * xterm.h (x_encode_text): Update prototype.
21897
21898 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
21899 callers changed. If SELECTIONP is non-zero, run the
21900 pre-write-conversion function before encoding the selection text.
21901
21902 2002-02-21 Kim F. Storm <storm@cua.dk>
21903
21904 * frame.c (syms_of_frame): Change mouse-highlight default to t.
21905
21906 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
21907 Correct composing of language-change event.
21908
21909 2002-02-20 Kim F. Storm <storm@cua.dk>
21910
21911 * keyboard.c (menu_bar_items): Don't include keymap or local-map
21912 bindings at PT when building menu (the menu is not updated often
21913 enough for this to work reliable).
21914 (tool_bar_items): Likewise.
21915 (current_active_maps): Removed unused (and buggy) function.
21916
21917 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21918
21919 * xfns.c (gif_load): Use correct width and height for GIF images.
21920
21921 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
21922
21923 * floatfns.c (Fatan): Accept an optional second arg and call
21924 atan2 if passed 2 args.
21925
21926 2002-02-18 Jason Rumney <jasonr@gnu.org>
21927
21928 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
21929
21930 2002-02-17 Jason Rumney <jasonr@gnu.org>
21931
21932 * w32term.c (x_autoselect_window_p): New variable.
21933 (syms_of_w32term): DEFVAR_BOOL and initialize it.
21934 (note_mouse_movement): Use it.
21935
21936 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
21937
21938 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
21939
21940 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
21941 New variables.
21942 (syms_of_w32fns): Intern and staticpro them.
21943 (x_frame_parms) <"fullscreen">: New parameter.
21944 (x_fullscreen_move, x_set_fullscreen): New functions.
21945 (x_set_frame_parameters): Support Qfullscreen.
21946 (x_real_positions): Save x/y_pixels_diff frame params.
21947 (x_figure_window_size): Support full-screen frames.
21948 (Fx_create_frame): Default the fullscreen parameter.
21949
21950 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
21951 (x_fullscreen_adjust): New functions.
21952 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
21953 fullscreen. Call x_check_fullscreen_move, and set the
21954 want_fullscreen member of output_data.w32
21955 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
21956
21957 * w32term.h: New enum for FULLSCREEN_* constants.
21958 (struct w32_output): New members want_fullscreen, x_pixels_diff,
21959 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
21960 (x-fullscreen-adjust): New prototype.
21961
21962 2002-02-17 Kim F. Storm <storm@cua.dk>
21963
21964 * frame.c (Vmouse_highlight): New variable.
21965 (syms_of_frame): DEFVAR_LISP it.
21966
21967 * frame.h (Vmouse_highlight): Declare extern.
21968
21969 * xterm.h (struct x_display_info): Add mouse_face_hidden.
21970
21971 * xterm.c (disable_mouse_highlight): Removed variable.
21972 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
21973 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
21974 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
21975 and on after keyboard input.
21976 (x_term_init): Initialize mouse_face_hidden.
21977
21978 * msdos.h (struct display_info): Add mouse_face_hidden.
21979
21980 * msdos.c (disable_mouse_highlight): Removed variable.
21981 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
21982 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
21983 (internal_terminal_init): Initialize mouse_face_hidden.
21984 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
21985 and on after keyboard input.
21986
21987 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
21988
21989 * w32term.c (disable_mouse_highlight): Removed variable.
21990 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
21991 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
21992 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
21993 and on after keyboard input.
21994 (w32_initialize_display_info): Initialize mouse_face_hidden.
21995
21996 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
21997
21998 * msdos.c (last_mouse_window): New variable.
21999 (dos_rawgetc): Fix last change--if the mouse is in the same window
22000 as recorded in last_mouse_window, don't select this window.
22001
22002 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
22003
22004 * msdos.c (x_autoselect_window_p): New variable.
22005 (syms_of_msdos): Defvar it.
22006 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
22007 which the last mouse movement occured, unless it is already selected.
22008
22009 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
22010 New variables.
22011 (syms_of_xdisp): DEVFAR them.
22012 (hscroll_window_tree): Use automatic_hscroll_margin and
22013 Vautomatic_hscroll_step to compute the amount of window scrolling.
22014
22015 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22016
22017 * xterm.c (x-autoselect-window): New variable.
22018 (note_mouse_movement): Use it.
22019
22020 * keyboard.c: Do not include "systime.h" twice.
22021
22022 2002-02-15 Andreas Schwab <schwab@suse.de>
22023
22024 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
22025
22026 * alloc.c (NSTATICS): Increase to 1280.
22027
22028 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
22029
22030 * alloc.c (NSTATICS): Bump to 1026.
22031
22032 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
22033 (Vx_super_keysym): New variables.
22034 (syms_of_xterm): DEFVAR_LISP them.
22035 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
22036 variables to determine which keys to use for the various modifiers.
22037
22038 2002-02-13 Kim F. Storm <storm@cua.dk>
22039
22040 * window.c (Vmode_line_in_non_selected_windows): Removed.
22041 (mode_line_in_non_selected_windows): New variable.
22042 (syms_of_window): DEFVAR_BOOL it.
22043
22044 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
22045 Use mode_line_in_non_selected_windows.
22046 (mode_line_in_non_selected_windows): Declare extern.
22047 (Vmode_line_in_non_selected_windows): Removed extern.
22048
22049 2002-02-13 Richard M. Stallman <rms@gnu.org>
22050
22051 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
22052 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
22053 (Fclear_this_command_keys): Doc fixes.
22054
22055 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
22056 (update_face_from_frame_parameter): Increment face_change_count
22057 and windows_or_buffers_changed to force redisplay using changed faces.
22058
22059 * xdisp.c (QCpropertize): New variable.
22060 (mode_line_proptrans_alist): New variable.
22061 (display_mode_element): New arg PROPS; all calls changed.
22062 Implement this, for strings.
22063 Handle literal output of strings by sharing the
22064 main-line code for strings, using local var `literal'.
22065 Handle :propertize feature.
22066 (syms_of_xdisp): Initialze and staticpro QCpropertize and
22067 mode_line_proptrans_alist.
22068
22069 2002-02-11 Kim F. Storm <storm@cua.dk>
22070
22071 * window.c (Vmode_line_in_non_selected_windows): New variable.
22072 (syms_of_window): DEFVAR_LISP it.
22073
22074 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
22075 (CURRENT_MODE_LINE_FACE_ID): Use it.
22076 (Vmode_line_in_non_selected_windows): Declare extern.
22077
22078 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
22079 to get mode line face.
22080
22081 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
22082
22083 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
22084 variables; cus-start.el doesn't need them anymore.
22085
22086 2002-02-09 Kim F. Storm <storm@cua.dk>
22087
22088 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
22089 reduction. This fixes a display problem where stray newlines were
22090 inserted in the window (corrected by C-l). Clarified code (IMHO).
22091
22092 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
22093
22094 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
22095
22096 * xdisp.c (display_mode_lines): Fix last change.
22097
22098 2002-02-09 Jason Rumney <jasonr@gnu.org>
22099
22100 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
22101 match each other.
22102 (w32_load_system_font): Prevent Cleartype fonts from loading.
22103 (Fx_show_tip): Ensure tip frames are above other topmost windows.
22104
22105 2002-02-09 Kim F. Storm <storm@cua.dk>
22106
22107 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
22108 (CURRENT_MODE_LINE_HEIGHT): Use it.
22109 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
22110
22111 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
22112 (pos_visible_p, handle_face_prop): Likewise.
22113 (display_mode_lines): Likewise, but for the real selected window.
22114 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
22115
22116 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
22117 in non-selected windows.
22118 (realize_basic_faces): Realize it.
22119 (syms_of_term): Intern and staticpro it.
22120
22121 2002-02-08 Kim F. Storm <storm@cua.dk>
22122
22123 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
22124 Changed mail addresses to emacs-devel@gnu.org.
22125
22126 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
22127
22128 * fileio.c (Fsubstitute_in_file_name): If the file name includes
22129 ~user, and there's no such user, don't discard everything before ~user.
22130
22131 * floatfns.c (Fround): Doc fix.
22132
22133 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22134
22135 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
22136
22137 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
22138
22139 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
22140
22141 2002-02-07 Kim F. Storm <storm@cua.dk>
22142
22143 * keymap.c (where_is_internal): Only check whether definition is
22144 remapped if it fulfills is_command_symbol.
22145
22146 2002-02-07 Andreas Schwab <schwab@suse.de>
22147
22148 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
22149
22150 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
22151
22152 2002-02-06 Kim F. Storm <storm@cua.dk>
22153
22154 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
22155 defining command remapping. Doc updated.
22156 (Flookup_key): Remap command through keymap if KEY is a symbol.
22157 (is_command_symbol): New function.
22158 (Fkey_binding): Use it. New optional argument NO-REMAP.
22159 Doc updated. Callers changed. Perform command remapping via
22160 recursive call unless that arg is non-nil.
22161 (where_is_internal): New argument no_remap. Callers changed.
22162 Call recursively to find original key bindings for a remapped
22163 comand unless that arg is non-nil.
22164 (Fwhere_is_internal): New optional argument NO-REMAP.
22165 Doc updated. Callers changed. Pass arg to where_is_internal.
22166
22167 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
22168 (is_command_symbol): Add prototype.
22169
22170 * keyboard.c (Vthis_original_command): New variable.
22171 (syms_of_keyboard): DEFVAR_LISP it.
22172 (command_loop_1): Set it, and perform command remapping.
22173
22174 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22175
22176 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
22177
22178 2002-02-06 Jason Rumney <jasonr@gnu.org>
22179
22180 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
22181
22182 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
22183
22184 * charset.c (get_charset_id): Use if-else instead of ?:.
22185
22186 2002-02-06 Richard M. Stallman <rms@gnu.org>
22187
22188 * filelock.c (S_ISLNK): Define if not defined.
22189
22190 2002-02-03 Richard M. Stallman <rms@gnu.org>
22191
22192 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
22193
22194 * lread.c (read1): Redesign strategy for force_multibyte and
22195 force_singlebyte. Now is_multibyte records whether read_buffer
22196 is multibyte. Encountering any multibyte character makes it so.
22197
22198 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
22199
22200 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
22201 with the same sequence, map that sequence to f10 rather than f0.
22202
22203 2002-02-03 Andreas Schwab <schwab@suse.de>
22204
22205 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
22206 latter never being defined on GNU/Linux.
22207
22208 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
22209
22210 * xfaces.c (realize_default_face): Don't set the weight and slant of
22211 the default face to Qnormal, unless these attributes are unspecified.
22212
22213 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22214
22215 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
22216 Call cancel_hourglass unconditionally.
22217
22218 * eval.c (Fsignal): Remove duplicated declaration of
22219 the variable `display_hourglass_p'.
22220
22221 2002-01-31 Richard M. Stallman <rms@gnu.org>
22222
22223 * editfns.c (region_limit): Nicer error message.
22224
22225 * coding.c (decode_composition_emacs_mule):
22226 Give up if NCOMPONENT gets too large to index `component'.
22227
22228 * callint.c (check_mark): New arg to specify clearer error message.
22229 Callers changed.
22230
22231 2002-01-27 Richard M. Stallman <rms@gnu.org>
22232
22233 * minibuf.c (Fcompleting_read): Doc fix.
22234
22235 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22236
22237 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
22238 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
22239 Fix doc-strings.
22240
22241 2002-01-26 Richard M. Stallman <rms@gnu.org>
22242
22243 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
22244
22245 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
22246 and scroll_up_aggressively.
22247
22248 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22249
22250 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
22251
22252 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
22253
22254 * textprop.c (Fnext_property_change, Fnext_single_property_change)
22255 (Fprevious_property_change, Fprevious_single_property_change):
22256 Stay within the narrowed-buffer boundaries.
22257
22258 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
22259
22260 * term.c (Ftty_display_color_cells): New function.
22261 (syms_of_term): Defsubr it.
22262 (Ftty_display_color_cells, Ftty_display_color_p): Change the
22263 argument name to DISPLAY. Doc fix.
22264
22265 * dispextern.h: Add prototype for set_tty_color_mode and
22266 tty_setup_colors.
22267
22268 2002-01-24 Jason Rumney <jasonr@gnu.org>
22269
22270 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
22271 If region left to draw is not what was expected, mark the frame as
22272 garbaged.
22273
22274 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
22275 Combine the regions returned by BeginPaint and GetUpdateRect.
22276
22277 2002-01-23 Jason Rumney <jasonr@gnu.org>
22278
22279 * w32term.c (x_update_window_begin): Only hide caret if
22280 w32_use_visible_system_caret is set.
22281 (x_update_window_end): Only show caret if
22282 w32_use_visible_system_caret is set.
22283 (syms_of_w32term): Handle SystemParametersInfo call failing.
22284
22285 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
22286
22287 2002-01-22 Richard M. Stallman <rms@gnu.org>
22288
22289 * unexelf.c (unexec): Define n so as to cause compilation error
22290 for the code where people have often written n instead of nn.
22291
22292 * .gdbinit (hookpost-run): Defined.
22293
22294 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22295
22296 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
22297
22298 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22299
22300 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
22301 if fullscreen is being set.
22302
22303 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22304
22305 * minibuf.c (Fminibuffer_contents)
22306 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
22307 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
22308
22309 2002-01-21 Richard M. Stallman <rms@gnu.org>
22310
22311 * window.c (check_frame_size): Fix minimum height calculation.
22312
22313 2002-01-20 Ken Raeburn <raeburn@gnu.org>
22314
22315 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
22316 height before comparison.
22317 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
22318
22319 2002-01-20 Jason Rumney <jasonr@gnu.org>
22320
22321 * w32term.c (w32_system_caret_width): Remove.
22322 (w32_use_visible_system_caret): New user flag.
22323 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
22324 Windows reports a screen reader running.
22325 (x_update_window_begin): Hide the system caret.
22326 (x_update_window_end): Show the system caret.
22327 (x_display_and_set_cursor): Don't draw a cursor when
22328 w32_use_visible_system_caret is set. Do not adjust width.
22329
22330 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
22331 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
22332 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
22333 the user requests it. Use system default width when creating.
22334 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
22335
22336 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
22337 New window messages.
22338
22339 2002-01-20 Richard M. Stallman <rms@gnu.org>
22340
22341 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
22342
22343 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22344
22345 * doprnt.c (doprnt1): Fix typos in error call.
22346
22347 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
22348
22349 * unexelf.c (unexec) [__sgi]: Support the .got sections.
22350
22351 2002-01-20 Jason Rumney <jasonr@gnu.org>
22352
22353 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
22354 that Windows returns. If a double check fails, try to guess how
22355 ExtTextOut is going to act.
22356
22357 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
22358 in place of stricmp.
22359 (w32_list_synthesized_fonts): Removed.
22360 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
22361 (struct enumfont_t): New element; list.
22362 (enum_font_cb2): List all style and charset variations of a font.
22363 (Fw32_select_font): New optional argument; include_proportional.
22364 Exclude vertical fonts. Exclude proportional fonts unless
22365 include_proportional is non-nil.
22366 (w32_enable_synthesized_fonts): Change to a boolean.
22367 (Fw32_send_sys_command): Doc fix.
22368
22369 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22370
22371 * dispnew.c (update_frame): Move the variable `tem' to the block
22372 where it is used.
22373
22374 2002-01-19 Jason Rumney <jasonr@gnu.org>
22375
22376 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
22377 call to face-set-after-frame-default.
22378
22379 2002-01-18 Richard M. Stallman <rms@gnu.org>
22380
22381 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
22382 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
22383
22384 2002-01-17 Richard M. Stallman <rms@gnu.org>
22385
22386 * window.c (enlarge_window): When exceeding size of parent,
22387 directly delete all the siblings instead of trying to resize it.
22388
22389 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22390
22391 * term.c (set_tty_color_mode): Remove unused variable `tem'.
22392
22393 2002-01-16 Henrik Enberg <henrik@enberg.org>
22394
22395 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
22396
22397 2002-01-16 Kim F. Storm <storm@cua.dk>
22398
22399 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
22400 is invisible. This can happen if cursor is on top line of a
22401 window, and we switch to a buffer with a header line.
22402
22403 * w32term.c (x_erase_phys_cursor): Ditto.
22404
22405 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22406
22407 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
22408 `dont_resize' only when used.
22409
22410 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
22411
22412 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
22413
22414 * xdisp.c (display_mode_element): When computing charpos, depend
22415 on multibyteness of elt, not the text in field.
22416
22417 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22418
22419 * buffer.c (Fkill_all_local_variables):
22420 Increment `update_mode_lines' only once.
22421
22422 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22423
22424 * lisp.h (adjust_after_replace_noundo)
22425 (Fupdate_coding_systems_internal): Add prototypes.
22426
22427 * sound.c (Fplay_sound): Initialize header_size also for :data case.
22428
22429 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
22430
22431 Support for the --color command-line argument and tty-color-mode
22432 frame parameter:
22433
22434 * term.c (tty_default_color_capabilities, tty_setup_colors)
22435 (set_tty_color_mode): New functions.
22436 (term_init): Call tty_default_color_capabilities.
22437 (Qtty_color_mode_alist): New variable.
22438 (syms_of_term): Intern and staticpro it.
22439
22440 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
22441 frames.
22442 (do_switch_frame): For termcap frames, switch the tty
22443 color mode as specified by the frame's parameters.
22444 (Qtty_color_mode): New variable.
22445 (syms_of_frame): Intern and staticpro it.
22446
22447 * emacs.c (USAGE2): Add the --color option.
22448 (standard_args): Ditto.
22449
22450 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22451
22452 * xterm.h (struct x_output): New members want_fullscreen,
22453 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
22454 y_pixels_outer_diff.
22455 New enum for FULLSCREEN_* constants.
22456 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
22457 is NULL.
22458 (x_fullscreen_adjust): Add prototype.
22459
22460 * emacs.c (USAGE2): Add the new full-screen arguments.
22461 (standard_args): Ditto.
22462
22463 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
22464 New variables.
22465 (syms_of_xfns): Intern and staticpro them.
22466 (x_frame_parms) <"fullscreen">: New parameter.
22467 (x_fullscreen_move, x_set_fullscreen): New functions.
22468 (x_set_frame_parameters): Support for Qfullscreen.
22469 (x_real_positions): More accurate computation of the frame position.
22470 (x_figure_window_size): Support full-screen frames.
22471 (Fx_create_frame): Default the fullscreen parameter.
22472
22473 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
22474 (XTread_socket) <Expose>: Call x_check_fullscreen.
22475 <ConfigureNotify>: Don't resize to fullscreen.
22476 Call x_check_fullscreen_move, and set the want_fullscreen member of
22477 output_data.x.
22478
22479 2002-01-13 Jason Rumney <jasonr@gnu.org>
22480
22481 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
22482 for mice with more than 3 buttons.
22483
22484 * w32term.c (parse_button): New parameter xbutton. Callers changed.
22485 (w32_read_socket): Handle new "XBUTTON" messages.
22486
22487 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
22488 (syms_of_w32fns): DEFVAR_BOOL it.
22489 (w32_wnd_proc): Handle new "XBUTTON" messages.
22490
22491 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22492
22493 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
22494
22495 2002-01-13 Andreas Schwab <schwab@suse.de>
22496
22497 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
22498
22499 2002-01-12 Andreas Schwab <schwab@suse.de>
22500
22501 * .gdbinit (xbuffer): Remove address operator since data is now a
22502 pointer.
22503
22504 2002-01-11 Richard M. Stallman <rms@gnu.org>
22505
22506 * insdel.c (adjust_after_replace_noundo): New function.
22507
22508 * coding.c (code_convert_region): Don't copy old text if undo disabled.
22509
22510 2002-01-09 Jason Rumney <jasonr@gnu.org>
22511
22512 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
22513 when checking for multiple frames.
22514
22515 2002-01-08 Richard M. Stallman <rms@gnu.org>
22516
22517 * window.c (delete_window): Rewrite the code for changing the
22518 selected window to handle the case where WINDOW is not a leaf.
22519
22520 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
22521
22522 * process.c (send_process): Set src_multibyte to 1 after the call
22523 top setup_coding_system, not before the call.
22524
22525 2002-01-07 Jason Rumney <jasonr@gnu.org>
22526
22527 * xmenu.c (set_frame_menubar, xmenu_show):
22528 (xdialog_show): Initialize wv->help to Qnil.
22529
22530 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
22531 (w32_dialog_show): Initialize wv->help to Qnil.
22532
22533 2002-01-06 Jason Rumney <jasonr@gnu.org>
22534
22535 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
22536
22537 * w32menu.c (w32_menu_display_help): Revert last change.
22538
22539 * xmenu.c (menu_highlight_callback): Revert last change.
22540
22541 2002-01-06 Andreas Schwab <schwab@suse.de>
22542
22543 * insdel.c (make_gap_larger): Make sure buffer size does not
22544 overflow range of int.
22545
22546 2002-01-05 Jason Rumney <jasonr@gnu.org>
22547
22548 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
22549 OVERLAPS_P.
22550
22551 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
22552
22553 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
22554 to the left or to the right of the pointer, put it against
22555 the left screen edge.
22556 (x_frame_parms): Add missing braces around initializer.
22557
22558 * w32term.c (x_setup_relief_colors): Don't compute an image's
22559 background color if it doesn't have a Pixmap.
22560 (notice_overwritten_cursor): Don't depend on
22561 output_cursor and updated_area. Compare pixel coordinates with
22562 window's cursor pixel coordinates.
22563 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
22564 Call notice_overwritten_cursor with new arg list.
22565 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
22566 unconditionally.
22567 (x_draw_image_relief): Use predefined macro instead of
22568 constant when the value of `tool_bar_button_relief' is negative.
22569
22570 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
22571
22572 2002-01-04 Richard M. Stallman <rms@gnu.org>
22573
22574 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
22575
22576 2002-01-03 Richard M. Stallman <rms@gnu.org>
22577
22578 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
22579 (Fkey_binding): Try the `keymap' property map first.
22580 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
22581 minor mode bindings.
22582
22583 2002-01-03 Kim F. Storm <storm@cua.dk>
22584
22585 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
22586
22587 2002-01-02 Richard M. Stallman <rms@gnu.org>
22588
22589 * keyboard.c (read_key_sequence): Handle the keymap property
22590 before minor mode maps.
22591
22592 * editfns.c (Fformat): Update thissize from field_width
22593 based on the actual width, in the string case.
22594
22595 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22596
22597 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
22598 when used as truth value to prevent gcc warnings.
22599
22600 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
22601 * w32proc.c: Include <config.h>.
22602
22603 2002-01-01 Andreas Schwab <schwab@suse.de>
22604
22605 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
22606 not EMACS_INT, to make them compatible with DEFVAR_INT.
22607 * lisp.h (max_specpdl_size): Adjust declaration.
22608
22609 2002-01-01 Richard M. Stallman <rms@gnu.org>
22610
22611 * print.c (print_object): Test print_escape_nonascii only for
22612 unibyte strings.
22613 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
22614 when outputting to a multibyte buffer.
22615
22616 2001-12-29 Richard M. Stallman <rms@gnu.org>
22617
22618 * print.c (print_object): In multibyte string, use hex escapes.
22619 Use octal only for unibyte strings.
22620 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
22621
22622 * lread.c (read_escape): New arg BYTEREP for reporting whether
22623 escape forces unibyte or multibyte.
22624 (read1): When reading a string, take note of that info.
22625
22626 2001-12-29 Ken Raeburn <raeburn@gnu.org>
22627
22628 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
22629 comparison to test lisp value returned by Fget.
22630
22631 2001-12-29 Richard M. Stallman <rms@gnu.org>
22632
22633 * lisp.h (max_specpdl_size): Add declaration.
22634
22635 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
22636
22637 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
22638 Handle modifier bits. Correct typo in error message.
22639
22640 2001-12-28 Richard M. Stallman <rms@gnu.org>
22641
22642 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
22643 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
22644 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22645 Update calls to Fdefine_abbrev.
22646 (write_abbrev): Update for changed data format.
22647 Don't list "system" abbrevs.
22648 (Fexpand_abbrev): Update use count with new data format.
22649 (describe_abbrev): Update for changed data format.
22650 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
22651
22652 * config.in (HAVE_MBSINIT): Add #undef.
22653
22654 * strftime.c (mbsinit): Define as no-op if not available.
22655
22656 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
22657 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
22658
22659 * keymap.c (Flookup_key): Error message if key has wrong data type.
22660 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
22661 (exclude_key): New variable.
22662
22663 2001-12-28 Gerd Moellmann <gerd@gnu.org>
22664
22665 * xterm.c (x_setup_relief_colors): Don't compute an image's
22666 background color if it doesn't have a Pixmap.
22667
22668 * xterm.c (notice_overwritten_cursor): Don't depend on
22669 output_cursor and updated_area. Compare pixel coordinates with
22670 window's cursor pixel coordinates.
22671 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
22672 Call notice_overwritten_cursor with new arg list.
22673 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
22674 unconditionally.
22675
22676 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
22677 height of the cursor line to the amount to scroll.
22678
22679 2001-12-27 Richard M. Stallman <rms@gnu.org>
22680
22681 * intervals.c (set_point_both): The position after an invisible,
22682 intangible character is not an acceptable stopping point.
22683
22684 2001-12-27 Ken Raeburn <raeburn@gnu.org>
22685
22686 * window.c (enlarge_window): In new preserve_before code, convert
22687 CURBEG from lisp object to integer before doing arithmetic.
22688
22689 2001-12-27 Richard M. Stallman <rms@gnu.org>
22690
22691 * bytecode.c (Fbyte_code): Undo previous change.
22692
22693 2001-12-26 Kim F. Storm <storm@cua.dk>
22694
22695 * keyboard.c (record_char): Ignore duplicate help-echo events only
22696 separated by mouse-movement. When tracking mouse, only record
22697 first and last mouse-movement event in same window.
22698 Don't record mouse-movement events in keyboard macros.
22699
22700 2001-12-25 Richard M. Stallman <rms@gnu.org>
22701
22702 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
22703 (Fenlarge_window): New arg PRESERVE_BEFORE.
22704
22705 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
22706 instead of Fstring_as_unibyte.
22707
22708 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22709
22710 The following changes remove mocklisp support:
22711
22712 * mocklisp.h, mocklisp.c: Files removed.
22713
22714 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
22715 `Qmocklisp' and `Qmocklisp_arguments'.
22716 Remove prototype of syms_of_mocklisp.
22717
22718 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
22719
22720 * callint.c: Do not include mocklisp.h.
22721 (Fcall_interactively): Do not test for mocklisp case.
22722
22723 * eval.c: Remove variables `Qmocklisp_arguments',
22724 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
22725 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
22726 Do not test for mocklisp case.
22727 (Fwhile): Remove unused variable `tem'.
22728 (syms_of_eval): Remove variable `moclisp-arguments'.
22729
22730 * data.c (wrong_type_argument): Remove mocklisp case.
22731
22732 * doc.c (Fdocumentation): Remove mocklisp case.
22733
22734 * emacs.c (main): Do not call syms_of_mocklisp.
22735
22736 2001-12-21 Richard M. Stallman <rms@gnu.org>
22737
22738 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
22739 to the left or to the right of the pointer, put it against
22740 the left screen edge.
22741
22742 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
22743
22744 * Makefile.in (distclean): Remove .gdbinit if we are building
22745 outside the source tree.
22746
22747 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
22748
22749 * w32.c (emacs_root_dir): New function.
22750
22751 * msdos.c (emacs_root_dir): New function.
22752
22753 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
22754 of the current drive as the fallback for default_directory.
22755
22756 * dired.c (file_name_completion): Run the elements of
22757 completion-ignored-extensions through ENCODE_FILE.
22758
22759 * lisp.h (scmp): Remove prototype, since it's now a static
22760 function private to dired.c.
22761
22762 2001-12-18 Richard M. Stallman <rms@gnu.org>
22763
22764 * dired.c (scmp): Function moved from minibuf.c.
22765 Delete multibyte handling--used only on encoded strings.
22766
22767 * minibuf.c (scmp): Function moved to dired.c.
22768
22769 * fns.c (merge): Add QUIT call.
22770
22771 2001-12-18 Dave Love <fx@gnu.org>
22772
22773 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
22774 language/georgian.el.
22775
22776 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
22777
22778 * Makefile.in (lisp, shortlisp): Synchronize with changes to
22779 lisp/Makefile.in:DONTCOMPILE.
22780
22781 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22782
22783 * xdisp.c (window_box_height): Do not return negative values.
22784 From Gerd Moellmann <gerd@gnu.org>.
22785
22786 * keyboard.c (head_table): Add missing braces around initializer.
22787
22788 * term.c (keys): Likewise.
22789
22790 * xfns.c (x_frame_parms, visual_classes): Likewise.
22791
22792 2001-12-17 Sam Steingold <sds@gnu.org>
22793
22794 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
22795 patch (COMPOSING_P, not COMPOSING).
22796
22797 2001-12-17 Richard M. Stallman <rms@gnu.org>
22798
22799 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
22800
22801 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
22802 before calling decode_coding.
22803
22804 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
22805
22806 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
22807 instead of only for COMPOSITION_DISABLED.
22808
22809 2001-12-16 Richard M. Stallman <rms@gnu.org>
22810
22811 * alloc.c (pure_alloc): After overflow, allocate just a small block.
22812
22813 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
22814
22815 * buffer.h (struct buffer): New field `display_error_modiff'.
22816 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
22817
22818 * window.c (Frecenter): Clear display_error_modiff field.
22819
22820 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
22821 Call redisplay_window, but not if display_error_modiff field says no.
22822 (redisplay_window_error): New function.
22823 (displayed_buffer): New variable.
22824 (redisplay_internal, redisplay_windows): Call the new functions
22825 instead of redisplay_window directly.
22826
22827 2001-12-15 Richard M. Stallman <rms@gnu.org>
22828
22829 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
22830
22831 2001-12-14 Andrew Innes <andrewi@gnu.org>
22832
22833 * makefile.w32-in (EMACSLOADPATH): Define.
22834 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
22835 (bootstrap-temacs): Remove dependency on bootstrap-clean.
22836
22837 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
22838
22839 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
22840 parameter have a numeric value all the time.
22841
22842 * w32fns.c (x_report_frame_params): Likewise.
22843
22844 2001-12-12 Richard M. Stallman <rms@gnu.org>
22845
22846 * fileio.c (Fwrite_region): Doc fix.
22847
22848 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
22849 (redisplay_internal): Call clear_image_cache only for window terminals.
22850
22851 2001-12-12 Gerd Moellmann <gerd@gnu.org>
22852
22853 * xdisp.c (move_it_vertically_backward): Change heuristic
22854 for the case that we didn't move far enough initially.
22855
22856 * window.c (Frecenter): Simplify computation in the case of window
22857 system frames and ARG < 0; use window_box_height.
22858
22859 2001-12-11 Richard M. Stallman <rms@gnu.org>
22860
22861 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
22862 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
22863
22864 2001-12-11 Andrew Innes <andrewi@gnu.org>
22865
22866 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
22867 arg is negative.
22868
22869 2001-12-11 Richard M. Stallman <rms@gnu.org>
22870
22871 * m/hp800.h: Split the __hpux conditional into the parts
22872 that are right for GNU/Linux too and the parts that are not.
22873 Use the former if GNU_LINUX.
22874 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
22875
22876 * s/gnu-linux.h (GNU_LINUX): Defined.
22877
22878 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22879
22880 * macros.c, msdos.c, w16select.c: Change doc-string comments to
22881 `new style' [w/`doc:' keyword].
22882
22883 2001-12-10 Jason Rumney <jasonr@gnu.org>
22884
22885 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
22886 before using.
22887
22888 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22889
22890 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
22891 keyword].
22892
22893 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
22894
22895 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
22896
22897 * s/hpux10.h (srand48): Don't undefine.
22898
22899 2001-12-09 Jason Rumney <jasonr@gnu.org>
22900
22901 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
22902 Add comment to explain where the struct came from.
22903 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
22904 (add_menu_item): Process pop-up menus first to avoid memory leak.
22905 (add_menu_item, w32_menu_display_help): Use `help' field as
22906 Lisp_Object.
22907 (w32_free_submenu_strings): Only free owner-drawn strings.
22908
22909 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22910
22911 * COPYING: Moved back.
22912
22913 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
22914 Add parentheses around && within ||.
22915
22916 * indent.c (compute_motion): Likewise.
22917
22918 * intervals.c (merge_properties_sticky): Likewise.
22919
22920 * coding.c (setup_coding_system, shrink_encoding_region)
22921 (Fdecode_sjis_char): Likewise.
22922
22923 2001-12-07 Andreas Schwab <schwab@suse.de>
22924
22925 * xdisp.c (display_mode_element): Don't read past end of string if
22926 it ends with '%'.
22927
22928 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
22929 can hold.
22930
22931 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
22932 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
22933 type changed to Lisp_Object.
22934 (syms_of_data): DEFVAR_LISP them.
22935
22936 2001-12-07 Richard M. Stallman <rms@gnu.org>
22937
22938 * callproc.c (init_callproc): Set Vdata_directory based on the source
22939 location whenever Emacs was run uninstalled.
22940
22941 2001-12-06 Paul Eggert <eggert@twinsun.com>
22942
22943 * config.in (HAVE_WORKING_VFORK): New #undefs.
22944 * process.c (create_process):
22945 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
22946 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
22947 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
22948 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
22949 * m/intel386.h (HAVE_VFORK): Likewise.
22950 * m/mips-siemens.h (HAVE_VFORK): Likewise.
22951 * m/mips.h (HAVE_VFORK): Likewise.
22952 * s/freebsd.h (vfork): Remove #define.
22953 * s/lynxos.h (HAVE_VFORK): Remove #undef.
22954 * s/usg5-4-2.h: Fix comment about vfork.
22955
22956 2001-12-06 Richard M. Stallman <rms@gnu.org>
22957
22958 * s/hpux10.h (random): Add undef.
22959 (HAVE_RANDOM): Define it just once.
22960
22961 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
22962
22963 * eval.c: Undo last change: the standard syntax is not wanted.
22964
22965 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
22966
22967 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
22968 scroll bars of the frame before deleting the frame itself. If the
22969 frame has a widget, delete the frame with XtDestroyWidget, and do
22970 not call XDestroyWindow before that.
22971
22972 2001-12-06 Kim F. Storm <storm@cua.dk>
22973
22974 * xfns.c (x_report_frame_params): Return actual fringe widths.
22975
22976 * w32fns.c (x_report_frame_params): Return actual fringe widths.
22977
22978 2001-12-05 Andrew Innes <andrewi@gnu.org>
22979
22980 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
22981 excessively large.
22982
22983 * insdel.c (make_gap_larger): New function.
22984 (make_gap_smaller): New function.
22985 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
22986 Call make_gap_smaller if arg is negative.
22987
22988 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
22989
22990 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
22991 Pass a dummy argument when calling interrupt_signal.
22992 (parse_menu_item): Mark disabled items before checking for empty def.
22993 (read_char_minibuf_menu_prompt): Make safety more visible.
22994 (read_key_sequence): Add a `first_unbound' variable.
22995 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
22996 unbound prefix as soon as we can detect it.
22997
22998 * doc.c (Fsnarf_documentation): Add prototype.
22999 (get_doc_string): Handle negative arguments.
23000 (Fdocumentation): Use AREF and ASIZE.
23001 Move the calls to get_doc_string to a single place.
23002 Don't confuse an interactive-spec for a docstring reference.
23003 (Fdocumentation_property): Take advantage of the fact that
23004 get_doc_string now ignores the sign of the docstring position.
23005
23006 * eval.c: Use standard syntax for usage in docstrings.
23007
23008 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23009
23010 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
23011
23012 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23013
23014 * xterm.c (x_draw_image_relief): Use predefined macro instead of
23015 constant when the value of `tool_bar_button_relief' is negative.
23016
23017 2001-12-02 Richard M. Stallman <rms@gnu.org>
23018
23019 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
23020 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
23021
23022 * fileio.c (read_non_regular): Delete Fsignal call.
23023
23024 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
23025
23026 * lisp.h (run_hook_list_with_args): Undo last change.
23027
23028 2001-12-01 Gerd Moellmann <gerd@gnu.org>
23029
23030 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
23031
23032 2001-12-01 Jason Rumney <jasonr@gnu.org>
23033
23034 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
23035
23036 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
23037 [!WM_MOUSELEAVE]: Define.
23038
23039 * w32menu.c (current_popup_menu, get_menu_item_info):
23040 (set_menu_item_info): New vars.
23041 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
23042 (w32_menu_show): Set current_popup_menu.
23043 (add_menu_item): Allocate new strings for owner-drawn menu items
23044 and help strings.
23045 Use owner-draw for disabled menu items again.
23046 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
23047 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
23048
23049 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
23050 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
23051 <WM_EXITMENULOOP>: Free menu strings.
23052 <WM_MOUSELEAVE>: Stop tracking mouse.
23053 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
23054
23055 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
23056 and mouse face.
23057
23058 2001-12-01 Kim F. Storm <storm@cua.dk>
23059
23060 The following changes add left-fringe and right-fringe
23061 frame parameters to adjust fringe widths, or remove one or
23062 both fringes.
23063
23064 * frame.h (struct frame): Remove trunc_area_pixel_width and
23065 trunc_area_cols fields.
23066 (Qleft_fringe, Qright_fringe): Declare.
23067 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
23068
23069 * frame.c (Qleft_fringe, Qright_fringe): New vars.
23070 (syms_of_frame): Initialize them.
23071
23072 * window.c (coordinates_in_window): Handle separate left and right
23073 fringe widths.
23074
23075 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
23076 and fringe_cols fields.
23077 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
23078 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
23079 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
23080 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
23081 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
23082 (x_compute_fringe_widths): Add prototype.
23083
23084 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
23085 fill fringe evenly with small dashes.
23086 (x_draw_fringe_bitmap): Clear background if necessary. Align and
23087 clip the new ZV bitmap to avoid jitter between rows.
23088 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
23089 background. Don't draw fringe bitmaps if fringe width is zero.
23090 (x_compute_fringe_widths): New function.
23091 (x_new_font, x_set_window_size_1): Use it.
23092
23093 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
23094 (x_set_frame_parameters): Process `font' parameter before other
23095 parameters as fringe widths depend on it.
23096 (x_set_fringe_width): New function.
23097 (x_figure_window_size): Use x_compute_fringe_widths.
23098 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
23099 parameters.
23100
23101 * widget.c (set_frame_size): Use x_compute_fringe_widths.
23102 (EmacsFrameSetCharSize): Ditto.
23103
23104 * w32term.h: Merged changes from xterm.h.
23105 * w32term.c: Merged changes from xterm.c.
23106 * w32fns.c: Merged changes from xfns.c.
23107
23108 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23109
23110 * COPYING: Removed.
23111
23112 2001-11-29 Dave Love <fx@gnu.org>
23113
23114 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
23115 extra extra slot.
23116 (detect_coding_mask): Fix call of detect_coding_iso2022.
23117
23118 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23119
23120 * fileio.c (file-name-coding-system)
23121 (default-file-name-coding-system): Doc fix (links to referenced
23122 variables added).
23123
23124 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
23125
23126 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
23127 Add dummy uses of gcproN variables.
23128
23129 * category.c (describe_category, describe_category_1)
23130 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
23131 (syms_of_category): Don't defsubr Sdescribe_categories.
23132
23133 2001-11-28 Richard M. Stallman <rms@gnu.org>
23134
23135 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
23136
23137 * Makefile.in (lispdir): New variable, referring to build dir.
23138 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
23139
23140 2001-11-28 Andrew Innes <andrewi@gnu.org>
23141
23142 * w32menu.c (w32_menu_display_help): Actually add the new argument
23143 OWNER.
23144
23145 2001-11-28 Jason Rumney <jasonr@gnu.org>
23146
23147 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
23148 menu items. From David Ponce <dponce@wanadoo.fr>.
23149 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
23150 conditionally.
23151 (w32_menu_display_help): New argument OWNER. Rewritten to store a
23152 help event in the owner frame's keyboard buffer.
23153
23154 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
23155 (Fx_show_tip): Don't subtract last width from row width.
23156
23157 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
23158 (w32_read_socket): Use EQ to compare frames.
23159
23160 2001-11-28 Gerd Moellmann <gerd@gnu.org>
23161
23162 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
23163 OVERLAPS_P.
23164
23165 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23166
23167 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
23168 `gcpro3' and `gcpro4'.
23169
23170 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
23171
23172 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
23173
23174 * ccl.c: Use AREF and ASIZE.
23175
23176 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
23177
23178 * lisp.h (run_hook_list_with_args): Remove.
23179 (LIST_END_P): Fix call to wrong_type_argument.
23180 (make_fixnum_or_float): Use EMACS_INT rather than int.
23181
23182 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
23183
23184 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
23185 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
23186
23187 * eval.c: Use AREF and ASIZE.
23188 (Ffetch_bytecode): Add the file name to the error message.
23189
23190 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
23191 which match the end of the file-name.
23192 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
23193 is not a valid env var, but leave it as is instead.
23194
23195 * keymap.c (access_keymap): Handle t bindings like nil bindings.
23196 Make nil bindings in char-tables transparent.
23197 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
23198
23199 2001-11-26 Richard M. Stallman <rms@gnu.org>
23200
23201 * textprop.c (set_text_properties_1): Allow START, END in either order.
23202 Do nothing if range is empty.
23203
23204 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
23205
23206 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
23207 (clean): Not here.
23208
23209 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
23210
23211 * textprop.c (set_text_properties_1): Clearly mark that the
23212 interval should not be empty.
23213
23214 * intervals.c (graft_intervals_into_buffer):
23215 Don't call set_text_properties_1 on an empty interval.
23216
23217 2001-11-25 Richard M. Stallman <rms@gnu.org>
23218
23219 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
23220
23221 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
23222 don't lose the data in it.
23223
23224 2001-11-25 Juanma Barranquero <lektu@terra.es>
23225
23226 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
23227
23228 * buffer.c (Fkill_buffer): Likewise.
23229
23230 * print.c (temp_output_buffer_setup): Likewise.
23231
23232 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
23233
23234 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
23235
23236 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
23237
23238 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
23239 Niemitalo <kon@iki.fi>.
23240
23241 2001-11-25 Jason Rumney <jasonr@gnu.org>
23242
23243 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
23244
23245 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
23246 (Fx_show_tip): Block input during frame creation.
23247 (Fx_show_tip, Fx_hide_tip): Enable.
23248
23249 2001-11-24 Richard M. Stallman <rms@gnu.org>
23250
23251 * lread.c (Fload): Detect recursive load error for more than 3
23252 nestings of the same file.
23253 (Vrecursive_load_depth_limit): Variable deleted.
23254 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
23255
23256 2001-11-24 Jason Rumney <jasonr@gnu.org>
23257
23258 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
23259 mouse position if either left or top is not specified.
23260
23261 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
23262 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
23263 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
23264 (my_create_tip_window): Assign tip_window.
23265 (x_create_tip_frame): Use same defaults as X.
23266 (compute_tip_xy): Remove unused variable. Use full screen width.
23267 (Fx_show_tip): Do not double height. Call ShowWindow directly.
23268
23269 * w32term.c (x_after_update_window_line): Doc fix.
23270 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
23271 frames.
23272 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
23273
23274 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
23275 for all Windowed systems.
23276
23277 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
23278
23279 * msdos.c (IT_clear_screen): If the frame's faces are not yet
23280 realized, use the initial screen colors to clear the screen.
23281
23282 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23283
23284 * textprop.c (Fset_text_properties): Remove unused variables
23285 `unchanged', `prev_changed', `s' and `len'.
23286
23287 * search.c (Freplace_match): Remove unused variable `inslen'.
23288
23289 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
23290
23291 2001-11-22 Jason Rumney <jasonr@gnu.org>
23292
23293 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
23294 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
23295 (my_create_tip_window): New function.
23296 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
23297 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
23298
23299 2001-11-20 Jason Rumney <jasonr@gnu.org>
23300
23301 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
23302 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
23303
23304 * w32fns.c (Vw32_system_coding_system): Remove.
23305 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
23306
23307 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
23308
23309 * fileio.c (Fwrite_region): Move choose_write_coding_system to
23310 after build_annotations.
23311
23312 * syntax.c (describe_syntax): Add dummy arg.
23313 (describe_syntax_1): Update call to describe_vector.
23314
23315 * category.c (describe_category): Add dummy arg.
23316 (describe_category_1): Update call to describe_vector.
23317
23318 * keymap.c (Fdescribe_vector): Add `describer' parameter.
23319 (describe_command, describe_translation): Add dummy second param.
23320 (describe_map): Call elt_describer with two arguments.
23321 (describe_vector_princ): Add `fun' parameter.
23322 Call it instead of the hardcoded `princ'.
23323 (describe_vector): Add arg `args'.
23324 Pass it as a new second argument to elt_describer.
23325
23326 * keymap.h (describe_vector): Update prototype.
23327
23328 * frame.c: Don't include keymap.h any more.
23329 (keys_of_frame): Remove.
23330
23331 * lisp.h (keys_of_frame): Remove declaration.
23332
23333 * emacs.c (main): Don't call `keys_of_frame' any more.
23334
23335 2001-11-14 Andreas Schwab <schwab@suse.de>
23336
23337 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
23338 if defined, 0 otherwise.
23339 (MAP_FAILED): Define if not defined and use it to test mmap failure.
23340 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
23341
23342 2001-11-19 Richard M. Stallman <rms@gnu.org>
23343
23344 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
23345
23346 2001-11-18 Jason Rumney <jasonr@gnu.org>
23347
23348 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
23349 (x_draw_bar_cursor): If the background color of the glyph under
23350 the cursor equals the frame's cursor color, use the glyph's
23351 foreground color for drawing the bar cursor.
23352 (x_after_update_window_line): Clear internal border in different
23353 circumstances.
23354 (w32_set_vertical_scroll_bar): Check for width and height > 0.
23355 (w32_draw_relief_rect): Correct relief by 1 pixel.
23356 (x_set_glyph_string_background_width):
23357 Set extends_to_end_of_line_p if the row's fill_line_p is set and
23358 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
23359 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
23360 if cursor_in_non_selected_windows is false.
23361 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
23362 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
23363 Notice if cursor gets overwritten.
23364 (notice_overwritten_cursor): Renamed from
23365 note_overwritten_text_cursor. Rewritten to take glyph widths
23366 into account, and to take X positions as parameters.
23367 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
23368 around call to x_draw_glyphs.
23369 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
23370 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
23371 color to use for image glyph reliefs.
23372 (x_draw_image_relief): Accept zero tool_bar_button_relief.
23373 (glyph_rect): Remove unused variable `area'.
23374
23375 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
23376 some items.
23377 (x_set_internal_border_width): Set frame garbaged when window
23378 doesn't exist yet.
23379 (Fx_create_frame): Accept zero tool_bar_button_relief.
23380 (x_clear_image_1, four_corners_best, image_background)
23381 (image_background_transparent): New functions.
23382 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
23383 (gs_format): Add `:background' entry.
23384 (lookup_image): Set IMG's background color if specified.
23385 (pbm_load, xbm_load_image, png_load): Set IMG's background field
23386 when appropriate.
23387 (x_clear_image_1): Reset `background_valid' and
23388 `background_transparent_valid' fields.
23389 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
23390 calculating it here. Set IMG's background_transparent field.
23391 (enum xpm_keyword_index): Add XPM_BACKGROUND.
23392 (enum png_keyword_index): Add PNG_BACKGROUND.
23393 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
23394 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
23395 (enum gif_keyword_index): Add GIF_BACKGROUND.
23396 (enum gs_keyword_index): Add GS_BACKGROUND.
23397 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
23398 Pre-calculate image background color where necessary.
23399 (x_create_x_image_and_pixmap, xbm_load, gs_load):
23400 Use display info's n_cbits entry for screen depth.
23401 (Fx_show_tip): Remove unused variables `buffer', `top',
23402 `left', `max_width' and `max_height'.
23403
23404 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
23405
23406 2001-11-18 Gerd Moellmann <gerd@gnu.org>
23407
23408 * puresize.h (BASE_PURESIZE): Increase to 750000.
23409
23410 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23411
23412 * frame.c (Fframe_live_p): Doc fix.
23413
23414 2001-11-18 Richard M. Stallman <rms@gnu.org>
23415
23416 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
23417 (message_dolog_marker3): New static variables hold three markers.
23418 (syms_of_xdisp): Initialize and staticpro them.
23419 (message_dolog): Use message_dolog_marker1..3 instead of
23420 allocating markers each time. Unchain them when done.
23421
23422 2001-11-17 Richard M. Stallman <rms@gnu.org>
23423
23424 * doc.c (Fsnarf_documentation): Doc fix.
23425
23426 2001-11-17 Andreas Schwab <schwab@suse.de>
23427
23428 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
23429
23430 2001-11-17 Richard M. Stallman <rms@gnu.org>
23431
23432 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
23433
23434 2001-11-17 Jason Rumney <jasonr@gnu.org>
23435
23436 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
23437
23438 2001-11-17 Gerd Moellmann <gerd@gnu.org>
23439
23440 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
23441 with invalid position.
23442
23443 2001-11-16 Richard M. Stallman <rms@gnu.org>
23444
23445 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
23446
23447 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
23448 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
23449 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
23450
23451 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
23452
23453 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
23454
23455 * fileio.c (build_annotations): Split off the tail.
23456 (build_annotations_2): New fun. Extracted from build_annotations.
23457 (Fwrite_region): Split the call to build_annotations into two
23458 calls to build_annotations and build_annotations_2.
23459
23460 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23461
23462 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
23463 clear_waiting_for_input with argument.
23464
23465 * xterm.h (x_update_cursor): Remove duplicated prototype.
23466
23467 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
23468
23469 * xterm.c (waiting_for_input): Remove unnecessary declaration.
23470
23471 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
23472
23473 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
23474
23475 * fileio.c (choose_write_coding_system): New fun, extracted
23476 from Fwrite_region.
23477 (Fwrite_region): Use it.
23478
23479 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
23480 (funcall_lambda, run_hook_with_args): Make static and add prototype.
23481 (ml_apply, find_handler_clause): Add prototype.
23482
23483 2001-11-16 Eli Zaretskii <eliz@gnu.org>
23484
23485 * config.in: Add #undef HAVE_COFF_H.
23486
23487 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
23488 Required for ISC 4.1.
23489
23490 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
23491
23492 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
23493 Andrew Wiseman <a.wiseman@btclick.com>.
23494
23495 2001-11-16 Kim F. Storm <storm@cua.dk>
23496
23497 The following changes are made to clean up the various internal
23498 references to the fringes to actually use the term `fringe' for
23499 them. Previously, they were called `flags areas', `bitmap areas',
23500 `left/right side of windows', or implicitly as `flags' or
23501 `bitmaps':
23502
23503 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
23504 Comments fixed. Use renamed symbols.
23505
23506 * dispnew.c: Comment fix. Use renamed symbols.
23507
23508 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
23509 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
23510 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
23511
23512 * msdos.c: Comment fix.
23513
23514 * w32fns.c: Use renamed symbols.
23515
23516 * w32term.c: Comment fixes. Use renamed symbols.
23517 (fringe_bitmap_type): Renamed from bitmap_type.
23518 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
23519 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
23520 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
23521
23522 * w32term.h: Comment fixes. Use renamed symbols.
23523 (fringes_extra): Renamed from flags_areas_extra.
23524 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
23525 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
23526 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
23527 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
23528 (FRAME_X_LEFT_FRINGE_WIDTH):
23529 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
23530 (FRAME_X_RIGHT_FRINGE_WIDTH):
23531 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
23532
23533 * widget.c: Use renamed symbols.
23534
23535 * window.c: Comment fixes. Use renamed symbols.
23536 (coordinates-in-window-p): Doc fix.
23537
23538 * xdisp.c: Comment fixes. Use renamed symbols.
23539
23540 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
23541
23542 * xfns.c: Use renamed symbols.
23543
23544 * xterm.c: Comment fixes. Use renamed symbols.
23545 (fringe_bitmap_type): Renamed from bitmap_type.
23546 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
23547 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
23548 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
23549
23550 * xterm.h: Comment fixes. Use renamed symbols.
23551 (fringes_extra): Renamed from flags_areas_extra.
23552 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
23553 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
23554 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
23555 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
23556 (FRAME_X_LEFT_FRINGE_WIDTH):
23557 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
23558 (FRAME_X_RIGHT_FRINGE_WIDTH):
23559 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
23560
23561 2001-11-15 Jason Rumney <jasonr@gnu.org>
23562
23563 * w32menu.c (add-menu-item): Make help_echo and radio buttons
23564 work for most menu items. From David Ponce
23565 <david.ponce@wanadoo.fr>.
23566
23567 2001-11-15 Gerd Moellmann <gerd@gnu.org>
23568
23569 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
23570 Some x_set_* function expect to be called even if old and new
23571 value are equal.
23572
23573 * xdisp.c (build_desired_tool_bar_string): Accept zero
23574 tool_bar_button_relief.
23575
23576 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
23577
23578 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
23579
23580 * xterm.c (x_draw_bar_cursor): If the background color of the
23581 glyph under the cursor equals the frame's cursor color, use
23582 the glyph's foreground color for drawing the bar cursor.
23583
23584 * dispnew.c (direct_output_forward_char): Fix character/byte
23585 position comparison.
23586
23587 2001-11-15 Miles Bader <miles@gnu.org>
23588
23589 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
23590 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
23591 Update arguments to find_field.
23592 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
23593 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
23594 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
23595 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
23596
23597 2001-11-14 Richard M. Stallman <rms@gnu.org>
23598
23599 * editfns.c (Fpropertize): Allow call with 1 arg.
23600
23601 * dispextern.h (image_background, image_background_transparent):
23602 Conditionalize on HAVE_X_WINDOWS.
23603
23604 2001-11-13 Richard M. Stallman <rms@gnu.org>
23605
23606 * print.c (Fprin1_to_string): Doc fix.
23607
23608 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
23609
23610 * floatfns.c (Fceiling, Ffloor): Doc fixes.
23611
23612 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
23613
23614 * fileio.c (Ffile_accessible_directory_p): Doc fix.
23615
23616 * eval.c (syms_of_eval): Doc fix.
23617
23618 * coding.c (syms_of_coding): Doc fix.
23619
23620 * doc.c (Fsnarf_documentation): Doc fix.
23621
23622 * dispnew.c (syms_of_display): Doc fix.
23623
23624 * category.c (Fget_unused_category): Doc fix.
23625
23626 * buffer.c (syms_of_buffer): Doc fixes.
23627
23628 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
23629
23630 * print.c (prin1, print): Doc fix.
23631
23632 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23633
23634 * fontset.h: Remove declarations of variables
23635 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
23636
23637 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
23638 `Vclip_large_size_font'.
23639
23640 2001-11-13 Jason Rumney <jasonr@gnu.org>
23641
23642 * w32fns.c: Doc fix.
23643
23644 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23645
23646 * xfaces.c (Fface_attributes_as_vector): Doc fix.
23647
23648 * fns.c: Doc fix.
23649
23650 * emacs.c: Doc fix.
23651
23652 * coding.c: Doc fix.
23653
23654 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
23655 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
23656 `new style' [w/`doc:' keyword].
23657
23658 2001-11-12 Richard M. Stallman <rms@gnu.org>
23659
23660 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
23661 LeaveNotify events. Only FocusIn and FocusOut do that now.
23662 (x_display_and_set_cursor): Do display hollow cursors in active
23663 minibuffer windows when they are not selected.
23664
23665 2001-11-12 Jason Rumney <jasonr@gnu.org>
23666
23667 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
23668 * w32term.c: Change doc-string comments to `new style'
23669 [w/`doc:' keyword]. Doc fixes.
23670
23671 * w32fns.c: Don't define max.
23672 (Fx_open_connection): Only execute once.
23673
23674 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23675
23676 * ccl.c: Change macros to use do-while block instead of if-else.
23677 Use braces to follow GNU Coding Standards.
23678
23679 2001-11-11 Richard M. Stallman <rms@gnu.org>
23680
23681 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
23682
23683 * lread.c (read_escape): Use end_of_file_error for reporting eof.
23684
23685 * insdel.c (replace_range): Use adjust_markers_for_replace
23686 instead of adjust_markers_for_delete and adjust_markers_for_insert.
23687
23688 * intervals.h (set_text_properties, set_text_properties_1): Declare.
23689
23690 * textprop.c (set_text_properties_1): New subroutine
23691 broken out of set_text_properties.
23692 (set_text_properties): Use set_text_properties_1.
23693
23694 * intervals.c (graft_intervals_into_buffer):
23695 Use set_text_properties_1 to clear out properties.
23696
23697 * search.c (Freplace_match): Use replace_range to insert
23698 and delete. Don't request property inheritance from
23699 surrounding text.
23700
23701 2001-11-10 Jason Rumney <jasonr@gnu.org>
23702
23703 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
23704 vertical fonts. Allow them if face name is explicitly specified.
23705 Do not give up if we find a font that cannot be converted to an xlfd.
23706
23707 2001-11-10 Gerd Moellmann <gerd@gnu.org>
23708
23709 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
23710 instead of malloc/free.
23711
23712 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23713
23714 * xfaces.c (merge_face_vectors): Use braces to follow GNU
23715 Coding Standards.
23716 (Finternal_set_lisp_face_attribute): Likewise.
23717
23718 * buffer.c (Fbury_buffer): Likewise.
23719
23720 * indent.c (current_column_1): Remove unused variable `prev_col'.
23721
23722 * coding.c (encode_coding): Use precomputed value of `src'.
23723 (encode_coding): Remove unused variable `src_end'.
23724 (code_convert_region): Remove unused variables `count'.
23725
23726 2001-11-07 Jason Rumney <jasonr@gnu.org>
23727
23728 * w32term.c (x_display_and_set_cursor): Do not move system caret
23729 if cursor_glyph is NULL.
23730
23731 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23732
23733 * keymap.c (access_keymap): Fix compilation error.
23734
23735 2001-11-07 Miles Bader <miles@gnu.org>
23736
23737 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
23738
23739 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23740
23741 * intervals.c (graft_intervals_into_buffer):
23742 Remove #ifdef'd-out code.
23743 (graft_intervals_into_buffer): Remove unused variable `middle'.
23744
23745 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
23746 code (eval-current-buffer).
23747 Change doc-string comments to `new style' [w/`doc:' keyword].
23748
23749 2001-11-06 Richard M. Stallman <rms@gnu.org>
23750
23751 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
23752
23753 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
23754
23755 * lread.c (read1): Fix behavior with nested backquoting.
23756
23757 * keyboard.c (make_lispy_event): Check integerness and fix
23758 Lisp_Object/int mixup.
23759
23760 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23761
23762 * fns.c (copy_hash_table): Remove unused variable `v'.
23763
23764 * fontset.c (fontset_font_pattern): Remove unused variable
23765 `family_registry'.
23766
23767 * indent.c (current_column_1): Remove unused variable `prev_col'.
23768
23769 2001-11-05 Richard M. Stallman <rms@gnu.org>
23770
23771 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
23772
23773 * buffer.c (Fkill_buffer): Don't delete auto save file
23774 if buffer is modified.
23775
23776 2001-11-05 Andrew Innes <andrewi@gnu.org>
23777
23778 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
23779 CHECK_NUMBER_CDR.
23780
23781 2001-11-05 Richard M. Stallman <rms@gnu.org>
23782
23783 * unexelf.c (unexec): Minor changes; clean up comments.
23784
23785 2001-11-05 Sam Steingold <sds@gnu.org>
23786
23787 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
23788
23789 2001-11-05 Andreas Schwab <schwab@suse.de>
23790
23791 * sound.c (sound_perror): Save errno from being clobbered.
23792
23793 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
23794
23795 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
23796 the program image directly.
23797
23798 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23799
23800 * buffer.h (Fbuffer_local_value): Add prototype.
23801
23802 2001-11-04 Richard M. Stallman <rms@gnu.org>
23803
23804 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
23805 and CHECK_BUFFER.
23806
23807 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
23808 (record_char): Likewise.
23809
23810 * keyboard.c (make_lispy_event): Don't insist a drag event must
23811 move to a different buffer position. Instead, check for moving at
23812 least double_click_fuzz.
23813
23814 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
23815
23816 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
23817
23818 * indent.c (current_column_1, Fmove_to_column): Separate the code
23819 for display-table glyphs from the code for buffer text, to fix
23820 bugs in the former.
23821
23822 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
23823
23824 * buffer.c (Fbuffer_local_value): New function.
23825 (syms_of_buffer): Defsubr it.
23826
23827 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
23828 value of `cursor-in-non-selected-windows'.
23829
23830 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
23831 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
23832 (syms_of_xdisp): Initialize it.
23833
23834 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23835
23836 * xfns.c (Fx_create_frame): Doc fix.
23837
23838 * coding.c: Change doc-string comments to `new style' [w/`doc:'
23839 keyword].
23840
23841 * eval.c (top_level_value, top_level_set): Remove commented and
23842 #ifdef'd-out code.
23843 (Fdefvar): Fix usage in doc-string.
23844
23845 2001-11-03 Richard M. Stallman <rms@gnu.org>
23846
23847 * xfns.c: Include unistd.h, if it exists.
23848
23849 * editfns.c: Move the include of ctype.h after unistd.h.
23850
23851 * gmalloc.c: Test BROKEN_PROTOTYPES.
23852
23853 2001-11-03 Ken Raeburn <raeburn@gnu.org>
23854
23855 * lisp.h (CHECK_STRING_CAR): New macro.
23856 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
23857 treating XCAR and XCDR as lvalues.
23858 (openp): Use CHECK_STRING_CAR.
23859 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
23860
23861 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
23862
23863 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
23864 (SIGMASKTYPE): Define.
23865
23866 * syssignal.h (sigunblock): Don't define if already defined.
23867
23868 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23869
23870 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
23871 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
23872 Fix typos in comments.
23873
23874 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
23875 and #ifdef'd-out code.
23876 Fix and reindent comments.
23877
23878 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
23879
23880 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
23881 argument `i' in macros.
23882
23883 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
23884 `i' in macros.
23885
23886 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
23887 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
23888 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
23889 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
23890 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
23891 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
23892 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
23893 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
23894 in macros.
23895
23896 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
23897 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
23898 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
23899 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
23900 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
23901 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
23902 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
23903 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
23904 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
23905 (remove unused second argument).
23906
23907 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
23908
23909 * syntax.c (describe_syntax): New wrapper.
23910 (Finternal_describe_syntax_value): Rename from describe_syntax.
23911 Don't insert space at front and \n at the end.
23912 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
23913
23914 * regex.c (re_wctype): Try to fix some warnings.
23915 (regcomp, regexec): Don't forget the __restrict.
23916
23917 2001-11-02 Richard M. Stallman <rms@gnu.org>
23918
23919 * textprop.c (Fget_char_property): Doc fix.
23920
23921 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23922
23923 * process.c (Fstart_process): Add usage to doc-string.
23924
23925 * data.c (Fsetq_default): Ditto.
23926
23927 * callint.c (Finteractive): Ditto.
23928
23929 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
23930
23931 * macros.c: Don't include keymap.h any more.
23932
23933 2001-11-01 Richard M. Stallman <rms@gnu.org>
23934
23935 * data.c (Fmake_local_variable): Doc fix.
23936
23937 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
23938 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
23939
23940 * keymap.c (Fdescribe_buffer_bindings): Print character property
23941 bindings along with or instead of the buffer local map.
23942 Make the overriding maps override what they should.
23943
23944 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23945
23946 * window.c (grow_mini_window): Fix typo in comment.
23947
23948 2001-11-01 Gerd Moellmann <gerd@gnu.org>
23949
23950 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
23951 (XTset_vertical_scroll_bar): Likewise.
23952
23953 * xfns.c (x_build_heuristic_mask): Use four_corners_best
23954 instead of IMAGE_BACKGROUND.
23955
23956 * xfns.c (four_corners_best): Reindent.
23957
23958 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
23959 Handle :box so that it is possible to specify sexprs.
23960
23961 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
23962
23963 * s/hpux11.h: New file.
23964
23965 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23966
23967 * emacs.c (USAGE1): Show command line option --no-window-system
23968 instead of --no-windows in usage.
23969 (standard_args): Rename --no-windows to --no-window-system.
23970 (bug_reporting_address): Follow Emacs coding conventions.
23971
23972 * eval.c (Fcommandp): Doc fix.
23973 Change doc-string comments to `new style' [w/`doc:' keyword].
23974
23975 * frame.c (Fframe_live_p): Doc fix.
23976
23977 * buffer.c (selective-display-ellipses): Doc fix.
23978
23979 2001-10-31 Gerd Moellmann <gerd@gnu.org>
23980
23981 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
23982
23983 * xfaces.c (realize_x_face): If C is not a single-byte character,
23984 set the face's colors_copied_bitwise_p instead of the defaulted_p
23985 members which have a different meaning.
23986 (free_face_colors): Do nothing for a face whose colors have been
23987 copied bitwise.
23988
23989 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
23990
23991 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23992
23993 * marker.c, mocklisp.c: Change doc-string comments to `new style'
23994 [w/`doc:' keyword].
23995
23996 2001-10-31 Gerd Moellmann <gerd@gnu.org>
23997
23998 * fns.c (require_unwind): Return Lisp_Object.
23999
24000 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24001
24002 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
24003 (last-input-char): Revert doc-string to be the same as the
24004 doc-string of `last-input-event'.
24005
24006 * xdisp.c: Fix typos in comments.
24007
24008 2001-10-31 Gerd Moellmann <gerd@gnu.org>
24009
24010 * window.c (grow_mini_window): Handle case that the root
24011 window is already smaller than the nominal mininum height.
24012
24013 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
24014
24015 * emacs.c (main): Don't call keys_of_macros any more.
24016
24017 * lisp.h (keys_of_macros): Remove.
24018
24019 * macros.c (keys_of_macros): Remove.
24020
24021 * xfaces.c (Fface_attribute_relative_p): Declare args.
24022
24023 2001-10-30 Jason Rumney <jasonr@gnu.org>
24024
24025 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
24026 (enum_font_cb2): Ignore fonts with vertical orientation.
24027
24028 2001-10-30 Richard M. Stallman <rms@gnu.org>
24029
24030 * keyboard.c (Finput_pending_p): Doc fix.
24031
24032 2001-10-30 Gerd Moellmann <gerd@gnu.org>
24033
24034 * xterm.c (x_after_update_window_line): Don't run the code
24035 clearing in borders for rows whose visible height is 0.
24036
24037 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
24038 resized_p flag is set. If not set, use the much less flickering
24039 method previously used.
24040
24041 * dispnew.c (change_frame_size_1): Set frame's resized_p.
24042
24043 * frame.h (struct frame) <resized_p>: New member.
24044
24045 * lread.c (to_multibyte): Ensure read_buffer is at least twice
24046 as large as the number of bytes to convert.
24047
24048 * lread.c (to_multibyte): New function.
24049 (read1): Use it.
24050
24051 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
24052
24053 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
24054
24055 2001-10-30 Gerd Moellmann <gerd@gnu.org>
24056
24057 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
24058 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
24059 if the row's fill_line_p is set and drawing the last glyph with
24060 DRAW_IMAGE_{RAISED,SUNKEN}.
24061
24062 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
24063
24064 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
24065
24066 * xmenu.c: Include coding.h and charset.h.
24067 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
24068 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
24069 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
24070 Explicitly set wv->help. Use `TRUE' rather than `True'.
24071 (menu_help_callback): Use empty_string.
24072
24073 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
24074 (Fx_popup_dialog): Explicitly init f.
24075 (w32_menu_display_help): Use empty_string.
24076
24077 2001-10-29 Richard M. Stallman <rms@gnu.org>
24078
24079 * fns.c (Frequire): Detect recursive try to require the same
24080 feature 3 or more levels deep, and get error.
24081 (require_unwind): New subroutine.
24082 (require_nesting_list): New variable.
24083 (syms_of_fns): Init and staticpro it.
24084
24085 * print.c (print_object): Clarify indication of insertion type.
24086
24087 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
24088
24089 * coding.c (syms_of_coding): Document that locale-coding-system is
24090 used for decoding input on X.
24091
24092 * window.c (Fscroll_left, Fscroll_right): Doc fix.
24093
24094 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24095
24096 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
24097 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
24098
24099 2001-10-29 Gerd Moellmann <gerd@gnu.org>
24100
24101 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
24102 use NO_CURSOR if cursor_in_non_selected_windows is false.
24103
24104 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
24105 the slant attribute if FRAME is t.
24106
24107 * xfns.c (x_set_internal_border_width): Set frame garbaged
24108 when X window doesn't exist yet.
24109
24110 * xterm.c (x_after_update_window_line): Clear internal border
24111 in different circumstances.
24112
24113 * xterm.c (XTread_socket) <KeyPress>: Don't use
24114 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
24115 <handa@etl.go.jp>.
24116
24117 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
24118
24119 * m/ibms390.h: New file. From Adam Thornton
24120 <athornton@sinenomine.net>.
24121
24122 2001-10-28 Gerd Moellmann <gerd@gnu.org>
24123
24124 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
24125
24126 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
24127 a loop counter.
24128
24129 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24130
24131 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
24132
24133 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
24134 keyword].
24135 Fix typos in comments.
24136
24137 * emacs.c (bug_reporting_address): New function.
24138 Use it when displaying usage message.
24139
24140 * minibuf.c (read_minibuf): Remove unused external declaration of
24141 variable `Qread_only'.
24142
24143 * keymap.c (access_keymap): Remove unused variable `charset'.
24144
24145 2001-10-28 Miles Bader <miles@gnu.org>
24146
24147 * xfaces.c (merge_face_heights): Handle TO being relative as well.
24148 Remove #ifdef'd-out code.
24149 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
24150 (syms_of_xfaces): Initialize them.
24151
24152 2001-10-27 Jason Rumney <jasonr@gnu.org>
24153
24154 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
24155 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
24156 position using the system caret.
24157
24158 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
24159 (w32_system_caret_height, w32_system_caret_x)
24160 (w32_system_caret_y): New variables for tracking system caret.
24161 (w32_initialize): Initialize them.
24162 (x_display_and_set_cursor): Make system caret follow the active cursor.
24163
24164 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
24165 New messages types.
24166
24167 * w32term.c (note_mouse_highlight): Clear old help_echo.
24168
24169 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24170
24171 * xterm.c: Fix typo in a comment.
24172
24173 * emacs.c: Fix typos in comments.
24174 Remove unnecessary spaces.
24175 Change doc-string comments to `new style' [w/`doc:' keyword].
24176 (USAGE2): Fix typos in usage string.
24177
24178 * xterm.c: Fix typo in a comment.
24179
24180 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
24181 emacs.c.
24182
24183 2001-10-27 Gerd Moellmann <gerd@gnu.org>
24184
24185 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
24186 instead of 1/2 line_height in the heuristic for skipping
24187 farther backward when target_y was not reached.
24188
24189 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
24190 Display errno only if non-zero.
24191 (sound_warning): New function.
24192 (vox_configure): Don't treat failing to set sample rate as error.
24193 (various places): Improve error messages.
24194
24195 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
24196
24197 * fileio.c (Faccess_file): Run the argument filename through
24198 Fexpand_file_name, before using it.
24199
24200 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
24201 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
24202
24203 2001-10-26 Gerd Moellmann <gerd@gnu.org>
24204
24205 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
24206
24207 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
24208 Fix clearing in the case of scroll bars on the right.
24209
24210 2001-10-26 Juanma Barranquero <lektu@terra.es>
24211
24212 * w32gui.h (XImage): Add a dummy typedef.
24213
24214 2001-10-26 Gerd Moellmann <gerd@gnu.org>
24215
24216 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
24217
24218 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
24219
24220 * frame.c (Fframe_parameter): Fix last change.
24221
24222 * fileio.c: Revert last change (which removed old commented-out
24223 version of expand-file-name). Add a comment that explains why
24224 this old version should not be removed.
24225
24226 2001-10-25 Gerd Moellmann <gerd@gnu.org>
24227
24228 * frame.c (Fframe_parameter): Fix a bug whereby some
24229 ``artificial'' frame parameters, like `minibuffer' were not
24230 obtained by calling Fframe_parameters.
24231
24232 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
24233 cursor differently.
24234
24235 * xdisp.c (move_it_vertically_backward): Compute line height
24236 differently. Add heuristic to try to be more compatible to 20.x.
24237
24238 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
24239
24240 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
24241
24242 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
24243 boolean.
24244
24245 2001-10-25 Miles Bader <miles@gnu.org>
24246
24247 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
24248 BG is a pointer to a structure, not a structure.
24249 (gif_format, png_format): Add missing commas.
24250
24251 2001-10-24 Richard M. Stallman <rms@gnu.org>
24252
24253 * xfaces.c (Fface_attributes_as_vector): New function.
24254 (syms_of_xfaces): Defsubr it.
24255
24256 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24257
24258 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
24259 variable `area'.
24260
24261 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24262
24263 * search.c (scan_newline): Remove unused variable `selective_display'.
24264
24265 2001-10-25 Miles Bader <miles@gnu.org>
24266
24267 * dispextern.h (struct image): Add `background',
24268 `background_valid', and `background_transparent' fields.
24269 (image_background, image_background_transparent): New declarations.
24270 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
24271 * xfns.c (image_background, image_background_transparent)
24272 (four_corners_best): New functions.
24273 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
24274 (gs_format): Add `:background' entry.
24275 (lookup_image): Set IMG's background color if specified.
24276 (pbm_load, xbm_load_image, png_load): Set IMG's background field
24277 when appropriate.
24278 (x_clear_image_1): Reset `background_valid' and
24279 `background_transparent_valid' fields.
24280 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
24281 calculating it here. Set IMG's background_transparent field.
24282 (enum xpm_keyword_index): Add XPM_BACKGROUND.
24283 (enum png_keyword_index): Add PNG_BACKGROUND.
24284 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
24285 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
24286 (enum gif_keyword_index): Add GIF_BACKGROUND.
24287 (enum gs_keyword_index): Add GS_BACKGROUND.
24288 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
24289 Pre-calculate image background color where necessary.
24290 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
24291 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
24292 color to use for image glyph reliefs.
24293
24294 2001-10-24 Gerd Moellmann <gerd@gnu.org>
24295
24296 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
24297 in full-width rows.
24298
24299 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
24300 Fix clearing of area not covered by scroll bar.
24301
24302 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24303
24304 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
24305 and `real_start'.
24306 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
24307 (glyph_rect): Remove unused variable `area'.
24308
24309 2001-10-24 Gerd Moellmann <gerd@gnu.org>
24310
24311 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
24312
24313 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
24314 (row_containing_pos): Take additional argument DY.
24315 Treat rows ending in middle of char differently.
24316 (display_line): Handle tabs on window systems differently.
24317
24318 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
24319 with additional argument.
24320
24321 * dispextern.h (row_containing_pos): Adjust prototype.
24322
24323 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
24324 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
24325 (try_window_id, try_window_reusing_current_matrix)
24326 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
24327 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
24328
24329 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24330
24331 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
24332 gnuemacs).
24333 (HAVE_BOXES): Fix typo in comment.
24334 (push_menu_pane): Fix typo in comment.
24335
24336 * xdisp.c (display_prop_string_p): Remove unused local declaration
24337 of `Qwhen'.
24338 (single_display_prop_string_p): Remove unused local declarations
24339 of `Qwhen' and `Qmargin'.
24340 (string_buffer_position): Remove unused variable `around'.
24341 (store_frame_title): Remove unused variable `width'.
24342
24343 * window.c: Don't define max.
24344 (coordinates_in_window): Remove unused variable `uy'.
24345
24346 * widget.c: Don't define max.
24347
24348 * process.c: Don't define max.
24349 (create_process): Remove unused variable `buffer'.
24350
24351 2001-10-23 Gerd Moellmann <gerd@gnu.org>
24352
24353 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
24354
24355 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
24356
24357 * xfaces.c (Finternal_set_lisp_face_attribute)
24358 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
24359 frame is on a windowed display.
24360
24361 2001-10-23 Gerd Moellmann <gerd@gnu.org>
24362
24363 * dispnew.c (sync_window_with_frame_matrix_rows):
24364 Fix handling of windows which aren't full-width, fix handling
24365 of marginal areas.
24366
24367 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24368
24369 2001-10-23 Andreas Schwab <schwab@suse.de>
24370
24371 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
24372 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
24373
24374 2001-10-23 Gerd Moellmann <gerd@gnu.org>
24375
24376 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
24377 REAL_END. Notice if cursor gets overwritten.
24378 (notice_overwritten_cursor): Take X positions as parameters.
24379 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
24380 around call to x_draw_glyphs.
24381
24382 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24383
24384 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
24385 instead of C) and usage.
24386
24387 * editfns.c (char-to-string): Fix argument names (use CHAR instead
24388 of C) and usage.
24389
24390 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
24391 `left', `max_width' and `max_height'.
24392
24393 2001-10-23 Gerd Moellmann <gerd@gnu.org>
24394
24395 * xdisp.c (display_line): For a tab continued to the next line,
24396 set row's ends_in_middle_of_char_p.
24397
24398 2001-10-22 Gerd Moellmann <gerd@gnu.org>
24399
24400 * xdisp.c (display_line): Fix computation of continuation lines
24401 width for TABs.
24402
24403 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24404
24405 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
24406 `Qlaplace'.
24407
24408 * fileio.c: Remove unused code.
24409
24410 2001-10-22 Miles Bader <miles@gnu.org>
24411
24412 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
24413 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
24414 Remove `DOC_STRINGS_IN_COMMENTS' cases.
24415
24416 2001-10-21 Jason Rumney <jasonr@gnu.org>
24417
24418 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
24419
24420 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
24421
24422 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
24423 (Finsert_string): Avoid the multi-line string literals warning.
24424
24425 2001-10-22 Miles Bader <miles@gnu.org>
24426
24427 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
24428 (Fdocumentation): Don't use it.
24429 (syms_of_doc): Don't initialize it.
24430
24431 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
24432 * print.c (Fwith_output_to_temp_buffer): Likewise.
24433 * window.c (Fsave_window_excursion): Likewise.
24434 * editfns.c (Fsave_excursion, Fsave_current_buffer)
24435 (Fsave_restriction): Likewise.
24436 * eval.c (Frun_hooks, Frun_hook_with_args)
24437 (Frun_hook_with_args_until_failure)
24438 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
24439 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
24440 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
24441 (Funwind_protect, Fcondition_case): Likewise.
24442 * coding.c (Ffind_operation_coding_system): Likewise.
24443 * keyboard.c (Ftrack_mouse): Likewise.
24444
24445 2001-10-21 Miles Bader <miles@gnu.org>
24446
24447 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
24448 (Fmake_hash_table): Add usage: string to doc string.
24449 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
24450 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
24451 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
24452 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
24453 (Fml_prefix_argument_loop): Likewise.
24454
24455 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24456
24457 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
24458
24459 * sysdep.c (init_sys_modes): Change doc-string comments to `new
24460 style' [w/`doc:' keyword].
24461
24462 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
24463 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
24464 comments to `new style' [w/`doc:' keyword].
24465
24466 2001-10-21 Jason Rumney <jasonr@gnu.org>
24467
24468 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
24469
24470 * w32term.c (remember_mouse_glyph): New function.
24471 (w32_mouse_position): Use it.
24472 (note_mouse_movement): If the mouse moved off the glyph, remember
24473 its new position.
24474
24475 * w32term.h (struct w32_output): Correct spelling of x_compatible.
24476 (w32_display_info): Add mouse_face_overlay.
24477
24478 * w32term.c (notice_overwritten_cursor): Renamed from
24479 note_overwritten_text_cursor. Rewritten to take glyph widths into
24480 account.
24481 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
24482 (fast_find_string_pos): New function.
24483 (fast_find_position): Return the correct vpos. Add parameter
24484 STOP. In the final row, stop before glyphs having STOP as object.
24485 Don't consider glyphs that are not from a buffer.
24486 (fast_find_position) [0]: Add a presumably more correct version
24487 for after 21.1.
24488 (expose_window_tree, expose_frame): Don't compute intersections here.
24489 (expose_window): Do it here instead.
24490 (expose_window_tree, expose_window, expose_line): Return 1 when
24491 overwriting mouse-face.
24492 (expose_window): If W is the window currently being updated, mark
24493 the frame garbaged.
24494 (expose_frame): If mouse-face was overwritten, redo it.
24495 (x_use_underline_position_properties): New variable.
24496 (syms_of_xterm): DEFVAR_BOOL it.
24497 (x_draw_glyph_string): Add comment to use it in future.
24498 (x_draw_glyph_string): Restore clipping after drawing box.
24499 Fix a computation of the underline position.
24500 (w32_get_glyph_string_clip_rect): Minor cleanup.
24501 (x_fill_stretch_glyph_string): Remove an assertion.
24502 (x_produce_glyphs): Don't convert multibyte characters
24503 to unibyte characters in unibyte buffers.
24504 (cursor_in_mouse_face_p): New function.
24505 (x_draw_stretch_glyph_string): Use it to choose a different GC
24506 when drawing a cursor within highlighted text. Don't draw
24507 background again if it has already been drawn.
24508 (x_draw_glyph_string_box): Don't draw a full-width
24509 box just because the glyph row's full_width_p flag is set.
24510 (x_draw_glyphs): Fix computation of rightmost x for
24511 full-width rows.
24512 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
24513 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
24514 change bottom shadow accordingly. Some cleanup.
24515 (x_update_window_end): Handle overwritten mouse face
24516 also for tool bar windows.
24517 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
24518 DRAW is DRAW_IMAGE_RAISED.
24519 (clear_mouse_face): Return 1 if text with mouse face was
24520 actually redrawn. Make the function static.
24521 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
24522 optimize away highlighting if we pass over that same overlay again.
24523 (note_mouse_highlight): Call mouse_face_overlay_overlaps
24524 to detect a case where we have to highlight a different region
24525 despite not having left the currently highlighted region.
24526 Set mouse_face_overlay in the x_display_info. Avoid changing the
24527 mouse pointer shape when show_mouse_face has already done it, or
24528 there is no need. Handle mouse-face and help-echo in strings.
24529 (glyph_rect): New function.
24530 (w32_mouse_position): Use it to raise the threshold for mouse
24531 movement event generation.
24532 (w32_initialize_display_info): Initialize the x_display_info's
24533 mouse_face_overlay.
24534 (w32_set_vertical_scroll_bar): Don't clear a zero height
24535 or width area.
24536 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
24537 a widget to zero height.
24538
24539 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
24540 Protect unibyte strings created by replacing their multibyte
24541 equivalents in menu_items.
24542 (w32_menu_show): Don't overwrite an item's name with its key
24543 description in case the description is a multibyte string.
24544 (single_submenu): Some cleanup.
24545
24546 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
24547 (postprocess_image): New function.
24548 (lookup_image): Call it for all image types except PostScript.
24549 (x_kill_gs_process): Call postprocess_image.
24550 (tiff_error_handler, tiff_warning_handler): New functions.
24551 (tiff_load): Install them as handlers.
24552 (x_kill_gs_process): Recognize if someone has cleared the image
24553 cache under us.
24554 (valid_image_p): Protect better against invalid image
24555 specifications. Previous code could signal an error.
24556 (Fx_hide_tip, Fshow_tip): Doc fix.
24557 (Fv_max_tooltip_size): New variable.
24558 (syns_of_xfns): DEFVAR_LISP it.
24559 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
24560 window buffer to *tip* right after creating the frame. Set frame's
24561 window_width. Use a maximum tooltip size specified by
24562 Vx_max_tooltip_size, if that has valid contents.
24563 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
24564 Make sure the tooltip is completely visible.
24565 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
24566 (Fx_create_frame): Adjust the frame's height for presence
24567 of the tool bar before calling x_figure_window_size.
24568 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
24569 when the window gets smaller.
24570 (x_set_foreground_color): Set frame's cursor_pixel.
24571 (x_set_foreground_color, x_set_background_color): Cleaned up.
24572 (x_set_font): Handle case of x_new_fontset returning the same name
24573 as before, although there was a change in fontsets.
24574
24575 2001-10-21 Miles Bader <miles@gnu.org>
24576
24577 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
24578 (Flogxor): Add usage: string to doc string.
24579 * charset.c (Fstring): Likewise.
24580 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
24581 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
24582
24583 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24584
24585 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
24586
24587 * alloc.c: Reindent DEFUNs with doc: keywords.
24588
24589 * abbrev.c (Finsert_abbrev_table_description): Reindent.
24590
24591 * frame.c: Change doc-string comments to `new style' [w/`doc:'
24592 keyword].
24593
24594 See ChangeLog.9 for earlier changes.
24595
24596 ;; Local Variables:
24597 ;; coding: iso-2022-7bit
24598 ;; End:
24599
24600 Copyright (C) 2001, 2002, 2003, 2004, 2005,
24601 2006 Free Software Foundation, Inc.
24602 Copying and distribution of this file, with or without modification,
24603 are permitted provided the copyright notice and this notice are preserved.
24604
24605 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4